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
package/dist/index.js
CHANGED
|
@@ -9818,9 +9818,12 @@ var init_error_formatting = () => {};
|
|
|
9818
9818
|
var exports_middleware = {};
|
|
9819
9819
|
__export(exports_middleware, {
|
|
9820
9820
|
requireAuth: () => requireAuth,
|
|
9821
|
-
checkAuth: () => checkAuth
|
|
9821
|
+
checkAuth: () => checkAuth,
|
|
9822
|
+
DEFAULT_AUTH_RETRY_INTERVAL_MS: () => DEFAULT_AUTH_RETRY_INTERVAL_MS
|
|
9822
9823
|
});
|
|
9823
|
-
async function requireAuth() {
|
|
9824
|
+
async function requireAuth(opts = {}) {
|
|
9825
|
+
const retryOnNetworkError = opts.retryOnNetworkError ?? false;
|
|
9826
|
+
const retryIntervalMs = opts.retryIntervalMs ?? DEFAULT_AUTH_RETRY_INTERVAL_MS;
|
|
9824
9827
|
if (!isAuthenticated()) {
|
|
9825
9828
|
const otherUrls = getOtherSessionUrls();
|
|
9826
9829
|
const currentUrl = getConvexUrl();
|
|
@@ -9853,40 +9856,61 @@ async function requireAuth() {
|
|
|
9853
9856
|
`);
|
|
9854
9857
|
process.exit(1);
|
|
9855
9858
|
}
|
|
9856
|
-
|
|
9857
|
-
|
|
9858
|
-
|
|
9859
|
-
|
|
9860
|
-
|
|
9861
|
-
|
|
9862
|
-
|
|
9859
|
+
const convexUrl = getConvexUrl();
|
|
9860
|
+
let consecutiveNetworkFailures = 0;
|
|
9861
|
+
while (true) {
|
|
9862
|
+
try {
|
|
9863
|
+
const client2 = await getConvexClient();
|
|
9864
|
+
const validation = await client2.query(api.cliAuth.validateSession, {
|
|
9865
|
+
sessionId
|
|
9866
|
+
});
|
|
9867
|
+
if (!validation.valid) {
|
|
9868
|
+
console.error(`
|
|
9863
9869
|
❌ Error: Session invalid - ${validation.reason}`);
|
|
9870
|
+
console.error(`
|
|
9871
|
+
Please re-authenticate:`);
|
|
9872
|
+
console.error(` $ chatroom auth login
|
|
9873
|
+
`);
|
|
9874
|
+
process.exit(1);
|
|
9875
|
+
}
|
|
9876
|
+
await client2.mutation(api.cliAuth.touchSession, { sessionId });
|
|
9877
|
+
if (consecutiveNetworkFailures > 0) {
|
|
9878
|
+
console.log(`✅ Backend reachable again at ${convexUrl}`);
|
|
9879
|
+
consecutiveNetworkFailures = 0;
|
|
9880
|
+
}
|
|
9881
|
+
return {
|
|
9882
|
+
sessionId,
|
|
9883
|
+
userId: validation.userId,
|
|
9884
|
+
userName: validation.userName
|
|
9885
|
+
};
|
|
9886
|
+
} catch (error) {
|
|
9887
|
+
if (isNetworkError(error)) {
|
|
9888
|
+
if (!retryOnNetworkError) {
|
|
9889
|
+
formatConnectivityError(error, convexUrl);
|
|
9890
|
+
process.exit(1);
|
|
9891
|
+
return;
|
|
9892
|
+
}
|
|
9893
|
+
consecutiveNetworkFailures++;
|
|
9894
|
+
const retrySec = retryIntervalMs / 1000;
|
|
9895
|
+
if (consecutiveNetworkFailures === 1) {
|
|
9896
|
+
formatConnectivityError(error, convexUrl);
|
|
9897
|
+
console.log(`⏳ Backend not reachable. Retrying every ${retrySec}s...`);
|
|
9898
|
+
} else {
|
|
9899
|
+
console.log(`❌ Backend still unreachable (attempt ${consecutiveNetworkFailures}, retrying in ${retrySec}s)`);
|
|
9900
|
+
}
|
|
9901
|
+
await new Promise((resolve) => setTimeout(resolve, retryIntervalMs));
|
|
9902
|
+
continue;
|
|
9903
|
+
}
|
|
9904
|
+
const err = error;
|
|
9905
|
+
console.error(`
|
|
9906
|
+
❌ Error: Could not validate session`);
|
|
9907
|
+
console.error(` ${err.message}`);
|
|
9864
9908
|
console.error(`
|
|
9865
9909
|
Please re-authenticate:`);
|
|
9866
9910
|
console.error(` $ chatroom auth login
|
|
9867
9911
|
`);
|
|
9868
9912
|
process.exit(1);
|
|
9869
9913
|
}
|
|
9870
|
-
await client2.mutation(api.cliAuth.touchSession, { sessionId });
|
|
9871
|
-
return {
|
|
9872
|
-
sessionId,
|
|
9873
|
-
userId: validation.userId,
|
|
9874
|
-
userName: validation.userName
|
|
9875
|
-
};
|
|
9876
|
-
} catch (error) {
|
|
9877
|
-
if (isNetworkError(error)) {
|
|
9878
|
-
formatConnectivityError(error, getConvexUrl());
|
|
9879
|
-
process.exit(1);
|
|
9880
|
-
}
|
|
9881
|
-
const err = error;
|
|
9882
|
-
console.error(`
|
|
9883
|
-
❌ Error: Could not validate session`);
|
|
9884
|
-
console.error(` ${err.message}`);
|
|
9885
|
-
console.error(`
|
|
9886
|
-
Please re-authenticate:`);
|
|
9887
|
-
console.error(` $ chatroom auth login
|
|
9888
|
-
`);
|
|
9889
|
-
process.exit(1);
|
|
9890
9914
|
}
|
|
9891
9915
|
}
|
|
9892
9916
|
async function checkAuth() {
|
|
@@ -9917,6 +9941,7 @@ async function checkAuth() {
|
|
|
9917
9941
|
return null;
|
|
9918
9942
|
}
|
|
9919
9943
|
}
|
|
9944
|
+
var DEFAULT_AUTH_RETRY_INTERVAL_MS = 1e4;
|
|
9920
9945
|
var init_middleware = __esm(() => {
|
|
9921
9946
|
init_storage();
|
|
9922
9947
|
init_api3();
|
|
@@ -10288,91 +10313,10 @@ class BaseCLIAgentService {
|
|
|
10288
10313
|
var KILL_TIMEOUT_MS = 5000, POLL_INTERVAL_MS = 200;
|
|
10289
10314
|
var init_base_cli_agent_service = () => {};
|
|
10290
10315
|
|
|
10291
|
-
// src/infrastructure/services/remote-agents/opencode/opencode-json-reader.ts
|
|
10292
|
-
import { createInterface } from "node:readline";
|
|
10293
|
-
|
|
10294
|
-
class OpenCodeJsonReader {
|
|
10295
|
-
textCallbacks = [];
|
|
10296
|
-
toolUseCallbacks = [];
|
|
10297
|
-
stepStartCallbacks = [];
|
|
10298
|
-
stepFinishCallbacks = [];
|
|
10299
|
-
agentEndCallbacks = [];
|
|
10300
|
-
anyEventCallbacks = [];
|
|
10301
|
-
constructor(stream) {
|
|
10302
|
-
const rl = createInterface({ input: stream, crlfDelay: Infinity });
|
|
10303
|
-
rl.on("line", (line) => this._handleLine(line));
|
|
10304
|
-
}
|
|
10305
|
-
onText(cb) {
|
|
10306
|
-
this.textCallbacks.push(cb);
|
|
10307
|
-
}
|
|
10308
|
-
onToolUse(cb) {
|
|
10309
|
-
this.toolUseCallbacks.push(cb);
|
|
10310
|
-
}
|
|
10311
|
-
onStepStart(cb) {
|
|
10312
|
-
this.stepStartCallbacks.push(cb);
|
|
10313
|
-
}
|
|
10314
|
-
onStepFinish(cb) {
|
|
10315
|
-
this.stepFinishCallbacks.push(cb);
|
|
10316
|
-
}
|
|
10317
|
-
onAgentEnd(cb) {
|
|
10318
|
-
this.agentEndCallbacks.push(cb);
|
|
10319
|
-
}
|
|
10320
|
-
onAnyEvent(cb) {
|
|
10321
|
-
this.anyEventCallbacks.push(cb);
|
|
10322
|
-
}
|
|
10323
|
-
_handleLine(line) {
|
|
10324
|
-
const trimmed = line.trim();
|
|
10325
|
-
if (!trimmed)
|
|
10326
|
-
return;
|
|
10327
|
-
let event;
|
|
10328
|
-
try {
|
|
10329
|
-
event = JSON.parse(trimmed);
|
|
10330
|
-
} catch {
|
|
10331
|
-
return;
|
|
10332
|
-
}
|
|
10333
|
-
for (const cb of this.anyEventCallbacks)
|
|
10334
|
-
cb();
|
|
10335
|
-
const type = event["type"];
|
|
10336
|
-
if (type === "text") {
|
|
10337
|
-
const part = event["part"];
|
|
10338
|
-
if (part && typeof part["text"] === "string") {
|
|
10339
|
-
for (const cb of this.textCallbacks)
|
|
10340
|
-
cb(part["text"]);
|
|
10341
|
-
}
|
|
10342
|
-
return;
|
|
10343
|
-
}
|
|
10344
|
-
if (type === "tool_use") {
|
|
10345
|
-
const part = event["part"] ?? {};
|
|
10346
|
-
for (const cb of this.toolUseCallbacks)
|
|
10347
|
-
cb(part);
|
|
10348
|
-
return;
|
|
10349
|
-
}
|
|
10350
|
-
if (type === "step_start") {
|
|
10351
|
-
for (const cb of this.stepStartCallbacks)
|
|
10352
|
-
cb();
|
|
10353
|
-
return;
|
|
10354
|
-
}
|
|
10355
|
-
if (type === "step_finish") {
|
|
10356
|
-
const part = event["part"];
|
|
10357
|
-
const reason = typeof part?.["reason"] === "string" ? part["reason"] : "";
|
|
10358
|
-
for (const cb of this.stepFinishCallbacks)
|
|
10359
|
-
cb(reason);
|
|
10360
|
-
if (reason === "stop") {
|
|
10361
|
-
for (const cb of this.agentEndCallbacks)
|
|
10362
|
-
cb();
|
|
10363
|
-
}
|
|
10364
|
-
return;
|
|
10365
|
-
}
|
|
10366
|
-
}
|
|
10367
|
-
}
|
|
10368
|
-
var init_opencode_json_reader = () => {};
|
|
10369
|
-
|
|
10370
10316
|
// src/infrastructure/services/remote-agents/opencode/opencode-agent-service.ts
|
|
10371
|
-
import { createInterface as createInterface2 } from "node:readline";
|
|
10372
10317
|
var OPENCODE_COMMAND = "opencode", OpenCodeAgentService;
|
|
10373
10318
|
var init_opencode_agent_service = __esm(() => {
|
|
10374
10319
|
init_base_cli_agent_service();
|
|
10375
|
-
init_opencode_json_reader();
|
|
10376
10320
|
OpenCodeAgentService = class OpenCodeAgentService extends BaseCLIAgentService {
|
|
10377
10321
|
id = "opencode";
|
|
10378
10322
|
displayName = "OpenCode";
|
|
@@ -10401,7 +10345,7 @@ var init_opencode_agent_service = __esm(() => {
|
|
|
10401
10345
|
}
|
|
10402
10346
|
}
|
|
10403
10347
|
async spawn(options) {
|
|
10404
|
-
const args = ["run"
|
|
10348
|
+
const args = ["run"];
|
|
10405
10349
|
if (options.model) {
|
|
10406
10350
|
args.push("--model", options.model);
|
|
10407
10351
|
}
|
|
@@ -10431,112 +10375,18 @@ ${options.prompt}` : options.prompt;
|
|
|
10431
10375
|
const pid = childProcess.pid;
|
|
10432
10376
|
const context = options.context;
|
|
10433
10377
|
const entry = this.registerProcess(pid, context);
|
|
10434
|
-
const roleTag = context.role ?? "unknown";
|
|
10435
|
-
const chatroomSuffix = context.chatroomId ? `@${context.chatroomId.slice(-6)}` : "";
|
|
10436
|
-
const logPrefix = `[oc:${roleTag}${chatroomSuffix}`;
|
|
10437
10378
|
const outputCallbacks = [];
|
|
10438
10379
|
if (childProcess.stdout) {
|
|
10439
|
-
|
|
10440
|
-
|
|
10441
|
-
const flushText = () => {
|
|
10442
|
-
if (!textBuffer)
|
|
10443
|
-
return;
|
|
10444
|
-
for (const line of textBuffer.split(`
|
|
10445
|
-
`)) {
|
|
10446
|
-
if (line)
|
|
10447
|
-
process.stdout.write(`${logPrefix} text] ${line}
|
|
10448
|
-
`);
|
|
10449
|
-
}
|
|
10450
|
-
textBuffer = "";
|
|
10451
|
-
};
|
|
10452
|
-
reader.onText((text) => {
|
|
10453
|
-
textBuffer += text;
|
|
10454
|
-
flushText();
|
|
10380
|
+
childProcess.stdout.pipe(process.stdout, { end: false });
|
|
10381
|
+
childProcess.stdout.on("data", () => {
|
|
10455
10382
|
entry.lastOutputAt = Date.now();
|
|
10456
10383
|
for (const cb of outputCallbacks)
|
|
10457
10384
|
cb();
|
|
10458
10385
|
});
|
|
10459
|
-
reader.onToolUse((part) => {
|
|
10460
|
-
flushText();
|
|
10461
|
-
const toolName = typeof part["tool"] === "string" ? part["tool"] : "unknown";
|
|
10462
|
-
const state = part["state"];
|
|
10463
|
-
const input = state?.["input"];
|
|
10464
|
-
const output = state?.["output"];
|
|
10465
|
-
if (input && typeof input === "object") {
|
|
10466
|
-
const inputStr = JSON.stringify(input);
|
|
10467
|
-
const truncated = inputStr.length > 200 ? inputStr.slice(0, 200) + "..." : inputStr;
|
|
10468
|
-
process.stdout.write(`${logPrefix} tool: ${toolName} input: ${truncated}]
|
|
10469
|
-
`);
|
|
10470
|
-
} else {
|
|
10471
|
-
process.stdout.write(`${logPrefix} tool: ${toolName}]
|
|
10472
|
-
`);
|
|
10473
|
-
}
|
|
10474
|
-
if (output && typeof output === "string") {
|
|
10475
|
-
const truncated = output.length > 500 ? output.slice(0, 500) + "..." : output;
|
|
10476
|
-
for (const line of truncated.split(`
|
|
10477
|
-
`)) {
|
|
10478
|
-
if (line)
|
|
10479
|
-
process.stdout.write(`${logPrefix} tool_output] ${line}
|
|
10480
|
-
`);
|
|
10481
|
-
}
|
|
10482
|
-
}
|
|
10483
|
-
entry.lastOutputAt = Date.now();
|
|
10484
|
-
for (const cb of outputCallbacks)
|
|
10485
|
-
cb();
|
|
10486
|
-
});
|
|
10487
|
-
reader.onAnyEvent(() => {
|
|
10488
|
-
entry.lastOutputAt = Date.now();
|
|
10489
|
-
for (const cb of outputCallbacks)
|
|
10490
|
-
cb();
|
|
10491
|
-
});
|
|
10492
|
-
reader.onStepStart(() => {
|
|
10493
|
-
process.stdout.write(`${logPrefix} step_start]
|
|
10494
|
-
`);
|
|
10495
|
-
});
|
|
10496
|
-
reader.onStepFinish((reason) => {
|
|
10497
|
-
process.stdout.write(`${logPrefix} step_finish: ${reason}]
|
|
10498
|
-
`);
|
|
10499
|
-
});
|
|
10500
|
-
reader.onAgentEnd(() => {
|
|
10501
|
-
flushText();
|
|
10502
|
-
process.stdout.write(`${logPrefix} agent_end]
|
|
10503
|
-
`);
|
|
10504
|
-
});
|
|
10505
|
-
if (childProcess.stderr) {
|
|
10506
|
-
const stderrRl = createInterface2({ input: childProcess.stderr, crlfDelay: Infinity });
|
|
10507
|
-
stderrRl.on("line", (line) => {
|
|
10508
|
-
if (line.trim()) {
|
|
10509
|
-
process.stdout.write(`${logPrefix} log] ${line}
|
|
10510
|
-
`);
|
|
10511
|
-
}
|
|
10512
|
-
entry.lastOutputAt = Date.now();
|
|
10513
|
-
for (const cb of outputCallbacks)
|
|
10514
|
-
cb();
|
|
10515
|
-
});
|
|
10516
|
-
}
|
|
10517
|
-
return {
|
|
10518
|
-
pid,
|
|
10519
|
-
onExit: (cb) => {
|
|
10520
|
-
childProcess.on("exit", (code2, signal) => {
|
|
10521
|
-
this.deleteProcess(pid);
|
|
10522
|
-
cb({ code: code2, signal, context });
|
|
10523
|
-
});
|
|
10524
|
-
},
|
|
10525
|
-
onOutput: (cb) => {
|
|
10526
|
-
outputCallbacks.push(cb);
|
|
10527
|
-
},
|
|
10528
|
-
onAgentEnd: (cb) => {
|
|
10529
|
-
reader.onAgentEnd(cb);
|
|
10530
|
-
}
|
|
10531
|
-
};
|
|
10532
10386
|
}
|
|
10533
10387
|
if (childProcess.stderr) {
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
if (line.trim()) {
|
|
10537
|
-
process.stdout.write(`${logPrefix} log] ${line}
|
|
10538
|
-
`);
|
|
10539
|
-
}
|
|
10388
|
+
childProcess.stderr.pipe(process.stderr, { end: false });
|
|
10389
|
+
childProcess.stderr.on("data", () => {
|
|
10540
10390
|
entry.lastOutputAt = Date.now();
|
|
10541
10391
|
for (const cb of outputCallbacks)
|
|
10542
10392
|
cb();
|
|
@@ -10561,11 +10411,10 @@ ${options.prompt}` : options.prompt;
|
|
|
10561
10411
|
// src/infrastructure/services/remote-agents/opencode/index.ts
|
|
10562
10412
|
var init_opencode = __esm(() => {
|
|
10563
10413
|
init_opencode_agent_service();
|
|
10564
|
-
init_opencode_json_reader();
|
|
10565
10414
|
});
|
|
10566
10415
|
|
|
10567
10416
|
// src/infrastructure/services/remote-agents/pi/pi-rpc-reader.ts
|
|
10568
|
-
import { createInterface
|
|
10417
|
+
import { createInterface } from "node:readline";
|
|
10569
10418
|
|
|
10570
10419
|
class PiRpcReader {
|
|
10571
10420
|
textDeltaCallbacks = [];
|
|
@@ -10575,7 +10424,7 @@ class PiRpcReader {
|
|
|
10575
10424
|
toolResultCallbacks = [];
|
|
10576
10425
|
anyEventCallbacks = [];
|
|
10577
10426
|
constructor(stream) {
|
|
10578
|
-
const rl =
|
|
10427
|
+
const rl = createInterface({ input: stream, crlfDelay: Infinity });
|
|
10579
10428
|
rl.on("line", (line) => this._handleLine(line));
|
|
10580
10429
|
}
|
|
10581
10430
|
onTextDelta(cb) {
|
|
@@ -10859,7 +10708,7 @@ var init_pi = __esm(() => {
|
|
|
10859
10708
|
});
|
|
10860
10709
|
|
|
10861
10710
|
// src/infrastructure/services/remote-agents/cursor/cursor-stream-reader.ts
|
|
10862
|
-
import { createInterface as
|
|
10711
|
+
import { createInterface as createInterface2 } from "node:readline";
|
|
10863
10712
|
|
|
10864
10713
|
class CursorStreamReader {
|
|
10865
10714
|
textCallbacks = [];
|
|
@@ -10868,7 +10717,7 @@ class CursorStreamReader {
|
|
|
10868
10717
|
toolResultCallbacks = [];
|
|
10869
10718
|
anyEventCallbacks = [];
|
|
10870
10719
|
constructor(stream) {
|
|
10871
|
-
const rl =
|
|
10720
|
+
const rl = createInterface2({ input: stream, crlfDelay: Infinity });
|
|
10872
10721
|
rl.on("line", (line) => this._handleLine(line));
|
|
10873
10722
|
}
|
|
10874
10723
|
onText(cb) {
|
|
@@ -11141,7 +10990,7 @@ var init_cursor = __esm(() => {
|
|
|
11141
10990
|
});
|
|
11142
10991
|
|
|
11143
10992
|
// src/infrastructure/services/remote-agents/copilot/copilot-stream-reader.ts
|
|
11144
|
-
import { createInterface as
|
|
10993
|
+
import { createInterface as createInterface3 } from "node:readline";
|
|
11145
10994
|
|
|
11146
10995
|
class CopilotStreamReader {
|
|
11147
10996
|
textCallbacks = [];
|
|
@@ -11151,7 +11000,7 @@ class CopilotStreamReader {
|
|
|
11151
11000
|
toolCallCallbacks = [];
|
|
11152
11001
|
toolResultCallbacks = [];
|
|
11153
11002
|
constructor(stream) {
|
|
11154
|
-
const rl =
|
|
11003
|
+
const rl = createInterface3({ input: stream, crlfDelay: Infinity });
|
|
11155
11004
|
rl.on("line", (line) => this._handleLine(line));
|
|
11156
11005
|
}
|
|
11157
11006
|
onText(cb) {
|
|
@@ -11318,7 +11167,7 @@ var init_registry = __esm(() => {
|
|
|
11318
11167
|
});
|
|
11319
11168
|
|
|
11320
11169
|
// src/infrastructure/services/remote-agents/claude/claude-stream-reader.ts
|
|
11321
|
-
import { createInterface as
|
|
11170
|
+
import { createInterface as createInterface4 } from "node:readline";
|
|
11322
11171
|
|
|
11323
11172
|
class ClaudeStreamReader {
|
|
11324
11173
|
textCallbacks = [];
|
|
@@ -11326,7 +11175,7 @@ class ClaudeStreamReader {
|
|
|
11326
11175
|
endCallbacks = [];
|
|
11327
11176
|
toolUseCallbacks = [];
|
|
11328
11177
|
constructor(stream) {
|
|
11329
|
-
const rl =
|
|
11178
|
+
const rl = createInterface4({ input: stream, crlfDelay: Infinity });
|
|
11330
11179
|
rl.on("line", (line) => {
|
|
11331
11180
|
if (!line.trim())
|
|
11332
11181
|
return;
|
|
@@ -11596,13 +11445,17 @@ import { randomUUID } from "node:crypto";
|
|
|
11596
11445
|
import { existsSync as existsSync2, mkdirSync as mkdirSync2, readFileSync as readFileSync3, writeFileSync as writeFileSync2, renameSync } from "node:fs";
|
|
11597
11446
|
import { homedir as homedir2, hostname as hostname2 } from "node:os";
|
|
11598
11447
|
import { join as join3 } from "node:path";
|
|
11448
|
+
function chatroomConfigDir() {
|
|
11449
|
+
return join3(homedir2(), ".chatroom");
|
|
11450
|
+
}
|
|
11599
11451
|
function ensureConfigDir2() {
|
|
11600
|
-
|
|
11601
|
-
|
|
11452
|
+
const dir = chatroomConfigDir();
|
|
11453
|
+
if (!existsSync2(dir)) {
|
|
11454
|
+
mkdirSync2(dir, { recursive: true, mode: 448 });
|
|
11602
11455
|
}
|
|
11603
11456
|
}
|
|
11604
11457
|
function getMachineConfigPath() {
|
|
11605
|
-
return join3(
|
|
11458
|
+
return join3(chatroomConfigDir(), MACHINE_FILE);
|
|
11606
11459
|
}
|
|
11607
11460
|
function loadConfigFile() {
|
|
11608
11461
|
const configPath = getMachineConfigPath();
|
|
@@ -11656,9 +11509,14 @@ function createNewEndpointConfig() {
|
|
|
11656
11509
|
harnessVersions: detectHarnessVersions(availableHarnesses)
|
|
11657
11510
|
};
|
|
11658
11511
|
}
|
|
11659
|
-
function ensureMachineRegistered() {
|
|
11512
|
+
function ensureMachineRegistered(options = {}) {
|
|
11513
|
+
const { allowCreate = false } = options;
|
|
11660
11514
|
let config = loadMachineConfig();
|
|
11661
11515
|
if (!config) {
|
|
11516
|
+
if (!allowCreate) {
|
|
11517
|
+
const convexUrl = getConvexUrl();
|
|
11518
|
+
throw new Error(`Machine not registered for endpoint "${convexUrl}". Run "chatroom machine start" to create a new machine identity for this deployment.`);
|
|
11519
|
+
}
|
|
11662
11520
|
config = createNewEndpointConfig();
|
|
11663
11521
|
saveMachineConfig(config);
|
|
11664
11522
|
} else {
|
|
@@ -11680,11 +11538,10 @@ function getMachineId() {
|
|
|
11680
11538
|
const config = loadMachineConfig();
|
|
11681
11539
|
return config?.machineId ?? null;
|
|
11682
11540
|
}
|
|
11683
|
-
var
|
|
11541
|
+
var MACHINE_FILE = "machine.json";
|
|
11684
11542
|
var init_storage2 = __esm(() => {
|
|
11685
11543
|
init_detection();
|
|
11686
11544
|
init_client2();
|
|
11687
|
-
CHATROOM_DIR2 = join3(homedir2(), ".chatroom");
|
|
11688
11545
|
});
|
|
11689
11546
|
|
|
11690
11547
|
// src/infrastructure/machine/daemon-state.ts
|
|
@@ -11780,10 +11637,10 @@ function loadEventCursor(machineId) {
|
|
|
11780
11637
|
const state = loadDaemonState(machineId);
|
|
11781
11638
|
return state?.lastSeenEventId ?? null;
|
|
11782
11639
|
}
|
|
11783
|
-
var
|
|
11640
|
+
var CHATROOM_DIR2, STATE_DIR, STATE_VERSION = "1";
|
|
11784
11641
|
var init_daemon_state = __esm(() => {
|
|
11785
|
-
|
|
11786
|
-
STATE_DIR = join4(
|
|
11642
|
+
CHATROOM_DIR2 = join4(homedir3(), ".chatroom");
|
|
11643
|
+
STATE_DIR = join4(CHATROOM_DIR2, "machines", "state");
|
|
11787
11644
|
});
|
|
11788
11645
|
|
|
11789
11646
|
// src/infrastructure/machine/index.ts
|
|
@@ -12146,7 +12003,7 @@ var init_init = __esm(() => {
|
|
|
12146
12003
|
// src/tools/output.ts
|
|
12147
12004
|
import { join as join5 } from "node:path";
|
|
12148
12005
|
function resolveChatroomDir(workingDir) {
|
|
12149
|
-
return join5(workingDir,
|
|
12006
|
+
return join5(workingDir, CHATROOM_DIR3);
|
|
12150
12007
|
}
|
|
12151
12008
|
async function ensureChatroomDir(deps, workingDir) {
|
|
12152
12009
|
const dir = resolveChatroomDir(workingDir);
|
|
@@ -12155,7 +12012,7 @@ async function ensureChatroomDir(deps, workingDir) {
|
|
|
12155
12012
|
}
|
|
12156
12013
|
async function ensureGitignore(deps, workingDir) {
|
|
12157
12014
|
const gitignorePath = join5(workingDir, ".gitignore");
|
|
12158
|
-
const entry =
|
|
12015
|
+
const entry = CHATROOM_DIR3;
|
|
12159
12016
|
let content = "";
|
|
12160
12017
|
try {
|
|
12161
12018
|
content = await deps.fs.readFile(gitignorePath, "utf8");
|
|
@@ -12186,7 +12043,7 @@ function generateOutputPath(workingDir, toolName, extension, date) {
|
|
|
12186
12043
|
const filename = `${toolName}-${timestamp}.${extension}`;
|
|
12187
12044
|
return join5(resolveChatroomDir(workingDir), filename);
|
|
12188
12045
|
}
|
|
12189
|
-
var
|
|
12046
|
+
var CHATROOM_DIR3 = ".chatroom";
|
|
12190
12047
|
var init_output = () => {};
|
|
12191
12048
|
|
|
12192
12049
|
// ../../node_modules/.pnpm/yocto-queue@1.2.2/node_modules/yocto-queue/index.js
|
|
@@ -51223,7 +51080,7 @@ async function createDefaultDeps7() {
|
|
|
51223
51080
|
}
|
|
51224
51081
|
async function registerAgent(chatroomId, options, deps) {
|
|
51225
51082
|
const d = deps ?? await createDefaultDeps7();
|
|
51226
|
-
const { role, type } = options;
|
|
51083
|
+
const { role, type, allowTypeChange } = options;
|
|
51227
51084
|
const sessionId = d.session.getSessionId();
|
|
51228
51085
|
if (!sessionId) {
|
|
51229
51086
|
const otherUrls = d.session.getOtherSessionUrls();
|
|
@@ -51268,11 +51125,10 @@ async function registerAgent(chatroomId, options, deps) {
|
|
|
51268
51125
|
}
|
|
51269
51126
|
const config = loadMachineConfig();
|
|
51270
51127
|
try {
|
|
51271
|
-
await d.backend.mutation(api.machines.
|
|
51128
|
+
await d.backend.mutation(api.machines.recordRemoteAgentRegistered, {
|
|
51272
51129
|
sessionId,
|
|
51273
51130
|
chatroomId,
|
|
51274
51131
|
role,
|
|
51275
|
-
agentType: "remote",
|
|
51276
51132
|
machineId
|
|
51277
51133
|
});
|
|
51278
51134
|
} catch {}
|
|
@@ -51281,11 +51137,11 @@ async function registerAgent(chatroomId, options, deps) {
|
|
|
51281
51137
|
console.log(` Working directory: ${process.cwd()}`);
|
|
51282
51138
|
} else {
|
|
51283
51139
|
try {
|
|
51284
|
-
await d.backend.mutation(api.machines.
|
|
51140
|
+
await d.backend.mutation(api.machines.recordCustomAgentRegistered, {
|
|
51285
51141
|
sessionId,
|
|
51286
51142
|
chatroomId,
|
|
51287
51143
|
role,
|
|
51288
|
-
|
|
51144
|
+
allowTypeChange
|
|
51289
51145
|
});
|
|
51290
51146
|
console.log(`✅ Registered as custom agent for role "${role}"`);
|
|
51291
51147
|
} catch (error) {
|
|
@@ -52391,6 +52247,7 @@ var init_report_progress = __esm(() => {
|
|
|
52391
52247
|
// src/commands/backlog/index.ts
|
|
52392
52248
|
var exports_backlog = {};
|
|
52393
52249
|
__export(exports_backlog, {
|
|
52250
|
+
updateBacklog: () => updateBacklog,
|
|
52394
52251
|
scoreBacklog: () => scoreBacklog,
|
|
52395
52252
|
reopenBacklog: () => reopenBacklog,
|
|
52396
52253
|
patchBacklog: () => patchBacklog,
|
|
@@ -52538,6 +52395,7 @@ async function completeBacklog(chatroomId, options, deps) {
|
|
|
52538
52395
|
try {
|
|
52539
52396
|
const result = await d.backend.mutation(api.backlog.completeBacklogItem, {
|
|
52540
52397
|
sessionId,
|
|
52398
|
+
chatroomId,
|
|
52541
52399
|
itemId: options.backlogItemId
|
|
52542
52400
|
});
|
|
52543
52401
|
console.log("");
|
|
@@ -52562,6 +52420,7 @@ async function reopenBacklog(chatroomId, options, deps) {
|
|
|
52562
52420
|
try {
|
|
52563
52421
|
await d.backend.mutation(api.backlog.reopenBacklogItem, {
|
|
52564
52422
|
sessionId,
|
|
52423
|
+
chatroomId,
|
|
52565
52424
|
itemId: options.backlogItemId
|
|
52566
52425
|
});
|
|
52567
52426
|
console.log("");
|
|
@@ -52615,6 +52474,7 @@ async function patchBacklog(chatroomId, options, deps) {
|
|
|
52615
52474
|
try {
|
|
52616
52475
|
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
52617
52476
|
sessionId,
|
|
52477
|
+
chatroomId,
|
|
52618
52478
|
itemId: options.backlogItemId,
|
|
52619
52479
|
complexity: options.complexity,
|
|
52620
52480
|
value: options.value,
|
|
@@ -52678,6 +52538,7 @@ async function scoreBacklog(chatroomId, options, deps) {
|
|
|
52678
52538
|
try {
|
|
52679
52539
|
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
52680
52540
|
sessionId,
|
|
52541
|
+
chatroomId,
|
|
52681
52542
|
itemId: options.backlogItemId,
|
|
52682
52543
|
complexity: options.complexity,
|
|
52683
52544
|
value: options.value,
|
|
@@ -52714,6 +52575,7 @@ async function markForReviewBacklog(chatroomId, options, deps) {
|
|
|
52714
52575
|
try {
|
|
52715
52576
|
await d.backend.mutation(api.backlog.markBacklogItemForReview, {
|
|
52716
52577
|
sessionId,
|
|
52578
|
+
chatroomId,
|
|
52717
52579
|
itemId: options.backlogItemId
|
|
52718
52580
|
});
|
|
52719
52581
|
console.log("");
|
|
@@ -52824,6 +52686,36 @@ async function historyBacklog(chatroomId, options, deps) {
|
|
|
52824
52686
|
return;
|
|
52825
52687
|
}
|
|
52826
52688
|
}
|
|
52689
|
+
async function updateBacklog(chatroomId, options, deps) {
|
|
52690
|
+
const d = deps ?? await createDefaultDeps11();
|
|
52691
|
+
const sessionId = requireAuth2(d);
|
|
52692
|
+
validateChatroomId(chatroomId);
|
|
52693
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
52694
|
+
console.error(`❌ Backlog item ID is required`);
|
|
52695
|
+
process.exit(1);
|
|
52696
|
+
return;
|
|
52697
|
+
}
|
|
52698
|
+
if (!options.content || options.content.trim().length === 0) {
|
|
52699
|
+
console.error(`❌ Content is empty. Provide content via --content-file or stdin.`);
|
|
52700
|
+
process.exit(1);
|
|
52701
|
+
return;
|
|
52702
|
+
}
|
|
52703
|
+
try {
|
|
52704
|
+
await d.backend.mutation(api.backlog.updateBacklogItem, {
|
|
52705
|
+
sessionId,
|
|
52706
|
+
itemId: options.backlogItemId,
|
|
52707
|
+
content: options.content.trim()
|
|
52708
|
+
});
|
|
52709
|
+
console.log("");
|
|
52710
|
+
console.log("✅ Backlog item content updated");
|
|
52711
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
52712
|
+
console.log("");
|
|
52713
|
+
} catch (error) {
|
|
52714
|
+
console.error(`❌ Failed to update backlog item: ${getErrorMessage(error)}`);
|
|
52715
|
+
process.exit(1);
|
|
52716
|
+
return;
|
|
52717
|
+
}
|
|
52718
|
+
}
|
|
52827
52719
|
async function closeBacklog(chatroomId, options, deps) {
|
|
52828
52720
|
const d = deps ?? await createDefaultDeps11();
|
|
52829
52721
|
const sessionId = requireAuth2(d);
|
|
@@ -52833,7 +52725,8 @@ async function closeBacklog(chatroomId, options, deps) {
|
|
|
52833
52725
|
process.exit(1);
|
|
52834
52726
|
return;
|
|
52835
52727
|
}
|
|
52836
|
-
|
|
52728
|
+
const reason = options.reason.trim();
|
|
52729
|
+
if (!reason) {
|
|
52837
52730
|
console.error(`❌ Reason is required when closing a backlog item`);
|
|
52838
52731
|
process.exit(1);
|
|
52839
52732
|
return;
|
|
@@ -52841,14 +52734,15 @@ async function closeBacklog(chatroomId, options, deps) {
|
|
|
52841
52734
|
try {
|
|
52842
52735
|
await d.backend.mutation(api.backlog.closeBacklogItem, {
|
|
52843
52736
|
sessionId,
|
|
52737
|
+
chatroomId,
|
|
52844
52738
|
itemId: options.backlogItemId,
|
|
52845
|
-
reason
|
|
52739
|
+
reason
|
|
52846
52740
|
});
|
|
52847
52741
|
console.log("");
|
|
52848
52742
|
console.log("✅ Backlog item closed");
|
|
52849
52743
|
console.log(` ID: ${options.backlogItemId}`);
|
|
52850
52744
|
console.log(` Status: closed`);
|
|
52851
|
-
console.log(` Reason: ${
|
|
52745
|
+
console.log(` Reason: ${reason}`);
|
|
52852
52746
|
console.log("");
|
|
52853
52747
|
} catch (error) {
|
|
52854
52748
|
console.error(`❌ Failed to close backlog item: ${getErrorMessage(error)}`);
|
|
@@ -54686,12 +54580,12 @@ function getPidFileName() {
|
|
|
54686
54580
|
return `daemon-${getUrlHash()}.pid`;
|
|
54687
54581
|
}
|
|
54688
54582
|
function ensureChatroomDir2() {
|
|
54689
|
-
if (!existsSync4(
|
|
54690
|
-
mkdirSync4(
|
|
54583
|
+
if (!existsSync4(CHATROOM_DIR4)) {
|
|
54584
|
+
mkdirSync4(CHATROOM_DIR4, { recursive: true, mode: 448 });
|
|
54691
54585
|
}
|
|
54692
54586
|
}
|
|
54693
54587
|
function getPidFilePath() {
|
|
54694
|
-
return join7(
|
|
54588
|
+
return join7(CHATROOM_DIR4, getPidFileName());
|
|
54695
54589
|
}
|
|
54696
54590
|
function isProcessRunning(pid) {
|
|
54697
54591
|
try {
|
|
@@ -54753,10 +54647,10 @@ function acquireLock() {
|
|
|
54753
54647
|
function releaseLock() {
|
|
54754
54648
|
removePid();
|
|
54755
54649
|
}
|
|
54756
|
-
var
|
|
54650
|
+
var CHATROOM_DIR4;
|
|
54757
54651
|
var init_pid = __esm(() => {
|
|
54758
54652
|
init_client2();
|
|
54759
|
-
|
|
54653
|
+
CHATROOM_DIR4 = join7(homedir4(), ".chatroom");
|
|
54760
54654
|
});
|
|
54761
54655
|
|
|
54762
54656
|
// src/commands/machine/daemon-start/utils.ts
|
|
@@ -54899,59 +54793,6 @@ async function getFullDiff(workingDir) {
|
|
|
54899
54793
|
}
|
|
54900
54794
|
return { status: "available", content: raw, truncated: false };
|
|
54901
54795
|
}
|
|
54902
|
-
async function getPRDiffStat(workingDir, baseBranch) {
|
|
54903
|
-
const result = await runGit(`diff --stat origin/${baseBranch}...HEAD`, workingDir);
|
|
54904
|
-
if ("error" in result) {
|
|
54905
|
-
const errMsg = result.error.message;
|
|
54906
|
-
if (isEmptyRepo(errMsg)) {
|
|
54907
|
-
return { status: "no_commits" };
|
|
54908
|
-
}
|
|
54909
|
-
const classified = classifyError(errMsg);
|
|
54910
|
-
if (classified.status === "not_found")
|
|
54911
|
-
return { status: "not_found" };
|
|
54912
|
-
return classified;
|
|
54913
|
-
}
|
|
54914
|
-
const output = result.stdout;
|
|
54915
|
-
const stderr = result.stderr;
|
|
54916
|
-
if (isEmptyRepo(stderr)) {
|
|
54917
|
-
return { status: "no_commits" };
|
|
54918
|
-
}
|
|
54919
|
-
if (!output.trim()) {
|
|
54920
|
-
return {
|
|
54921
|
-
status: "available",
|
|
54922
|
-
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
54923
|
-
};
|
|
54924
|
-
}
|
|
54925
|
-
const lines = output.trim().split(`
|
|
54926
|
-
`);
|
|
54927
|
-
const summaryLine = lines[lines.length - 1] ?? "";
|
|
54928
|
-
const diffStat = parseDiffStatLine(summaryLine);
|
|
54929
|
-
return { status: "available", diffStat };
|
|
54930
|
-
}
|
|
54931
|
-
async function getPRDiff(workingDir, baseBranch) {
|
|
54932
|
-
const result = await runGit(`diff origin/${baseBranch}...HEAD`, workingDir);
|
|
54933
|
-
if ("error" in result) {
|
|
54934
|
-
const errMsg = result.error.message;
|
|
54935
|
-
if (isEmptyRepo(errMsg)) {
|
|
54936
|
-
return { status: "no_commits" };
|
|
54937
|
-
}
|
|
54938
|
-
const classified = classifyError(errMsg);
|
|
54939
|
-
if (classified.status === "not_found")
|
|
54940
|
-
return { status: "not_found" };
|
|
54941
|
-
return classified;
|
|
54942
|
-
}
|
|
54943
|
-
const stderr = result.stderr;
|
|
54944
|
-
if (isEmptyRepo(stderr)) {
|
|
54945
|
-
return { status: "no_commits" };
|
|
54946
|
-
}
|
|
54947
|
-
const raw = result.stdout;
|
|
54948
|
-
const byteLength2 = Buffer.byteLength(raw, "utf8");
|
|
54949
|
-
if (byteLength2 > FULL_DIFF_MAX_BYTES) {
|
|
54950
|
-
const truncated = Buffer.from(raw, "utf8").subarray(0, FULL_DIFF_MAX_BYTES).toString("utf8");
|
|
54951
|
-
return { status: "truncated", content: truncated, truncated: true };
|
|
54952
|
-
}
|
|
54953
|
-
return { status: "available", content: raw, truncated: false };
|
|
54954
|
-
}
|
|
54955
54796
|
async function getPRDiffByNumber(cwd, prNumber) {
|
|
54956
54797
|
const repoSlug = await getOriginRepoSlug(cwd);
|
|
54957
54798
|
const repoFlag = repoSlug ? ` --repo ${JSON.stringify(repoSlug)}` : "";
|
|
@@ -55080,7 +54921,7 @@ async function getOpenPRsForBranch(cwd, branch) {
|
|
|
55080
54921
|
return true;
|
|
55081
54922
|
return item.headRepositoryOwner.login === repoOwner;
|
|
55082
54923
|
}).map((item) => ({
|
|
55083
|
-
|
|
54924
|
+
prNumber: item.number,
|
|
55084
54925
|
title: item.title,
|
|
55085
54926
|
url: item.url,
|
|
55086
54927
|
headRefName: item.headRefName,
|
|
@@ -55110,7 +54951,7 @@ async function getAllPRs(cwd) {
|
|
|
55110
54951
|
return parsed.filter(isGHPRItem).map((item) => {
|
|
55111
54952
|
const author = typeof item.author === "object" && item.author !== null ? item.author.login : undefined;
|
|
55112
54953
|
return {
|
|
55113
|
-
|
|
54954
|
+
prNumber: item.number,
|
|
55114
54955
|
title: item.title,
|
|
55115
54956
|
url: item.url ?? "",
|
|
55116
54957
|
headRefName: item.headRefName ?? "",
|
|
@@ -55312,59 +55153,35 @@ async function processFullDiff(ctx, req) {
|
|
|
55312
55153
|
}
|
|
55313
55154
|
}
|
|
55314
55155
|
async function processPRDiff(ctx, req) {
|
|
55315
|
-
|
|
55316
|
-
|
|
55317
|
-
const result2 = await getPRDiffByNumber(req.workingDir, req.prNumber);
|
|
55318
|
-
if (result2.status === "available" || result2.status === "truncated") {
|
|
55319
|
-
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55320
|
-
sessionId: ctx.sessionId,
|
|
55321
|
-
machineId: ctx.machineId,
|
|
55322
|
-
workingDir: req.workingDir,
|
|
55323
|
-
baseBranch,
|
|
55324
|
-
diffContent: result2.content,
|
|
55325
|
-
truncated: result2.truncated,
|
|
55326
|
-
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55327
|
-
});
|
|
55328
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed: ${req.workingDir} (#${req.prNumber}, ${result2.truncated ? "truncated" : "complete"})`);
|
|
55329
|
-
} else {
|
|
55330
|
-
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55331
|
-
sessionId: ctx.sessionId,
|
|
55332
|
-
machineId: ctx.machineId,
|
|
55333
|
-
workingDir: req.workingDir,
|
|
55334
|
-
baseBranch,
|
|
55335
|
-
diffContent: "",
|
|
55336
|
-
truncated: false,
|
|
55337
|
-
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55338
|
-
});
|
|
55339
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed (empty): ${req.workingDir} (#${req.prNumber}, ${result2.status})`);
|
|
55340
|
-
}
|
|
55341
|
-
return;
|
|
55156
|
+
if (!req.prNumber) {
|
|
55157
|
+
throw new Error("PR diff request missing prNumber");
|
|
55342
55158
|
}
|
|
55343
|
-
const
|
|
55159
|
+
const baseBranch = req.baseBranch ?? "main";
|
|
55160
|
+
const result = await getPRDiffByNumber(req.workingDir, req.prNumber);
|
|
55344
55161
|
if (result.status === "available" || result.status === "truncated") {
|
|
55345
|
-
const diffStatResult = await getPRDiffStat(req.workingDir, baseBranch);
|
|
55346
|
-
const diffStat = diffStatResult.status === "available" ? diffStatResult.diffStat : { filesChanged: 0, insertions: 0, deletions: 0 };
|
|
55347
55162
|
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55348
55163
|
sessionId: ctx.sessionId,
|
|
55349
55164
|
machineId: ctx.machineId,
|
|
55350
55165
|
workingDir: req.workingDir,
|
|
55351
55166
|
baseBranch,
|
|
55167
|
+
prNumber: req.prNumber,
|
|
55352
55168
|
diffContent: result.content,
|
|
55353
55169
|
truncated: result.truncated,
|
|
55354
|
-
diffStat
|
|
55170
|
+
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55355
55171
|
});
|
|
55356
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed: ${req.workingDir} (
|
|
55172
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed: ${req.workingDir} (#${req.prNumber}, ${result.truncated ? "truncated" : "complete"})`);
|
|
55357
55173
|
} else {
|
|
55358
55174
|
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55359
55175
|
sessionId: ctx.sessionId,
|
|
55360
55176
|
machineId: ctx.machineId,
|
|
55361
55177
|
workingDir: req.workingDir,
|
|
55362
55178
|
baseBranch,
|
|
55179
|
+
prNumber: req.prNumber,
|
|
55363
55180
|
diffContent: "",
|
|
55364
55181
|
truncated: false,
|
|
55365
55182
|
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55366
55183
|
});
|
|
55367
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed (empty): ${req.workingDir} (${result.status})`);
|
|
55184
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed (empty): ${req.workingDir} (#${req.prNumber}, ${result.status})`);
|
|
55368
55185
|
}
|
|
55369
55186
|
}
|
|
55370
55187
|
async function processPRAction(ctx, req) {
|
|
@@ -55606,7 +55423,7 @@ async function pushSingleWorkspaceGitState(ctx, workingDir) {
|
|
|
55606
55423
|
const isDirty2 = dirtyResult;
|
|
55607
55424
|
const diffStat = diffStatResult.status === "available" ? diffStatResult.diffStat : { filesChanged: 0, insertions: 0, deletions: 0 };
|
|
55608
55425
|
const hasMoreCommits = commits.length >= COMMITS_PER_PAGE;
|
|
55609
|
-
const stateHash = createHash3("md5").update(JSON.stringify({ branch, isDirty: isDirty2, diffStat, commitsAhead, shas: commits.map((c) => c.sha), prs: openPRs.map((pr) => pr.
|
|
55426
|
+
const stateHash = createHash3("md5").update(JSON.stringify({ branch, isDirty: isDirty2, diffStat, commitsAhead, shas: commits.map((c) => c.sha), prs: openPRs.map((pr) => pr.prNumber), allPrs: allPRs.map((pr) => `${pr.prNumber}:${pr.state}`), remotes: remotes.map((r) => `${r.name}:${r.url}`), headCommitStatus })).digest("hex");
|
|
55610
55427
|
if (ctx.lastPushedGitState.get(stateKey) === stateHash) {
|
|
55611
55428
|
return;
|
|
55612
55429
|
}
|
|
@@ -57676,7 +57493,9 @@ Run: chatroom auth login`);
|
|
|
57676
57493
|
⏳ Waiting for re-authentication (timeout: 5 minutes)...`);
|
|
57677
57494
|
const newSessionId2 = await waitForAuthentication(convexUrl);
|
|
57678
57495
|
const typedNewSession = newSessionId2;
|
|
57679
|
-
const revalidation = await client2.query(api.cliAuth.validateSession, {
|
|
57496
|
+
const revalidation = await client2.query(api.cliAuth.validateSession, {
|
|
57497
|
+
sessionId: typedNewSession
|
|
57498
|
+
});
|
|
57680
57499
|
if (!revalidation.valid) {
|
|
57681
57500
|
console.error(`❌ New session is also invalid: ${revalidation.reason}`);
|
|
57682
57501
|
releaseLock();
|
|
@@ -57685,7 +57504,7 @@ Run: chatroom auth login`);
|
|
|
57685
57504
|
return typedNewSession;
|
|
57686
57505
|
}
|
|
57687
57506
|
function setupMachine() {
|
|
57688
|
-
ensureMachineRegistered();
|
|
57507
|
+
ensureMachineRegistered({ allowCreate: true });
|
|
57689
57508
|
const config3 = loadMachineConfig();
|
|
57690
57509
|
return config3;
|
|
57691
57510
|
}
|
|
@@ -57716,7 +57535,6 @@ async function connectDaemon(client2, sessionId, machineId, convexUrl) {
|
|
|
57716
57535
|
});
|
|
57717
57536
|
} catch (error) {
|
|
57718
57537
|
if (isNetworkError(error)) {
|
|
57719
|
-
formatConnectivityError(error, convexUrl);
|
|
57720
57538
|
throw error;
|
|
57721
57539
|
} else {
|
|
57722
57540
|
console.error(`❌ Failed to update daemon status: ${getErrorMessage(error)}`);
|
|
@@ -57763,6 +57581,7 @@ async function initDaemon() {
|
|
|
57763
57581
|
const sessionId = await validateAuthentication(convexUrl);
|
|
57764
57582
|
const client2 = await getConvexClient();
|
|
57765
57583
|
let typedSessionId = sessionId;
|
|
57584
|
+
let consecutiveFailures = 0;
|
|
57766
57585
|
while (true) {
|
|
57767
57586
|
try {
|
|
57768
57587
|
typedSessionId = await validateSession(client2, typedSessionId, convexUrl);
|
|
@@ -57772,6 +57591,10 @@ async function initDaemon() {
|
|
|
57772
57591
|
const agentServices = new Map(getAllHarnesses().map((s) => [s.id, s]));
|
|
57773
57592
|
const availableModels = await registerCapabilities(client2, typedSessionId, config3, agentServices);
|
|
57774
57593
|
await connectDaemon(client2, typedSessionId, machineId, convexUrl);
|
|
57594
|
+
if (consecutiveFailures > 0) {
|
|
57595
|
+
console.log(`[${formatTimestamp()}] ✅ Backend reachable again at ${convexUrl}`);
|
|
57596
|
+
consecutiveFailures = 0;
|
|
57597
|
+
}
|
|
57775
57598
|
const deps = createDefaultDeps21();
|
|
57776
57599
|
deps.backend.mutation = (endpoint, args) => client2.mutation(endpoint, args);
|
|
57777
57600
|
deps.backend.query = (endpoint, args) => client2.query(endpoint, args);
|
|
@@ -57797,7 +57620,8 @@ async function initDaemon() {
|
|
|
57797
57620
|
deps,
|
|
57798
57621
|
events,
|
|
57799
57622
|
agentServices,
|
|
57800
|
-
lastPushedGitState: new Map
|
|
57623
|
+
lastPushedGitState: new Map,
|
|
57624
|
+
lastPushedModels: availableModels
|
|
57801
57625
|
};
|
|
57802
57626
|
registerEventListeners(ctx);
|
|
57803
57627
|
logStartup(ctx, availableModels);
|
|
@@ -57807,17 +57631,22 @@ async function initDaemon() {
|
|
|
57807
57631
|
return ctx;
|
|
57808
57632
|
} catch (error) {
|
|
57809
57633
|
if (isNetworkError(error)) {
|
|
57634
|
+
consecutiveFailures++;
|
|
57810
57635
|
const retrySec = CONNECTION_RETRY_INTERVAL_MS / 1000;
|
|
57811
|
-
|
|
57636
|
+
if (consecutiveFailures === 1) {
|
|
57637
|
+
formatConnectivityError(error, convexUrl);
|
|
57638
|
+
console.log(`[${formatTimestamp()}] ⏳ Backend not reachable. Retrying every ${retrySec}s...`);
|
|
57639
|
+
} else {
|
|
57640
|
+
console.log(`[${formatTimestamp()}] ❌ Backend still unreachable (attempt ${consecutiveFailures}, retrying in ${retrySec}s)`);
|
|
57641
|
+
}
|
|
57812
57642
|
await new Promise((resolve5) => setTimeout(resolve5, CONNECTION_RETRY_INTERVAL_MS));
|
|
57813
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDD04 Retrying backend connection...`);
|
|
57814
57643
|
} else {
|
|
57815
57644
|
throw error;
|
|
57816
57645
|
}
|
|
57817
57646
|
}
|
|
57818
57647
|
}
|
|
57819
57648
|
}
|
|
57820
|
-
var AUTH_POLL_INTERVAL_MS2 = 2000, AUTH_WAIT_TIMEOUT_MS, CONNECTION_RETRY_INTERVAL_MS =
|
|
57649
|
+
var AUTH_POLL_INTERVAL_MS2 = 2000, AUTH_WAIT_TIMEOUT_MS, CONNECTION_RETRY_INTERVAL_MS = 1e4;
|
|
57821
57650
|
var init_init2 = __esm(() => {
|
|
57822
57651
|
init_state_recovery();
|
|
57823
57652
|
init_api3();
|
|
@@ -58033,6 +57862,30 @@ var init_local_actions = __esm(() => {
|
|
|
58033
57862
|
});
|
|
58034
57863
|
|
|
58035
57864
|
// src/commands/machine/daemon-start/command-loop.ts
|
|
57865
|
+
function diffModels(previous, next) {
|
|
57866
|
+
const prev = previous ?? {};
|
|
57867
|
+
const added = {};
|
|
57868
|
+
const removed = {};
|
|
57869
|
+
const harnesses = new Set([...Object.keys(prev), ...Object.keys(next)]);
|
|
57870
|
+
for (const harness of harnesses) {
|
|
57871
|
+
const prevSet = new Set(prev[harness] ?? []);
|
|
57872
|
+
const nextSet = new Set(next[harness] ?? []);
|
|
57873
|
+
const addedForHarness = [...nextSet].filter((m) => !prevSet.has(m));
|
|
57874
|
+
const removedForHarness = [...prevSet].filter((m) => !nextSet.has(m));
|
|
57875
|
+
if (addedForHarness.length > 0)
|
|
57876
|
+
added[harness] = addedForHarness;
|
|
57877
|
+
if (removedForHarness.length > 0)
|
|
57878
|
+
removed[harness] = removedForHarness;
|
|
57879
|
+
}
|
|
57880
|
+
return {
|
|
57881
|
+
added,
|
|
57882
|
+
removed,
|
|
57883
|
+
hasChanges: Object.keys(added).length > 0 || Object.keys(removed).length > 0
|
|
57884
|
+
};
|
|
57885
|
+
}
|
|
57886
|
+
function formatModelMap(map) {
|
|
57887
|
+
return Object.entries(map).map(([harness, models]) => `${harness}: ${models.join(", ")}`).join("; ");
|
|
57888
|
+
}
|
|
58036
57889
|
async function refreshModels(ctx) {
|
|
58037
57890
|
if (!ctx.config)
|
|
58038
57891
|
return;
|
|
@@ -58040,6 +57893,10 @@ async function refreshModels(ctx) {
|
|
|
58040
57893
|
const freshConfig = ensureMachineRegistered();
|
|
58041
57894
|
ctx.config.availableHarnesses = freshConfig.availableHarnesses;
|
|
58042
57895
|
ctx.config.harnessVersions = freshConfig.harnessVersions;
|
|
57896
|
+
const diff = diffModels(ctx.lastPushedModels, models);
|
|
57897
|
+
if (!diff.hasChanges) {
|
|
57898
|
+
return;
|
|
57899
|
+
}
|
|
58043
57900
|
const totalCount = Object.values(models).flat().length;
|
|
58044
57901
|
try {
|
|
58045
57902
|
await ctx.deps.backend.mutation(api.machines.refreshCapabilities, {
|
|
@@ -58049,7 +57906,14 @@ async function refreshModels(ctx) {
|
|
|
58049
57906
|
harnessVersions: ctx.config.harnessVersions,
|
|
58050
57907
|
availableModels: models
|
|
58051
57908
|
});
|
|
58052
|
-
|
|
57909
|
+
ctx.lastPushedModels = models;
|
|
57910
|
+
if (Object.keys(diff.added).length > 0) {
|
|
57911
|
+
console.log(`[${formatTimestamp()}] ➕ New models detected — ${formatModelMap(diff.added)}`);
|
|
57912
|
+
}
|
|
57913
|
+
if (Object.keys(diff.removed).length > 0) {
|
|
57914
|
+
console.log(`[${formatTimestamp()}] ➖ Models no longer available — ${formatModelMap(diff.removed)}`);
|
|
57915
|
+
}
|
|
57916
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDD04 Model refresh pushed: ${totalCount > 0 ? `${totalCount} models` : "none discovered"}`);
|
|
58053
57917
|
} catch (error) {
|
|
58054
57918
|
console.warn(`[${formatTimestamp()}] ⚠️ Model refresh failed: ${getErrorMessage(error)}`);
|
|
58055
57919
|
}
|
|
@@ -58236,7 +58100,7 @@ var init_command_loop = __esm(() => {
|
|
|
58236
58100
|
init_local_actions();
|
|
58237
58101
|
init_machine();
|
|
58238
58102
|
init_convex_error();
|
|
58239
|
-
MODEL_REFRESH_INTERVAL_MS =
|
|
58103
|
+
MODEL_REFRESH_INTERVAL_MS = 10 * 1000;
|
|
58240
58104
|
});
|
|
58241
58105
|
|
|
58242
58106
|
// src/commands/machine/daemon-start/index.ts
|
|
@@ -58843,7 +58707,7 @@ toolCommand.command("parse-pdf").description("Parse a PDF file and extract text
|
|
|
58843
58707
|
console.log(result.message);
|
|
58844
58708
|
process.exit(result.success ? 0 : 1);
|
|
58845
58709
|
});
|
|
58846
|
-
program2.command("register-agent").description("Register agent type for a chatroom role").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Role to register as (e.g., builder, reviewer)").requiredOption("--type <type>", "Agent type: remote or custom").action(async (options) => {
|
|
58710
|
+
program2.command("register-agent").description("Register agent type for a chatroom role").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Role to register as (e.g., builder, reviewer)").requiredOption("--type <type>", "Agent type: remote or custom").option("--allow-type-change", "Required for --type=custom when the role is currently bound to a remote machine; explicitly opts into clearing the existing binding.").action(async (options) => {
|
|
58847
58711
|
await maybeRequireAuth();
|
|
58848
58712
|
if (options.type !== "remote" && options.type !== "custom") {
|
|
58849
58713
|
console.error(`❌ Invalid agent type: "${options.type}". Must be "remote" or "custom".`);
|
|
@@ -58852,7 +58716,8 @@ program2.command("register-agent").description("Register agent type for a chatro
|
|
|
58852
58716
|
const { registerAgent: registerAgent2 } = await Promise.resolve().then(() => (init_register_agent(), exports_register_agent));
|
|
58853
58717
|
await registerAgent2(options.chatroomId, {
|
|
58854
58718
|
role: options.role,
|
|
58855
|
-
type: options.type
|
|
58719
|
+
type: options.type,
|
|
58720
|
+
allowTypeChange: options.allowTypeChange
|
|
58856
58721
|
});
|
|
58857
58722
|
});
|
|
58858
58723
|
program2.command("get-next-task").description("Join a chatroom and get the next task").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Role to join as (e.g., builder, reviewer)").action(async (options) => {
|
|
@@ -59004,6 +58869,33 @@ backlogCommand.command("add").description("Add a backlog item").requiredOption("
|
|
|
59004
58869
|
const { addBacklog: addBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
59005
58870
|
await addBacklog2(options.chatroomId, { role: options.role, content });
|
|
59006
58871
|
});
|
|
58872
|
+
backlogCommand.command("update").description("Update the content of an existing backlog item.").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Your role").requiredOption("--backlog-item-id <id>", "Backlog item ID to update").option("--content-file <path>", "Path to file containing new content (or use stdin/heredoc)").action(async (options) => {
|
|
58873
|
+
await maybeRequireAuth();
|
|
58874
|
+
let content;
|
|
58875
|
+
if (options.contentFile) {
|
|
58876
|
+
const { readFileContent: readFileContent2 } = await Promise.resolve().then(() => (init_file_content(), exports_file_content));
|
|
58877
|
+
try {
|
|
58878
|
+
content = readFileContent2(options.contentFile, "content-file");
|
|
58879
|
+
} catch (err) {
|
|
58880
|
+
console.error(`❌ ${err.message}`);
|
|
58881
|
+
process.exit(1);
|
|
58882
|
+
}
|
|
58883
|
+
} else {
|
|
58884
|
+
const stdinContent = await readStdin();
|
|
58885
|
+
content = stdinContent;
|
|
58886
|
+
}
|
|
58887
|
+
if (!content || content.trim().length === 0) {
|
|
58888
|
+
console.error("❌ Content is empty. Provide content via --content-file or stdin (heredoc).");
|
|
58889
|
+
console.error("");
|
|
58890
|
+
console.error(" Example with heredoc:");
|
|
58891
|
+
console.error(" chatroom backlog update --chatroom-id=<id> --role=<role> --backlog-item-id=<id> << 'EOF'");
|
|
58892
|
+
console.error(" New content here");
|
|
58893
|
+
console.error(" EOF");
|
|
58894
|
+
process.exit(1);
|
|
58895
|
+
}
|
|
58896
|
+
const { updateBacklog: updateBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
58897
|
+
await updateBacklog2(options.chatroomId, { role: options.role, backlogItemId: options.backlogItemId, content });
|
|
58898
|
+
});
|
|
59007
58899
|
backlogCommand.command("complete").description("Mark a backlog item as complete. Use --force for stuck in_progress/pending tasks.").requiredOption("--chatroom-id <id>", "Chatroom identifier").requiredOption("--role <role>", "Your role").requiredOption("--backlog-item-id <id>", "Backlog item ID to complete").option("-f, --force", "Force complete a stuck in_progress or pending task").action(async (options) => {
|
|
59008
58900
|
await maybeRequireAuth();
|
|
59009
58901
|
const { completeBacklog: completeBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
@@ -59272,7 +59164,6 @@ telegramCommand.command("send-message").description("Send a message to a connect
|
|
|
59272
59164
|
var machineCommand = program2.command("machine").description("Machine daemon management for remote agent control");
|
|
59273
59165
|
var daemonCommand = machineCommand.command("daemon").description("Manage the machine daemon");
|
|
59274
59166
|
daemonCommand.command("start").description("Start the machine daemon to listen for remote commands").action(async () => {
|
|
59275
|
-
await maybeRequireAuth();
|
|
59276
59167
|
const { daemonStart: daemonStart2 } = await Promise.resolve().then(() => (init_machine2(), exports_machine));
|
|
59277
59168
|
await daemonStart2();
|
|
59278
59169
|
});
|
|
@@ -59305,3 +59196,6 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
59305
59196
|
sendLifecycleHeartbeat2(client2, { sessionId, chatroomId, role, action: actionCommand.name() });
|
|
59306
59197
|
});
|
|
59307
59198
|
program2.parse();
|
|
59199
|
+
|
|
59200
|
+
//# debugId=44A7863B280772E964756E2164756E21
|
|
59201
|
+
//# sourceMappingURL=index.js.map
|