Skip to content

feat(deploy): switch TS SDK flow to auto_promote#112

Merged
rmorehig merged 2 commits intomainfrom
rmoreno/deploy-auto-promote
Feb 19, 2026
Merged

feat(deploy): switch TS SDK flow to auto_promote#112
rmorehig merged 2 commits intomainfrom
rmoreno/deploy-auto-promote

Conversation

@rmorehig
Copy link
Collaborator

Summary

  • switch deploy API usage to auto_promote=true by default for non-check deploys
  • remove manual /v1/deployments/{id}/set-live logic from the TS SDK
  • keep deploy polling to wait for final result (data-ready and auto-promote completion)
  • retain --check semantics by not sending auto_promote
  • update deploy tests for the new request/response flow

What changed

  • src/api/deploy.ts
    • adds autoPromote option (defaults to true unless check)
    • sends auto_promote=true in deploy query params
    • removes manual set-live path
    • keeps polling /v1/deployments/{id} for readiness/final status
  • src/api/deploy.test.ts
    • rewrites deploy flow tests around auto-promote + polling behavior

Validation

  • pnpm -s vitest run src/api/deploy.test.ts src/cli/commands/deploy.test.ts src/cli/commands/preview.test.ts
  • pnpm -s typecheck

Closes #111

@rmorehig rmorehig merged commit 10fd47b into main Feb 19, 2026
2 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.

Deploy API: switch SDK to auto_promote flow and remove manual set-live

1 participant