cleanup: remove NLP legacy token alias #346

Merged
barrettruth merged 1 commit from cleanup/remove-nlp-legacy-token-alias into main 2026-05-11 20:10:09 +00:00
Owner

Problem

The merged NLP provider settings path kept a runtime compatibility branch for the old apiKey token field. We do not need to tolerate old settings payload shapes unless a real database migration requires it.

Solution

  • Remove the legacy apiKey token alias from NLP provider token reads.
  • Keep the current canonical api_key token contract.
  • Update the NLP config test to assert old payload aliases are ignored.

Verification

  • nix develop --command pnpm exec vitest run tests/core/nlp-config.test.ts tests/api/settings-nlp.test.ts tests/api/nlp-parse-recurrence.test.ts --reporter=verbose
  • nix develop --command just lint

Follow-up to #314.

## Problem The merged NLP provider settings path kept a runtime compatibility branch for the old `apiKey` token field. We do not need to tolerate old settings payload shapes unless a real database migration requires it. ## Solution - Remove the legacy `apiKey` token alias from NLP provider token reads. - Keep the current canonical `api_key` token contract. - Update the NLP config test to assert old payload aliases are ignored. ## Verification - `nix develop --command pnpm exec vitest run tests/core/nlp-config.test.ts tests/api/settings-nlp.test.ts tests/api/nlp-parse-recurrence.test.ts --reporter=verbose` - `nix develop --command just lint` Follow-up to #314.
cleanup: remove NLP legacy token alias
All checks were successful
quality / Test (pull_request) Successful in 17s
quality / Lint (pull_request) Successful in 21s
quality / Build (pull_request) Successful in 43s
848b91ead8
barrettruth deleted branch cleanup/remove-nlp-legacy-token-alias 2026-05-11 20:10:09 +00:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
barrettruth/delta!346
No description provided.