@ambystech/ambykit 1.5.0 → 2.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +190 -1
- package/README.md +12 -7
- package/dist/cli/add.js +9 -0
- package/dist/cli/add.js.map +1 -1
- package/dist/cli/analyze.js +25 -4
- package/dist/cli/analyze.js.map +1 -1
- package/dist/cli/base-command.d.ts +8 -0
- package/dist/cli/base-command.js +30 -0
- package/dist/cli/base-command.js.map +1 -1
- package/dist/cli/check.d.ts +2 -0
- package/dist/cli/check.js +38 -4
- package/dist/cli/check.js.map +1 -1
- package/dist/cli/dashboard.d.ts +5 -2
- package/dist/cli/dashboard.js +95 -24
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/edit.d.ts +17 -0
- package/dist/cli/edit.js +71 -0
- package/dist/cli/edit.js.map +1 -0
- package/dist/cli/fleet.d.ts +2 -0
- package/dist/cli/fleet.js +23 -1
- package/dist/cli/fleet.js.map +1 -1
- package/dist/cli/index.d.ts +1 -5
- package/dist/cli/index.js +21 -109
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/init.js +9 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/lane.d.ts +38 -3
- package/dist/cli/lane.js +124 -108
- package/dist/cli/lane.js.map +1 -1
- package/dist/cli/main.d.ts +6 -0
- package/dist/cli/main.js +111 -0
- package/dist/cli/main.js.map +1 -0
- package/dist/cli/mcp.d.ts +2 -0
- package/dist/cli/mcp.js +4 -0
- package/dist/cli/mcp.js.map +1 -1
- package/dist/cli/migrate.d.ts +17 -0
- package/dist/cli/migrate.js +67 -0
- package/dist/cli/migrate.js.map +1 -0
- package/dist/cli/node-guard.d.ts +4 -0
- package/dist/cli/node-guard.js +12 -0
- package/dist/cli/node-guard.js.map +1 -0
- package/dist/cli/run-budget.d.ts +25 -0
- package/dist/cli/run-budget.js +112 -0
- package/dist/cli/run-budget.js.map +1 -0
- package/dist/cli/run-control.d.ts +40 -0
- package/dist/cli/run-control.js +161 -0
- package/dist/cli/run-control.js.map +1 -0
- package/dist/cli/run-files.d.ts +96 -0
- package/dist/cli/run-files.js +120 -0
- package/dist/cli/run-files.js.map +1 -0
- package/dist/cli/run-fleet-control.d.ts +16 -0
- package/dist/cli/run-fleet-control.js +23 -0
- package/dist/cli/run-fleet-control.js.map +1 -0
- package/dist/cli/run-fleet-loop.d.ts +77 -0
- package/dist/cli/run-fleet-loop.js +156 -0
- package/dist/cli/run-fleet-loop.js.map +1 -0
- package/dist/cli/run-fleet-merge.d.ts +22 -0
- package/dist/cli/run-fleet-merge.js +69 -0
- package/dist/cli/run-fleet-merge.js.map +1 -0
- package/dist/cli/run-fleet-prepare.d.ts +35 -0
- package/dist/cli/run-fleet-prepare.js +58 -0
- package/dist/cli/run-fleet-prepare.js.map +1 -0
- package/dist/cli/run-fleet.d.ts +28 -0
- package/dist/cli/run-fleet.js +382 -0
- package/dist/cli/run-fleet.js.map +1 -0
- package/dist/cli/run-gates.d.ts +25 -0
- package/dist/cli/run-gates.js +45 -0
- package/dist/cli/run-gates.js.map +1 -0
- package/dist/cli/run-launch.d.ts +17 -0
- package/dist/cli/run-launch.js +106 -0
- package/dist/cli/run-launch.js.map +1 -0
- package/dist/cli/run-loop.d.ts +39 -0
- package/dist/cli/run-loop.js +197 -0
- package/dist/cli/run-loop.js.map +1 -0
- package/dist/cli/run-merger.d.ts +18 -0
- package/dist/cli/run-merger.js +126 -0
- package/dist/cli/run-merger.js.map +1 -0
- package/dist/cli/run-phase-check.d.ts +32 -0
- package/dist/cli/run-phase-check.js +173 -0
- package/dist/cli/run-phase-check.js.map +1 -0
- package/dist/cli/run-plan.d.ts +28 -0
- package/dist/cli/run-plan.js +62 -0
- package/dist/cli/run-plan.js.map +1 -0
- package/dist/cli/run-process.d.ts +45 -0
- package/dist/cli/run-process.js +111 -0
- package/dist/cli/run-process.js.map +1 -0
- package/dist/cli/run-protocol-prompts.d.ts +17 -0
- package/dist/cli/run-protocol-prompts.js +63 -0
- package/dist/cli/run-protocol-prompts.js.map +1 -0
- package/dist/cli/run-protocol.d.ts +17 -0
- package/dist/cli/run-protocol.js +128 -0
- package/dist/cli/run-protocol.js.map +1 -0
- package/dist/cli/run-script.d.ts +11 -0
- package/dist/cli/run-script.js +67 -0
- package/dist/cli/run-script.js.map +1 -0
- package/dist/cli/run-session.d.ts +93 -0
- package/dist/cli/run-session.js +21 -0
- package/dist/cli/run-session.js.map +1 -0
- package/dist/cli/run-stages.d.ts +11 -0
- package/dist/cli/run-stages.js +34 -0
- package/dist/cli/run-stages.js.map +1 -0
- package/dist/cli/run-supervisor.d.ts +20 -0
- package/dist/cli/run-supervisor.js +167 -0
- package/dist/cli/run-supervisor.js.map +1 -0
- package/dist/cli/run.d.ts +81 -0
- package/dist/cli/run.js +437 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/sync.js +10 -5
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/ui/dashboard/empty-state.d.ts +5 -0
- package/dist/cli/ui/dashboard/empty-state.js +7 -0
- package/dist/cli/ui/dashboard/empty-state.js.map +1 -1
- package/dist/cli/ui/dashboard/filter-line.d.ts +13 -0
- package/dist/cli/ui/dashboard/filter-line.js +20 -0
- package/dist/cli/ui/dashboard/filter-line.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-tab.d.ts +25 -0
- package/dist/cli/ui/dashboard/fleet-tab.js +91 -0
- package/dist/cli/ui/dashboard/fleet-tab.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-tokens.d.ts +404 -0
- package/dist/cli/ui/dashboard/fleet-tokens.js +405 -0
- package/dist/cli/ui/dashboard/fleet-tokens.js.map +1 -0
- package/dist/cli/ui/dashboard/fleet-view.d.ts +51 -0
- package/dist/cli/ui/dashboard/fleet-view.js +211 -0
- package/dist/cli/ui/dashboard/fleet-view.js.map +1 -0
- package/dist/cli/ui/dashboard/help-overlay.d.ts +3 -1
- package/dist/cli/ui/dashboard/help-overlay.js +36 -3
- package/dist/cli/ui/dashboard/help-overlay.js.map +1 -1
- package/dist/cli/ui/dashboard/layout.d.ts +15 -0
- package/dist/cli/ui/dashboard/layout.js +22 -0
- package/dist/cli/ui/dashboard/layout.js.map +1 -1
- package/dist/cli/ui/dashboard/metrics-panel.d.ts +15 -0
- package/dist/cli/ui/dashboard/metrics-panel.js +143 -0
- package/dist/cli/ui/dashboard/metrics-panel.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-bar.d.ts +14 -0
- package/dist/cli/ui/dashboard/tab-bar.js +37 -0
- package/dist/cli/ui/dashboard/tab-bar.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-frame.d.ts +43 -0
- package/dist/cli/ui/dashboard/tab-frame.js +68 -0
- package/dist/cli/ui/dashboard/tab-frame.js.map +1 -0
- package/dist/cli/ui/dashboard/tab-tokens.d.ts +569 -0
- package/dist/cli/ui/dashboard/tab-tokens.js +570 -0
- package/dist/cli/ui/dashboard/tab-tokens.js.map +1 -0
- package/dist/cli/ui/icons.d.ts +22 -0
- package/dist/cli/ui/icons.js +17 -0
- package/dist/cli/ui/icons.js.map +1 -0
- package/dist/cli/ui/interactive/fleet-actions.d.ts +24 -0
- package/dist/cli/ui/interactive/fleet-actions.js +30 -0
- package/dist/cli/ui/interactive/fleet-actions.js.map +1 -0
- package/dist/cli/ui/interactive/fleet.d.ts +54 -0
- package/dist/cli/ui/interactive/fleet.js +98 -0
- package/dist/cli/ui/interactive/fleet.js.map +1 -0
- package/dist/cli/ui/interactive/fullscreen.js +38 -10
- package/dist/cli/ui/interactive/fullscreen.js.map +1 -1
- package/dist/cli/ui/interactive/list-filter.d.ts +25 -0
- package/dist/cli/ui/interactive/list-filter.js +38 -0
- package/dist/cli/ui/interactive/list-filter.js.map +1 -0
- package/dist/cli/ui/interactive/live.d.ts +8 -0
- package/dist/cli/ui/interactive/live.js +13 -0
- package/dist/cli/ui/interactive/live.js.map +1 -1
- package/dist/cli/ui/interactive/overview.d.ts +52 -3
- package/dist/cli/ui/interactive/overview.js +354 -15
- package/dist/cli/ui/interactive/overview.js.map +1 -1
- package/dist/cli/ui/interactive/tabs.d.ts +15 -0
- package/dist/cli/ui/interactive/tabs.js +27 -0
- package/dist/cli/ui/interactive/tabs.js.map +1 -0
- package/dist/cli/ui/tool-options.d.ts +5 -1
- package/dist/cli/ui/tool-options.js +9 -3
- package/dist/cli/ui/tool-options.js.map +1 -1
- package/dist/cli/update.js +13 -2
- package/dist/cli/update.js.map +1 -1
- package/dist/core/analyze.d.ts +11 -0
- package/dist/core/analyze.js +33 -3
- package/dist/core/analyze.js.map +1 -1
- package/dist/core/burndown.d.ts +1 -1
- package/dist/core/burndown.js +2 -2
- package/dist/core/burndown.js.map +1 -1
- package/dist/core/checkouts.js +3 -2
- package/dist/core/checkouts.js.map +1 -1
- package/dist/core/config-schema.d.ts +45 -0
- package/dist/core/config-schema.js +63 -0
- package/dist/core/config-schema.js.map +1 -0
- package/dist/core/config.d.ts +6 -0
- package/dist/core/config.js +16 -0
- package/dist/core/config.js.map +1 -1
- package/dist/core/dashboard.js +3 -2
- package/dist/core/dashboard.js.map +1 -1
- package/dist/core/decisions.d.ts +12 -1
- package/dist/core/decisions.js +7 -2
- package/dist/core/decisions.js.map +1 -1
- package/dist/core/deprecation.d.ts +15 -0
- package/dist/core/deprecation.js +27 -0
- package/dist/core/deprecation.js.map +1 -0
- package/dist/core/features.js +11 -5
- package/dist/core/features.js.map +1 -1
- package/dist/core/fleet/fleet-text.d.ts +2 -0
- package/dist/core/fleet/fleet-text.js +41 -0
- package/dist/core/fleet/fleet-text.js.map +1 -0
- package/dist/core/fleet/fleet-view.d.ts +35 -0
- package/dist/core/fleet/fleet-view.js +43 -0
- package/dist/core/fleet/fleet-view.js.map +1 -0
- package/dist/core/fleet/fleets.d.ts +18 -0
- package/dist/core/fleet/fleets.js +64 -0
- package/dist/core/fleet/fleets.js.map +1 -0
- package/dist/core/fleet/flow-input.js +3 -4
- package/dist/core/fleet/flow-input.js.map +1 -1
- package/dist/core/fleet/index.d.ts +3 -0
- package/dist/core/fleet/index.js +3 -0
- package/dist/core/fleet/index.js.map +1 -1
- package/dist/core/fleet/runs.d.ts +18 -2
- package/dist/core/fleet/runs.js +67 -16
- package/dist/core/fleet/runs.js.map +1 -1
- package/dist/core/fleet-plan/budget.d.ts +18 -0
- package/dist/core/fleet-plan/budget.js +13 -0
- package/dist/core/fleet-plan/budget.js.map +1 -0
- package/dist/core/fleet-plan/contain.d.ts +10 -0
- package/dist/core/fleet-plan/contain.js +37 -0
- package/dist/core/fleet-plan/contain.js.map +1 -0
- package/dist/core/fleet-plan/format.d.ts +4 -0
- package/dist/core/fleet-plan/format.js +52 -0
- package/dist/core/fleet-plan/format.js.map +1 -0
- package/dist/core/fleet-plan/index.d.ts +7 -0
- package/dist/core/fleet-plan/index.js +8 -0
- package/dist/core/fleet-plan/index.js.map +1 -0
- package/dist/core/fleet-plan/order.d.ts +30 -0
- package/dist/core/fleet-plan/order.js +96 -0
- package/dist/core/fleet-plan/order.js.map +1 -0
- package/dist/core/fleet-plan/ownership.d.ts +12 -0
- package/dist/core/fleet-plan/ownership.js +36 -0
- package/dist/core/fleet-plan/ownership.js.map +1 -0
- package/dist/core/fleet-plan/plan.d.ts +23 -0
- package/dist/core/fleet-plan/plan.js +40 -0
- package/dist/core/fleet-plan/plan.js.map +1 -0
- package/dist/core/fleet-plan/read.d.ts +19 -0
- package/dist/core/fleet-plan/read.js +35 -0
- package/dist/core/fleet-plan/read.js.map +1 -0
- package/dist/core/fleet-plan/schedule.d.ts +15 -0
- package/dist/core/fleet-plan/schedule.js +27 -0
- package/dist/core/fleet-plan/schedule.js.map +1 -0
- package/dist/core/fleet-plan/select.d.ts +20 -0
- package/dist/core/fleet-plan/select.js +64 -0
- package/dist/core/fleet-plan/select.js.map +1 -0
- package/dist/core/fleet-plan/types.d.ts +123 -0
- package/dist/core/fleet-plan/types.js +2 -0
- package/dist/core/fleet-plan/types.js.map +1 -0
- package/dist/core/fleet-view/derive.d.ts +14 -0
- package/dist/core/fleet-view/derive.js +54 -0
- package/dist/core/fleet-view/derive.js.map +1 -0
- package/dist/core/fleet-view/group.d.ts +51 -0
- package/dist/core/fleet-view/group.js +73 -0
- package/dist/core/fleet-view/group.js.map +1 -0
- package/dist/core/fleet-view/json.d.ts +37 -0
- package/dist/core/fleet-view/json.js +25 -0
- package/dist/core/fleet-view/json.js.map +1 -0
- package/dist/core/fleet-view/read.d.ts +8 -0
- package/dist/core/fleet-view/read.js +44 -0
- package/dist/core/fleet-view/read.js.map +1 -0
- package/dist/core/fleet-view/types.d.ts +52 -0
- package/dist/core/fleet-view/types.js +2 -0
- package/dist/core/fleet-view/types.js.map +1 -0
- package/dist/core/graph-format.d.ts +2 -0
- package/dist/core/graph-format.js +4 -3
- package/dist/core/graph-format.js.map +1 -1
- package/dist/core/graph-types.d.ts +4 -0
- package/dist/core/graph.js +38 -1
- package/dist/core/graph.js.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.js +1 -0
- package/dist/core/index.js.map +1 -1
- package/dist/core/lane-merge.d.ts +29 -0
- package/dist/core/lane-merge.js +105 -0
- package/dist/core/lane-merge.js.map +1 -0
- package/dist/core/lanes.d.ts +53 -0
- package/dist/core/lanes.js +131 -0
- package/dist/core/lanes.js.map +1 -1
- package/dist/core/legacy.d.ts +2 -1
- package/dist/core/legacy.js +7 -2
- package/dist/core/legacy.js.map +1 -1
- package/dist/core/markers.d.ts +7 -0
- package/dist/core/markers.js +3 -2
- package/dist/core/markers.js.map +1 -1
- package/dist/core/metrics/cycle.d.ts +3 -0
- package/dist/core/metrics/cycle.js +47 -0
- package/dist/core/metrics/cycle.js.map +1 -0
- package/dist/core/metrics/gap.d.ts +9 -0
- package/dist/core/metrics/gap.js +35 -0
- package/dist/core/metrics/gap.js.map +1 -0
- package/dist/core/metrics/index.d.ts +21 -0
- package/dist/core/metrics/index.js +67 -0
- package/dist/core/metrics/index.js.map +1 -0
- package/dist/core/metrics/model.d.ts +23 -0
- package/dist/core/metrics/model.js +46 -0
- package/dist/core/metrics/model.js.map +1 -0
- package/dist/core/metrics/revisions.d.ts +22 -0
- package/dist/core/metrics/revisions.js +88 -0
- package/dist/core/metrics/revisions.js.map +1 -0
- package/dist/core/metrics/types.d.ts +74 -0
- package/dist/core/metrics/types.js +3 -0
- package/dist/core/metrics/types.js.map +1 -0
- package/dist/core/migrate/convert-spec.d.ts +19 -0
- package/dist/core/migrate/convert-spec.js +99 -0
- package/dist/core/migrate/convert-spec.js.map +1 -0
- package/dist/core/migrate/convert-tasks.d.ts +16 -0
- package/dist/core/migrate/convert-tasks.js +121 -0
- package/dist/core/migrate/convert-tasks.js.map +1 -0
- package/dist/core/migrate/run.d.ts +36 -0
- package/dist/core/migrate/run.js +178 -0
- package/dist/core/migrate/run.js.map +1 -0
- package/dist/core/migrate/safety.d.ts +33 -0
- package/dist/core/migrate/safety.js +199 -0
- package/dist/core/migrate/safety.js.map +1 -0
- package/dist/core/migrate/summary.d.ts +36 -0
- package/dist/core/migrate/summary.js +140 -0
- package/dist/core/migrate/summary.js.map +1 -0
- package/dist/core/moved-targets.d.ts +73 -8
- package/dist/core/moved-targets.js +79 -1
- package/dist/core/moved-targets.js.map +1 -1
- package/dist/core/overview-types.d.ts +7 -0
- package/dist/core/overview-types.js.map +1 -1
- package/dist/core/overview.js +4 -0
- package/dist/core/overview.js.map +1 -1
- package/dist/core/query.js +3 -2
- package/dist/core/query.js.map +1 -1
- package/dist/core/run-gate-actions.d.ts +51 -0
- package/dist/core/run-gate-actions.js +105 -0
- package/dist/core/run-gate-actions.js.map +1 -0
- package/dist/core/run-launch-plan.d.ts +53 -0
- package/dist/core/run-launch-plan.js +32 -0
- package/dist/core/run-launch-plan.js.map +1 -0
- package/dist/core/run-prompt.d.ts +89 -0
- package/dist/core/run-prompt.js +73 -0
- package/dist/core/run-prompt.js.map +1 -0
- package/dist/core/run-result.d.ts +42 -0
- package/dist/core/run-result.js +163 -0
- package/dist/core/run-result.js.map +1 -0
- package/dist/core/run-review.d.ts +50 -0
- package/dist/core/run-review.js +20 -0
- package/dist/core/run-review.js.map +1 -0
- package/dist/core/run-schedule.d.ts +23 -0
- package/dist/core/run-schedule.js +40 -0
- package/dist/core/run-schedule.js.map +1 -0
- package/dist/core/run-stability.d.ts +23 -0
- package/dist/core/run-stability.js +38 -0
- package/dist/core/run-stability.js.map +1 -0
- package/dist/core/run-supervise.d.ts +71 -0
- package/dist/core/run-supervise.js +61 -0
- package/dist/core/run-supervise.js.map +1 -0
- package/dist/core/runners.d.ts +114 -0
- package/dist/core/runners.js +146 -0
- package/dist/core/runners.js.map +1 -0
- package/dist/core/sibling-reads.d.ts +41 -0
- package/dist/core/sibling-reads.js +100 -0
- package/dist/core/sibling-reads.js.map +1 -0
- package/dist/core/spec-format/blocks.d.ts +19 -0
- package/dist/core/spec-format/blocks.js +58 -0
- package/dist/core/spec-format/blocks.js.map +1 -0
- package/dist/core/spec-format/detect.d.ts +14 -0
- package/dist/core/spec-format/detect.js +30 -0
- package/dist/core/spec-format/detect.js.map +1 -0
- package/dist/core/spec-format/dispatch.d.ts +13 -0
- package/dist/core/spec-format/dispatch.js +64 -0
- package/dist/core/spec-format/dispatch.js.map +1 -0
- package/dist/core/spec-format/frontmatter.d.ts +18 -0
- package/dist/core/spec-format/frontmatter.js +37 -0
- package/dist/core/spec-format/frontmatter.js.map +1 -0
- package/dist/core/spec-format/legacy.d.ts +40 -0
- package/dist/core/spec-format/legacy.js +91 -0
- package/dist/core/spec-format/legacy.js.map +1 -0
- package/dist/core/spec-format/meta.d.ts +3 -0
- package/dist/core/spec-format/meta.js +24 -0
- package/dist/core/spec-format/meta.js.map +1 -0
- package/dist/core/spec-format/model.d.ts +50 -0
- package/dist/core/spec-format/model.js +9 -0
- package/dist/core/spec-format/model.js.map +1 -0
- package/dist/core/spec-format/read-spec.d.ts +4 -0
- package/dist/core/spec-format/read-spec.js +102 -0
- package/dist/core/spec-format/read-spec.js.map +1 -0
- package/dist/core/spec-format/read-tasks.d.ts +2 -0
- package/dist/core/spec-format/read-tasks.js +146 -0
- package/dist/core/spec-format/read-tasks.js.map +1 -0
- package/dist/core/spec-format/write.d.ts +23 -0
- package/dist/core/spec-format/write.js +382 -0
- package/dist/core/spec-format/write.js.map +1 -0
- package/dist/core/subagents.js +0 -2
- package/dist/core/subagents.js.map +1 -1
- package/dist/core/tasks-edit.d.ts +4 -1
- package/dist/core/tasks-edit.js +19 -6
- package/dist/core/tasks-edit.js.map +1 -1
- package/dist/core/types.d.ts +21 -0
- package/dist/emitters/index.d.ts +0 -4
- package/dist/emitters/index.js +0 -10
- package/dist/emitters/index.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/plugins/api.d.ts +14 -8
- package/dist/plugins/api.js +9 -8
- package/dist/plugins/api.js.map +1 -1
- package/dist/plugins/index.d.ts +3 -2
- package/dist/plugins/index.js +3 -2
- package/dist/plugins/index.js.map +1 -1
- package/dist/plugins/loader.d.ts +8 -0
- package/dist/plugins/loader.js +36 -6
- package/dist/plugins/loader.js.map +1 -1
- package/dist/plugins/report.d.ts +1 -1
- package/dist/plugins/report.js +3 -4
- package/dist/plugins/report.js.map +1 -1
- package/dist/plugins/session.d.ts +1 -0
- package/dist/plugins/session.js +1 -1
- package/dist/plugins/session.js.map +1 -1
- package/dist/testkit/index.d.ts +1 -1
- package/docs/architecture.md +16 -1
- package/docs/artifacts/decision-record.md +15 -0
- package/docs/artifacts/spec.md +35 -6
- package/docs/artifacts/tasks.md +67 -16
- package/docs/cli-reference.md +274 -5
- package/docs/contributing.md +6 -0
- package/docs/migration.md +191 -0
- package/docs/plugin-api.md +21 -13
- package/docs/plugin-split.md +5 -3
- package/docs/plugin-trust.md +2 -2
- package/docs/plugins-release.md +105 -0
- package/docs/release.md +103 -0
- package/docs/stability.md +152 -0
- package/docs/tool-compatibility.md +41 -3
- package/docs/workflow.md +10 -6
- package/package.json +4 -2
- package/src/agents/worker.md +2 -1
- package/src/prompts/converge.md +2 -2
- package/src/prompts/implement.md +13 -11
- package/src/prompts/revise.md +5 -2
- package/src/prompts/run.md +7 -4
- package/src/prompts/specify.md +5 -3
- package/src/prompts/tasks.md +9 -8
- package/src/templates/spec.md +10 -4
- package/src/templates/tasks.md +35 -13
- package/dist/emitters/antigravity-cli.d.ts +0 -15
- package/dist/emitters/antigravity-cli.js +0 -20
- package/dist/emitters/antigravity-cli.js.map +0 -1
- package/dist/emitters/antigravity.d.ts +0 -20
- package/dist/emitters/antigravity.js +0 -24
- package/dist/emitters/antigravity.js.map +0 -1
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
# Stability
|
|
2
|
+
|
|
3
|
+
What AmbyKit promises not to break, and how it changes what it promises. This page is the **contract** for two surfaces: the
|
|
4
|
+
`ambykit run` command and the plugin API (with its contract test kit). It is read by a test
|
|
5
|
+
(`test/stability-contract.test.ts`): every item in a `contract` block below is checked against the code, so this page and the
|
|
6
|
+
code cannot drift apart. A promise without a check is not a promise.
|
|
7
|
+
|
|
8
|
+
## What "stable" promises
|
|
9
|
+
|
|
10
|
+
Stable means a person can build on a surface and expect it to keep working across the minor releases of a major version.
|
|
11
|
+
A breaking change to anything listed on this page is held for the next major release (see
|
|
12
|
+
[Changing what is stable](#changing-what-is-stable)).
|
|
13
|
+
|
|
14
|
+
Two surfaces are covered, each listed in its own section below:
|
|
15
|
+
|
|
16
|
+
- **`run`:** the `ambykit run` command: its flags, its exit codes, the structure of the lines it prints, the layout of the
|
|
17
|
+
fleet state files and the directive protocol.
|
|
18
|
+
- **The plugin API:** the names a plugin imports from `@ambystech/ambykit/plugin`, the shape of a plugin's descriptor, the rules
|
|
19
|
+
the loader applies, and the contract test kit published as `@ambystech/ambykit/testkit`.
|
|
20
|
+
|
|
21
|
+
Anything **not listed** on this page is not covered, and changing it is not a breaking change. That includes every internal
|
|
22
|
+
module, the wording of messages other than the lines listed, the contents of a state file beyond the fields listed, and the
|
|
23
|
+
loader, registry and range-check internals. If you depend on something that is not listed, open an issue so it can be listed
|
|
24
|
+
(and tested) or so you can be pointed at what is.
|
|
25
|
+
|
|
26
|
+
## Additions
|
|
27
|
+
|
|
28
|
+
Additions are allowed in a minor release. A new flag, a new exported name, a new field in a state file, a new line, a new
|
|
29
|
+
subcommand or a new target for plugins does not break what is listed, so it can ship in any minor release, and it becomes
|
|
30
|
+
covered only when it is added to this page (with its check). A tool that reads these surfaces must ignore what it does not know.
|
|
31
|
+
|
|
32
|
+
## Changing what is stable
|
|
33
|
+
|
|
34
|
+
Nothing listed on this page is removed or changed incompatibly without notice. The policy, in order:
|
|
35
|
+
|
|
36
|
+
1. **Deprecate in a minor release.** A stable flag, subcommand, exported name, state-file field or printed line is first
|
|
37
|
+
*deprecated* in a minor release. The old name keeps working exactly as before. The replacement exists from that release on.
|
|
38
|
+
2. **One notice, once per run, on stderr.** Using a deprecated name prints one line that names the replacement
|
|
39
|
+
(`ambykit: '<name>' is deprecated and will be removed in the next major release; use '<replacement>' instead.`), once per
|
|
40
|
+
process, to the error stream. It never goes to the output stream, so `--json` output and pipes are not disturbed.
|
|
41
|
+
3. **Remove only in the next major release.** A deprecated name is removed no earlier than the next major version, and the
|
|
42
|
+
changelog says so when it is deprecated and again when it is removed.
|
|
43
|
+
4. **Security exception.** A fix for a security problem may break a stable behaviour in a minor or patch release when keeping it
|
|
44
|
+
would leave people exposed. The changelog must say that a stable behaviour changed, what changed and why.
|
|
45
|
+
|
|
46
|
+
Nothing is deprecated at 2.0. A name deprecated in a later 2.x release keeps working for plugins and scripts written for 2.0 until
|
|
47
|
+
3.0. The notice is produced by one helper (`src/core/deprecation.ts`), so every deprecation reads the same.
|
|
48
|
+
|
|
49
|
+
## The `run` surface
|
|
50
|
+
|
|
51
|
+
`ambykit run` launches a feature's prepared lanes with headless assistants, supervises them and merges the result; `ambykit run
|
|
52
|
+
<feature> <feature>…` does the same for several features as one fleet. Stable means these stay as listed:
|
|
53
|
+
|
|
54
|
+
- **Flags and subcommands:** each name below is accepted, with the meaning in `docs/cli-reference.md`. Nothing launches without
|
|
55
|
+
`--yes`; `--emit-script` writes the commands and launches nothing.
|
|
56
|
+
- **Exit codes:** `0` when the command did what was asked, `1` when it could not (a missing feature, a refused runner, a failed
|
|
57
|
+
or paused run). No other code is promised.
|
|
58
|
+
- **Printed lines:** the structure of the plan lines and the finish line, with `<…>` standing for the value. Other wording is not
|
|
59
|
+
covered.
|
|
60
|
+
- **State files:** `.amby/fleet/<run>/` holds one run (`<feature>.<n>`): its record, its event log, its budget counters, one file
|
|
61
|
+
per lane, the prompt each lane was given and one directive per lane. A fleet of several features has its own directory
|
|
62
|
+
`.amby/fleet/<fleet>/` (`fleet-<n>`) with a `fleet.json` and the runs of its features. The files are readable without a model; only
|
|
63
|
+
the fields listed are promised.
|
|
64
|
+
- **Directive protocol:** a directive is `{ "action": …, "at": … }` at `.amby/fleet/<run>/directives/<lane>.json`; `action` is one
|
|
65
|
+
of `continue`, `pause` or `stop`. The last write wins and a missing file means continue; a worker obeys at its next report.
|
|
66
|
+
|
|
67
|
+
```contract
|
|
68
|
+
{
|
|
69
|
+
"surface": "run",
|
|
70
|
+
"subcommands": ["approve", "reject", "pause", "stop", "resume"],
|
|
71
|
+
"flags": [
|
|
72
|
+
"--all-ready", "--yes", "--emit-script", "--assistant", "--unattended", "--max-minutes", "--max-tasks", "--max-tokens",
|
|
73
|
+
"--continue-run", "--continue-fleet", "--json", "--runners", "--gate", "--reason", "--reassign"
|
|
74
|
+
],
|
|
75
|
+
"exitCodes": [0, 1]
|
|
76
|
+
}
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
```contract
|
|
80
|
+
{
|
|
81
|
+
"surface": "run",
|
|
82
|
+
"printed": [
|
|
83
|
+
"Run plan for <feature> — run <run>",
|
|
84
|
+
"Lanes: <n>",
|
|
85
|
+
"Budgets: <n> minutes wall-clock",
|
|
86
|
+
"Run <run> is done: every lane merged."
|
|
87
|
+
],
|
|
88
|
+
"stateFiles": [
|
|
89
|
+
".amby/fleet/<run>/run.json",
|
|
90
|
+
".amby/fleet/<run>/events.jsonl",
|
|
91
|
+
".amby/fleet/<run>/budget.json",
|
|
92
|
+
".amby/fleet/<run>/lanes/<lane>.json",
|
|
93
|
+
".amby/fleet/<run>/prompts/<lane>.md",
|
|
94
|
+
".amby/fleet/<run>/directives/<lane>.json",
|
|
95
|
+
".amby/fleet/<fleet>/fleet.json"
|
|
96
|
+
],
|
|
97
|
+
"directiveActions": ["continue", "pause", "stop"],
|
|
98
|
+
"directiveFields": ["action", "at"]
|
|
99
|
+
}
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
`run` is **stable from 2.0**: one fleet built two dependent features of this repository with a verified runner (see
|
|
103
|
+
`specs/033-stable-run-and-plugin-api/dogfood.md`); this list is what the stable label promises, and a runner is runnable only where it
|
|
104
|
+
was verified (`ambykit run --runners`).
|
|
105
|
+
|
|
106
|
+
## The plugin API surface
|
|
107
|
+
|
|
108
|
+
A plugin is an npm package named `ambykit-emitter-<name>` that adds emitter targets. Stable means a plugin written against this API
|
|
109
|
+
keeps loading and passing the contract kit across the minor releases of its major version. A plugin declares the API range it
|
|
110
|
+
supports in its `package.json` (`"ambykit": { "pluginApi": "^2" }`), and the API version is `apiVersion` on the object a factory
|
|
111
|
+
receives.
|
|
112
|
+
|
|
113
|
+
- **Exported names:** what a plugin may import from `@ambystech/ambykit/plugin`, values and types. Everything else in the package
|
|
114
|
+
(the loader, the registry, the range check, the emitter internals) is internal.
|
|
115
|
+
- **Descriptor shape:** the default export is an object, or a factory that receives the API and returns one, of the form
|
|
116
|
+
`{ targets: [ { id, displayName, emitter: { toolId, displayName, commandSurface, commandDir, emit } } ] }`. The loader checks
|
|
117
|
+
the shape, never `instanceof`.
|
|
118
|
+
- **Loading rules:** only packages listed in `.amby/config.json` are looked at; the listed version is an exact `x.y.z`; the package
|
|
119
|
+
is found only under the project's own `node_modules`; its name starts with `ambykit-emitter-`; and its declared API range must
|
|
120
|
+
contain the running API version. There is no sandbox: a plugin runs with your permissions (`docs/plugin-trust.md`).
|
|
121
|
+
|
|
122
|
+
```contract
|
|
123
|
+
{
|
|
124
|
+
"surface": "plugin",
|
|
125
|
+
"exports": [
|
|
126
|
+
"PLUGIN_API_VERSION", "BaseEmitter", "SkillsEmitter", "TomlCommandEmitter", "skillName", "skillPath", "skillFrontmatter",
|
|
127
|
+
"tomlBasic", "tomlPrompt", "MCP_SERVER_NAME", "MCP_COMMAND"
|
|
128
|
+
],
|
|
129
|
+
"exportTypes": [
|
|
130
|
+
"TargetDef", "CommandSpec", "CommandSurface", "EmittedFile", "RulesContext", "Role", "PluginModule", "PluginFactory", "PluginApi"
|
|
131
|
+
],
|
|
132
|
+
"descriptor": [
|
|
133
|
+
"targets", "targets[].id", "targets[].displayName", "targets[].emitter", "targets[].emitter.toolId",
|
|
134
|
+
"targets[].emitter.displayName", "targets[].emitter.commandSurface", "targets[].emitter.commandDir", "targets[].emitter.emit"
|
|
135
|
+
],
|
|
136
|
+
"loadingRules": ["exact-pin", "project-node-modules", "package-name", "api-range"]
|
|
137
|
+
}
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## The contract test kit
|
|
141
|
+
|
|
142
|
+
`@ambystech/ambykit/testkit` checks that an emitter writes what its host's documentation says: the command paths and the leading
|
|
143
|
+
frontmatter keys, against a matrix row the plugin author records from the host's own docs. With no row the check fails. Stable
|
|
144
|
+
means these names and their behaviour; the kit checks only the surface listed here and nothing outside it.
|
|
145
|
+
|
|
146
|
+
```contract
|
|
147
|
+
{
|
|
148
|
+
"surface": "kit",
|
|
149
|
+
"exports": ["assertEmitterContract", "checkEmitterContract", "frontmatterKeys", "createPluginApi"],
|
|
150
|
+
"exportTypes": ["ContractFailure", "MatrixRow", "PluginApi"]
|
|
151
|
+
}
|
|
152
|
+
```
|
|
@@ -17,8 +17,8 @@ Several targets share one emitter's output (why `BaseEmitter` + thin subclasses
|
|
|
17
17
|
| OpenCode | `OpenCodeEmitter` | `commands` |
|
|
18
18
|
| Cursor | `CursorEmitter` | `commands` |
|
|
19
19
|
| Cursor CLI (`cursor-agent`) | `CursorCliEmitter` | `none` (rules-only) |
|
|
20
|
-
| Antigravity (IDE) | `
|
|
21
|
-
| Antigravity CLI (`agy`) | `
|
|
20
|
+
| Antigravity (IDE) | official plugin `@ambystech/ambykit-emitter-antigravity` | `skills` (workflows retired 2026-10-19) |
|
|
21
|
+
| Antigravity CLI (`agy`) | official plugin `@ambystech/ambykit-emitter-antigravity` | `skills` (reuses Antigravity) |
|
|
22
22
|
| Codex CLI (`codex`) | `CodexEmitter` | `skills` |
|
|
23
23
|
| Gemini CLI (`gemini`) | `GeminiEmitter` | `commands` (TOML) |
|
|
24
24
|
| LLxprt Code (`llxprt`) | `LlxprtEmitter` | `commands` (TOML) |
|
|
@@ -195,6 +195,44 @@ currently affect only the worktree tag, which uses Octicons `oct-git_branch` U+F
|
|
|
195
195
|
Unicode in every mode: the brand glyphs (`cod-claude` U+EC82, `cod-openai` U+EC81) only arrived in
|
|
196
196
|
recent Nerd Fonts (present in v3.5.1), and older installs render them as empty boxes.
|
|
197
197
|
|
|
198
|
+
## Headless runners (`ambykit run`, feature 028)
|
|
199
|
+
|
|
200
|
+
`ambykit run` launches one assistant per lane without a person at the keyboard. Only a **verified** runner is
|
|
201
|
+
ever launched (Principle 4); the registry in `src/core/runners.ts` and this table carry the same rows, and a
|
|
202
|
+
test keeps them equal. A row becomes `verified` only after its command has run a real lane task on a live
|
|
203
|
+
install (the manual tasks T044 and T045 of spec 028), with the CLI version recorded.
|
|
204
|
+
|
|
205
|
+
| Runner | Command (prompt on stdin) | Exit behaviour | Reports usage | Status | Version |
|
|
206
|
+
| --- | --- | --- | --- | --- | --- |
|
|
207
|
+
| `claude` | `claude -p --permission-mode acceptEdits --allowedTools Bash(ambykit:*),PowerShell(ambykit:*),Bash(npm test:*),PowerShell(npm test:*),Bash(npx vitest:*),PowerShell(npx vitest:*),Bash(npm run typecheck:*),PowerShell(npm run typecheck:*) --output-format json` | 0 = finished its turn; non-zero, an error result or refused tools with tasks left open = failed | yes | verified | 2.1.332 |
|
|
208
|
+
| `codex` | `codex exec --sandbox workspace-write -c approval_policy="never" -c windows.sandbox="unelevated" --json -` | 0 = finished its turn; non-zero or a `turn.failed` event = failed | yes | unverified | — |
|
|
209
|
+
|
|
210
|
+
The `claude` command was changed after a live check on Windows (claude 2.1.332): plain `claude -p` exited 0 having
|
|
211
|
+
done nothing, because every edit and shell command needs an approval nobody gives headless. `acceptEdits` allows the
|
|
212
|
+
lane's file edits, the allowed tools add `ambykit` itself and the check commands in `fleet.allowedCommands`
|
|
213
|
+
(default `npm test`, `npx vitest`, `npm run typecheck`, so a worker runs the tests before it ticks a task and QA runs the
|
|
214
|
+
phase's Verify check), each as a prefix rule on Bash and on PowerShell (Windows); every other shell command stays
|
|
215
|
+
denied. `--output-format json` ends the run with one result object. `ambykit run` reads it: its usage is counted against
|
|
216
|
+
the token ceiling, and an error result, or refused tools with tasks left open, fails the lane even on exit 0. A QA or
|
|
217
|
+
architect job also gets `--add-dir <run directory>`, because it writes its verdict there, outside the lane checkout it
|
|
218
|
+
runs in.
|
|
219
|
+
|
|
220
|
+
The `codex` command was set after a live check on Windows (codex-cli 0.174.0; `specs/033-stable-run-and-plugin-api/verification/codex-windows.md`). Plain `codex exec -` exited 0 having done nothing:
|
|
221
|
+
its default sandbox is read-only. `--sandbox workspace-write` lets the lane write in its directory (plus each `--add-dir`
|
|
222
|
+
and the temp folders) and nowhere else, and `approval_policy="never"` hands a refused command back to the model instead
|
|
223
|
+
of waiting for a person. `windows.sandbox="unelevated"` is passed because the `elevated` Windows sandbox waited headless
|
|
224
|
+
with no event; the key is read only on Windows. Codex has **no per-command allow list**: a Codex lane may run any command
|
|
225
|
+
inside the sandbox, so `fleet.allowedCommands` is only named in its prompt, and the sandbox is what is enforced. `--json`
|
|
226
|
+
prints one event per line; `ambykit run` reads usage from `turn.completed` and fails the lane on `turn.failed`.
|
|
227
|
+
**Codex is not verified:** that `unelevated` sandbox blocks child processes (`spawn EPERM`), so a Codex lane cannot run
|
|
228
|
+
`npm test`, `npx vitest` or `node --test`, and QA fails every phase whose Verify line runs tests. `ambykit run` refuses
|
|
229
|
+
codex until a headless sandbox mode that allows child processes is recorded.
|
|
230
|
+
|
|
231
|
+
To confirm on a live install, per runner: the non-interactive flag, how the prompt is delivered (stdin, an
|
|
232
|
+
argument or a file), the permission or sandbox flags a headless edit needs, the exit codes, and whether usage
|
|
233
|
+
is reported (a token ceiling is enforced only for runners that report it). Until then `ambykit run --runners`
|
|
234
|
+
lists the runner as not runnable and `ambykit run <feature> --yes` refuses it with this reason.
|
|
235
|
+
|
|
198
236
|
## To verify against a live install
|
|
199
237
|
|
|
200
238
|
Docs conflicted on a couple of points; confirm before shipping those emitters:
|
|
@@ -217,7 +255,7 @@ AGENTS.md guide). Gemini CLI, LLxprt, Qwen Code, Kilo, Augment, Windsurf, Kiro a
|
|
|
217
255
|
|
|
218
256
|
## Matrix rows for plugins
|
|
219
257
|
|
|
220
|
-
The matrix above is prose for people. A plugin (feature 027,
|
|
258
|
+
The matrix above is prose for people. A plugin (feature 027, stable from 2.0) records the same facts as
|
|
221
259
|
**data**, so the test kit in `@ambystech/ambykit/testkit` can check an emitter against them. One row
|
|
222
260
|
describes one target:
|
|
223
261
|
|
package/docs/workflow.md
CHANGED
|
@@ -60,7 +60,9 @@ needed. See [the plan artifact](./artifacts/plan.md).
|
|
|
60
60
|
## 7. Tasks
|
|
61
61
|
|
|
62
62
|
Turns the plan into an ordered, dependency-aware checklist: stable `T###` IDs, `[P]` parallel
|
|
63
|
-
markers, `[US#]` story tags, and file
|
|
63
|
+
markers, `[US#]` story tags, and each phase's file ownership and Verify check in one `yaml` block, grouped
|
|
64
|
+
so foundational work precedes feature work. New features are written in the v2 format
|
|
65
|
+
([migrating existing ones](./migration.md)). See
|
|
64
66
|
[the tasks artifact](./artifacts/tasks.md). The same phase also writes `tests.md`, the test design: one case per
|
|
65
67
|
acceptance criterion with an automate-or-manual decision, decided before any code. See
|
|
66
68
|
[the tests artifact](./artifacts/tests.md).
|
|
@@ -73,13 +75,14 @@ Cross-checks spec ↔ plan ↔ tasks for coverage gaps and inconsistencies, and
|
|
|
73
75
|
## 9. Implement
|
|
74
76
|
|
|
75
77
|
Executes tasks one slice at a time, checking off `tasks.md` checkboxes and updating each story's
|
|
76
|
-
|
|
78
|
+
status as it goes (with `ambykit edit status`, so nobody hand-edits the YAML) — which is what
|
|
79
|
+
`ambykit dashboard` reports on.
|
|
77
80
|
|
|
78
81
|
A task that cannot proceed gets a trailing `⚠ BLOCKED: <reason>` marker (and `↪ DEVIATION: <note>` when it
|
|
79
82
|
was done differently than planned); the implementer moves on to another unblocked task. Each phase ends
|
|
80
|
-
with one
|
|
81
|
-
|
|
82
|
-
closed. `ambykit dashboard` and `ambykit analyze` surface both at zero model tokens. Syntax:
|
|
83
|
+
with one Verify check (a `verify:` entry in the phase block, or a `**Verify:**` line in a 1.x file) that is run
|
|
84
|
+
before the checkpoint, and its result (`passed`, `failed` with a reason, `unverified`) is recorded with
|
|
85
|
+
`ambykit edit verify`; a failed Verify keeps the checkpoint closed. `ambykit dashboard` and `ambykit analyze` surface both at zero model tokens. Syntax:
|
|
83
86
|
[tasks artifact](./artifacts/tasks.md).
|
|
84
87
|
|
|
85
88
|
## 10. Converge
|
|
@@ -165,6 +168,7 @@ prompt once and running `ambykit sync` updates all of them.
|
|
|
165
168
|
## Dependencies & prioritization
|
|
166
169
|
|
|
167
170
|
Stories and features carry `priority` (P1/P2/P3) and `depends-on`/`blocked-by` references by stable
|
|
168
|
-
ID
|
|
171
|
+
ID, in the spec's frontmatter `stories:` list (and a feature may declare `depends-on` on other features).
|
|
172
|
+
`tasks` orders work topologically within the foundational-first gate; `analyze` validates the
|
|
169
173
|
graph; `dashboard` shows blocked vs. buildable. See [the spec artifact](./artifacts/spec.md) for the
|
|
170
174
|
metadata shape.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ambystech/ambykit",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0-rc.1",
|
|
4
4
|
"description": "Spec-Driven Development framework that helps AI coding assistants build better software — author your specs, user stories, UI design, plans and tasks once, and emit native config for Claude Code, OpenCode, GitHub Copilot, Cursor, Antigravity and more.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"spec-driven-development",
|
|
@@ -56,12 +56,14 @@
|
|
|
56
56
|
"docs"
|
|
57
57
|
],
|
|
58
58
|
"engines": {
|
|
59
|
-
"node": ">=
|
|
59
|
+
"node": ">=22"
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
62
|
"build": "tsc -p tsconfig.json",
|
|
63
63
|
"dev": "tsc -p tsconfig.json --watch",
|
|
64
64
|
"typecheck": "tsc -p tsconfig.json --noEmit",
|
|
65
|
+
"build:plugins": "node scripts/build-plugins.mjs",
|
|
66
|
+
"release:check": "node scripts/release-gate.mjs --version 2.0.0",
|
|
65
67
|
"test": "vitest run",
|
|
66
68
|
"test:watch": "vitest",
|
|
67
69
|
"prepublishOnly": "npm run build"
|
package/src/agents/worker.md
CHANGED
|
@@ -16,7 +16,8 @@ tasks and nothing else; you are the only agent allowed to write for them.
|
|
|
16
16
|
claim names the owner: do not edit that file; post a note (step 5) and tell the lead you are blocked.
|
|
17
17
|
2. Do the task. Edit only files listed for it (plus its tests). Build to the `tests.md` cases when they exist.
|
|
18
18
|
3. Check it off: `[ ]` → `[x]` on its line (the `tick_task` tool, or an edit of that one box). Checking off
|
|
19
|
-
frees the task's claims; if you edited by hand, also run `ambykit fleet release <feature> T###`.
|
|
19
|
+
frees the task's claims; if you edited by hand, also run `ambykit fleet release <feature> T###`. Never edit a
|
|
20
|
+
phase's `files:`/`verify:` block or a story's status by hand; the lead does that with `ambykit edit`.
|
|
20
21
|
4. Report, then send the lead **one line**: `T###: <what changed> (<files>)`. No logs, no diffs.
|
|
21
22
|
5. Anything the next person needs to know goes on the shared board as one line:
|
|
22
23
|
`ambykit fleet note <feature> T### --files=<files> "<text>"`.
|
package/src/prompts/converge.md
CHANGED
|
@@ -28,7 +28,7 @@ ones truly satisfy their requirement.
|
|
|
28
28
|
`- [ ] [T###] [US#] … (closes NNN:FR-###)` per gap and `- [ ] [T###] [US#] [VERIFY] …` per unverified
|
|
29
29
|
item. Continue IDs from the highest `T###` anywhere in the file; skip items already listed
|
|
30
30
|
unchecked there. Nothing to add → leave the file untouched.
|
|
31
|
-
4. In `spec.md`,
|
|
32
|
-
covered; the feature → `done` when all stories are.
|
|
31
|
+
4. In `spec.md`, change only statuses: a story → `done` (`ambykit edit status <feature> US-# done`) when every
|
|
32
|
+
FR/SC it maps to is covered; the feature's frontmatter `status:` → `done` when all stories are.
|
|
33
33
|
5. Report: **converged** (no gaps) or **gaps found (N)**, counts per class, and a table of every ID
|
|
34
34
|
with its class and a one-line reason for each gap/unverified item.
|
package/src/prompts/implement.md
CHANGED
|
@@ -22,15 +22,17 @@ Run `ambykit activity <feature> --agent=$AGENT --phase=implement` first, with th
|
|
|
22
22
|
3. Implement to satisfy the mapped `FR-###`/acceptance criteria and the constitution. Add/adjust
|
|
23
23
|
tests for the acceptance criteria: build to the story's cases in `tests.md` and name tests `NNN:FR-###: …`;
|
|
24
24
|
at the story checkpoint say if `tests.md` is missing, never pass silently. If you cannot finish a task, add `⚠ BLOCKED: <reason>` as the last
|
|
25
|
-
segment of its line (after
|
|
25
|
+
segment of its line (after its `(file/path)` group, if it has one), stop that task and continue with another unblocked
|
|
26
26
|
one; note any departure from the plan as `↪ DEVIATION: <note>`. Remove `⚠ BLOCKED:` once resolved.
|
|
27
|
-
4. **Patch in place:** flip the completed task's checkbox to `- [x]` in `tasks.md`;
|
|
28
|
-
`status
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
27
|
+
4. **Patch in place:** flip the completed task's checkbox to `- [x]` in `tasks.md`; while a story is partway run
|
|
28
|
+
`ambykit edit status <feature> US-# in-progress`. Never edit story data, files or Verify results by hand: use
|
|
29
|
+
`ambykit edit status|files|verify`. After each checked task, run
|
|
30
|
+
`ambykit activity <feature> --agent=$AGENT --phase=implement --task=T###` (ignore errors).
|
|
31
|
+
5. At a phase checkpoint, run that phase's Verify check (its `**Verify:**` line or `verify:` block) before passing it
|
|
32
|
+
(none: say so and continue). Record the result with
|
|
33
|
+
`ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]`, replacing any earlier one.
|
|
34
|
+
Never pass the checkpoint on a failure: fix it and run again. If you cannot run the check, ask a person to run or
|
|
35
|
+
confirm it and record `unverified`. Only once the Verify has passed (or there is none) and all of a story's tasks
|
|
36
|
+
are done, run `ambykit edit status <feature> US-# done`. In a lane, record the result after the phase's lanes are merged.
|
|
37
|
+
6. Run `ambykit analyze` and fix any `file:line` error it reports for this feature. Report what you did and the next
|
|
38
|
+
unblocked task. Stop at a story checkpoint for review.
|
package/src/prompts/revise.md
CHANGED
|
@@ -22,7 +22,9 @@ of `@.amby/templates/spec.md`. This command **extends** an existing feature —
|
|
|
22
22
|
feature is complete and to run `/amby.specify` for a new feature. Stop here.
|
|
23
23
|
3. Otherwise **continue in place** (patch, never regenerate — Principle 3):
|
|
24
24
|
- Add new user stories (`US-#`), requirements (`FR-###`), and success criteria (`SC-###`), each
|
|
25
|
-
taking the **next available number**. Preserve every existing id and its text verbatim.
|
|
25
|
+
taking the **next available number**. Preserve every existing id and its text verbatim. A new story
|
|
26
|
+
also gets an entry (`id`, `priority`, `status`, dependencies) in the frontmatter `stories:` list of a
|
|
27
|
+
v2 spec; change a story's status with `ambykit edit status <feature> US-# <status>`.
|
|
26
28
|
- Refine existing items only where the author asked; keep their ids stable.
|
|
27
29
|
- New requirements use EARS (SHALL / WHEN / WHILE / IF-THEN / WHERE); new acceptance criteria use
|
|
28
30
|
Given/When/Then — consistent with `specify`.
|
|
@@ -35,4 +37,5 @@ of `@.amby/templates/spec.md`. This command **extends** an existing feature —
|
|
|
35
37
|
the author to run `/amby.design`.
|
|
36
38
|
6. Keep edits minimal and token-frugal; cite the constitution by principle number where relevant.
|
|
37
39
|
|
|
38
|
-
Report what you added or
|
|
40
|
+
Run `ambykit analyze` and fix any `file:line` error it reports for this spec. Report what you added or
|
|
41
|
+
changed, by id.
|
package/src/prompts/run.md
CHANGED
|
@@ -60,12 +60,15 @@ Run `ambykit fleet status <feature>`; it prints the run, the next phase, lanes,
|
|
|
60
60
|
|
|
61
61
|
When every task of the phase is checked: `ambykit fleet update <feature> --stage=qa`. Ask QA (`@.amby/roles/qa.md`, read-only) to:
|
|
62
62
|
|
|
63
|
-
1. run the phase's `**Verify:**` line,
|
|
64
|
-
cases for these tasks are the expected tests. No Verify
|
|
63
|
+
1. run the phase's Verify check (its `**Verify:**` line, or the `verify:` block of a v2 file), and check the acceptance
|
|
64
|
+
criteria of its stories; if `tests.md` exists, its cases for these tasks are the expected tests. No Verify check →
|
|
65
|
+
check the criteria only and say the phase has none.
|
|
65
66
|
2. return a verdict. You write it to `.amby/fleet/<run>/verdicts/<lane>.qa.<round>.json`
|
|
66
67
|
(`<round>` = failed rounds so far + 1): `{"verdict":"pass"|"fail","findings":[{"id","severity","finding","fix"}]}`.
|
|
67
|
-
3. record the result
|
|
68
|
-
run here, tell the person, ask them to
|
|
68
|
+
3. record the result with `ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]` (the file
|
|
69
|
+
shows `✓ passed`, `✗ failed: <why>` or `? unverified`); when the check cannot be run here, tell the person, ask them to
|
|
70
|
+
confirm and record `unverified`. Set a finished story with `ambykit edit status <feature> US-# done`; never edit a
|
|
71
|
+
`files:`/`verify:` block or story data by hand.
|
|
69
72
|
|
|
70
73
|
A failing Verify never passes the checkpoint. Do not tick the checkpoint or start the next phase until it passes.
|
|
71
74
|
|
package/src/prompts/specify.md
CHANGED
|
@@ -18,8 +18,9 @@ read other specs.
|
|
|
18
18
|
1. Create the feature dir `specs/NNN-slug/` (next number, kebab-slug from the title) and write
|
|
19
19
|
`spec.md` following `@.amby/templates/spec.md`. Then run
|
|
20
20
|
`ambykit activity <feature> --agent=$AGENT --phase=specify` with the new number; ignore any error.
|
|
21
|
-
2. Define **user stories** (`US-#`): role / capability / benefit,
|
|
22
|
-
|
|
21
|
+
2. Define **user stories** (`US-#`): role / capability / benefit, why that priority, and an
|
|
22
|
+
independent-test statement. Put each story's `priority` (P1/P2/P3), `status: draft` and
|
|
23
|
+
`depends-on`/`blocked-by` in the frontmatter `stories:` list; the heading carries the title only.
|
|
23
24
|
3. Write **acceptance criteria** in Given/When/Then per story.
|
|
24
25
|
4. Write **functional requirements** (`FR-###`) in EARS notation (SHALL / WHEN / WHILE / IF-THEN /
|
|
25
26
|
WHERE). Each must be testable.
|
|
@@ -30,4 +31,5 @@ read other specs.
|
|
|
30
31
|
`ambykit worktree NNN-slug` (the only command to run) and tell the user to continue in
|
|
31
32
|
`.worktrees/NNN-slug/`. Otherwise skip this step (say why if isolation was enabled but git is absent).
|
|
32
33
|
|
|
33
|
-
Keep it tight. Reference the constitution by principle number where relevant; don't restate it.
|
|
34
|
+
Keep it tight. Reference the constitution by principle number where relevant; don't restate it. Then run
|
|
35
|
+
`ambykit analyze` and fix any `file:line` error it reports for this spec.
|
package/src/prompts/tasks.md
CHANGED
|
@@ -16,17 +16,17 @@ Context: read that feature's `plan.md` (and `spec.md` for story IDs/priorities/d
|
|
|
16
16
|
|
|
17
17
|
Run `ambykit activity <feature> --agent=$AGENT --phase=tasks` first, with that feature's number; ignore any error.
|
|
18
18
|
|
|
19
|
-
1. Write tasks
|
|
20
|
-
`- [ ] [T###] [P?] [US#] description
|
|
19
|
+
1. Write tasks in the v2 form of `@.amby/templates/tasks.md` (even if `spec.md` is 1.x): checkbox lines
|
|
20
|
+
`- [ ] [T###] [P?] [US#] description`, then each phase's `yaml` block.
|
|
21
21
|
2. Group into phases: **Setup → Foundational → User stories (by priority) → Polish**. Enforce the
|
|
22
22
|
gate: no user-story task before Foundational completes.
|
|
23
23
|
3. Order tasks by the story **dependency graph** (`depends-on`/`blocked-by`) and priority. Mark
|
|
24
24
|
independent tasks `[P]`. Tag each task with its `[US#]`. End each story group with a checkpoint.
|
|
25
|
-
4. Give every task a stable `T###` id and its
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
5. End every phase with exactly ONE
|
|
29
|
-
|
|
25
|
+
4. Give every task a stable `T###` id and list its files in its phase's `files:` block, never on the task
|
|
26
|
+
line: repo-relative, dirs end `/`, no globs. Mark `[P]` only when no other task in the same phase shares or
|
|
27
|
+
nests a path, and never a task that tests or reads another same-phase task's output: order it after that task.
|
|
28
|
+
5. End every phase with exactly ONE `verify:` in its block, whose `check:` is a runnable check or observable
|
|
29
|
+
condition that proves the phase works (e.g. a test command). Never more than one.
|
|
30
30
|
6. Also write `tests.md` (the test design) in this phase per `@.amby/templates/tests.md`, touching only `tasks.md`
|
|
31
31
|
and `tests.md`. If `spec.md` is not `status: ready`, skip it and say the spec must be ready first. One case per
|
|
32
32
|
acceptance criterion (negative and edge ones too, max 15 per story); one too vague to test goes under `## Flags`.
|
|
@@ -36,4 +36,5 @@ Run `ambykit activity <feature> --agent=$AGENT --phase=tasks` first, with that f
|
|
|
36
36
|
With an existing `tests.md`, patch only the cases citing changed criteria (keep their ids, clear `[stale]`), mark
|
|
37
37
|
cases whose criterion was removed `[obsolete]` and add new ones; leave the rest untouched.
|
|
38
38
|
|
|
39
|
-
Do not start implementing. Keep descriptions to one line each.
|
|
39
|
+
Do not start implementing. Keep descriptions to one line each. Then run `ambykit analyze` and fix any
|
|
40
|
+
`file:line` error it reports for this feature.
|
package/src/templates/spec.md
CHANGED
|
@@ -1,29 +1,35 @@
|
|
|
1
1
|
---
|
|
2
|
+
format: 2
|
|
2
3
|
feature: {{FEATURE_ID}} # NNN-slug
|
|
3
4
|
title: {{FEATURE_TITLE}}
|
|
4
5
|
branch: {{BRANCH}}
|
|
5
6
|
status: draft # draft | ready | in-progress | blocked | done
|
|
6
7
|
created: {{DATE}}
|
|
8
|
+
stories: # one entry per story; headings carry the title only
|
|
9
|
+
- id: US-1
|
|
10
|
+
priority: P1
|
|
11
|
+
status: draft # draft | ready | in-progress | blocked | done
|
|
12
|
+
depends-on: [] # e.g. [US-0, "019:US-1"]
|
|
13
|
+
blocked-by: []
|
|
7
14
|
---
|
|
8
15
|
|
|
9
16
|
# Spec — {{FEATURE_TITLE}}
|
|
10
17
|
|
|
11
18
|
> WHAT and WHY only. No technology decisions (those belong in `plan.md`).
|
|
12
19
|
> Flag unknowns inline as `[NEEDS CLARIFICATION: …]` — never guess.
|
|
20
|
+
> Story priority, status and dependencies live in the frontmatter `stories:` list. Change a status with
|
|
21
|
+
> `ambykit edit status <feature> US-# <status>`.
|
|
13
22
|
|
|
14
23
|
## User scenarios & testing
|
|
15
24
|
|
|
16
25
|
<!-- One block per story. Each story is independently testable and prioritized. -->
|
|
17
26
|
|
|
18
|
-
### US-1 — {{STORY_TITLE}}
|
|
27
|
+
### US-1 — {{STORY_TITLE}}
|
|
19
28
|
|
|
20
29
|
As a {{ROLE}}, I want {{CAPABILITY}}, so that {{BENEFIT}}.
|
|
21
30
|
|
|
22
31
|
- **Why this priority:** {{WHY_PRIORITY}}
|
|
23
32
|
- **Independent test:** {{INDEPENDENT_TEST}}
|
|
24
|
-
- **depends-on:** [] # e.g. [US-0]
|
|
25
|
-
- **blocked-by:** []
|
|
26
|
-
- **status:** draft
|
|
27
33
|
|
|
28
34
|
**Acceptance criteria**
|
|
29
35
|
- Given {{CONTEXT}}, When {{ACTION}}, Then {{OUTCOME}}.
|
package/src/templates/tasks.md
CHANGED
|
@@ -1,35 +1,57 @@
|
|
|
1
1
|
---
|
|
2
|
+
format: 2
|
|
2
3
|
feature: {{FEATURE_ID}}
|
|
3
4
|
created: {{DATE}}
|
|
4
5
|
---
|
|
5
6
|
|
|
6
7
|
# Tasks — {{FEATURE_TITLE}}
|
|
7
8
|
|
|
8
|
-
> Line format: `- [ ] [T###] [P?] [US#] description
|
|
9
|
+
> Line format: `- [ ] [T###] [P?] [US#] description`
|
|
9
10
|
> `[x]` = done (source of truth for `ambykit dashboard`). `[P]` = parallelizable. `[US#]` = story tag.
|
|
10
|
-
>
|
|
11
|
+
> Each phase ends with one `yaml` block: `files:` maps each `T###` to its repo-relative paths (dirs end `/`, no globs; `[P]` tasks in a phase must not share or nest paths) and `verify:` holds the phase's `check:`. Change them with `ambykit edit files|verify`, never by hand.
|
|
11
12
|
> Gate: no user-story task starts until Foundational completes.
|
|
12
|
-
> Markers go last on the task line
|
|
13
|
-
>
|
|
13
|
+
> Markers go last on the task line: `⚠ BLOCKED: <reason>` for a task that cannot proceed, `↪ DEVIATION: <note>` for a change from the plan. The glyph is optional (`BLOCKED:` works too); remove `⚠ BLOCKED:` when resolved.
|
|
14
|
+
> Run the phase's `check:` before the checkpoint, then record it: `ambykit edit verify <feature> <phase> --result=passed|failed|unverified [--why=<why>]` (shown as `✓ passed`, `✗ failed: <why>` or `? unverified`); a later run overwrites it.
|
|
14
15
|
|
|
15
16
|
## Phase 1 — Setup
|
|
16
17
|
|
|
17
|
-
- [ ] [T001] {{SETUP_TASK}}
|
|
18
|
-
|
|
18
|
+
- [ ] [T001] {{SETUP_TASK}}
|
|
19
|
+
```yaml
|
|
20
|
+
files:
|
|
21
|
+
T001: ["{{PATH}}"]
|
|
22
|
+
verify:
|
|
23
|
+
check: "{{VERIFY_CHECK}}"
|
|
24
|
+
```
|
|
19
25
|
|
|
20
26
|
## Phase 2 — Foundational (blocks all feature work)
|
|
21
27
|
|
|
22
|
-
- [ ] [T010] {{FOUNDATIONAL_TASK}}
|
|
23
|
-
|
|
28
|
+
- [ ] [T010] {{FOUNDATIONAL_TASK}}
|
|
29
|
+
```yaml
|
|
30
|
+
files:
|
|
31
|
+
T010: ["{{PATH}}"]
|
|
32
|
+
verify:
|
|
33
|
+
check: "{{VERIFY_CHECK}}"
|
|
34
|
+
```
|
|
24
35
|
|
|
25
36
|
## Phase 3 — User story US-1 (priority: P1)
|
|
26
37
|
|
|
27
|
-
- [ ] [T020] [P] [US1] {{TASK}}
|
|
28
|
-
- [ ] [T021] [US1] {{TASK}}
|
|
38
|
+
- [ ] [T020] [P] [US1] {{TASK}}
|
|
39
|
+
- [ ] [T021] [US1] {{TASK}}
|
|
29
40
|
- **Checkpoint:** US-1 is demoable.
|
|
30
|
-
|
|
41
|
+
```yaml
|
|
42
|
+
files:
|
|
43
|
+
T020: ["{{PATH}}"]
|
|
44
|
+
T021: ["{{PATH}}"]
|
|
45
|
+
verify:
|
|
46
|
+
check: "{{VERIFY_CHECK}}"
|
|
47
|
+
```
|
|
31
48
|
|
|
32
49
|
## Phase 4 — Polish
|
|
33
50
|
|
|
34
|
-
- [ ] [T090] {{POLISH_TASK}}
|
|
35
|
-
|
|
51
|
+
- [ ] [T090] {{POLISH_TASK}}
|
|
52
|
+
```yaml
|
|
53
|
+
files:
|
|
54
|
+
T090: ["{{PATH}}"]
|
|
55
|
+
verify:
|
|
56
|
+
check: "{{VERIFY_CHECK}}"
|
|
57
|
+
```
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import type { EmittedFile, RulesContext } from "../core/types.js";
|
|
2
|
-
import { AntigravityEmitter } from "./antigravity.js";
|
|
3
|
-
/**
|
|
4
|
-
* Antigravity CLI (`agy`) emitter. The CLI runs on the same agent harness as the IDE and reads the
|
|
5
|
-
* same workspace files (`.agents/skills/`, AGENTS.md) and turns each skill into a slash command. Only
|
|
6
|
-
* global/user paths differ, which AmbyKit does not manage, so this reuses the IDE emitter's output
|
|
7
|
-
* apart from the `--agent=` self-report id.
|
|
8
|
-
*/
|
|
9
|
-
export declare class AntigravityCliEmitter extends AntigravityEmitter {
|
|
10
|
-
readonly toolId = "antigravity-cli";
|
|
11
|
-
readonly displayName = "Antigravity CLI";
|
|
12
|
-
/** Workspace `.agents/mcp_config.json`, `mcpServers.ambykit` (verified for the CLI in `specs/025-mcp-server/research.md`). */
|
|
13
|
-
mcpFiles(_ctx: RulesContext): EmittedFile[];
|
|
14
|
-
mcpSkipReason(): string | null;
|
|
15
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { AntigravityEmitter } from "./antigravity.js";
|
|
2
|
-
import { MCP_COMMAND } from "./base-emitter.js";
|
|
3
|
-
/**
|
|
4
|
-
* Antigravity CLI (`agy`) emitter. The CLI runs on the same agent harness as the IDE and reads the
|
|
5
|
-
* same workspace files (`.agents/skills/`, AGENTS.md) and turns each skill into a slash command. Only
|
|
6
|
-
* global/user paths differ, which AmbyKit does not manage, so this reuses the IDE emitter's output
|
|
7
|
-
* apart from the `--agent=` self-report id.
|
|
8
|
-
*/
|
|
9
|
-
export class AntigravityCliEmitter extends AntigravityEmitter {
|
|
10
|
-
toolId = "antigravity-cli";
|
|
11
|
-
displayName = "Antigravity CLI";
|
|
12
|
-
/** Workspace `.agents/mcp_config.json`, `mcpServers.ambykit` (verified for the CLI in `specs/025-mcp-server/research.md`). */
|
|
13
|
-
mcpFiles(_ctx) {
|
|
14
|
-
return [this.mcpFile(".agents/mcp_config.json", "mcpServers", { ...MCP_COMMAND })];
|
|
15
|
-
}
|
|
16
|
-
mcpSkipReason() {
|
|
17
|
-
return null;
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=antigravity-cli.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"antigravity-cli.js","sourceRoot":"","sources":["../../src/emitters/antigravity-cli.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAEhD;;;;;GAKG;AACH,MAAM,OAAO,qBAAsB,SAAQ,kBAAkB;IACzC,MAAM,GAAG,iBAAiB,CAAC;IAC3B,WAAW,GAAG,iBAAiB,CAAC;IAElD,8HAA8H;IACrH,QAAQ,CAAC,IAAkB;QAClC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,yBAAyB,EAAE,YAAY,EAAE,EAAE,GAAG,WAAW,EAAE,CAAC,CAAC,CAAC;IACrF,CAAC;IAEQ,aAAa;QACpB,OAAO,IAAI,CAAC;IACd,CAAC;CACF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { SkillsEmitter } from "./skills-emitter.js";
|
|
2
|
-
/**
|
|
3
|
-
* Google Antigravity (IDE) emitter. Antigravity retired **workflows** on 2026-10-19 and replaced them
|
|
4
|
-
* with **skills** (feature 018): one directory per phase at `.agents/skills/<name>/SKILL.md` with
|
|
5
|
-
* `name` + `description`, the same layout Codex and Pi write. The CLI turns each skill into a slash
|
|
6
|
-
* command named after the skill (`/amby-specify`). Antigravity reads AGENTS.md natively, so no
|
|
7
|
-
* tool-specific rules file is emitted. There is no file-based agent format (SDK only). The `agy` CLI
|
|
8
|
-
* shares these workspace files (see AntigravityCliEmitter).
|
|
9
|
-
*/
|
|
10
|
-
export declare class AntigravityEmitter extends SkillsEmitter {
|
|
11
|
-
readonly toolId: string;
|
|
12
|
-
readonly displayName: string;
|
|
13
|
-
readonly commandDir: string;
|
|
14
|
-
/**
|
|
15
|
-
* Not written for the IDE. Antigravity's documented project file `.agents/mcp_config.json` is confirmed for
|
|
16
|
-
* the CLI only, and the IDE's own documented config is user-level with conflicting paths in other guides
|
|
17
|
-
* (`specs/025-mcp-server/research.md`).
|
|
18
|
-
*/
|
|
19
|
-
mcpSkipReason(): string | null;
|
|
20
|
-
}
|