Skip to content

Reconcile commands with the current API client signatures#7

Merged
boristane merged 2 commits into
mainfrom
fix/api-client-reconcile
Jul 26, 2026
Merged

Reconcile commands with the current API client signatures#7
boristane merged 2 commits into
mainfrom
fix/api-client-reconcile

Conversation

@boristane

Copy link
Copy Markdown
Contributor

Summary

Main's CI is red: the Generate client from OpenAPI spec step now produces signatures the command code predates. This is spec drift, not a regression from #6 — the same failure occurs on any branch.

  • feedSummary and issuesTimelineList take positional workspaceId/id now; calls updated.
  • workspacesPost requires acceptTerms: true on the prod spec (326 operations) but not yet on the CI environment's spec (317). The value is passed through a non-literal assignment so typecheck stays green against both. Semantics: creating a workspace from the CLI implies accepting the terms, matching the console flow — flag if you'd rather surface an explicit --accept-terms prompt instead.

Test plan

  • npm run typecheck clean against a fresh prod-spec codegen
  • npm test 117/117, lint clean, build clean

Worth checking separately: the CI POLYLANE_API_DOMAIN secret points at an API nine operations behind prod, so CI typechecks against a stale surface.

🤖 Generated with Claude Code

boristane and others added 2 commits July 26, 2026 15:05
The regenerated client moved feedSummary and issuesTimelineList to
positional workspaceId/id arguments and made acceptTerms required on
workspace creation, so CI's fresh codegen broke typecheck on main.

Workspace create passes acceptTerms via a non-literal assignment: creating
a workspace from the CLI implies accepting the terms (same as the console
flow), and the indirection keeps typecheck green against spec versions from
before the field existed — the CI environment's spec (317 operations)
doesn't have it yet while prod (326) requires it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Workspace creation sends acceptTerms on the user's behalf; the CLI now says
so before the call, with the terms URL, on stderr per the stdout/stderr
contract.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@boristane
boristane merged commit e12d5f7 into main Jul 26, 2026
3 checks passed
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