chatroom-cli 1.34.0 ā 1.35.1
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/index.js +238 -344
- package/dist/index.js.map +413 -1
- package/package.json +5 -4
- package/dist/api.d.ts +0 -61
- package/dist/api.d.ts.map +0 -1
- package/dist/api.js +0 -10
- package/dist/api.js.map +0 -1
- package/dist/commands/artifact/deps.d.ts +0 -6
- package/dist/commands/artifact/deps.d.ts.map +0 -1
- package/dist/commands/artifact/deps.js +0 -2
- package/dist/commands/artifact/deps.js.map +0 -1
- package/dist/commands/artifact/index.d.ts +0 -43
- package/dist/commands/artifact/index.d.ts.map +0 -1
- package/dist/commands/artifact/index.js +0 -205
- package/dist/commands/artifact/index.js.map +0 -1
- package/dist/commands/artifact/index.test.d.ts +0 -8
- package/dist/commands/artifact/index.test.d.ts.map +0 -1
- package/dist/commands/artifact/index.test.js +0 -188
- package/dist/commands/artifact/index.test.js.map +0 -1
- package/dist/commands/auth-login/deps.d.ts +0 -50
- package/dist/commands/auth-login/deps.d.ts.map +0 -1
- package/dist/commands/auth-login/deps.js +0 -9
- package/dist/commands/auth-login/deps.js.map +0 -1
- package/dist/commands/auth-login/index.d.ts +0 -22
- package/dist/commands/auth-login/index.d.ts.map +0 -1
- package/dist/commands/auth-login/index.js +0 -246
- package/dist/commands/auth-login/index.js.map +0 -1
- package/dist/commands/auth-login/index.test.d.ts +0 -9
- package/dist/commands/auth-login/index.test.d.ts.map +0 -1
- package/dist/commands/auth-login/index.test.js +0 -297
- package/dist/commands/auth-login/index.test.js.map +0 -1
- package/dist/commands/auth-logout/deps.d.ts +0 -20
- package/dist/commands/auth-logout/deps.d.ts.map +0 -1
- package/dist/commands/auth-logout/deps.js +0 -7
- package/dist/commands/auth-logout/deps.js.map +0 -1
- package/dist/commands/auth-logout/index.d.ts +0 -8
- package/dist/commands/auth-logout/index.d.ts.map +0 -1
- package/dist/commands/auth-logout/index.js +0 -34
- package/dist/commands/auth-logout/index.js.map +0 -1
- package/dist/commands/auth-logout/index.test.d.ts +0 -8
- package/dist/commands/auth-logout/index.test.d.ts.map +0 -1
- package/dist/commands/auth-logout/index.test.js +0 -85
- package/dist/commands/auth-logout/index.test.js.map +0 -1
- package/dist/commands/auth-status/deps.d.ts +0 -35
- package/dist/commands/auth-status/deps.d.ts.map +0 -1
- package/dist/commands/auth-status/deps.js +0 -7
- package/dist/commands/auth-status/deps.js.map +0 -1
- package/dist/commands/auth-status/index.d.ts +0 -8
- package/dist/commands/auth-status/index.d.ts.map +0 -1
- package/dist/commands/auth-status/index.js +0 -80
- package/dist/commands/auth-status/index.js.map +0 -1
- package/dist/commands/auth-status/index.test.d.ts +0 -8
- package/dist/commands/auth-status/index.test.d.ts.map +0 -1
- package/dist/commands/auth-status/index.test.js +0 -116
- package/dist/commands/auth-status/index.test.js.map +0 -1
- package/dist/commands/backlog/deps.d.ts +0 -21
- package/dist/commands/backlog/deps.d.ts.map +0 -1
- package/dist/commands/backlog/deps.js +0 -5
- package/dist/commands/backlog/deps.js.map +0 -1
- package/dist/commands/backlog/index.d.ts +0 -129
- package/dist/commands/backlog/index.d.ts.map +0 -1
- package/dist/commands/backlog/index.js +0 -694
- package/dist/commands/backlog/index.js.map +0 -1
- package/dist/commands/backlog/index.test.d.ts +0 -7
- package/dist/commands/backlog/index.test.d.ts.map +0 -1
- package/dist/commands/backlog/index.test.js +0 -395
- package/dist/commands/backlog/index.test.js.map +0 -1
- package/dist/commands/classify/deps.d.ts +0 -18
- package/dist/commands/classify/deps.d.ts.map +0 -1
- package/dist/commands/classify/deps.js +0 -8
- package/dist/commands/classify/deps.js.map +0 -1
- package/dist/commands/classify/index.d.ts +0 -19
- package/dist/commands/classify/index.d.ts.map +0 -1
- package/dist/commands/classify/index.js +0 -162
- package/dist/commands/classify/index.js.map +0 -1
- package/dist/commands/classify/index.test.d.ts +0 -9
- package/dist/commands/classify/index.test.d.ts.map +0 -1
- package/dist/commands/classify/index.test.js +0 -263
- package/dist/commands/classify/index.test.js.map +0 -1
- package/dist/commands/context/deps.d.ts +0 -6
- package/dist/commands/context/deps.d.ts.map +0 -1
- package/dist/commands/context/deps.js +0 -2
- package/dist/commands/context/deps.js.map +0 -1
- package/dist/commands/context/index.d.ts +0 -42
- package/dist/commands/context/index.d.ts.map +0 -1
- package/dist/commands/context/index.js +0 -324
- package/dist/commands/context/index.js.map +0 -1
- package/dist/commands/context/index.test.d.ts +0 -9
- package/dist/commands/context/index.test.d.ts.map +0 -1
- package/dist/commands/context/index.test.js +0 -272
- package/dist/commands/context/index.test.js.map +0 -1
- package/dist/commands/get-next-task/index.d.ts +0 -20
- package/dist/commands/get-next-task/index.d.ts.map +0 -1
- package/dist/commands/get-next-task/index.js +0 -156
- package/dist/commands/get-next-task/index.js.map +0 -1
- package/dist/commands/get-next-task/index.test.d.ts +0 -9
- package/dist/commands/get-next-task/index.test.d.ts.map +0 -1
- package/dist/commands/get-next-task/index.test.js +0 -125
- package/dist/commands/get-next-task/index.test.js.map +0 -1
- package/dist/commands/get-next-task/session.d.ts +0 -127
- package/dist/commands/get-next-task/session.d.ts.map +0 -1
- package/dist/commands/get-next-task/session.js +0 -335
- package/dist/commands/get-next-task/session.js.map +0 -1
- package/dist/commands/get-next-task/session.test.d.ts +0 -11
- package/dist/commands/get-next-task/session.test.d.ts.map +0 -1
- package/dist/commands/get-next-task/session.test.js +0 -367
- package/dist/commands/get-next-task/session.test.js.map +0 -1
- package/dist/commands/get-system-prompt/deps.d.ts +0 -14
- package/dist/commands/get-system-prompt/deps.d.ts.map +0 -1
- package/dist/commands/get-system-prompt/deps.js +0 -7
- package/dist/commands/get-system-prompt/deps.js.map +0 -1
- package/dist/commands/get-system-prompt/index.d.ts +0 -16
- package/dist/commands/get-system-prompt/index.d.ts.map +0 -1
- package/dist/commands/get-system-prompt/index.js +0 -70
- package/dist/commands/get-system-prompt/index.js.map +0 -1
- package/dist/commands/guidelines/deps.d.ts +0 -14
- package/dist/commands/guidelines/deps.d.ts.map +0 -1
- package/dist/commands/guidelines/deps.js +0 -7
- package/dist/commands/guidelines/deps.js.map +0 -1
- package/dist/commands/guidelines/index.d.ts +0 -19
- package/dist/commands/guidelines/index.d.ts.map +0 -1
- package/dist/commands/guidelines/index.js +0 -92
- package/dist/commands/guidelines/index.js.map +0 -1
- package/dist/commands/guidelines/index.test.d.ts +0 -8
- package/dist/commands/guidelines/index.test.d.ts.map +0 -1
- package/dist/commands/guidelines/index.test.js +0 -140
- package/dist/commands/guidelines/index.test.js.map +0 -1
- package/dist/commands/handoff/deps.d.ts +0 -9
- package/dist/commands/handoff/deps.d.ts.map +0 -1
- package/dist/commands/handoff/deps.js +0 -5
- package/dist/commands/handoff/deps.js.map +0 -1
- package/dist/commands/handoff/index.d.ts +0 -23
- package/dist/commands/handoff/index.d.ts.map +0 -1
- package/dist/commands/handoff/index.js +0 -226
- package/dist/commands/handoff/index.js.map +0 -1
- package/dist/commands/handoff/index.test.d.ts +0 -9
- package/dist/commands/handoff/index.test.d.ts.map +0 -1
- package/dist/commands/handoff/index.test.js +0 -189
- package/dist/commands/handoff/index.test.js.map +0 -1
- package/dist/commands/init/deps.d.ts +0 -21
- package/dist/commands/init/deps.d.ts.map +0 -1
- package/dist/commands/init/deps.js +0 -8
- package/dist/commands/init/deps.js.map +0 -1
- package/dist/commands/init/index.d.ts +0 -22
- package/dist/commands/init/index.d.ts.map +0 -1
- package/dist/commands/init/index.js +0 -181
- package/dist/commands/init/index.js.map +0 -1
- package/dist/commands/init/index.test.d.ts +0 -8
- package/dist/commands/init/index.test.d.ts.map +0 -1
- package/dist/commands/init/index.test.js +0 -170
- package/dist/commands/init/index.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/command-loop.d.ts +0 -15
- package/dist/commands/machine/daemon-start/command-loop.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/command-loop.js +0 -295
- package/dist/commands/machine/daemon-start/command-loop.js.map +0 -1
- package/dist/commands/machine/daemon-start/command-loop.test.d.ts +0 -13
- package/dist/commands/machine/daemon-start/command-loop.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/command-loop.test.js +0 -156
- package/dist/commands/machine/daemon-start/command-loop.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.d.ts +0 -12
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.js +0 -58
- package/dist/commands/machine/daemon-start/command-sync-heartbeat.js.map +0 -1
- package/dist/commands/machine/daemon-start/deps.d.ts +0 -85
- package/dist/commands/machine/daemon-start/deps.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/deps.js +0 -14
- package/dist/commands/machine/daemon-start/deps.js.map +0 -1
- package/dist/commands/machine/daemon-start/event-bus.test.d.ts +0 -2
- package/dist/commands/machine/daemon-start/event-bus.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/event-bus.test.js +0 -100
- package/dist/commands/machine/daemon-start/event-bus.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/event-listeners.test.d.ts +0 -2
- package/dist/commands/machine/daemon-start/event-listeners.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/event-listeners.test.js +0 -155
- package/dist/commands/machine/daemon-start/event-listeners.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/file-content-fulfillment.d.ts +0 -12
- package/dist/commands/machine/daemon-start/file-content-fulfillment.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/file-content-fulfillment.js +0 -120
- package/dist/commands/machine/daemon-start/file-content-fulfillment.js.map +0 -1
- package/dist/commands/machine/daemon-start/file-content-subscription.d.ts +0 -29
- package/dist/commands/machine/daemon-start/file-content-subscription.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/file-content-subscription.js +0 -55
- package/dist/commands/machine/daemon-start/file-content-subscription.js.map +0 -1
- package/dist/commands/machine/daemon-start/file-tree-subscription.d.ts +0 -22
- package/dist/commands/machine/daemon-start/file-tree-subscription.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/file-tree-subscription.js +0 -83
- package/dist/commands/machine/daemon-start/file-tree-subscription.js.map +0 -1
- package/dist/commands/machine/daemon-start/git-heartbeat.d.ts +0 -18
- package/dist/commands/machine/daemon-start/git-heartbeat.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/git-heartbeat.js +0 -218
- package/dist/commands/machine/daemon-start/git-heartbeat.js.map +0 -1
- package/dist/commands/machine/daemon-start/git-subscription.d.ts +0 -60
- package/dist/commands/machine/daemon-start/git-subscription.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/git-subscription.js +0 -389
- package/dist/commands/machine/daemon-start/git-subscription.js.map +0 -1
- package/dist/commands/machine/daemon-start/git-subscription.test.d.ts +0 -2
- package/dist/commands/machine/daemon-start/git-subscription.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/git-subscription.test.js +0 -103
- package/dist/commands/machine/daemon-start/git-subscription.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/command-runner.d.ts +0 -23
- package/dist/commands/machine/daemon-start/handlers/command-runner.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/command-runner.js +0 -236
- package/dist/commands/machine/daemon-start/handlers/command-runner.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/ping.d.ts +0 -6
- package/dist/commands/machine/daemon-start/handlers/ping.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/ping.js +0 -8
- package/dist/commands/machine/daemon-start/handlers/ping.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/ping.test.d.ts +0 -5
- package/dist/commands/machine/daemon-start/handlers/ping.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/ping.test.js +0 -23
- package/dist/commands/machine/daemon-start/handlers/ping.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/shared.d.ts +0 -11
- package/dist/commands/machine/daemon-start/handlers/shared.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/shared.js +0 -25
- package/dist/commands/machine/daemon-start/handlers/shared.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/state-recovery.d.ts +0 -19
- package/dist/commands/machine/daemon-start/handlers/state-recovery.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/state-recovery.js +0 -61
- package/dist/commands/machine/daemon-start/handlers/state-recovery.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.d.ts +0 -8
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.js +0 -98
- package/dist/commands/machine/daemon-start/handlers/state-recovery.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/status.d.ts +0 -6
- package/dist/commands/machine/daemon-start/handlers/status.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/status.js +0 -13
- package/dist/commands/machine/daemon-start/handlers/status.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/status.test.d.ts +0 -5
- package/dist/commands/machine/daemon-start/handlers/status.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/status.test.js +0 -51
- package/dist/commands/machine/daemon-start/handlers/status.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/stop-agent.d.ts +0 -21
- package/dist/commands/machine/daemon-start/handlers/stop-agent.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/stop-agent.js +0 -36
- package/dist/commands/machine/daemon-start/handlers/stop-agent.js.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.d.ts +0 -7
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.js +0 -135
- package/dist/commands/machine/daemon-start/handlers/stop-agent.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/index.d.ts +0 -16
- package/dist/commands/machine/daemon-start/index.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/index.js +0 -21
- package/dist/commands/machine/daemon-start/index.js.map +0 -1
- package/dist/commands/machine/daemon-start/init.d.ts +0 -23
- package/dist/commands/machine/daemon-start/init.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/init.js +0 -340
- package/dist/commands/machine/daemon-start/init.js.map +0 -1
- package/dist/commands/machine/daemon-start/init.test.d.ts +0 -8
- package/dist/commands/machine/daemon-start/init.test.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/init.test.js +0 -385
- package/dist/commands/machine/daemon-start/init.test.js.map +0 -1
- package/dist/commands/machine/daemon-start/testing/index.d.ts +0 -5
- package/dist/commands/machine/daemon-start/testing/index.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/testing/index.js +0 -5
- package/dist/commands/machine/daemon-start/testing/index.js.map +0 -1
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.d.ts +0 -26
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.js +0 -68
- package/dist/commands/machine/daemon-start/testing/mock-daemon-deps.js.map +0 -1
- package/dist/commands/machine/daemon-start/types.d.ts +0 -89
- package/dist/commands/machine/daemon-start/types.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/types.js +0 -5
- package/dist/commands/machine/daemon-start/types.js.map +0 -1
- package/dist/commands/machine/daemon-start/utils.d.ts +0 -8
- package/dist/commands/machine/daemon-start/utils.d.ts.map +0 -1
- package/dist/commands/machine/daemon-start/utils.js +0 -10
- package/dist/commands/machine/daemon-start/utils.js.map +0 -1
- package/dist/commands/machine/daemon-status.d.ts +0 -10
- package/dist/commands/machine/daemon-status.d.ts.map +0 -1
- package/dist/commands/machine/daemon-status.js +0 -23
- package/dist/commands/machine/daemon-status.js.map +0 -1
- package/dist/commands/machine/daemon-stop.d.ts +0 -10
- package/dist/commands/machine/daemon-stop.d.ts.map +0 -1
- package/dist/commands/machine/daemon-stop.js +0 -44
- package/dist/commands/machine/daemon-stop.js.map +0 -1
- package/dist/commands/machine/index.d.ts +0 -9
- package/dist/commands/machine/index.d.ts.map +0 -1
- package/dist/commands/machine/index.js +0 -9
- package/dist/commands/machine/index.js.map +0 -1
- package/dist/commands/machine/pid.d.ts +0 -48
- package/dist/commands/machine/pid.d.ts.map +0 -1
- package/dist/commands/machine/pid.js +0 -141
- package/dist/commands/machine/pid.js.map +0 -1
- package/dist/commands/messages/deps.d.ts +0 -6
- package/dist/commands/messages/deps.d.ts.map +0 -1
- package/dist/commands/messages/deps.js +0 -2
- package/dist/commands/messages/deps.js.map +0 -1
- package/dist/commands/messages/index.d.ts +0 -28
- package/dist/commands/messages/index.d.ts.map +0 -1
- package/dist/commands/messages/index.js +0 -166
- package/dist/commands/messages/index.js.map +0 -1
- package/dist/commands/messages/index.test.d.ts +0 -8
- package/dist/commands/messages/index.test.d.ts.map +0 -1
- package/dist/commands/messages/index.test.js +0 -159
- package/dist/commands/messages/index.test.js.map +0 -1
- package/dist/commands/opencode-install/deps.d.ts +0 -32
- package/dist/commands/opencode-install/deps.d.ts.map +0 -1
- package/dist/commands/opencode-install/deps.js +0 -8
- package/dist/commands/opencode-install/deps.js.map +0 -1
- package/dist/commands/opencode-install/index.d.ts +0 -31
- package/dist/commands/opencode-install/index.d.ts.map +0 -1
- package/dist/commands/opencode-install/index.js +0 -440
- package/dist/commands/opencode-install/index.js.map +0 -1
- package/dist/commands/opencode-install/index.test.d.ts +0 -8
- package/dist/commands/opencode-install/index.test.d.ts.map +0 -1
- package/dist/commands/opencode-install/index.test.js +0 -123
- package/dist/commands/opencode-install/index.test.js.map +0 -1
- package/dist/commands/register-agent/deps.d.ts +0 -12
- package/dist/commands/register-agent/deps.d.ts.map +0 -1
- package/dist/commands/register-agent/deps.js +0 -8
- package/dist/commands/register-agent/deps.js.map +0 -1
- package/dist/commands/register-agent/index.d.ts +0 -15
- package/dist/commands/register-agent/index.d.ts.map +0 -1
- package/dist/commands/register-agent/index.js +0 -118
- package/dist/commands/register-agent/index.js.map +0 -1
- package/dist/commands/register-agent/index.test.d.ts +0 -9
- package/dist/commands/register-agent/index.test.d.ts.map +0 -1
- package/dist/commands/register-agent/index.test.js +0 -204
- package/dist/commands/register-agent/index.test.js.map +0 -1
- package/dist/commands/report-progress/deps.d.ts +0 -9
- package/dist/commands/report-progress/deps.d.ts.map +0 -1
- package/dist/commands/report-progress/deps.js +0 -5
- package/dist/commands/report-progress/deps.js.map +0 -1
- package/dist/commands/report-progress/index.d.ts +0 -14
- package/dist/commands/report-progress/index.d.ts.map +0 -1
- package/dist/commands/report-progress/index.js +0 -110
- package/dist/commands/report-progress/index.js.map +0 -1
- package/dist/commands/report-progress/index.test.d.ts +0 -8
- package/dist/commands/report-progress/index.test.d.ts.map +0 -1
- package/dist/commands/report-progress/index.test.js +0 -114
- package/dist/commands/report-progress/index.test.js.map +0 -1
- package/dist/commands/skill/deps.d.ts +0 -9
- package/dist/commands/skill/deps.d.ts.map +0 -1
- package/dist/commands/skill/deps.js +0 -5
- package/dist/commands/skill/deps.js.map +0 -1
- package/dist/commands/skill/index.d.ts +0 -20
- package/dist/commands/skill/index.d.ts.map +0 -1
- package/dist/commands/skill/index.js +0 -89
- package/dist/commands/skill/index.js.map +0 -1
- package/dist/commands/skill/index.test.d.ts +0 -8
- package/dist/commands/skill/index.test.d.ts.map +0 -1
- package/dist/commands/skill/index.test.js +0 -166
- package/dist/commands/skill/index.test.js.map +0 -1
- package/dist/commands/task/read/deps.d.ts +0 -18
- package/dist/commands/task/read/deps.d.ts.map +0 -1
- package/dist/commands/task/read/deps.js +0 -8
- package/dist/commands/task/read/deps.js.map +0 -1
- package/dist/commands/task/read/index.d.ts +0 -17
- package/dist/commands/task/read/index.d.ts.map +0 -1
- package/dist/commands/task/read/index.js +0 -144
- package/dist/commands/task/read/index.js.map +0 -1
- package/dist/commands/telegram/deps.d.ts +0 -13
- package/dist/commands/telegram/deps.d.ts.map +0 -1
- package/dist/commands/telegram/deps.js +0 -5
- package/dist/commands/telegram/deps.js.map +0 -1
- package/dist/commands/telegram/index.d.ts +0 -18
- package/dist/commands/telegram/index.d.ts.map +0 -1
- package/dist/commands/telegram/index.js +0 -94
- package/dist/commands/telegram/index.js.map +0 -1
- package/dist/commands/update/deps.d.ts +0 -21
- package/dist/commands/update/deps.d.ts.map +0 -1
- package/dist/commands/update/deps.js +0 -8
- package/dist/commands/update/deps.js.map +0 -1
- package/dist/commands/update/index.d.ts +0 -8
- package/dist/commands/update/index.d.ts.map +0 -1
- package/dist/commands/update/index.js +0 -70
- package/dist/commands/update/index.js.map +0 -1
- package/dist/commands/update/index.test.d.ts +0 -8
- package/dist/commands/update/index.test.d.ts.map +0 -1
- package/dist/commands/update/index.test.js +0 -108
- package/dist/commands/update/index.test.js.map +0 -1
- package/dist/commands/workflow/deps.d.ts +0 -9
- package/dist/commands/workflow/deps.d.ts.map +0 -1
- package/dist/commands/workflow/deps.js +0 -5
- package/dist/commands/workflow/deps.js.map +0 -1
- package/dist/commands/workflow/index.d.ts +0 -73
- package/dist/commands/workflow/index.d.ts.map +0 -1
- package/dist/commands/workflow/index.js +0 -545
- package/dist/commands/workflow/index.js.map +0 -1
- package/dist/commands/workflow/index.test.d.ts +0 -7
- package/dist/commands/workflow/index.test.d.ts.map +0 -1
- package/dist/commands/workflow/index.test.js +0 -315
- package/dist/commands/workflow/index.test.js.map +0 -1
- package/dist/config/defaults.d.ts +0 -10
- package/dist/config/defaults.d.ts.map +0 -1
- package/dist/config/defaults.js +0 -79
- package/dist/config/defaults.js.map +0 -1
- package/dist/config/loader.d.ts +0 -52
- package/dist/config/loader.d.ts.map +0 -1
- package/dist/config/loader.js +0 -202
- package/dist/config/loader.js.map +0 -1
- package/dist/config/schema.d.ts +0 -50
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -99
- package/dist/config/schema.js.map +0 -1
- package/dist/config.d.ts +0 -14
- package/dist/config.d.ts.map +0 -1
- package/dist/config.js +0 -14
- package/dist/config.js.map +0 -1
- package/dist/events/daemon/agent/on-agent-exited.d.ts +0 -26
- package/dist/events/daemon/agent/on-agent-exited.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-agent-exited.js +0 -20
- package/dist/events/daemon/agent/on-agent-exited.js.map +0 -1
- package/dist/events/daemon/agent/on-agent-started.d.ts +0 -16
- package/dist/events/daemon/agent/on-agent-started.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-agent-started.js +0 -11
- package/dist/events/daemon/agent/on-agent-started.js.map +0 -1
- package/dist/events/daemon/agent/on-agent-stopped.d.ts +0 -14
- package/dist/events/daemon/agent/on-agent-stopped.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-agent-stopped.js +0 -11
- package/dist/events/daemon/agent/on-agent-stopped.js.map +0 -1
- package/dist/events/daemon/agent/on-request-start-agent.d.ts +0 -19
- package/dist/events/daemon/agent/on-request-start-agent.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-request-start-agent.js +0 -55
- package/dist/events/daemon/agent/on-request-start-agent.js.map +0 -1
- package/dist/events/daemon/agent/on-request-start-agent.test.d.ts +0 -2
- package/dist/events/daemon/agent/on-request-start-agent.test.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-request-start-agent.test.js +0 -96
- package/dist/events/daemon/agent/on-request-start-agent.test.js.map +0 -1
- package/dist/events/daemon/agent/on-request-stop-agent.d.ts +0 -16
- package/dist/events/daemon/agent/on-request-stop-agent.d.ts.map +0 -1
- package/dist/events/daemon/agent/on-request-stop-agent.js +0 -19
- package/dist/events/daemon/agent/on-request-stop-agent.js.map +0 -1
- package/dist/events/daemon/event-bus.d.ts +0 -87
- package/dist/events/daemon/event-bus.d.ts.map +0 -1
- package/dist/events/daemon/event-bus.js +0 -50
- package/dist/events/daemon/event-bus.js.map +0 -1
- package/dist/events/daemon/register-listeners.d.ts +0 -9
- package/dist/events/daemon/register-listeners.d.ts.map +0 -1
- package/dist/events/daemon/register-listeners.js +0 -21
- package/dist/events/daemon/register-listeners.js.map +0 -1
- package/dist/events/lifecycle/on-daemon-shutdown.d.ts +0 -9
- package/dist/events/lifecycle/on-daemon-shutdown.d.ts.map +0 -1
- package/dist/events/lifecycle/on-daemon-shutdown.js +0 -43
- package/dist/events/lifecycle/on-daemon-shutdown.js.map +0 -1
- package/dist/index.d.ts +0 -9
- package/dist/index.d.ts.map +0 -1
- package/dist/infrastructure/auth/middleware.d.ts +0 -21
- package/dist/infrastructure/auth/middleware.d.ts.map +0 -1
- package/dist/infrastructure/auth/middleware.js +0 -106
- package/dist/infrastructure/auth/middleware.js.map +0 -1
- package/dist/infrastructure/auth/storage.d.ts +0 -59
- package/dist/infrastructure/auth/storage.d.ts.map +0 -1
- package/dist/infrastructure/auth/storage.js +0 -242
- package/dist/infrastructure/auth/storage.js.map +0 -1
- package/dist/infrastructure/convex/client.d.ts +0 -28
- package/dist/infrastructure/convex/client.d.ts.map +0 -1
- package/dist/infrastructure/convex/client.js +0 -77
- package/dist/infrastructure/convex/client.js.map +0 -1
- package/dist/infrastructure/deps/backend.d.ts +0 -13
- package/dist/infrastructure/deps/backend.d.ts.map +0 -1
- package/dist/infrastructure/deps/backend.js +0 -8
- package/dist/infrastructure/deps/backend.js.map +0 -1
- package/dist/infrastructure/deps/clock.d.ts +0 -13
- package/dist/infrastructure/deps/clock.d.ts.map +0 -1
- package/dist/infrastructure/deps/clock.js +0 -8
- package/dist/infrastructure/deps/clock.js.map +0 -1
- package/dist/infrastructure/deps/fs.d.ts +0 -12
- package/dist/infrastructure/deps/fs.d.ts.map +0 -1
- package/dist/infrastructure/deps/fs.js +0 -8
- package/dist/infrastructure/deps/fs.js.map +0 -1
- package/dist/infrastructure/deps/index.d.ts +0 -12
- package/dist/infrastructure/deps/index.d.ts.map +0 -1
- package/dist/infrastructure/deps/index.js +0 -8
- package/dist/infrastructure/deps/index.js.map +0 -1
- package/dist/infrastructure/deps/process.d.ts +0 -11
- package/dist/infrastructure/deps/process.d.ts.map +0 -1
- package/dist/infrastructure/deps/process.js +0 -8
- package/dist/infrastructure/deps/process.js.map +0 -1
- package/dist/infrastructure/deps/session.d.ts +0 -16
- package/dist/infrastructure/deps/session.d.ts.map +0 -1
- package/dist/infrastructure/deps/session.js +0 -8
- package/dist/infrastructure/deps/session.js.map +0 -1
- package/dist/infrastructure/git/git-reader.d.ts +0 -206
- package/dist/infrastructure/git/git-reader.d.ts.map +0 -1
- package/dist/infrastructure/git/git-reader.js +0 -711
- package/dist/infrastructure/git/git-reader.js.map +0 -1
- package/dist/infrastructure/git/git-reader.test.d.ts +0 -8
- package/dist/infrastructure/git/git-reader.test.d.ts.map +0 -1
- package/dist/infrastructure/git/git-reader.test.js +0 -598
- package/dist/infrastructure/git/git-reader.test.js.map +0 -1
- package/dist/infrastructure/git/git-writer.d.ts +0 -48
- package/dist/infrastructure/git/git-writer.d.ts.map +0 -1
- package/dist/infrastructure/git/git-writer.js +0 -127
- package/dist/infrastructure/git/git-writer.js.map +0 -1
- package/dist/infrastructure/git/index.d.ts +0 -10
- package/dist/infrastructure/git/index.d.ts.map +0 -1
- package/dist/infrastructure/git/index.js +0 -9
- package/dist/infrastructure/git/index.js.map +0 -1
- package/dist/infrastructure/git/types.d.ts +0 -127
- package/dist/infrastructure/git/types.d.ts.map +0 -1
- package/dist/infrastructure/git/types.js +0 -20
- package/dist/infrastructure/git/types.js.map +0 -1
- package/dist/infrastructure/history/storage.d.ts +0 -21
- package/dist/infrastructure/history/storage.d.ts.map +0 -1
- package/dist/infrastructure/history/storage.js +0 -56
- package/dist/infrastructure/history/storage.js.map +0 -1
- package/dist/infrastructure/lifecycle-heartbeat.d.ts +0 -18
- package/dist/infrastructure/lifecycle-heartbeat.d.ts.map +0 -1
- package/dist/infrastructure/lifecycle-heartbeat.js +0 -21
- package/dist/infrastructure/lifecycle-heartbeat.js.map +0 -1
- package/dist/infrastructure/local-actions/execute-local-action.d.ts +0 -33
- package/dist/infrastructure/local-actions/execute-local-action.d.ts.map +0 -1
- package/dist/infrastructure/local-actions/execute-local-action.js +0 -109
- package/dist/infrastructure/local-actions/execute-local-action.js.map +0 -1
- package/dist/infrastructure/local-actions/index.d.ts +0 -9
- package/dist/infrastructure/local-actions/index.d.ts.map +0 -1
- package/dist/infrastructure/local-actions/index.js +0 -8
- package/dist/infrastructure/local-actions/index.js.map +0 -1
- package/dist/infrastructure/local-api/cors.d.ts +0 -19
- package/dist/infrastructure/local-api/cors.d.ts.map +0 -1
- package/dist/infrastructure/local-api/cors.js +0 -50
- package/dist/infrastructure/local-api/cors.js.map +0 -1
- package/dist/infrastructure/local-api/identity.test.d.ts +0 -8
- package/dist/infrastructure/local-api/identity.test.d.ts.map +0 -1
- package/dist/infrastructure/local-api/identity.test.js +0 -71
- package/dist/infrastructure/local-api/identity.test.js.map +0 -1
- package/dist/infrastructure/local-api/index.d.ts +0 -10
- package/dist/infrastructure/local-api/index.d.ts.map +0 -1
- package/dist/infrastructure/local-api/index.js +0 -8
- package/dist/infrastructure/local-api/index.js.map +0 -1
- package/dist/infrastructure/local-api/open-finder.test.d.ts +0 -13
- package/dist/infrastructure/local-api/open-finder.test.d.ts.map +0 -1
- package/dist/infrastructure/local-api/open-finder.test.js +0 -112
- package/dist/infrastructure/local-api/open-finder.test.js.map +0 -1
- package/dist/infrastructure/local-api/open-github-desktop.test.d.ts +0 -12
- package/dist/infrastructure/local-api/open-github-desktop.test.d.ts.map +0 -1
- package/dist/infrastructure/local-api/open-github-desktop.test.js +0 -129
- package/dist/infrastructure/local-api/open-github-desktop.test.js.map +0 -1
- package/dist/infrastructure/local-api/open-vscode.test.d.ts +0 -12
- package/dist/infrastructure/local-api/open-vscode.test.d.ts.map +0 -1
- package/dist/infrastructure/local-api/open-vscode.test.js +0 -130
- package/dist/infrastructure/local-api/open-vscode.test.js.map +0 -1
- package/dist/infrastructure/local-api/router.d.ts +0 -28
- package/dist/infrastructure/local-api/router.d.ts.map +0 -1
- package/dist/infrastructure/local-api/router.js +0 -60
- package/dist/infrastructure/local-api/router.js.map +0 -1
- package/dist/infrastructure/local-api/router.test.d.ts +0 -8
- package/dist/infrastructure/local-api/router.test.d.ts.map +0 -1
- package/dist/infrastructure/local-api/router.test.js +0 -142
- package/dist/infrastructure/local-api/router.test.js.map +0 -1
- package/dist/infrastructure/local-api/routes/identity.d.ts +0 -28
- package/dist/infrastructure/local-api/routes/identity.d.ts.map +0 -1
- package/dist/infrastructure/local-api/routes/identity.js +0 -42
- package/dist/infrastructure/local-api/routes/identity.js.map +0 -1
- package/dist/infrastructure/local-api/routes/open-finder.d.ts +0 -25
- package/dist/infrastructure/local-api/routes/open-finder.d.ts.map +0 -1
- package/dist/infrastructure/local-api/routes/open-finder.js +0 -58
- package/dist/infrastructure/local-api/routes/open-finder.js.map +0 -1
- package/dist/infrastructure/local-api/routes/open-github-desktop.d.ts +0 -21
- package/dist/infrastructure/local-api/routes/open-github-desktop.d.ts.map +0 -1
- package/dist/infrastructure/local-api/routes/open-github-desktop.js +0 -43
- package/dist/infrastructure/local-api/routes/open-github-desktop.js.map +0 -1
- package/dist/infrastructure/local-api/routes/open-vscode.d.ts +0 -23
- package/dist/infrastructure/local-api/routes/open-vscode.d.ts.map +0 -1
- package/dist/infrastructure/local-api/routes/open-vscode.js +0 -51
- package/dist/infrastructure/local-api/routes/open-vscode.js.map +0 -1
- package/dist/infrastructure/local-api/routes/shared-utils.d.ts +0 -51
- package/dist/infrastructure/local-api/routes/shared-utils.d.ts.map +0 -1
- package/dist/infrastructure/local-api/routes/shared-utils.js +0 -96
- package/dist/infrastructure/local-api/routes/shared-utils.js.map +0 -1
- package/dist/infrastructure/local-api/server.d.ts +0 -40
- package/dist/infrastructure/local-api/server.d.ts.map +0 -1
- package/dist/infrastructure/local-api/server.js +0 -153
- package/dist/infrastructure/local-api/server.js.map +0 -1
- package/dist/infrastructure/local-api/types.d.ts +0 -48
- package/dist/infrastructure/local-api/types.d.ts.map +0 -1
- package/dist/infrastructure/local-api/types.js +0 -8
- package/dist/infrastructure/local-api/types.js.map +0 -1
- package/dist/infrastructure/machine/crash-loop-tracker.d.ts +0 -69
- package/dist/infrastructure/machine/crash-loop-tracker.d.ts.map +0 -1
- package/dist/infrastructure/machine/crash-loop-tracker.js +0 -116
- package/dist/infrastructure/machine/crash-loop-tracker.js.map +0 -1
- package/dist/infrastructure/machine/crash-loop-tracker.test.d.ts +0 -8
- package/dist/infrastructure/machine/crash-loop-tracker.test.d.ts.map +0 -1
- package/dist/infrastructure/machine/crash-loop-tracker.test.js +0 -210
- package/dist/infrastructure/machine/crash-loop-tracker.test.js.map +0 -1
- package/dist/infrastructure/machine/daemon-state.d.ts +0 -96
- package/dist/infrastructure/machine/daemon-state.d.ts.map +0 -1
- package/dist/infrastructure/machine/daemon-state.js +0 -183
- package/dist/infrastructure/machine/daemon-state.js.map +0 -1
- package/dist/infrastructure/machine/daemon-state.test.d.ts +0 -10
- package/dist/infrastructure/machine/daemon-state.test.d.ts.map +0 -1
- package/dist/infrastructure/machine/daemon-state.test.js +0 -128
- package/dist/infrastructure/machine/daemon-state.test.js.map +0 -1
- package/dist/infrastructure/machine/detection.d.ts +0 -27
- package/dist/infrastructure/machine/detection.d.ts.map +0 -1
- package/dist/infrastructure/machine/detection.js +0 -47
- package/dist/infrastructure/machine/detection.js.map +0 -1
- package/dist/infrastructure/machine/index.d.ts +0 -10
- package/dist/infrastructure/machine/index.d.ts.map +0 -1
- package/dist/infrastructure/machine/index.js +0 -11
- package/dist/infrastructure/machine/index.js.map +0 -1
- package/dist/infrastructure/machine/stop-reason.d.ts +0 -26
- package/dist/infrastructure/machine/stop-reason.d.ts.map +0 -1
- package/dist/infrastructure/machine/stop-reason.js +0 -22
- package/dist/infrastructure/machine/stop-reason.js.map +0 -1
- package/dist/infrastructure/machine/stop-reason.test.d.ts +0 -2
- package/dist/infrastructure/machine/stop-reason.test.d.ts.map +0 -1
- package/dist/infrastructure/machine/stop-reason.test.js +0 -32
- package/dist/infrastructure/machine/stop-reason.test.js.map +0 -1
- package/dist/infrastructure/machine/storage.d.ts +0 -42
- package/dist/infrastructure/machine/storage.d.ts.map +0 -1
- package/dist/infrastructure/machine/storage.js +0 -156
- package/dist/infrastructure/machine/storage.js.map +0 -1
- package/dist/infrastructure/machine/types.d.ts +0 -58
- package/dist/infrastructure/machine/types.d.ts.map +0 -1
- package/dist/infrastructure/machine/types.js +0 -11
- package/dist/infrastructure/machine/types.js.map +0 -1
- package/dist/infrastructure/retry-queue.d.ts +0 -17
- package/dist/infrastructure/retry-queue.d.ts.map +0 -1
- package/dist/infrastructure/retry-queue.js +0 -33
- package/dist/infrastructure/retry-queue.js.map +0 -1
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.d.ts +0 -142
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.d.ts.map +0 -1
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.js +0 -567
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.js.map +0 -1
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.d.ts +0 -2
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.d.ts.map +0 -1
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.js +0 -692
- package/dist/infrastructure/services/agent-process-manager/agent-process-manager.test.js.map +0 -1
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.d.ts +0 -47
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.d.ts.map +0 -1
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.js +0 -68
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.js.map +0 -1
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.d.ts +0 -2
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.d.ts.map +0 -1
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.js +0 -149
- package/dist/infrastructure/services/harness-spawning/harness-spawning-service.test.js.map +0 -1
- package/dist/infrastructure/services/harness-spawning/index.d.ts +0 -5
- package/dist/infrastructure/services/harness-spawning/index.d.ts.map +0 -1
- package/dist/infrastructure/services/harness-spawning/index.js +0 -3
- package/dist/infrastructure/services/harness-spawning/index.js.map +0 -1
- package/dist/infrastructure/services/harness-spawning/rate-limiter.d.ts +0 -45
- package/dist/infrastructure/services/harness-spawning/rate-limiter.d.ts.map +0 -1
- package/dist/infrastructure/services/harness-spawning/rate-limiter.js +0 -84
- package/dist/infrastructure/services/harness-spawning/rate-limiter.js.map +0 -1
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.d.ts +0 -2
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.d.ts.map +0 -1
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.js +0 -179
- package/dist/infrastructure/services/harness-spawning/rate-limiter.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.d.ts +0 -77
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.js +0 -149
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.js +0 -273
- package/dist/infrastructure/services/remote-agents/base-cli-agent-service.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.d.ts +0 -30
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.js +0 -186
- package/dist/infrastructure/services/remote-agents/claude/claude-code-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.d.ts +0 -42
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.js +0 -92
- package/dist/infrastructure/services/remote-agents/claude/claude-stream-reader.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/index.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/claude/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/claude/index.js +0 -2
- package/dist/infrastructure/services/remote-agents/claude/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.d.ts +0 -44
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.js +0 -160
- package/dist/infrastructure/services/remote-agents/copilot/copilot-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.d.ts +0 -59
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.js +0 -100
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.js +0 -105
- package/dist/infrastructure/services/remote-agents/copilot/copilot-stream-reader.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/index.d.ts +0 -3
- package/dist/infrastructure/services/remote-agents/copilot/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/copilot/index.js +0 -3
- package/dist/infrastructure/services/remote-agents/copilot/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.d.ts +0 -29
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.js +0 -219
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.js +0 -223
- package/dist/infrastructure/services/remote-agents/cursor/cursor-agent-service.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.d.ts +0 -41
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.js +0 -95
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.js +0 -334
- package/dist/infrastructure/services/remote-agents/cursor/cursor-stream-reader.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/index.d.ts +0 -3
- package/dist/infrastructure/services/remote-agents/cursor/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/cursor/index.js +0 -2
- package/dist/infrastructure/services/remote-agents/cursor/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/index.d.ts +0 -8
- package/dist/infrastructure/services/remote-agents/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/index.js +0 -7
- package/dist/infrastructure/services/remote-agents/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/init-registry.d.ts +0 -3
- package/dist/infrastructure/services/remote-agents/init-registry.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/init-registry.js +0 -19
- package/dist/infrastructure/services/remote-agents/init-registry.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/index.d.ts +0 -4
- package/dist/infrastructure/services/remote-agents/opencode/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/index.js +0 -3
- package/dist/infrastructure/services/remote-agents/opencode/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.d.ts +0 -32
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.js +0 -225
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.js +0 -226
- package/dist/infrastructure/services/remote-agents/opencode/opencode-agent-service.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.d.ts +0 -46
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.js +0 -104
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.js +0 -268
- package/dist/infrastructure/services/remote-agents/opencode/opencode-json-reader.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/index.d.ts +0 -3
- package/dist/infrastructure/services/remote-agents/pi/index.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/index.js +0 -2
- package/dist/infrastructure/services/remote-agents/pi/index.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.d.ts +0 -35
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.js +0 -253
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.js +0 -348
- package/dist/infrastructure/services/remote-agents/pi/pi-agent-service.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.d.ts +0 -50
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.js +0 -120
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.d.ts +0 -2
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.js +0 -288
- package/dist/infrastructure/services/remote-agents/pi/pi-rpc-reader.test.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/registry.d.ts +0 -8
- package/dist/infrastructure/services/remote-agents/registry.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/registry.js +0 -14
- package/dist/infrastructure/services/remote-agents/registry.js.map +0 -1
- package/dist/infrastructure/services/remote-agents/remote-agent-service.d.ts +0 -79
- package/dist/infrastructure/services/remote-agents/remote-agent-service.d.ts.map +0 -1
- package/dist/infrastructure/services/remote-agents/remote-agent-service.js +0 -9
- package/dist/infrastructure/services/remote-agents/remote-agent-service.js.map +0 -1
- package/dist/infrastructure/services/workspace/command-discovery.d.ts +0 -65
- package/dist/infrastructure/services/workspace/command-discovery.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/command-discovery.js +0 -193
- package/dist/infrastructure/services/workspace/command-discovery.js.map +0 -1
- package/dist/infrastructure/services/workspace/command-discovery.test.d.ts +0 -7
- package/dist/infrastructure/services/workspace/command-discovery.test.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/command-discovery.test.js +0 -182
- package/dist/infrastructure/services/workspace/command-discovery.test.js.map +0 -1
- package/dist/infrastructure/services/workspace/file-tree-scanner.d.ts +0 -47
- package/dist/infrastructure/services/workspace/file-tree-scanner.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/file-tree-scanner.js +0 -159
- package/dist/infrastructure/services/workspace/file-tree-scanner.js.map +0 -1
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.d.ts +0 -2
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.js +0 -132
- package/dist/infrastructure/services/workspace/file-tree-scanner.test.js.map +0 -1
- package/dist/infrastructure/services/workspace/workspace-resolver.d.ts +0 -34
- package/dist/infrastructure/services/workspace/workspace-resolver.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/workspace-resolver.js +0 -187
- package/dist/infrastructure/services/workspace/workspace-resolver.js.map +0 -1
- package/dist/infrastructure/services/workspace/workspace-resolver.test.d.ts +0 -5
- package/dist/infrastructure/services/workspace/workspace-resolver.test.d.ts.map +0 -1
- package/dist/infrastructure/services/workspace/workspace-resolver.test.js +0 -152
- package/dist/infrastructure/services/workspace/workspace-resolver.test.js.map +0 -1
- package/dist/tools/index.d.ts +0 -7
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -5
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/output.d.ts +0 -50
- package/dist/tools/output.d.ts.map +0 -1
- package/dist/tools/output.js +0 -78
- package/dist/tools/output.js.map +0 -1
- package/dist/tools/output.test.d.ts +0 -8
- package/dist/tools/output.test.d.ts.map +0 -1
- package/dist/tools/output.test.js +0 -120
- package/dist/tools/output.test.js.map +0 -1
- package/dist/tools/parse-pdf/deps.d.ts +0 -42
- package/dist/tools/parse-pdf/deps.d.ts.map +0 -1
- package/dist/tools/parse-pdf/deps.js +0 -8
- package/dist/tools/parse-pdf/deps.js.map +0 -1
- package/dist/tools/parse-pdf/index.d.ts +0 -18
- package/dist/tools/parse-pdf/index.d.ts.map +0 -1
- package/dist/tools/parse-pdf/index.js +0 -160
- package/dist/tools/parse-pdf/index.js.map +0 -1
- package/dist/tools/parse-pdf/index.test.d.ts +0 -8
- package/dist/tools/parse-pdf/index.test.d.ts.map +0 -1
- package/dist/tools/parse-pdf/index.test.js +0 -183
- package/dist/tools/parse-pdf/index.test.js.map +0 -1
- package/dist/tools/types.d.ts +0 -12
- package/dist/tools/types.d.ts.map +0 -1
- package/dist/tools/types.js +0 -5
- package/dist/tools/types.js.map +0 -1
- package/dist/utils/convex-error.d.ts +0 -19
- package/dist/utils/convex-error.d.ts.map +0 -1
- package/dist/utils/convex-error.js +0 -38
- package/dist/utils/convex-error.js.map +0 -1
- package/dist/utils/convex-error.test.d.ts +0 -7
- package/dist/utils/convex-error.test.d.ts.map +0 -1
- package/dist/utils/convex-error.test.js +0 -71
- package/dist/utils/convex-error.test.js.map +0 -1
- package/dist/utils/error-formatting.d.ts +0 -33
- package/dist/utils/error-formatting.d.ts.map +0 -1
- package/dist/utils/error-formatting.js +0 -96
- package/dist/utils/error-formatting.js.map +0 -1
- package/dist/utils/file-content.d.ts +0 -24
- package/dist/utils/file-content.d.ts.map +0 -1
- package/dist/utils/file-content.js +0 -35
- package/dist/utils/file-content.js.map +0 -1
- package/dist/utils/serialization/decode/index.d.ts +0 -71
- package/dist/utils/serialization/decode/index.d.ts.map +0 -1
- package/dist/utils/serialization/decode/index.js +0 -167
- package/dist/utils/serialization/decode/index.js.map +0 -1
- package/dist/utils/serialization/decode/index.test.d.ts +0 -5
- package/dist/utils/serialization/decode/index.test.d.ts.map +0 -1
- package/dist/utils/serialization/decode/index.test.js +0 -226
- package/dist/utils/serialization/decode/index.test.js.map +0 -1
- package/dist/utils/stdin.d.ts +0 -6
- package/dist/utils/stdin.d.ts.map +0 -1
- package/dist/utils/stdin.js +0 -19
- package/dist/utils/stdin.js.map +0 -1
- package/dist/utils/terminal-safety.d.ts +0 -7
- package/dist/utils/terminal-safety.d.ts.map +0 -1
- package/dist/utils/terminal-safety.js +0 -17
- package/dist/utils/terminal-safety.js.map +0 -1
- package/dist/version.d.ts +0 -14
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -43
- package/dist/version.js.map +0 -1
|
@@ -1,92 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Guidelines CLI Commands
|
|
3
|
-
*
|
|
4
|
-
* Commands for viewing review guidelines by type.
|
|
5
|
-
*/
|
|
6
|
-
import { api } from '../../api.js';
|
|
7
|
-
import { getSessionId, getOtherSessionUrls } from '../../infrastructure/auth/storage.js';
|
|
8
|
-
import { getConvexClient, getConvexUrl } from '../../infrastructure/convex/client.js';
|
|
9
|
-
const VALID_TYPES = ['coding', 'security', 'design', 'performance', 'all'];
|
|
10
|
-
// āāā Default Deps Factory āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
11
|
-
async function createDefaultDeps() {
|
|
12
|
-
const client = await getConvexClient();
|
|
13
|
-
return {
|
|
14
|
-
backend: {
|
|
15
|
-
mutation: (endpoint, args) => client.mutation(endpoint, args),
|
|
16
|
-
query: (endpoint, args) => client.query(endpoint, args),
|
|
17
|
-
},
|
|
18
|
-
session: {
|
|
19
|
-
getSessionId,
|
|
20
|
-
getConvexUrl,
|
|
21
|
-
getOtherSessionUrls,
|
|
22
|
-
},
|
|
23
|
-
};
|
|
24
|
-
}
|
|
25
|
-
// āāā Entry Points āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
26
|
-
/**
|
|
27
|
-
* View guidelines by type
|
|
28
|
-
*/
|
|
29
|
-
export async function viewGuidelines(options, deps) {
|
|
30
|
-
const d = deps ?? (await createDefaultDeps());
|
|
31
|
-
const { type } = options;
|
|
32
|
-
// Validate type
|
|
33
|
-
if (!VALID_TYPES.includes(type)) {
|
|
34
|
-
console.error(`ā Invalid guideline type: "${type}"`);
|
|
35
|
-
console.error(` Valid types: ${VALID_TYPES.join(', ')}`);
|
|
36
|
-
process.exit(1);
|
|
37
|
-
return;
|
|
38
|
-
}
|
|
39
|
-
// Get session ID for authentication
|
|
40
|
-
const sessionId = d.session.getSessionId();
|
|
41
|
-
if (!sessionId) {
|
|
42
|
-
console.error(`ā Not authenticated. Please run: chatroom auth login`);
|
|
43
|
-
process.exit(1);
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
try {
|
|
47
|
-
const result = await d.backend.query(api.guidelines.getGuidelines, {
|
|
48
|
-
type: type,
|
|
49
|
-
});
|
|
50
|
-
console.log(`\n${'ā'.repeat(60)}`);
|
|
51
|
-
console.log(`š ${result.title}`);
|
|
52
|
-
console.log(`${'ā'.repeat(60)}\n`);
|
|
53
|
-
console.log(result.content);
|
|
54
|
-
console.log(`\n${'ā'.repeat(60)}\n`);
|
|
55
|
-
}
|
|
56
|
-
catch (error) {
|
|
57
|
-
const err = error;
|
|
58
|
-
console.error(`ā Error fetching guidelines: ${err.message}`);
|
|
59
|
-
process.exit(1);
|
|
60
|
-
return;
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* List available guideline types
|
|
65
|
-
*/
|
|
66
|
-
export async function listGuidelineTypes(deps) {
|
|
67
|
-
const d = deps ?? (await createDefaultDeps());
|
|
68
|
-
// Get session ID for authentication
|
|
69
|
-
const sessionId = d.session.getSessionId();
|
|
70
|
-
if (!sessionId) {
|
|
71
|
-
console.error(`ā Not authenticated. Please run: chatroom auth login`);
|
|
72
|
-
process.exit(1);
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
try {
|
|
76
|
-
const types = await d.backend.query(api.guidelines.listGuidelineTypes, {});
|
|
77
|
-
console.log(`\nš Available Guideline Types\n`);
|
|
78
|
-
console.log(`${'ā'.repeat(50)}`);
|
|
79
|
-
for (const t of types) {
|
|
80
|
-
console.log(` ${t.type.padEnd(12)} - ${t.description}`);
|
|
81
|
-
}
|
|
82
|
-
console.log(`${'ā'.repeat(50)}`);
|
|
83
|
-
console.log(`\nUsage: chatroom guidelines view --type=<type>\n`);
|
|
84
|
-
}
|
|
85
|
-
catch (error) {
|
|
86
|
-
const err = error;
|
|
87
|
-
console.error(`ā Error fetching guideline types: ${err.message}`);
|
|
88
|
-
process.exit(1);
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/guidelines/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAGH,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AAStF,MAAM,WAAW,GAAG,CAAC,QAAQ,EAAE,UAAU,EAAE,QAAQ,EAAE,aAAa,EAAE,KAAK,CAAC,CAAC;AAE3E,8EAA8E;AAE9E,KAAK,UAAU,iBAAiB;IAC9B,MAAM,MAAM,GAAG,MAAM,eAAe,EAAE,CAAC;IACvC,OAAO;QACL,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;YAC7D,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC;SACxD;QACD,OAAO,EAAE;YACP,YAAY;YACZ,YAAY;YACZ,mBAAmB;SACpB;KACF,CAAC;AACJ,CAAC;AAED,8EAA8E;AAE9E;;GAEG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,OAA8B,EAC9B,IAAqB;IAErB,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,iBAAiB,EAAE,CAAC,CAAC;IAC9C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AAO,CAAC,KAAK,CAAC,qCAAqC,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;QAClE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAChB,OAAO;IACT,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/commands/guidelines/index.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* guidelines Unit Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests the guidelines commands using injected dependencies.
|
|
5
|
-
* Covers: auth test (exits 1), success test, error test.
|
|
6
|
-
*/
|
|
7
|
-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
8
|
-
import { viewGuidelines, listGuidelineTypes } from './index.js';
|
|
9
|
-
// ---------------------------------------------------------------------------
|
|
10
|
-
// Helpers
|
|
11
|
-
// ---------------------------------------------------------------------------
|
|
12
|
-
const TEST_SESSION_ID = 'test-session-id';
|
|
13
|
-
function createMockDeps(overrides) {
|
|
14
|
-
return {
|
|
15
|
-
backend: {
|
|
16
|
-
mutation: vi.fn(),
|
|
17
|
-
query: vi.fn().mockResolvedValue({
|
|
18
|
-
title: 'Coding Guidelines',
|
|
19
|
-
content: 'Guideline content here',
|
|
20
|
-
}),
|
|
21
|
-
},
|
|
22
|
-
session: {
|
|
23
|
-
getSessionId: vi.fn().mockReturnValue(TEST_SESSION_ID),
|
|
24
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
25
|
-
getOtherSessionUrls: vi.fn().mockReturnValue([]),
|
|
26
|
-
},
|
|
27
|
-
...overrides,
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
// ---------------------------------------------------------------------------
|
|
31
|
-
// Setup / Teardown
|
|
32
|
-
// ---------------------------------------------------------------------------
|
|
33
|
-
let exitSpy;
|
|
34
|
-
let logSpy;
|
|
35
|
-
let errorSpy;
|
|
36
|
-
beforeEach(() => {
|
|
37
|
-
exitSpy = vi.spyOn(process, 'exit').mockImplementation((() => { }));
|
|
38
|
-
logSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
|
|
39
|
-
errorSpy = vi.spyOn(console, 'error').mockImplementation(() => { });
|
|
40
|
-
});
|
|
41
|
-
afterEach(() => {
|
|
42
|
-
vi.restoreAllMocks();
|
|
43
|
-
});
|
|
44
|
-
function getAllLogOutput() {
|
|
45
|
-
return logSpy.mock.calls.map((c) => c.join(' ')).join('\n');
|
|
46
|
-
}
|
|
47
|
-
function getAllErrorOutput() {
|
|
48
|
-
return errorSpy.mock.calls.map((c) => c.join(' ')).join('\n');
|
|
49
|
-
}
|
|
50
|
-
// ---------------------------------------------------------------------------
|
|
51
|
-
// Tests
|
|
52
|
-
// ---------------------------------------------------------------------------
|
|
53
|
-
describe('viewGuidelines', () => {
|
|
54
|
-
describe('authentication', () => {
|
|
55
|
-
it('exits with code 1 when not authenticated', async () => {
|
|
56
|
-
const deps = createMockDeps({
|
|
57
|
-
session: {
|
|
58
|
-
getSessionId: vi.fn().mockReturnValue(null),
|
|
59
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
60
|
-
getOtherSessionUrls: vi.fn().mockReturnValue([]),
|
|
61
|
-
},
|
|
62
|
-
});
|
|
63
|
-
await viewGuidelines({ type: 'coding' }, deps);
|
|
64
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
65
|
-
expect(getAllErrorOutput()).toContain('Not authenticated');
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
describe('success', () => {
|
|
69
|
-
it('fetches and displays guidelines', async () => {
|
|
70
|
-
const deps = createMockDeps();
|
|
71
|
-
deps.backend.query.mockResolvedValue({
|
|
72
|
-
title: 'Coding Guidelines',
|
|
73
|
-
content: 'Guideline content here',
|
|
74
|
-
});
|
|
75
|
-
await viewGuidelines({ type: 'coding' }, deps);
|
|
76
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
77
|
-
expect(getAllLogOutput()).toContain('Coding Guidelines');
|
|
78
|
-
expect(getAllLogOutput()).toContain('Guideline content here');
|
|
79
|
-
expect(deps.backend.query).toHaveBeenCalled();
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
describe('error', () => {
|
|
83
|
-
it('exits with code 1 when invalid type', async () => {
|
|
84
|
-
const deps = createMockDeps();
|
|
85
|
-
await viewGuidelines({ type: 'invalid' }, deps);
|
|
86
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
87
|
-
expect(getAllErrorOutput()).toContain('Invalid guideline type');
|
|
88
|
-
});
|
|
89
|
-
it('exits with code 1 when query fails', async () => {
|
|
90
|
-
const deps = createMockDeps();
|
|
91
|
-
deps.backend.query.mockRejectedValue(new Error('Network error'));
|
|
92
|
-
await viewGuidelines({ type: 'coding' }, deps);
|
|
93
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
94
|
-
expect(getAllErrorOutput()).toContain('Error fetching guidelines');
|
|
95
|
-
expect(getAllErrorOutput()).toContain('Network error');
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
describe('listGuidelineTypes', () => {
|
|
100
|
-
describe('authentication', () => {
|
|
101
|
-
it('exits with code 1 when not authenticated', async () => {
|
|
102
|
-
const deps = createMockDeps({
|
|
103
|
-
session: {
|
|
104
|
-
getSessionId: vi.fn().mockReturnValue(null),
|
|
105
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
106
|
-
getOtherSessionUrls: vi.fn().mockReturnValue([]),
|
|
107
|
-
},
|
|
108
|
-
});
|
|
109
|
-
await listGuidelineTypes(deps);
|
|
110
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
111
|
-
expect(getAllErrorOutput()).toContain('Not authenticated');
|
|
112
|
-
});
|
|
113
|
-
});
|
|
114
|
-
describe('success', () => {
|
|
115
|
-
it('fetches and displays guideline types', async () => {
|
|
116
|
-
const deps = createMockDeps();
|
|
117
|
-
deps.backend.query.mockResolvedValue([
|
|
118
|
-
{ type: 'coding', description: 'Code review guidelines' },
|
|
119
|
-
{ type: 'security', description: 'Security review guidelines' },
|
|
120
|
-
]);
|
|
121
|
-
await listGuidelineTypes(deps);
|
|
122
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
123
|
-
expect(getAllLogOutput()).toContain('Available Guideline Types');
|
|
124
|
-
expect(getAllLogOutput()).toContain('coding');
|
|
125
|
-
expect(getAllLogOutput()).toContain('security');
|
|
126
|
-
expect(deps.backend.query).toHaveBeenCalled();
|
|
127
|
-
});
|
|
128
|
-
});
|
|
129
|
-
describe('error', () => {
|
|
130
|
-
it('exits with code 1 when query fails', async () => {
|
|
131
|
-
const deps = createMockDeps();
|
|
132
|
-
deps.backend.query.mockRejectedValue(new Error('Backend error'));
|
|
133
|
-
await listGuidelineTypes(deps);
|
|
134
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
135
|
-
expect(getAllErrorOutput()).toContain('Error fetching guideline types');
|
|
136
|
-
expect(getAllErrorOutput()).toContain('Backend error');
|
|
137
|
-
});
|
|
138
|
-
});
|
|
139
|
-
});
|
|
140
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/commands/guidelines/index.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAGzE,OAAO,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhE,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,SAAS,cAAc,CAAC,SAAmC;IACzD,OAAO;QACL,OAAO,EAAE;YACP,Q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ChE,CAAC,CAAC;YAEH,MAAM,kBAAkB,CAAC,IAAI,CAAC,CAAC;YAE/B,MAAM,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,gBAAgB,EAAE,CAAC;YACvC,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,2BAA2B,CAAC,CAAC;YACjE,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;YAC9C,MAAM,CAAC,eAAe,EAAE,CAAC,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;YAChD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,gBAAgB,EAAE,CAAC;QAChD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;IAEH,QAAQ,CAAC,OAAO,EAAE,GAAG,EAAE;QACrB,EAAE,CAAC,oCAAoC,EAAE,KAAK,IAAI,EAAE;YAClD,MAAM,IAAI,GAAG,cAAc,EAAE,CAAC;YAC7B,IAAI,CAAC,OAAO,CAAC,KAAkC,CAAC,iBAAiB,CAChE,IAAI,KAAK,CAAC,eAAe,CAAC,CAC3B,CAAC;YAEF,MAAM,kBAAkB,CAAC,IAAI,CAAC,CAAC;YAE/B,MAAM,CAAC,OAAO,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;YACxC,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,gCAAgC,CAAC,CAAC;YACxE,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,eAAe,CAAC,CAAC;QACzD,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Handoff Deps ā dependency interfaces for the handoff command.
|
|
3
|
-
*/
|
|
4
|
-
import type { BackendOps, SessionOps } from '../../infrastructure/deps/index.js';
|
|
5
|
-
export interface HandoffDeps {
|
|
6
|
-
backend: BackendOps;
|
|
7
|
-
session: SessionOps;
|
|
8
|
-
}
|
|
9
|
-
//# sourceMappingURL=deps.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../src/commands/handoff/deps.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC;AAEjF,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,UAAU,CAAC;IACpB,OAAO,EAAE,UAAU,CAAC;CACrB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deps.js","sourceRoot":"","sources":["../../../src/commands/handoff/deps.ts"],"names":[],"mappings":"AAAA;;GAEG"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Complete a task and hand off to the next role
|
|
3
|
-
*
|
|
4
|
-
* This command uses the atomic handoff mutation which performs all of
|
|
5
|
-
* these operations in a single transaction:
|
|
6
|
-
* 1. Validates the handoff is allowed (classification rules)
|
|
7
|
-
* 2. Completes all in_progress tasks in the chatroom
|
|
8
|
-
* 3. Sends the handoff message
|
|
9
|
-
* 4. Creates a task for the target agent (if not handing to user)
|
|
10
|
-
* 5. Updates the sender's participant status to waiting
|
|
11
|
-
* 6. Promotes the next queued task to pending
|
|
12
|
-
*/
|
|
13
|
-
import type { HandoffDeps } from './deps.js';
|
|
14
|
-
export type { HandoffDeps } from './deps.js';
|
|
15
|
-
export interface HandoffOptions {
|
|
16
|
-
role: string;
|
|
17
|
-
message: string;
|
|
18
|
-
nextRole: string;
|
|
19
|
-
attachedArtifactIds?: string[];
|
|
20
|
-
attachedWorkflowKeys?: string[];
|
|
21
|
-
}
|
|
22
|
-
export declare function handoff(chatroomId: string, options: HandoffOptions, deps?: HandoffDeps): Promise<void>;
|
|
23
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/handoff/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAOH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAa7C,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAI7C,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;CACjC;AAqBD,wBAAsB,OAAO,CAC3B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE,cAAc,EACvB,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CAwNf"}
|
|
@@ -1,226 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Complete a task and hand off to the next role
|
|
3
|
-
*
|
|
4
|
-
* This command uses the atomic handoff mutation which performs all of
|
|
5
|
-
* these operations in a single transaction:
|
|
6
|
-
* 1. Validates the handoff is allowed (classification rules)
|
|
7
|
-
* 2. Completes all in_progress tasks in the chatroom
|
|
8
|
-
* 3. Sends the handoff message
|
|
9
|
-
* 4. Creates a task for the target agent (if not handing to user)
|
|
10
|
-
* 5. Updates the sender's participant status to waiting
|
|
11
|
-
* 6. Promotes the next queued task to pending
|
|
12
|
-
*/
|
|
13
|
-
import { getNextTaskCommand } from '@workspace/backend/prompts/cli/get-next-task/command.js';
|
|
14
|
-
import { handoffCommand } from '@workspace/backend/prompts/cli/handoff/command.js';
|
|
15
|
-
import { getCliEnvPrefix } from '@workspace/backend/prompts/utils/env.js';
|
|
16
|
-
import { ConvexError } from 'convex/values';
|
|
17
|
-
import { api } from '../../api.js';
|
|
18
|
-
import { getSessionId, getOtherSessionUrls } from '../../infrastructure/auth/storage.js';
|
|
19
|
-
import { getConvexClient, getConvexUrl } from '../../infrastructure/convex/client.js';
|
|
20
|
-
import { formatError, formatAuthError, formatChatroomIdError, } from '../../utils/error-formatting.js';
|
|
21
|
-
// āāā Default Deps Factory āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
22
|
-
async function createDefaultDeps() {
|
|
23
|
-
const client = await getConvexClient();
|
|
24
|
-
return {
|
|
25
|
-
backend: {
|
|
26
|
-
mutation: (endpoint, args) => client.mutation(endpoint, args),
|
|
27
|
-
query: (endpoint, args) => client.query(endpoint, args),
|
|
28
|
-
},
|
|
29
|
-
session: {
|
|
30
|
-
getSessionId,
|
|
31
|
-
getConvexUrl,
|
|
32
|
-
getOtherSessionUrls,
|
|
33
|
-
},
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
// āāā Entry Point āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
|
|
37
|
-
export async function handoff(chatroomId, options, deps) {
|
|
38
|
-
const d = deps ?? (await createDefaultDeps());
|
|
39
|
-
const { role, message, nextRole, attachedArtifactIds = [], attachedWorkflowKeys = [] } = options;
|
|
40
|
-
// Get session ID for authentication
|
|
41
|
-
const sessionId = d.session.getSessionId();
|
|
42
|
-
if (!sessionId) {
|
|
43
|
-
const otherUrls = d.session.getOtherSessionUrls();
|
|
44
|
-
const currentUrl = d.session.getConvexUrl();
|
|
45
|
-
formatAuthError(currentUrl, otherUrls);
|
|
46
|
-
process.exit(1);
|
|
47
|
-
}
|
|
48
|
-
// Validate chatroom ID format
|
|
49
|
-
if (!chatroomId ||
|
|
50
|
-
typeof chatroomId !== 'string' ||
|
|
51
|
-
chatroomId.length < 20 ||
|
|
52
|
-
chatroomId.length > 40) {
|
|
53
|
-
formatChatroomIdError(chatroomId);
|
|
54
|
-
process.exit(1);
|
|
55
|
-
}
|
|
56
|
-
// Validate artifact IDs if provided
|
|
57
|
-
if (attachedArtifactIds.length > 0) {
|
|
58
|
-
try {
|
|
59
|
-
const areValid = await d.backend.query(api.artifacts.validateArtifactIds, {
|
|
60
|
-
sessionId,
|
|
61
|
-
artifactIds: attachedArtifactIds,
|
|
62
|
-
});
|
|
63
|
-
if (!areValid) {
|
|
64
|
-
formatError('One or more artifacts not found', [
|
|
65
|
-
'Please create artifacts first:',
|
|
66
|
-
`chatroom artifact create ${chatroomId} --from-file=... --filename=...`,
|
|
67
|
-
]);
|
|
68
|
-
process.exit(1);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
catch (error) {
|
|
72
|
-
formatError('Failed to validate artifacts', [String(error)]);
|
|
73
|
-
process.exit(1);
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
// Resolve workflow keys to IDs
|
|
77
|
-
const resolvedWorkflowIds = [];
|
|
78
|
-
if (attachedWorkflowKeys.length > 0) {
|
|
79
|
-
for (const key of attachedWorkflowKeys) {
|
|
80
|
-
try {
|
|
81
|
-
const result = await d.backend.query(api.workflows.resolveWorkflowId, {
|
|
82
|
-
sessionId,
|
|
83
|
-
chatroomId: chatroomId,
|
|
84
|
-
workflowKey: key,
|
|
85
|
-
});
|
|
86
|
-
resolvedWorkflowIds.push(result.workflowId);
|
|
87
|
-
}
|
|
88
|
-
catch {
|
|
89
|
-
formatError(`Workflow "${key}" not found`, ['Check the workflow key and try again']);
|
|
90
|
-
process.exit(1);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
let result;
|
|
95
|
-
try {
|
|
96
|
-
result = await d.backend.mutation(api.messages.handoff, {
|
|
97
|
-
sessionId,
|
|
98
|
-
chatroomId: chatroomId,
|
|
99
|
-
senderRole: role,
|
|
100
|
-
content: message,
|
|
101
|
-
targetRole: nextRole,
|
|
102
|
-
...(attachedArtifactIds.length > 0 && {
|
|
103
|
-
attachedArtifactIds: attachedArtifactIds,
|
|
104
|
-
}),
|
|
105
|
-
...(resolvedWorkflowIds.length > 0 && {
|
|
106
|
-
attachedWorkflowIds: resolvedWorkflowIds,
|
|
107
|
-
}),
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
catch (error) {
|
|
111
|
-
console.error(`\nā ERROR: Handoff failed`);
|
|
112
|
-
if (error instanceof ConvexError) {
|
|
113
|
-
const errorData = error.data;
|
|
114
|
-
console.error(`\n${errorData.message || 'An unexpected error occurred'}`);
|
|
115
|
-
if (process.env.CHATROOM_DEBUG === 'true') {
|
|
116
|
-
console.error('\nš Debug Info:');
|
|
117
|
-
console.error(JSON.stringify(errorData, null, 2));
|
|
118
|
-
}
|
|
119
|
-
const convexUrl = d.session.getConvexUrl();
|
|
120
|
-
if (errorData.code === 'AUTH_FAILED') {
|
|
121
|
-
console.error('\nš” Try authenticating again:');
|
|
122
|
-
console.error(` chatroom auth ${convexUrl}`);
|
|
123
|
-
}
|
|
124
|
-
else if (errorData.code === 'INVALID_ROLE') {
|
|
125
|
-
console.error('\nš” Check your team configuration and use a valid role');
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
console.error(`\n${error instanceof Error ? error.message : String(error)}`);
|
|
130
|
-
if (process.env.CHATROOM_DEBUG === 'true') {
|
|
131
|
-
console.error('\nš Debug Info:');
|
|
132
|
-
console.error(error);
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
console.error('\nš Need help? Check the docs or run:');
|
|
136
|
-
console.error(` chatroom handoff --help`);
|
|
137
|
-
process.exit(1);
|
|
138
|
-
return; // Unreachable in production, but ensures `result` is assigned for type safety
|
|
139
|
-
}
|
|
140
|
-
// Check for handoff restriction errors
|
|
141
|
-
if (!result.success && result.error) {
|
|
142
|
-
const convexUrl = d.session.getConvexUrl();
|
|
143
|
-
const cliEnvPrefix = getCliEnvPrefix(convexUrl);
|
|
144
|
-
console.error(`\nā ERROR: ${result.error.message}`);
|
|
145
|
-
// For invalid target role, show available targets and workflow
|
|
146
|
-
if (result.error.code === 'INVALID_TARGET_ROLE' && result.error.suggestedTargets) {
|
|
147
|
-
console.error(`\nš Available handoff targets for this team:`);
|
|
148
|
-
for (const target of result.error.suggestedTargets) {
|
|
149
|
-
console.error(` ⢠${target}`);
|
|
150
|
-
}
|
|
151
|
-
console.error(`\nš” Check your team's workflow in the system prompt for valid handoff paths.`);
|
|
152
|
-
}
|
|
153
|
-
else if (result.error.code === 'WORKFLOW_REQUIRED') {
|
|
154
|
-
console.error('');
|
|
155
|
-
console.error('All tasks delegated to builder must use a workflow.');
|
|
156
|
-
console.error('Create one before handing off:');
|
|
157
|
-
console.error('');
|
|
158
|
-
console.error(' 1. Activate the workflow skill:');
|
|
159
|
-
console.error(` ${cliEnvPrefix}chatroom skill activate workflow --chatroom-id=${chatroomId} --role=${role}`);
|
|
160
|
-
console.error('');
|
|
161
|
-
console.error(' 2. Create a workflow:');
|
|
162
|
-
console.error(` ${cliEnvPrefix}chatroom workflow create --chatroom-id=${chatroomId} --role=${role} ...`);
|
|
163
|
-
console.error('');
|
|
164
|
-
}
|
|
165
|
-
else if (result.error.suggestedTarget) {
|
|
166
|
-
console.error(`\nš” Try this instead:`);
|
|
167
|
-
console.error('```');
|
|
168
|
-
console.error(handoffCommand({
|
|
169
|
-
chatroomId,
|
|
170
|
-
role,
|
|
171
|
-
nextRole: result.error.suggestedTarget,
|
|
172
|
-
cliEnvPrefix,
|
|
173
|
-
}));
|
|
174
|
-
console.error('```');
|
|
175
|
-
}
|
|
176
|
-
process.exit(1);
|
|
177
|
-
}
|
|
178
|
-
console.log(`ā
Task completed and handed off to ${nextRole}`);
|
|
179
|
-
console.log(`š Summary: ${message}`);
|
|
180
|
-
if (attachedArtifactIds.length > 0) {
|
|
181
|
-
console.log(`š Attached artifacts: ${attachedArtifactIds.length}`);
|
|
182
|
-
attachedArtifactIds.forEach((id) => {
|
|
183
|
-
console.log(` ⢠${id}`);
|
|
184
|
-
});
|
|
185
|
-
}
|
|
186
|
-
// Show attached workflow summaries
|
|
187
|
-
if (resolvedWorkflowIds.length > 0) {
|
|
188
|
-
for (const wfId of resolvedWorkflowIds) {
|
|
189
|
-
try {
|
|
190
|
-
const detail = await d.backend.query(api.workflows.getWorkflowDetail, {
|
|
191
|
-
sessionId,
|
|
192
|
-
chatroomId: chatroomId,
|
|
193
|
-
workflowId: wfId,
|
|
194
|
-
});
|
|
195
|
-
const wf = detail.workflow;
|
|
196
|
-
console.log('');
|
|
197
|
-
console.log(`š Attached Workflow: ${wf.workflowKey} (${wf.status}, ${detail.steps.length} steps)`);
|
|
198
|
-
for (let i = 0; i < detail.steps.length; i++) {
|
|
199
|
-
const step = detail.steps[i];
|
|
200
|
-
const isLast = i === detail.steps.length - 1;
|
|
201
|
-
const prefix = isLast ? 'āā' : 'āā';
|
|
202
|
-
const statusEmoji = step.status === 'completed'
|
|
203
|
-
? 'ā
'
|
|
204
|
-
: step.status === 'in_progress'
|
|
205
|
-
? 'š'
|
|
206
|
-
: step.status === 'cancelled'
|
|
207
|
-
? 'ā'
|
|
208
|
-
: 'ā³';
|
|
209
|
-
const roleLabel = step.assigneeRole ? ` [${step.assigneeRole}]` : '';
|
|
210
|
-
const deps = step.dependsOn.length > 0 ? ` (depends: ${step.dependsOn.join(', ')})` : '';
|
|
211
|
-
console.log(` ${prefix} ${step.stepKey}${roleLabel} ${statusEmoji} ${step.status}${deps}`);
|
|
212
|
-
}
|
|
213
|
-
console.log('');
|
|
214
|
-
console.log(` Inspect: chatroom workflow status --chatroom-id=${chatroomId} --workflow-key=${wf.workflowKey}`);
|
|
215
|
-
console.log(` View step: chatroom workflow step-view --chatroom-id=${chatroomId} --workflow-key=${wf.workflowKey} --step-key=<key>`);
|
|
216
|
-
}
|
|
217
|
-
catch {
|
|
218
|
-
// Non-fatal: just skip rendering if query fails
|
|
219
|
-
}
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
const convexUrl = d.session.getConvexUrl();
|
|
223
|
-
const cliEnvPrefix = getCliEnvPrefix(convexUrl);
|
|
224
|
-
console.log(`\nā³ Next ā \`${getNextTaskCommand({ chatroomId, role, cliEnvPrefix })}\``);
|
|
225
|
-
}
|
|
226
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/handoff/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,yDAAyD,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,mDAAmD,CAAC;AACnF,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAG5C,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AAEnC,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,uCAAuC,CAAC;AACtF,OAAO,EACL,WAAW,EACX,eAAe,EACf,qBAAqB,GACtB,MAAM,iCAAiC,CAAC;AAgBzC,8EAA8E;AAE9E,KAAK,UAAU,iBAAiB;IAC9B,MAAM,MAAM,GAAG,MAAM,eAAe,EAAE,CAAC;IACvC,OAAO;QACL,OAAO,EAAE;YACP,QAAQ,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,CAAC,QAAQ,EAAE,IAAI,CAAC;YAC7D,KAAK,EAAE,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,IAAI,CAAC;SACxD;QACD,OAAO,EAAE;YACP,YAAY;YACZ,YAAY;YACZ,mBAAmB;SACpB;KACF,CAAC;AACJ,CAAC;AAED,8EAA8E;AAE9E,MAAM,CAAC,KAAK,UAAU,OAAO,CAC3B,UAAkB,EAClB,OAAuB,EACvB,IAAkB;IAElB,MAAM,CAAC,G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,EAAE,CAAC;oBACrE,MAAM,IAAI,GACR,IAAI,CAAC,SAAS,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,cAAc,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;oBAC9E,OAAO,CAAC,GAAG,CACT,MAAM,MAAM,IAAI,IAAI,CAAC,OAAO,GAAG,SAAS,IAAI,WAAW,IAAI,IAAI,CAAC,MAAM,GAAG,IAAI,EAAE,CAChF,CAAC;gBACJ,CAAC;gBAED,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;gBAChB,OAAO,CAAC,GAAG,CACT,sDAAsD,UAAU,mBAAmB,EAAE,CAAC,WAAW,EAAE,CACpG,CAAC;gBACF,OAAO,CAAC,GAAG,CACT,2DAA2D,UAAU,mBAAmB,EAAE,CAAC,WAAW,mBAAmB,CAC1H,CAAC;YACJ,CAAC;YAAC,MAAM,CAAC;gBACP,gDAAgD;YAClD,CAAC;QACH,CAAC;IACH,CAAC;IAED,MAAM,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IAC3C,MAAM,YAAY,GAAG,eAAe,CAAC,SAAS,CAAC,CAAC;IAChD,OAAO,CAAC,GAAG,CAAC,gBAAgB,kBAAkB,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,YAAY,EAAE,CAAC,IAAI,CAAC,CAAC;AAC1F,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* handoff Unit Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests the handoff command using injected dependencies.
|
|
5
|
-
* Covers: auth validation, successful handoff, mutation failure,
|
|
6
|
-
* handoff restriction (suggested target), artifact validation.
|
|
7
|
-
*/
|
|
8
|
-
export {};
|
|
9
|
-
//# sourceMappingURL=index.test.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/commands/handoff/index.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|