opencastle 1.3.0 → 1.4.0
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/README.md +102 -131
- package/bin/cli.mjs +20 -10
- package/dist/cli/adapters/claude-code.d.ts +5 -3
- package/dist/cli/adapters/claude-code.d.ts.map +1 -1
- package/dist/cli/adapters/claude-code.js +7 -3
- package/dist/cli/adapters/claude-code.js.map +1 -1
- package/dist/cli/adapters/single-file-base.d.ts +18 -0
- package/dist/cli/adapters/single-file-base.d.ts.map +1 -1
- package/dist/cli/adapters/single-file-base.js +29 -4
- package/dist/cli/adapters/single-file-base.js.map +1 -1
- package/dist/cli/agent-plugin.test.js +12 -0
- package/dist/cli/agent-plugin.test.js.map +1 -1
- package/dist/cli/agent-roster.test.js +0 -48
- package/dist/cli/agent-roster.test.js.map +1 -1
- package/dist/cli/bootstrap.d.ts.map +1 -1
- package/dist/cli/bootstrap.js +20 -0
- package/dist/cli/bootstrap.js.map +1 -1
- package/dist/cli/boundary.test.js +9 -7
- package/dist/cli/boundary.test.js.map +1 -1
- package/dist/cli/ci.d.ts.map +1 -1
- package/dist/cli/ci.js +6 -4
- package/dist/cli/ci.js.map +1 -1
- package/dist/cli/command-namespace.test.js +33 -0
- package/dist/cli/command-namespace.test.js.map +1 -1
- package/dist/cli/convoy/artifacts.d.ts +9 -2
- package/dist/cli/convoy/artifacts.d.ts.map +1 -1
- package/dist/cli/convoy/artifacts.js +13 -10
- package/dist/cli/convoy/artifacts.js.map +1 -1
- package/dist/cli/convoy/artifacts.test.js +4 -2
- package/dist/cli/convoy/artifacts.test.js.map +1 -1
- package/dist/cli/convoy/engine.d.ts +53 -23
- package/dist/cli/convoy/engine.d.ts.map +1 -1
- package/dist/cli/convoy/engine.git.test.d.ts +2 -0
- package/dist/cli/convoy/engine.git.test.d.ts.map +1 -0
- package/dist/cli/convoy/engine.git.test.js +435 -0
- package/dist/cli/convoy/engine.git.test.js.map +1 -0
- package/dist/cli/convoy/engine.js +1746 -2305
- package/dist/cli/convoy/engine.js.map +1 -1
- package/dist/cli/convoy/engine.test.js +698 -678
- package/dist/cli/convoy/engine.test.js.map +1 -1
- package/dist/cli/convoy/event-schemas.d.ts +2 -0
- package/dist/cli/convoy/event-schemas.d.ts.map +1 -1
- package/dist/cli/convoy/event-schemas.js +59 -57
- package/dist/cli/convoy/event-schemas.js.map +1 -1
- package/dist/cli/convoy/events.d.ts +4 -1
- package/dist/cli/convoy/events.d.ts.map +1 -1
- package/dist/cli/convoy/events.js +69 -84
- package/dist/cli/convoy/events.js.map +1 -1
- package/dist/cli/convoy/events.test.js +50 -9
- package/dist/cli/convoy/events.test.js.map +1 -1
- package/dist/cli/convoy/gates.d.ts +9 -4
- package/dist/cli/convoy/gates.d.ts.map +1 -1
- package/dist/cli/convoy/gates.js +29 -14
- package/dist/cli/convoy/gates.js.map +1 -1
- package/dist/cli/convoy/isolation.d.ts +32 -6
- package/dist/cli/convoy/isolation.d.ts.map +1 -1
- package/dist/cli/convoy/isolation.js +72 -34
- package/dist/cli/convoy/isolation.js.map +1 -1
- package/dist/cli/convoy/isolation.test.js +66 -42
- package/dist/cli/convoy/isolation.test.js.map +1 -1
- package/dist/cli/convoy/lock.d.ts.map +1 -1
- package/dist/cli/convoy/lock.js +25 -10
- package/dist/cli/convoy/lock.js.map +1 -1
- package/dist/cli/convoy/lock.test.js +12 -0
- package/dist/cli/convoy/lock.test.js.map +1 -1
- package/dist/cli/convoy/merge.d.ts +21 -4
- package/dist/cli/convoy/merge.d.ts.map +1 -1
- package/dist/cli/convoy/merge.js +69 -53
- package/dist/cli/convoy/merge.js.map +1 -1
- package/dist/cli/convoy/merge.test.js +23 -1
- package/dist/cli/convoy/merge.test.js.map +1 -1
- package/dist/cli/convoy/progress.d.ts +35 -0
- package/dist/cli/convoy/progress.d.ts.map +1 -0
- package/dist/cli/convoy/progress.js +103 -0
- package/dist/cli/convoy/progress.js.map +1 -0
- package/dist/cli/convoy/progress.test.d.ts +2 -0
- package/dist/cli/convoy/progress.test.d.ts.map +1 -0
- package/dist/cli/convoy/progress.test.js +53 -0
- package/dist/cli/convoy/progress.test.js.map +1 -0
- package/dist/cli/convoy/read-model.d.ts +468 -0
- package/dist/cli/convoy/read-model.d.ts.map +1 -0
- package/dist/cli/convoy/read-model.js +1132 -0
- package/dist/cli/convoy/read-model.js.map +1 -0
- package/dist/cli/convoy/read-model.test.d.ts +2 -0
- package/dist/cli/convoy/read-model.test.d.ts.map +1 -0
- package/dist/cli/convoy/read-model.test.js +609 -0
- package/dist/cli/convoy/read-model.test.js.map +1 -0
- package/dist/cli/convoy/redact.d.ts +34 -0
- package/dist/cli/convoy/redact.d.ts.map +1 -0
- package/dist/cli/convoy/redact.js +66 -0
- package/dist/cli/convoy/redact.js.map +1 -0
- package/dist/cli/convoy/redact.test.d.ts +2 -0
- package/dist/cli/convoy/redact.test.d.ts.map +1 -0
- package/dist/cli/convoy/redact.test.js +43 -0
- package/dist/cli/convoy/redact.test.js.map +1 -0
- package/dist/cli/convoy/reviewer.d.ts +65 -0
- package/dist/cli/convoy/reviewer.d.ts.map +1 -0
- package/dist/cli/convoy/reviewer.js +141 -0
- package/dist/cli/convoy/reviewer.js.map +1 -0
- package/dist/cli/convoy/reviewer.test.d.ts +2 -0
- package/dist/cli/convoy/reviewer.test.d.ts.map +1 -0
- package/dist/cli/convoy/reviewer.test.js +96 -0
- package/dist/cli/convoy/reviewer.test.js.map +1 -0
- package/dist/cli/convoy/schedule.d.ts +30 -0
- package/dist/cli/convoy/schedule.d.ts.map +1 -0
- package/dist/cli/convoy/schedule.js +111 -0
- package/dist/cli/convoy/schedule.js.map +1 -0
- package/dist/cli/convoy/schedule.test.d.ts +2 -0
- package/dist/cli/convoy/schedule.test.d.ts.map +1 -0
- package/dist/cli/convoy/schedule.test.js +45 -0
- package/dist/cli/convoy/schedule.test.js.map +1 -0
- package/dist/cli/convoy/spec-builder.d.ts +120 -30
- package/dist/cli/convoy/spec-builder.d.ts.map +1 -1
- package/dist/cli/convoy/spec-builder.js +438 -114
- package/dist/cli/convoy/spec-builder.js.map +1 -1
- package/dist/cli/convoy/spec-builder.test.js +419 -435
- package/dist/cli/convoy/spec-builder.test.js.map +1 -1
- package/dist/cli/convoy/spec-types.d.ts +46 -92
- package/dist/cli/convoy/spec-types.d.ts.map +1 -1
- package/dist/cli/convoy/store.d.ts +6 -1
- package/dist/cli/convoy/store.d.ts.map +1 -1
- package/dist/cli/convoy/store.js +111 -15
- package/dist/cli/convoy/store.js.map +1 -1
- package/dist/cli/convoy/store.test.js +59 -13
- package/dist/cli/convoy/store.test.js.map +1 -1
- package/dist/cli/convoy/types.d.ts +76 -113
- package/dist/cli/convoy/types.d.ts.map +1 -1
- package/dist/cli/convoy/types.js +6 -13
- package/dist/cli/convoy/types.js.map +1 -1
- package/dist/cli/convoy/worktree.d.ts +88 -3
- package/dist/cli/convoy/worktree.d.ts.map +1 -1
- package/dist/cli/convoy/worktree.js +282 -56
- package/dist/cli/convoy/worktree.js.map +1 -1
- package/dist/cli/convoy/worktree.test.js +132 -1
- package/dist/cli/convoy/worktree.test.js.map +1 -1
- package/dist/cli/convoy-args.test.js +9 -27
- package/dist/cli/convoy-args.test.js.map +1 -1
- package/dist/cli/convoy-cmd.d.ts +31 -6
- package/dist/cli/convoy-cmd.d.ts.map +1 -1
- package/dist/cli/convoy-cmd.js +150 -200
- package/dist/cli/convoy-cmd.js.map +1 -1
- package/dist/cli/convoy-cmd.test.d.ts +2 -0
- package/dist/cli/convoy-cmd.test.d.ts.map +1 -0
- package/dist/cli/convoy-cmd.test.js +144 -0
- package/dist/cli/convoy-cmd.test.js.map +1 -0
- package/dist/cli/dashboard.d.ts +24 -11
- package/dist/cli/dashboard.d.ts.map +1 -1
- package/dist/cli/dashboard.js +241 -303
- package/dist/cli/dashboard.js.map +1 -1
- package/dist/cli/dashboard.test.d.ts +2 -0
- package/dist/cli/dashboard.test.d.ts.map +1 -0
- package/dist/cli/dashboard.test.js +340 -0
- package/dist/cli/dashboard.test.js.map +1 -0
- package/dist/cli/dispatcher.test.js +41 -2
- package/dist/cli/dispatcher.test.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +36 -11
- package/dist/cli/docs-accuracy.test.js.map +1 -1
- package/dist/cli/doctor.d.ts.map +1 -1
- package/dist/cli/doctor.js +9 -6
- package/dist/cli/doctor.js.map +1 -1
- package/dist/cli/init-own-files.test.d.ts +2 -0
- package/dist/cli/init-own-files.test.d.ts.map +1 -0
- package/dist/cli/init-own-files.test.js +133 -0
- package/dist/cli/init-own-files.test.js.map +1 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +106 -7
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/init.test.js +5 -4
- package/dist/cli/init.test.js.map +1 -1
- package/dist/cli/layers.d.ts.map +1 -1
- package/dist/cli/layers.js +13 -4
- package/dist/cli/layers.js.map +1 -1
- package/dist/cli/lesson.d.ts.map +1 -1
- package/dist/cli/lesson.js +6 -5
- package/dist/cli/lesson.js.map +1 -1
- package/dist/cli/log.d.ts +39 -0
- package/dist/cli/log.d.ts.map +1 -1
- package/dist/cli/log.js +267 -93
- package/dist/cli/log.js.map +1 -1
- package/dist/cli/log.test.d.ts +2 -0
- package/dist/cli/log.test.d.ts.map +1 -0
- package/dist/cli/log.test.js +208 -0
- package/dist/cli/log.test.js.map +1 -0
- package/dist/cli/nearest.d.ts +18 -0
- package/dist/cli/nearest.d.ts.map +1 -0
- package/dist/cli/nearest.js +38 -0
- package/dist/cli/nearest.js.map +1 -0
- package/dist/cli/nearest.test.d.ts +2 -0
- package/dist/cli/nearest.test.d.ts.map +1 -0
- package/dist/cli/nearest.test.js +24 -0
- package/dist/cli/nearest.test.js.map +1 -0
- package/dist/cli/pipeline.d.ts +61 -0
- package/dist/cli/pipeline.d.ts.map +1 -1
- package/dist/cli/pipeline.flow.test.d.ts +2 -0
- package/dist/cli/pipeline.flow.test.d.ts.map +1 -0
- package/dist/cli/pipeline.flow.test.js +524 -0
- package/dist/cli/pipeline.flow.test.js.map +1 -0
- package/dist/cli/pipeline.js +471 -690
- package/dist/cli/pipeline.js.map +1 -1
- package/dist/cli/plan.d.ts +82 -31
- package/dist/cli/plan.d.ts.map +1 -1
- package/dist/cli/plan.js +167 -507
- package/dist/cli/plan.js.map +1 -1
- package/dist/cli/plan.test.d.ts +2 -0
- package/dist/cli/plan.test.d.ts.map +1 -0
- package/dist/cli/plan.test.js +158 -0
- package/dist/cli/plan.test.js.map +1 -0
- package/dist/cli/prompt.d.ts.map +1 -1
- package/dist/cli/prompt.js +9 -7
- package/dist/cli/prompt.js.map +1 -1
- package/dist/cli/prompt.test.js +20 -2
- package/dist/cli/prompt.test.js.map +1 -1
- package/dist/cli/remove.d.ts.map +1 -1
- package/dist/cli/remove.js +3 -1
- package/dist/cli/remove.js.map +1 -1
- package/dist/cli/review.d.ts.map +1 -1
- package/dist/cli/review.js +7 -1
- package/dist/cli/review.js.map +1 -1
- package/dist/cli/run/adapters/agent-process.d.ts +82 -0
- package/dist/cli/run/adapters/agent-process.d.ts.map +1 -0
- package/dist/cli/run/adapters/agent-process.js +224 -0
- package/dist/cli/run/adapters/agent-process.js.map +1 -0
- package/dist/cli/run/adapters/agent-process.test.d.ts +2 -0
- package/dist/cli/run/adapters/agent-process.test.d.ts.map +1 -0
- package/dist/cli/run/adapters/agent-process.test.js +159 -0
- package/dist/cli/run/adapters/agent-process.test.js.map +1 -0
- package/dist/cli/run/adapters/claude.d.ts +53 -2
- package/dist/cli/run/adapters/claude.d.ts.map +1 -1
- package/dist/cli/run/adapters/claude.js +147 -171
- package/dist/cli/run/adapters/claude.js.map +1 -1
- package/dist/cli/run/adapters/claude.test.js +197 -254
- package/dist/cli/run/adapters/claude.test.js.map +1 -1
- package/dist/cli/run/adapters/codex.d.ts +25 -2
- package/dist/cli/run/adapters/codex.d.ts.map +1 -1
- package/dist/cli/run/adapters/codex.js +113 -81
- package/dist/cli/run/adapters/codex.js.map +1 -1
- package/dist/cli/run/adapters/codex.test.js +116 -95
- package/dist/cli/run/adapters/codex.test.js.map +1 -1
- package/dist/cli/run/adapters/copilot.d.ts +35 -1
- package/dist/cli/run/adapters/copilot.d.ts.map +1 -1
- package/dist/cli/run/adapters/copilot.js +104 -287
- package/dist/cli/run/adapters/copilot.js.map +1 -1
- package/dist/cli/run/adapters/copilot.test.js +122 -282
- package/dist/cli/run/adapters/copilot.test.js.map +1 -1
- package/dist/cli/run/adapters/cursor.d.ts +25 -7
- package/dist/cli/run/adapters/cursor.d.ts.map +1 -1
- package/dist/cli/run/adapters/cursor.js +103 -156
- package/dist/cli/run/adapters/cursor.js.map +1 -1
- package/dist/cli/run/adapters/cursor.test.js +106 -218
- package/dist/cli/run/adapters/cursor.test.js.map +1 -1
- package/dist/cli/run/adapters/index.d.ts +34 -5
- package/dist/cli/run/adapters/index.d.ts.map +1 -1
- package/dist/cli/run/adapters/index.js +147 -21
- package/dist/cli/run/adapters/index.js.map +1 -1
- package/dist/cli/run/adapters/index.test.d.ts +2 -0
- package/dist/cli/run/adapters/index.test.d.ts.map +1 -0
- package/dist/cli/run/adapters/index.test.js +129 -0
- package/dist/cli/run/adapters/index.test.js.map +1 -0
- package/dist/cli/run/adapters/opencode.d.ts +25 -9
- package/dist/cli/run/adapters/opencode.d.ts.map +1 -1
- package/dist/cli/run/adapters/opencode.js +136 -152
- package/dist/cli/run/adapters/opencode.js.map +1 -1
- package/dist/cli/run/adapters/opencode.test.js +99 -218
- package/dist/cli/run/adapters/opencode.test.js.map +1 -1
- package/dist/cli/run/adapters/permission-modes.d.ts +47 -4
- package/dist/cli/run/adapters/permission-modes.d.ts.map +1 -1
- package/dist/cli/run/adapters/permission-modes.js +113 -37
- package/dist/cli/run/adapters/permission-modes.js.map +1 -1
- package/dist/cli/run/adapters/permission-modes.test.js +55 -40
- package/dist/cli/run/adapters/permission-modes.test.js.map +1 -1
- package/dist/cli/run/adapters/stub-cli.test-helper.d.ts +22 -0
- package/dist/cli/run/adapters/stub-cli.test-helper.d.ts.map +1 -0
- package/dist/cli/run/adapters/stub-cli.test-helper.js +73 -0
- package/dist/cli/run/adapters/stub-cli.test-helper.js.map +1 -0
- package/dist/cli/run/platform.d.ts +52 -0
- package/dist/cli/run/platform.d.ts.map +1 -0
- package/dist/cli/run/platform.js +207 -0
- package/dist/cli/run/platform.js.map +1 -0
- package/dist/cli/run/platform.test.d.ts +2 -0
- package/dist/cli/run/platform.test.d.ts.map +1 -0
- package/dist/cli/run/platform.test.js +119 -0
- package/dist/cli/run/platform.test.js.map +1 -0
- package/dist/cli/run/schema.d.ts +6 -8
- package/dist/cli/run/schema.d.ts.map +1 -1
- package/dist/cli/run/schema.js +44 -68
- package/dist/cli/run/schema.js.map +1 -1
- package/dist/cli/run/schema.test.js +59 -279
- package/dist/cli/run/schema.test.js.map +1 -1
- package/dist/cli/run.d.ts +34 -56
- package/dist/cli/run.d.ts.map +1 -1
- package/dist/cli/run.js +379 -1132
- package/dist/cli/run.js.map +1 -1
- package/dist/cli/run.test.d.ts +2 -0
- package/dist/cli/run.test.d.ts.map +1 -0
- package/dist/cli/run.test.js +318 -0
- package/dist/cli/run.test.js.map +1 -0
- package/dist/cli/sync-check.d.ts.map +1 -1
- package/dist/cli/sync-check.js +12 -3
- package/dist/cli/sync-check.js.map +1 -1
- package/dist/cli/sync.d.ts.map +1 -1
- package/dist/cli/sync.js +3 -2
- package/dist/cli/sync.js.map +1 -1
- package/dist/cli/team-config.d.ts.map +1 -1
- package/dist/cli/team-config.js +2 -21
- package/dist/cli/team-config.js.map +1 -1
- package/dist/cli/tiers.test.js +4 -13
- package/dist/cli/tiers.test.js.map +1 -1
- package/dist/cli/update.d.ts.map +1 -1
- package/dist/cli/update.js +4 -3
- package/dist/cli/update.js.map +1 -1
- package/dist/cli/website-plugins.test.js +51 -2
- package/dist/cli/website-plugins.test.js.map +1 -1
- package/dist/orchestrator/plugins/coolify/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/coolify/config.js +13 -0
- package/dist/orchestrator/plugins/coolify/config.js.map +1 -1
- package/dist/orchestrator/plugins/sentry/config.d.ts.map +1 -1
- package/dist/orchestrator/plugins/sentry/config.js +13 -0
- package/dist/orchestrator/plugins/sentry/config.js.map +1 -1
- package/package.json +3 -10
- package/src/cli/adapters/claude-code.ts +7 -3
- package/src/cli/adapters/single-file-base.ts +47 -4
- package/src/cli/agent-plugin.test.ts +14 -0
- package/src/cli/agent-roster.test.ts +0 -55
- package/src/cli/bootstrap.ts +23 -0
- package/src/cli/boundary.test.ts +9 -7
- package/src/cli/ci.ts +6 -4
- package/src/cli/command-namespace.test.ts +35 -0
- package/src/cli/convoy/TELEMETRY.md +138 -130
- package/src/cli/convoy/artifacts.test.ts +4 -2
- package/src/cli/convoy/artifacts.ts +13 -12
- package/src/cli/convoy/engine.git.test.ts +462 -0
- package/src/cli/convoy/engine.test.ts +817 -850
- package/src/cli/convoy/engine.ts +1864 -2596
- package/src/cli/convoy/event-schemas.ts +63 -59
- package/src/cli/convoy/events.test.ts +58 -9
- package/src/cli/convoy/events.ts +69 -91
- package/src/cli/convoy/gates.ts +31 -12
- package/src/cli/convoy/isolation.test.ts +76 -43
- package/src/cli/convoy/isolation.ts +100 -38
- package/src/cli/convoy/lock.test.ts +16 -0
- package/src/cli/convoy/lock.ts +25 -8
- package/src/cli/convoy/merge.test.ts +25 -1
- package/src/cli/convoy/merge.ts +74 -61
- package/src/cli/convoy/progress.test.ts +59 -0
- package/src/cli/convoy/progress.ts +121 -0
- package/src/cli/convoy/read-model.test.ts +685 -0
- package/src/cli/convoy/read-model.ts +1469 -0
- package/src/cli/convoy/redact.test.ts +49 -0
- package/src/cli/convoy/redact.ts +73 -0
- package/src/cli/convoy/reviewer.test.ts +112 -0
- package/src/cli/convoy/reviewer.ts +196 -0
- package/src/cli/convoy/schedule.test.ts +56 -0
- package/src/cli/convoy/schedule.ts +109 -0
- package/src/cli/convoy/spec-builder.test.ts +460 -464
- package/src/cli/convoy/spec-builder.ts +460 -129
- package/src/cli/convoy/spec-types.ts +46 -108
- package/src/cli/convoy/store.test.ts +64 -13
- package/src/cli/convoy/store.ts +143 -33
- package/src/cli/convoy/types.ts +59 -71
- package/src/cli/convoy/worktree.test.ts +140 -1
- package/src/cli/convoy/worktree.ts +311 -61
- package/src/cli/convoy-args.test.ts +10 -30
- package/src/cli/convoy-cmd.test.ts +163 -0
- package/src/cli/convoy-cmd.ts +173 -215
- package/src/cli/dashboard/dashboard.css +2086 -0
- package/src/cli/dashboard/dashboard.js +1687 -0
- package/src/cli/dashboard/index.html +307 -0
- package/src/cli/dashboard.test.ts +382 -0
- package/src/cli/dashboard.ts +243 -339
- package/src/cli/dispatcher.test.ts +43 -2
- package/src/cli/docs-accuracy.test.ts +37 -10
- package/src/cli/doctor.ts +9 -6
- package/src/cli/init-own-files.test.ts +156 -0
- package/src/cli/init.test.ts +5 -4
- package/src/cli/init.ts +104 -7
- package/src/cli/layers.ts +13 -4
- package/src/cli/lesson.ts +6 -5
- package/src/cli/log.test.ts +228 -0
- package/src/cli/log.ts +302 -83
- package/src/cli/nearest.test.ts +27 -0
- package/src/cli/nearest.ts +38 -0
- package/src/cli/pipeline.flow.test.ts +607 -0
- package/src/cli/pipeline.ts +544 -759
- package/src/cli/plan.test.ts +193 -0
- package/src/cli/plan.ts +209 -545
- package/src/cli/prompt.test.ts +21 -2
- package/src/cli/prompt.ts +11 -7
- package/src/cli/remove.ts +3 -0
- package/src/cli/review.ts +7 -1
- package/src/cli/run/adapters/agent-process.test.ts +175 -0
- package/src/cli/run/adapters/agent-process.ts +252 -0
- package/src/cli/run/adapters/claude.test.ts +205 -260
- package/src/cli/run/adapters/claude.ts +151 -162
- package/src/cli/run/adapters/codex.test.ts +120 -100
- package/src/cli/run/adapters/codex.ts +115 -91
- package/src/cli/run/adapters/copilot.test.ts +135 -306
- package/src/cli/run/adapters/copilot.ts +105 -274
- package/src/cli/run/adapters/cursor.test.ts +111 -220
- package/src/cli/run/adapters/cursor.ts +105 -156
- package/src/cli/run/adapters/index.test.ts +148 -0
- package/src/cli/run/adapters/index.ts +168 -20
- package/src/cli/run/adapters/opencode.test.ts +106 -227
- package/src/cli/run/adapters/opencode.ts +139 -151
- package/src/cli/run/adapters/permission-modes.test.ts +63 -41
- package/src/cli/run/adapters/permission-modes.ts +118 -37
- package/src/cli/run/adapters/stub-cli.test-helper.ts +88 -0
- package/src/cli/run/platform.test.ts +128 -0
- package/src/cli/run/platform.ts +213 -0
- package/src/cli/run/schema.test.ts +62 -344
- package/src/cli/run/schema.ts +48 -78
- package/src/cli/run.test.ts +351 -0
- package/src/cli/run.ts +366 -1151
- package/src/cli/sync-check.ts +12 -3
- package/src/cli/sync.ts +3 -2
- package/src/cli/team-config.ts +2 -21
- package/src/cli/tiers.test.ts +4 -17
- package/src/cli/update.ts +4 -3
- package/src/cli/website-plugins.test.ts +55 -5
- package/src/orchestrator/agents/team-lead.agent.md +2 -2
- package/src/orchestrator/customizations/README.md +58 -13
- package/src/orchestrator/customizations/logs/README.md +23 -18
- package/src/orchestrator/instructions/general.instructions.md +1 -1
- package/src/orchestrator/plugins/coolify/config.ts +13 -0
- package/src/orchestrator/plugins/sentry/config.ts +13 -0
- package/src/orchestrator/prompts/assess-complexity.prompt.md +43 -26
- package/src/orchestrator/prompts/bootstrap-customizations.prompt.md +44 -49
- package/src/orchestrator/prompts/brainstorm.prompt.md +2 -2
- package/src/orchestrator/prompts/bug-fix.prompt.md +5 -4
- package/src/orchestrator/prompts/create-skill.prompt.md +29 -39
- package/src/orchestrator/prompts/fix-convoy.prompt.md +43 -29
- package/src/orchestrator/prompts/fix-prd.prompt.md +26 -22
- package/src/orchestrator/prompts/generate-convoy.prompt.md +139 -147
- package/src/orchestrator/prompts/generate-prd.prompt.md +75 -68
- package/src/orchestrator/prompts/implement-feature.prompt.md +7 -6
- package/src/orchestrator/prompts/validate-convoy.prompt.md +29 -28
- package/src/orchestrator/prompts/validate-prd.prompt.md +28 -21
- package/src/orchestrator/skills/agent-hooks/HOOKS-REFERENCE.md +3 -3
- package/src/orchestrator/skills/agent-hooks/SKILL.md +1 -1
- package/src/orchestrator/skills/fast-review/SKILL.md +3 -1
- package/src/orchestrator/skills/orchestration-protocols/SKILL.md +7 -8
- package/dist/cli/convoy/dag-analysis.d.ts +0 -39
- package/dist/cli/convoy/dag-analysis.d.ts.map +0 -1
- package/dist/cli/convoy/dag-analysis.js +0 -279
- package/dist/cli/convoy/dag-analysis.js.map +0 -1
- package/dist/cli/convoy/dag-analysis.test.d.ts +0 -2
- package/dist/cli/convoy/dag-analysis.test.d.ts.map +0 -1
- package/dist/cli/convoy/dag-analysis.test.js +0 -289
- package/dist/cli/convoy/dag-analysis.test.js.map +0 -1
- package/dist/cli/convoy/formula.d.ts +0 -19
- package/dist/cli/convoy/formula.d.ts.map +0 -1
- package/dist/cli/convoy/formula.js +0 -142
- package/dist/cli/convoy/formula.js.map +0 -1
- package/dist/cli/convoy/formula.test.d.ts +0 -2
- package/dist/cli/convoy/formula.test.d.ts.map +0 -1
- package/dist/cli/convoy/formula.test.js +0 -342
- package/dist/cli/convoy/formula.test.js.map +0 -1
- package/dist/cli/convoy/health.d.ts +0 -34
- package/dist/cli/convoy/health.d.ts.map +0 -1
- package/dist/cli/convoy/health.js +0 -123
- package/dist/cli/convoy/health.js.map +0 -1
- package/dist/cli/convoy/health.test.d.ts +0 -2
- package/dist/cli/convoy/health.test.d.ts.map +0 -1
- package/dist/cli/convoy/health.test.js +0 -448
- package/dist/cli/convoy/health.test.js.map +0 -1
- package/dist/cli/convoy/last-run.d.ts +0 -53
- package/dist/cli/convoy/last-run.d.ts.map +0 -1
- package/dist/cli/convoy/last-run.js +0 -54
- package/dist/cli/convoy/last-run.js.map +0 -1
- package/dist/cli/convoy/last-run.test.d.ts +0 -2
- package/dist/cli/convoy/last-run.test.d.ts.map +0 -1
- package/dist/cli/convoy/last-run.test.js +0 -110
- package/dist/cli/convoy/last-run.test.js.map +0 -1
- package/dist/cli/convoy/pipeline.d.ts +0 -41
- package/dist/cli/convoy/pipeline.d.ts.map +0 -1
- package/dist/cli/convoy/pipeline.js +0 -414
- package/dist/cli/convoy/pipeline.js.map +0 -1
- package/dist/cli/convoy/pipeline.test.d.ts +0 -2
- package/dist/cli/convoy/pipeline.test.d.ts.map +0 -1
- package/dist/cli/convoy/pipeline.test.js +0 -837
- package/dist/cli/convoy/pipeline.test.js.map +0 -1
- package/dist/cli/convoy/review-stages.d.ts +0 -9
- package/dist/cli/convoy/review-stages.d.ts.map +0 -1
- package/dist/cli/convoy/review-stages.js +0 -134
- package/dist/cli/convoy/review-stages.js.map +0 -1
- package/dist/cli/convoy/review-stages.test.d.ts +0 -2
- package/dist/cli/convoy/review-stages.test.d.ts.map +0 -1
- package/dist/cli/convoy/review-stages.test.js +0 -197
- package/dist/cli/convoy/review-stages.test.js.map +0 -1
- package/dist/cli/run/executor.d.ts +0 -15
- package/dist/cli/run/executor.d.ts.map +0 -1
- package/dist/cli/run/executor.js +0 -249
- package/dist/cli/run/executor.js.map +0 -1
- package/dist/cli/run/executor.test.d.ts +0 -2
- package/dist/cli/run/executor.test.d.ts.map +0 -1
- package/dist/cli/run/executor.test.js +0 -297
- package/dist/cli/run/executor.test.js.map +0 -1
- package/dist/cli/run/reporter.d.ts +0 -10
- package/dist/cli/run/reporter.d.ts.map +0 -1
- package/dist/cli/run/reporter.js +0 -142
- package/dist/cli/run/reporter.js.map +0 -1
- package/dist/cli/run-dry-run.test.d.ts +0 -2
- package/dist/cli/run-dry-run.test.d.ts.map +0 -1
- package/dist/cli/run-dry-run.test.js +0 -83
- package/dist/cli/run-dry-run.test.js.map +0 -1
- package/dist/cli/run-executor-flags.test.d.ts +0 -2
- package/dist/cli/run-executor-flags.test.d.ts.map +0 -1
- package/dist/cli/run-executor-flags.test.js +0 -31
- package/dist/cli/run-executor-flags.test.js.map +0 -1
- package/dist/cli/run-finish.test.d.ts +0 -2
- package/dist/cli/run-finish.test.d.ts.map +0 -1
- package/dist/cli/run-finish.test.js +0 -77
- package/dist/cli/run-finish.test.js.map +0 -1
- package/dist/cli/watch.d.ts +0 -15
- package/dist/cli/watch.d.ts.map +0 -1
- package/dist/cli/watch.js +0 -277
- package/dist/cli/watch.js.map +0 -1
- package/dist/dashboard/scripts/etl.d.ts +0 -10
- package/dist/dashboard/scripts/etl.d.ts.map +0 -1
- package/dist/dashboard/scripts/etl.js +0 -141
- package/dist/dashboard/scripts/etl.js.map +0 -1
- package/src/cli/convoy/dag-analysis.test.ts +0 -349
- package/src/cli/convoy/dag-analysis.ts +0 -367
- package/src/cli/convoy/formula.test.ts +0 -404
- package/src/cli/convoy/formula.ts +0 -174
- package/src/cli/convoy/health.test.ts +0 -519
- package/src/cli/convoy/health.ts +0 -189
- package/src/cli/convoy/last-run.test.ts +0 -130
- package/src/cli/convoy/last-run.ts +0 -87
- package/src/cli/convoy/pipeline.test.ts +0 -999
- package/src/cli/convoy/pipeline.ts +0 -492
- package/src/cli/convoy/review-stages.test.ts +0 -235
- package/src/cli/convoy/review-stages.ts +0 -166
- package/src/cli/run/executor.test.ts +0 -338
- package/src/cli/run/executor.ts +0 -292
- package/src/cli/run/reporter.ts +0 -160
- package/src/cli/run-dry-run.test.ts +0 -97
- package/src/cli/run-executor-flags.test.ts +0 -38
- package/src/cli/run-finish.test.ts +0 -91
- package/src/cli/watch.ts +0 -295
- package/src/dashboard/astro.config.mjs +0 -6
- package/src/dashboard/dist/_astro/index.CADNhRPS.css +0 -1
- package/src/dashboard/dist/data/.gitkeep +0 -0
- package/src/dashboard/dist/data/convoy-list.json +0 -1
- package/src/dashboard/dist/data/overall-stats.json +0 -29
- package/src/dashboard/dist/index.html +0 -1963
- package/src/dashboard/node_modules/.vite/deps/_metadata.json +0 -31
- package/src/dashboard/node_modules/.vite/deps/astro___aria-query.js +0 -6776
- package/src/dashboard/node_modules/.vite/deps/astro___aria-query.js.map +0 -7
- package/src/dashboard/node_modules/.vite/deps/astro___axobject-query.js +0 -3754
- package/src/dashboard/node_modules/.vite/deps/astro___axobject-query.js.map +0 -7
- package/src/dashboard/node_modules/.vite/deps/astro___cssesc.js +0 -99
- package/src/dashboard/node_modules/.vite/deps/astro___cssesc.js.map +0 -7
- package/src/dashboard/node_modules/.vite/deps/chunk-BUSYA2B4.js +0 -8
- package/src/dashboard/node_modules/.vite/deps/chunk-BUSYA2B4.js.map +0 -7
- package/src/dashboard/node_modules/.vite/deps/package.json +0 -3
- package/src/dashboard/package-lock.json +0 -6
- package/src/dashboard/public/data/.gitkeep +0 -0
- package/src/dashboard/public/data/convoy-list.json +0 -1
- package/src/dashboard/public/data/overall-stats.json +0 -29
- package/src/dashboard/public/icon-192.png +0 -0
- package/src/dashboard/scripts/etl.test.ts +0 -166
- package/src/dashboard/scripts/etl.ts +0 -170
- package/src/dashboard/scripts/generate-demo-db.test.ts +0 -30
- package/src/dashboard/scripts/generate-demo-db.ts +0 -529
- package/src/dashboard/scripts/integration-test.ts +0 -504
- package/src/dashboard/scripts/verify-demo-data.sh +0 -51
- package/src/dashboard/seed-data/delegations.ndjson +0 -35
- package/src/dashboard/seed-data/events.ndjson +0 -104
- package/src/dashboard/seed-data/panels.ndjson +0 -13
- package/src/dashboard/seed-data/reviews.ndjson +0 -6
- package/src/dashboard/seed-data/sessions.ndjson +0 -50
- package/src/dashboard/src/env.d.ts +0 -1
- package/src/dashboard/src/layouts/Layout.astro +0 -25
- package/src/dashboard/src/pages/index.astro +0 -2313
- package/src/dashboard/src/styles/dashboard.css +0 -2943
- package/src/dashboard/tsconfig.json +0 -6
- /package/src/{dashboard/dist → cli/dashboard}/icon-192.png +0 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '
|
|
2
|
+
description: 'Write a Product Requirements Document (PRD) from a feature request. The convoy planner breaks the PRD into agent tasks.'
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
output: prd
|
|
5
5
|
---
|
|
@@ -8,36 +8,36 @@ output: prd
|
|
|
8
8
|
|
|
9
9
|
# Generate PRD
|
|
10
10
|
|
|
11
|
-
You are the Team Lead.
|
|
11
|
+
You are the Team Lead. Turn the feature request at the end of this prompt into a Product Requirements Document (PRD) that an automated planner can break into agent tasks. Every section must be **concrete**, **specific** and **implementation-ready**.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## What Happens to Your Answer
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
{{goal}}
|
|
15
|
+
When `opencastle convoy` runs this step:
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
1. Your answer is saved, exactly as written, to `.opencastle/prds/<feature-name>.prd.md`.
|
|
18
|
+
2. A reviewer checks it against the structure below. If it fails, the issues come back to you to fix, at most twice; after that, planning continues with the best version. Getting it right first time saves those rounds.
|
|
19
|
+
3. At the same time, another session reads the Task Breakdown to size the work and, for a large feature, to split it into groups that are planned side by side.
|
|
20
|
+
4. The planner turns each workstream into one or more tasks. A workstream's `Files:` become the files its tasks may change, and phases become dependencies. Two tasks that can run at the same time may not touch the same file.
|
|
21
|
+
5. After every task has finished, the project's own typecheck, lint, test and build scripts run once on the combined result. Do not add a workstream whose only job is to run them.
|
|
20
22
|
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
---
|
|
23
|
+
This session is read-only. Read the repository to use its real paths and follow its conventions, and give the PRD as your answer — do not try to create files.
|
|
24
24
|
|
|
25
25
|
## Research Before Writing
|
|
26
26
|
|
|
27
|
-
If
|
|
27
|
+
If the request involves a real person, place, organization or other real-world subject:
|
|
28
28
|
|
|
29
|
-
1. **Search the
|
|
30
|
-
2. **
|
|
29
|
+
1. **Search the web first** if a search or fetch tool is available, and use what you find.
|
|
30
|
+
2. **Otherwise use what you know, and mark it:**
|
|
31
31
|
> ℹ️ Content based on training data — verify before launch.
|
|
32
|
-
3. **Never
|
|
32
|
+
3. **Never invent facts** — bios, histories, statistics, quotes. Say what is unknown and use placeholder text.
|
|
33
33
|
|
|
34
34
|
## Output Rules
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
Return the complete PRD as your answer, starting with the `#` heading. No code fence around it, no summary, nothing before or after it.
|
|
37
37
|
|
|
38
38
|
## Required PRD Structure
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
Use **exactly** these sections, in this order. Do not skip or merge any.
|
|
41
41
|
|
|
42
42
|
---
|
|
43
43
|
|
|
@@ -49,24 +49,24 @@ Produce PRD in Markdown using **exactly** sections below. Do not skip or merge s
|
|
|
49
49
|
|
|
50
50
|
## Goals
|
|
51
51
|
|
|
52
|
-
Numbered list of specific, measurable outcomes
|
|
52
|
+
Numbered list of specific, measurable outcomes. Each goal is one sentence with a clear success condition.
|
|
53
53
|
|
|
54
54
|
1. …
|
|
55
55
|
2. …
|
|
56
56
|
|
|
57
57
|
## Non-Goals
|
|
58
58
|
|
|
59
|
-
|
|
59
|
+
What this work does **not** cover. If nothing is excluded, write "None."
|
|
60
60
|
|
|
61
61
|
## User Stories & Acceptance Criteria
|
|
62
62
|
|
|
63
|
-
For each primary scenario,
|
|
63
|
+
For each primary scenario, a user story and binary acceptance criteria.
|
|
64
64
|
|
|
65
|
-
**
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
- State exact expected values (
|
|
65
|
+
**Rules for acceptance criteria (the reviewer rejects violations):**
|
|
66
|
+
- Each one is a deterministic pass/fail check — no subjective language ("looks good", "feels responsive", "is clean").
|
|
67
|
+
- No modal verbs that make it optional: "should", "might", "could", "may". Use "must" or "will".
|
|
68
|
+
- No vague qualifiers: "or equivalent", "or similar", "as needed".
|
|
69
|
+
- State exact expected values (exact heading text, exact attribute names).
|
|
70
70
|
|
|
71
71
|
**US-1: [Short title]**
|
|
72
72
|
As a [user type], I want [action] so that [benefit].
|
|
@@ -79,16 +79,16 @@ Acceptance criteria:
|
|
|
79
79
|
|
|
80
80
|
## Technical Requirements
|
|
81
81
|
|
|
82
|
-
|
|
83
|
-
- Libraries
|
|
82
|
+
Constraints the implementation must respect:
|
|
83
|
+
- Libraries and framework versions to use or avoid
|
|
84
84
|
- API contracts or interfaces that must not break
|
|
85
|
-
- Performance thresholds (e.g
|
|
85
|
+
- Performance thresholds (e.g. "<200 ms p95 latency")
|
|
86
86
|
- Security requirements
|
|
87
|
-
- Browser
|
|
87
|
+
- Browser and platform compatibility
|
|
88
88
|
|
|
89
89
|
## Implementation Scope
|
|
90
90
|
|
|
91
|
-
List **every file and directory** that will be created, modified
|
|
91
|
+
List **every file and directory** that will be created, modified or deleted, using specific paths — not `src/` or "the frontend". Group by concern; put related files in one row, separated by commas. No glob patterns (`*`, `**`). Every concern lists at least one specific file.
|
|
92
92
|
|
|
93
93
|
| Concern | Files / Directories |
|
|
94
94
|
|---------|---------------------|
|
|
@@ -99,78 +99,85 @@ List **every file and directory** that will be created, modified, or deleted. Us
|
|
|
99
99
|
| [Tests] | `__tests__/feature.test.ts`, `e2e/feature.spec.ts` |
|
|
100
100
|
| [Config / env] | `.env.example` |
|
|
101
101
|
|
|
102
|
-
**File partition rules (
|
|
103
|
-
- No two
|
|
104
|
-
- If two workstreams need same file,
|
|
102
|
+
**File partition rules (they decide what can run in parallel):**
|
|
103
|
+
- No two workstreams in the same phase may change the same file.
|
|
104
|
+
- If two workstreams need the same file, put them in different phases (Phase N+1 after Phase N).
|
|
105
105
|
|
|
106
106
|
## Task Breakdown
|
|
107
107
|
|
|
108
|
-
|
|
108
|
+
Use as few phases as the dependencies allow. Workstreams in the same phase run in parallel and **must not share any file**.
|
|
109
109
|
|
|
110
|
-
Keep
|
|
110
|
+
Keep each workstream to one sentence plus its file list.
|
|
111
111
|
|
|
112
|
-
**
|
|
113
|
-
- Each workstream
|
|
114
|
-
- No two
|
|
115
|
-
-
|
|
116
|
-
- No circular dependencies
|
|
112
|
+
**Rules (the reviewer rejects violations):**
|
|
113
|
+
- Each workstream lists the exact files it will change.
|
|
114
|
+
- No two workstreams in the same phase claim the same file.
|
|
115
|
+
- Each phase after the first says what it depends on (`depends on: Phase N`).
|
|
116
|
+
- No circular dependencies.
|
|
117
|
+
- Writing tests is a workstream with its own test files. Running the suite is not: it runs once, automatically, after every task.
|
|
117
118
|
|
|
118
119
|
```
|
|
119
120
|
Phase 1 — Foundation (parallel, no dependencies):
|
|
120
|
-
- [Workstream A title]: [
|
|
121
|
-
Files: [
|
|
122
|
-
- [Workstream B title]: [
|
|
123
|
-
Files: [
|
|
121
|
+
- [Workstream A title]: [one-sentence description]
|
|
122
|
+
Files: [exact files]
|
|
123
|
+
- [Workstream B title]: [one-sentence description]
|
|
124
|
+
Files: [exact files]
|
|
124
125
|
|
|
125
126
|
Phase 2 — Integration (depends on Phase 1):
|
|
126
|
-
- [Workstream C title]: [
|
|
127
|
-
Files: [
|
|
127
|
+
- [Workstream C title]: [one-sentence description]
|
|
128
|
+
Files: [exact files]
|
|
128
129
|
Depends on: Phase 1
|
|
129
130
|
|
|
130
|
-
Phase 3 —
|
|
131
|
-
- [Tests]:
|
|
132
|
-
|
|
131
|
+
Phase 3 — Tests and docs (depends on Phase 2):
|
|
132
|
+
- [Tests]: [which behaviour the new tests cover]
|
|
133
|
+
Files: [exact test files]
|
|
134
|
+
- [Documentation]: [what the docs explain]
|
|
135
|
+
Files: [exact doc files]
|
|
133
136
|
```
|
|
134
137
|
|
|
135
138
|
## Success Criteria
|
|
136
139
|
|
|
137
|
-
|
|
138
|
-
- [ ]
|
|
139
|
-
- [ ]
|
|
140
|
-
- [ ] Lint passes with zero warnings
|
|
141
|
-
- [ ] Unit test coverage ≥ 95% on all new/changed files
|
|
140
|
+
Binary checks that confirm the feature is shippable:
|
|
141
|
+
- [ ] Every acceptance criterion in User Stories & Acceptance Criteria passes
|
|
142
|
+
- [ ] The project's typecheck, lint, test and build scripts pass
|
|
142
143
|
- [ ] [Feature-specific checks]
|
|
143
144
|
|
|
144
145
|
## Risks & Open Questions
|
|
145
146
|
|
|
146
147
|
- **[Risk title]**: [Description of the risk] — *Mitigation: [How to handle it]*
|
|
147
|
-
- **[Open question]**: [What needs
|
|
148
|
+
- **[Open question]**: [What needs deciding before implementation can start]
|
|
148
149
|
|
|
149
|
-
If
|
|
150
|
+
If there are none, write "None identified."
|
|
150
151
|
|
|
151
152
|
---
|
|
152
153
|
|
|
153
154
|
## Self-Validation Checklist (MANDATORY)
|
|
154
155
|
|
|
155
|
-
|
|
156
|
+
Check **every item** before answering. The reviewer rejects the PRD for any blocking failure, and each round costs a full session.
|
|
156
157
|
|
|
157
158
|
### Structural Integrity
|
|
158
159
|
|
|
159
|
-
- [ ] **No conflicting requirements**: Technical Requirements, Non-Goals, Risks
|
|
160
|
-
- [ ] **No duplicate open questions**:
|
|
161
|
-
- [ ] **No circular dependencies**:
|
|
162
|
-
- [ ] **No placeholder text**:
|
|
160
|
+
- [ ] **No conflicting requirements**: Technical Requirements, Non-Goals, Risks & Open Questions and User Stories do not contradict each other.
|
|
161
|
+
- [ ] **No duplicate open questions**: a question answered elsewhere is not reopened in Risks & Open Questions.
|
|
162
|
+
- [ ] **No circular dependencies**: the phase graph is acyclic.
|
|
163
|
+
- [ ] **No placeholder text**: every section has real content, not template filler ("2–3 sentences about…", "Description here").
|
|
163
164
|
|
|
164
165
|
### Implementation Coherence
|
|
165
166
|
|
|
166
|
-
- [ ] **File completeness**:
|
|
167
|
-
- [ ] **No file partition conflicts**:
|
|
168
|
-
- [ ] **Every workstream lists files**:
|
|
169
|
-
- [ ] **No orphan files**:
|
|
170
|
-
- [ ] **Scope specificity**: Implementation Scope uses specific
|
|
167
|
+
- [ ] **File completeness**: every file named in the acceptance criteria or Technical Requirements appears in Implementation Scope and in a Task Breakdown file list.
|
|
168
|
+
- [ ] **No file partition conflicts**: no two workstreams in the same phase claim the same file.
|
|
169
|
+
- [ ] **Every workstream lists files**: including docs and tests.
|
|
170
|
+
- [ ] **No orphan files**: every file in Implementation Scope belongs to exactly one workstream.
|
|
171
|
+
- [ ] **Scope specificity**: Implementation Scope uses specific files or subdirectories, not `src/` or "the frontend".
|
|
171
172
|
|
|
172
173
|
### Language Quality
|
|
173
174
|
|
|
174
|
-
- [ ] **Testable acceptance criteria**:
|
|
175
|
-
- [ ] **No optional modals**:
|
|
176
|
-
- [ ] **
|
|
175
|
+
- [ ] **Testable acceptance criteria**: each is a deterministic pass/fail check.
|
|
176
|
+
- [ ] **No optional modals**: acceptance criteria say "must" or "will", never "should", "might", "could" or "may".
|
|
177
|
+
- [ ] **Acronyms expanded**: non-standard acronyms are spelled out on first use (API, CLI, JSON, REST and the like need not be).
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## Feature Request
|
|
182
|
+
|
|
183
|
+
{{goal}}
|
|
@@ -37,14 +37,15 @@ Every subtask must be tracked. **No issue = no implementation.** This step produ
|
|
|
37
37
|
5. **Link to roadmap** — Reference the roadmap section in the issue description so context is never lost
|
|
38
38
|
6. **Verify issues exist** — List all created issue IDs. If count is 0, do NOT proceed to Step 2.5
|
|
39
39
|
|
|
40
|
-
### 2.5
|
|
40
|
+
### 2.5 Write the Convoy Spec (BLOCKING — decides how Step 3 proceeds)
|
|
41
41
|
|
|
42
|
-
All project-related work executes via
|
|
42
|
+
All project-related work executes via OpenCastle's convoy engine — regardless of subtask count. The convoy engine is experimental; say so when you hand the spec over.
|
|
43
43
|
|
|
44
|
-
1. **
|
|
45
|
-
2. **
|
|
46
|
-
3. **
|
|
47
|
-
4. **
|
|
44
|
+
1. **Write the spec** — plan the decomposed task list by the rules in the `generate-convoy` prompt: self-contained task prompts, plain file paths (no `*` or `?`), no two tasks in the same phase sharing a path, `depends_on` for ordering. That prompt returns JSON, which the CLI converts only when `npx opencastle convoy "<task>"` runs it; here, write the spec yourself as YAML to `.opencastle/convoys/<name>.convoy.yml`, with `version: 1` and the same fields. The spec IS the implementation plan; even single-task fixes go through convoy for observability.
|
|
45
|
+
2. **Check the spec** — run `npx opencastle convoy run .opencastle/convoys/<name>.convoy.yml --dry-run`. It runs the same checks a run does — the spec's schema, glob paths, two tasks in the same phase sharing a path — and prints what would run, without starting an agent or recording anything. Fix what it reports before handing the spec over.
|
|
46
|
+
3. **Hand the spec to the user** — tell them the convoy engine is experimental, and to run: `npx opencastle convoy run .opencastle/convoys/<name>.convoy.yml`. It runs each task in a git worktree made from the last commit, so the work it builds on must be committed; it runs on the agent runtime `opencastle init` set up, which must be installed and signed in (`--adapter <name>` picks another: claude, codex, cursor, opencode or copilot). The work lands on a branch of its own.
|
|
47
|
+
4. **The convoy engine handles** isolated git worktrees, parallel execution, merge queue ordering, crash recovery, and structured logging automatically.
|
|
48
|
+
5. **After convoy completes** — proceed to Step 4 (validation) and Step 5 (delivery/PR).
|
|
48
49
|
|
|
49
50
|
### 3. Implementation Rules
|
|
50
51
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '
|
|
2
|
+
description: 'Review a convoy spec for what code cannot check: missing dependencies, missing or redundant tasks. Answers with a JSON verdict.'
|
|
3
3
|
agent: 'Reviewer'
|
|
4
4
|
output: validation
|
|
5
5
|
---
|
|
@@ -8,47 +8,42 @@ output: validation
|
|
|
8
8
|
|
|
9
9
|
# Validate Task Plan
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
You are a senior technical reviewer. Review the convoy spec at the end of this prompt before agents run it.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## What Happens to Your Verdict
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
`opencastle convoy` asks for this review only when a plan will run without anyone reading it first (`--yes`). Otherwise the person who approves the plan is the reviewer.
|
|
16
16
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
---
|
|
20
|
-
|
|
21
|
-
## Validation Checks
|
|
22
|
-
|
|
23
|
-
> If spec contains `<!-- validation-pass: N -->`, this is pass N. On pass 2+, verify previous fixes were applied — do NOT invent new issues.
|
|
17
|
+
- `"valid": true` — the plan runs as it is.
|
|
18
|
+
- `"valid": false` — your `issues` go to a fix step that patches the plan, once. The patched plan runs only if it still passes the code's checks; otherwise the original runs.
|
|
24
19
|
|
|
25
|
-
|
|
20
|
+
Raise an issue only when the plan would fail, or produce the wrong result, without the fix.
|
|
26
21
|
|
|
27
|
-
|
|
22
|
+
The code has already checked the schema, that ids are unique, that every `depends_on` exists, that there are no cycles, that `files` hold no globs, and that no two tasks that can run at the same time claim the same file. Do not check those again. Do not judge wording, style or length. Everything outside `tasks` — branch, adapter, concurrency, on_failure, gates, defaults — is set by the code; leave it alone.
|
|
28
23
|
|
|
29
|
-
|
|
24
|
+
This session is read-only. You may read the repository to confirm paths; answer in text.
|
|
30
25
|
|
|
31
|
-
|
|
32
|
-
- [ ] Transitive dependencies count: if A → B → C, then A and C are NOT parallel
|
|
26
|
+
## Checks (all BLOCKING)
|
|
33
27
|
|
|
34
|
-
### Dependency Completeness
|
|
28
|
+
### Dependency Completeness
|
|
35
29
|
|
|
36
|
-
|
|
30
|
+
When a task's prompt imports, references or builds on a file, type or component that another task creates, the task depends on that one, directly or through other tasks.
|
|
37
31
|
|
|
38
|
-
- [ ] Scan every prompt for
|
|
39
|
-
- [ ] Each
|
|
32
|
+
- [ ] Scan every prompt for references to other tasks' output
|
|
33
|
+
- [ ] Each one is covered by a `depends_on` path
|
|
40
34
|
|
|
41
|
-
### Logical Soundness
|
|
35
|
+
### Logical Soundness
|
|
42
36
|
|
|
43
|
-
- [ ] No
|
|
44
|
-
- [ ] No
|
|
45
|
-
- [ ] No
|
|
37
|
+
- [ ] No two tasks do the same work
|
|
38
|
+
- [ ] No task the goal plainly needs is missing
|
|
39
|
+
- [ ] No task has an empty or stub prompt (`...`, placeholder text)
|
|
40
|
+
- [ ] No prompt tells its agent to change files outside the task's `files`
|
|
46
41
|
|
|
47
42
|
---
|
|
48
43
|
|
|
49
44
|
## Output Format
|
|
50
45
|
|
|
51
|
-
Your
|
|
46
|
+
Your whole answer is one fenced JSON block — nothing before or after it:
|
|
52
47
|
|
|
53
48
|
```json
|
|
54
49
|
{
|
|
@@ -56,15 +51,21 @@ Your entire response must be single fenced JSON block — no text before or afte
|
|
|
56
51
|
}
|
|
57
52
|
```
|
|
58
53
|
|
|
59
|
-
Or if any check fails:
|
|
54
|
+
Or, if any check fails:
|
|
60
55
|
|
|
61
56
|
```json
|
|
62
57
|
{
|
|
63
58
|
"valid": false,
|
|
64
59
|
"issues": [
|
|
65
|
-
"[
|
|
60
|
+
"[Task id or section]: [Specific problem] — Fix: [What to change]"
|
|
66
61
|
]
|
|
67
62
|
}
|
|
68
63
|
```
|
|
69
64
|
|
|
70
|
-
List only real failures in `issues
|
|
65
|
+
List only real failures in `issues`, not the checks that passed.
|
|
66
|
+
|
|
67
|
+
---
|
|
68
|
+
|
|
69
|
+
## Spec to Review
|
|
70
|
+
|
|
71
|
+
{{goal}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '
|
|
2
|
+
description: 'Check a PRD for the structure the convoy planner needs. Answers with a JSON verdict: valid, or the issues to fix.'
|
|
3
3
|
agent: 'Reviewer'
|
|
4
4
|
output: validation
|
|
5
5
|
---
|
|
@@ -8,44 +8,45 @@ output: validation
|
|
|
8
8
|
|
|
9
9
|
# Validate PRD
|
|
10
10
|
|
|
11
|
-
You are a senior technical reviewer.
|
|
11
|
+
You are a senior technical reviewer. Check the PRD at the end of this prompt before it is broken into automated agent tasks. A PRD that passes produces clean tasks; one that fails produces bad ones.
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
## What Happens to Your Verdict
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
When `opencastle convoy` runs this step:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- `"valid": true` — planning goes on.
|
|
18
|
+
- `"valid": false` — your `issues` go, word for word, to a step that rewrites the PRD, and the result comes back to you. That happens at most twice; after that, planning continues with the PRD as it is. Each issue must therefore say where the problem is and how to fix it.
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
Check **structure** only. The writer already enforced language and style, and the planner checks the final task list in code — unique ids, dependencies, overlapping files. Pass the PRD if its sections exist and agree with each other. Do not fail it for wording, phrasing or preference.
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
The PRD may start with `<!-- validation-pass: N -->`. On pass 2 or later, check only that the earlier issues were fixed — do not raise new ones.
|
|
22
23
|
|
|
23
|
-
|
|
24
|
+
This session is read-only; answer in text.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
## Checks (all BLOCKING)
|
|
26
27
|
|
|
27
|
-
### Required Sections
|
|
28
|
+
### Required Sections
|
|
28
29
|
|
|
29
|
-
|
|
30
|
+
Each of these exists and has real content, not just a heading:
|
|
30
31
|
`Overview`, `Goals`, `Non-Goals`, `User Stories & Acceptance Criteria`, `Technical Requirements`, `Implementation Scope`, `Task Breakdown`, `Success Criteria`, `Risks & Open Questions`.
|
|
31
32
|
|
|
32
|
-
### Structural Integrity
|
|
33
|
+
### Structural Integrity
|
|
33
34
|
|
|
34
|
-
- [ ] No two
|
|
35
|
+
- [ ] No two workstreams in the same phase claim the same file
|
|
35
36
|
- [ ] No circular dependencies between phases
|
|
36
|
-
- [ ] No
|
|
37
|
-
- [ ]
|
|
37
|
+
- [ ] No requirements that contradict each other across sections (e.g. a Non-Goal against a Technical Requirement)
|
|
38
|
+
- [ ] No placeholder or template text (e.g. "2–3 sentences about…", "Description here")
|
|
38
39
|
|
|
39
|
-
### Implementation Coherence
|
|
40
|
+
### Implementation Coherence
|
|
40
41
|
|
|
41
|
-
- [ ] Implementation Scope
|
|
42
|
-
- [ ] Each workstream lists files it will
|
|
42
|
+
- [ ] Implementation Scope names specific files or subdirectories, not just `src/` or "the frontend"
|
|
43
|
+
- [ ] Each workstream in Task Breakdown lists the files it will change, under a `Phase N —` heading
|
|
43
44
|
|
|
44
45
|
---
|
|
45
46
|
|
|
46
47
|
## Output Format
|
|
47
48
|
|
|
48
|
-
Your
|
|
49
|
+
Your whole answer is one fenced JSON block — nothing before or after it:
|
|
49
50
|
|
|
50
51
|
```json
|
|
51
52
|
{
|
|
@@ -53,7 +54,7 @@ Your entire response must be single fenced JSON block — no text before or afte
|
|
|
53
54
|
}
|
|
54
55
|
```
|
|
55
56
|
|
|
56
|
-
Or if any
|
|
57
|
+
Or, if any check fails:
|
|
57
58
|
|
|
58
59
|
```json
|
|
59
60
|
{
|
|
@@ -64,4 +65,10 @@ Or if any **BLOCKING** check fails:
|
|
|
64
65
|
}
|
|
65
66
|
```
|
|
66
67
|
|
|
67
|
-
List only real failures in `issues
|
|
68
|
+
List only real failures in `issues`, not the checks that passed.
|
|
69
|
+
|
|
70
|
+
---
|
|
71
|
+
|
|
72
|
+
## PRD to Validate
|
|
73
|
+
|
|
74
|
+
{{goal}}
|
|
@@ -22,14 +22,14 @@ In addition to the four checks in SKILL.md:
|
|
|
22
22
|
| 5 | Self-improvement | Add `Read .opencastle/LESSONS-LEARNED.md` to prompt text |
|
|
23
23
|
| 6 | Context map | Load the **context-map** skill for 5+ files |
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
The delegation is logged once, when it finishes (on-post-delegate) — a delegation record carries its outcome.
|
|
26
26
|
|
|
27
27
|
## on-post-delegate (detailed verification)
|
|
28
28
|
|
|
29
29
|
| # | Action | Command |
|
|
30
30
|
|---|--------|---------|
|
|
31
|
-
| 1 | Log completion | `opencastle log --type
|
|
32
|
-
| 2 | Fast review | `opencastle log --type
|
|
31
|
+
| 1 | Log completion | `opencastle log --type delegation …` — the delegation record in the **observability-logging** skill |
|
|
32
|
+
| 2 | Fast review | `opencastle log --type review …` — the review record in the **observability-logging** skill |
|
|
33
33
|
| 3 | CI checks | Lint, typecheck, and test (commands via the **codebase-tool** slot) |
|
|
34
34
|
| 4 | Verify ACs | Check each acceptance criterion against tracker issue |
|
|
35
35
|
| 5 | Track issues | `rg -n "Discovered issue" KNOWN-ISSUES.md || gh issue create` |
|
|
@@ -61,7 +61,7 @@ All 6 must pass before the sub-agent is dispatched. See [HOOKS-REFERENCE.md](HOO
|
|
|
61
61
|
|
|
62
62
|
| # | Action |
|
|
63
63
|
|---|--------|
|
|
64
|
-
| 1 | **⛔** `opencastle log --type
|
|
64
|
+
| 1 | **⛔** `opencastle log --type delegation …` (the record in **observability-logging**) |
|
|
65
65
|
| 2 | Run **fast-review** skill |
|
|
66
66
|
| 3 | Lint, typecheck, and test (commands via the **codebase-tool** slot) |
|
|
67
67
|
| 4 | `gh issue view TAS-XX --json body -q '.body'` — verify each AC met |
|
|
@@ -67,7 +67,9 @@ CONFIDENCE: low | medium | high
|
|
|
67
67
|
> **⛔ HARD GATE — Log the review before proceeding.**
|
|
68
68
|
|
|
69
69
|
```sh
|
|
70
|
-
npx opencastle log --type review --
|
|
70
|
+
npx opencastle log --type review --tracker_issue PRJ-42 --agent Developer \
|
|
71
|
+
--verdict pass --attempt 1 --issues_critical 0 --issues_major 0 --issues_minor 2 \
|
|
72
|
+
--confidence high --escalated false --duration_sec 45
|
|
71
73
|
```
|
|
72
74
|
|
|
73
75
|
## Integration & Overnight Mode
|
|
@@ -90,11 +90,11 @@ Health thresholds, escalation path, Error Recovery Playbook, Circuit Breaker: se
|
|
|
90
90
|
Use OpenCastle CLI (`npx opencastle` or `bin/cli.mjs`):
|
|
91
91
|
|
|
92
92
|
```bash
|
|
93
|
-
opencastle convoy run
|
|
94
|
-
opencastle convoy run
|
|
95
|
-
opencastle convoy
|
|
96
|
-
opencastle convoy
|
|
97
|
-
opencastle convoy
|
|
93
|
+
opencastle convoy run convoy.yml --dry-run # check the spec, start nothing
|
|
94
|
+
opencastle convoy run convoy.yml --verbose
|
|
95
|
+
opencastle convoy # the last run and the one next step
|
|
96
|
+
opencastle convoy resume # re-run what is not done
|
|
97
|
+
opencastle convoy dashboard # watch it live
|
|
98
98
|
```
|
|
99
99
|
|
|
100
100
|
**Post-run verification (copy-paste checks):**
|
|
@@ -104,7 +104,6 @@ plain-text run log to tail.
|
|
|
104
104
|
|
|
105
105
|
```bash
|
|
106
106
|
opencastle convoy --json # last run's status, machine-readable
|
|
107
|
-
opencastle convoy run --status # current convoy state from convoy.db
|
|
108
107
|
tail -n 50 .opencastle/logs/events.ndjson | jq -c 'select(.outcome != "success")'
|
|
109
108
|
```
|
|
110
109
|
|
|
@@ -113,9 +112,9 @@ tail -n 50 .opencastle/logs/events.ndjson | jq -c 'select(.outcome != "success")
|
|
|
113
112
|
| Phase | Check | Command / Action |
|
|
114
113
|
|-------|-------|-----------------|
|
|
115
114
|
| Pre-spawn | Inputs present (task, scope, ACs) | `test -s convoy.yml \|\| exit 1` |
|
|
116
|
-
| During-run | Watch for failures | `opencastle convoy
|
|
115
|
+
| During-run | Watch for failures | `opencastle convoy dashboard` |
|
|
117
116
|
| Pre-merge | No task left failed or gate-failed | `opencastle convoy --json \| jq -e '.failed == 0'` |
|
|
118
|
-
|
|
|
117
|
+
| Unfinished | Nothing failed, skipped or left running | `opencastle convoy --json \| jq -e '.done == .total'` |
|
|
119
118
|
| Post-merge | Lint + smoke tests pass | `npm run lint && npm test -- -t "smoke"` |
|
|
120
119
|
| Blocker | Any failure | Block merge; reopen to original researcher(s) |
|
|
121
120
|
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
import type { ConvoyStore } from './store.js';
|
|
2
|
-
import type { ConvoyRecord, TaskRecord } from './types.js';
|
|
3
|
-
export interface ConvoyPattern {
|
|
4
|
-
name: string;
|
|
5
|
-
task_count_range: [number, number];
|
|
6
|
-
agent_sequence: string[];
|
|
7
|
-
avg_duration_ms: number;
|
|
8
|
-
avg_tokens: number;
|
|
9
|
-
success_rate: number;
|
|
10
|
-
common_failure_agents: string[];
|
|
11
|
-
recommended_concurrency: number;
|
|
12
|
-
sample_size: number;
|
|
13
|
-
}
|
|
14
|
-
export interface AgentPerformance {
|
|
15
|
-
agent: string;
|
|
16
|
-
total_tasks: number;
|
|
17
|
-
success_rate: number;
|
|
18
|
-
avg_duration_ms: number;
|
|
19
|
-
avg_tokens: number;
|
|
20
|
-
avg_retries: number;
|
|
21
|
-
best_file_patterns: string[];
|
|
22
|
-
worst_file_patterns: string[];
|
|
23
|
-
}
|
|
24
|
-
export interface DAGRecommendation {
|
|
25
|
-
patterns: ConvoyPattern[];
|
|
26
|
-
agent_stats: AgentPerformance[];
|
|
27
|
-
insights: string[];
|
|
28
|
-
generated_at: string;
|
|
29
|
-
}
|
|
30
|
-
export declare function extractExecutionHistory(store: ConvoyStore, sinceDays?: number): {
|
|
31
|
-
convoys: ConvoyRecord[];
|
|
32
|
-
tasks: TaskRecord[];
|
|
33
|
-
};
|
|
34
|
-
export declare function clusterConvoys(convoys: ConvoyRecord[], tasks: TaskRecord[]): ConvoyPattern[];
|
|
35
|
-
export declare function analyzeAgentPerformance(tasks: TaskRecord[]): AgentPerformance[];
|
|
36
|
-
export declare function generateInsights(patterns: ConvoyPattern[], agents: AgentPerformance[]): string[];
|
|
37
|
-
export declare function analyzeDAG(store: ConvoyStore, sinceDays?: number): DAGRecommendation;
|
|
38
|
-
export declare function formatInsightsMarkdown(rec: DAGRecommendation): string;
|
|
39
|
-
//# sourceMappingURL=dag-analysis.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dag-analysis.d.ts","sourceRoot":"","sources":["../../../src/cli/convoy/dag-analysis.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,YAAY,CAAA;AAC7C,OAAO,KAAK,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,YAAY,CAAA;AAE1D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAA;IACZ,gBAAgB,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAClC,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,qBAAqB,EAAE,MAAM,EAAE,CAAA;IAC/B,uBAAuB,EAAE,MAAM,CAAA;IAC/B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,MAAM,CAAA;IACpB,eAAe,EAAE,MAAM,CAAA;IACvB,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,EAAE,CAAA;IAC5B,mBAAmB,EAAE,MAAM,EAAE,CAAA;CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,QAAQ,EAAE,aAAa,EAAE,CAAA;IACzB,WAAW,EAAE,gBAAgB,EAAE,CAAA;IAC/B,QAAQ,EAAE,MAAM,EAAE,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;CACrB;AA0CD,wBAAgB,uBAAuB,CACrC,KAAK,EAAE,WAAW,EAClB,SAAS,SAAK,GACb;IAAE,OAAO,EAAE,YAAY,EAAE,CAAC;IAAC,KAAK,EAAE,UAAU,EAAE,CAAA;CAAE,CAiBlD;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,YAAY,EAAE,EACvB,KAAK,EAAE,UAAU,EAAE,GAClB,aAAa,EAAE,CA0FjB;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,gBAAgB,EAAE,CAwE/E;AAED,wBAAgB,gBAAgB,CAC9B,QAAQ,EAAE,aAAa,EAAE,EACzB,MAAM,EAAE,gBAAgB,EAAE,GACzB,MAAM,EAAE,CAwCV;AAED,wBAAgB,UAAU,CACxB,KAAK,EAAE,WAAW,EAClB,SAAS,CAAC,EAAE,MAAM,GACjB,iBAAiB,CAYnB;AAED,wBAAgB,sBAAsB,CAAC,GAAG,EAAE,iBAAiB,GAAG,MAAM,CAwCrE"}
|