feat(ai-autopilot): bootstrap deploy step + DeployTarget adapter seam (#123)#128
Merged
Conversation
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.
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
DeployTargetadapter seam — the same pattern as the runner seam (#109).agentDeploy— the default step: anai-sdkagent decides{ render, target, reason }(normalized against the allowed render modes + target names so a stray value cannot slip through), then hands the plan to aDeployTarget.DeployTarget— the seam. A target executes the plan; deciding it is the step's job.planOnlyTarget— the v1 default: decides + narrates, reportsdeployed: false. The honest "do not build blind deploy now" — real Dockploy / Cloudflare adapters implementDeployTargetand 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.deployand adeploynarration event fires after the loop. Runs for both scopes (not loop-gated), and getsproductionGradein 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,agentDeployincl. 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.