Skip to content

feat(ai-autopilot): bootstrap deploy step + DeployTarget adapter seam (#123)#128

Merged
suleimansh merged 1 commit into
mainfrom
feat/bootstrap-deploy
Jul 2, 2026
Merged

feat(ai-autopilot): bootstrap deploy step + DeployTarget adapter seam (#123)#128
suleimansh merged 1 commit into
mainfrom
feat/bootstrap-deploy

Conversation

@suleimansh

Copy link
Copy Markdown
Member

Child of #116 (bootstrap). The final phase.

Adds the deploy phase to the bootstrap flow: decide SSR/SSG/SPA + the deploy target (Dockploy vs Cloudflare), narrate the plan, and expose a DeployTarget adapter seam — the same pattern as the runner seam (#109).

  • agentDeploy — the default step: an ai-sdk agent decides { render, target, reason } (normalized against the allowed render modes + target names so a stray value cannot slip through), then hands the plan to a DeployTarget.
  • DeployTarget — the seam. A target executes the plan; deciding it is the step's job.
  • planOnlyTarget — the v1 default: decides + narrates, reports deployed: false. The honest "do not build blind deploy now" — real Dockploy / Cloudflare adapters implement DeployTarget and are infra-gated follow-ups.
  • FakeDeployTarget — records the plan + returns a canned result, for tests.

The deploy step is optional; its outcome rides on BootstrapResult.deploy and a deploy narration event fires after the loop. Runs for both scopes (not loop-gated), and gets productionGrade in its context to factor readiness in.

Tests: the orchestrator's deploy phase (runs last, carries the outcome, optional, prototype too), each seam piece (planOnlyTarget, FakeDeployTarget, agentDeploy incl. out-of-set normalization + custom target list), and the end-to-end offline run now ends in a decided + narrated deploy. Full suite 168 green.

Closes #123.

@suleimansh suleimansh added the enhancement New feature or request label Jul 2, 2026
@suleimansh suleimansh self-assigned this Jul 2, 2026
@suleimansh suleimansh added the priority: medium Worth doing, not urgent label Jul 2, 2026
@suleimansh suleimansh merged commit 70168c5 into main Jul 2, 2026
2 checks passed
@suleimansh suleimansh deleted the feat/bootstrap-deploy branch July 2, 2026 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request priority: medium Worth doing, not urgent

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bootstrap deploy step: decide SSR/SSG/SPA + target, expose adapter seam

1 participant