Skip to content

Stop requiring verificationStatus in the signup response - #18

Merged
kev1n merged 1 commit into
mainfrom
drop-agent-claim-fields
Sep 26, 2026
Merged

kev1n merged 1 commit into
mainfrom
drop-agent-claim-fields

Conversation

@kev1n

@kev1n kev1n commented Sep 26, 2026

Copy link
Copy Markdown
Member

What changes

  • SignupResponse.verificationStatus (src/types.ts) is now optional. The CLI still saves it to ~/.anyapi/config.json when the gateway sends it, and simply leaves it out when the gateway doesn't.
  • The CLI never read claimToken or claimUrl, so there was nothing to remove for those.
  • New test: a signup response with none of verificationStatus, claimToken, or claimUrl still saves the trial key and its config.

The CLI never checked this field at runtime: the signup body is cast, not validated. So the published 0.9.0 already handles a response without it, and the new test passes with or without the type change. The test locks in the behavior the gateway drop depends on. The type change keeps the declared shape accurate.

Why

AnyAPI retired the agent-key claim flow in getanyapi-com/anyapi#1307. POST /agent/signup still returns verificationStatus, claimToken, and claimUrl only for the benefit of published clients, and the gateway will drop them once the clients stop requiring them.

Release order

Release to npm before the anyapi gateway PR that drops these fields merges (step 4 in getanyapi-com/anyapi#1307, "Ecosystem follow-ups").

Checks

  • npm run build: passes.
  • npm test: 11 files, 101 tests pass.

🤖 Generated with Claude Code

The gateway retired the agent-key claim flow (getanyapi-com/anyapi#1307)
and will drop verificationStatus, claimToken, and claimUrl from
POST /agent/signup once the SDKs and this CLI release. The CLI never
read claimToken or claimUrl; SignupResponse.verificationStatus is now
optional so the type matches a response without it.

The CLI never validated the field at runtime, so the new test (a signup
response with none of the three fields saves the trial key) also passes
without the type change; it guards the tolerance the gateway drop
relies on.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@kev1n
kev1n merged commit 5f745bc into main Sep 26, 2026
2 checks passed
kev1n added a commit that referenced this pull request Sep 26, 2026
Agent signup no longer requires verificationStatus in the response (#18),
so the CLI keeps working when the gateway stops sending it and the retired
claimToken and claimUrl fields.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant