opencastle 1.3.1 → 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 +16 -10
- package/bin/cli.mjs +8 -9
- package/dist/cli/agent-roster.test.js +0 -48
- package/dist/cli/agent-roster.test.js.map +1 -1
- package/dist/cli/boundary.test.js +9 -7
- package/dist/cli/boundary.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 -201
- 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 +35 -2
- package/dist/cli/dispatcher.test.js.map +1 -1
- package/dist/cli/docs-accuracy.test.js +3 -3
- package/dist/cli/docs-accuracy.test.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/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/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/package.json +3 -10
- package/src/cli/agent-roster.test.ts +0 -55
- package/src/cli/boundary.test.ts +9 -7
- package/src/cli/convoy/TELEMETRY.md +131 -125
- 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 -216
- 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 +36 -2
- package/src/cli/docs-accuracy.test.ts +3 -3
- 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/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/team-config.ts +2 -21
- package/src/cli/tiers.test.ts +4 -17
- package/src/orchestrator/agents/team-lead.agent.md +1 -1
- package/src/orchestrator/prompts/assess-complexity.prompt.md +43 -26
- package/src/orchestrator/prompts/brainstorm.prompt.md +1 -1
- package/src/orchestrator/prompts/bug-fix.prompt.md +2 -2
- 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 +2 -2
- 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
package/src/cli/team-config.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as v from 'valibot'
|
|
2
|
+
import { nearest } from './nearest.js'
|
|
2
3
|
|
|
3
4
|
/**
|
|
4
5
|
* The team's own source: `.opencastle/config.json`, and the same file at the
|
|
@@ -95,28 +96,8 @@ const KNOWN_KEYS = [
|
|
|
95
96
|
'mcp', 'allow', 'remoteHosts', 'requirePinned', 'require', 'contextBudget',
|
|
96
97
|
]
|
|
97
98
|
|
|
98
|
-
function distance(a: string, b: string): number {
|
|
99
|
-
const d: number[][] = Array.from({ length: a.length + 1 }, (_, i) => [i, ...Array(b.length).fill(0)])
|
|
100
|
-
for (let j = 1; j <= b.length; j++) d[0][j] = j
|
|
101
|
-
for (let i = 1; i <= a.length; i++) {
|
|
102
|
-
for (let j = 1; j <= b.length; j++) {
|
|
103
|
-
d[i][j] = Math.min(d[i - 1][j] + 1, d[i][j - 1] + 1, d[i - 1][j - 1] + (a[i - 1] === b[j - 1] ? 0 : 1))
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
return d[a.length][b.length]
|
|
107
|
-
}
|
|
108
|
-
|
|
109
99
|
function suggest(key: string): string | undefined {
|
|
110
|
-
|
|
111
|
-
let bestScore = Infinity
|
|
112
|
-
for (const k of KNOWN_KEYS) {
|
|
113
|
-
const s = distance(key.toLowerCase(), k.toLowerCase())
|
|
114
|
-
if (s < bestScore) {
|
|
115
|
-
best = k
|
|
116
|
-
bestScore = s
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
return bestScore <= Math.max(2, Math.floor(key.length / 3)) ? best : undefined
|
|
100
|
+
return nearest(key, KNOWN_KEYS, { ignoreCase: true }) ?? undefined
|
|
120
101
|
}
|
|
121
102
|
|
|
122
103
|
/**
|
package/src/cli/tiers.test.ts
CHANGED
|
@@ -105,8 +105,6 @@ describe('framework content is free of model names', () => {
|
|
|
105
105
|
// Explains why the pinning was removed.
|
|
106
106
|
'src/cli/tiers.ts',
|
|
107
107
|
'src/cli/tiers.test.ts',
|
|
108
|
-
// Fixture data simulating reported values.
|
|
109
|
-
'src/dashboard/scripts/integration-test.ts',
|
|
110
108
|
])
|
|
111
109
|
|
|
112
110
|
function walk(dir: string, out: string[] = []): string[] {
|
|
@@ -146,10 +144,10 @@ describe('framework content is free of model names', () => {
|
|
|
146
144
|
})
|
|
147
145
|
|
|
148
146
|
/**
|
|
149
|
-
* A tier is one fact about an agent, and it is written down in
|
|
150
|
-
* agent's own frontmatter, the map in tiers.ts, the registry table that ships
|
|
151
|
-
* users
|
|
152
|
-
*
|
|
147
|
+
* A tier is one fact about an agent, and it is written down in three places: the
|
|
148
|
+
* agent's own frontmatter, the map in tiers.ts, and the registry table that ships
|
|
149
|
+
* to users. That is exactly the shape of duplication this module was created to
|
|
150
|
+
* end, so the copies are checked against the source.
|
|
153
151
|
*/
|
|
154
152
|
const agentNames = new Map<string, string>()
|
|
155
153
|
|
|
@@ -207,17 +205,6 @@ describe('every copy of the tier table agrees with the agents', () => {
|
|
|
207
205
|
expect(shipped, `agent-registry.md lists retired ${label}`).toContain(label)
|
|
208
206
|
}
|
|
209
207
|
})
|
|
210
|
-
|
|
211
|
-
it('the dashboard colours the same agents as economy', () => {
|
|
212
|
-
const dashboard = readFileSync(
|
|
213
|
-
resolve(import.meta.dirname, '..', 'dashboard', 'src', 'pages', 'index.astro'),
|
|
214
|
-
'utf8',
|
|
215
|
-
)
|
|
216
|
-
const listed = /var ECONOMY_AGENTS = \[(.*?)\]/s.exec(dashboard)?.[1] ?? ''
|
|
217
|
-
const inDashboard = [...listed.matchAll(/'([^']+)'/g)].map((m) => m[1]).sort()
|
|
218
|
-
const economy = [...declared].filter(([, t]) => t === 'economy').map(([a]) => a).sort()
|
|
219
|
-
expect(inDashboard).toEqual(economy)
|
|
220
|
-
})
|
|
221
208
|
})
|
|
222
209
|
|
|
223
210
|
/**
|
|
@@ -73,7 +73,7 @@ Developer | UI/UX Expert | Content Engineer | Data Engineer | Testing Expert | S
|
|
|
73
73
|
| Path | When | Action |
|
|
74
74
|
|------|------|--------|
|
|
75
75
|
| Compact | score ≤2, single subtask | Sub-agent directly; fast review + logs still required |
|
|
76
|
-
| Convoy (experimental) | score 3+ or multi-task | plan by `generate-convoy`'s rules → write `.opencastle/convoys/<name>.convoy.yml` → user runs `npx opencastle convoy run
|
|
76
|
+
| Convoy (experimental) | score 3+ or multi-task | plan by `generate-convoy`'s rules → write `.opencastle/convoys/<name>.convoy.yml` → user runs `npx opencastle convoy run <spec>` → validation gates → PR |
|
|
77
77
|
| Utility | `create-skill`, `brainstorm`, `quick-refinement` | Direct delegation, no convoy |
|
|
78
78
|
|
|
79
79
|
## Workflow
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: '
|
|
2
|
+
description: 'Size the work in a PRD, score each workstream, and say whether to plan it in one go or as groups planned side by side. Returns JSON.'
|
|
3
3
|
agent: 'Reviewer'
|
|
4
4
|
output: json
|
|
5
5
|
---
|
|
@@ -8,21 +8,29 @@ output: json
|
|
|
8
8
|
|
|
9
9
|
# Assess PRD Complexity
|
|
10
10
|
|
|
11
|
-
Analyze the PRD
|
|
11
|
+
Analyze the PRD at the end of this prompt — or, before a PRD exists, the request itself — and answer with a **single JSON object**.
|
|
12
12
|
|
|
13
|
-
##
|
|
13
|
+
## What Happens to Your Answer
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
`opencastle convoy` runs this step first on the request:
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
- `"complexity": "low"` with `"recommended_strategy": "single"` means the plan is written straight from the request, with no PRD. Answer `low` only when one or two agents can do the whole change in a session each.
|
|
18
|
+
- Otherwise a PRD is written, and your answer is used for it, unless you recommend `"chain"`: then the PRD is sized again, beside its review, so the groups can name its phases.
|
|
18
19
|
|
|
19
|
-
|
|
20
|
+
What the answer drives:
|
|
20
21
|
|
|
21
|
-
|
|
22
|
+
- The `task_complexity` scores go to the planner, which uses them to set each task's timeout, retries and review level.
|
|
23
|
+
- With `"recommended_strategy": "chain"` and groups that pass the checks below, each group is planned in a session of its own, all at the same time, each seeing only its own phases of the PRD. The plans are then joined into one spec: a group's first tasks wait for the last tasks of every group in its `depends_on`, and groups that do not depend on each other run side by side.
|
|
24
|
+
- Otherwise — `"single"`, or groups that fail the checks — the whole PRD is planned in one session.
|
|
25
|
+
- Your answer is cached against the PRD's exact text, so an unchanged PRD is not assessed twice.
|
|
26
|
+
|
|
27
|
+
The group checks: at most 3 groups when `total_tasks` is 15 or fewer, at most 4 above that; every group has at least one phase; no phase is in two groups; `depends_on` names only groups in the list; no cycles; names are kebab-case.
|
|
28
|
+
|
|
29
|
+
This session is read-only; answer in text.
|
|
22
30
|
|
|
23
31
|
## Output Rules
|
|
24
32
|
|
|
25
|
-
**CRITICAL:** Return ONLY single fenced JSON block — no prose, no explanation, no
|
|
33
|
+
**CRITICAL:** Return ONLY a single fenced JSON block — no prose, no explanation, no headings. Start with the opening fence and end with the closing fence.
|
|
26
34
|
|
|
27
35
|
## Required JSON Schema
|
|
28
36
|
|
|
@@ -57,24 +65,33 @@ Analyze the PRD below; produce complexity assessment as **single JSON object**.
|
|
|
57
65
|
|
|
58
66
|
## Field Rules
|
|
59
67
|
|
|
60
|
-
- `original_prompt`:
|
|
61
|
-
- `total_tasks`:
|
|
62
|
-
- `total_phases`:
|
|
63
|
-
- `domains`:
|
|
64
|
-
- `estimated_duration_minutes`:
|
|
65
|
-
- `complexity`: `"low"` (1–4
|
|
68
|
+
- `original_prompt`: The user's request, copied verbatim from "Original User Prompt" below. If that section is empty, a one-sentence summary of the PRD's Overview.
|
|
69
|
+
- `total_tasks`: Number of workstreams in the Task Breakdown.
|
|
70
|
+
- `total_phases`: Number of phases in the Task Breakdown.
|
|
71
|
+
- `domains`: Technical domains involved (e.g. "frontend", "api", "database", "testing", "config").
|
|
72
|
+
- `estimated_duration_minutes`: A rough estimate for AI agents doing the work, not people.
|
|
73
|
+
- `complexity`: `"low"` (1–4 workstreams), `"medium"` (5–8), `"high"` (9+).
|
|
66
74
|
- `recommended_strategy`:
|
|
67
|
-
- `"single"` when:
|
|
68
|
-
- `"chain"` when:
|
|
69
|
-
- `chain_rationale`: Only
|
|
75
|
+
- `"single"` when: 8 or fewer workstreams, OR 3 or fewer phases, OR the workstreams share files heavily across phases.
|
|
76
|
+
- `"chain"` when: more than 8 workstreams AND more than 3 phases AND the work splits along real domain boundaries — so the groups can be planned in parallel, each from a smaller part of the PRD.
|
|
77
|
+
- `chain_rationale`: Only for `"chain"` — why splitting helps this feature.
|
|
70
78
|
- `convoy_groups`:
|
|
71
|
-
-
|
|
72
|
-
-
|
|
73
|
-
- **
|
|
74
|
-
- **Do
|
|
75
|
-
|
|
76
|
-
- `
|
|
77
|
-
- `
|
|
78
|
-
- `
|
|
79
|
-
- `complexity`: Fibonacci score: `1` (trivial — single file edit), `2` (simple — small fix, one test), `3` (moderate — new component/endpoint), `5` (significant — multi-file feature), `8` (complex — cross-cutting), `13` (epic — architecture-level).
|
|
79
|
+
- For `"single"`: exactly one group covering every phase.
|
|
80
|
+
- For `"chain"`: 2–4 groups. Use `depends_on` only where a group really needs another's output — groups without it run side by side.
|
|
81
|
+
- **At least 3 workstreams per group.** Merge a smaller group into a neighbour.
|
|
82
|
+
- **Do not map phases 1:1 to groups.** Bundle related phases (e.g. config + data in one group, components + pages in another). Split only at real domain boundaries.
|
|
83
|
+
- `task_complexity`: One entry per workstream, on a Fibonacci scale.
|
|
84
|
+
- `workstream`: The workstream's exact title from the Task Breakdown.
|
|
85
|
+
- `phase`: The phase it belongs to.
|
|
86
|
+
- `complexity`: `1` (trivial — one file), `2` (simple — small fix, one test), `3` (moderate — new component or endpoint), `5` (significant — multi-file feature), `8` (complex — cross-cutting), `13` (epic — architecture-level).
|
|
80
87
|
- `rationale`: One sentence explaining the score.
|
|
88
|
+
|
|
89
|
+
---
|
|
90
|
+
|
|
91
|
+
## PRD to Analyze
|
|
92
|
+
|
|
93
|
+
{{goal}}
|
|
94
|
+
|
|
95
|
+
## Original User Prompt
|
|
96
|
+
|
|
97
|
+
{{context}}
|
|
@@ -132,6 +132,6 @@ Not every task needs brainstorm. Skip this prompt; go directly to `implement-fea
|
|
|
132
132
|
|
|
133
133
|
Once the brainstorm is complete and the user confirms (or you're confident in the approach):
|
|
134
134
|
|
|
135
|
-
1. **Transition to planning** — use the brainstorm report as input for `implement-feature`, which writes a convoy spec for all project work, whatever its size, for the user to run with `npx opencastle convoy run
|
|
135
|
+
1. **Transition to planning** — use the brainstorm report as input for `implement-feature`, which writes a convoy spec for all project work, whatever its size, for the user to run with `npx opencastle convoy run .opencastle/convoys/<name>.convoy.yml` (the convoy engine is experimental)
|
|
136
136
|
2. **Preserve context** — include the brainstorm report in delegation prompts so agents understand *why* an approach was chosen
|
|
137
137
|
3. **Reference in tracker** — link the brainstorm findings in the tracker issue description
|
|
@@ -59,8 +59,8 @@ Every bug gets tracked. Create tracker issue with:
|
|
|
59
59
|
All bug fixes execute via OpenCastle's convoy engine — even single-task fixes — for observability, crash recovery. The convoy engine is experimental; say so when you hand the spec over.
|
|
60
60
|
|
|
61
61
|
1. **Write the convoy spec** — plan the fix by the rules in the `generate-convoy` prompt, with the root cause analysis, fix approach, and file paths as context. 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. Use plain file paths (no `*` or `?`).
|
|
62
|
-
2. **Check the spec** — run `npx opencastle convoy run
|
|
63
|
-
3. **Hand the spec to the user** — tell them the convoy engine is experimental, and to run: `npx opencastle convoy run
|
|
62
|
+
2. **Check the spec** — run `npx opencastle convoy run .opencastle/convoys/<name>.convoy.yml --dry-run`. It runs the same checks a run does and prints what would run, without starting an agent or recording anything.
|
|
63
|
+
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.
|
|
64
64
|
4. **After convoy completes** — proceed to Step 5 (validation).
|
|
65
65
|
|
|
66
66
|
#### Convoy Task Prompt Must Include
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: 'Fix
|
|
2
|
+
description: 'Fix the problems found in a convoy task plan with targeted JSON patches. Goal is the plan as JSON, context is the list of problems.'
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
output: json
|
|
5
5
|
---
|
|
@@ -8,30 +8,27 @@ output: json
|
|
|
8
8
|
|
|
9
9
|
# Fix Task Plan
|
|
10
10
|
|
|
11
|
-
You are the Team Lead.
|
|
11
|
+
You are the Team Lead. The task plan at the end of this prompt has problems. Fix every one with targeted JSON patches.
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
```json
|
|
16
|
-
{{goal}}
|
|
17
|
-
```
|
|
13
|
+
## What Happens to Your Answer
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
When `opencastle convoy` runs this step, your patches are applied to the plan, any glob in `files` is cut back to its directory, and the code checks the plan again:
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
- **Problems from the code's checks** come back to you if they remain — at most twice in all. After that, if two tasks still claim the same file, the later one is made to wait for the earlier; any other problem stops the plan from running.
|
|
18
|
+
- **Problems from a reviewer** get one round, and your patches are kept only if the plan still passes the code's checks.
|
|
22
19
|
|
|
23
|
-
|
|
20
|
+
This session is read-only; answer in text.
|
|
24
21
|
|
|
25
22
|
## Instructions
|
|
26
23
|
|
|
27
|
-
1. Read every
|
|
28
|
-
2. Fix ALL
|
|
29
|
-
3.
|
|
30
|
-
4. Each patch replaces ONE field
|
|
24
|
+
1. Read every problem before writing patches.
|
|
25
|
+
2. Fix ALL of them; do not fix some.
|
|
26
|
+
3. Keep the plan's intent, agents and task scope. Change only what is broken.
|
|
27
|
+
4. Each patch replaces ONE field of ONE task. You can change existing tasks, not add or remove them.
|
|
31
28
|
|
|
32
29
|
## Patch Format
|
|
33
30
|
|
|
34
|
-
|
|
31
|
+
One `json` fenced block holding an array of patches:
|
|
35
32
|
|
|
36
33
|
```json
|
|
37
34
|
[
|
|
@@ -46,25 +43,42 @@ Output single `json` fenced code block with array of patches:
|
|
|
46
43
|
"value": ["project-scaffold", "shared-ui-components"]
|
|
47
44
|
},
|
|
48
45
|
{
|
|
49
|
-
"task_id": "
|
|
50
|
-
"field": "
|
|
51
|
-
"value":
|
|
46
|
+
"task_id": "a-third-task",
|
|
47
|
+
"field": "files",
|
|
48
|
+
"value": ["components/Hero.tsx"]
|
|
52
49
|
}
|
|
53
50
|
]
|
|
54
51
|
```
|
|
55
52
|
|
|
56
|
-
### Patch
|
|
57
|
-
|
|
58
|
-
- `
|
|
59
|
-
- `
|
|
53
|
+
### Patch Fields
|
|
54
|
+
|
|
55
|
+
- `task_id`: The id of the task to change, or `"_plan"` to rename the plan (`field: "name"`).
|
|
56
|
+
- `field`: `prompt`, `files`, `depends_on`, `agent`, `description`, `complexity` or `timeout`.
|
|
57
|
+
- `value`: The complete new value. It replaces the old one entirely.
|
|
60
58
|
|
|
61
|
-
### Common
|
|
62
|
-
|
|
63
|
-
- **
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
59
|
+
### Common Fixes
|
|
60
|
+
|
|
61
|
+
- **Two tasks claim the same file** → give each the specific files it changes (patch `files`), or patch `depends_on` so one runs after the other.
|
|
62
|
+
- **A pattern in `files`** → patch `files` with the actual files or their directory.
|
|
63
|
+
- **Unknown dependency** → patch `depends_on` with the right id, or without it.
|
|
64
|
+
- **Dependency cycle** → patch `depends_on` to drop the edge that points backwards.
|
|
65
|
+
- **Missing dependency** → patch `depends_on` to add it.
|
|
66
|
+
- **Missing work** → fold it into the closest task's `prompt` and `files`.
|
|
67
|
+
- **Truncated or vague prompt** → patch `prompt` with a complete, file-specific prompt that includes acceptance criteria.
|
|
68
|
+
- **Wrong agent** → patch `agent` with the right role.
|
|
67
69
|
|
|
68
70
|
## Output
|
|
69
71
|
|
|
70
|
-
Your
|
|
72
|
+
Your whole answer is one `json` fenced block holding the patch array. Nothing before or after it.
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
## Task Plan
|
|
77
|
+
|
|
78
|
+
```json
|
|
79
|
+
{{goal}}
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
## Problems to Fix
|
|
83
|
+
|
|
84
|
+
{{context}}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: 'Fix
|
|
2
|
+
description: 'Fix the issues a PRD review found. Goal is the PRD, context is the list of issues; answers with the whole corrected PRD.'
|
|
3
3
|
agent: 'Team Lead (OpenCastle)'
|
|
4
4
|
output: prd
|
|
5
5
|
---
|
|
@@ -8,46 +8,50 @@ output: prd
|
|
|
8
8
|
|
|
9
9
|
# Fix PRD
|
|
10
10
|
|
|
11
|
-
You are the Team Lead. The PRD
|
|
11
|
+
You are the Team Lead. The PRD at the end of this prompt failed review. Fix **every reported issue** and return the complete, corrected PRD.
|
|
12
12
|
|
|
13
|
-
##
|
|
14
|
-
|
|
15
|
-
{{goal}}
|
|
16
|
-
|
|
17
|
-
## Validation Errors
|
|
13
|
+
## What Happens to Your Answer
|
|
18
14
|
|
|
19
|
-
|
|
15
|
+
When `opencastle convoy` runs this step, your answer replaces the PRD file exactly as written, and the reviewer checks it again. That happens at most twice, so fix everything in one go.
|
|
20
16
|
|
|
21
|
-
|
|
17
|
+
This session is read-only; answer in text.
|
|
22
18
|
|
|
23
19
|
## Fix Instructions
|
|
24
20
|
|
|
25
|
-
1. Read every reported issue before
|
|
26
|
-
2. Fix **all**
|
|
27
|
-
3. Do not change intent, goals
|
|
28
|
-
4.
|
|
21
|
+
1. Read every reported issue before changing anything.
|
|
22
|
+
2. Fix **all** of them; do not fix some.
|
|
23
|
+
3. Do not change the feature's intent, goals or scope. Change only what the reviewer flagged.
|
|
24
|
+
4. Keep everything else as it was, including every section heading and each `Phase N —` line in the Task Breakdown: the planner reads them, and the work was already sized from them.
|
|
29
25
|
|
|
30
26
|
### Common Fix Patterns
|
|
31
27
|
|
|
32
28
|
**Missing sections**
|
|
33
|
-
- Add
|
|
34
|
-
- If
|
|
29
|
+
- Add the section with concrete content, not placeholder text.
|
|
30
|
+
- If it needs facts you cannot infer, write a reasonable default and mark it `<!-- TODO: verify -->`.
|
|
35
31
|
|
|
36
32
|
**Conflicting requirements**
|
|
37
|
-
- Resolve
|
|
33
|
+
- Resolve the contradiction in favour of what best matches the feature's goals.
|
|
38
34
|
|
|
39
35
|
**File partition conflicts**
|
|
40
|
-
- If two
|
|
41
|
-
- Or split file's responsibilities
|
|
36
|
+
- If two workstreams in the same phase claim the same file, move one to a later phase and say what it depends on.
|
|
37
|
+
- Or split the file's responsibilities so each workstream touches different files.
|
|
42
38
|
|
|
43
39
|
**Broad implementation scope**
|
|
44
|
-
- Replace
|
|
40
|
+
- Replace broad paths (`src/`, "the frontend") with specific subdirectories or files.
|
|
45
41
|
|
|
46
42
|
**Placeholder text**
|
|
47
|
-
- Replace template filler ("2–3 sentences about…", "Description here") with real content
|
|
43
|
+
- Replace template filler ("2–3 sentences about…", "Description here") with real content drawn from the feature request.
|
|
44
|
+
|
|
45
|
+
## Output
|
|
46
|
+
|
|
47
|
+
Return the **complete corrected PRD** as raw Markdown, starting with the `#` heading. No code fence, no notes before or after it.
|
|
48
48
|
|
|
49
49
|
---
|
|
50
50
|
|
|
51
|
-
##
|
|
51
|
+
## Failing PRD
|
|
52
52
|
|
|
53
|
-
|
|
53
|
+
{{goal}}
|
|
54
|
+
|
|
55
|
+
## Issues to Fix
|
|
56
|
+
|
|
57
|
+
{{context}}
|