chatroom-cli 1.34.0 → 1.34.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +205 -319
- 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;
|
|
@@ -52391,6 +52240,7 @@ var init_report_progress = __esm(() => {
|
|
|
52391
52240
|
// src/commands/backlog/index.ts
|
|
52392
52241
|
var exports_backlog = {};
|
|
52393
52242
|
__export(exports_backlog, {
|
|
52243
|
+
updateBacklog: () => updateBacklog,
|
|
52394
52244
|
scoreBacklog: () => scoreBacklog,
|
|
52395
52245
|
reopenBacklog: () => reopenBacklog,
|
|
52396
52246
|
patchBacklog: () => patchBacklog,
|
|
@@ -52538,6 +52388,7 @@ async function completeBacklog(chatroomId, options, deps) {
|
|
|
52538
52388
|
try {
|
|
52539
52389
|
const result = await d.backend.mutation(api.backlog.completeBacklogItem, {
|
|
52540
52390
|
sessionId,
|
|
52391
|
+
chatroomId,
|
|
52541
52392
|
itemId: options.backlogItemId
|
|
52542
52393
|
});
|
|
52543
52394
|
console.log("");
|
|
@@ -52562,6 +52413,7 @@ async function reopenBacklog(chatroomId, options, deps) {
|
|
|
52562
52413
|
try {
|
|
52563
52414
|
await d.backend.mutation(api.backlog.reopenBacklogItem, {
|
|
52564
52415
|
sessionId,
|
|
52416
|
+
chatroomId,
|
|
52565
52417
|
itemId: options.backlogItemId
|
|
52566
52418
|
});
|
|
52567
52419
|
console.log("");
|
|
@@ -52615,6 +52467,7 @@ async function patchBacklog(chatroomId, options, deps) {
|
|
|
52615
52467
|
try {
|
|
52616
52468
|
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
52617
52469
|
sessionId,
|
|
52470
|
+
chatroomId,
|
|
52618
52471
|
itemId: options.backlogItemId,
|
|
52619
52472
|
complexity: options.complexity,
|
|
52620
52473
|
value: options.value,
|
|
@@ -52678,6 +52531,7 @@ async function scoreBacklog(chatroomId, options, deps) {
|
|
|
52678
52531
|
try {
|
|
52679
52532
|
await d.backend.mutation(api.backlog.patchBacklogItem, {
|
|
52680
52533
|
sessionId,
|
|
52534
|
+
chatroomId,
|
|
52681
52535
|
itemId: options.backlogItemId,
|
|
52682
52536
|
complexity: options.complexity,
|
|
52683
52537
|
value: options.value,
|
|
@@ -52714,6 +52568,7 @@ async function markForReviewBacklog(chatroomId, options, deps) {
|
|
|
52714
52568
|
try {
|
|
52715
52569
|
await d.backend.mutation(api.backlog.markBacklogItemForReview, {
|
|
52716
52570
|
sessionId,
|
|
52571
|
+
chatroomId,
|
|
52717
52572
|
itemId: options.backlogItemId
|
|
52718
52573
|
});
|
|
52719
52574
|
console.log("");
|
|
@@ -52824,6 +52679,36 @@ async function historyBacklog(chatroomId, options, deps) {
|
|
|
52824
52679
|
return;
|
|
52825
52680
|
}
|
|
52826
52681
|
}
|
|
52682
|
+
async function updateBacklog(chatroomId, options, deps) {
|
|
52683
|
+
const d = deps ?? await createDefaultDeps11();
|
|
52684
|
+
const sessionId = requireAuth2(d);
|
|
52685
|
+
validateChatroomId(chatroomId);
|
|
52686
|
+
if (!options.backlogItemId || options.backlogItemId.trim().length === 0) {
|
|
52687
|
+
console.error(`❌ Backlog item ID is required`);
|
|
52688
|
+
process.exit(1);
|
|
52689
|
+
return;
|
|
52690
|
+
}
|
|
52691
|
+
if (!options.content || options.content.trim().length === 0) {
|
|
52692
|
+
console.error(`❌ Content is empty. Provide content via --content-file or stdin.`);
|
|
52693
|
+
process.exit(1);
|
|
52694
|
+
return;
|
|
52695
|
+
}
|
|
52696
|
+
try {
|
|
52697
|
+
await d.backend.mutation(api.backlog.updateBacklogItem, {
|
|
52698
|
+
sessionId,
|
|
52699
|
+
itemId: options.backlogItemId,
|
|
52700
|
+
content: options.content.trim()
|
|
52701
|
+
});
|
|
52702
|
+
console.log("");
|
|
52703
|
+
console.log("✅ Backlog item content updated");
|
|
52704
|
+
console.log(` ID: ${options.backlogItemId}`);
|
|
52705
|
+
console.log("");
|
|
52706
|
+
} catch (error) {
|
|
52707
|
+
console.error(`❌ Failed to update backlog item: ${getErrorMessage(error)}`);
|
|
52708
|
+
process.exit(1);
|
|
52709
|
+
return;
|
|
52710
|
+
}
|
|
52711
|
+
}
|
|
52827
52712
|
async function closeBacklog(chatroomId, options, deps) {
|
|
52828
52713
|
const d = deps ?? await createDefaultDeps11();
|
|
52829
52714
|
const sessionId = requireAuth2(d);
|
|
@@ -52833,7 +52718,8 @@ async function closeBacklog(chatroomId, options, deps) {
|
|
|
52833
52718
|
process.exit(1);
|
|
52834
52719
|
return;
|
|
52835
52720
|
}
|
|
52836
|
-
|
|
52721
|
+
const reason = options.reason.trim();
|
|
52722
|
+
if (!reason) {
|
|
52837
52723
|
console.error(`❌ Reason is required when closing a backlog item`);
|
|
52838
52724
|
process.exit(1);
|
|
52839
52725
|
return;
|
|
@@ -52841,14 +52727,15 @@ async function closeBacklog(chatroomId, options, deps) {
|
|
|
52841
52727
|
try {
|
|
52842
52728
|
await d.backend.mutation(api.backlog.closeBacklogItem, {
|
|
52843
52729
|
sessionId,
|
|
52730
|
+
chatroomId,
|
|
52844
52731
|
itemId: options.backlogItemId,
|
|
52845
|
-
reason
|
|
52732
|
+
reason
|
|
52846
52733
|
});
|
|
52847
52734
|
console.log("");
|
|
52848
52735
|
console.log("✅ Backlog item closed");
|
|
52849
52736
|
console.log(` ID: ${options.backlogItemId}`);
|
|
52850
52737
|
console.log(` Status: closed`);
|
|
52851
|
-
console.log(` Reason: ${
|
|
52738
|
+
console.log(` Reason: ${reason}`);
|
|
52852
52739
|
console.log("");
|
|
52853
52740
|
} catch (error) {
|
|
52854
52741
|
console.error(`❌ Failed to close backlog item: ${getErrorMessage(error)}`);
|
|
@@ -54899,59 +54786,6 @@ async function getFullDiff(workingDir) {
|
|
|
54899
54786
|
}
|
|
54900
54787
|
return { status: "available", content: raw, truncated: false };
|
|
54901
54788
|
}
|
|
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
54789
|
async function getPRDiffByNumber(cwd, prNumber) {
|
|
54956
54790
|
const repoSlug = await getOriginRepoSlug(cwd);
|
|
54957
54791
|
const repoFlag = repoSlug ? ` --repo ${JSON.stringify(repoSlug)}` : "";
|
|
@@ -55080,7 +54914,7 @@ async function getOpenPRsForBranch(cwd, branch) {
|
|
|
55080
54914
|
return true;
|
|
55081
54915
|
return item.headRepositoryOwner.login === repoOwner;
|
|
55082
54916
|
}).map((item) => ({
|
|
55083
|
-
|
|
54917
|
+
prNumber: item.number,
|
|
55084
54918
|
title: item.title,
|
|
55085
54919
|
url: item.url,
|
|
55086
54920
|
headRefName: item.headRefName,
|
|
@@ -55110,7 +54944,7 @@ async function getAllPRs(cwd) {
|
|
|
55110
54944
|
return parsed.filter(isGHPRItem).map((item) => {
|
|
55111
54945
|
const author = typeof item.author === "object" && item.author !== null ? item.author.login : undefined;
|
|
55112
54946
|
return {
|
|
55113
|
-
|
|
54947
|
+
prNumber: item.number,
|
|
55114
54948
|
title: item.title,
|
|
55115
54949
|
url: item.url ?? "",
|
|
55116
54950
|
headRefName: item.headRefName ?? "",
|
|
@@ -55312,59 +55146,35 @@ async function processFullDiff(ctx, req) {
|
|
|
55312
55146
|
}
|
|
55313
55147
|
}
|
|
55314
55148
|
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;
|
|
55149
|
+
if (!req.prNumber) {
|
|
55150
|
+
throw new Error("PR diff request missing prNumber");
|
|
55342
55151
|
}
|
|
55343
|
-
const
|
|
55152
|
+
const baseBranch = req.baseBranch ?? "main";
|
|
55153
|
+
const result = await getPRDiffByNumber(req.workingDir, req.prNumber);
|
|
55344
55154
|
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
55155
|
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55348
55156
|
sessionId: ctx.sessionId,
|
|
55349
55157
|
machineId: ctx.machineId,
|
|
55350
55158
|
workingDir: req.workingDir,
|
|
55351
55159
|
baseBranch,
|
|
55160
|
+
prNumber: req.prNumber,
|
|
55352
55161
|
diffContent: result.content,
|
|
55353
55162
|
truncated: result.truncated,
|
|
55354
|
-
diffStat
|
|
55163
|
+
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55355
55164
|
});
|
|
55356
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed: ${req.workingDir} (
|
|
55165
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed: ${req.workingDir} (#${req.prNumber}, ${result.truncated ? "truncated" : "complete"})`);
|
|
55357
55166
|
} else {
|
|
55358
55167
|
await ctx.deps.backend.mutation(api.workspaces.upsertPRDiff, {
|
|
55359
55168
|
sessionId: ctx.sessionId,
|
|
55360
55169
|
machineId: ctx.machineId,
|
|
55361
55170
|
workingDir: req.workingDir,
|
|
55362
55171
|
baseBranch,
|
|
55172
|
+
prNumber: req.prNumber,
|
|
55363
55173
|
diffContent: "",
|
|
55364
55174
|
truncated: false,
|
|
55365
55175
|
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 }
|
|
55366
55176
|
});
|
|
55367
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed (empty): ${req.workingDir} (${result.status})`);
|
|
55177
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDCC4 PR diff pushed (empty): ${req.workingDir} (#${req.prNumber}, ${result.status})`);
|
|
55368
55178
|
}
|
|
55369
55179
|
}
|
|
55370
55180
|
async function processPRAction(ctx, req) {
|
|
@@ -55606,7 +55416,7 @@ async function pushSingleWorkspaceGitState(ctx, workingDir) {
|
|
|
55606
55416
|
const isDirty2 = dirtyResult;
|
|
55607
55417
|
const diffStat = diffStatResult.status === "available" ? diffStatResult.diffStat : { filesChanged: 0, insertions: 0, deletions: 0 };
|
|
55608
55418
|
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.
|
|
55419
|
+
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
55420
|
if (ctx.lastPushedGitState.get(stateKey) === stateHash) {
|
|
55611
55421
|
return;
|
|
55612
55422
|
}
|
|
@@ -57676,7 +57486,9 @@ Run: chatroom auth login`);
|
|
|
57676
57486
|
⏳ Waiting for re-authentication (timeout: 5 minutes)...`);
|
|
57677
57487
|
const newSessionId2 = await waitForAuthentication(convexUrl);
|
|
57678
57488
|
const typedNewSession = newSessionId2;
|
|
57679
|
-
const revalidation = await client2.query(api.cliAuth.validateSession, {
|
|
57489
|
+
const revalidation = await client2.query(api.cliAuth.validateSession, {
|
|
57490
|
+
sessionId: typedNewSession
|
|
57491
|
+
});
|
|
57680
57492
|
if (!revalidation.valid) {
|
|
57681
57493
|
console.error(`❌ New session is also invalid: ${revalidation.reason}`);
|
|
57682
57494
|
releaseLock();
|
|
@@ -57716,7 +57528,6 @@ async function connectDaemon(client2, sessionId, machineId, convexUrl) {
|
|
|
57716
57528
|
});
|
|
57717
57529
|
} catch (error) {
|
|
57718
57530
|
if (isNetworkError(error)) {
|
|
57719
|
-
formatConnectivityError(error, convexUrl);
|
|
57720
57531
|
throw error;
|
|
57721
57532
|
} else {
|
|
57722
57533
|
console.error(`❌ Failed to update daemon status: ${getErrorMessage(error)}`);
|
|
@@ -57763,6 +57574,7 @@ async function initDaemon() {
|
|
|
57763
57574
|
const sessionId = await validateAuthentication(convexUrl);
|
|
57764
57575
|
const client2 = await getConvexClient();
|
|
57765
57576
|
let typedSessionId = sessionId;
|
|
57577
|
+
let consecutiveFailures = 0;
|
|
57766
57578
|
while (true) {
|
|
57767
57579
|
try {
|
|
57768
57580
|
typedSessionId = await validateSession(client2, typedSessionId, convexUrl);
|
|
@@ -57772,6 +57584,10 @@ async function initDaemon() {
|
|
|
57772
57584
|
const agentServices = new Map(getAllHarnesses().map((s) => [s.id, s]));
|
|
57773
57585
|
const availableModels = await registerCapabilities(client2, typedSessionId, config3, agentServices);
|
|
57774
57586
|
await connectDaemon(client2, typedSessionId, machineId, convexUrl);
|
|
57587
|
+
if (consecutiveFailures > 0) {
|
|
57588
|
+
console.log(`[${formatTimestamp()}] ✅ Backend reachable again at ${convexUrl}`);
|
|
57589
|
+
consecutiveFailures = 0;
|
|
57590
|
+
}
|
|
57775
57591
|
const deps = createDefaultDeps21();
|
|
57776
57592
|
deps.backend.mutation = (endpoint, args) => client2.mutation(endpoint, args);
|
|
57777
57593
|
deps.backend.query = (endpoint, args) => client2.query(endpoint, args);
|
|
@@ -57797,7 +57613,8 @@ async function initDaemon() {
|
|
|
57797
57613
|
deps,
|
|
57798
57614
|
events,
|
|
57799
57615
|
agentServices,
|
|
57800
|
-
lastPushedGitState: new Map
|
|
57616
|
+
lastPushedGitState: new Map,
|
|
57617
|
+
lastPushedModels: availableModels
|
|
57801
57618
|
};
|
|
57802
57619
|
registerEventListeners(ctx);
|
|
57803
57620
|
logStartup(ctx, availableModels);
|
|
@@ -57807,17 +57624,22 @@ async function initDaemon() {
|
|
|
57807
57624
|
return ctx;
|
|
57808
57625
|
} catch (error) {
|
|
57809
57626
|
if (isNetworkError(error)) {
|
|
57627
|
+
consecutiveFailures++;
|
|
57810
57628
|
const retrySec = CONNECTION_RETRY_INTERVAL_MS / 1000;
|
|
57811
|
-
|
|
57629
|
+
if (consecutiveFailures === 1) {
|
|
57630
|
+
formatConnectivityError(error, convexUrl);
|
|
57631
|
+
console.log(`[${formatTimestamp()}] ⏳ Backend not reachable. Retrying every ${retrySec}s...`);
|
|
57632
|
+
} else {
|
|
57633
|
+
console.log(`[${formatTimestamp()}] ❌ Backend still unreachable (attempt ${consecutiveFailures}, retrying in ${retrySec}s)`);
|
|
57634
|
+
}
|
|
57812
57635
|
await new Promise((resolve5) => setTimeout(resolve5, CONNECTION_RETRY_INTERVAL_MS));
|
|
57813
|
-
console.log(`[${formatTimestamp()}] \uD83D\uDD04 Retrying backend connection...`);
|
|
57814
57636
|
} else {
|
|
57815
57637
|
throw error;
|
|
57816
57638
|
}
|
|
57817
57639
|
}
|
|
57818
57640
|
}
|
|
57819
57641
|
}
|
|
57820
|
-
var AUTH_POLL_INTERVAL_MS2 = 2000, AUTH_WAIT_TIMEOUT_MS, CONNECTION_RETRY_INTERVAL_MS =
|
|
57642
|
+
var AUTH_POLL_INTERVAL_MS2 = 2000, AUTH_WAIT_TIMEOUT_MS, CONNECTION_RETRY_INTERVAL_MS = 1e4;
|
|
57821
57643
|
var init_init2 = __esm(() => {
|
|
57822
57644
|
init_state_recovery();
|
|
57823
57645
|
init_api3();
|
|
@@ -58033,6 +57855,30 @@ var init_local_actions = __esm(() => {
|
|
|
58033
57855
|
});
|
|
58034
57856
|
|
|
58035
57857
|
// src/commands/machine/daemon-start/command-loop.ts
|
|
57858
|
+
function diffModels(previous, next) {
|
|
57859
|
+
const prev = previous ?? {};
|
|
57860
|
+
const added = {};
|
|
57861
|
+
const removed = {};
|
|
57862
|
+
const harnesses = new Set([...Object.keys(prev), ...Object.keys(next)]);
|
|
57863
|
+
for (const harness of harnesses) {
|
|
57864
|
+
const prevSet = new Set(prev[harness] ?? []);
|
|
57865
|
+
const nextSet = new Set(next[harness] ?? []);
|
|
57866
|
+
const addedForHarness = [...nextSet].filter((m) => !prevSet.has(m));
|
|
57867
|
+
const removedForHarness = [...prevSet].filter((m) => !nextSet.has(m));
|
|
57868
|
+
if (addedForHarness.length > 0)
|
|
57869
|
+
added[harness] = addedForHarness;
|
|
57870
|
+
if (removedForHarness.length > 0)
|
|
57871
|
+
removed[harness] = removedForHarness;
|
|
57872
|
+
}
|
|
57873
|
+
return {
|
|
57874
|
+
added,
|
|
57875
|
+
removed,
|
|
57876
|
+
hasChanges: Object.keys(added).length > 0 || Object.keys(removed).length > 0
|
|
57877
|
+
};
|
|
57878
|
+
}
|
|
57879
|
+
function formatModelMap(map) {
|
|
57880
|
+
return Object.entries(map).map(([harness, models]) => `${harness}: ${models.join(", ")}`).join("; ");
|
|
57881
|
+
}
|
|
58036
57882
|
async function refreshModels(ctx) {
|
|
58037
57883
|
if (!ctx.config)
|
|
58038
57884
|
return;
|
|
@@ -58040,6 +57886,10 @@ async function refreshModels(ctx) {
|
|
|
58040
57886
|
const freshConfig = ensureMachineRegistered();
|
|
58041
57887
|
ctx.config.availableHarnesses = freshConfig.availableHarnesses;
|
|
58042
57888
|
ctx.config.harnessVersions = freshConfig.harnessVersions;
|
|
57889
|
+
const diff = diffModels(ctx.lastPushedModels, models);
|
|
57890
|
+
if (!diff.hasChanges) {
|
|
57891
|
+
return;
|
|
57892
|
+
}
|
|
58043
57893
|
const totalCount = Object.values(models).flat().length;
|
|
58044
57894
|
try {
|
|
58045
57895
|
await ctx.deps.backend.mutation(api.machines.refreshCapabilities, {
|
|
@@ -58049,7 +57899,14 @@ async function refreshModels(ctx) {
|
|
|
58049
57899
|
harnessVersions: ctx.config.harnessVersions,
|
|
58050
57900
|
availableModels: models
|
|
58051
57901
|
});
|
|
58052
|
-
|
|
57902
|
+
ctx.lastPushedModels = models;
|
|
57903
|
+
if (Object.keys(diff.added).length > 0) {
|
|
57904
|
+
console.log(`[${formatTimestamp()}] ➕ New models detected — ${formatModelMap(diff.added)}`);
|
|
57905
|
+
}
|
|
57906
|
+
if (Object.keys(diff.removed).length > 0) {
|
|
57907
|
+
console.log(`[${formatTimestamp()}] ➖ Models no longer available — ${formatModelMap(diff.removed)}`);
|
|
57908
|
+
}
|
|
57909
|
+
console.log(`[${formatTimestamp()}] \uD83D\uDD04 Model refresh pushed: ${totalCount > 0 ? `${totalCount} models` : "none discovered"}`);
|
|
58053
57910
|
} catch (error) {
|
|
58054
57911
|
console.warn(`[${formatTimestamp()}] ⚠️ Model refresh failed: ${getErrorMessage(error)}`);
|
|
58055
57912
|
}
|
|
@@ -58236,7 +58093,7 @@ var init_command_loop = __esm(() => {
|
|
|
58236
58093
|
init_local_actions();
|
|
58237
58094
|
init_machine();
|
|
58238
58095
|
init_convex_error();
|
|
58239
|
-
MODEL_REFRESH_INTERVAL_MS =
|
|
58096
|
+
MODEL_REFRESH_INTERVAL_MS = 10 * 1000;
|
|
58240
58097
|
});
|
|
58241
58098
|
|
|
58242
58099
|
// src/commands/machine/daemon-start/index.ts
|
|
@@ -59004,6 +58861,33 @@ backlogCommand.command("add").description("Add a backlog item").requiredOption("
|
|
|
59004
58861
|
const { addBacklog: addBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
59005
58862
|
await addBacklog2(options.chatroomId, { role: options.role, content });
|
|
59006
58863
|
});
|
|
58864
|
+
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) => {
|
|
58865
|
+
await maybeRequireAuth();
|
|
58866
|
+
let content;
|
|
58867
|
+
if (options.contentFile) {
|
|
58868
|
+
const { readFileContent: readFileContent2 } = await Promise.resolve().then(() => (init_file_content(), exports_file_content));
|
|
58869
|
+
try {
|
|
58870
|
+
content = readFileContent2(options.contentFile, "content-file");
|
|
58871
|
+
} catch (err) {
|
|
58872
|
+
console.error(`❌ ${err.message}`);
|
|
58873
|
+
process.exit(1);
|
|
58874
|
+
}
|
|
58875
|
+
} else {
|
|
58876
|
+
const stdinContent = await readStdin();
|
|
58877
|
+
content = stdinContent;
|
|
58878
|
+
}
|
|
58879
|
+
if (!content || content.trim().length === 0) {
|
|
58880
|
+
console.error("❌ Content is empty. Provide content via --content-file or stdin (heredoc).");
|
|
58881
|
+
console.error("");
|
|
58882
|
+
console.error(" Example with heredoc:");
|
|
58883
|
+
console.error(" chatroom backlog update --chatroom-id=<id> --role=<role> --backlog-item-id=<id> << 'EOF'");
|
|
58884
|
+
console.error(" New content here");
|
|
58885
|
+
console.error(" EOF");
|
|
58886
|
+
process.exit(1);
|
|
58887
|
+
}
|
|
58888
|
+
const { updateBacklog: updateBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
58889
|
+
await updateBacklog2(options.chatroomId, { role: options.role, backlogItemId: options.backlogItemId, content });
|
|
58890
|
+
});
|
|
59007
58891
|
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
58892
|
await maybeRequireAuth();
|
|
59009
58893
|
const { completeBacklog: completeBacklog2 } = await Promise.resolve().then(() => (init_backlog(), exports_backlog));
|
|
@@ -59272,7 +59156,6 @@ telegramCommand.command("send-message").description("Send a message to a connect
|
|
|
59272
59156
|
var machineCommand = program2.command("machine").description("Machine daemon management for remote agent control");
|
|
59273
59157
|
var daemonCommand = machineCommand.command("daemon").description("Manage the machine daemon");
|
|
59274
59158
|
daemonCommand.command("start").description("Start the machine daemon to listen for remote commands").action(async () => {
|
|
59275
|
-
await maybeRequireAuth();
|
|
59276
59159
|
const { daemonStart: daemonStart2 } = await Promise.resolve().then(() => (init_machine2(), exports_machine));
|
|
59277
59160
|
await daemonStart2();
|
|
59278
59161
|
});
|
|
@@ -59305,3 +59188,6 @@ program2.hook("preAction", async (_thisCommand, actionCommand) => {
|
|
|
59305
59188
|
sendLifecycleHeartbeat2(client2, { sessionId, chatroomId, role, action: actionCommand.name() });
|
|
59306
59189
|
});
|
|
59307
59190
|
program2.parse();
|
|
59191
|
+
|
|
59192
|
+
//# debugId=590723263840AC7564756E2164756E21
|
|
59193
|
+
//# sourceMappingURL=index.js.map
|