@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,157 +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
|
-
const AIISH_WORDS_TO_AVOID = [
|
|
6
|
-
'additionally',
|
|
7
|
-
'moreover',
|
|
8
|
-
'pivotal',
|
|
9
|
-
'crucial',
|
|
10
|
-
'landscape',
|
|
11
|
-
'underscore',
|
|
12
|
-
'testament',
|
|
13
|
-
'showcase',
|
|
14
|
-
'vibrant',
|
|
15
|
-
];
|
|
16
|
-
const CANNED_CHATBOT_PHRASES = [
|
|
17
|
-
'great question',
|
|
18
|
-
'of course',
|
|
19
|
-
'certainly',
|
|
20
|
-
"you're absolutely right",
|
|
21
|
-
'i hope this helps',
|
|
22
|
-
"let me know if you'd like",
|
|
23
|
-
];
|
|
24
|
-
/**
|
|
25
|
-
* Compile an agent persona's soul layers into a system prompt string.
|
|
26
|
-
* If systemPromptOverride is set, returns it directly.
|
|
27
|
-
*/
|
|
28
|
-
export function compileSoul(persona) {
|
|
29
|
-
if (persona.systemPromptOverride) {
|
|
30
|
-
return persona.systemPromptOverride;
|
|
31
|
-
}
|
|
32
|
-
const { soul, style, skill } = persona;
|
|
33
|
-
const lines = [];
|
|
34
|
-
lines.push(`# ${persona.name} — ${persona.role}`);
|
|
35
|
-
lines.push('');
|
|
36
|
-
lines.push('## Who I Am');
|
|
37
|
-
lines.push(soul.whoIAm || '');
|
|
38
|
-
lines.push('');
|
|
39
|
-
if (soul.worldview.length > 0) {
|
|
40
|
-
lines.push('## Worldview');
|
|
41
|
-
for (const belief of soul.worldview) {
|
|
42
|
-
lines.push(`- ${belief}`);
|
|
43
|
-
}
|
|
44
|
-
lines.push('');
|
|
45
|
-
}
|
|
46
|
-
if (Object.keys(soul.opinions).length > 0) {
|
|
47
|
-
lines.push('## Opinions');
|
|
48
|
-
for (const [domain, takes] of Object.entries(soul.opinions)) {
|
|
49
|
-
lines.push(`### ${domain}`);
|
|
50
|
-
for (const take of takes) {
|
|
51
|
-
lines.push(`- ${take}`);
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
lines.push('');
|
|
55
|
-
}
|
|
56
|
-
if (soul.tensions.length > 0) {
|
|
57
|
-
lines.push('## Tensions');
|
|
58
|
-
for (const tension of soul.tensions) {
|
|
59
|
-
lines.push(`- ${tension}`);
|
|
60
|
-
}
|
|
61
|
-
lines.push('');
|
|
62
|
-
}
|
|
63
|
-
if (soul.boundaries.length > 0) {
|
|
64
|
-
lines.push('## Boundaries');
|
|
65
|
-
for (const boundary of soul.boundaries) {
|
|
66
|
-
lines.push(`- Won't: ${boundary}`);
|
|
67
|
-
}
|
|
68
|
-
lines.push('');
|
|
69
|
-
}
|
|
70
|
-
if (style.voicePrinciples || style.sentenceStructure || style.tone) {
|
|
71
|
-
lines.push('## Voice & Style');
|
|
72
|
-
if (style.voicePrinciples) {
|
|
73
|
-
lines.push(`- Principles: ${style.voicePrinciples}`);
|
|
74
|
-
}
|
|
75
|
-
if (style.sentenceStructure) {
|
|
76
|
-
lines.push(`- Rhythm: ${style.sentenceStructure}`);
|
|
77
|
-
}
|
|
78
|
-
if (style.tone) {
|
|
79
|
-
lines.push(`- Tone: ${style.tone}`);
|
|
80
|
-
}
|
|
81
|
-
lines.push('');
|
|
82
|
-
}
|
|
83
|
-
if (style.rhetoricalMoves.length > 0) {
|
|
84
|
-
lines.push('### Rhetorical Moves');
|
|
85
|
-
for (const move of style.rhetoricalMoves) {
|
|
86
|
-
lines.push(`- ${move}`);
|
|
87
|
-
}
|
|
88
|
-
lines.push('');
|
|
89
|
-
}
|
|
90
|
-
if (Object.keys(style.quickReactions).length > 0) {
|
|
91
|
-
lines.push('### Quick Reactions');
|
|
92
|
-
for (const [emotion, reaction] of Object.entries(style.quickReactions)) {
|
|
93
|
-
lines.push(`- When ${emotion}: ${reaction}`);
|
|
94
|
-
}
|
|
95
|
-
lines.push('');
|
|
96
|
-
}
|
|
97
|
-
if (style.wordsUsed.length > 0) {
|
|
98
|
-
lines.push(`### Words I Use: ${style.wordsUsed.join(', ')}`);
|
|
99
|
-
}
|
|
100
|
-
if (style.wordsAvoided.length > 0) {
|
|
101
|
-
lines.push(`### Words I Never Use: ${style.wordsAvoided.join(', ')}`);
|
|
102
|
-
}
|
|
103
|
-
const emojiList = style.emojiUsage?.favorites?.join(' ') ?? '';
|
|
104
|
-
lines.push(`### Emoji Use: ${style.emojiUsage.frequency}${emojiList ? ` (${emojiList})` : ''}`);
|
|
105
|
-
if (style.emojiUsage.contextRules) {
|
|
106
|
-
lines.push(`### Emoji Context: ${style.emojiUsage.contextRules}`);
|
|
107
|
-
}
|
|
108
|
-
lines.push('');
|
|
109
|
-
if (style.antiPatterns.length > 0) {
|
|
110
|
-
lines.push('### Anti-Patterns (Never Sound Like This)');
|
|
111
|
-
for (const ap of style.antiPatterns) {
|
|
112
|
-
lines.push(`- ❌ "${ap.example}" — ${ap.why}`);
|
|
113
|
-
}
|
|
114
|
-
lines.push('');
|
|
115
|
-
}
|
|
116
|
-
if (style.goodExamples.length > 0) {
|
|
117
|
-
lines.push('### Examples of My Voice');
|
|
118
|
-
for (const ex of style.goodExamples) {
|
|
119
|
-
lines.push(`- ✅ "${ex}"`);
|
|
120
|
-
}
|
|
121
|
-
lines.push('');
|
|
122
|
-
}
|
|
123
|
-
lines.push('## How to Sound Human');
|
|
124
|
-
lines.push('- You are a teammate in Slack. Write like one — short, direct, no performance.');
|
|
125
|
-
lines.push(`- Never use these chatbot tells: ${CANNED_CHATBOT_PHRASES.join(', ')}.`);
|
|
126
|
-
lines.push(`- Avoid AI filler words: ${AIISH_WORDS_TO_AVOID.join(', ')}.`);
|
|
127
|
-
lines.push('- No formulaic rhetoric ("not just X, but Y"), no triads, no hype.');
|
|
128
|
-
lines.push('- Contractions are normal. Sentence fragments are fine. Vary your rhythm.');
|
|
129
|
-
lines.push('- Say concrete things. "The auth middleware is missing rate limiting" beats "we should consider security improvements."');
|
|
130
|
-
lines.push('- If you have nothing to add, say so in 3 words or fewer. Don\'t pad.');
|
|
131
|
-
lines.push('- When uncertain, name exactly what\'s unclear. Don\'t hedge with "perhaps" or "might consider."');
|
|
132
|
-
lines.push('- No markdown formatting in Slack messages — no headings, no bullets, no bold.');
|
|
133
|
-
lines.push('');
|
|
134
|
-
lines.push('## Operating Rules');
|
|
135
|
-
lines.push('- Never break character. Never say "as an AI", "I don\'t have opinions", or "I\'m happy to help."');
|
|
136
|
-
lines.push('- You have opinions. Use them. If your worldview says something, say it.');
|
|
137
|
-
lines.push('- Keep messages to 1-2 sentences. Only go longer if someone asked you for detail.');
|
|
138
|
-
lines.push('- Emojis: use sparingly. One max per message, only when it genuinely fits. Default to none.');
|
|
139
|
-
lines.push('- You can tag teammates by name when their expertise is relevant.');
|
|
140
|
-
if (emojiList) {
|
|
141
|
-
lines.push(`- If you do use an emoji, prefer: ${emojiList}`);
|
|
142
|
-
}
|
|
143
|
-
if (skill.additionalInstructions?.length > 0) {
|
|
144
|
-
for (const instruction of skill.additionalInstructions) {
|
|
145
|
-
lines.push(`- ${instruction}`);
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
if (Object.keys(skill.modes ?? {}).length > 0) {
|
|
149
|
-
lines.push('');
|
|
150
|
-
lines.push('## Modes');
|
|
151
|
-
for (const [mode, behavior] of Object.entries(skill.modes)) {
|
|
152
|
-
lines.push(`- **${mode}**: ${behavior}`);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
return lines.join('\n');
|
|
156
|
-
}
|
|
157
|
-
//# sourceMappingURL=soul-compiler.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"soul-compiler.js","sourceRoot":"","sources":["../../../src/agents/soul-compiler.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,oBAAoB,GAAG;IAC3B,cAAc;IACd,UAAU;IACV,SAAS;IACT,SAAS;IACT,WAAW;IACX,YAAY;IACZ,WAAW;IACX,UAAU;IACV,SAAS;CACV,CAAC;AAEF,MAAM,sBAAsB,GAAG;IAC7B,gBAAgB;IAChB,WAAW;IACX,WAAW;IACX,yBAAyB;IACzB,mBAAmB;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AAC,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC9C,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACf,KAAK,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QACvB,KAAK,MAAM,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC;YAC3D,KAAK,CAAC,IAAI,CAAC,OAAO,IAAI,OAAO,QAAQ,EAAE,CAAC,CAAC;QAC3C,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC1B,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.d.ts","sourceRoot":"","sources":["../../../src/board/factory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAGlE,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,oBAAoB,EAAE,GAAG,EAAE,MAAM,GAAG,cAAc,CAO7F"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { GitHubProjectsProvider } from "./providers/github-projects.js";
|
|
2
|
-
export function createBoardProvider(config, cwd) {
|
|
3
|
-
switch (config.provider) {
|
|
4
|
-
case "github":
|
|
5
|
-
return new GitHubProjectsProvider(config, cwd);
|
|
6
|
-
default:
|
|
7
|
-
throw new Error(`Unsupported board provider: ${config.provider}. Supported: github`);
|
|
8
|
-
}
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=factory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/board/factory.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExE,MAAM,UAAU,mBAAmB,CAAC,MAA4B,EAAE,GAAW;IAC3E,QAAQ,MAAM,CAAC,QAAQ,EAAE,CAAC;QACxB,KAAK,QAAQ;YACX,OAAO,IAAI,sBAAsB,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;QACjD;YACE,MAAM,IAAI,KAAK,CAAC,+BAA+B,MAAM,CAAC,QAAQ,qBAAqB,CAAC,CAAC;IACzF,CAAC;AACH,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Execute a GraphQL query/mutation against the GitHub API using the `gh` CLI.
|
|
3
|
-
*
|
|
4
|
-
* Variables with numeric values are passed using `-F` (capital F) so the GitHub
|
|
5
|
-
* API receives them as numbers rather than strings. All other values use `-f`.
|
|
6
|
-
*/
|
|
7
|
-
export declare function graphql<T>(query: string, variables: Record<string, unknown>, cwd: string): T;
|
|
8
|
-
/**
|
|
9
|
-
* Return the "owner/repo" name for the current working directory using `gh repo view`.
|
|
10
|
-
*/
|
|
11
|
-
export declare function getRepoNwo(cwd: string): string;
|
|
12
|
-
/**
|
|
13
|
-
* Return the authenticated GitHub user's login.
|
|
14
|
-
*/
|
|
15
|
-
export declare function getViewerLogin(cwd: string): string;
|
|
16
|
-
//# sourceMappingURL=github-graphql.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-graphql.d.ts","sourceRoot":"","sources":["../../../../src/board/providers/github-graphql.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,wBAAgB,OAAO,CAAC,CAAC,EACvB,KAAK,EAAE,MAAM,EACb,SAAS,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAClC,GAAG,EAAE,MAAM,GACV,CAAC,CA2BH;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAO9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAOlD"}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { execFileSync } from "child_process";
|
|
2
|
-
/**
|
|
3
|
-
* Execute a GraphQL query/mutation against the GitHub API using the `gh` CLI.
|
|
4
|
-
*
|
|
5
|
-
* Variables with numeric values are passed using `-F` (capital F) so the GitHub
|
|
6
|
-
* API receives them as numbers rather than strings. All other values use `-f`.
|
|
7
|
-
*/
|
|
8
|
-
export function graphql(query, variables, cwd) {
|
|
9
|
-
const args = ["api", "graphql", "-f", `query=${query}`];
|
|
10
|
-
for (const [key, value] of Object.entries(variables)) {
|
|
11
|
-
if (typeof value === "number") {
|
|
12
|
-
args.push("-F", `${key}=${String(value)}`);
|
|
13
|
-
}
|
|
14
|
-
else {
|
|
15
|
-
args.push("-f", `${key}=${String(value)}`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
const output = execFileSync("gh", args, {
|
|
19
|
-
cwd,
|
|
20
|
-
encoding: "utf-8",
|
|
21
|
-
stdio: ["pipe", "pipe", "pipe"],
|
|
22
|
-
});
|
|
23
|
-
const parsed = JSON.parse(output);
|
|
24
|
-
if (parsed.errors?.length) {
|
|
25
|
-
throw new Error(`GraphQL error: ${parsed.errors[0].message}`);
|
|
26
|
-
}
|
|
27
|
-
return parsed.data;
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Return the "owner/repo" name for the current working directory using `gh repo view`.
|
|
31
|
-
*/
|
|
32
|
-
export function getRepoNwo(cwd) {
|
|
33
|
-
const output = execFileSync("gh", ["repo", "view", "--json", "nameWithOwner", "-q", ".nameWithOwner"], { cwd, encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"] });
|
|
34
|
-
return output.trim();
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Return the authenticated GitHub user's login.
|
|
38
|
-
*/
|
|
39
|
-
export function getViewerLogin(cwd) {
|
|
40
|
-
const result = graphql(`query { viewer { login } }`, {}, cwd);
|
|
41
|
-
return result.viewer.login;
|
|
42
|
-
}
|
|
43
|
-
//# sourceMappingURL=github-graphql.js.map
|
|
@@ -1 +0,0 @@
|
|
|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AAM,GAAG,YAAY,CACzB,IAAI,EACJ,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,eAAe,EAAE,IAAI,EAAE,gBAAgB,CAAC,EACnE,EAAE,GAAG,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,CAC5D,CAAC;IACF,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,cAAc,CAAC,GAAW;IACxC,MAAM,MAAM,GAAG,OAAO,CACpB,4BAA4B,EAC5B,EAAE,EACF,GAAG,CACJ,CAAC;IACF,OAAO,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC;AAC7B,CAAC"}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { BoardColumnName, IBoardColumn, IBoardInfo, IBoardIssue, IBoardProvider, IBoardProviderConfig, ICreateIssueInput } from "../../board/types.js";
|
|
2
|
-
export declare class GitHubProjectsProvider implements IBoardProvider {
|
|
3
|
-
private readonly config;
|
|
4
|
-
private readonly cwd;
|
|
5
|
-
private cachedProjectId;
|
|
6
|
-
private cachedFieldId;
|
|
7
|
-
private cachedOptionIds;
|
|
8
|
-
private cachedOwner;
|
|
9
|
-
private cachedRepositoryId;
|
|
10
|
-
constructor(config: IBoardProviderConfig, cwd: string);
|
|
11
|
-
private getRepo;
|
|
12
|
-
private getRepoParts;
|
|
13
|
-
private getRepoOwnerLogin;
|
|
14
|
-
private getRepoOwner;
|
|
15
|
-
private getRepositoryNodeId;
|
|
16
|
-
private linkProjectToRepository;
|
|
17
|
-
private fetchStatusField;
|
|
18
|
-
/**
|
|
19
|
-
* Fetch and cache the project node ID, Status field ID, and option IDs.
|
|
20
|
-
* Throws if the project cannot be found or has no Status field.
|
|
21
|
-
*/
|
|
22
|
-
private ensureProjectCache;
|
|
23
|
-
/** Try user query first, fall back to org query. */
|
|
24
|
-
private fetchProjectNode;
|
|
25
|
-
/**
|
|
26
|
-
* Parse a raw project item node into IBoardIssue, returning null for items
|
|
27
|
-
* that are not issues.
|
|
28
|
-
*/
|
|
29
|
-
private parseItem;
|
|
30
|
-
/**
|
|
31
|
-
* Find an existing project by title among the repository owner's first 50 projects.
|
|
32
|
-
* Returns null if not found.
|
|
33
|
-
*/
|
|
34
|
-
private findExistingProject;
|
|
35
|
-
/**
|
|
36
|
-
* Ensure the Status field on an existing project has all five Night Watch
|
|
37
|
-
* lifecycle columns, updating it via GraphQL if any are missing.
|
|
38
|
-
*/
|
|
39
|
-
private ensureStatusColumns;
|
|
40
|
-
setupBoard(title: string): Promise<IBoardInfo>;
|
|
41
|
-
getBoard(): Promise<IBoardInfo | null>;
|
|
42
|
-
getColumns(): Promise<IBoardColumn[]>;
|
|
43
|
-
createIssue(input: ICreateIssueInput): Promise<IBoardIssue>;
|
|
44
|
-
getIssue(issueNumber: number): Promise<IBoardIssue | null>;
|
|
45
|
-
getIssuesByColumn(column: BoardColumnName): Promise<IBoardIssue[]>;
|
|
46
|
-
getAllIssues(): Promise<IBoardIssue[]>;
|
|
47
|
-
moveIssue(issueNumber: number, targetColumn: BoardColumnName): Promise<void>;
|
|
48
|
-
closeIssue(issueNumber: number): Promise<void>;
|
|
49
|
-
commentOnIssue(issueNumber: number, body: string): Promise<void>;
|
|
50
|
-
}
|
|
51
|
-
//# sourceMappingURL=github-projects.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"github-projects.d.ts","sourceRoot":"","sources":["../../../../src/board/providers/github-projects.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,eAAe,EACf,YAAY,EACZ,UAAU,EACV,WAAW,EACX,cAAc,EACd,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,kBAAkB,CAAC;AA4I1B,qBAAa,sBAAuB,YAAW,cAAc;IAC3D,OAAO,CAAC,QAAQ,CAAC,MAAM,CAAuB;IAC9C,OAAO,CAAC,QAAQ,CAAC,GAAG,C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