@jonit-dev/night-watch-cli 1.7.29 → 1.7.31
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/bin/night-watch.mjs +1 -1
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/{src/cli.js → cli.js} +1 -0
- package/dist/cli.js.map +1 -0
- package/dist/{src/commands → commands}/audit.d.ts +2 -2
- package/dist/commands/audit.d.ts.map +1 -0
- package/dist/commands/audit.js +105 -0
- package/dist/commands/audit.js.map +1 -0
- package/dist/{src/commands → commands}/board.d.ts +1 -1
- package/dist/commands/board.d.ts.map +1 -0
- package/dist/commands/board.js +664 -0
- package/dist/commands/board.js.map +1 -0
- package/dist/{src/commands → commands}/cancel.d.ts +3 -3
- package/dist/commands/cancel.d.ts.map +1 -0
- package/dist/{src/commands → commands}/cancel.js +18 -20
- package/dist/commands/cancel.js.map +1 -0
- package/dist/commands/dashboard/tab-actions.d.ts.map +1 -0
- package/dist/commands/dashboard/tab-actions.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-config.d.ts +3 -3
- package/dist/commands/dashboard/tab-config.d.ts.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-config.js +250 -187
- package/dist/commands/dashboard/tab-config.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-logs.d.ts +1 -1
- package/dist/commands/dashboard/tab-logs.d.ts.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-logs.js +62 -38
- package/dist/commands/dashboard/tab-logs.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-schedules.d.ts +1 -1
- package/dist/commands/dashboard/tab-schedules.d.ts.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-schedules.js +85 -76
- package/dist/commands/dashboard/tab-schedules.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-status.d.ts +7 -7
- package/dist/commands/dashboard/tab-status.d.ts.map +1 -0
- package/dist/{src/commands → commands}/dashboard/tab-status.js +98 -95
- package/dist/commands/dashboard/tab-status.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard/types.d.ts +3 -4
- package/dist/commands/dashboard/types.d.ts.map +1 -0
- package/dist/commands/dashboard/types.js.map +1 -0
- package/dist/{src/commands → commands}/dashboard.d.ts +2 -2
- package/dist/commands/dashboard.d.ts.map +1 -0
- package/dist/{src/commands → commands}/dashboard.js +32 -33
- package/dist/commands/dashboard.js.map +1 -0
- package/dist/{src/commands → commands}/doctor.d.ts +2 -2
- package/dist/commands/doctor.d.ts.map +1 -0
- package/dist/{src/commands → commands}/doctor.js +40 -43
- package/dist/commands/doctor.js.map +1 -0
- package/dist/{src/commands → commands}/history.d.ts +1 -1
- package/dist/commands/history.d.ts.map +1 -0
- package/dist/{src/commands → commands}/history.js +11 -18
- package/dist/commands/history.js.map +1 -0
- package/dist/{src/commands → commands}/init.d.ts +1 -1
- package/dist/commands/init.d.ts.map +1 -0
- package/dist/{src/commands → commands}/init.js +62 -36
- package/dist/commands/init.js.map +1 -0
- package/dist/{src/commands → commands}/install.d.ts +2 -2
- package/dist/commands/install.d.ts.map +1 -0
- package/dist/{src/commands → commands}/install.js +48 -50
- package/dist/commands/install.js.map +1 -0
- package/dist/{src/commands → commands}/logs.d.ts +1 -1
- package/dist/commands/logs.d.ts.map +1 -0
- package/dist/{src/commands → commands}/logs.js +29 -30
- package/dist/commands/logs.js.map +1 -0
- package/dist/{src/commands → commands}/prd-state.d.ts +1 -1
- package/dist/commands/prd-state.d.ts.map +1 -0
- package/dist/{src/commands → commands}/prd-state.js +14 -14
- package/dist/commands/prd-state.js.map +1 -0
- package/dist/{src/commands → commands}/prd.d.ts +1 -1
- package/dist/commands/prd.d.ts.map +1 -0
- package/dist/{src/commands → commands}/prd.js +57 -66
- package/dist/commands/prd.js.map +1 -0
- package/dist/{src/commands → commands}/prds.d.ts +1 -1
- package/dist/commands/prds.d.ts.map +1 -0
- package/dist/{src/commands → commands}/prds.js +51 -53
- package/dist/commands/prds.js.map +1 -0
- package/dist/{src/commands → commands}/prs.d.ts +1 -1
- package/dist/commands/prs.d.ts.map +1 -0
- package/dist/{src/commands → commands}/prs.js +22 -24
- package/dist/commands/prs.js.map +1 -0
- package/dist/{src/commands → commands}/qa.d.ts +2 -2
- package/dist/commands/qa.d.ts.map +1 -0
- package/dist/{src/commands → commands}/qa.js +50 -51
- package/dist/commands/qa.js.map +1 -0
- package/dist/{src/commands → commands}/retry.d.ts +1 -1
- package/dist/commands/retry.d.ts.map +1 -0
- package/dist/{src/commands → commands}/retry.js +9 -10
- package/dist/commands/retry.js.map +1 -0
- package/dist/{src/commands → commands}/review.d.ts +2 -2
- package/dist/commands/review.d.ts.map +1 -0
- package/dist/{src/commands → commands}/review.js +68 -59
- package/dist/commands/review.js.map +1 -0
- package/dist/{src/commands → commands}/run.d.ts +2 -2
- package/dist/commands/run.d.ts.map +1 -0
- package/dist/{src/commands → commands}/run.js +87 -83
- package/dist/commands/run.js.map +1 -0
- package/dist/{src/commands → commands}/serve.d.ts +2 -2
- package/dist/commands/serve.d.ts.map +1 -0
- package/dist/{src/commands → commands}/serve.js +18 -18
- package/dist/commands/serve.js.map +1 -0
- package/dist/{src/commands → commands}/slice.d.ts +2 -2
- package/dist/commands/slice.d.ts.map +1 -0
- package/dist/{src/commands → commands}/slice.js +50 -46
- package/dist/commands/slice.js.map +1 -0
- package/dist/{src/commands → commands}/state.d.ts +1 -1
- package/dist/commands/state.d.ts.map +1 -0
- package/dist/{src/commands → commands}/state.js +20 -22
- package/dist/commands/state.js.map +1 -0
- package/dist/{src/commands → commands}/status.d.ts +1 -1
- package/dist/commands/status.d.ts.map +1 -0
- package/dist/{src/commands → commands}/status.js +75 -54
- package/dist/commands/status.js.map +1 -0
- package/dist/{src/commands → commands}/uninstall.d.ts +1 -1
- package/dist/commands/uninstall.d.ts.map +1 -0
- package/dist/{src/commands → commands}/uninstall.js +12 -14
- package/dist/commands/uninstall.js.map +1 -0
- package/dist/{src/commands → commands}/update.d.ts +1 -1
- package/dist/commands/update.d.ts.map +1 -0
- package/dist/{src/commands → commands}/update.js +23 -23
- package/dist/commands/update.js.map +1 -0
- package/package.json +18 -42
- package/LICENSE +0 -21
- package/README.md +0 -132
- package/dist/shared/types.d.ts +0 -226
- package/dist/shared/types.d.ts.map +0 -1
- package/dist/shared/types.js +0 -7
- package/dist/shared/types.js.map +0 -1
- package/dist/src/agents/soul-compiler.d.ts +0 -11
- package/dist/src/agents/soul-compiler.d.ts.map +0 -1
- package/dist/src/agents/soul-compiler.js +0 -157
- package/dist/src/agents/soul-compiler.js.map +0 -1
- package/dist/src/board/factory.d.ts +0 -3
- package/dist/src/board/factory.d.ts.map +0 -1
- package/dist/src/board/factory.js +0 -10
- package/dist/src/board/factory.js.map +0 -1
- package/dist/src/board/providers/github-graphql.d.ts +0 -16
- package/dist/src/board/providers/github-graphql.d.ts.map +0 -1
- package/dist/src/board/providers/github-graphql.js +0 -43
- package/dist/src/board/providers/github-graphql.js.map +0 -1
- package/dist/src/board/providers/github-projects.d.ts +0 -51
- package/dist/src/board/providers/github-projects.d.ts.map +0 -1
- package/dist/src/board/providers/github-projects.js +0 -672
- package/dist/src/board/providers/github-projects.js.map +0 -1
- package/dist/src/board/types.d.ts +0 -60
- package/dist/src/board/types.d.ts.map +0 -1
- package/dist/src/board/types.js +0 -4
- package/dist/src/board/types.js.map +0 -1
- package/dist/src/cli.d.ts +0 -3
- package/dist/src/cli.d.ts.map +0 -1
- package/dist/src/cli.js.map +0 -1
- package/dist/src/commands/audit.d.ts.map +0 -1
- package/dist/src/commands/audit.js +0 -98
- package/dist/src/commands/audit.js.map +0 -1
- package/dist/src/commands/board.d.ts.map +0 -1
- package/dist/src/commands/board.js +0 -294
- package/dist/src/commands/board.js.map +0 -1
- package/dist/src/commands/cancel.d.ts.map +0 -1
- package/dist/src/commands/cancel.js.map +0 -1
- package/dist/src/commands/dashboard/tab-actions.d.ts.map +0 -1
- package/dist/src/commands/dashboard/tab-actions.js.map +0 -1
- package/dist/src/commands/dashboard/tab-config.d.ts.map +0 -1
- package/dist/src/commands/dashboard/tab-config.js.map +0 -1
- package/dist/src/commands/dashboard/tab-logs.d.ts.map +0 -1
- package/dist/src/commands/dashboard/tab-logs.js.map +0 -1
- package/dist/src/commands/dashboard/tab-schedules.d.ts.map +0 -1
- package/dist/src/commands/dashboard/tab-schedules.js.map +0 -1
- package/dist/src/commands/dashboard/tab-status.d.ts.map +0 -1
- package/dist/src/commands/dashboard/tab-status.js.map +0 -1
- package/dist/src/commands/dashboard/types.d.ts.map +0 -1
- package/dist/src/commands/dashboard/types.js.map +0 -1
- package/dist/src/commands/dashboard.d.ts.map +0 -1
- package/dist/src/commands/dashboard.js.map +0 -1
- package/dist/src/commands/doctor.d.ts.map +0 -1
- package/dist/src/commands/doctor.js.map +0 -1
- package/dist/src/commands/history.d.ts.map +0 -1
- package/dist/src/commands/history.js.map +0 -1
- package/dist/src/commands/init.d.ts.map +0 -1
- package/dist/src/commands/init.js.map +0 -1
- package/dist/src/commands/install.d.ts.map +0 -1
- package/dist/src/commands/install.js.map +0 -1
- package/dist/src/commands/logs.d.ts.map +0 -1
- package/dist/src/commands/logs.js.map +0 -1
- package/dist/src/commands/prd-state.d.ts.map +0 -1
- package/dist/src/commands/prd-state.js.map +0 -1
- package/dist/src/commands/prd.d.ts.map +0 -1
- package/dist/src/commands/prd.js.map +0 -1
- package/dist/src/commands/prds.d.ts.map +0 -1
- package/dist/src/commands/prds.js.map +0 -1
- package/dist/src/commands/prs.d.ts.map +0 -1
- package/dist/src/commands/prs.js.map +0 -1
- package/dist/src/commands/qa.d.ts.map +0 -1
- package/dist/src/commands/qa.js.map +0 -1
- package/dist/src/commands/retry.d.ts.map +0 -1
- package/dist/src/commands/retry.js.map +0 -1
- package/dist/src/commands/review.d.ts.map +0 -1
- package/dist/src/commands/review.js.map +0 -1
- package/dist/src/commands/run.d.ts.map +0 -1
- package/dist/src/commands/run.js.map +0 -1
- package/dist/src/commands/serve.d.ts.map +0 -1
- package/dist/src/commands/serve.js.map +0 -1
- package/dist/src/commands/slice.d.ts.map +0 -1
- package/dist/src/commands/slice.js.map +0 -1
- package/dist/src/commands/state.d.ts.map +0 -1
- package/dist/src/commands/state.js.map +0 -1
- package/dist/src/commands/status.d.ts.map +0 -1
- package/dist/src/commands/status.js.map +0 -1
- package/dist/src/commands/uninstall.d.ts.map +0 -1
- package/dist/src/commands/uninstall.js.map +0 -1
- package/dist/src/commands/update.d.ts.map +0 -1
- package/dist/src/commands/update.js.map +0 -1
- package/dist/src/config.d.ts +0 -23
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.js +0 -671
- package/dist/src/config.js.map +0 -1
- package/dist/src/constants.d.ts +0 -67
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -131
- package/dist/src/constants.js.map +0 -1
- package/dist/src/server/index.d.ts +0 -23
- package/dist/src/server/index.d.ts.map +0 -1
- package/dist/src/server/index.js +0 -1704
- package/dist/src/server/index.js.map +0 -1
- package/dist/src/slack/channel-manager.d.ts +0 -32
- package/dist/src/slack/channel-manager.d.ts.map +0 -1
- package/dist/src/slack/channel-manager.js +0 -128
- package/dist/src/slack/channel-manager.js.map +0 -1
- package/dist/src/slack/client.d.ts +0 -76
- package/dist/src/slack/client.d.ts.map +0 -1
- package/dist/src/slack/client.js +0 -193
- package/dist/src/slack/client.js.map +0 -1
- package/dist/src/slack/deliberation.d.ts +0 -87
- package/dist/src/slack/deliberation.d.ts.map +0 -1
- package/dist/src/slack/deliberation.js +0 -1354
- package/dist/src/slack/deliberation.js.map +0 -1
- package/dist/src/slack/index.d.ts +0 -6
- package/dist/src/slack/index.d.ts.map +0 -1
- package/dist/src/slack/index.js +0 -5
- package/dist/src/slack/index.js.map +0 -1
- package/dist/src/slack/interaction-listener.d.ts +0 -130
- package/dist/src/slack/interaction-listener.d.ts.map +0 -1
- package/dist/src/slack/interaction-listener.js +0 -1329
- package/dist/src/slack/interaction-listener.js.map +0 -1
- package/dist/src/storage/json-state-migrator.d.ts +0 -24
- package/dist/src/storage/json-state-migrator.d.ts.map +0 -1
- package/dist/src/storage/json-state-migrator.js +0 -197
- package/dist/src/storage/json-state-migrator.js.map +0 -1
- package/dist/src/storage/repositories/index.d.ts +0 -25
- package/dist/src/storage/repositories/index.d.ts.map +0 -1
- package/dist/src/storage/repositories/index.js +0 -45
- package/dist/src/storage/repositories/index.js.map +0 -1
- package/dist/src/storage/repositories/interfaces.d.ts +0 -60
- package/dist/src/storage/repositories/interfaces.d.ts.map +0 -1
- package/dist/src/storage/repositories/interfaces.js +0 -6
- package/dist/src/storage/repositories/interfaces.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/agent-persona-repository.d.ts +0 -33
- package/dist/src/storage/repositories/sqlite/agent-persona-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/agent-persona-repository.js +0 -715
- package/dist/src/storage/repositories/sqlite/agent-persona-repository.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/execution-history-repository.d.ts +0 -21
- package/dist/src/storage/repositories/sqlite/execution-history-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/execution-history-repository.js +0 -94
- package/dist/src/storage/repositories/sqlite/execution-history-repository.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/prd-state-repository.d.ts +0 -17
- package/dist/src/storage/repositories/sqlite/prd-state-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/prd-state-repository.js +0 -74
- package/dist/src/storage/repositories/sqlite/prd-state-repository.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/project-registry-repository.d.ts +0 -17
- package/dist/src/storage/repositories/sqlite/project-registry-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/project-registry-repository.js +0 -43
- package/dist/src/storage/repositories/sqlite/project-registry-repository.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/roadmap-state-repository.d.ts +0 -14
- package/dist/src/storage/repositories/sqlite/roadmap-state-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/roadmap-state-repository.js +0 -47
- package/dist/src/storage/repositories/sqlite/roadmap-state-repository.js.map +0 -1
- package/dist/src/storage/repositories/sqlite/slack-discussion-repository.d.ts +0 -20
- package/dist/src/storage/repositories/sqlite/slack-discussion-repository.d.ts.map +0 -1
- package/dist/src/storage/repositories/sqlite/slack-discussion-repository.js +0 -88
- package/dist/src/storage/repositories/sqlite/slack-discussion-repository.js.map +0 -1
- package/dist/src/storage/sqlite/client.d.ts +0 -23
- package/dist/src/storage/sqlite/client.d.ts.map +0 -1
- package/dist/src/storage/sqlite/client.js +0 -47
- package/dist/src/storage/sqlite/client.js.map +0 -1
- package/dist/src/storage/sqlite/migrations.d.ts +0 -11
- package/dist/src/storage/sqlite/migrations.d.ts.map +0 -1
- package/dist/src/storage/sqlite/migrations.js +0 -94
- package/dist/src/storage/sqlite/migrations.js.map +0 -1
- package/dist/src/templates/prd-template.d.ts +0 -11
- package/dist/src/templates/prd-template.d.ts.map +0 -1
- package/dist/src/templates/prd-template.js +0 -166
- package/dist/src/templates/prd-template.js.map +0 -1
- package/dist/src/templates/slicer-prompt.d.ts +0 -54
- package/dist/src/templates/slicer-prompt.d.ts.map +0 -1
- package/dist/src/templates/slicer-prompt.js +0 -163
- package/dist/src/templates/slicer-prompt.js.map +0 -1
- package/dist/src/types.d.ts +0 -140
- package/dist/src/types.d.ts.map +0 -1
- package/dist/src/types.js +0 -5
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils/avatar-generator.d.ts +0 -6
- package/dist/src/utils/avatar-generator.d.ts.map +0 -1
- package/dist/src/utils/avatar-generator.js +0 -133
- package/dist/src/utils/avatar-generator.js.map +0 -1
- package/dist/src/utils/checks.d.ts +0 -55
- package/dist/src/utils/checks.d.ts.map +0 -1
- package/dist/src/utils/checks.js +0 -246
- package/dist/src/utils/checks.js.map +0 -1
- package/dist/src/utils/config-writer.d.ts +0 -16
- package/dist/src/utils/config-writer.d.ts.map +0 -1
- package/dist/src/utils/config-writer.js +0 -45
- package/dist/src/utils/config-writer.js.map +0 -1
- package/dist/src/utils/crontab.d.ts +0 -62
- package/dist/src/utils/crontab.d.ts.map +0 -1
- package/dist/src/utils/crontab.js +0 -168
- package/dist/src/utils/crontab.js.map +0 -1
- package/dist/src/utils/execution-history.d.ts +0 -54
- package/dist/src/utils/execution-history.d.ts.map +0 -1
- package/dist/src/utils/execution-history.js +0 -80
- package/dist/src/utils/execution-history.js.map +0 -1
- package/dist/src/utils/github.d.ts +0 -40
- package/dist/src/utils/github.d.ts.map +0 -1
- package/dist/src/utils/github.js +0 -126
- package/dist/src/utils/github.js.map +0 -1
- package/dist/src/utils/notify.d.ts +0 -64
- package/dist/src/utils/notify.d.ts.map +0 -1
- package/dist/src/utils/notify.js +0 -405
- package/dist/src/utils/notify.js.map +0 -1
- package/dist/src/utils/prd-states.d.ts +0 -16
- package/dist/src/utils/prd-states.d.ts.map +0 -1
- package/dist/src/utils/prd-states.js +0 -28
- package/dist/src/utils/prd-states.js.map +0 -1
- package/dist/src/utils/registry.d.ts +0 -45
- package/dist/src/utils/registry.d.ts.map +0 -1
- package/dist/src/utils/registry.js +0 -86
- package/dist/src/utils/registry.js.map +0 -1
- package/dist/src/utils/roadmap-parser.d.ts +0 -45
- package/dist/src/utils/roadmap-parser.d.ts.map +0 -1
- package/dist/src/utils/roadmap-parser.js +0 -136
- package/dist/src/utils/roadmap-parser.js.map +0 -1
- package/dist/src/utils/roadmap-scanner.d.ts +0 -92
- package/dist/src/utils/roadmap-scanner.d.ts.map +0 -1
- package/dist/src/utils/roadmap-scanner.js +0 -349
- package/dist/src/utils/roadmap-scanner.js.map +0 -1
- package/dist/src/utils/roadmap-state.d.ts +0 -90
- package/dist/src/utils/roadmap-state.d.ts.map +0 -1
- package/dist/src/utils/roadmap-state.js +0 -154
- package/dist/src/utils/roadmap-state.js.map +0 -1
- package/dist/src/utils/script-result.d.ts +0 -12
- package/dist/src/utils/script-result.d.ts.map +0 -1
- package/dist/src/utils/script-result.js +0 -46
- package/dist/src/utils/script-result.js.map +0 -1
- package/dist/src/utils/shell.d.ts +0 -27
- package/dist/src/utils/shell.d.ts.map +0 -1
- package/dist/src/utils/shell.js +0 -64
- package/dist/src/utils/shell.js.map +0 -1
- package/dist/src/utils/status-data.d.ts +0 -148
- package/dist/src/utils/status-data.d.ts.map +0 -1
- package/dist/src/utils/status-data.js +0 -548
- package/dist/src/utils/status-data.js.map +0 -1
- package/dist/src/utils/ui.d.ts +0 -55
- package/dist/src/utils/ui.d.ts.map +0 -1
- package/dist/src/utils/ui.js +0 -121
- package/dist/src/utils/ui.js.map +0 -1
- package/scripts/night-watch-audit-cron.sh +0 -149
- package/scripts/night-watch-cron.sh +0 -484
- package/scripts/night-watch-helpers.sh +0 -499
- package/scripts/night-watch-pr-reviewer-cron.sh +0 -528
- package/scripts/night-watch-qa-cron.sh +0 -281
- package/scripts/night-watch-slicer-cron.sh +0 -90
- package/scripts/test-helpers.bats +0 -77
- package/templates/night-watch-pr-reviewer.md +0 -174
- package/templates/night-watch-qa.md +0 -157
- package/templates/night-watch-slicer.md +0 -219
- package/templates/night-watch.config.json +0 -30
- package/templates/night-watch.md +0 -94
- package/templates/prd-executor.md +0 -235
- package/templates/prd.md +0 -26
- package/web/dist/assets/index-BiJf9LFT.js +0 -458
- package/web/dist/assets/index-OpSgvsYu.css +0 -1
- package/web/dist/avatars/carlos.webp +0 -0
- package/web/dist/avatars/dev.webp +0 -0
- package/web/dist/avatars/maya.webp +0 -0
- package/web/dist/avatars/priya.webp +0 -0
- package/web/dist/index.html +0 -82
- /package/dist/{src/commands → commands}/dashboard/tab-actions.d.ts +0 -0
- /package/dist/{src/commands → commands}/dashboard/tab-actions.js +0 -0
- /package/dist/{src/commands → commands}/dashboard/types.js +0 -0
|
@@ -1,235 +0,0 @@
|
|
|
1
|
-
You are a **PRD Execution Orchestrator**. Your job: read a PRD, decompose it into a parallelizable task graph, and execute it by spawning concurrent agent swarms.
|
|
2
|
-
|
|
3
|
-
When this activates: `PRD Executor: Initializing`
|
|
4
|
-
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
## Input
|
|
8
|
-
|
|
9
|
-
You will be given a path to a PRD file to implement. Read it fully before proceeding.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Execution Pipeline
|
|
14
|
-
|
|
15
|
-
### Step 1: Parse the PRD
|
|
16
|
-
|
|
17
|
-
Read the PRD file completely. Extract:
|
|
18
|
-
|
|
19
|
-
1. **Phases** - Each `Phase N:` or `#### Phase N:` block
|
|
20
|
-
2. **Files per phase** - The files listed under each phase
|
|
21
|
-
3. **Dependencies** - Which phases depend on others (e.g., Phase 2 needs Phase 1's types)
|
|
22
|
-
4. **Tests** - Required tests per phase
|
|
23
|
-
5. **Acceptance criteria** - The final verification checklist
|
|
24
|
-
|
|
25
|
-
Output a structured summary:
|
|
26
|
-
|
|
27
|
-
```
|
|
28
|
-
PRD: [title]
|
|
29
|
-
Phases: [count]
|
|
30
|
-
Estimated parallelism: [how many phases can run concurrently]
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
### Step 2: Build the Dependency Graph
|
|
34
|
-
|
|
35
|
-
Analyze phase dependencies to determine what can run in parallel:
|
|
36
|
-
|
|
37
|
-
```mermaid
|
|
38
|
-
flowchart TD
|
|
39
|
-
P1[Phase 1: Foundation]
|
|
40
|
-
P2[Phase 2: Backend]
|
|
41
|
-
P3[Phase 3: Frontend]
|
|
42
|
-
P4[Phase 4: Integration]
|
|
43
|
-
P1 --> P2
|
|
44
|
-
P1 --> P3
|
|
45
|
-
P2 --> P4
|
|
46
|
-
P3 --> P4
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
**Dependency rules:**
|
|
50
|
-
- If Phase B modifies files created in Phase A → B depends on A
|
|
51
|
-
- If Phase B imports types/interfaces from Phase A → B depends on A
|
|
52
|
-
- If Phase B tests endpoints built in Phase A → B depends on A
|
|
53
|
-
- If two phases touch completely separate files → they are independent and CAN run in parallel
|
|
54
|
-
- Database migrations always run first (blocking)
|
|
55
|
-
|
|
56
|
-
### Step 3: Create Task List
|
|
57
|
-
|
|
58
|
-
Use `TaskCreate` to create one task per phase. Set up dependencies with `addBlockedBy`/`addBlocks`.
|
|
59
|
-
|
|
60
|
-
For each phase, create a task with:
|
|
61
|
-
- **subject**: `Phase N: [phase name]`
|
|
62
|
-
- **description**: Full phase details from PRD (files, implementation steps, tests)
|
|
63
|
-
- **activeForm**: `Executing Phase N: [name]`
|
|
64
|
-
|
|
65
|
-
Then link dependencies:
|
|
66
|
-
- Independent phases: no blockers
|
|
67
|
-
- Dependent phases: `addBlockedBy` pointing to their prerequisite phase task IDs
|
|
68
|
-
|
|
69
|
-
### Step 4: Execute with Agent Swarm
|
|
70
|
-
|
|
71
|
-
**This is the core parallelization step.**
|
|
72
|
-
|
|
73
|
-
Launch all unblocked phases simultaneously using the `Task` tool with **multiple tool calls in a single message**.
|
|
74
|
-
|
|
75
|
-
#### Agent Selection per Phase Type
|
|
76
|
-
|
|
77
|
-
| Phase Content | Agent Type | Why |
|
|
78
|
-
|---|---|---|
|
|
79
|
-
| Database schemas, migrations | `code-writer` | Schema changes need careful ordering |
|
|
80
|
-
| New API endpoints | `api-endpoint-builder` | Specialized for endpoint patterns |
|
|
81
|
-
| Business logic / services | `code-writer` | General implementation |
|
|
82
|
-
| Frontend components / pages | `code-writer` | UI implementation |
|
|
83
|
-
| Test coverage | `test-generator` | Specialized for test creation |
|
|
84
|
-
| Bug fixes in existing code | `code-writer` | Targeted fixes |
|
|
85
|
-
| Refactoring | `code-refactorer` | Specialized for restructuring |
|
|
86
|
-
|
|
87
|
-
#### Prompt Template for Each Agent
|
|
88
|
-
|
|
89
|
-
When spawning each agent, provide this structured prompt:
|
|
90
|
-
|
|
91
|
-
```
|
|
92
|
-
You are executing Phase [N] of a PRD.
|
|
93
|
-
|
|
94
|
-
## PRD Context
|
|
95
|
-
[Paste the full PRD title and overall goal - 2-3 sentences]
|
|
96
|
-
|
|
97
|
-
## Your Phase: [Phase Name]
|
|
98
|
-
[Paste the FULL phase content from the PRD, including:]
|
|
99
|
-
- Files to modify/create
|
|
100
|
-
- Implementation steps
|
|
101
|
-
- Tests required
|
|
102
|
-
- Acceptance criteria for this phase
|
|
103
|
-
|
|
104
|
-
## Project Rules
|
|
105
|
-
- Follow all project conventions from AI assistant documentation files (e.g., CLAUDE.md, AGENTS.md, or similar)
|
|
106
|
-
- Read existing code patterns before writing new code
|
|
107
|
-
- Use the project's established patterns for imports, error handling, and naming
|
|
108
|
-
|
|
109
|
-
## Critical Instructions
|
|
110
|
-
1. Read all relevant existing files BEFORE writing any code
|
|
111
|
-
2. Follow existing patterns in the codebase
|
|
112
|
-
3. Write the implementation as specified
|
|
113
|
-
4. Write all required tests
|
|
114
|
-
5. Run the project's verify/test command and fix any issues
|
|
115
|
-
6. If you encounter a blocker, document it clearly in your output
|
|
116
|
-
|
|
117
|
-
DO NOT skip tests. DO NOT leave TODO comments. Implement fully.
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
#### Launching Parallel Agents
|
|
121
|
-
|
|
122
|
-
For phases with no dependencies between them, launch ALL of them in a single message:
|
|
123
|
-
|
|
124
|
-
```
|
|
125
|
-
// Example: Phase 1 has no deps, Phase 2 and 3 both depend on Phase 1
|
|
126
|
-
|
|
127
|
-
// First wave - launch Phase 1 alone
|
|
128
|
-
Task(code-writer, "Execute Phase 1...")
|
|
129
|
-
|
|
130
|
-
// After Phase 1 completes - launch Phase 2 AND 3 simultaneously
|
|
131
|
-
Task(api-endpoint-builder, "Execute Phase 2...") // These two in
|
|
132
|
-
Task(code-writer, "Execute Phase 3...") // the SAME message
|
|
133
|
-
```
|
|
134
|
-
|
|
135
|
-
### Step 5: Wave Execution Loop
|
|
136
|
-
|
|
137
|
-
Execute phases in waves based on the dependency graph:
|
|
138
|
-
|
|
139
|
-
```
|
|
140
|
-
Wave 1: All phases with NO dependencies → launch in parallel
|
|
141
|
-
Wait for ALL Wave 1 agents to complete
|
|
142
|
-
Mark completed tasks
|
|
143
|
-
|
|
144
|
-
Wave 2: All phases whose dependencies are now satisfied → launch in parallel
|
|
145
|
-
Wait for ALL Wave 2 agents to complete
|
|
146
|
-
Mark completed tasks
|
|
147
|
-
|
|
148
|
-
Wave N: Continue until all phases complete
|
|
149
|
-
```
|
|
150
|
-
|
|
151
|
-
**Between each wave:**
|
|
152
|
-
1. Update task statuses (mark completed phases)
|
|
153
|
-
2. Check which blocked tasks are now unblocked
|
|
154
|
-
3. Run the project's verify/test command to catch integration issues early
|
|
155
|
-
4. If verify fails, fix issues before launching next wave
|
|
156
|
-
|
|
157
|
-
### Step 6: Integration Verification
|
|
158
|
-
|
|
159
|
-
After ALL phases complete:
|
|
160
|
-
|
|
161
|
-
1. **Run full verification** using the project's verify/test command.
|
|
162
|
-
|
|
163
|
-
2. **Spawn prd-work-reviewer agent:**
|
|
164
|
-
```
|
|
165
|
-
Task(prd-work-reviewer, "Review FULL implementation against PRD at [path].
|
|
166
|
-
Check all phases, all acceptance criteria, all tests.")
|
|
167
|
-
```
|
|
168
|
-
|
|
169
|
-
3. **Fix any issues** found by the reviewer.
|
|
170
|
-
|
|
171
|
-
4. **Report final status** to the user.
|
|
172
|
-
|
|
173
|
-
---
|
|
174
|
-
|
|
175
|
-
## Output Format
|
|
176
|
-
|
|
177
|
-
After completion, report:
|
|
178
|
-
|
|
179
|
-
```markdown
|
|
180
|
-
## PRD Execution Complete
|
|
181
|
-
|
|
182
|
-
**PRD:** [title]
|
|
183
|
-
**Phases:** [completed]/[total]
|
|
184
|
-
**Waves executed:** [count]
|
|
185
|
-
**Parallelism achieved:** [max concurrent agents in any wave]
|
|
186
|
-
|
|
187
|
-
### Phase Results
|
|
188
|
-
| Phase | Status | Agent | Duration |
|
|
189
|
-
|-------|--------|-------|----------|
|
|
190
|
-
| 1: Foundation | PASS | code-writer | - |
|
|
191
|
-
| 2: Backend | PASS | api-endpoint-builder | - |
|
|
192
|
-
| 3: Frontend | PASS | code-writer | - |
|
|
193
|
-
| 4: Integration | PASS | code-writer | - |
|
|
194
|
-
|
|
195
|
-
### Verification
|
|
196
|
-
- Verify: PASS/FAIL
|
|
197
|
-
- PRD reviewer: PASS/FAIL
|
|
198
|
-
- Issues found: [count]
|
|
199
|
-
- Issues fixed: [count]
|
|
200
|
-
|
|
201
|
-
### Files Changed
|
|
202
|
-
[list of files modified/created]
|
|
203
|
-
```
|
|
204
|
-
|
|
205
|
-
---
|
|
206
|
-
|
|
207
|
-
## Error Handling
|
|
208
|
-
|
|
209
|
-
### Agent Failure
|
|
210
|
-
If an agent fails or returns incomplete work:
|
|
211
|
-
1. Read the agent's output to understand what failed
|
|
212
|
-
2. Fix the issue directly or re-launch the agent with more context
|
|
213
|
-
3. Do NOT proceed to dependent phases until the failure is resolved
|
|
214
|
-
|
|
215
|
-
### Verify Failure Between Waves
|
|
216
|
-
If verification fails between waves:
|
|
217
|
-
1. Identify which phase's changes caused the failure
|
|
218
|
-
2. Fix the issue before launching the next wave
|
|
219
|
-
3. Re-run verify to confirm
|
|
220
|
-
|
|
221
|
-
### Conflicting File Changes
|
|
222
|
-
If two parallel agents modify the same file:
|
|
223
|
-
1. This means the dependency analysis was wrong
|
|
224
|
-
2. Merge the changes manually
|
|
225
|
-
3. Add a note for future PRDs about the hidden dependency
|
|
226
|
-
|
|
227
|
-
---
|
|
228
|
-
|
|
229
|
-
## Principles
|
|
230
|
-
|
|
231
|
-
- **Maximize parallelism** - every independent phase runs concurrently
|
|
232
|
-
- **Fail fast** - catch issues between waves, not at the end
|
|
233
|
-
- **Full context** - each agent gets the complete phase spec + project rules
|
|
234
|
-
- **Verify always** - never skip verification between waves
|
|
235
|
-
- **Task tracking** - every phase is a tracked task with status updates
|
package/templates/prd.md
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# PRD: {{TITLE}}
|
|
2
|
-
|
|
3
|
-
{{DEPENDS_ON}}
|
|
4
|
-
|
|
5
|
-
**Complexity: {{COMPLEXITY_SCORE}} → {{COMPLEXITY_LEVEL}} mode**
|
|
6
|
-
{{COMPLEXITY_BREAKDOWN}}
|
|
7
|
-
|
|
8
|
-
---
|
|
9
|
-
|
|
10
|
-
## Problem
|
|
11
|
-
|
|
12
|
-
<!-- What problem does this solve? Describe in 1-2 sentences. -->
|
|
13
|
-
|
|
14
|
-
## Solution
|
|
15
|
-
|
|
16
|
-
<!-- How will you solve it? 3-5 bullets explaining the approach. -->
|
|
17
|
-
|
|
18
|
-
## Phases
|
|
19
|
-
|
|
20
|
-
{{PHASES}}
|
|
21
|
-
|
|
22
|
-
## Acceptance Criteria
|
|
23
|
-
|
|
24
|
-
- [ ] All phases complete
|
|
25
|
-
- [ ] All tests pass
|
|
26
|
-
- [ ] Feature is reachable (not orphaned code)
|