chatroom-cli 1.33.3 → 1.34.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 +209 -321
- 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 -338
- 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 -86
- 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,162 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Classify command — classify a task's origin message (entry-point role only)
|
|
3
|
-
*
|
|
4
|
-
* This command is reserved for the entry-point role. It performs
|
|
5
|
-
* the classification logic for the origin message.
|
|
6
|
-
*
|
|
7
|
-
* Entry-point roles: Use this when you receive a user message and need to classify it.
|
|
8
|
-
* Other roles: Classification is not needed — use `task read` to mark in_progress.
|
|
9
|
-
*/
|
|
10
|
-
import { classifyCommand } from '@workspace/backend/prompts/cli/classify/command.js';
|
|
11
|
-
import { getCliEnvPrefix } from '@workspace/backend/prompts/utils/env.js';
|
|
12
|
-
import { api } from '../../api.js';
|
|
13
|
-
import { getSessionId, getOtherSessionUrls } from '../../infrastructure/auth/storage.js';
|
|
14
|
-
import { getConvexClient, getConvexUrl } from '../../infrastructure/convex/client.js';
|
|
15
|
-
import { getErrorMessage } from '../../utils/convex-error.js';
|
|
16
|
-
// ─── Default Deps Factory ──────────────────────────────────────────────────
|
|
17
|
-
async function createDefaultDeps() {
|
|
18
|
-
const client = await getConvexClient();
|
|
19
|
-
return {
|
|
20
|
-
backend: {
|
|
21
|
-
mutation: (endpoint, args) => client.mutation(endpoint, args),
|
|
22
|
-
query: (endpoint, args) => client.query(endpoint, args),
|
|
23
|
-
},
|
|
24
|
-
session: {
|
|
25
|
-
getSessionId,
|
|
26
|
-
getConvexUrl,
|
|
27
|
-
getOtherSessionUrls,
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
// ─── Entry Point ───────────────────────────────────────────────────────────
|
|
32
|
-
export async function classify(chatroomId, options, deps) {
|
|
33
|
-
const d = deps ?? (await createDefaultDeps());
|
|
34
|
-
const { role, originMessageClassification, rawStdin, taskId } = options;
|
|
35
|
-
// Get Convex URL and CLI env prefix for generating commands
|
|
36
|
-
const convexUrl = d.session.getConvexUrl();
|
|
37
|
-
const cliEnvPrefix = getCliEnvPrefix(convexUrl);
|
|
38
|
-
// Get session ID for authentication
|
|
39
|
-
const sessionId = d.session.getSessionId();
|
|
40
|
-
if (!sessionId) {
|
|
41
|
-
const otherUrls = d.session.getOtherSessionUrls();
|
|
42
|
-
console.error(`❌ Not authenticated for: ${convexUrl}`);
|
|
43
|
-
if (otherUrls.length > 0) {
|
|
44
|
-
console.error(`\n💡 You have sessions for other environments:`);
|
|
45
|
-
for (const url of otherUrls) {
|
|
46
|
-
console.error(` • ${url}`);
|
|
47
|
-
}
|
|
48
|
-
console.error(`\n To use a different environment, set CHATROOM_CONVEX_URL:`);
|
|
49
|
-
console.error(` CHATROOM_CONVEX_URL=${otherUrls[0]} chatroom classify ...`);
|
|
50
|
-
console.error(`\n Or to authenticate for the current environment:`);
|
|
51
|
-
}
|
|
52
|
-
console.error(` chatroom auth login`);
|
|
53
|
-
process.exit(1);
|
|
54
|
-
}
|
|
55
|
-
// Validate chatroom ID format
|
|
56
|
-
if (!chatroomId ||
|
|
57
|
-
typeof chatroomId !== 'string' ||
|
|
58
|
-
chatroomId.length < 20 ||
|
|
59
|
-
chatroomId.length > 40) {
|
|
60
|
-
console.error(`❌ Invalid chatroom ID format: ID must be 20-40 characters (got ${chatroomId?.length || 0})`);
|
|
61
|
-
process.exit(1);
|
|
62
|
-
}
|
|
63
|
-
// Fetch the chatroom to get its configuration (for entry point check)
|
|
64
|
-
const chatroom = await d.backend.query(api.chatrooms.get, {
|
|
65
|
-
sessionId,
|
|
66
|
-
chatroomId: chatroomId,
|
|
67
|
-
});
|
|
68
|
-
if (!chatroom) {
|
|
69
|
-
console.error(`❌ Chatroom not found: ${chatroomId}`);
|
|
70
|
-
console.error(` Verify the chatroom ID is correct and you have access.`);
|
|
71
|
-
process.exit(1);
|
|
72
|
-
}
|
|
73
|
-
// Determine the entry point role
|
|
74
|
-
const entryPoint = chatroom?.teamEntryPoint ?? chatroom?.teamRoles?.[0];
|
|
75
|
-
// Validate: user's role must be the entry point role
|
|
76
|
-
if (entryPoint && role.toLowerCase() !== entryPoint.toLowerCase()) {
|
|
77
|
-
console.error(`❌ \`classify\` is only available to the entry point role (${entryPoint}). Your role is ${role}.`);
|
|
78
|
-
console.error('');
|
|
79
|
-
console.error(' Entry point roles receive user messages and must classify them.');
|
|
80
|
-
console.error(' Other roles receive handoffs — use `task read` to mark in_progress.');
|
|
81
|
-
process.exit(1);
|
|
82
|
-
}
|
|
83
|
-
// Validate new_feature requirements
|
|
84
|
-
if (originMessageClassification === 'new_feature') {
|
|
85
|
-
if (!rawStdin || rawStdin.trim().length === 0) {
|
|
86
|
-
console.error(`❌ new_feature classification requires stdin with feature metadata`);
|
|
87
|
-
console.error(' Provide structured stdin with TITLE, DESCRIPTION, and TECH_SPECS');
|
|
88
|
-
console.error('');
|
|
89
|
-
console.error(' Example:');
|
|
90
|
-
console.error(` echo '---TITLE---\nFeature title\n---DESCRIPTION---\nWhat this feature does\n---TECH_SPECS---\nHow to implement it' | ${classifyCommand({
|
|
91
|
-
chatroomId,
|
|
92
|
-
role,
|
|
93
|
-
taskId: '<task-id>',
|
|
94
|
-
classification: 'new_feature',
|
|
95
|
-
cliEnvPrefix,
|
|
96
|
-
})}`);
|
|
97
|
-
process.exit(1);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
// Find the target task to acknowledge
|
|
101
|
-
if (!taskId) {
|
|
102
|
-
console.error(`❌ --task-id is required for classify`);
|
|
103
|
-
console.error(` Usage: ${classifyCommand({
|
|
104
|
-
chatroomId: '<chatroomId>',
|
|
105
|
-
role: '<role>',
|
|
106
|
-
taskId: '<task-id>',
|
|
107
|
-
classification: 'question',
|
|
108
|
-
cliEnvPrefix,
|
|
109
|
-
})}`);
|
|
110
|
-
process.exit(1);
|
|
111
|
-
}
|
|
112
|
-
// Fetch the specific task by ID directly
|
|
113
|
-
const targetTask = await d.backend.query(api.tasks.getTask, {
|
|
114
|
-
sessionId,
|
|
115
|
-
chatroomId: chatroomId,
|
|
116
|
-
taskId: taskId,
|
|
117
|
-
});
|
|
118
|
-
if (!targetTask) {
|
|
119
|
-
console.error(`❌ Task with ID "${taskId}" not found in this chatroom`);
|
|
120
|
-
console.error(` Verify the task ID is correct and you have access to this chatroom`);
|
|
121
|
-
process.exit(1);
|
|
122
|
-
}
|
|
123
|
-
// Classify the message (requires task to be in_progress)
|
|
124
|
-
// This is only for entry point roles receiving user messages
|
|
125
|
-
try {
|
|
126
|
-
const result = await d.backend.mutation(api.messages.taskStarted, {
|
|
127
|
-
sessionId,
|
|
128
|
-
chatroomId: chatroomId,
|
|
129
|
-
role,
|
|
130
|
-
taskId: taskId,
|
|
131
|
-
originMessageClassification: originMessageClassification,
|
|
132
|
-
convexUrl: d.session.getConvexUrl(),
|
|
133
|
-
...(rawStdin && { rawStdin }),
|
|
134
|
-
});
|
|
135
|
-
console.log(`✅ Task acknowledged and classified`);
|
|
136
|
-
console.log(` Classification: ${originMessageClassification}`);
|
|
137
|
-
console.log(` Task: ${targetTask.content}`);
|
|
138
|
-
// Display the focused reminder from the backend
|
|
139
|
-
if (result.reminder) {
|
|
140
|
-
console.log(`\n💡 ${result.reminder}`);
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
catch (error) {
|
|
144
|
-
console.error(`❌ Failed to acknowledge task`);
|
|
145
|
-
console.error(` Error: ${getErrorMessage(error)}`);
|
|
146
|
-
// Try to extract more details from the error if available
|
|
147
|
-
if (error instanceof Error && error.stack) {
|
|
148
|
-
const stackLines = error.stack.split('\n').slice(0, 5);
|
|
149
|
-
console.error(` Stack trace:`);
|
|
150
|
-
stackLines.forEach((line) => console.error(` ${line}`));
|
|
151
|
-
}
|
|
152
|
-
// Check if this is a Convex error with more details
|
|
153
|
-
if (typeof error === 'object' && error !== null && 'data' in error) {
|
|
154
|
-
const errData = error.data;
|
|
155
|
-
if (errData) {
|
|
156
|
-
console.error(` Server details:`, JSON.stringify(errData, null, 2));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
process.exit(1);
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/commands/classify/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAC;AAG1E,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,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAe9D,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,QAAQ,CAC5B,UAAkB,EAClB,OAAwB,EACxB,IAAmB;IAEnB,MAAM,CAAC,GAAG,IAAI,IAAI,CAAC,MAAM,iBAAiB,EAAE,CAAC,CAAC;IAC9C,MAAM,EAAE,IAAI,EAAE,2BAA2B,EAAE,QAAQ,E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AAO,EAAE,CAAC;gBACZ,OAAO,CAAC,KAAK,CAAC,oBAAoB,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,CAAC;YACxE,CAAC;QACH,CAAC;QAED,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* classify Unit Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests the classify command using injected dependencies.
|
|
5
|
-
* Covers: auth validation, entry-point role validation, input validation,
|
|
6
|
-
* task fetching, start task, classification with reminder.
|
|
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/classify/index.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
|
|
@@ -1,263 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* classify Unit Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests the classify command using injected dependencies.
|
|
5
|
-
* Covers: auth validation, entry-point role validation, input validation,
|
|
6
|
-
* task fetching, start task, classification with reminder.
|
|
7
|
-
*/
|
|
8
|
-
import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest';
|
|
9
|
-
import { classify } from './index.js';
|
|
10
|
-
// ---------------------------------------------------------------------------
|
|
11
|
-
// Mock modules (only for non-injectable side effects)
|
|
12
|
-
// ---------------------------------------------------------------------------
|
|
13
|
-
vi.mock('@workspace/backend/prompts/cli/classify/command.js', () => ({
|
|
14
|
-
classifyCommand: (opts) => `chatroom classify --chatroom-id=${opts.chatroomId} --role=${opts.role} --task-id=${opts.taskId}`,
|
|
15
|
-
}));
|
|
16
|
-
vi.mock('@workspace/backend/prompts/utils/env.js', () => ({
|
|
17
|
-
getCliEnvPrefix: () => 'CHATROOM_CONVEX_URL=http://test:3210 ',
|
|
18
|
-
}));
|
|
19
|
-
// ---------------------------------------------------------------------------
|
|
20
|
-
// Helpers
|
|
21
|
-
// ---------------------------------------------------------------------------
|
|
22
|
-
const TEST_CHATROOM_ID = 'test_chatroom_id_12345678';
|
|
23
|
-
const TEST_TASK_ID = 'task_abc123_test_task_id_1';
|
|
24
|
-
const TEST_SESSION_ID = 'test-session-id';
|
|
25
|
-
function createMockDeps(overrides) {
|
|
26
|
-
return {
|
|
27
|
-
backend: {
|
|
28
|
-
mutation: vi.fn().mockResolvedValue({ reminder: null }),
|
|
29
|
-
query: vi.fn().mockResolvedValue({
|
|
30
|
-
content: 'Test task content',
|
|
31
|
-
status: 'acknowledged',
|
|
32
|
-
teamEntryPoint: 'planner',
|
|
33
|
-
teamRoles: ['planner', 'builder'],
|
|
34
|
-
}),
|
|
35
|
-
},
|
|
36
|
-
session: {
|
|
37
|
-
getSessionId: vi.fn().mockReturnValue(TEST_SESSION_ID),
|
|
38
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
39
|
-
getOtherSessionUrls: vi.fn().mockReturnValue([]),
|
|
40
|
-
},
|
|
41
|
-
...overrides,
|
|
42
|
-
};
|
|
43
|
-
}
|
|
44
|
-
function defaultOptions(overrides) {
|
|
45
|
-
return {
|
|
46
|
-
role: 'planner',
|
|
47
|
-
taskId: TEST_TASK_ID,
|
|
48
|
-
originMessageClassification: 'question',
|
|
49
|
-
...overrides,
|
|
50
|
-
};
|
|
51
|
-
}
|
|
52
|
-
// ---------------------------------------------------------------------------
|
|
53
|
-
// Setup / Teardown
|
|
54
|
-
// ---------------------------------------------------------------------------
|
|
55
|
-
let exitSpy;
|
|
56
|
-
let logSpy;
|
|
57
|
-
let errorSpy;
|
|
58
|
-
beforeEach(() => {
|
|
59
|
-
exitSpy = vi.spyOn(process, 'exit').mockImplementation((() => { }));
|
|
60
|
-
logSpy = vi.spyOn(console, 'log').mockImplementation(() => { });
|
|
61
|
-
errorSpy = vi.spyOn(console, 'error').mockImplementation(() => { });
|
|
62
|
-
});
|
|
63
|
-
afterEach(() => {
|
|
64
|
-
vi.restoreAllMocks();
|
|
65
|
-
});
|
|
66
|
-
function getAllLogOutput() {
|
|
67
|
-
return logSpy.mock.calls.map((c) => c.join(' ')).join('\n');
|
|
68
|
-
}
|
|
69
|
-
function getAllErrorOutput() {
|
|
70
|
-
return errorSpy.mock.calls.map((c) => c.join(' ')).join('\n');
|
|
71
|
-
}
|
|
72
|
-
// ---------------------------------------------------------------------------
|
|
73
|
-
// Tests
|
|
74
|
-
// ---------------------------------------------------------------------------
|
|
75
|
-
describe('classify', () => {
|
|
76
|
-
// -----------------------------------------------------------------------
|
|
77
|
-
// Authentication
|
|
78
|
-
// -----------------------------------------------------------------------
|
|
79
|
-
describe('authentication', () => {
|
|
80
|
-
it('exits with code 1 when not authenticated', async () => {
|
|
81
|
-
const deps = createMockDeps({
|
|
82
|
-
session: {
|
|
83
|
-
getSessionId: vi.fn().mockReturnValue(null),
|
|
84
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
85
|
-
getOtherSessionUrls: vi.fn().mockReturnValue([]),
|
|
86
|
-
},
|
|
87
|
-
});
|
|
88
|
-
await classify(TEST_CHATROOM_ID, defaultOptions(), deps);
|
|
89
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
90
|
-
expect(getAllErrorOutput()).toContain('Not authenticated');
|
|
91
|
-
});
|
|
92
|
-
it('shows other session URLs when available', async () => {
|
|
93
|
-
const deps = createMockDeps({
|
|
94
|
-
session: {
|
|
95
|
-
getSessionId: vi.fn().mockReturnValue(null),
|
|
96
|
-
getConvexUrl: vi.fn().mockReturnValue('http://test:3210'),
|
|
97
|
-
getOtherSessionUrls: vi.fn().mockReturnValue(['http://other:3210']),
|
|
98
|
-
},
|
|
99
|
-
});
|
|
100
|
-
await classify(TEST_CHATROOM_ID, defaultOptions(), deps);
|
|
101
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
102
|
-
expect(getAllErrorOutput()).toContain('http://other:3210');
|
|
103
|
-
});
|
|
104
|
-
});
|
|
105
|
-
// -----------------------------------------------------------------------
|
|
106
|
-
// Entry-point role validation
|
|
107
|
-
// -----------------------------------------------------------------------
|
|
108
|
-
describe('entry-point role validation', () => {
|
|
109
|
-
it('allows classification when role is the entry point', async () => {
|
|
110
|
-
const deps = createMockDeps();
|
|
111
|
-
deps.backend.query.mockResolvedValue({
|
|
112
|
-
teamEntryPoint: 'planner',
|
|
113
|
-
teamRoles: ['planner', 'builder'],
|
|
114
|
-
});
|
|
115
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ role: 'planner' }), deps);
|
|
116
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
117
|
-
// taskStarted (classify)
|
|
118
|
-
expect(deps.backend.mutation).toHaveBeenCalledTimes(1);
|
|
119
|
-
});
|
|
120
|
-
it('exits with code 1 when role is not the entry point', async () => {
|
|
121
|
-
const deps = createMockDeps();
|
|
122
|
-
deps.backend.query.mockResolvedValue({
|
|
123
|
-
teamEntryPoint: 'planner',
|
|
124
|
-
teamRoles: ['planner', 'builder'],
|
|
125
|
-
});
|
|
126
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ role: 'builder' }), deps);
|
|
127
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
128
|
-
expect(getAllErrorOutput()).toContain('`classify` is only available to the entry point role');
|
|
129
|
-
expect(getAllErrorOutput()).toContain('Your role is builder');
|
|
130
|
-
});
|
|
131
|
-
it('uses first role as entry point when teamEntryPoint is not set', async () => {
|
|
132
|
-
const deps = createMockDeps();
|
|
133
|
-
deps.backend.query.mockResolvedValue({
|
|
134
|
-
teamRoles: ['planner', 'builder'],
|
|
135
|
-
});
|
|
136
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ role: 'planner' }), deps);
|
|
137
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
138
|
-
});
|
|
139
|
-
it('works when no team configuration exists (defaults to allowing)', async () => {
|
|
140
|
-
const deps = createMockDeps();
|
|
141
|
-
deps.backend.query.mockResolvedValue({});
|
|
142
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ role: 'planner' }), deps);
|
|
143
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
144
|
-
});
|
|
145
|
-
});
|
|
146
|
-
// -----------------------------------------------------------------------
|
|
147
|
-
// Classification
|
|
148
|
-
// -----------------------------------------------------------------------
|
|
149
|
-
describe('classification', () => {
|
|
150
|
-
it('starts task and classifies as question', async () => {
|
|
151
|
-
const deps = createMockDeps();
|
|
152
|
-
deps.backend.query.mockResolvedValue({
|
|
153
|
-
teamEntryPoint: 'planner',
|
|
154
|
-
teamRoles: ['planner', 'builder'],
|
|
155
|
-
});
|
|
156
|
-
deps.backend.mutation.mockResolvedValue({
|
|
157
|
-
reminder: 'Focus on answering the question directly',
|
|
158
|
-
});
|
|
159
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ originMessageClassification: 'question' }), deps);
|
|
160
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
161
|
-
// One mutation: taskStarted (classify)
|
|
162
|
-
expect(deps.backend.mutation).toHaveBeenCalledTimes(1);
|
|
163
|
-
const output = getAllLogOutput();
|
|
164
|
-
expect(output).toContain('Task acknowledged and classified');
|
|
165
|
-
expect(output).toContain('Classification: question');
|
|
166
|
-
expect(output).toContain('Focus on answering the question directly');
|
|
167
|
-
});
|
|
168
|
-
it('starts task and classifies as follow_up', async () => {
|
|
169
|
-
const deps = createMockDeps();
|
|
170
|
-
deps.backend.query.mockResolvedValue({
|
|
171
|
-
teamEntryPoint: 'planner',
|
|
172
|
-
teamRoles: ['planner', 'builder'],
|
|
173
|
-
});
|
|
174
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ originMessageClassification: 'follow_up' }), deps);
|
|
175
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
176
|
-
// taskStarted (classify)
|
|
177
|
-
expect(deps.backend.mutation).toHaveBeenCalledTimes(1);
|
|
178
|
-
const output = getAllLogOutput();
|
|
179
|
-
expect(output).toContain('Classification: follow_up');
|
|
180
|
-
});
|
|
181
|
-
it('starts task and classifies as new_feature with stdin', async () => {
|
|
182
|
-
const deps = createMockDeps();
|
|
183
|
-
deps.backend.query.mockResolvedValue({
|
|
184
|
-
teamEntryPoint: 'planner',
|
|
185
|
-
teamRoles: ['planner', 'builder'],
|
|
186
|
-
});
|
|
187
|
-
deps.backend.mutation.mockResolvedValue({
|
|
188
|
-
reminder: null,
|
|
189
|
-
});
|
|
190
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({
|
|
191
|
-
originMessageClassification: 'new_feature',
|
|
192
|
-
rawStdin: '---TITLE---\nTest\n---DESCRIPTION---\nDesc\n---TECH_SPECS---\nSpecs',
|
|
193
|
-
}), deps);
|
|
194
|
-
expect(exitSpy).not.toHaveBeenCalled();
|
|
195
|
-
expect(deps.backend.mutation).toHaveBeenCalledTimes(1);
|
|
196
|
-
});
|
|
197
|
-
it('exits when new_feature classification has no stdin', async () => {
|
|
198
|
-
const deps = createMockDeps();
|
|
199
|
-
deps.backend.query.mockResolvedValue({
|
|
200
|
-
teamEntryPoint: 'planner',
|
|
201
|
-
teamRoles: ['planner', 'builder'],
|
|
202
|
-
});
|
|
203
|
-
await classify(TEST_CHATROOM_ID, defaultOptions({ originMessageClassification: 'new_feature', rawStdin: '' }), deps);
|
|
204
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
205
|
-
expect(getAllErrorOutput()).toContain('new_feature classification requires stdin');
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
// -----------------------------------------------------------------------
|
|
209
|
-
// Task not found
|
|
210
|
-
// -----------------------------------------------------------------------
|
|
211
|
-
describe('task not found', () => {
|
|
212
|
-
it('exits with code 1 when task does not exist', async () => {
|
|
213
|
-
const deps = createMockDeps();
|
|
214
|
-
deps.backend.query.mockResolvedValue({
|
|
215
|
-
teamEntryPoint: 'planner',
|
|
216
|
-
teamRoles: ['planner', 'builder'],
|
|
217
|
-
});
|
|
218
|
-
// First call returns chatroom, second call returns null for task
|
|
219
|
-
deps.backend.query
|
|
220
|
-
.mockResolvedValueOnce({
|
|
221
|
-
teamEntryPoint: 'planner',
|
|
222
|
-
teamRoles: ['planner', 'builder'],
|
|
223
|
-
})
|
|
224
|
-
.mockResolvedValueOnce(null);
|
|
225
|
-
await classify(TEST_CHATROOM_ID, defaultOptions(), deps);
|
|
226
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
227
|
-
expect(getAllErrorOutput()).toContain('Task with ID');
|
|
228
|
-
expect(getAllErrorOutput()).toContain('not found');
|
|
229
|
-
});
|
|
230
|
-
});
|
|
231
|
-
// -----------------------------------------------------------------------
|
|
232
|
-
// Chatroom not found
|
|
233
|
-
// -----------------------------------------------------------------------
|
|
234
|
-
describe('chatroom not found', () => {
|
|
235
|
-
it('exits with code 1 when chatroom does not exist', async () => {
|
|
236
|
-
const deps = createMockDeps();
|
|
237
|
-
deps.backend.query.mockResolvedValue(null);
|
|
238
|
-
await classify(TEST_CHATROOM_ID, defaultOptions(), deps);
|
|
239
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
240
|
-
expect(getAllErrorOutput()).toContain('Chatroom not found');
|
|
241
|
-
});
|
|
242
|
-
});
|
|
243
|
-
// -----------------------------------------------------------------------
|
|
244
|
-
// Classification failure
|
|
245
|
-
// -----------------------------------------------------------------------
|
|
246
|
-
describe('classification failure', () => {
|
|
247
|
-
it('exits with code 1 when classification mutation fails', async () => {
|
|
248
|
-
const deps = createMockDeps();
|
|
249
|
-
deps.backend.query.mockResolvedValue({
|
|
250
|
-
teamEntryPoint: 'planner',
|
|
251
|
-
teamRoles: ['planner', 'builder'],
|
|
252
|
-
});
|
|
253
|
-
// Classification fails
|
|
254
|
-
deps.backend.mutation
|
|
255
|
-
.mockRejectedValueOnce(new Error('Classification failed'));
|
|
256
|
-
await classify(TEST_CHATROOM_ID, defaultOptions(), deps);
|
|
257
|
-
expect(exitSpy).toHaveBeenCalledWith(1);
|
|
258
|
-
expect(getAllErrorOutput()).toContain('Failed to acknowledge task');
|
|
259
|
-
expect(getAllErrorOutput()).toContain('Classification failed');
|
|
260
|
-
});
|
|
261
|
-
});
|
|
262
|
-
});
|
|
263
|
-
//# sourceMappingURL=index.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.js","sourceRoot":"","sources":["../../../src/commands/classify/index.test.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAGzE,OAAO,EAAE,QAAQ,EAAwB,MAAM,YAAY,CAAC;AAE5D,8EAA8E;AAC9E,sDAAsD;AACtD,8EAA8E;AAE9E,EAAE,CAAC,IAAI,CAAC,oDAAoD,EAAE,GAAG,EAAE,CAAC,CAAC;IACnE,eAAe,EAAE,CAAC,IAA0D,EAAE,EAAE,CAC9E,mCAAmC,IAAI,CAAC,UAAU,WAAW,IAAI,CAAC,IAAI,cAAc,IAAI,CAAC,MAAM,EAAE;CACpG,CAAC,CAAC,CAAC;AAEJ,EAAE,CAAC,IAAI,CAAC,yCAAyC,EAAE,GAAG,EAAE,CAAC,CAAC;IACxD,eAAe,EAAE,GAAG,EAAE,CAAC,uCAAuC;CAC/D,CAAC,CAAC,CAAC;AAEJ,8EAA8E;AAC9E,UAAU;AACV,8EAA8E;AAE9E,MAAM,gBAAgB,GAAG,2BAA2B,CAAC;AACrD,MAAM,YAAY,GAAG,4BAA4B,CAAC;AAClD,MAAM,eAAe,GAAG,iBAAiB,CAAC;AAE1C,SAAS,cAAc,CAAC,SAAiC;IACvD,OAAO;QACL,OAAO,EAAE;YACP,QAAQ,EAAE,EAAE,CAAC,EAAE,EAAE,CAAC,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,C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,CAAC;aAClC,CAAC,CAAC;YACH,uBAAuB;YACtB,IAAI,CAAC,OAAO,CAAC,QAAqC;iBAChD,qBAAqB,CAAC,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC,CAAC;YAE7D,MAAM,QAAQ,CAAC,gBAAgB,EAAE,cAAc,EAAE,EAAE,IAAI,CAAC,CAAC;YAEzD,MAAM,CAAC,OAAO,CAAC,CAAC,oBAAoB,CAAC,CAAC,CAAC,CAAC;YACxC,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,4BAA4B,CAAC,CAAC;YACpE,MAAM,CAAC,iBAAiB,EAAE,CAAC,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QACjE,CAAC,CAAC,CAAC;IACL,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"deps.d.ts","sourceRoot":"","sources":["../../../src/commands/context/deps.ts"],"names":[],"mappings":"AAAA,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/context/deps.ts"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Context commands for understanding chatroom state
|
|
3
|
-
*
|
|
4
|
-
* Includes:
|
|
5
|
-
* - readContext: Read conversation history and task status
|
|
6
|
-
* - newContext: Create a new explicit context (replaces pinned message)
|
|
7
|
-
* - listContexts: List recent contexts for a chatroom
|
|
8
|
-
* - inspectContext: View a specific context with details
|
|
9
|
-
*/
|
|
10
|
-
import type { ContextDeps } from './deps.js';
|
|
11
|
-
export type { ContextDeps } from './deps.js';
|
|
12
|
-
/**
|
|
13
|
-
* Read context for a specific role.
|
|
14
|
-
* Shows recent conversation history with task information.
|
|
15
|
-
*/
|
|
16
|
-
export declare function readContext(chatroomId: string, options: {
|
|
17
|
-
role: string;
|
|
18
|
-
}, deps?: ContextDeps): Promise<void>;
|
|
19
|
-
/**
|
|
20
|
-
* Create a new explicit context for a chatroom.
|
|
21
|
-
* This replaces the pinned message system with explicit context management.
|
|
22
|
-
*/
|
|
23
|
-
export declare function newContext(chatroomId: string, options: {
|
|
24
|
-
role: string;
|
|
25
|
-
content: string;
|
|
26
|
-
triggerMessageId?: string;
|
|
27
|
-
}, deps?: ContextDeps): Promise<void>;
|
|
28
|
-
/**
|
|
29
|
-
* List recent contexts for a chatroom.
|
|
30
|
-
*/
|
|
31
|
-
export declare function listContexts(chatroomId: string, options: {
|
|
32
|
-
role: string;
|
|
33
|
-
limit?: number;
|
|
34
|
-
}, deps?: ContextDeps): Promise<void>;
|
|
35
|
-
/**
|
|
36
|
-
* Inspect a specific context with staleness information.
|
|
37
|
-
*/
|
|
38
|
-
export declare function inspectContext(chatroomId: string, options: {
|
|
39
|
-
role: string;
|
|
40
|
-
contextId: string;
|
|
41
|
-
}, deps?: ContextDeps): Promise<void>;
|
|
42
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/context/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAS7C,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAqB7C;;;GAGG;AACH,wBAAsB,WAAW,CAC/B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EACzB,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CAoJf;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,EACD,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CA6Ef;AAED;;GAEG;AACH,wBAAsB,YAAY,CAChC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB,EACD,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CAwEf;AAED;;GAEG;AACH,wBAAsB,cAAc,CAClC,UAAU,EAAE,MAAM,EAClB,OAAO,EAAE;IACP,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACnB,EACD,IAAI,CAAC,EAAE,WAAW,GACjB,OAAO,CAAC,IAAI,CAAC,CAwDf"}
|