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
|
@@ -1,340 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Daemon Initialization — validates auth, connects to Convex, recovers state.
|
|
3
|
-
*/
|
|
4
|
-
import { stat } from 'node:fs/promises';
|
|
5
|
-
import { recoverAgentState } from './handlers/state-recovery.js';
|
|
6
|
-
import { formatTimestamp } from './utils.js';
|
|
7
|
-
import { api } from '../../../api.js';
|
|
8
|
-
import { startLocalApi } from '../../../infrastructure/local-api/index.js';
|
|
9
|
-
import { DaemonEventBus } from '../../../events/daemon/event-bus.js';
|
|
10
|
-
import { registerEventListeners } from '../../../events/daemon/register-listeners.js';
|
|
11
|
-
import { getSessionId, getOtherSessionUrls } from '../../../infrastructure/auth/storage.js';
|
|
12
|
-
import { getConvexUrl, getConvexClient } from '../../../infrastructure/convex/client.js';
|
|
13
|
-
import { clearAgentPid, ensureMachineRegistered, listAgentEntries, loadMachineConfig, persistAgentPid, persistEventCursor, loadEventCursor, } from '../../../infrastructure/machine/index.js';
|
|
14
|
-
import { SpawnRateLimiter, HarnessSpawningService, } from '../../../infrastructure/services/harness-spawning/index.js';
|
|
15
|
-
import { CrashLoopTracker } from '../../../infrastructure/machine/crash-loop-tracker.js';
|
|
16
|
-
import { AgentProcessManager } from '../../../infrastructure/services/agent-process-manager/agent-process-manager.js';
|
|
17
|
-
import { initHarnessRegistry, getAllHarnesses, } from '../../../infrastructure/services/remote-agents/index.js';
|
|
18
|
-
import { isNetworkError, formatConnectivityError } from '../../../utils/error-formatting.js';
|
|
19
|
-
import { getErrorMessage } from '../../../utils/convex-error.js';
|
|
20
|
-
import { getVersion } from '../../../version.js';
|
|
21
|
-
import { acquireLock, releaseLock } from '../pid.js';
|
|
22
|
-
// ─── Private Helpers ────────────────────────────────────────────────────────
|
|
23
|
-
// ─── Model Discovery ────────────────────────────────────────────────────────
|
|
24
|
-
/**
|
|
25
|
-
* Discover available models from all installed remote agent services.
|
|
26
|
-
* Non-critical: returns empty record on failure per harness.
|
|
27
|
-
*/
|
|
28
|
-
export async function discoverModels(agentServices) {
|
|
29
|
-
const results = {};
|
|
30
|
-
for (const [harness, service] of agentServices) {
|
|
31
|
-
if (service.isInstalled()) {
|
|
32
|
-
try {
|
|
33
|
-
results[harness] = await service.listModels();
|
|
34
|
-
}
|
|
35
|
-
catch {
|
|
36
|
-
results[harness] = [];
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
return results;
|
|
41
|
-
}
|
|
42
|
-
// ─── Default Dependencies ───────────────────────────────────────────────────
|
|
43
|
-
/**
|
|
44
|
-
* Create production dependency implementations wiring to real infrastructure.
|
|
45
|
-
* This factory uses the module-level imports already available in this file.
|
|
46
|
-
*/
|
|
47
|
-
export function createDefaultDeps() {
|
|
48
|
-
return {
|
|
49
|
-
backend: {
|
|
50
|
-
// Placeholder — initDaemon() binds the real client after connecting.
|
|
51
|
-
mutation: async () => {
|
|
52
|
-
throw new Error('Backend not initialized');
|
|
53
|
-
},
|
|
54
|
-
query: async () => {
|
|
55
|
-
throw new Error('Backend not initialized');
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
processes: {
|
|
59
|
-
kill: (pid, signal) => process.kill(pid, signal),
|
|
60
|
-
},
|
|
61
|
-
fs: {
|
|
62
|
-
stat,
|
|
63
|
-
},
|
|
64
|
-
machine: {
|
|
65
|
-
clearAgentPid,
|
|
66
|
-
persistAgentPid,
|
|
67
|
-
listAgentEntries,
|
|
68
|
-
persistEventCursor,
|
|
69
|
-
loadEventCursor,
|
|
70
|
-
},
|
|
71
|
-
clock: {
|
|
72
|
-
now: () => Date.now(),
|
|
73
|
-
delay: (ms) => new Promise((resolve) => setTimeout(resolve, ms)),
|
|
74
|
-
},
|
|
75
|
-
spawning: new HarnessSpawningService({ rateLimiter: new SpawnRateLimiter() }),
|
|
76
|
-
// Placeholder — initDaemon() creates the real instance after context is assembled.
|
|
77
|
-
agentProcessManager: null,
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
/** How often (ms) to poll for auth file changes when waiting for login. */
|
|
81
|
-
const AUTH_POLL_INTERVAL_MS = 2000;
|
|
82
|
-
/** Maximum time (ms) to wait for authentication before giving up. */
|
|
83
|
-
const AUTH_WAIT_TIMEOUT_MS = 5 * 60 * 1000; // 5 minutes
|
|
84
|
-
/**
|
|
85
|
-
* Wait for authentication credentials to appear.
|
|
86
|
-
* Polls the auth file every 2 seconds until a valid session ID is found
|
|
87
|
-
* or the timeout (5 minutes) is reached.
|
|
88
|
-
*/
|
|
89
|
-
async function waitForAuthentication(convexUrl) {
|
|
90
|
-
const startTime = Date.now();
|
|
91
|
-
while (Date.now() - startTime < AUTH_WAIT_TIMEOUT_MS) {
|
|
92
|
-
await new Promise((resolve) => setTimeout(resolve, AUTH_POLL_INTERVAL_MS));
|
|
93
|
-
const sessionId = getSessionId();
|
|
94
|
-
if (sessionId) {
|
|
95
|
-
console.log(`\n✅ Authentication detected. Resuming daemon initialization...`);
|
|
96
|
-
return sessionId;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
// Timeout reached
|
|
100
|
-
console.error(`\n❌ Authentication timeout (5 minutes). Exiting.`);
|
|
101
|
-
releaseLock();
|
|
102
|
-
process.exit(1);
|
|
103
|
-
}
|
|
104
|
-
/**
|
|
105
|
-
* Validate that the user is authenticated for the current Convex deployment.
|
|
106
|
-
* Returns the session ID if valid, or waits for the user to authenticate.
|
|
107
|
-
*/
|
|
108
|
-
async function validateAuthentication(convexUrl) {
|
|
109
|
-
const sessionId = getSessionId();
|
|
110
|
-
if (sessionId) {
|
|
111
|
-
return sessionId;
|
|
112
|
-
}
|
|
113
|
-
const otherUrls = getOtherSessionUrls();
|
|
114
|
-
console.error(`❌ Not authenticated for: ${convexUrl}`);
|
|
115
|
-
if (otherUrls.length > 0) {
|
|
116
|
-
console.error(`\n💡 You have sessions for other environments:`);
|
|
117
|
-
for (const url of otherUrls) {
|
|
118
|
-
console.error(` • ${url}`);
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
console.error(`\nRun: chatroom auth login`);
|
|
122
|
-
console.log(`\n⏳ Waiting for authentication (timeout: 5 minutes)...`);
|
|
123
|
-
return waitForAuthentication(convexUrl);
|
|
124
|
-
}
|
|
125
|
-
/**
|
|
126
|
-
* Validate the session with the backend to catch expired/revoked tokens early.
|
|
127
|
-
* If the session is invalid, waits for the user to re-authenticate.
|
|
128
|
-
*/
|
|
129
|
-
async function validateSession(client, sessionId, convexUrl) {
|
|
130
|
-
const validation = await client.query(api.cliAuth.validateSession, { sessionId });
|
|
131
|
-
if (validation.valid) {
|
|
132
|
-
return sessionId;
|
|
133
|
-
}
|
|
134
|
-
console.error(`❌ Session invalid: ${validation.reason}`);
|
|
135
|
-
console.error(`\nRun: chatroom auth login`);
|
|
136
|
-
console.log(`\n⏳ Waiting for re-authentication (timeout: 5 minutes)...`);
|
|
137
|
-
// Wait for new auth credentials, then re-validate
|
|
138
|
-
const newSessionId = await waitForAuthentication(convexUrl);
|
|
139
|
-
const typedNewSession = newSessionId;
|
|
140
|
-
// Validate the new session
|
|
141
|
-
const revalidation = await client.query(api.cliAuth.validateSession, { sessionId: typedNewSession });
|
|
142
|
-
if (!revalidation.valid) {
|
|
143
|
-
console.error(`❌ New session is also invalid: ${revalidation.reason}`);
|
|
144
|
-
releaseLock();
|
|
145
|
-
process.exit(1);
|
|
146
|
-
}
|
|
147
|
-
return typedNewSession;
|
|
148
|
-
}
|
|
149
|
-
/**
|
|
150
|
-
* Register machine (or refresh harness detection if already registered).
|
|
151
|
-
* Returns the full machine config (guaranteed non-null).
|
|
152
|
-
*/
|
|
153
|
-
function setupMachine() {
|
|
154
|
-
// ensureMachineRegistered() creates a new machine ID on first run and always
|
|
155
|
-
// re-detects available harnesses live — so `chatroom machine start` is fully
|
|
156
|
-
// self-contained: no prior `auth status` or `register-agent` step required.
|
|
157
|
-
ensureMachineRegistered();
|
|
158
|
-
// Load the full machine config (guaranteed non-null after ensureMachineRegistered())
|
|
159
|
-
const config = loadMachineConfig();
|
|
160
|
-
return config;
|
|
161
|
-
}
|
|
162
|
-
/**
|
|
163
|
-
* Register machine capabilities (harnesses and models) with the backend.
|
|
164
|
-
* Returns the discovered models for startup logging.
|
|
165
|
-
* Non-critical: warns on failure but does not exit.
|
|
166
|
-
*/
|
|
167
|
-
async function registerCapabilities(client, sessionId, config, agentServices) {
|
|
168
|
-
const { machineId } = config;
|
|
169
|
-
// Discover available models from all installed harnesses (dynamic)
|
|
170
|
-
const availableModels = await discoverModels(agentServices);
|
|
171
|
-
// Register/update machine info in backend (includes harnesses and models)
|
|
172
|
-
// This ensures the web UI has current machine capabilities
|
|
173
|
-
try {
|
|
174
|
-
await client.mutation(api.machines.register, {
|
|
175
|
-
sessionId,
|
|
176
|
-
machineId,
|
|
177
|
-
hostname: config.hostname,
|
|
178
|
-
os: config.os,
|
|
179
|
-
availableHarnesses: config.availableHarnesses,
|
|
180
|
-
harnessVersions: config.harnessVersions,
|
|
181
|
-
availableModels,
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
catch (error) {
|
|
185
|
-
// Registration failure is non-critical — daemon can still work
|
|
186
|
-
console.warn(`⚠️ Machine registration update failed: ${getErrorMessage(error)}`);
|
|
187
|
-
}
|
|
188
|
-
return availableModels;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Connect the daemon to the backend by updating daemon status.
|
|
192
|
-
* Throws on failure (caller handles retry).
|
|
193
|
-
*/
|
|
194
|
-
async function connectDaemon(client, sessionId, machineId, convexUrl) {
|
|
195
|
-
try {
|
|
196
|
-
await client.mutation(api.machines.updateDaemonStatus, {
|
|
197
|
-
sessionId,
|
|
198
|
-
machineId,
|
|
199
|
-
connected: true,
|
|
200
|
-
});
|
|
201
|
-
}
|
|
202
|
-
catch (error) {
|
|
203
|
-
if (isNetworkError(error)) {
|
|
204
|
-
formatConnectivityError(error, convexUrl);
|
|
205
|
-
throw error; // Re-throw for caller retry logic
|
|
206
|
-
}
|
|
207
|
-
else {
|
|
208
|
-
console.error(`❌ Failed to update daemon status: ${getErrorMessage(error)}`);
|
|
209
|
-
releaseLock();
|
|
210
|
-
process.exit(1);
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
/**
|
|
215
|
-
* Log startup information including version, machine ID, and capabilities.
|
|
216
|
-
*/
|
|
217
|
-
function logStartup(ctx, availableModels) {
|
|
218
|
-
console.log(`[${formatTimestamp()}] 🚀 Daemon started`);
|
|
219
|
-
console.log(` CLI version: ${getVersion()}`);
|
|
220
|
-
console.log(` Machine ID: ${ctx.machineId}`);
|
|
221
|
-
console.log(` Hostname: ${ctx.config?.hostname ?? 'unknown'}`);
|
|
222
|
-
console.log(` Available harnesses: ${ctx.config?.availableHarnesses.join(', ') || 'none'}`);
|
|
223
|
-
console.log(` Available models: ${Object.keys(availableModels).length > 0 ? `${Object.values(availableModels).flat().length} models across ${Object.keys(availableModels).join(', ')}` : 'none discovered'}`);
|
|
224
|
-
console.log(` PID: ${process.pid}`);
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* Recover agent state from previous daemon session.
|
|
228
|
-
* Non-critical: continues with fresh state on failure.
|
|
229
|
-
*/
|
|
230
|
-
async function recoverState(ctx) {
|
|
231
|
-
console.log(`\n[${formatTimestamp()}] 🔄 Recovering agent state...`);
|
|
232
|
-
try {
|
|
233
|
-
await recoverAgentState(ctx);
|
|
234
|
-
}
|
|
235
|
-
catch (e) {
|
|
236
|
-
console.log(` ⚠️ Recovery failed: ${getErrorMessage(e)}`);
|
|
237
|
-
console.log(` Continuing with fresh state`);
|
|
238
|
-
}
|
|
239
|
-
// Clear all stale spawnedAgentPid values for this machine.
|
|
240
|
-
// Since the daemon just started, no agents are running yet — any PIDs in the
|
|
241
|
-
// backend are stale from before the restart and must be cleared to prevent
|
|
242
|
-
// the UI from showing dead agents as "running" or "starting".
|
|
243
|
-
try {
|
|
244
|
-
const result = await ctx.deps.backend.mutation(api.machines.clearAllSpawnedPids, {
|
|
245
|
-
sessionId: ctx.sessionId,
|
|
246
|
-
machineId: ctx.machineId,
|
|
247
|
-
});
|
|
248
|
-
if (result.clearedCount > 0) {
|
|
249
|
-
console.log(` 🧹 Cleared ${result.clearedCount} stale agent PID(s) from backend`);
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
catch (e) {
|
|
253
|
-
console.log(` ⚠️ Failed to clear stale PIDs: ${getErrorMessage(e)}`);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
// ─── Constants ──────────────────────────────────────────────────────────────
|
|
257
|
-
/** Fixed interval (ms) between connection retry attempts when backend is unreachable. */
|
|
258
|
-
const CONNECTION_RETRY_INTERVAL_MS = 60_000;
|
|
259
|
-
// ─── Initialization ─────────────────────────────────────────────────────────
|
|
260
|
-
/**
|
|
261
|
-
* Initialize the daemon: validate auth, connect to Convex, recover state.
|
|
262
|
-
* Retries with a fixed 1-second interval on network errors.
|
|
263
|
-
* Returns the DaemonContext if successful, or exits the process on fatal failure.
|
|
264
|
-
*/
|
|
265
|
-
export async function initDaemon() {
|
|
266
|
-
// Acquire lock (prevents multiple daemons)
|
|
267
|
-
if (!acquireLock()) {
|
|
268
|
-
process.exit(1);
|
|
269
|
-
}
|
|
270
|
-
const convexUrl = getConvexUrl();
|
|
271
|
-
const sessionId = await validateAuthentication(convexUrl);
|
|
272
|
-
const client = await getConvexClient();
|
|
273
|
-
// SessionId is validated above as non-null. Cast once at the boundary
|
|
274
|
-
// between our storage format and Convex's branded type system.
|
|
275
|
-
let typedSessionId = sessionId;
|
|
276
|
-
// Retry loop for network errors — waits 1s between attempts
|
|
277
|
-
while (true) {
|
|
278
|
-
try {
|
|
279
|
-
typedSessionId = await validateSession(client, typedSessionId, convexUrl);
|
|
280
|
-
const config = setupMachine();
|
|
281
|
-
const { machineId } = config;
|
|
282
|
-
// Populate harness registry and build service map from it
|
|
283
|
-
initHarnessRegistry();
|
|
284
|
-
const agentServices = new Map(getAllHarnesses().map((s) => [s.id, s]));
|
|
285
|
-
const availableModels = await registerCapabilities(client, typedSessionId, config, agentServices);
|
|
286
|
-
await connectDaemon(client, typedSessionId, machineId, convexUrl);
|
|
287
|
-
// Create default dependencies and bind the real Convex client
|
|
288
|
-
const deps = createDefaultDeps();
|
|
289
|
-
deps.backend.mutation = (endpoint, args) => client.mutation(endpoint, args);
|
|
290
|
-
deps.backend.query = (endpoint, args) => client.query(endpoint, args);
|
|
291
|
-
// Create the AgentProcessManager with all required dependencies
|
|
292
|
-
deps.agentProcessManager = new AgentProcessManager({
|
|
293
|
-
agentServices,
|
|
294
|
-
backend: deps.backend,
|
|
295
|
-
sessionId: typedSessionId,
|
|
296
|
-
machineId,
|
|
297
|
-
processes: deps.processes,
|
|
298
|
-
clock: deps.clock,
|
|
299
|
-
fs: deps.fs,
|
|
300
|
-
persistence: deps.machine,
|
|
301
|
-
spawning: deps.spawning,
|
|
302
|
-
crashLoop: new CrashLoopTracker(),
|
|
303
|
-
convexUrl,
|
|
304
|
-
});
|
|
305
|
-
const events = new DaemonEventBus();
|
|
306
|
-
const ctx = {
|
|
307
|
-
client,
|
|
308
|
-
sessionId: typedSessionId,
|
|
309
|
-
machineId,
|
|
310
|
-
config,
|
|
311
|
-
deps,
|
|
312
|
-
events,
|
|
313
|
-
agentServices,
|
|
314
|
-
lastPushedGitState: new Map(),
|
|
315
|
-
};
|
|
316
|
-
registerEventListeners(ctx);
|
|
317
|
-
logStartup(ctx, availableModels);
|
|
318
|
-
await recoverState(ctx);
|
|
319
|
-
// Start the local API server after the context is fully assembled.
|
|
320
|
-
// Port conflicts are handled gracefully inside startLocalApi (warns and continues).
|
|
321
|
-
const localApiHandle = await startLocalApi(ctx);
|
|
322
|
-
ctx.stopLocalApi = localApiHandle.stop;
|
|
323
|
-
return ctx;
|
|
324
|
-
}
|
|
325
|
-
catch (error) {
|
|
326
|
-
if (isNetworkError(error)) {
|
|
327
|
-
const retrySec = CONNECTION_RETRY_INTERVAL_MS / 1000;
|
|
328
|
-
console.log(`[${formatTimestamp()}] ⏳ Backend not reachable. Retrying in ${retrySec}s...`);
|
|
329
|
-
await new Promise((resolve) => setTimeout(resolve, CONNECTION_RETRY_INTERVAL_MS));
|
|
330
|
-
console.log(`[${formatTimestamp()}] 🔄 Retrying backend connection...`);
|
|
331
|
-
// Continue the loop to retry
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
// Non-network error — propagate (will crash the process)
|
|
335
|
-
throw error;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
//# sourceMappingURL=init.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.js","sourceRoot":"","sources":["../../../../src/commands/machine/daemon-start/init.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAKxC,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AAEjE,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAC7C,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,4CAA4C,CAAC;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,sBAAsB,EAAE,MAAM,8CAA8C,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,0CAA0C,CAAC;AACzF,OAAO,EACL,aAAa,EACb,uBAAuB,EACvB,gBAAgB,EAChB,iBAAiB,EACjB,eAAe,EACf,kBAAkB,EAClB,eAAe,GAChB,MAAM,0CAA0C,CAAC;AAElD,OAAO,EACL,gBAAgB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AAmE;YACnE,oFAAoF;YACpF,MAAM,cAAc,GAAG,MAAM,aAAa,CAAC,GAAG,CAAC,CAAC;YAChD,GAAG,CAAC,YAAY,GAAG,cAAc,CAAC,IAAI,CAAC;YAEvC,OAAO,GAAG,CAAC;QACb,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,cAAc,CAAC,KAAK,CAAC,EAAE,CAAC;gBAC1B,MAAM,QAAQ,GAAG,4BAA4B,GAAG,IAAI,CAAC;gBACrD,OAAO,CAAC,GAAG,CACT,IAAI,eAAe,EAAE,0CAA0C,QAAQ,MAAM,CAC9E,CAAC;gBACF,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAC5B,UAAU,CAAC,OAAO,EAAE,4BAA4B,CAAC,CAClD,CAAC;gBACF,OAAO,CAAC,GAAG,CAAC,IAAI,eAAe,EAAE,qCAAqC,CAAC,CAAC;gBACxE,6BAA6B;YAC/B,CAAC;iBAAM,CAAC;gBACN,yDAAyD;gBACzD,MAAM,KAAK,CAAC;YACd,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"init.test.d.ts","sourceRoot":"","sources":["../../../../src/commands/machine/daemon-start/init.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|