Skip to content

fix: call relocated /seam/wizard/v1 inference endpoints - #45

Open
razor-x wants to merge 1 commit into
mainfrom
claude/migrate-to-seam-wizard-v1
Open

fix: call relocated /seam/wizard/v1 inference endpoints#45
razor-x wants to merge 1 commit into
mainfrom
claude/migrate-to-seam-wizard-v1

Conversation

@razor-x

@razor-x razor-x commented Aug 21, 2026

Copy link
Copy Markdown
Member

Summary

Matches the seam-connect endpoint move in seamapi/seam-connect#17275, which relocates the wizard inference proxy and token-exchange endpoints off the internal namespace onto the public /seam/wizard/v1/* surface. This PR updates the CLI to call the new paths and read the new response shape, so it keeps working once that change ships.

Changes (src/lib/api.ts)

  • Inference base URL: /internal/wizard_inference/seam/wizard. The embedded agent's SDK still appends /v1/messages, so requests land at /seam/wizard/v1/messages.
  • Token exchange: /internal/wizard_inference/session/seam/wizard/v1/session.
  • Response shape: the session response is now a single top-level wizard_session object with the Console onboarding answers nested inside it (wizard_session.onboarding) instead of a sibling onboarding key. The CLI's public WizardInferenceSession type is unchanged — only the wire parsing moved.

The ANTHROPIC_BASE_URL the CLI exports for the agent (inference.base_url) and the cheap project-analysis call both flow through getInferenceBaseUrl(), so they follow the new base automatically.

Testing

  • npm run typecheck — passes
  • npx vitest run src/lib/api.test.ts — passes (test updated to assert the new path and nested onboarding)

Coordination

This is the client half of a coordinated change; it should land together with (or just after) seam-connect#17275 so the CLI and backend agree on the paths.

🤖 Generated with Claude Code


Generated by Claude Code

seam-connect moved the wizard inference proxy and token-exchange endpoints
off the internal namespace onto the public /seam/wizard/v1/* surface
(seamapi/seam-connect#17275):

- inference base URL: /internal/wizard_inference -> /seam/wizard (the agent
  SDK still appends /v1/messages)
- token exchange: /internal/wizard_inference/session -> /seam/wizard/v1/session

The session response is now a single top-level wizard_session object with the
Console onboarding answers nested inside it, rather than a sibling key; parse
it from wizard_session.onboarding.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FRfRgiwY7rMtMenkS4Yk7Y
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.

2 participants