@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uninstall.js","sourceRoot":"","sources":["../../src/commands/uninstall.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,KAAK,IA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,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;wBAC9C,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;4BAChC,EAAE,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;wBACvB,CAAC;oBACH,CAAC;oBAAC,MAAM,CAAC;wBACP,mCAAmC;oBACrC,CAAC;oBAED,IAAI,WAAW,GAAG,CAAC,EAAE,CAAC;wBACpB,OAAO,CAAC,GAAG,EAAE,CAAC;wBACd,GAAG,CAAC,WAAW,WAAW,eAAe,CAAC,CAAC;oBAC7C,CAAC;gBACH,CAAC;YACH,CAAC;iBAAM,CAAC;gBACN,OAAO,CAAC,GAAG,EAAE,CAAC;gBACd,GAAG,CAAC,sBAAsB,CAAC,CAAC;YAC9B,CAAC;YAED,OAAO,CAAC,wBAAwB,YAAY,yBAAyB,CAAC,CAAC;QACzE,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CACL,mCAAmC,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CACtF,CAAC;YACF,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Update command for Night Watch CLI
|
|
3
3
|
* Reinstalls global CLI and refreshes cron entries for one or more projects.
|
|
4
4
|
*/
|
|
5
|
-
import { Command } from
|
|
5
|
+
import { Command } from 'commander';
|
|
6
6
|
export declare const DEFAULT_GLOBAL_SPEC = "@jonit-dev/night-watch-cli@latest";
|
|
7
7
|
export interface IUpdateOptions {
|
|
8
8
|
projects?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.d.ts","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,eAAO,MAAM,mBAAmB,sCAAsC,CAAC;AAEvE,MAAM,WAAW,cAAc;IAC7B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,EAAE,CAYpF;AAgCD;;GAEG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAsCpD"}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Update command for Night Watch CLI
|
|
3
3
|
* Reinstalls global CLI and refreshes cron entries for one or more projects.
|
|
4
4
|
*/
|
|
5
|
-
import { spawnSync } from
|
|
6
|
-
import * as fs from
|
|
7
|
-
import * as path from
|
|
8
|
-
import { dim, success, error as uiError, warn } from
|
|
9
|
-
export const DEFAULT_GLOBAL_SPEC =
|
|
5
|
+
import { spawnSync } from 'child_process';
|
|
6
|
+
import * as fs from 'fs';
|
|
7
|
+
import * as path from 'path';
|
|
8
|
+
import { dim, success, error as uiError, warn } from '@night-watch/core';
|
|
9
|
+
export const DEFAULT_GLOBAL_SPEC = '@jonit-dev/night-watch-cli@latest';
|
|
10
10
|
/**
|
|
11
11
|
* Parse project directories from a comma-separated CLI option.
|
|
12
12
|
* Defaults to current working directory when option is omitted.
|
|
@@ -16,7 +16,7 @@ export function parseProjectDirs(projects, cwd) {
|
|
|
16
16
|
return [cwd];
|
|
17
17
|
}
|
|
18
18
|
const dirs = projects
|
|
19
|
-
.split(
|
|
19
|
+
.split(',')
|
|
20
20
|
.map((entry) => entry.trim())
|
|
21
21
|
.filter((entry) => entry.length > 0)
|
|
22
22
|
.map((entry) => path.resolve(cwd, entry));
|
|
@@ -26,44 +26,44 @@ function runCommand(command, args, cwd) {
|
|
|
26
26
|
const result = spawnSync(command, args, {
|
|
27
27
|
cwd,
|
|
28
28
|
env: process.env,
|
|
29
|
-
stdio:
|
|
29
|
+
stdio: 'inherit',
|
|
30
30
|
});
|
|
31
31
|
if (result.error) {
|
|
32
32
|
throw result.error;
|
|
33
33
|
}
|
|
34
34
|
if ((result.status ?? 1) !== 0) {
|
|
35
|
-
const location = cwd ? ` in ${cwd}` :
|
|
36
|
-
throw new Error(`Command failed${location}: ${command} ${args.join(
|
|
35
|
+
const location = cwd ? ` in ${cwd}` : '';
|
|
36
|
+
throw new Error(`Command failed${location}: ${command} ${args.join(' ')}`);
|
|
37
37
|
}
|
|
38
38
|
}
|
|
39
39
|
function resolveNightWatchBin() {
|
|
40
|
-
const result = spawnSync(
|
|
41
|
-
encoding:
|
|
40
|
+
const result = spawnSync('which', ['night-watch'], {
|
|
41
|
+
encoding: 'utf-8',
|
|
42
42
|
env: process.env,
|
|
43
43
|
});
|
|
44
|
-
if (result.status === 0 && typeof result.stdout ===
|
|
44
|
+
if (result.status === 0 && typeof result.stdout === 'string' && result.stdout.trim().length > 0) {
|
|
45
45
|
return result.stdout.trim();
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return 'night-watch';
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
50
|
* Register update command.
|
|
51
51
|
*/
|
|
52
52
|
export function updateCommand(program) {
|
|
53
53
|
program
|
|
54
|
-
.command(
|
|
55
|
-
.description(
|
|
56
|
-
.option(
|
|
57
|
-
.option(
|
|
58
|
-
.option(
|
|
54
|
+
.command('update')
|
|
55
|
+
.description('Update global CLI and refresh cron for project(s)')
|
|
56
|
+
.option('--projects <dirs>', 'Comma-separated project directories (default: current directory)')
|
|
57
|
+
.option('--global-spec <spec>', 'npm package spec used for global install', DEFAULT_GLOBAL_SPEC)
|
|
58
|
+
.option('--no-global', 'Skip global npm install and only refresh project cron')
|
|
59
59
|
.action(async (options) => {
|
|
60
60
|
try {
|
|
61
61
|
const cwd = process.cwd();
|
|
62
62
|
const projectDirs = parseProjectDirs(options.projects, cwd);
|
|
63
63
|
if (!options.noGlobal) {
|
|
64
64
|
dim(`Updating global install: npm install -g ${options.globalSpec}`);
|
|
65
|
-
runCommand(
|
|
66
|
-
success(
|
|
65
|
+
runCommand('npm', ['install', '-g', options.globalSpec]);
|
|
66
|
+
success('Global CLI update completed.');
|
|
67
67
|
}
|
|
68
68
|
const nightWatchBin = resolveNightWatchBin();
|
|
69
69
|
for (const projectDir of projectDirs) {
|
|
@@ -72,11 +72,11 @@ export function updateCommand(program) {
|
|
|
72
72
|
continue;
|
|
73
73
|
}
|
|
74
74
|
dim(`Refreshing cron in ${projectDir}`);
|
|
75
|
-
runCommand(nightWatchBin, [
|
|
76
|
-
runCommand(nightWatchBin, [
|
|
75
|
+
runCommand(nightWatchBin, ['uninstall'], projectDir);
|
|
76
|
+
runCommand(nightWatchBin, ['install'], projectDir);
|
|
77
77
|
success(`Refreshed project: ${projectDir}`);
|
|
78
78
|
}
|
|
79
|
-
success(
|
|
79
|
+
success('Update completed.');
|
|
80
80
|
}
|
|
81
81
|
catch (err) {
|
|
82
82
|
uiError(`Update failed: ${err instanceof Error ? err.message : String(err)}`);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../src/commands/update.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,KAAK,EAAE,MAAM,IAAI,CAAC;AACzB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAC7B,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,IAAI,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AAEzE,MAAM,CAAC,MAAM,mBAAmB,GAAG,mCAAmC,CAAC;AAQvE;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,QAA4B,EAAE,GAAW;IACxE,IAAI,CAAC,QAAQ,IAAI,QAAQ,CAAC,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,IAAI,CAAC,EAAE,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC,WAAW,EAAE,EAAE,CAAC;oBACzE,IAAI,CAAC,uCAAuC,UAAU,EAAE,CAAC,CAAC;oBAC1D,SAAS;gBACX,CAAC;gBAED,GAAG,CAAC,sBAAsB,UAAU,EAAE,CAAC,CAAC;gBACxC,UAAU,CAAC,aAAa,EAAE,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC,CAAC;gBACrD,UAAU,CAAC,aAAa,EAAE,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC;gBACnD,OAAO,CAAC,sBAAsB,UAAU,EAAE,CAAC,CAAC;YAC9C,CAAC;YAED,OAAO,CAAC,mBAAmB,CAAC,CAAC;QAC/B,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,kBAAkB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;YAC9E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,42 +1,30 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jonit-dev/night-watch-cli",
|
|
3
|
-
"version": "1.7.
|
|
3
|
+
"version": "1.7.31",
|
|
4
4
|
"description": "Autonomous PRD execution using AI Provider CLIs + cron",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"night-watch": "./bin/night-watch.mjs"
|
|
8
8
|
},
|
|
9
|
-
"main": "./dist/
|
|
9
|
+
"main": "./dist/cli.js",
|
|
10
10
|
"exports": {
|
|
11
11
|
".": {
|
|
12
|
-
"import": "./dist/
|
|
13
|
-
"types": "./dist/
|
|
12
|
+
"import": "./dist/cli.js",
|
|
13
|
+
"types": "./dist/cli.d.ts"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
|
-
"scripts": {
|
|
17
|
-
"build": "yarn build:cli && yarn build:web",
|
|
18
|
-
"build:web": "cd web && yarn install && yarn build",
|
|
19
|
-
"build:cli": "tsc && tsc-alias",
|
|
20
|
-
"test": "vitest run",
|
|
21
|
-
"test:coverage": "vitest run --coverage",
|
|
22
|
-
"dev": "tsx src/cli.ts",
|
|
23
|
-
"dev:sandbox": "NIGHT_WATCH_HOME=/tmp/nw-sandbox tsx src/cli.ts",
|
|
24
|
-
"dev:sandbox:inspect": "sqlite3 /tmp/nw-sandbox/state.db",
|
|
25
|
-
"dev:sandbox:reset": "rm -rf /tmp/nw-sandbox && echo 'Sandbox cleared'",
|
|
26
|
-
"dev:web": "concurrently --names \"api,vite\" --prefix-colors \"cyan,magenta\" \"tsx src/cli.ts serve\" \"yarn --cwd web dev\"",
|
|
27
|
-
"prepublishOnly": "npm run build && npm test",
|
|
28
|
-
"publish:npm": "npm publish --access public",
|
|
29
|
-
"lint": "eslint src/",
|
|
30
|
-
"verify": "tsc --noEmit && eslint . --ignore-pattern 'node_modules/' --ignore-pattern 'dist/' --ignore-pattern 'web/dist/' --ignore-pattern 'web/node_modules/'",
|
|
31
|
-
"local": "tsc && yarn link"
|
|
32
|
-
},
|
|
33
16
|
"files": [
|
|
34
17
|
"dist/",
|
|
35
18
|
"bin/",
|
|
36
19
|
"scripts/",
|
|
37
|
-
"templates/"
|
|
38
|
-
"web/dist/"
|
|
20
|
+
"templates/"
|
|
39
21
|
],
|
|
22
|
+
"scripts": {
|
|
23
|
+
"build": "tsc --build tsconfig.json && tsc-alias -p tsconfig.json",
|
|
24
|
+
"verify": "tsc --build tsconfig.json --dry",
|
|
25
|
+
"test": "vitest run",
|
|
26
|
+
"prepublishOnly": "yarn build && yarn test"
|
|
27
|
+
},
|
|
40
28
|
"keywords": [
|
|
41
29
|
"claude",
|
|
42
30
|
"codex",
|
|
@@ -58,35 +46,23 @@
|
|
|
58
46
|
"url": "https://github.com/jonit-dev/night-watch-cli/issues"
|
|
59
47
|
},
|
|
60
48
|
"dependencies": {
|
|
61
|
-
"@
|
|
62
|
-
"@
|
|
63
|
-
"
|
|
49
|
+
"@night-watch/core": "*",
|
|
50
|
+
"@night-watch/server": "*",
|
|
51
|
+
"@night-watch/slack": "*",
|
|
64
52
|
"blessed": "^0.1.81",
|
|
65
53
|
"chalk": "^5.6.2",
|
|
66
54
|
"cli-table3": "^0.6.5",
|
|
67
55
|
"commander": "^12.0.0",
|
|
68
|
-
"
|
|
69
|
-
"
|
|
70
|
-
"
|
|
71
|
-
"express": "^5.2.1",
|
|
72
|
-
"ora": "^9.3.0"
|
|
56
|
+
"concurrently": "^9.2.1",
|
|
57
|
+
"ora": "^9.3.0",
|
|
58
|
+
"reflect-metadata": "^0.2.2"
|
|
73
59
|
},
|
|
74
60
|
"devDependencies": {
|
|
75
|
-
"@eslint/js": "^10.0.1",
|
|
76
|
-
"@types/better-sqlite3": "^7.6.13",
|
|
77
61
|
"@types/blessed": "^0.1.27",
|
|
78
|
-
"@types/cors": "^2.8.19",
|
|
79
|
-
"@types/express": "^5.0.6",
|
|
80
62
|
"@types/node": "^22.0.0",
|
|
81
|
-
"@types/supertest": "^6.0.3",
|
|
82
|
-
"@vitest/coverage-v8": "^4.0.0",
|
|
83
|
-
"concurrently": "^9.2.1",
|
|
84
|
-
"eslint": "^10.0.0",
|
|
85
|
-
"supertest": "^7.2.2",
|
|
86
63
|
"tsc-alias": "^1.8.16",
|
|
87
|
-
"tsx": "^4.
|
|
64
|
+
"tsx": "^4.19.0",
|
|
88
65
|
"typescript": "^5.3.0",
|
|
89
|
-
"typescript-eslint": "^8.56.0",
|
|
90
66
|
"vitest": "^4.0.0"
|
|
91
67
|
},
|
|
92
68
|
"engines": {
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2026 ColdstartLabs Inc. by Joao Paulo Furtado
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
package/README.md
DELETED
|
@@ -1,132 +0,0 @@
|
|
|
1
|
-
# Night Watch CLI
|
|
2
|
-
|
|
3
|
-
[](https://www.npmjs.com/package/night-watch-cli)
|
|
4
|
-
[](https://opensource.org/licenses/MIT)
|
|
5
|
-
[](https://nodejs.org/)
|
|
6
|
-
|
|
7
|
-
**Autonomous PRD execution using AI Provider CLIs + cron**
|
|
8
|
-
|
|
9
|
-
Night Watch is a battle-tested autonomous PRD executor that uses AI provider CLIs (Claude CLI or Codex) + cron to implement PRD tickets, open PRs, and fix CI failures — all while you sleep.
|
|
10
|
-
|
|
11
|
-
---
|
|
12
|
-
|
|
13
|
-
## Table of Contents
|
|
14
|
-
|
|
15
|
-
- [Quick Start](#quick-start)
|
|
16
|
-
- [Supported Providers](#supported-providers)
|
|
17
|
-
- [Using GLM-5 or Custom Endpoints](#using-glm-5-or-custom-endpoints)
|
|
18
|
-
- [Installation](#installation)
|
|
19
|
-
- [Documentation](#documentation)
|
|
20
|
-
- [License](#license)
|
|
21
|
-
|
|
22
|
-
---
|
|
23
|
-
|
|
24
|
-
## Quick Start
|
|
25
|
-
|
|
26
|
-
```bash
|
|
27
|
-
# 1. Install globally
|
|
28
|
-
npm install -g night-watch-cli
|
|
29
|
-
|
|
30
|
-
# 2. Initialize in your project
|
|
31
|
-
cd your-project
|
|
32
|
-
night-watch init
|
|
33
|
-
|
|
34
|
-
# 3. Check provider detection
|
|
35
|
-
night-watch run --dry-run
|
|
36
|
-
|
|
37
|
-
# 4. Add your PRD files
|
|
38
|
-
echo "# My First PRD\n\nImplement feature X..." > docs/PRDs/night-watch/my-feature.md
|
|
39
|
-
|
|
40
|
-
# 5. Run or install cron
|
|
41
|
-
night-watch run # Run once
|
|
42
|
-
night-watch install # Setup automated cron
|
|
43
|
-
```
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Supported Providers
|
|
48
|
-
|
|
49
|
-
| Provider | CLI Command | Auto-Mode Flag | Slash Commands |
|
|
50
|
-
|----------|-------------|----------------|----------------|
|
|
51
|
-
| `claude` | `claude` | `--dangerously-skip-permissions` | `-p "/command-name"` |
|
|
52
|
-
| `codex` | `codex` | `--yolo` | `--prompt "text"` |
|
|
53
|
-
|
|
54
|
-
- Default provider is `claude`
|
|
55
|
-
- Change with `--provider codex` flag or `"provider": "codex"` in config
|
|
56
|
-
|
|
57
|
-
---
|
|
58
|
-
|
|
59
|
-
## Using GLM-5 or Custom Endpoints
|
|
60
|
-
|
|
61
|
-
Night Watch supports passing custom environment variables to the provider CLI via the `providerEnv` config field. This lets you point the Claude CLI at any Anthropic-compatible endpoint — including **GLM-5**.
|
|
62
|
-
|
|
63
|
-
Add `providerEnv` to your `night-watch.config.json`:
|
|
64
|
-
|
|
65
|
-
```json
|
|
66
|
-
{
|
|
67
|
-
"provider": "claude",
|
|
68
|
-
"providerEnv": {
|
|
69
|
-
"ANTHROPIC_API_KEY": "your-glm5-api-key",
|
|
70
|
-
"ANTHROPIC_BASE_URL": "https://your-glm5-endpoint.example.com"
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
```
|
|
74
|
-
|
|
75
|
-
These variables are:
|
|
76
|
-
- **Injected into the provider CLI process** at runtime (`night-watch run`, `night-watch review`)
|
|
77
|
-
- **Exported in cron entries** when you run `night-watch install`, so automated runs also pick them up
|
|
78
|
-
- **Visible in `--dry-run` output** for easy debugging
|
|
79
|
-
|
|
80
|
-
### Common Use Cases
|
|
81
|
-
|
|
82
|
-
| Use Case | Environment Variables |
|
|
83
|
-
|----------|----------------------|
|
|
84
|
-
| GLM-5 via custom endpoint | `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL` |
|
|
85
|
-
| Proxy / VPN routing | `HTTPS_PROXY`, `HTTP_PROXY` |
|
|
86
|
-
| Custom model selection | Any provider-specific env var |
|
|
87
|
-
|
|
88
|
-
See [Configuration > Provider Environment](docs/configuration.md#provider-environment-providerenv) for full details.
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Installation
|
|
93
|
-
|
|
94
|
-
### npm (Recommended)
|
|
95
|
-
|
|
96
|
-
```bash
|
|
97
|
-
npm install -g night-watch-cli
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### npx (No install)
|
|
101
|
-
|
|
102
|
-
```bash
|
|
103
|
-
npx night-watch-cli init
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
### From Source
|
|
107
|
-
|
|
108
|
-
```bash
|
|
109
|
-
git clone https://github.com/jonit-dev/night-watch-cli.git
|
|
110
|
-
cd night-watch-cli
|
|
111
|
-
npm install && npm run build && npm link
|
|
112
|
-
```
|
|
113
|
-
|
|
114
|
-
---
|
|
115
|
-
|
|
116
|
-
## Documentation
|
|
117
|
-
|
|
118
|
-
| Document | Description |
|
|
119
|
-
|----------|-------------|
|
|
120
|
-
| [Commands Reference](docs/commands.md) | All CLI commands and their options |
|
|
121
|
-
| [Configuration](docs/configuration.md) | Config file, environment variables, CLI flags, `providerEnv`, notifications |
|
|
122
|
-
| [PRD Format](docs/prd-format.md) | How to write PRDs, dependencies, lifecycle |
|
|
123
|
-
| [Architecture](docs/architecture.md) | System design, execution flows, project structure |
|
|
124
|
-
| [Troubleshooting](docs/troubleshooting.md) | Common errors and how to fix them |
|
|
125
|
-
| [Local Testing](docs/local-testing.md) | Test the CLI locally without publishing |
|
|
126
|
-
| [Contributing](docs/contributing.md) | Development setup, building, testing, publishing |
|
|
127
|
-
|
|
128
|
-
---
|
|
129
|
-
|
|
130
|
-
## License
|
|
131
|
-
|
|
132
|
-
MIT License - see [LICENSE](LICENSE) for details.
|
package/dist/shared/types.d.ts
DELETED
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared API contract types for Night Watch CLI.
|
|
3
|
-
* These types represent the shape of data exchanged between the CLI server
|
|
4
|
-
* and the web client over HTTP. Both sides must agree on these definitions.
|
|
5
|
-
*/
|
|
6
|
-
/** Supported AI providers */
|
|
7
|
-
export type Provider = "claude" | "codex";
|
|
8
|
-
export type WebhookType = "slack" | "discord" | "telegram";
|
|
9
|
-
export type NotificationEvent = "run_started" | "run_succeeded" | "run_failed" | "run_timeout" | "review_completed" | "pr_auto_merged" | "rate_limit_fallback" | "qa_completed";
|
|
10
|
-
export interface IWebhookConfig {
|
|
11
|
-
type: WebhookType;
|
|
12
|
-
url?: string;
|
|
13
|
-
botToken?: string;
|
|
14
|
-
chatId?: string;
|
|
15
|
-
events: NotificationEvent[];
|
|
16
|
-
}
|
|
17
|
-
export interface INotificationConfig {
|
|
18
|
-
webhooks: IWebhookConfig[];
|
|
19
|
-
}
|
|
20
|
-
export interface IRoadmapScannerConfig {
|
|
21
|
-
enabled: boolean;
|
|
22
|
-
roadmapPath: string;
|
|
23
|
-
autoScanInterval: number;
|
|
24
|
-
slicerSchedule?: string;
|
|
25
|
-
slicerMaxRuntime?: number;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* The configuration object as returned by the /api/config endpoint.
|
|
29
|
-
* This is the subset of INightWatchConfig that the web client consumes.
|
|
30
|
-
*/
|
|
31
|
-
export interface INightWatchConfig {
|
|
32
|
-
defaultBranch: string;
|
|
33
|
-
prdDir: string;
|
|
34
|
-
maxRuntime: number;
|
|
35
|
-
reviewerMaxRuntime: number;
|
|
36
|
-
branchPrefix: string;
|
|
37
|
-
branchPatterns: string[];
|
|
38
|
-
minReviewScore: number;
|
|
39
|
-
maxLogSize: number;
|
|
40
|
-
cronSchedule: string;
|
|
41
|
-
reviewerSchedule: string;
|
|
42
|
-
cronScheduleOffset: number;
|
|
43
|
-
maxRetries: number;
|
|
44
|
-
provider: Provider;
|
|
45
|
-
reviewerEnabled: boolean;
|
|
46
|
-
providerEnv: Record<string, string>;
|
|
47
|
-
notifications: INotificationConfig;
|
|
48
|
-
prdPriority: string[];
|
|
49
|
-
roadmapScanner: IRoadmapScannerConfig;
|
|
50
|
-
templatesDir: string;
|
|
51
|
-
slack?: ISlackBotConfig;
|
|
52
|
-
}
|
|
53
|
-
export interface IPrdInfo {
|
|
54
|
-
name: string;
|
|
55
|
-
status: "ready" | "blocked" | "in-progress" | "pending-review" | "done";
|
|
56
|
-
dependencies: string[];
|
|
57
|
-
unmetDependencies: string[];
|
|
58
|
-
}
|
|
59
|
-
export interface IProcessInfo {
|
|
60
|
-
name: string;
|
|
61
|
-
running: boolean;
|
|
62
|
-
pid: number | null;
|
|
63
|
-
}
|
|
64
|
-
export interface IPrInfo {
|
|
65
|
-
number: number;
|
|
66
|
-
title: string;
|
|
67
|
-
branch: string;
|
|
68
|
-
url: string;
|
|
69
|
-
ciStatus: "pass" | "fail" | "pending" | "unknown";
|
|
70
|
-
reviewScore: number | null;
|
|
71
|
-
}
|
|
72
|
-
export interface ILogInfo {
|
|
73
|
-
name: string;
|
|
74
|
-
path: string;
|
|
75
|
-
exists: boolean;
|
|
76
|
-
size: number;
|
|
77
|
-
lastLines: string[];
|
|
78
|
-
}
|
|
79
|
-
export interface IStatusSnapshot {
|
|
80
|
-
projectName: string;
|
|
81
|
-
projectDir: string;
|
|
82
|
-
config: INightWatchConfig;
|
|
83
|
-
prds: IPrdInfo[];
|
|
84
|
-
processes: IProcessInfo[];
|
|
85
|
-
prs: IPrInfo[];
|
|
86
|
-
logs: ILogInfo[];
|
|
87
|
-
crontab: {
|
|
88
|
-
installed: boolean;
|
|
89
|
-
entries: string[];
|
|
90
|
-
};
|
|
91
|
-
activePrd: string | null;
|
|
92
|
-
timestamp: string;
|
|
93
|
-
}
|
|
94
|
-
export interface IRoadmapItem {
|
|
95
|
-
hash: string;
|
|
96
|
-
title: string;
|
|
97
|
-
description: string;
|
|
98
|
-
checked: boolean;
|
|
99
|
-
section: string;
|
|
100
|
-
processed: boolean;
|
|
101
|
-
prdFile?: string;
|
|
102
|
-
}
|
|
103
|
-
export interface IRoadmapStatus {
|
|
104
|
-
found: boolean;
|
|
105
|
-
enabled: boolean;
|
|
106
|
-
totalItems: number;
|
|
107
|
-
processedItems: number;
|
|
108
|
-
pendingItems: number;
|
|
109
|
-
status: "idle" | "scanning" | "complete" | "disabled" | "no-roadmap";
|
|
110
|
-
items: IRoadmapItem[];
|
|
111
|
-
lastScan?: string;
|
|
112
|
-
autoScanInterval?: number;
|
|
113
|
-
}
|
|
114
|
-
export interface ISlackBotConfig {
|
|
115
|
-
enabled: boolean;
|
|
116
|
-
botToken: string;
|
|
117
|
-
appToken?: string;
|
|
118
|
-
channels: {
|
|
119
|
-
eng: string;
|
|
120
|
-
prs: string;
|
|
121
|
-
incidents: string;
|
|
122
|
-
releases: string;
|
|
123
|
-
};
|
|
124
|
-
autoCreateProjectChannels: boolean;
|
|
125
|
-
discussionEnabled: boolean;
|
|
126
|
-
replicateApiToken?: string;
|
|
127
|
-
serverBaseUrl?: string;
|
|
128
|
-
}
|
|
129
|
-
export interface IAgentModelConfig {
|
|
130
|
-
provider: 'anthropic' | 'openai' | 'custom';
|
|
131
|
-
model: string;
|
|
132
|
-
baseUrl?: string;
|
|
133
|
-
envVars?: Record<string, string>;
|
|
134
|
-
maxTokens?: number;
|
|
135
|
-
temperature?: number;
|
|
136
|
-
}
|
|
137
|
-
export interface IAgentSoul {
|
|
138
|
-
whoIAm: string;
|
|
139
|
-
worldview: string[];
|
|
140
|
-
opinions: Record<string, string[]>;
|
|
141
|
-
expertise: string[];
|
|
142
|
-
interests: string[];
|
|
143
|
-
tensions: string[];
|
|
144
|
-
boundaries: string[];
|
|
145
|
-
petPeeves: string[];
|
|
146
|
-
}
|
|
147
|
-
export interface IAgentStyle {
|
|
148
|
-
voicePrinciples: string;
|
|
149
|
-
sentenceStructure: string;
|
|
150
|
-
tone: string;
|
|
151
|
-
wordsUsed: string[];
|
|
152
|
-
wordsAvoided: string[];
|
|
153
|
-
emojiUsage: {
|
|
154
|
-
frequency: 'never' | 'rare' | 'moderate' | 'heavy';
|
|
155
|
-
favorites: string[];
|
|
156
|
-
contextRules: string;
|
|
157
|
-
};
|
|
158
|
-
quickReactions: Record<string, string>;
|
|
159
|
-
rhetoricalMoves: string[];
|
|
160
|
-
antiPatterns: Array<{
|
|
161
|
-
example: string;
|
|
162
|
-
why: string;
|
|
163
|
-
}>;
|
|
164
|
-
goodExamples: string[];
|
|
165
|
-
badExamples: Array<{
|
|
166
|
-
example: string;
|
|
167
|
-
why: string;
|
|
168
|
-
}>;
|
|
169
|
-
}
|
|
170
|
-
export interface IAgentSkill {
|
|
171
|
-
modes: Record<string, string>;
|
|
172
|
-
interpolationRules: string;
|
|
173
|
-
additionalInstructions: string[];
|
|
174
|
-
}
|
|
175
|
-
export interface IAgentPersona {
|
|
176
|
-
id: string;
|
|
177
|
-
name: string;
|
|
178
|
-
role: string;
|
|
179
|
-
avatarUrl: string | null;
|
|
180
|
-
soul: IAgentSoul;
|
|
181
|
-
style: IAgentStyle;
|
|
182
|
-
skill: IAgentSkill;
|
|
183
|
-
modelConfig: IAgentModelConfig | null;
|
|
184
|
-
systemPromptOverride: string | null;
|
|
185
|
-
isActive: boolean;
|
|
186
|
-
createdAt: number;
|
|
187
|
-
updatedAt: number;
|
|
188
|
-
}
|
|
189
|
-
export type CreateAgentPersonaInput = Pick<IAgentPersona, 'name' | 'role'> & {
|
|
190
|
-
avatarUrl?: string;
|
|
191
|
-
soul?: Partial<IAgentSoul>;
|
|
192
|
-
style?: Partial<IAgentStyle>;
|
|
193
|
-
skill?: Partial<IAgentSkill>;
|
|
194
|
-
modelConfig?: IAgentModelConfig | null;
|
|
195
|
-
systemPromptOverride?: string;
|
|
196
|
-
};
|
|
197
|
-
export type UpdateAgentPersonaInput = Partial<CreateAgentPersonaInput & {
|
|
198
|
-
isActive: boolean;
|
|
199
|
-
}>;
|
|
200
|
-
export type DiscussionStatus = 'active' | 'consensus' | 'blocked' | 'closed';
|
|
201
|
-
export type ConsensusResult = 'approved' | 'changes_requested' | 'human_needed';
|
|
202
|
-
export type TriggerType = 'pr_review' | 'build_failure' | 'prd_kickoff' | 'code_watch';
|
|
203
|
-
export interface ISlackDiscussion {
|
|
204
|
-
id: string;
|
|
205
|
-
projectPath: string;
|
|
206
|
-
triggerType: TriggerType;
|
|
207
|
-
triggerRef: string;
|
|
208
|
-
channelId: string;
|
|
209
|
-
threadTs: string;
|
|
210
|
-
status: DiscussionStatus;
|
|
211
|
-
round: number;
|
|
212
|
-
participants: string[];
|
|
213
|
-
consensusResult: ConsensusResult | null;
|
|
214
|
-
createdAt: number;
|
|
215
|
-
updatedAt: number;
|
|
216
|
-
}
|
|
217
|
-
export interface IDiscussionTrigger {
|
|
218
|
-
type: TriggerType;
|
|
219
|
-
projectPath: string;
|
|
220
|
-
ref: string;
|
|
221
|
-
context: string;
|
|
222
|
-
prUrl?: string;
|
|
223
|
-
channelId?: string;
|
|
224
|
-
openingMessage?: string;
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C;IACvC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC/B,CAAC;AAEF,MAAM,MAAM,uBAAuB,GAAG,OAAO,CAAC,uBAAuB,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAAC;AAI/F,MAAM,MAAM,gBAAgB,GAAG,QAAQ,GAAG,WAAW,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC7E,MAAM,MAAM,eAAe,GAAG,UAAU,GAAG,mBAAmB,GAAG,cAAc,CAAC;AAChF,MAAM,MAAM,WAAW,GAAG,WAAW,GAAG,eAAe,GAAG,aAAa,GAAG,YAAY,CAAC;AAEvF,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,WAAW,CAAC;IACzB,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,gBAAgB,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,eAAe,EAAE,eAAe,GAAG,IAAI,CAAC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,kBAAkB;IACjC,IAAI,EAAE,WAAW,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;IACpB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB"}
|
package/dist/shared/types.js
DELETED
package/dist/shared/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../shared/types.ts"],"names":[],"mappings":"AAAA;;;;GAIG"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Soul compiler for Night Watch agent personas.
|
|
3
|
-
* Compiles SOUL + STYLE + SKILL JSON into a system prompt for the AI provider.
|
|
4
|
-
*/
|
|
5
|
-
import { IAgentPersona } from "../../shared/types.js";
|
|
6
|
-
/**
|
|
7
|
-
* Compile an agent persona's soul layers into a system prompt string.
|
|
8
|
-
* If systemPromptOverride is set, returns it directly.
|
|
9
|
-
*/
|
|
10
|
-
export declare function compileSoul(persona: IAgentPersona): string;
|
|
11
|
-
//# sourceMappingURL=soul-compiler.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"soul-compiler.d.ts","sourceRoot":"","sources":["../../../src/agents/soul-compiler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAuBtD;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAkJ1D"}
|