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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git-reader.js","sourceRoot":"","sources":["../../../src/infrastructure/git/git-reader.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAWtC,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAEjD,MAAM,SAAS,GAAG,SAAS,CAAC,IAAI,CAAC,CAAC;AAElC,gFAAgF;AAEhF;;;;GAIG;AACH,KAAK,UAAU,MAAM,CACnB,IAAY,EACZ,GAAW;IAEX,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,SAAS,CAAC,OAAO,IAAI,EAAE,EAAE;YAC5C,GAAG;YACH,kDAAkD;YAClD,GAAG,EAAE,EAAE,GAAG,OAAO,CAAC,GAAG,EAAE,mBAAmB,EAAE,GAAG,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE;YAClF,2DAA2D;YAC3D,SAAS,EAAE,mBAAmB,GAAG,EAAE,GAAG,IAAI;SAC3C,CAAC,CAAC;QACH,OAAO,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,OAAO,EAAE,KAAK,EAAE,GAAgC,EAAE,CAAC;IACrD,CAAC;AACH,CAAC;AAED,wEAAwE;AACxE,SAAS,iBAAiB,CAAC,OAAe;IACxC,OAAO,CACL,OAAO,CAAC,QAAQ,CAAC,mBAAmB,CAAC;QACrC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC;QAC1B,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;QAC7B,OAAO,CAAC,QAAQ,CAAC,yBAAyB,CAAC,CAC5C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MAAM,CAAC,KAAK,UAAU,gBAAgB,CAAC,GAAW;IAChD,MAAM,QAAQ,GAAG,MAAM,iBAAiB,CAAC,GAAG,CAAC,CAAC;IAC9C,IAAI,CAAC,QAAQ;QAAE,OAAO,IAAI,CAAC;IAE3B,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,UAAU,CAC7B,gBAAgB,QAAQ,yBAAyB,EACjD,GAAG,CACJ,CAAC;QACF,IAAI,OAAO,IAAI,MAAM;YAAE,OAAO,IAAI,CAAC;QACnC,MAAM,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,CAAC;QACpC,OAAO,MAAM,IAAI,IAAI,CAAC;IACxB,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,IAAI,CAAC;IACd,CAAC;AACH,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"git-reader.test.d.ts","sourceRoot":"","sources":["../../../src/infrastructure/git/git-reader.test.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
|
@@ -1,598 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* git-reader Unit Tests
|
|
3
|
-
*
|
|
4
|
-
* Tests all exported functions using mocked child_process.exec.
|
|
5
|
-
* No actual git commands are run — all responses are simulated via mocks.
|
|
6
|
-
*/
|
|
7
|
-
import { exec } from 'node:child_process';
|
|
8
|
-
import { describe, expect, test, vi, beforeEach } from 'vitest';
|
|
9
|
-
import { isGitRepo, getBranch, isDirty, getDiffStat, getFullDiff, getRecentCommits, getCommitDetail, getOpenPRsForBranch, getCommitsAhead, getCommitStatusChecks, getDefaultBranch, parseDiffStatLine, parseRepoSlug, getOriginRepoSlug, } from './git-reader.js';
|
|
10
|
-
import { FULL_DIFF_MAX_BYTES } from './types.js';
|
|
11
|
-
// Mock the node built-ins before importing the module under test
|
|
12
|
-
vi.mock('node:child_process', () => ({
|
|
13
|
-
exec: vi.fn(),
|
|
14
|
-
}));
|
|
15
|
-
vi.mock('node:util', () => ({
|
|
16
|
-
promisify: (fn) => fn,
|
|
17
|
-
}));
|
|
18
|
-
const mockExec = vi.mocked(exec);
|
|
19
|
-
// ─── Helper: mock exec to return success ────────────────────────────────────
|
|
20
|
-
function mockSuccess(stdout, stderr = '') {
|
|
21
|
-
// exec is promisified — mock returns a promise that resolves
|
|
22
|
-
mockExec.mockImplementationOnce((_cmd, _opts, callback) => {
|
|
23
|
-
// promisify wraps the node-style callback; return the raw value
|
|
24
|
-
return Promise.resolve({ stdout, stderr });
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
function mockFailure(message, code = 1) {
|
|
28
|
-
const err = Object.assign(new Error(message), { code });
|
|
29
|
-
mockExec.mockImplementationOnce(() => {
|
|
30
|
-
return Promise.reject(err);
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
// ─── Restore mocks between tests ────────────────────────────────────────────
|
|
34
|
-
beforeEach(() => {
|
|
35
|
-
vi.clearAllMocks();
|
|
36
|
-
});
|
|
37
|
-
// ─── parseDiffStatLine ───────────────────────────────────────────────────────
|
|
38
|
-
describe('parseDiffStatLine', () => {
|
|
39
|
-
test('parses standard stat line with all fields', () => {
|
|
40
|
-
const result = parseDiffStatLine('3 files changed, 45 insertions(+), 12 deletions(-)');
|
|
41
|
-
expect(result).toEqual({ filesChanged: 3, insertions: 45, deletions: 12 });
|
|
42
|
-
});
|
|
43
|
-
test('parses stat line with only insertions', () => {
|
|
44
|
-
const result = parseDiffStatLine('1 file changed, 10 insertions(+)');
|
|
45
|
-
expect(result).toEqual({ filesChanged: 1, insertions: 10, deletions: 0 });
|
|
46
|
-
});
|
|
47
|
-
test('parses stat line with only deletions', () => {
|
|
48
|
-
const result = parseDiffStatLine('2 files changed, 5 deletions(-)');
|
|
49
|
-
expect(result).toEqual({ filesChanged: 2, insertions: 0, deletions: 5 });
|
|
50
|
-
});
|
|
51
|
-
test('returns zeros for empty string', () => {
|
|
52
|
-
const result = parseDiffStatLine('');
|
|
53
|
-
expect(result).toEqual({ filesChanged: 0, insertions: 0, deletions: 0 });
|
|
54
|
-
});
|
|
55
|
-
test('parses large numbers', () => {
|
|
56
|
-
const result = parseDiffStatLine('100 files changed, 10000 insertions(+), 3000 deletions(-)');
|
|
57
|
-
expect(result).toEqual({ filesChanged: 100, insertions: 10000, deletions: 3000 });
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
// ─── isGitRepo ───────────────────────────────────────────────────────────────
|
|
61
|
-
describe('isGitRepo', () => {
|
|
62
|
-
test('returns true when git rev-parse returns a .git path', async () => {
|
|
63
|
-
mockSuccess('.git\n');
|
|
64
|
-
expect(await isGitRepo('/some/repo')).toBe(true);
|
|
65
|
-
});
|
|
66
|
-
test('returns false for non-git directory (not a git repository error)', async () => {
|
|
67
|
-
mockFailure('fatal: not a git repository (or any of the parent directories): .git');
|
|
68
|
-
expect(await isGitRepo('/not/a/repo')).toBe(false);
|
|
69
|
-
});
|
|
70
|
-
test('returns false when git is not installed', async () => {
|
|
71
|
-
mockFailure('command not found: git');
|
|
72
|
-
expect(await isGitRepo('/some/dir')).toBe(false);
|
|
73
|
-
});
|
|
74
|
-
test('returns false on any other error', async () => {
|
|
75
|
-
mockFailure('Permission denied');
|
|
76
|
-
expect(await isGitRepo('/restricted')).toBe(false);
|
|
77
|
-
});
|
|
78
|
-
});
|
|
79
|
-
// ─── getBranch ───────────────────────────────────────────────────────────────
|
|
80
|
-
describe('getBranch', () => {
|
|
81
|
-
test('returns available with branch name for normal branch', async () => {
|
|
82
|
-
mockSuccess('main\n');
|
|
83
|
-
const result = await getBranch('/repo');
|
|
84
|
-
expect(result).toEqual({ status: 'available', branch: 'main' });
|
|
85
|
-
});
|
|
86
|
-
test('returns available with feature branch name', async () => {
|
|
87
|
-
mockSuccess('feat/my-feature\n');
|
|
88
|
-
const result = await getBranch('/repo');
|
|
89
|
-
expect(result).toEqual({ status: 'available', branch: 'feat/my-feature' });
|
|
90
|
-
});
|
|
91
|
-
test('returns available with HEAD for detached HEAD state', async () => {
|
|
92
|
-
mockSuccess('HEAD\n');
|
|
93
|
-
const result = await getBranch('/repo');
|
|
94
|
-
expect(result).toEqual({ status: 'available', branch: 'HEAD' });
|
|
95
|
-
});
|
|
96
|
-
test('returns available with HEAD for empty repo (unknown revision)', async () => {
|
|
97
|
-
mockFailure("fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree");
|
|
98
|
-
const result = await getBranch('/repo');
|
|
99
|
-
expect(result).toEqual({ status: 'available', branch: 'HEAD' });
|
|
100
|
-
});
|
|
101
|
-
test('returns not_found for non-git directory', async () => {
|
|
102
|
-
mockFailure('fatal: not a git repository (or any of the parent directories): .git');
|
|
103
|
-
const result = await getBranch('/not/a/repo');
|
|
104
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
105
|
-
});
|
|
106
|
-
test('returns error for git not installed', async () => {
|
|
107
|
-
mockFailure('command not found: git');
|
|
108
|
-
const result = await getBranch('/repo');
|
|
109
|
-
expect(result).toEqual({ status: 'error', message: 'git is not installed or not in PATH' });
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
// ─── isDirty ─────────────────────────────────────────────────────────────────
|
|
113
|
-
describe('isDirty', () => {
|
|
114
|
-
test('returns true when git status --porcelain has output (dirty)', async () => {
|
|
115
|
-
mockSuccess(' M src/index.ts\n');
|
|
116
|
-
expect(await isDirty('/repo')).toBe(true);
|
|
117
|
-
});
|
|
118
|
-
test('returns false when git status --porcelain is empty (clean)', async () => {
|
|
119
|
-
mockSuccess('');
|
|
120
|
-
expect(await isDirty('/repo')).toBe(false);
|
|
121
|
-
});
|
|
122
|
-
test('returns false for non-git directory (no throw)', async () => {
|
|
123
|
-
mockFailure('fatal: not a git repository');
|
|
124
|
-
expect(await isDirty('/not/a/repo')).toBe(false);
|
|
125
|
-
});
|
|
126
|
-
test('returns false on any error (safe default)', async () => {
|
|
127
|
-
mockFailure('Permission denied');
|
|
128
|
-
expect(await isDirty('/restricted')).toBe(false);
|
|
129
|
-
});
|
|
130
|
-
});
|
|
131
|
-
// ─── getDiffStat ─────────────────────────────────────────────────────────────
|
|
132
|
-
describe('getDiffStat', () => {
|
|
133
|
-
test('returns available with zero stats for clean tree', async () => {
|
|
134
|
-
mockSuccess('');
|
|
135
|
-
const result = await getDiffStat('/repo');
|
|
136
|
-
expect(result).toEqual({
|
|
137
|
-
status: 'available',
|
|
138
|
-
diffStat: { filesChanged: 0, insertions: 0, deletions: 0 },
|
|
139
|
-
});
|
|
140
|
-
});
|
|
141
|
-
test('returns available with parsed stats for dirty tree', async () => {
|
|
142
|
-
const statOutput = [
|
|
143
|
-
' src/foo.ts | 10 +++++++---',
|
|
144
|
-
' src/bar.ts | 5 -----',
|
|
145
|
-
' 2 files changed, 7 insertions(+), 8 deletions(-)',
|
|
146
|
-
].join('\n');
|
|
147
|
-
mockSuccess(statOutput);
|
|
148
|
-
const result = await getDiffStat('/repo');
|
|
149
|
-
expect(result).toEqual({
|
|
150
|
-
status: 'available',
|
|
151
|
-
diffStat: { filesChanged: 2, insertions: 7, deletions: 8 },
|
|
152
|
-
});
|
|
153
|
-
});
|
|
154
|
-
test('returns no_commits for empty repository', async () => {
|
|
155
|
-
mockFailure("fatal: ambiguous argument 'HEAD': unknown revision");
|
|
156
|
-
const result = await getDiffStat('/empty-repo');
|
|
157
|
-
expect(result).toEqual({ status: 'no_commits' });
|
|
158
|
-
});
|
|
159
|
-
test('returns not_found for non-git directory', async () => {
|
|
160
|
-
mockFailure('fatal: not a git repository');
|
|
161
|
-
const result = await getDiffStat('/not/a/repo');
|
|
162
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
163
|
-
});
|
|
164
|
-
test('returns error for permission denied', async () => {
|
|
165
|
-
mockFailure('Permission denied');
|
|
166
|
-
const result = await getDiffStat('/restricted');
|
|
167
|
-
expect(result.status).toBe('error');
|
|
168
|
-
if (result.status === 'error') {
|
|
169
|
-
expect(result.message).toContain('Permission denied');
|
|
170
|
-
}
|
|
171
|
-
});
|
|
172
|
-
});
|
|
173
|
-
// ─── getFullDiff ─────────────────────────────────────────────────────────────
|
|
174
|
-
describe('getFullDiff', () => {
|
|
175
|
-
test('returns available with empty content for clean tree', async () => {
|
|
176
|
-
mockSuccess('');
|
|
177
|
-
const result = await getFullDiff('/repo');
|
|
178
|
-
expect(result).toEqual({ status: 'available', content: '', truncated: false });
|
|
179
|
-
});
|
|
180
|
-
test('returns available with diff content', async () => {
|
|
181
|
-
const diff = 'diff --git a/foo.ts b/foo.ts\n+added line\n';
|
|
182
|
-
mockSuccess(diff);
|
|
183
|
-
const result = await getFullDiff('/repo');
|
|
184
|
-
expect(result).toEqual({ status: 'available', content: diff, truncated: false });
|
|
185
|
-
});
|
|
186
|
-
test('returns truncated when diff exceeds max bytes', async () => {
|
|
187
|
-
// Create a string exceeding FULL_DIFF_MAX_BYTES
|
|
188
|
-
const largeDiff = 'x'.repeat(FULL_DIFF_MAX_BYTES + 1000);
|
|
189
|
-
mockSuccess(largeDiff);
|
|
190
|
-
const result = await getFullDiff('/repo');
|
|
191
|
-
expect(result.status).toBe('truncated');
|
|
192
|
-
if (result.status === 'truncated') {
|
|
193
|
-
expect(result.truncated).toBe(true);
|
|
194
|
-
expect(Buffer.byteLength(result.content, 'utf8')).toBeLessThanOrEqual(FULL_DIFF_MAX_BYTES);
|
|
195
|
-
}
|
|
196
|
-
});
|
|
197
|
-
test('returns no_commits for empty repository', async () => {
|
|
198
|
-
mockFailure("fatal: ambiguous argument 'HEAD': unknown revision");
|
|
199
|
-
const result = await getFullDiff('/empty-repo');
|
|
200
|
-
expect(result).toEqual({ status: 'no_commits' });
|
|
201
|
-
});
|
|
202
|
-
test('returns not_found for non-git directory', async () => {
|
|
203
|
-
mockFailure('fatal: not a git repository');
|
|
204
|
-
const result = await getFullDiff('/not/a/repo');
|
|
205
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
206
|
-
});
|
|
207
|
-
});
|
|
208
|
-
// ─── getRecentCommits ────────────────────────────────────────────────────────
|
|
209
|
-
describe('getRecentCommits', () => {
|
|
210
|
-
test('parses commit list correctly', async () => {
|
|
211
|
-
// Null-byte separated: sha, shortSha, message, author, date
|
|
212
|
-
const output = [
|
|
213
|
-
'abc1234567890abcdef1234567890abcdef123456\x00abc1234\x00Fix bug\x00Alice\x002026-01-01T00:00:00Z',
|
|
214
|
-
'def5678901234567890abcdef5678901234567890\x00def5678\x00Add feature\x00Bob\x002026-01-02T00:00:00Z',
|
|
215
|
-
].join('\n');
|
|
216
|
-
mockSuccess(output);
|
|
217
|
-
const result = await getRecentCommits('/repo');
|
|
218
|
-
expect(result).toHaveLength(2);
|
|
219
|
-
expect(result[0]).toEqual({
|
|
220
|
-
sha: 'abc1234567890abcdef1234567890abcdef123456',
|
|
221
|
-
shortSha: 'abc1234',
|
|
222
|
-
message: 'Fix bug',
|
|
223
|
-
author: 'Alice',
|
|
224
|
-
date: '2026-01-01T00:00:00Z',
|
|
225
|
-
});
|
|
226
|
-
expect(result[1]).toEqual({
|
|
227
|
-
sha: 'def5678901234567890abcdef5678901234567890',
|
|
228
|
-
shortSha: 'def5678',
|
|
229
|
-
message: 'Add feature',
|
|
230
|
-
author: 'Bob',
|
|
231
|
-
date: '2026-01-02T00:00:00Z',
|
|
232
|
-
});
|
|
233
|
-
});
|
|
234
|
-
test('returns empty array for empty repository', async () => {
|
|
235
|
-
mockFailure('fatal: your current branch has no commits yet');
|
|
236
|
-
expect(await getRecentCommits('/empty-repo')).toEqual([]);
|
|
237
|
-
});
|
|
238
|
-
test('returns empty array for non-git directory', async () => {
|
|
239
|
-
mockFailure('fatal: not a git repository');
|
|
240
|
-
expect(await getRecentCommits('/not/a/repo')).toEqual([]);
|
|
241
|
-
});
|
|
242
|
-
test('returns empty array when git output is empty', async () => {
|
|
243
|
-
mockSuccess('');
|
|
244
|
-
expect(await getRecentCommits('/repo')).toEqual([]);
|
|
245
|
-
});
|
|
246
|
-
test('defaults to 20 commits', async () => {
|
|
247
|
-
mockSuccess('');
|
|
248
|
-
await getRecentCommits('/repo');
|
|
249
|
-
expect(mockExec).toHaveBeenCalledWith(expect.stringContaining('log -20'), expect.any(Object));
|
|
250
|
-
});
|
|
251
|
-
test('passes custom count to git log', async () => {
|
|
252
|
-
mockSuccess('');
|
|
253
|
-
await getRecentCommits('/repo', 5);
|
|
254
|
-
expect(mockExec).toHaveBeenCalledWith(expect.stringContaining('log -5'), expect.any(Object));
|
|
255
|
-
});
|
|
256
|
-
});
|
|
257
|
-
// ─── getCommitDetail ─────────────────────────────────────────────────────────
|
|
258
|
-
describe('getCommitDetail', () => {
|
|
259
|
-
test('returns available with commit diff content', async () => {
|
|
260
|
-
const content = 'diff --git a/file.ts b/file.ts\n+added\n';
|
|
261
|
-
mockSuccess(content);
|
|
262
|
-
const result = await getCommitDetail('/repo', 'abc1234');
|
|
263
|
-
expect(result).toEqual({ status: 'available', content, truncated: false });
|
|
264
|
-
});
|
|
265
|
-
test('returns truncated when commit diff exceeds max bytes', async () => {
|
|
266
|
-
const large = 'x'.repeat(FULL_DIFF_MAX_BYTES + 1000);
|
|
267
|
-
mockSuccess(large);
|
|
268
|
-
const result = await getCommitDetail('/repo', 'abc1234');
|
|
269
|
-
expect(result.status).toBe('truncated');
|
|
270
|
-
});
|
|
271
|
-
test('returns not_found for unknown SHA', async () => {
|
|
272
|
-
mockFailure('fatal: bad object deadbeef');
|
|
273
|
-
const result = await getCommitDetail('/repo', 'deadbeef');
|
|
274
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
275
|
-
});
|
|
276
|
-
test('returns not_found for empty repository (unknown revision)', async () => {
|
|
277
|
-
mockFailure("fatal: ambiguous argument 'HEAD': unknown revision");
|
|
278
|
-
const result = await getCommitDetail('/empty-repo', 'HEAD');
|
|
279
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
280
|
-
});
|
|
281
|
-
test('returns not_found for empty repository (no commits yet)', async () => {
|
|
282
|
-
mockFailure('fatal: your current branch has no commits yet');
|
|
283
|
-
const result = await getCommitDetail('/empty-repo', 'abc1234');
|
|
284
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
285
|
-
});
|
|
286
|
-
test('returns not_found for non-git directory', async () => {
|
|
287
|
-
mockFailure('fatal: not a git repository');
|
|
288
|
-
const result = await getCommitDetail('/not/a/repo', 'abc1234');
|
|
289
|
-
expect(result).toEqual({ status: 'not_found' });
|
|
290
|
-
});
|
|
291
|
-
test('returns error for permission denied', async () => {
|
|
292
|
-
mockFailure('Permission denied');
|
|
293
|
-
const result = await getCommitDetail('/restricted', 'abc1234');
|
|
294
|
-
expect(result.status).toBe('error');
|
|
295
|
-
});
|
|
296
|
-
});
|
|
297
|
-
// ─── parseRepoSlug ───────────────────────────────────────────────────────────
|
|
298
|
-
describe('parseRepoSlug', () => {
|
|
299
|
-
test('parses HTTPS URL with .git suffix', () => {
|
|
300
|
-
expect(parseRepoSlug('https://github.com/owner/repo.git')).toBe('owner/repo');
|
|
301
|
-
});
|
|
302
|
-
test('parses HTTPS URL without .git suffix', () => {
|
|
303
|
-
expect(parseRepoSlug('https://github.com/owner/repo')).toBe('owner/repo');
|
|
304
|
-
});
|
|
305
|
-
test('parses SSH URL with .git suffix', () => {
|
|
306
|
-
expect(parseRepoSlug('git@github.com:owner/repo.git')).toBe('owner/repo');
|
|
307
|
-
});
|
|
308
|
-
test('parses SSH URL without .git suffix', () => {
|
|
309
|
-
expect(parseRepoSlug('git@github.com:owner/repo')).toBe('owner/repo');
|
|
310
|
-
});
|
|
311
|
-
test('handles trailing whitespace', () => {
|
|
312
|
-
expect(parseRepoSlug('https://github.com/owner/repo.git\n')).toBe('owner/repo');
|
|
313
|
-
});
|
|
314
|
-
test('returns null for invalid URL', () => {
|
|
315
|
-
expect(parseRepoSlug('not-a-url')).toBeNull();
|
|
316
|
-
});
|
|
317
|
-
test('returns null for empty string', () => {
|
|
318
|
-
expect(parseRepoSlug('')).toBeNull();
|
|
319
|
-
});
|
|
320
|
-
test('parses URL with hyphens in owner and repo', () => {
|
|
321
|
-
expect(parseRepoSlug('https://github.com/my-org/my-repo.git')).toBe('my-org/my-repo');
|
|
322
|
-
});
|
|
323
|
-
});
|
|
324
|
-
// ─── getOriginRepoSlug ──────────────────────────────────────────────────────
|
|
325
|
-
describe('getOriginRepoSlug', () => {
|
|
326
|
-
test('returns slug for HTTPS remote', async () => {
|
|
327
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
328
|
-
const result = await getOriginRepoSlug('/repo');
|
|
329
|
-
expect(result).toBe('owner/repo');
|
|
330
|
-
});
|
|
331
|
-
test('returns slug for SSH remote', async () => {
|
|
332
|
-
mockSuccess('git@github.com:owner/repo.git\n');
|
|
333
|
-
const result = await getOriginRepoSlug('/repo');
|
|
334
|
-
expect(result).toBe('owner/repo');
|
|
335
|
-
});
|
|
336
|
-
test('returns null when origin remote does not exist', async () => {
|
|
337
|
-
mockFailure('fatal: No such remote \'origin\'');
|
|
338
|
-
const result = await getOriginRepoSlug('/repo');
|
|
339
|
-
expect(result).toBeNull();
|
|
340
|
-
});
|
|
341
|
-
test('returns null when git command fails', async () => {
|
|
342
|
-
mockFailure('fatal: not a git repository');
|
|
343
|
-
const result = await getOriginRepoSlug('/not/a/repo');
|
|
344
|
-
expect(result).toBeNull();
|
|
345
|
-
});
|
|
346
|
-
test('returns null for empty output', async () => {
|
|
347
|
-
mockSuccess('');
|
|
348
|
-
const result = await getOriginRepoSlug('/repo');
|
|
349
|
-
expect(result).toBeNull();
|
|
350
|
-
});
|
|
351
|
-
});
|
|
352
|
-
// ─── getOpenPRsForBranch ─────────────────────────────────────────────────────
|
|
353
|
-
describe('getOpenPRsForBranch', () => {
|
|
354
|
-
test('parses valid PR JSON output', async () => {
|
|
355
|
-
// First call: git remote get-url origin
|
|
356
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
357
|
-
// Second call: gh pr list
|
|
358
|
-
const prJson = JSON.stringify([
|
|
359
|
-
{
|
|
360
|
-
number: 42,
|
|
361
|
-
title: 'Add feature X',
|
|
362
|
-
url: 'https://github.com/user/repo/pull/42',
|
|
363
|
-
headRefName: 'feat/feature-x',
|
|
364
|
-
state: 'OPEN',
|
|
365
|
-
},
|
|
366
|
-
]);
|
|
367
|
-
mockSuccess(prJson);
|
|
368
|
-
const result = await getOpenPRsForBranch('/repo', 'feat/feature-x');
|
|
369
|
-
expect(result).toEqual([
|
|
370
|
-
{
|
|
371
|
-
number: 42,
|
|
372
|
-
title: 'Add feature X',
|
|
373
|
-
url: 'https://github.com/user/repo/pull/42',
|
|
374
|
-
headRefName: 'feat/feature-x',
|
|
375
|
-
state: 'OPEN',
|
|
376
|
-
},
|
|
377
|
-
]);
|
|
378
|
-
});
|
|
379
|
-
test('includes --repo flag when origin slug is available', async () => {
|
|
380
|
-
// First call: git remote get-url origin
|
|
381
|
-
mockSuccess('https://github.com/myuser/myrepo.git\n');
|
|
382
|
-
// Second call: gh pr list
|
|
383
|
-
mockSuccess('[]');
|
|
384
|
-
await getOpenPRsForBranch('/repo', 'feat/x');
|
|
385
|
-
// Second call should include --repo
|
|
386
|
-
expect(mockExec).toHaveBeenCalledTimes(2);
|
|
387
|
-
const ghCall = mockExec.mock.calls[1][0];
|
|
388
|
-
expect(ghCall).toContain('--repo');
|
|
389
|
-
expect(ghCall).toContain('myuser/myrepo');
|
|
390
|
-
});
|
|
391
|
-
test('falls back to no --repo when origin slug cannot be resolved', async () => {
|
|
392
|
-
// First call: git remote get-url origin fails
|
|
393
|
-
mockFailure('fatal: No such remote \'origin\'');
|
|
394
|
-
// Second call: gh pr list
|
|
395
|
-
mockSuccess('[]');
|
|
396
|
-
await getOpenPRsForBranch('/repo', 'feat/x');
|
|
397
|
-
// Second call should NOT include --repo
|
|
398
|
-
expect(mockExec).toHaveBeenCalledTimes(2);
|
|
399
|
-
const ghCall = mockExec.mock.calls[1][0];
|
|
400
|
-
expect(ghCall).not.toContain('--repo');
|
|
401
|
-
});
|
|
402
|
-
test('returns empty array for empty JSON array output', async () => {
|
|
403
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
404
|
-
mockSuccess('[]');
|
|
405
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
406
|
-
expect(result).toEqual([]);
|
|
407
|
-
});
|
|
408
|
-
test('returns empty array when gh is not installed', async () => {
|
|
409
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
410
|
-
mockFailure('command not found: gh');
|
|
411
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
412
|
-
expect(result).toEqual([]);
|
|
413
|
-
});
|
|
414
|
-
test('returns empty array when gh auth fails', async () => {
|
|
415
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
416
|
-
mockFailure('gh: not logged in');
|
|
417
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
418
|
-
expect(result).toEqual([]);
|
|
419
|
-
});
|
|
420
|
-
test('returns empty array for non-JSON output', async () => {
|
|
421
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
422
|
-
mockSuccess('not valid json');
|
|
423
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
424
|
-
expect(result).toEqual([]);
|
|
425
|
-
});
|
|
426
|
-
test('returns empty array for empty output', async () => {
|
|
427
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
428
|
-
mockSuccess('');
|
|
429
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
430
|
-
expect(result).toEqual([]);
|
|
431
|
-
});
|
|
432
|
-
test('filters out invalid PR objects', async () => {
|
|
433
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
434
|
-
const prJson = JSON.stringify([
|
|
435
|
-
{
|
|
436
|
-
number: 42,
|
|
437
|
-
title: 'Valid PR',
|
|
438
|
-
url: 'https://github.com/user/repo/pull/42',
|
|
439
|
-
headRefName: 'feat/x',
|
|
440
|
-
state: 'OPEN',
|
|
441
|
-
},
|
|
442
|
-
{ number: 'not-a-number', title: 'Invalid PR' }, // invalid
|
|
443
|
-
null, // invalid
|
|
444
|
-
]);
|
|
445
|
-
mockSuccess(prJson);
|
|
446
|
-
const result = await getOpenPRsForBranch('/repo', 'feat/x');
|
|
447
|
-
expect(result).toHaveLength(1);
|
|
448
|
-
expect(result[0].number).toBe(42);
|
|
449
|
-
});
|
|
450
|
-
test('parses multiple PRs', async () => {
|
|
451
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
452
|
-
const prJson = JSON.stringify([
|
|
453
|
-
{
|
|
454
|
-
number: 1,
|
|
455
|
-
title: 'PR 1',
|
|
456
|
-
url: 'https://github.com/user/repo/pull/1',
|
|
457
|
-
headRefName: 'feat/a',
|
|
458
|
-
state: 'OPEN',
|
|
459
|
-
},
|
|
460
|
-
{
|
|
461
|
-
number: 2,
|
|
462
|
-
title: 'PR 2',
|
|
463
|
-
url: 'https://github.com/user/repo/pull/2',
|
|
464
|
-
headRefName: 'feat/a',
|
|
465
|
-
state: 'OPEN',
|
|
466
|
-
},
|
|
467
|
-
]);
|
|
468
|
-
mockSuccess(prJson);
|
|
469
|
-
const result = await getOpenPRsForBranch('/repo', 'feat/a');
|
|
470
|
-
expect(result).toHaveLength(2);
|
|
471
|
-
expect(result[0].number).toBe(1);
|
|
472
|
-
expect(result[1].number).toBe(2);
|
|
473
|
-
});
|
|
474
|
-
test('returns empty array when output is not an array', async () => {
|
|
475
|
-
mockSuccess('https://github.com/user/repo.git\n');
|
|
476
|
-
mockSuccess('{"number": 42}');
|
|
477
|
-
const result = await getOpenPRsForBranch('/repo', 'main');
|
|
478
|
-
expect(result).toEqual([]);
|
|
479
|
-
});
|
|
480
|
-
});
|
|
481
|
-
// ─── getCommitsAhead ─────────────────────────────────────────────────────────
|
|
482
|
-
describe('getCommitsAhead', () => {
|
|
483
|
-
test('returns count of commits ahead of upstream', async () => {
|
|
484
|
-
mockSuccess('3\n');
|
|
485
|
-
const result = await getCommitsAhead('/repo');
|
|
486
|
-
expect(result).toBe(3);
|
|
487
|
-
});
|
|
488
|
-
test('returns 0 when no commits ahead', async () => {
|
|
489
|
-
mockSuccess('0\n');
|
|
490
|
-
const result = await getCommitsAhead('/repo');
|
|
491
|
-
expect(result).toBe(0);
|
|
492
|
-
});
|
|
493
|
-
test('returns 0 when no upstream is configured', async () => {
|
|
494
|
-
mockFailure("fatal: no upstream configured for branch 'main'");
|
|
495
|
-
const result = await getCommitsAhead('/repo');
|
|
496
|
-
expect(result).toBe(0);
|
|
497
|
-
});
|
|
498
|
-
test('returns 0 on any git error', async () => {
|
|
499
|
-
mockFailure('fatal: not a git repository');
|
|
500
|
-
const result = await getCommitsAhead('/repo');
|
|
501
|
-
expect(result).toBe(0);
|
|
502
|
-
});
|
|
503
|
-
test('returns 0 for non-numeric output', async () => {
|
|
504
|
-
mockSuccess('not-a-number\n');
|
|
505
|
-
const result = await getCommitsAhead('/repo');
|
|
506
|
-
expect(result).toBe(0);
|
|
507
|
-
});
|
|
508
|
-
});
|
|
509
|
-
// ─── getCommitStatusChecks ──────────────────────────────────────────────────
|
|
510
|
-
describe('getCommitStatusChecks', () => {
|
|
511
|
-
test('returns status checks when gh api succeeds', async () => {
|
|
512
|
-
// First call: getOriginRepoSlug -> git remote get-url origin
|
|
513
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
514
|
-
// Second call: gh api check-runs
|
|
515
|
-
mockSuccess(JSON.stringify({
|
|
516
|
-
check_runs: [
|
|
517
|
-
{ name: 'build', status: 'completed', conclusion: 'success' },
|
|
518
|
-
{ name: 'test', status: 'completed', conclusion: 'success' },
|
|
519
|
-
],
|
|
520
|
-
total_count: 2,
|
|
521
|
-
}));
|
|
522
|
-
// Third call: gh api status
|
|
523
|
-
mockSuccess('success\n');
|
|
524
|
-
const result = await getCommitStatusChecks('/repo', 'main');
|
|
525
|
-
expect(result).not.toBeNull();
|
|
526
|
-
expect(result.state).toBe('success');
|
|
527
|
-
expect(result.checkRuns).toHaveLength(2);
|
|
528
|
-
expect(result.totalCount).toBe(2);
|
|
529
|
-
});
|
|
530
|
-
test('returns failure state when a check run fails', async () => {
|
|
531
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
532
|
-
mockSuccess(JSON.stringify({
|
|
533
|
-
check_runs: [
|
|
534
|
-
{ name: 'build', status: 'completed', conclusion: 'failure' },
|
|
535
|
-
{ name: 'test', status: 'completed', conclusion: 'success' },
|
|
536
|
-
],
|
|
537
|
-
total_count: 2,
|
|
538
|
-
}));
|
|
539
|
-
mockSuccess('failure\n');
|
|
540
|
-
const result = await getCommitStatusChecks('/repo', 'main');
|
|
541
|
-
expect(result).not.toBeNull();
|
|
542
|
-
expect(result.state).toBe('failure');
|
|
543
|
-
});
|
|
544
|
-
test('returns pending state when checks are in progress', async () => {
|
|
545
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
546
|
-
mockSuccess(JSON.stringify({
|
|
547
|
-
check_runs: [
|
|
548
|
-
{ name: 'build', status: 'in_progress', conclusion: null },
|
|
549
|
-
],
|
|
550
|
-
total_count: 1,
|
|
551
|
-
}));
|
|
552
|
-
mockSuccess('pending\n');
|
|
553
|
-
const result = await getCommitStatusChecks('/repo', 'main');
|
|
554
|
-
expect(result).not.toBeNull();
|
|
555
|
-
expect(result.state).toBe('pending');
|
|
556
|
-
});
|
|
557
|
-
test('returns null when repo slug cannot be determined', async () => {
|
|
558
|
-
mockFailure('fatal: not a git repository');
|
|
559
|
-
const result = await getCommitStatusChecks('/repo', 'main');
|
|
560
|
-
expect(result).toBeNull();
|
|
561
|
-
});
|
|
562
|
-
test('returns null when gh api fails', async () => {
|
|
563
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
564
|
-
mockFailure('gh: not found');
|
|
565
|
-
mockFailure('gh: not found');
|
|
566
|
-
const result = await getCommitStatusChecks('/repo', 'main');
|
|
567
|
-
expect(result).toBeNull();
|
|
568
|
-
});
|
|
569
|
-
});
|
|
570
|
-
// ─── getDefaultBranch ───────────────────────────────────────────────────────
|
|
571
|
-
describe('getDefaultBranch', () => {
|
|
572
|
-
test('returns default branch name', async () => {
|
|
573
|
-
// First call: getOriginRepoSlug -> git remote get-url origin
|
|
574
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
575
|
-
// Second call: gh api repos/owner/repo -> default_branch
|
|
576
|
-
mockSuccess('main\n');
|
|
577
|
-
const result = await getDefaultBranch('/repo');
|
|
578
|
-
expect(result).toBe('main');
|
|
579
|
-
});
|
|
580
|
-
test('returns null when repo slug cannot be determined', async () => {
|
|
581
|
-
mockFailure('fatal: not a git repository');
|
|
582
|
-
const result = await getDefaultBranch('/repo');
|
|
583
|
-
expect(result).toBeNull();
|
|
584
|
-
});
|
|
585
|
-
test('returns null when gh api fails', async () => {
|
|
586
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
587
|
-
mockFailure('gh: not found');
|
|
588
|
-
const result = await getDefaultBranch('/repo');
|
|
589
|
-
expect(result).toBeNull();
|
|
590
|
-
});
|
|
591
|
-
test('returns null for empty response', async () => {
|
|
592
|
-
mockSuccess('https://github.com/owner/repo.git\n');
|
|
593
|
-
mockSuccess('\n');
|
|
594
|
-
const result = await getDefaultBranch('/repo');
|
|
595
|
-
expect(result).toBeNull();
|
|
596
|
-
});
|
|
597
|
-
});
|
|
598
|
-
//# sourceMappingURL=git-reader.test.js.map
|