fix: call relocated /seam/wizard/v1 inference endpoints - #45
Open
razor-x wants to merge 1 commit into
Open
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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)/internal/wizard_inference→/seam/wizard. The embedded agent's SDK still appends/v1/messages, so requests land at/seam/wizard/v1/messages./internal/wizard_inference/session→/seam/wizard/v1/session.wizard_sessionobject with the Console onboarding answers nested inside it (wizard_session.onboarding) instead of a siblingonboardingkey. The CLI's publicWizardInferenceSessiontype is unchanged — only the wire parsing moved.The
ANTHROPIC_BASE_URLthe CLI exports for the agent (inference.base_url) and the cheap project-analysis call both flow throughgetInferenceBaseUrl(), so they follow the new base automatically.Testing
npm run typecheck— passesnpx 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