chatroom-cli 1.31.1 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api.d.ts +61 -0
- package/dist/api.d.ts.map +1 -0
- package/dist/api.js +10 -0
- package/dist/api.js.map +1 -0
- package/dist/commands/artifact/deps.d.ts +6 -0
- package/dist/commands/artifact/deps.d.ts.map +1 -0
- package/dist/commands/artifact/deps.js +2 -0
- package/dist/commands/artifact/deps.js.map +1 -0
- package/dist/commands/artifact/index.d.ts +43 -0
- package/dist/commands/artifact/index.d.ts.map +1 -0
- package/dist/commands/artifact/index.js +205 -0
- package/dist/commands/artifact/index.js.map +1 -0
- package/dist/commands/artifact/index.test.d.ts +8 -0
- package/dist/commands/artifact/index.test.d.ts.map +1 -0
- package/dist/commands/artifact/index.test.js +188 -0
- package/dist/commands/artifact/index.test.js.map +1 -0
- package/dist/commands/auth-login/deps.d.ts +50 -0
- package/dist/commands/auth-login/deps.d.ts.map +1 -0
- package/dist/commands/auth-login/deps.js +9 -0
- package/dist/commands/auth-login/deps.js.map +1 -0
- package/dist/commands/auth-login/index.d.ts +22 -0
- package/dist/commands/auth-login/index.d.ts.map +1 -0
- package/dist/commands/auth-login/index.js +246 -0
- package/dist/commands/auth-login/index.js.map +1 -0
- package/dist/commands/auth-login/index.test.d.ts +9 -0
- package/dist/commands/auth-login/index.test.d.ts.map +1 -0
- package/dist/commands/auth-login/index.test.js +297 -0
- package/dist/commands/auth-login/index.test.js.map +1 -0
- package/dist/commands/auth-logout/deps.d.ts +20 -0
- package/dist/commands/auth-logout/deps.d.ts.map +1 -0
- package/dist/commands/auth-logout/deps.js +7 -0
- package/dist/commands/auth-logout/deps.js.map +1 -0
- package/dist/commands/auth-logout/index.d.ts +8 -0
- package/dist/commands/auth-logout/index.d.ts.map +1 -0
- package/dist/commands/auth-logout/index.js +34 -0
- package/dist/commands/auth-logout/index.js.map +1 -0
- package/dist/commands/auth-logout/index.test.d.ts +8 -0
- package/dist/commands/auth-logout/index.test.d.ts.map +1 -0
- package/dist/commands/auth-logout/index.test.js +85 -0
- package/dist/commands/auth-logout/index.test.js.map +1 -0
- package/dist/commands/auth-status/deps.d.ts +35 -0
- package/dist/commands/auth-status/deps.d.ts.map +1 -0
- package/dist/commands/auth-status/deps.js +7 -0
- package/dist/commands/auth-status/deps.js.map +1 -0
- package/dist/commands/auth-status/index.d.ts +8 -0
- package/dist/commands/auth-status/index.d.ts.map +1 -0
- package/dist/commands/auth-status/index.js +80 -0
- package/dist/commands/auth-status/index.js.map +1 -0
- package/dist/commands/auth-status/index.test.d.ts +8 -0
- package/dist/commands/auth-status/index.test.d.ts.map +1 -0
- package/dist/commands/auth-status/index.test.js +116 -0
- package/dist/commands/auth-status/index.test.js.map +1 -0
- package/dist/commands/backlog/deps.d.ts +21 -0
- package/dist/commands/backlog/deps.d.ts.map +1 -0
- package/dist/commands/backlog/deps.js +5 -0
- package/dist/commands/backlog/deps.js.map +1 -0
- package/dist/commands/backlog/index.d.ts +129 -0
- package/dist/commands/backlog/index.d.ts.map +1 -0
- package/dist/commands/backlog/index.js +694 -0
- package/dist/commands/backlog/index.js.map +1 -0
- package/dist/commands/backlog/index.test.d.ts +7 -0
- package/dist/commands/backlog/index.test.d.ts.map +1 -0
- package/dist/commands/backlog/index.test.js +395 -0
- package/dist/commands/backlog/index.test.js.map +1 -0
- package/dist/commands/classify/deps.d.ts +18 -0
- package/dist/commands/classify/deps.d.ts.map +1 -0
- package/dist/commands/classify/deps.js +8 -0
- package/dist/commands/classify/deps.js.map +1 -0
- package/dist/commands/classify/index.d.ts +19 -0
- package/dist/commands/classify/index.d.ts.map +1 -0
- package/dist/commands/classify/index.js +162 -0
- package/dist/commands/classify/index.js.map +1 -0
- package/dist/commands/classify/index.test.d.ts +9 -0
- package/dist/commands/classify/index.test.d.ts.map +1 -0
- package/dist/commands/classify/index.test.js +263 -0
- package/dist/commands/classify/index.test.js.map +1 -0
- package/dist/commands/context/deps.d.ts +6 -0
- package/dist/commands/context/deps.d.ts.map +1 -0
- package/dist/commands/context/deps.js +2 -0
- package/dist/commands/context/deps.js.map +1 -0
- package/dist/commands/context/index.d.ts +42 -0
- package/dist/commands/context/index.d.ts.map +1 -0
- package/dist/commands/context/index.js +324 -0
- package/dist/commands/context/index.js.map +1 -0
- package/dist/commands/context/index.test.d.ts +9 -0
- package/dist/commands/context/index.test.d.ts.map +1 -0
- package/dist/commands/context/index.test.js +272 -0
- package/dist/commands/context/index.test.js.map +1 -0
- package/dist/commands/get-next-task/index.d.ts +20 -0
- package/dist/commands/get-next-task/index.d.ts.map +1 -0
- package/dist/commands/get-next-task/index.js +156 -0
- package/dist/commands/get-next-task/index.js.map +1 -0
- package/dist/commands/get-next-task/index.test.d.ts +9 -0
- package/dist/commands/get-next-task/index.test.d.ts.map +1 -0
- package/dist/commands/get-next-task/index.test.js +125 -0
- package/dist/commands/get-next-task/index.test.js.map +1 -0
- package/dist/commands/get-next-task/session.d.ts +127 -0
- package/dist/commands/get-next-task/session.d.ts.map +1 -0
- package/dist/commands/get-next-task/session.js +335 -0
- package/dist/commands/get-next-task/session.js.map +1 -0
- package/dist/commands/get-next-task/session.test.d.ts +11 -0
- package/dist/commands/get-next-task/session.test.d.ts.map +1 -0
- package/dist/commands/get-next-task/session.test.js +367 -0
- package/dist/commands/get-next-task/session.test.js.map +1 -0
- package/dist/commands/get-system-prompt/deps.d.ts +14 -0
- package/dist/commands/get-system-prompt/deps.d.ts.map +1 -0
- package/dist/commands/get-system-prompt/deps.js +7 -0
- package/dist/commands/get-system-prompt/deps.js.map +1 -0
- package/dist/commands/get-system-prompt/index.d.ts +16 -0
- package/dist/commands/get-system-prompt/index.d.ts.map +1 -0
- package/dist/commands/get-system-prompt/index.js +70 -0
- package/dist/commands/get-system-prompt/index.js.map +1 -0
- package/dist/commands/guidelines/deps.d.ts +14 -0
- package/dist/commands/guidelines/deps.d.ts.map +1 -0
- package/dist/commands/guidelines/deps.js +7 -0
- package/dist/commands/guidelines/deps.js.map +1 -0
- package/dist/commands/guidelines/index.d.ts +19 -0
- package/dist/commands/guidelines/index.d.ts.map +1 -0
- package/dist/commands/guidelines/index.js +92 -0
- package/dist/commands/guidelines/index.js.map +1 -0
- package/dist/commands/guidelines/index.test.d.ts +8 -0
- package/dist/commands/guidelines/index.test.d.ts.map +1 -0
- package/dist/commands/guidelines/index.test.js +140 -0
- package/dist/commands/guidelines/index.test.js.map +1 -0
- package/dist/commands/handoff/deps.d.ts +9 -0
- package/dist/commands/handoff/deps.d.ts.map +1 -0
- package/dist/commands/handoff/deps.js +5 -0
- package/dist/commands/handoff/deps.js.map +1 -0
- package/dist/commands/handoff/index.d.ts +23 -0
- package/dist/commands/handoff/index.d.ts.map +1 -0
- package/dist/commands/handoff/index.js +226 -0
- package/dist/commands/handoff/index.js.map +1 -0
- package/dist/commands/handoff/index.test.d.ts +9 -0
- package/dist/commands/handoff/index.test.d.ts.map +1 -0
- package/dist/commands/handoff/index.test.js +189 -0
- package/dist/commands/handoff/index.test.js.map +1 -0
- package/dist/commands/init/deps.d.ts +21 -0
- package/dist/commands/init/deps.d.ts.map +1 -0
- package/dist/commands/init/deps.js +8 -0
- package/dist/commands/init/deps.js.map +1 -0
- package/dist/commands/init/index.d.ts +22 -0
- package/dist/commands/init/index.d.ts.map +1 -0
- package/dist/commands/init/index.js +181 -0
- package/dist/commands/init/index.js.map +1 -0
- package/dist/commands/init/index.test.d.ts +8 -0
- package/dist/commands/init/index.test.d.ts.map +1 -0
- package/dist/commands/init/index.test.js +170 -0
- package/dist/commands/init/index.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/command-loop.d.ts +15 -0
- package/dist/commands/machine/daemon-start/command-loop.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/command-loop.js +295 -0
- package/dist/commands/machine/daemon-start/command-loop.js.map +1 -0
- package/dist/commands/machine/daemon-start/command-loop.test.d.ts +13 -0
- package/dist/commands/machine/daemon-start/command-loop.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/command-loop.test.js +156 -0
- package/dist/commands/machine/daemon-start/command-loop.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.d.ts +12 -0
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.js +58 -0
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.js.map +1 -0
- package/dist/commands/machine/daemon-start/deps.d.ts +85 -0
- package/dist/commands/machine/daemon-start/deps.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/deps.js +14 -0
- package/dist/commands/machine/daemon-start/deps.js.map +1 -0
- package/dist/commands/machine/daemon-start/event-bus.test.d.ts +2 -0
- package/dist/commands/machine/daemon-start/event-bus.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/event-bus.test.js +100 -0
- package/dist/commands/machine/daemon-start/event-bus.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/event-listeners.test.d.ts +2 -0
- package/dist/commands/machine/daemon-start/event-listeners.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/event-listeners.test.js +155 -0
- package/dist/commands/machine/daemon-start/event-listeners.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/file-content-fulfillment.d.ts +12 -0
- package/dist/commands/machine/daemon-start/file-content-fulfillment.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/file-content-fulfillment.js +120 -0
- package/dist/commands/machine/daemon-start/file-content-fulfillment.js.map +1 -0
- package/dist/commands/machine/daemon-start/file-content-subscription.d.ts +29 -0
- package/dist/commands/machine/daemon-start/file-content-subscription.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/file-content-subscription.js +55 -0
- package/dist/commands/machine/daemon-start/file-content-subscription.js.map +1 -0
- package/dist/commands/machine/daemon-start/file-tree-subscription.d.ts +22 -0
- package/dist/commands/machine/daemon-start/file-tree-subscription.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/file-tree-subscription.js +83 -0
- package/dist/commands/machine/daemon-start/file-tree-subscription.js.map +1 -0
- package/dist/commands/machine/daemon-start/git-heartbeat.d.ts +18 -0
- package/dist/commands/machine/daemon-start/git-heartbeat.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/git-heartbeat.js +218 -0
- package/dist/commands/machine/daemon-start/git-heartbeat.js.map +1 -0
- package/dist/commands/machine/daemon-start/git-subscription.d.ts +60 -0
- package/dist/commands/machine/daemon-start/git-subscription.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/git-subscription.js +389 -0
- package/dist/commands/machine/daemon-start/git-subscription.js.map +1 -0
- package/dist/commands/machine/daemon-start/git-subscription.test.d.ts +2 -0
- package/dist/commands/machine/daemon-start/git-subscription.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/git-subscription.test.js +103 -0
- package/dist/commands/machine/daemon-start/git-subscription.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/command-runner.d.ts +23 -0
- package/dist/commands/machine/daemon-start/handlers/command-runner.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/command-runner.js +236 -0
- package/dist/commands/machine/daemon-start/handlers/command-runner.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/ping.d.ts +6 -0
- package/dist/commands/machine/daemon-start/handlers/ping.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/ping.js +8 -0
- package/dist/commands/machine/daemon-start/handlers/ping.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/ping.test.d.ts +5 -0
- package/dist/commands/machine/daemon-start/handlers/ping.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/ping.test.js +23 -0
- package/dist/commands/machine/daemon-start/handlers/ping.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/shared.d.ts +11 -0
- package/dist/commands/machine/daemon-start/handlers/shared.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/shared.js +25 -0
- package/dist/commands/machine/daemon-start/handlers/shared.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.d.ts +19 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.js +61 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.d.ts +8 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.js +98 -0
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/status.d.ts +6 -0
- package/dist/commands/machine/daemon-start/handlers/status.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/status.js +13 -0
- package/dist/commands/machine/daemon-start/handlers/status.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/status.test.d.ts +5 -0
- package/dist/commands/machine/daemon-start/handlers/status.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/status.test.js +51 -0
- package/dist/commands/machine/daemon-start/handlers/status.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.d.ts +21 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.js +36 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.js.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.d.ts +7 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.js +135 -0
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/index.d.ts +16 -0
- package/dist/commands/machine/daemon-start/index.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/index.js +21 -0
- package/dist/commands/machine/daemon-start/index.js.map +1 -0
- package/dist/commands/machine/daemon-start/init.d.ts +23 -0
- package/dist/commands/machine/daemon-start/init.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/init.js +338 -0
- package/dist/commands/machine/daemon-start/init.js.map +1 -0
- package/dist/commands/machine/daemon-start/init.test.d.ts +8 -0
- package/dist/commands/machine/daemon-start/init.test.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/init.test.js +385 -0
- package/dist/commands/machine/daemon-start/init.test.js.map +1 -0
- package/dist/commands/machine/daemon-start/testing/index.d.ts +5 -0
- package/dist/commands/machine/daemon-start/testing/index.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/testing/index.js +5 -0
- package/dist/commands/machine/daemon-start/testing/index.js.map +1 -0
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.d.ts +26 -0
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.js +68 -0
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.js.map +1 -0
- package/dist/commands/machine/daemon-start/types.d.ts +89 -0
- package/dist/commands/machine/daemon-start/types.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/types.js +5 -0
- package/dist/commands/machine/daemon-start/types.js.map +1 -0
- package/dist/commands/machine/daemon-start/utils.d.ts +8 -0
- package/dist/commands/machine/daemon-start/utils.d.ts.map +1 -0
- package/dist/commands/machine/daemon-start/utils.js +10 -0
- package/dist/commands/machine/daemon-start/utils.js.map +1 -0
- package/dist/commands/machine/daemon-status.d.ts +10 -0
- package/dist/commands/machine/daemon-status.d.ts.map +1 -0
- package/dist/commands/machine/daemon-status.js +23 -0
- package/dist/commands/machine/daemon-status.js.map +1 -0
- package/dist/commands/machine/daemon-stop.d.ts +10 -0
- package/dist/commands/machine/daemon-stop.d.ts.map +1 -0
- package/dist/commands/machine/daemon-stop.js +44 -0
- package/dist/commands/machine/daemon-stop.js.map +1 -0
- package/dist/commands/machine/index.d.ts +9 -0
- package/dist/commands/machine/index.d.ts.map +1 -0
- package/dist/commands/machine/index.js +9 -0
- package/dist/commands/machine/index.js.map +1 -0
- package/dist/commands/machine/pid.d.ts +48 -0
- package/dist/commands/machine/pid.d.ts.map +1 -0
- package/dist/commands/machine/pid.js +141 -0
- package/dist/commands/machine/pid.js.map +1 -0
- package/dist/commands/messages/deps.d.ts +6 -0
- package/dist/commands/messages/deps.d.ts.map +1 -0
- package/dist/commands/messages/deps.js +2 -0
- package/dist/commands/messages/deps.js.map +1 -0
- package/dist/commands/messages/index.d.ts +28 -0
- package/dist/commands/messages/index.d.ts.map +1 -0
- package/dist/commands/messages/index.js +166 -0
- package/dist/commands/messages/index.js.map +1 -0
- package/dist/commands/messages/index.test.d.ts +8 -0
- package/dist/commands/messages/index.test.d.ts.map +1 -0
- package/dist/commands/messages/index.test.js +159 -0
- package/dist/commands/messages/index.test.js.map +1 -0
- package/dist/commands/opencode-install/deps.d.ts +32 -0
- package/dist/commands/opencode-install/deps.d.ts.map +1 -0
- package/dist/commands/opencode-install/deps.js +8 -0
- package/dist/commands/opencode-install/deps.js.map +1 -0
- package/dist/commands/opencode-install/index.d.ts +31 -0
- package/dist/commands/opencode-install/index.d.ts.map +1 -0
- package/dist/commands/opencode-install/index.js +440 -0
- package/dist/commands/opencode-install/index.js.map +1 -0
- package/dist/commands/opencode-install/index.test.d.ts +8 -0
- package/dist/commands/opencode-install/index.test.d.ts.map +1 -0
- package/dist/commands/opencode-install/index.test.js +123 -0
- package/dist/commands/opencode-install/index.test.js.map +1 -0
- package/dist/commands/register-agent/deps.d.ts +12 -0
- package/dist/commands/register-agent/deps.d.ts.map +1 -0
- package/dist/commands/register-agent/deps.js +8 -0
- package/dist/commands/register-agent/deps.js.map +1 -0
- package/dist/commands/register-agent/index.d.ts +15 -0
- package/dist/commands/register-agent/index.d.ts.map +1 -0
- package/dist/commands/register-agent/index.js +118 -0
- package/dist/commands/register-agent/index.js.map +1 -0
- package/dist/commands/register-agent/index.test.d.ts +9 -0
- package/dist/commands/register-agent/index.test.d.ts.map +1 -0
- package/dist/commands/register-agent/index.test.js +204 -0
- package/dist/commands/register-agent/index.test.js.map +1 -0
- package/dist/commands/report-progress/deps.d.ts +9 -0
- package/dist/commands/report-progress/deps.d.ts.map +1 -0
- package/dist/commands/report-progress/deps.js +5 -0
- package/dist/commands/report-progress/deps.js.map +1 -0
- package/dist/commands/report-progress/index.d.ts +14 -0
- package/dist/commands/report-progress/index.d.ts.map +1 -0
- package/dist/commands/report-progress/index.js +110 -0
- package/dist/commands/report-progress/index.js.map +1 -0
- package/dist/commands/report-progress/index.test.d.ts +8 -0
- package/dist/commands/report-progress/index.test.d.ts.map +1 -0
- package/dist/commands/report-progress/index.test.js +114 -0
- package/dist/commands/report-progress/index.test.js.map +1 -0
- package/dist/commands/skill/deps.d.ts +9 -0
- package/dist/commands/skill/deps.d.ts.map +1 -0
- package/dist/commands/skill/deps.js +5 -0
- package/dist/commands/skill/deps.js.map +1 -0
- package/dist/commands/skill/index.d.ts +20 -0
- package/dist/commands/skill/index.d.ts.map +1 -0
- package/dist/commands/skill/index.js +86 -0
- package/dist/commands/skill/index.js.map +1 -0
- package/dist/commands/skill/index.test.d.ts +8 -0
- package/dist/commands/skill/index.test.d.ts.map +1 -0
- package/dist/commands/skill/index.test.js +166 -0
- package/dist/commands/skill/index.test.js.map +1 -0
- package/dist/commands/task/read/deps.d.ts +18 -0
- package/dist/commands/task/read/deps.d.ts.map +1 -0
- package/dist/commands/task/read/deps.js +8 -0
- package/dist/commands/task/read/deps.js.map +1 -0
- package/dist/commands/task/read/index.d.ts +17 -0
- package/dist/commands/task/read/index.d.ts.map +1 -0
- package/dist/commands/task/read/index.js +144 -0
- package/dist/commands/task/read/index.js.map +1 -0
- package/dist/commands/telegram/deps.d.ts +13 -0
- package/dist/commands/telegram/deps.d.ts.map +1 -0
- package/dist/commands/telegram/deps.js +5 -0
- package/dist/commands/telegram/deps.js.map +1 -0
- package/dist/commands/telegram/index.d.ts +18 -0
- package/dist/commands/telegram/index.d.ts.map +1 -0
- package/dist/commands/telegram/index.js +94 -0
- package/dist/commands/telegram/index.js.map +1 -0
- package/dist/commands/update/deps.d.ts +21 -0
- package/dist/commands/update/deps.d.ts.map +1 -0
- package/dist/commands/update/deps.js +8 -0
- package/dist/commands/update/deps.js.map +1 -0
- package/dist/commands/update/index.d.ts +8 -0
- package/dist/commands/update/index.d.ts.map +1 -0
- package/dist/commands/update/index.js +70 -0
- package/dist/commands/update/index.js.map +1 -0
- package/dist/commands/update/index.test.d.ts +8 -0
- package/dist/commands/update/index.test.d.ts.map +1 -0
- package/dist/commands/update/index.test.js +108 -0
- package/dist/commands/update/index.test.js.map +1 -0
- package/dist/commands/workflow/deps.d.ts +9 -0
- package/dist/commands/workflow/deps.d.ts.map +1 -0
- package/dist/commands/workflow/deps.js +5 -0
- package/dist/commands/workflow/deps.js.map +1 -0
- package/dist/commands/workflow/index.d.ts +73 -0
- package/dist/commands/workflow/index.d.ts.map +1 -0
- package/dist/commands/workflow/index.js +545 -0
- package/dist/commands/workflow/index.js.map +1 -0
- package/dist/commands/workflow/index.test.d.ts +7 -0
- package/dist/commands/workflow/index.test.d.ts.map +1 -0
- package/dist/commands/workflow/index.test.js +315 -0
- package/dist/commands/workflow/index.test.js.map +1 -0
- package/dist/config/defaults.d.ts +10 -0
- package/dist/config/defaults.d.ts.map +1 -0
- package/dist/config/defaults.js +79 -0
- package/dist/config/defaults.js.map +1 -0
- package/dist/config/loader.d.ts +52 -0
- package/dist/config/loader.d.ts.map +1 -0
- package/dist/config/loader.js +202 -0
- package/dist/config/loader.js.map +1 -0
- package/dist/config/schema.d.ts +50 -0
- package/dist/config/schema.d.ts.map +1 -0
- package/dist/config/schema.js +99 -0
- package/dist/config/schema.js.map +1 -0
- package/dist/config.d.ts +14 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +14 -0
- package/dist/config.js.map +1 -0
- package/dist/events/daemon/agent/on-agent-exited.d.ts +26 -0
- package/dist/events/daemon/agent/on-agent-exited.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-agent-exited.js +20 -0
- package/dist/events/daemon/agent/on-agent-exited.js.map +1 -0
- package/dist/events/daemon/agent/on-agent-started.d.ts +16 -0
- package/dist/events/daemon/agent/on-agent-started.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-agent-started.js +11 -0
- package/dist/events/daemon/agent/on-agent-started.js.map +1 -0
- package/dist/events/daemon/agent/on-agent-stopped.d.ts +14 -0
- package/dist/events/daemon/agent/on-agent-stopped.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-agent-stopped.js +11 -0
- package/dist/events/daemon/agent/on-agent-stopped.js.map +1 -0
- package/dist/events/daemon/agent/on-request-start-agent.d.ts +19 -0
- package/dist/events/daemon/agent/on-request-start-agent.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-request-start-agent.js +55 -0
- package/dist/events/daemon/agent/on-request-start-agent.js.map +1 -0
- package/dist/events/daemon/agent/on-request-start-agent.test.d.ts +2 -0
- package/dist/events/daemon/agent/on-request-start-agent.test.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-request-start-agent.test.js +96 -0
- package/dist/events/daemon/agent/on-request-start-agent.test.js.map +1 -0
- package/dist/events/daemon/agent/on-request-stop-agent.d.ts +16 -0
- package/dist/events/daemon/agent/on-request-stop-agent.d.ts.map +1 -0
- package/dist/events/daemon/agent/on-request-stop-agent.js +19 -0
- package/dist/events/daemon/agent/on-request-stop-agent.js.map +1 -0
- package/dist/events/daemon/event-bus.d.ts +87 -0
- package/dist/events/daemon/event-bus.d.ts.map +1 -0
- package/dist/events/daemon/event-bus.js +50 -0
- package/dist/events/daemon/event-bus.js.map +1 -0
- package/dist/events/daemon/register-listeners.d.ts +9 -0
- package/dist/events/daemon/register-listeners.d.ts.map +1 -0
- package/dist/events/daemon/register-listeners.js +21 -0
- package/dist/events/daemon/register-listeners.js.map +1 -0
- package/dist/events/lifecycle/on-daemon-shutdown.d.ts +9 -0
- package/dist/events/lifecycle/on-daemon-shutdown.d.ts.map +1 -0
- package/dist/events/lifecycle/on-daemon-shutdown.js +43 -0
- package/dist/events/lifecycle/on-daemon-shutdown.js.map +1 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +315 -25
- package/dist/index.js.map +1 -0
- package/dist/infrastructure/auth/middleware.d.ts +21 -0
- package/dist/infrastructure/auth/middleware.d.ts.map +1 -0
- package/dist/infrastructure/auth/middleware.js +106 -0
- package/dist/infrastructure/auth/middleware.js.map +1 -0
- package/dist/infrastructure/auth/storage.d.ts +59 -0
- package/dist/infrastructure/auth/storage.d.ts.map +1 -0
- package/dist/infrastructure/auth/storage.js +242 -0
- package/dist/infrastructure/auth/storage.js.map +1 -0
- package/dist/infrastructure/convex/client.d.ts +28 -0
- package/dist/infrastructure/convex/client.d.ts.map +1 -0
- package/dist/infrastructure/convex/client.js +77 -0
- package/dist/infrastructure/convex/client.js.map +1 -0
- package/dist/infrastructure/deps/backend.d.ts +13 -0
- package/dist/infrastructure/deps/backend.d.ts.map +1 -0
- package/dist/infrastructure/deps/backend.js +8 -0
- package/dist/infrastructure/deps/backend.js.map +1 -0
- package/dist/infrastructure/deps/clock.d.ts +13 -0
- package/dist/infrastructure/deps/clock.d.ts.map +1 -0
- package/dist/infrastructure/deps/clock.js +8 -0
- package/dist/infrastructure/deps/clock.js.map +1 -0
- package/dist/infrastructure/deps/fs.d.ts +12 -0
- package/dist/infrastructure/deps/fs.d.ts.map +1 -0
- package/dist/infrastructure/deps/fs.js +8 -0
- package/dist/infrastructure/deps/fs.js.map +1 -0
- package/dist/infrastructure/deps/index.d.ts +12 -0
- package/dist/infrastructure/deps/index.d.ts.map +1 -0
- package/dist/infrastructure/deps/index.js +8 -0
- package/dist/infrastructure/deps/index.js.map +1 -0
- package/dist/infrastructure/deps/process.d.ts +11 -0
- package/dist/infrastructure/deps/process.d.ts.map +1 -0
- package/dist/infrastructure/deps/process.js +8 -0
- package/dist/infrastructure/deps/process.js.map +1 -0
- package/dist/infrastructure/deps/session.d.ts +16 -0
- package/dist/infrastructure/deps/session.d.ts.map +1 -0
- package/dist/infrastructure/deps/session.js +8 -0
- package/dist/infrastructure/deps/session.js.map +1 -0
- package/dist/infrastructure/git/git-reader.d.ts +206 -0
- package/dist/infrastructure/git/git-reader.d.ts.map +1 -0
- package/dist/infrastructure/git/git-reader.js +711 -0
- package/dist/infrastructure/git/git-reader.js.map +1 -0
- package/dist/infrastructure/git/git-reader.test.d.ts +8 -0
- package/dist/infrastructure/git/git-reader.test.d.ts.map +1 -0
- package/dist/infrastructure/git/git-reader.test.js +598 -0
- package/dist/infrastructure/git/git-reader.test.js.map +1 -0
- package/dist/infrastructure/git/git-writer.d.ts +48 -0
- package/dist/infrastructure/git/git-writer.d.ts.map +1 -0
- package/dist/infrastructure/git/git-writer.js +127 -0
- package/dist/infrastructure/git/git-writer.js.map +1 -0
- package/dist/infrastructure/git/index.d.ts +10 -0
- package/dist/infrastructure/git/index.d.ts.map +1 -0
- package/dist/infrastructure/git/index.js +9 -0
- package/dist/infrastructure/git/index.js.map +1 -0
- package/dist/infrastructure/git/types.d.ts +127 -0
- package/dist/infrastructure/git/types.d.ts.map +1 -0
- package/dist/infrastructure/git/types.js +20 -0
- package/dist/infrastructure/git/types.js.map +1 -0
- package/dist/infrastructure/history/storage.d.ts +21 -0
- package/dist/infrastructure/history/storage.d.ts.map +1 -0
- package/dist/infrastructure/history/storage.js +56 -0
- package/dist/infrastructure/history/storage.js.map +1 -0
- package/dist/infrastructure/lifecycle-heartbeat.d.ts +18 -0
- package/dist/infrastructure/lifecycle-heartbeat.d.ts.map +1 -0
- package/dist/infrastructure/lifecycle-heartbeat.js +21 -0
- package/dist/infrastructure/lifecycle-heartbeat.js.map +1 -0
- package/dist/infrastructure/local-actions/execute-local-action.d.ts +33 -0
- package/dist/infrastructure/local-actions/execute-local-action.d.ts.map +1 -0
- package/dist/infrastructure/local-actions/execute-local-action.js +109 -0
- package/dist/infrastructure/local-actions/execute-local-action.js.map +1 -0
- package/dist/infrastructure/local-actions/index.d.ts +9 -0
- package/dist/infrastructure/local-actions/index.d.ts.map +1 -0
- package/dist/infrastructure/local-actions/index.js +8 -0
- package/dist/infrastructure/local-actions/index.js.map +1 -0
- package/dist/infrastructure/local-api/cors.d.ts +19 -0
- package/dist/infrastructure/local-api/cors.d.ts.map +1 -0
- package/dist/infrastructure/local-api/cors.js +50 -0
- package/dist/infrastructure/local-api/cors.js.map +1 -0
- package/dist/infrastructure/local-api/identity.test.d.ts +8 -0
- package/dist/infrastructure/local-api/identity.test.d.ts.map +1 -0
- package/dist/infrastructure/local-api/identity.test.js +71 -0
- package/dist/infrastructure/local-api/identity.test.js.map +1 -0
- package/dist/infrastructure/local-api/index.d.ts +10 -0
- package/dist/infrastructure/local-api/index.d.ts.map +1 -0
- package/dist/infrastructure/local-api/index.js +8 -0
- package/dist/infrastructure/local-api/index.js.map +1 -0
- package/dist/infrastructure/local-api/open-finder.test.d.ts +13 -0
- package/dist/infrastructure/local-api/open-finder.test.d.ts.map +1 -0
- package/dist/infrastructure/local-api/open-finder.test.js +112 -0
- package/dist/infrastructure/local-api/open-finder.test.js.map +1 -0
- package/dist/infrastructure/local-api/open-github-desktop.test.d.ts +12 -0
- package/dist/infrastructure/local-api/open-github-desktop.test.d.ts.map +1 -0
- package/dist/infrastructure/local-api/open-github-desktop.test.js +129 -0
- package/dist/infrastructure/local-api/open-github-desktop.test.js.map +1 -0
- package/dist/infrastructure/local-api/open-vscode.test.d.ts +12 -0
- package/dist/infrastructure/local-api/open-vscode.test.d.ts.map +1 -0
- package/dist/infrastructure/local-api/open-vscode.test.js +130 -0
- package/dist/infrastructure/local-api/open-vscode.test.js.map +1 -0
- package/dist/infrastructure/local-api/router.d.ts +28 -0
- package/dist/infrastructure/local-api/router.d.ts.map +1 -0
- package/dist/infrastructure/local-api/router.js +60 -0
- package/dist/infrastructure/local-api/router.js.map +1 -0
- package/dist/infrastructure/local-api/router.test.d.ts +8 -0
- package/dist/infrastructure/local-api/router.test.d.ts.map +1 -0
- package/dist/infrastructure/local-api/router.test.js +142 -0
- package/dist/infrastructure/local-api/router.test.js.map +1 -0
- package/dist/infrastructure/local-api/routes/identity.d.ts +28 -0
- package/dist/infrastructure/local-api/routes/identity.d.ts.map +1 -0
- package/dist/infrastructure/local-api/routes/identity.js +42 -0
- package/dist/infrastructure/local-api/routes/identity.js.map +1 -0
- package/dist/infrastructure/local-api/routes/open-finder.d.ts +25 -0
- package/dist/infrastructure/local-api/routes/open-finder.d.ts.map +1 -0
- package/dist/infrastructure/local-api/routes/open-finder.js +58 -0
- package/dist/infrastructure/local-api/routes/open-finder.js.map +1 -0
- package/dist/infrastructure/local-api/routes/open-github-desktop.d.ts +21 -0
- package/dist/infrastructure/local-api/routes/open-github-desktop.d.ts.map +1 -0
- package/dist/infrastructure/local-api/routes/open-github-desktop.js +43 -0
- package/dist/infrastructure/local-api/routes/open-github-desktop.js.map +1 -0
- package/dist/infrastructure/local-api/routes/open-vscode.d.ts +23 -0
- package/dist/infrastructure/local-api/routes/open-vscode.d.ts.map +1 -0
- package/dist/infrastructure/local-api/routes/open-vscode.js +51 -0
- package/dist/infrastructure/local-api/routes/open-vscode.js.map +1 -0
- package/dist/infrastructure/local-api/routes/shared-utils.d.ts +51 -0
- package/dist/infrastructure/local-api/routes/shared-utils.d.ts.map +1 -0
- package/dist/infrastructure/local-api/routes/shared-utils.js +96 -0
- package/dist/infrastructure/local-api/routes/shared-utils.js.map +1 -0
- package/dist/infrastructure/local-api/server.d.ts +40 -0
- package/dist/infrastructure/local-api/server.d.ts.map +1 -0
- package/dist/infrastructure/local-api/server.js +153 -0
- package/dist/infrastructure/local-api/server.js.map +1 -0
- package/dist/infrastructure/local-api/types.d.ts +48 -0
- package/dist/infrastructure/local-api/types.d.ts.map +1 -0
- package/dist/infrastructure/local-api/types.js +8 -0
- package/dist/infrastructure/local-api/types.js.map +1 -0
- package/dist/infrastructure/machine/crash-loop-tracker.d.ts +69 -0
- package/dist/infrastructure/machine/crash-loop-tracker.d.ts.map +1 -0
- package/dist/infrastructure/machine/crash-loop-tracker.js +116 -0
- package/dist/infrastructure/machine/crash-loop-tracker.js.map +1 -0
- package/dist/infrastructure/machine/crash-loop-tracker.test.d.ts +8 -0
- package/dist/infrastructure/machine/crash-loop-tracker.test.d.ts.map +1 -0
- package/dist/infrastructure/machine/crash-loop-tracker.test.js +210 -0
- package/dist/infrastructure/machine/crash-loop-tracker.test.js.map +1 -0
- package/dist/infrastructure/machine/daemon-state.d.ts +96 -0
- package/dist/infrastructure/machine/daemon-state.d.ts.map +1 -0
- package/dist/infrastructure/machine/daemon-state.js +183 -0
- package/dist/infrastructure/machine/daemon-state.js.map +1 -0
- package/dist/infrastructure/machine/daemon-state.test.d.ts +10 -0
- package/dist/infrastructure/machine/daemon-state.test.d.ts.map +1 -0
- package/dist/infrastructure/machine/daemon-state.test.js +128 -0
- package/dist/infrastructure/machine/daemon-state.test.js.map +1 -0
- package/dist/infrastructure/machine/detection.d.ts +27 -0
- package/dist/infrastructure/machine/detection.d.ts.map +1 -0
- package/dist/infrastructure/machine/detection.js +47 -0
- package/dist/infrastructure/machine/detection.js.map +1 -0
- package/dist/infrastructure/machine/index.d.ts +10 -0
- package/dist/infrastructure/machine/index.d.ts.map +1 -0
- package/dist/infrastructure/machine/index.js +11 -0
- package/dist/infrastructure/machine/index.js.map +1 -0
- package/dist/infrastructure/machine/stop-reason.d.ts +26 -0
- package/dist/infrastructure/machine/stop-reason.d.ts.map +1 -0
- package/dist/infrastructure/machine/stop-reason.js +22 -0
- package/dist/infrastructure/machine/stop-reason.js.map +1 -0
- package/dist/infrastructure/machine/stop-reason.test.d.ts +2 -0
- package/dist/infrastructure/machine/stop-reason.test.d.ts.map +1 -0
- package/dist/infrastructure/machine/stop-reason.test.js +32 -0
- package/dist/infrastructure/machine/stop-reason.test.js.map +1 -0
- package/dist/infrastructure/machine/storage.d.ts +42 -0
- package/dist/infrastructure/machine/storage.d.ts.map +1 -0
- package/dist/infrastructure/machine/storage.js +156 -0
- package/dist/infrastructure/machine/storage.js.map +1 -0
- package/dist/infrastructure/machine/types.d.ts +58 -0
- package/dist/infrastructure/machine/types.d.ts.map +1 -0
- package/dist/infrastructure/machine/types.js +11 -0
- package/dist/infrastructure/machine/types.js.map +1 -0
- package/dist/infrastructure/retry-queue.d.ts +17 -0
- package/dist/infrastructure/retry-queue.d.ts.map +1 -0
- package/dist/infrastructure/retry-queue.js +33 -0
- package/dist/infrastructure/retry-queue.js.map +1 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.d.ts +142 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.d.ts.map +1 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.js +567 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.js.map +1 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.d.ts +2 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.d.ts.map +1 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.js +692 -0
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.js.map +1 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.d.ts +47 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.d.ts.map +1 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.js +68 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.js.map +1 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.d.ts +2 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.d.ts.map +1 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.js +149 -0
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.js.map +1 -0
- package/dist/infrastructure/services/harness-spawning/index.d.ts +5 -0
- package/dist/infrastructure/services/harness-spawning/index.d.ts.map +1 -0
- package/dist/infrastructure/services/harness-spawning/index.js +3 -0
- package/dist/infrastructure/services/harness-spawning/index.js.map +1 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.d.ts +45 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.d.ts.map +1 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.js +84 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.js.map +1 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.d.ts +2 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.d.ts.map +1 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.js +179 -0
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.d.ts +77 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.js +149 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.js +273 -0
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.d.ts +30 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.js +186 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.d.ts +42 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.js +92 -0
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/index.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/claude/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/claude/index.js +2 -0
- package/dist/infrastructure/services/remote-agents/claude/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.d.ts +44 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.js +160 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.d.ts +59 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.js +100 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.js +105 -0
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/index.d.ts +3 -0
- package/dist/infrastructure/services/remote-agents/copilot/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/copilot/index.js +3 -0
- package/dist/infrastructure/services/remote-agents/copilot/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.d.ts +29 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.js +219 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.js +223 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.d.ts +41 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.js +95 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.js +334 -0
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/index.d.ts +3 -0
- package/dist/infrastructure/services/remote-agents/cursor/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/cursor/index.js +2 -0
- package/dist/infrastructure/services/remote-agents/cursor/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/index.d.ts +8 -0
- package/dist/infrastructure/services/remote-agents/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/index.js +7 -0
- package/dist/infrastructure/services/remote-agents/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/init-registry.d.ts +3 -0
- package/dist/infrastructure/services/remote-agents/init-registry.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/init-registry.js +19 -0
- package/dist/infrastructure/services/remote-agents/init-registry.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/index.d.ts +4 -0
- package/dist/infrastructure/services/remote-agents/opencode/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/index.js +3 -0
- package/dist/infrastructure/services/remote-agents/opencode/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.d.ts +32 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.js +225 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.js +226 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.d.ts +46 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.js +104 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.js +268 -0
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/index.d.ts +3 -0
- package/dist/infrastructure/services/remote-agents/pi/index.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/index.js +2 -0
- package/dist/infrastructure/services/remote-agents/pi/index.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.d.ts +35 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.js +253 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.js +348 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.d.ts +50 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.js +120 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.d.ts +2 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.js +288 -0
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/registry.d.ts +8 -0
- package/dist/infrastructure/services/remote-agents/registry.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/registry.js +14 -0
- package/dist/infrastructure/services/remote-agents/registry.js.map +1 -0
- package/dist/infrastructure/services/remote-agents/remote-agent-service.d.ts +79 -0
- package/dist/infrastructure/services/remote-agents/remote-agent-service.d.ts.map +1 -0
- package/dist/infrastructure/services/remote-agents/remote-agent-service.js +9 -0
- package/dist/infrastructure/services/remote-agents/remote-agent-service.js.map +1 -0
- package/dist/infrastructure/services/workspace/command-discovery.d.ts +65 -0
- package/dist/infrastructure/services/workspace/command-discovery.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/command-discovery.js +193 -0
- package/dist/infrastructure/services/workspace/command-discovery.js.map +1 -0
- package/dist/infrastructure/services/workspace/command-discovery.test.d.ts +7 -0
- package/dist/infrastructure/services/workspace/command-discovery.test.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/command-discovery.test.js +182 -0
- package/dist/infrastructure/services/workspace/command-discovery.test.js.map +1 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.d.ts +47 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.js +159 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.js.map +1 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.d.ts +2 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.js +132 -0
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.js.map +1 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.d.ts +34 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.js +187 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.js.map +1 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.test.d.ts +5 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.test.d.ts.map +1 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.test.js +152 -0
- package/dist/infrastructure/services/workspace/workspace-resolver.test.js.map +1 -0
- package/dist/tools/index.d.ts +7 -0
- package/dist/tools/index.d.ts.map +1 -0
- package/dist/tools/index.js +5 -0
- package/dist/tools/index.js.map +1 -0
- package/dist/tools/output.d.ts +50 -0
- package/dist/tools/output.d.ts.map +1 -0
- package/dist/tools/output.js +78 -0
- package/dist/tools/output.js.map +1 -0
- package/dist/tools/output.test.d.ts +8 -0
- package/dist/tools/output.test.d.ts.map +1 -0
- package/dist/tools/output.test.js +120 -0
- package/dist/tools/output.test.js.map +1 -0
- package/dist/tools/parse-pdf/deps.d.ts +42 -0
- package/dist/tools/parse-pdf/deps.d.ts.map +1 -0
- package/dist/tools/parse-pdf/deps.js +8 -0
- package/dist/tools/parse-pdf/deps.js.map +1 -0
- package/dist/tools/parse-pdf/index.d.ts +18 -0
- package/dist/tools/parse-pdf/index.d.ts.map +1 -0
- package/dist/tools/parse-pdf/index.js +160 -0
- package/dist/tools/parse-pdf/index.js.map +1 -0
- package/dist/tools/parse-pdf/index.test.d.ts +8 -0
- package/dist/tools/parse-pdf/index.test.d.ts.map +1 -0
- package/dist/tools/parse-pdf/index.test.js +183 -0
- package/dist/tools/parse-pdf/index.test.js.map +1 -0
- package/dist/tools/types.d.ts +12 -0
- package/dist/tools/types.d.ts.map +1 -0
- package/dist/tools/types.js +5 -0
- package/dist/tools/types.js.map +1 -0
- package/dist/utils/convex-error.d.ts +19 -0
- package/dist/utils/convex-error.d.ts.map +1 -0
- package/dist/utils/convex-error.js +38 -0
- package/dist/utils/convex-error.js.map +1 -0
- package/dist/utils/convex-error.test.d.ts +7 -0
- package/dist/utils/convex-error.test.d.ts.map +1 -0
- package/dist/utils/convex-error.test.js +71 -0
- package/dist/utils/convex-error.test.js.map +1 -0
- package/dist/utils/error-formatting.d.ts +33 -0
- package/dist/utils/error-formatting.d.ts.map +1 -0
- package/dist/utils/error-formatting.js +96 -0
- package/dist/utils/error-formatting.js.map +1 -0
- package/dist/utils/file-content.d.ts +24 -0
- package/dist/utils/file-content.d.ts.map +1 -0
- package/dist/utils/file-content.js +35 -0
- package/dist/utils/file-content.js.map +1 -0
- package/dist/utils/serialization/decode/index.d.ts +71 -0
- package/dist/utils/serialization/decode/index.d.ts.map +1 -0
- package/dist/utils/serialization/decode/index.js +167 -0
- package/dist/utils/serialization/decode/index.js.map +1 -0
- package/dist/utils/serialization/decode/index.test.d.ts +5 -0
- package/dist/utils/serialization/decode/index.test.d.ts.map +1 -0
- package/dist/utils/serialization/decode/index.test.js +226 -0
- package/dist/utils/serialization/decode/index.test.js.map +1 -0
- package/dist/utils/stdin.d.ts +6 -0
- package/dist/utils/stdin.d.ts.map +1 -0
- package/dist/utils/stdin.js +19 -0
- package/dist/utils/stdin.js.map +1 -0
- package/dist/utils/terminal-safety.d.ts +7 -0
- package/dist/utils/terminal-safety.d.ts.map +1 -0
- package/dist/utils/terminal-safety.js +17 -0
- package/dist/utils/terminal-safety.js.map +1 -0
- package/dist/version.d.ts +14 -0
- package/dist/version.d.ts.map +1 -0
- package/dist/version.js +43 -0
- package/dist/version.js.map +1 -0
- package/package.json +2 -2
|
@@ -0,0 +1,694 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Backlog commands for managing task queue and backlog
|
|
3
|
+
*/
|
|
4
|
+
import { api } from '../../api.js';
|
|
5
|
+
import { getSessionId, getOtherSessionUrls } from '../../infrastructure/auth/storage.js';
|
|
6
|
+
import { getConvexClient, getConvexUrl } from '../../infrastructure/convex/client.js';
|
|
7
|
+
import { getErrorMessage } from '../../utils/convex-error.js';
|
|
8
|
+
import { createHash } from 'node:crypto';
|
|
9
|
+
import * as nodePath from 'node:path';
|
|
10
|
+
/** Export file name constant */
|
|
11
|
+
const BACKLOG_EXPORT_FILENAME = 'backlog-export.json';
|
|
12
|
+
/** Staleness threshold: 7 days in milliseconds */
|
|
13
|
+
const STALENESS_THRESHOLD_MS = 7 * 24 * 60 * 60 * 1000;
|
|
14
|
+
/** Default export/import directory relative to cwd */
|
|
15
|
+
const DEFAULT_EXPORT_DIR = '.chatroom/exports';
|
|
16
|
+
// ─── Default Deps Factory ──────────────────────────────────────────────────
|
|
17
|
+
async function createDefaultDeps() {
|
|
18
|
+
const client = await getConvexClient();
|
|
19
|
+
const fs = await import('node:fs/promises');
|
|
20
|
+
return {
|
|
21
|
+
backend: {
|
|
22
|
+
mutation: (endpoint, args) => client.mutation(endpoint, args),
|
|
23
|
+
query: (endpoint, args) => client.query(endpoint, args),
|
|
24
|
+
},
|
|
25
|
+
session: {
|
|
26
|
+
getSessionId,
|
|
27
|
+
getConvexUrl,
|
|
28
|
+
getOtherSessionUrls,
|
|
29
|
+
},
|
|
30
|
+
fs: {
|
|
31
|
+
writeFile: (path, data) => fs.writeFile(path, data, 'utf-8'),
|
|
32
|
+
readFile: (path, encoding) => fs.readFile(path, { encoding }),
|
|
33
|
+
mkdir: (path, options) => fs.mkdir(path, options),
|
|
34
|
+
},
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
// ─── Auth Helper ───────────────────────────────────────────────────────────
|
|
38
|
+
function requireAuth(d) {
|
|
39
|
+
const sessionId = d.session.getSessionId();
|
|
40
|
+
if (!sessionId) {
|
|
41
|
+
console.error(`❌ Not authenticated. Please run: chatroom auth login`);
|
|
42
|
+
process.exit(1);
|
|
43
|
+
}
|
|
44
|
+
return sessionId;
|
|
45
|
+
}
|
|
46
|
+
function validateChatroomId(chatroomId) {
|
|
47
|
+
if (!chatroomId ||
|
|
48
|
+
typeof chatroomId !== 'string' ||
|
|
49
|
+
chatroomId.length < 20 ||
|
|
50
|
+
chatroomId.length > 40) {
|
|
51
|
+
console.error(`❌ Invalid chatroom ID format: ID must be 20-40 characters (got ${chatroomId?.length || 0})`);
|
|
52
|
+
process.exit(1);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
// ─── Commands ──────────────────────────────────────────────────────────────
|
|
56
|
+
/**
|
|
57
|
+
* List backlog items (excludes pending_user_review)
|
|
58
|
+
*/
|
|
59
|
+
export async function listBacklog(chatroomId, options, deps) {
|
|
60
|
+
const d = deps ?? (await createDefaultDeps());
|
|
61
|
+
const sessionId = requireAuth(d);
|
|
62
|
+
validateChatroomId(chatroomId);
|
|
63
|
+
const limit = options.limit ?? 100;
|
|
64
|
+
try {
|
|
65
|
+
// Get backlog items from the dedicated chatroom_backlog table
|
|
66
|
+
const backlogItems = await d.backend.query(api.backlog.listBacklogItems, {
|
|
67
|
+
sessionId,
|
|
68
|
+
chatroomId: chatroomId,
|
|
69
|
+
statusFilter: 'backlog',
|
|
70
|
+
sort: options.sort,
|
|
71
|
+
filter: options.filter,
|
|
72
|
+
limit,
|
|
73
|
+
});
|
|
74
|
+
// Display header
|
|
75
|
+
console.log('');
|
|
76
|
+
console.log('══════════════════════════════════════════════════');
|
|
77
|
+
console.log('📋 BACKLOG');
|
|
78
|
+
console.log('══════════════════════════════════════════════════');
|
|
79
|
+
console.log(`Chatroom: ${chatroomId}`);
|
|
80
|
+
console.log('');
|
|
81
|
+
if (backlogItems.length === 0) {
|
|
82
|
+
console.log('No backlog items.');
|
|
83
|
+
}
|
|
84
|
+
else {
|
|
85
|
+
console.log('──────────────────────────────────────────────────');
|
|
86
|
+
for (let i = 0; i < backlogItems.length; i++) {
|
|
87
|
+
const item = backlogItems[i];
|
|
88
|
+
const statusEmoji = getStatusEmoji(item.status);
|
|
89
|
+
const date = new Date(item.createdAt).toLocaleString('en-US', {
|
|
90
|
+
month: 'short',
|
|
91
|
+
day: 'numeric',
|
|
92
|
+
hour: '2-digit',
|
|
93
|
+
minute: '2-digit',
|
|
94
|
+
hour12: false,
|
|
95
|
+
});
|
|
96
|
+
console.log(`#${i + 1} [${statusEmoji} ${item.status.toUpperCase()}] ${item.content}`);
|
|
97
|
+
console.log(` ID: ${item._id}`);
|
|
98
|
+
console.log(` Created: ${date}${item.assignedTo ? ` | Assigned: ${item.assignedTo}` : ''}`);
|
|
99
|
+
// Show scoring info if available
|
|
100
|
+
if (item.complexity !== undefined ||
|
|
101
|
+
item.value !== undefined ||
|
|
102
|
+
item.priority !== undefined) {
|
|
103
|
+
const parts = [];
|
|
104
|
+
if (item.complexity)
|
|
105
|
+
parts.push(`complexity=${item.complexity}`);
|
|
106
|
+
if (item.value)
|
|
107
|
+
parts.push(`value=${item.value}`);
|
|
108
|
+
if (item.priority !== undefined)
|
|
109
|
+
parts.push(`priority=${item.priority}`);
|
|
110
|
+
console.log(` Score: ${parts.join(' | ')}`);
|
|
111
|
+
}
|
|
112
|
+
console.log('');
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
console.log('──────────────────────────────────────────────────');
|
|
116
|
+
console.log(`Showing ${backlogItems.length} backlog item(s)`);
|
|
117
|
+
console.log('');
|
|
118
|
+
}
|
|
119
|
+
catch (error) {
|
|
120
|
+
console.error(`❌ Failed to list backlog items: ${getErrorMessage(error)}`);
|
|
121
|
+
process.exit(1);
|
|
122
|
+
return;
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
/**
|
|
126
|
+
* Add a backlog item
|
|
127
|
+
*/
|
|
128
|
+
export async function addBacklog(chatroomId, options, deps) {
|
|
129
|
+
const d = deps ?? (await createDefaultDeps());
|
|
130
|
+
const sessionId = requireAuth(d);
|
|
131
|
+
validateChatroomId(chatroomId);
|
|
132
|
+
// Validate content
|
|
133
|
+
if (!options.content || options.content.trim().length === 0) {
|
|
134
|
+
console.error(`❌ Backlog item content cannot be empty`);
|
|
135
|
+
process.exit(1);
|
|
136
|
+
return;
|
|
137
|
+
}
|
|
138
|
+
try {
|
|
139
|
+
const itemId = await d.backend.mutation(api.backlog.createBacklogItem, {
|
|
140
|
+
sessionId,
|
|
141
|
+
chatroomId: chatroomId,
|
|
142
|
+
content: options.content.trim(),
|
|
143
|
+
createdBy: options.role,
|
|
144
|
+
});
|
|
145
|
+
console.log('');
|
|
146
|
+
console.log('✅ Backlog item added');
|
|
147
|
+
console.log(` ID: ${itemId}`);
|
|
148
|
+
console.log(` Status: backlog`);
|
|
149
|
+
console.log('');
|
|
150
|
+
}
|
|
151
|
+
catch (error) {
|
|
152
|
+
console.error(`❌ Failed to add backlog item: ${getErrorMessage(error)}`);
|
|
153
|
+
process.exit(1);
|
|
154
|
+
return;
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
/**
|
|
158
|
+
* Complete a backlog item by ID.
|
|
159
|
+
* Use --force to complete stuck in_progress or pending tasks.
|
|
160
|
+
*/
|
|
161
|
+
export async function completeBacklog(chatroomId, options, deps) {
|
|
162
|
+
const d = deps ?? (await createDefaultDeps());
|
|
163
|
+
const sessionId = requireAuth(d);
|
|
164
|
+
validateChatroomId(chatroomId);
|
|
165
|
+
// Validate backlog item ID
|
|
166
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
167
|
+
console.error(`❌ Backlog item ID is required`);
|
|
168
|
+
process.exit(1);
|
|
169
|
+
return;
|
|
170
|
+
}
|
|
171
|
+
try {
|
|
172
|
+
const result = await d.backend.mutation(api.backlog.completeBacklogItem, {
|
|
173
|
+
sessionId,
|
|
174
|
+
itemId: options.backlogItemId,
|
|
175
|
+
});
|
|
176
|
+
console.log('');
|
|
177
|
+
console.log('✅ Backlog item completed');
|
|
178
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
179
|
+
console.log('');
|
|
180
|
+
}
|
|
181
|
+
catch (error) {
|
|
182
|
+
console.error(`❌ Failed to complete backlog item: ${getErrorMessage(error)}`);
|
|
183
|
+
process.exit(1);
|
|
184
|
+
return;
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Reopen a closed backlog item, returning it to backlog status.
|
|
189
|
+
*/
|
|
190
|
+
export async function reopenBacklog(chatroomId, options, deps) {
|
|
191
|
+
const d = deps ?? (await createDefaultDeps());
|
|
192
|
+
const sessionId = requireAuth(d);
|
|
193
|
+
validateChatroomId(chatroomId);
|
|
194
|
+
// Validate backlog item ID
|
|
195
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
196
|
+
console.error(`❌ Backlog item ID is required`);
|
|
197
|
+
process.exit(1);
|
|
198
|
+
return;
|
|
199
|
+
}
|
|
200
|
+
try {
|
|
201
|
+
await d.backend.mutation(api.backlog.reopenBacklogItem, {
|
|
202
|
+
sessionId,
|
|
203
|
+
itemId: options.backlogItemId,
|
|
204
|
+
});
|
|
205
|
+
console.log('');
|
|
206
|
+
console.log('✅ Backlog item reopened');
|
|
207
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
208
|
+
console.log(` Status: backlog`);
|
|
209
|
+
console.log('');
|
|
210
|
+
console.log('💡 The backlog item is now ready for user review again.');
|
|
211
|
+
console.log('');
|
|
212
|
+
}
|
|
213
|
+
catch (error) {
|
|
214
|
+
console.error(`❌ Failed to reopen backlog item: ${getErrorMessage(error)}`);
|
|
215
|
+
process.exit(1);
|
|
216
|
+
return;
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* Patch a backlog item's scoring fields (complexity, value, priority).
|
|
221
|
+
* Idempotent - can be called multiple times with same or different values.
|
|
222
|
+
*/
|
|
223
|
+
export async function patchBacklog(chatroomId, options, deps) {
|
|
224
|
+
const d = deps ?? (await createDefaultDeps());
|
|
225
|
+
const sessionId = requireAuth(d);
|
|
226
|
+
validateChatroomId(chatroomId);
|
|
227
|
+
// Validate backlog item ID
|
|
228
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
229
|
+
console.error(`❌ Backlog item ID is required`);
|
|
230
|
+
process.exit(1);
|
|
231
|
+
return;
|
|
232
|
+
}
|
|
233
|
+
// Validate at least one field is provided
|
|
234
|
+
if (options.complexity === undefined &&
|
|
235
|
+
options.value === undefined &&
|
|
236
|
+
options.priority === undefined) {
|
|
237
|
+
console.error(`❌ At least one of --complexity, --value, or --priority is required`);
|
|
238
|
+
process.exit(1);
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
// Validate complexity if provided
|
|
242
|
+
const validComplexity = ['low', 'medium', 'high'];
|
|
243
|
+
if (options.complexity !== undefined && !validComplexity.includes(options.complexity)) {
|
|
244
|
+
console.error(`❌ Invalid complexity: ${options.complexity}. Must be one of: ${validComplexity.join(', ')}`);
|
|
245
|
+
process.exit(1);
|
|
246
|
+
return;
|
|
247
|
+
}
|
|
248
|
+
// Validate value if provided
|
|
249
|
+
const validValue = ['low', 'medium', 'high'];
|
|
250
|
+
if (options.value !== undefined && !validValue.includes(options.value)) {
|
|
251
|
+
console.error(`❌ Invalid value: ${options.value}. Must be one of: ${validValue.join(', ')}`);
|
|
252
|
+
process.exit(1);
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
// Parse and validate priority if provided
|
|
256
|
+
let priorityNum;
|
|
257
|
+
if (options.priority !== undefined) {
|
|
258
|
+
priorityNum = parseInt(options.priority, 10);
|
|
259
|
+
if (isNaN(priorityNum)) {
|
|
260
|
+
console.error(`❌ Invalid priority: ${options.priority}. Must be a number.`);
|
|
261
|
+
process.exit(1);
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
try {
|
|
266
|
+
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
267
|
+
sessionId,
|
|
268
|
+
itemId: options.backlogItemId,
|
|
269
|
+
complexity: options.complexity,
|
|
270
|
+
value: options.value,
|
|
271
|
+
priority: priorityNum,
|
|
272
|
+
});
|
|
273
|
+
console.log('');
|
|
274
|
+
console.log('✅ Backlog item updated');
|
|
275
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
276
|
+
if (options.complexity !== undefined) {
|
|
277
|
+
console.log(` Complexity: ${options.complexity}`);
|
|
278
|
+
}
|
|
279
|
+
if (options.value !== undefined) {
|
|
280
|
+
console.log(` Value: ${options.value}`);
|
|
281
|
+
}
|
|
282
|
+
if (priorityNum !== undefined) {
|
|
283
|
+
console.log(` Priority: ${priorityNum}`);
|
|
284
|
+
}
|
|
285
|
+
console.log('');
|
|
286
|
+
}
|
|
287
|
+
catch (error) {
|
|
288
|
+
console.error(`❌ Failed to patch backlog item: ${getErrorMessage(error)}`);
|
|
289
|
+
process.exit(1);
|
|
290
|
+
return;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
* Score a backlog item by complexity, value, and priority.
|
|
295
|
+
*/
|
|
296
|
+
export async function scoreBacklog(chatroomId, options, deps) {
|
|
297
|
+
const d = deps ?? (await createDefaultDeps());
|
|
298
|
+
const sessionId = requireAuth(d);
|
|
299
|
+
validateChatroomId(chatroomId);
|
|
300
|
+
// Validate backlog item ID
|
|
301
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
302
|
+
console.error(`❌ Backlog item ID is required`);
|
|
303
|
+
process.exit(1);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
// Validate at least one scoring field is provided
|
|
307
|
+
if (options.complexity === undefined &&
|
|
308
|
+
options.value === undefined &&
|
|
309
|
+
options.priority === undefined) {
|
|
310
|
+
console.error(`❌ At least one of --complexity, --value, or --priority is required`);
|
|
311
|
+
console.error(` Example: chatroom backlog score --backlog-item-id=... --complexity=medium --value=high`);
|
|
312
|
+
process.exit(1);
|
|
313
|
+
return;
|
|
314
|
+
}
|
|
315
|
+
// Validate complexity if provided
|
|
316
|
+
const validComplexity = ['low', 'medium', 'high'];
|
|
317
|
+
if (options.complexity !== undefined && !validComplexity.includes(options.complexity)) {
|
|
318
|
+
console.error(`❌ Invalid complexity: ${options.complexity}. Must be one of: ${validComplexity.join(', ')}`);
|
|
319
|
+
process.exit(1);
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
// Validate value if provided
|
|
323
|
+
const validValue = ['low', 'medium', 'high'];
|
|
324
|
+
if (options.value !== undefined && !validValue.includes(options.value)) {
|
|
325
|
+
console.error(`❌ Invalid value: ${options.value}. Must be one of: ${validValue.join(', ')}`);
|
|
326
|
+
process.exit(1);
|
|
327
|
+
return;
|
|
328
|
+
}
|
|
329
|
+
// Parse and validate priority if provided
|
|
330
|
+
let priorityNum;
|
|
331
|
+
if (options.priority !== undefined) {
|
|
332
|
+
priorityNum = parseInt(options.priority, 10);
|
|
333
|
+
if (isNaN(priorityNum)) {
|
|
334
|
+
console.error(`❌ Invalid priority: ${options.priority}. Must be a number.`);
|
|
335
|
+
process.exit(1);
|
|
336
|
+
return;
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
try {
|
|
340
|
+
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
341
|
+
sessionId,
|
|
342
|
+
itemId: options.backlogItemId,
|
|
343
|
+
complexity: options.complexity,
|
|
344
|
+
value: options.value,
|
|
345
|
+
priority: priorityNum,
|
|
346
|
+
});
|
|
347
|
+
console.log('');
|
|
348
|
+
console.log('✅ Backlog item scored');
|
|
349
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
350
|
+
if (options.complexity !== undefined) {
|
|
351
|
+
console.log(` Complexity: ${options.complexity}`);
|
|
352
|
+
}
|
|
353
|
+
if (options.value !== undefined) {
|
|
354
|
+
console.log(` Value: ${options.value}`);
|
|
355
|
+
}
|
|
356
|
+
if (priorityNum !== undefined) {
|
|
357
|
+
console.log(` Priority: ${priorityNum}`);
|
|
358
|
+
}
|
|
359
|
+
console.log('');
|
|
360
|
+
}
|
|
361
|
+
catch (error) {
|
|
362
|
+
console.error(`❌ Failed to score backlog item: ${getErrorMessage(error)}`);
|
|
363
|
+
process.exit(1);
|
|
364
|
+
return;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* Mark a backlog item as ready for user review.
|
|
369
|
+
*/
|
|
370
|
+
export async function markForReviewBacklog(chatroomId, options, deps) {
|
|
371
|
+
const d = deps ?? (await createDefaultDeps());
|
|
372
|
+
const sessionId = requireAuth(d);
|
|
373
|
+
validateChatroomId(chatroomId);
|
|
374
|
+
// Validate backlog item ID
|
|
375
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
376
|
+
console.error(`❌ Backlog item ID is required`);
|
|
377
|
+
process.exit(1);
|
|
378
|
+
return;
|
|
379
|
+
}
|
|
380
|
+
try {
|
|
381
|
+
await d.backend.mutation(api.backlog.markBacklogItemForReview, {
|
|
382
|
+
sessionId,
|
|
383
|
+
itemId: options.backlogItemId,
|
|
384
|
+
});
|
|
385
|
+
console.log('');
|
|
386
|
+
console.log('✅ Backlog item marked for review');
|
|
387
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
388
|
+
console.log(` Status: pending_user_review`);
|
|
389
|
+
console.log('');
|
|
390
|
+
console.log('💡 The backlog item is now visible in the "Pending Review" section for user confirmation.');
|
|
391
|
+
console.log('');
|
|
392
|
+
}
|
|
393
|
+
catch (error) {
|
|
394
|
+
console.error(`❌ Failed to mark backlog item for review: ${getErrorMessage(error)}`);
|
|
395
|
+
process.exit(1);
|
|
396
|
+
return;
|
|
397
|
+
}
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* View completed and closed backlog items by date range.
|
|
401
|
+
*/
|
|
402
|
+
export async function historyBacklog(chatroomId, options, deps) {
|
|
403
|
+
const d = deps ?? (await createDefaultDeps());
|
|
404
|
+
const sessionId = requireAuth(d);
|
|
405
|
+
validateChatroomId(chatroomId);
|
|
406
|
+
// Parse date range
|
|
407
|
+
const now = Date.now();
|
|
408
|
+
const defaultFrom = now - 30 * 24 * 60 * 60 * 1000; // 30 days ago
|
|
409
|
+
let fromMs;
|
|
410
|
+
let toMs;
|
|
411
|
+
if (options.from) {
|
|
412
|
+
const parsed = Date.parse(options.from);
|
|
413
|
+
if (isNaN(parsed)) {
|
|
414
|
+
console.error(`❌ Invalid --from date: "${options.from}". Use YYYY-MM-DD format.`);
|
|
415
|
+
process.exit(1);
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
fromMs = parsed;
|
|
419
|
+
}
|
|
420
|
+
if (options.to) {
|
|
421
|
+
const parsed = Date.parse(options.to);
|
|
422
|
+
if (isNaN(parsed)) {
|
|
423
|
+
console.error(`❌ Invalid --to date: "${options.to}". Use YYYY-MM-DD format.`);
|
|
424
|
+
process.exit(1);
|
|
425
|
+
return;
|
|
426
|
+
}
|
|
427
|
+
// Include the full end day (end of day = +86399999ms)
|
|
428
|
+
toMs = parsed + 86399999;
|
|
429
|
+
}
|
|
430
|
+
try {
|
|
431
|
+
const tasks = await d.backend.query(api.tasks.listHistoricalTasks, {
|
|
432
|
+
sessionId,
|
|
433
|
+
chatroomId: chatroomId,
|
|
434
|
+
from: fromMs,
|
|
435
|
+
to: toMs,
|
|
436
|
+
limit: options.limit,
|
|
437
|
+
});
|
|
438
|
+
// Compute display range strings
|
|
439
|
+
const fromDate = new Date(fromMs ?? defaultFrom).toLocaleDateString('en-US', {
|
|
440
|
+
month: 'short',
|
|
441
|
+
day: 'numeric',
|
|
442
|
+
year: 'numeric',
|
|
443
|
+
});
|
|
444
|
+
const toDate = new Date(toMs ?? now).toLocaleDateString('en-US', {
|
|
445
|
+
month: 'short',
|
|
446
|
+
day: 'numeric',
|
|
447
|
+
year: 'numeric',
|
|
448
|
+
});
|
|
449
|
+
console.log('');
|
|
450
|
+
console.log('══════════════════════════════════════════════════');
|
|
451
|
+
console.log('📜 TASK HISTORY');
|
|
452
|
+
console.log('══════════════════════════════════════════════════');
|
|
453
|
+
console.log(`Chatroom: ${chatroomId}`);
|
|
454
|
+
console.log(`Date range: ${fromDate} → ${toDate}`);
|
|
455
|
+
console.log(`Filter: completed + closed`);
|
|
456
|
+
console.log('');
|
|
457
|
+
if (tasks.length === 0) {
|
|
458
|
+
console.log('No history found for date range.');
|
|
459
|
+
}
|
|
460
|
+
else {
|
|
461
|
+
console.log('──────────────────────────────────────────────────');
|
|
462
|
+
console.log('📝 COMPLETED / CLOSED TASKS');
|
|
463
|
+
console.log('──────────────────────────────────────────────────');
|
|
464
|
+
for (let i = 0; i < tasks.length; i++) {
|
|
465
|
+
const task = tasks[i];
|
|
466
|
+
const statusEmoji = getStatusEmoji(task.status);
|
|
467
|
+
const completedTs = task.completedAt ?? task.updatedAt;
|
|
468
|
+
const date = new Date(completedTs).toLocaleString('en-US', {
|
|
469
|
+
month: 'short',
|
|
470
|
+
day: 'numeric',
|
|
471
|
+
year: 'numeric',
|
|
472
|
+
hour: '2-digit',
|
|
473
|
+
minute: '2-digit',
|
|
474
|
+
hour12: false,
|
|
475
|
+
});
|
|
476
|
+
console.log(`#${i + 1} [${statusEmoji} ${task.status.toUpperCase()}] ${task.content}`);
|
|
477
|
+
console.log(` ID: ${task._id}`);
|
|
478
|
+
console.log(` Completed: ${date}${task.assignedTo ? ` | Assigned: ${task.assignedTo}` : ''}`);
|
|
479
|
+
if (task.complexity !== undefined ||
|
|
480
|
+
task.value !== undefined ||
|
|
481
|
+
task.priority !== undefined) {
|
|
482
|
+
const parts = [];
|
|
483
|
+
if (task.complexity)
|
|
484
|
+
parts.push(`complexity=${task.complexity}`);
|
|
485
|
+
if (task.value)
|
|
486
|
+
parts.push(`value=${task.value}`);
|
|
487
|
+
if (task.priority !== undefined)
|
|
488
|
+
parts.push(`priority=${task.priority}`);
|
|
489
|
+
console.log(` Score: ${parts.join(' | ')}`);
|
|
490
|
+
}
|
|
491
|
+
console.log('');
|
|
492
|
+
}
|
|
493
|
+
}
|
|
494
|
+
console.log('──────────────────────────────────────────────────');
|
|
495
|
+
console.log(`Showing ${tasks.length} task(s)`);
|
|
496
|
+
console.log('');
|
|
497
|
+
}
|
|
498
|
+
catch (error) {
|
|
499
|
+
console.error(`❌ Failed to load history: ${getErrorMessage(error)}`);
|
|
500
|
+
process.exit(1);
|
|
501
|
+
return;
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
/**
|
|
505
|
+
* Close a backlog item (mark as closed/stale).
|
|
506
|
+
*/
|
|
507
|
+
export async function closeBacklog(chatroomId, options, deps) {
|
|
508
|
+
const d = deps ?? (await createDefaultDeps());
|
|
509
|
+
const sessionId = requireAuth(d);
|
|
510
|
+
validateChatroomId(chatroomId);
|
|
511
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
512
|
+
console.error(`❌ Backlog item ID is required`);
|
|
513
|
+
process.exit(1);
|
|
514
|
+
return;
|
|
515
|
+
}
|
|
516
|
+
if (!options.reason || options.reason.trim().length === 0) {
|
|
517
|
+
console.error(`❌ Reason is required when closing a backlog item`);
|
|
518
|
+
process.exit(1);
|
|
519
|
+
return;
|
|
520
|
+
}
|
|
521
|
+
try {
|
|
522
|
+
await d.backend.mutation(api.backlog.closeBacklogItem, {
|
|
523
|
+
sessionId,
|
|
524
|
+
itemId: options.backlogItemId,
|
|
525
|
+
reason: options.reason,
|
|
526
|
+
});
|
|
527
|
+
console.log('');
|
|
528
|
+
console.log('✅ Backlog item closed');
|
|
529
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
530
|
+
console.log(` Status: closed`);
|
|
531
|
+
console.log(` Reason: ${options.reason}`);
|
|
532
|
+
console.log('');
|
|
533
|
+
}
|
|
534
|
+
catch (error) {
|
|
535
|
+
console.error(`❌ Failed to close backlog item: ${getErrorMessage(error)}`);
|
|
536
|
+
process.exit(1);
|
|
537
|
+
return;
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
function getStatusEmoji(status) {
|
|
541
|
+
switch (status) {
|
|
542
|
+
case 'pending':
|
|
543
|
+
return '🟢';
|
|
544
|
+
case 'acknowledged':
|
|
545
|
+
return '📬';
|
|
546
|
+
case 'in_progress':
|
|
547
|
+
return '🔵';
|
|
548
|
+
case 'backlog':
|
|
549
|
+
return '⚪';
|
|
550
|
+
case 'completed':
|
|
551
|
+
return '✅';
|
|
552
|
+
case 'pending_user_review':
|
|
553
|
+
return '👀';
|
|
554
|
+
case 'closed':
|
|
555
|
+
return '🔒';
|
|
556
|
+
default:
|
|
557
|
+
return '⚫';
|
|
558
|
+
}
|
|
559
|
+
}
|
|
560
|
+
// ─── Content Hash Helper ───────────────────────────────────────────────────
|
|
561
|
+
/**
|
|
562
|
+
* Compute a SHA-256 content hash for idempotent import.
|
|
563
|
+
*/
|
|
564
|
+
export function computeContentHash(content) {
|
|
565
|
+
return createHash('sha256').update(content).digest('hex');
|
|
566
|
+
}
|
|
567
|
+
// ─── Export / Import Commands ──────────────────────────────────────────────
|
|
568
|
+
/**
|
|
569
|
+
* Export all backlog items to a JSON file.
|
|
570
|
+
*/
|
|
571
|
+
export async function exportBacklog(chatroomId, options, deps) {
|
|
572
|
+
const d = deps ?? (await createDefaultDeps());
|
|
573
|
+
const sessionId = requireAuth(d);
|
|
574
|
+
validateChatroomId(chatroomId);
|
|
575
|
+
if (!d.fs) {
|
|
576
|
+
console.error('❌ File system operations not available');
|
|
577
|
+
process.exit(1);
|
|
578
|
+
return;
|
|
579
|
+
}
|
|
580
|
+
try {
|
|
581
|
+
// Fetch all backlog items
|
|
582
|
+
const backlogItems = await d.backend.query(api.backlog.listBacklogItems, {
|
|
583
|
+
sessionId,
|
|
584
|
+
chatroomId: chatroomId,
|
|
585
|
+
statusFilter: 'backlog',
|
|
586
|
+
});
|
|
587
|
+
// Build export structure
|
|
588
|
+
const exportData = {
|
|
589
|
+
exportedAt: Date.now(),
|
|
590
|
+
chatroomId,
|
|
591
|
+
items: backlogItems.map((item) => {
|
|
592
|
+
const exportItem = {
|
|
593
|
+
contentHash: computeContentHash(item.content),
|
|
594
|
+
content: item.content,
|
|
595
|
+
status: item.status,
|
|
596
|
+
createdBy: item.createdBy ?? 'unknown',
|
|
597
|
+
createdAt: item.createdAt,
|
|
598
|
+
};
|
|
599
|
+
if (item.complexity)
|
|
600
|
+
exportItem.complexity = item.complexity;
|
|
601
|
+
if (item.value)
|
|
602
|
+
exportItem.value = item.value;
|
|
603
|
+
if (item.priority !== undefined)
|
|
604
|
+
exportItem.priority = item.priority;
|
|
605
|
+
return exportItem;
|
|
606
|
+
}),
|
|
607
|
+
};
|
|
608
|
+
// Ensure output directory exists
|
|
609
|
+
const exportDir = options.path ?? nodePath.join(process.cwd(), DEFAULT_EXPORT_DIR);
|
|
610
|
+
await d.fs.mkdir(exportDir, { recursive: true });
|
|
611
|
+
// Write JSON file
|
|
612
|
+
const filePath = nodePath.join(exportDir, BACKLOG_EXPORT_FILENAME);
|
|
613
|
+
await d.fs.writeFile(filePath, JSON.stringify(exportData, null, 2));
|
|
614
|
+
console.log('');
|
|
615
|
+
console.log(`✅ Exported ${exportData.items.length} backlog item(s)`);
|
|
616
|
+
console.log(` File: ${filePath}`);
|
|
617
|
+
console.log('');
|
|
618
|
+
}
|
|
619
|
+
catch (error) {
|
|
620
|
+
console.error(`❌ Failed to export backlog items: ${getErrorMessage(error)}`);
|
|
621
|
+
process.exit(1);
|
|
622
|
+
return;
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
/**
|
|
626
|
+
* Import backlog items from a JSON export file.
|
|
627
|
+
* Idempotent — skips items whose content hash matches an existing item.
|
|
628
|
+
*/
|
|
629
|
+
export async function importBacklog(chatroomId, options, deps) {
|
|
630
|
+
const d = deps ?? (await createDefaultDeps());
|
|
631
|
+
const sessionId = requireAuth(d);
|
|
632
|
+
validateChatroomId(chatroomId);
|
|
633
|
+
if (!d.fs) {
|
|
634
|
+
console.error('❌ File system operations not available');
|
|
635
|
+
process.exit(1);
|
|
636
|
+
return;
|
|
637
|
+
}
|
|
638
|
+
try {
|
|
639
|
+
// Read the export file
|
|
640
|
+
const importDir = options.path ?? nodePath.join(process.cwd(), DEFAULT_EXPORT_DIR);
|
|
641
|
+
const filePath = nodePath.join(importDir, BACKLOG_EXPORT_FILENAME);
|
|
642
|
+
const raw = await d.fs.readFile(filePath, 'utf-8');
|
|
643
|
+
const exportData = JSON.parse(raw);
|
|
644
|
+
// Staleness warning
|
|
645
|
+
const ageMs = Date.now() - exportData.exportedAt;
|
|
646
|
+
if (ageMs > STALENESS_THRESHOLD_MS) {
|
|
647
|
+
const ageDays = Math.floor(ageMs / (24 * 60 * 60 * 1000));
|
|
648
|
+
console.log(`⚠️ This export is ${ageDays} days old and may be stale.`);
|
|
649
|
+
}
|
|
650
|
+
// Fetch existing backlog items to check for duplicates
|
|
651
|
+
const existingItems = await d.backend.query(api.backlog.listBacklogItems, {
|
|
652
|
+
sessionId,
|
|
653
|
+
chatroomId: chatroomId,
|
|
654
|
+
statusFilter: 'backlog',
|
|
655
|
+
});
|
|
656
|
+
// Build set of existing content hashes
|
|
657
|
+
const existingHashes = new Set(existingItems.map((item) => computeContentHash(item.content)));
|
|
658
|
+
let imported = 0;
|
|
659
|
+
let skipped = 0;
|
|
660
|
+
for (const item of exportData.items) {
|
|
661
|
+
// Recompute hash from content for verification
|
|
662
|
+
const hash = computeContentHash(item.content);
|
|
663
|
+
if (existingHashes.has(hash)) {
|
|
664
|
+
skipped++;
|
|
665
|
+
continue;
|
|
666
|
+
}
|
|
667
|
+
// Create the backlog item
|
|
668
|
+
await d.backend.mutation(api.backlog.createBacklogItem, {
|
|
669
|
+
sessionId,
|
|
670
|
+
chatroomId: chatroomId,
|
|
671
|
+
content: item.content,
|
|
672
|
+
createdBy: item.createdBy,
|
|
673
|
+
priority: item.priority,
|
|
674
|
+
complexity: item.complexity,
|
|
675
|
+
value: item.value,
|
|
676
|
+
});
|
|
677
|
+
// Add hash to set so subsequent duplicates in same file are also skipped
|
|
678
|
+
existingHashes.add(hash);
|
|
679
|
+
imported++;
|
|
680
|
+
}
|
|
681
|
+
console.log('');
|
|
682
|
+
console.log(`✅ Import complete`);
|
|
683
|
+
console.log(` Total items in file: ${exportData.items.length}`);
|
|
684
|
+
console.log(` Imported: ${imported}`);
|
|
685
|
+
console.log(` Skipped (duplicate): ${skipped}`);
|
|
686
|
+
console.log('');
|
|
687
|
+
}
|
|
688
|
+
catch (error) {
|
|
689
|
+
console.error(`❌ Failed to import backlog items: ${getErrorMessage(error)}`);
|
|
690
|
+
process.exit(1);
|
|
691
|
+
return;
|
|
692
|
+
}
|
|
693
|
+
}
|
|
694
|
+
//# sourceMappingURL=index.js.map
|