@proletariat/cli 0.3.93 → 0.3.95
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/commands/action/create.d.ts +1 -1
- package/dist/commands/action/delete.d.ts +1 -1
- package/dist/commands/action/index.d.ts +1 -1
- package/dist/commands/action/list.d.ts +1 -1
- package/dist/commands/action/run.d.ts +1 -1
- package/dist/commands/action/show.d.ts +1 -1
- package/dist/commands/action/update.d.ts +1 -1
- package/dist/commands/agent/cleanup.d.ts +3 -4
- package/dist/commands/agent/cleanup.js +5 -4
- package/dist/commands/agent/cleanup.js.map +1 -1
- package/dist/commands/agent/gc.d.ts +3 -4
- package/dist/commands/agent/gc.js +5 -4
- package/dist/commands/agent/gc.js.map +1 -1
- package/dist/commands/agent/index.d.ts +3 -4
- package/dist/commands/agent/index.js +5 -4
- package/dist/commands/agent/index.js.map +1 -1
- package/dist/commands/agent/list.d.ts +3 -4
- package/dist/commands/agent/list.js +5 -4
- package/dist/commands/agent/list.js.map +1 -1
- package/dist/commands/agent/login.d.ts +1 -1
- package/dist/commands/agent/rebuild.d.ts +1 -1
- package/dist/commands/agent/remove.d.ts +3 -4
- package/dist/commands/agent/remove.js +5 -4
- package/dist/commands/agent/remove.js.map +1 -1
- package/dist/commands/agent/restart.d.ts +1 -1
- package/dist/commands/agent/shell.d.ts +1 -1
- package/dist/commands/agent/staff/index.d.ts +3 -4
- package/dist/commands/agent/staff/index.js +5 -4
- package/dist/commands/agent/staff/index.js.map +1 -1
- package/dist/commands/agent/staff/remove.d.ts +3 -4
- package/dist/commands/agent/staff/remove.js +5 -4
- package/dist/commands/agent/staff/remove.js.map +1 -1
- package/dist/commands/agent/status.d.ts +3 -4
- package/dist/commands/agent/status.js +5 -4
- package/dist/commands/agent/status.js.map +1 -1
- package/dist/commands/agent/visit.d.ts +3 -4
- package/dist/commands/agent/visit.js +5 -4
- package/dist/commands/agent/visit.js.map +1 -1
- package/dist/commands/asana/import.d.ts +1 -1
- package/dist/commands/branch/create.d.ts +1 -1
- package/dist/commands/branch/create.js +1 -12
- package/dist/commands/branch/create.js.map +1 -1
- package/dist/commands/branch/index.d.ts +1 -1
- package/dist/commands/branch/list.d.ts +3 -4
- package/dist/commands/branch/list.js +5 -4
- package/dist/commands/branch/list.js.map +1 -1
- package/dist/commands/branch/validate.d.ts +3 -4
- package/dist/commands/branch/validate.js +6 -5
- package/dist/commands/branch/validate.js.map +1 -1
- package/dist/commands/branch/where.d.ts +3 -4
- package/dist/commands/branch/where.js +5 -4
- package/dist/commands/branch/where.js.map +1 -1
- package/dist/commands/commit.js +1 -1
- package/dist/commands/commit.js.map +1 -1
- package/dist/commands/config/index.js +2 -2
- package/dist/commands/config/index.js.map +1 -1
- package/dist/commands/db/backup.d.ts +16 -0
- package/dist/commands/db/backup.js +125 -0
- package/dist/commands/db/backup.js.map +1 -0
- package/dist/commands/db/repair.js +8 -11
- package/dist/commands/db/repair.js.map +1 -1
- package/dist/commands/diet.d.ts +1 -1
- package/dist/commands/docker/index.js +2 -0
- package/dist/commands/docker/index.js.map +1 -1
- package/dist/commands/docker/rebuild-cache.d.ts +12 -0
- package/dist/commands/docker/rebuild-cache.js +144 -0
- package/dist/commands/docker/rebuild-cache.js.map +1 -0
- package/dist/commands/execution/config.d.ts +3 -4
- package/dist/commands/execution/config.js +5 -4
- package/dist/commands/execution/config.js.map +1 -1
- package/dist/commands/execution/index.d.ts +3 -4
- package/dist/commands/execution/index.js +5 -4
- package/dist/commands/execution/index.js.map +1 -1
- package/dist/commands/execution/list.d.ts +3 -4
- package/dist/commands/execution/list.js +5 -4
- package/dist/commands/execution/list.js.map +1 -1
- package/dist/commands/execution/logs.d.ts +3 -4
- package/dist/commands/execution/logs.js +5 -4
- package/dist/commands/execution/logs.js.map +1 -1
- package/dist/commands/execution/stop.d.ts +3 -4
- package/dist/commands/execution/stop.js +5 -4
- package/dist/commands/execution/stop.js.map +1 -1
- package/dist/commands/execution/view.d.ts +3 -4
- package/dist/commands/execution/view.js +5 -4
- package/dist/commands/execution/view.js.map +1 -1
- package/dist/commands/hook/export.d.ts +3 -4
- package/dist/commands/hook/export.js +5 -4
- package/dist/commands/hook/export.js.map +1 -1
- package/dist/commands/hook/fire.d.ts +3 -4
- package/dist/commands/hook/fire.js +5 -4
- package/dist/commands/hook/fire.js.map +1 -1
- package/dist/commands/hook/index.d.ts +1 -1
- package/dist/commands/hook/list.d.ts +3 -4
- package/dist/commands/hook/list.js +5 -4
- package/dist/commands/hook/list.js.map +1 -1
- package/dist/commands/hook/preset.d.ts +3 -4
- package/dist/commands/hook/preset.js +5 -4
- package/dist/commands/hook/preset.js.map +1 -1
- package/dist/commands/linear/auth.d.ts +1 -1
- package/dist/commands/linear/connect.d.ts +1 -1
- package/dist/commands/linear/import.d.ts +1 -1
- package/dist/commands/linear/status.d.ts +1 -1
- package/dist/commands/linear/sync.d.ts +1 -1
- package/dist/commands/mcp-server.d.ts +8 -2
- package/dist/commands/mcp-server.js +15 -28
- package/dist/commands/mcp-server.js.map +1 -1
- package/dist/commands/monday/connect.d.ts +1 -1
- package/dist/commands/monday/sync.d.ts +1 -1
- package/dist/commands/orchestrate/index.d.ts +3 -4
- package/dist/commands/orchestrate/index.js +5 -4
- package/dist/commands/orchestrate/index.js.map +1 -1
- package/dist/commands/orchestrator/index.d.ts +3 -4
- package/dist/commands/orchestrator/index.js +5 -4
- package/dist/commands/orchestrator/index.js.map +1 -1
- package/dist/commands/orchestrator/start.d.ts +3 -3
- package/dist/commands/orchestrator/start.js +38 -40
- package/dist/commands/orchestrator/start.js.map +1 -1
- package/dist/commands/pr/checks.d.ts +3 -4
- package/dist/commands/pr/checks.js +5 -4
- package/dist/commands/pr/checks.js.map +1 -1
- package/dist/commands/pr/close.d.ts +1 -1
- package/dist/commands/pr/create.d.ts +1 -1
- package/dist/commands/pr/index.d.ts +1 -1
- package/dist/commands/pr/link.d.ts +1 -1
- package/dist/commands/pr/list.d.ts +1 -1
- package/dist/commands/pr/merge.d.ts +1 -1
- package/dist/commands/pr/status.d.ts +1 -1
- package/dist/commands/pull.d.ts +1 -1
- package/dist/commands/repo/add.d.ts +3 -4
- package/dist/commands/repo/add.js +5 -4
- package/dist/commands/repo/add.js.map +1 -1
- package/dist/commands/repo/create.d.ts +3 -4
- package/dist/commands/repo/create.js +5 -4
- package/dist/commands/repo/create.js.map +1 -1
- package/dist/commands/repo/fix-remotes.d.ts +3 -4
- package/dist/commands/repo/fix-remotes.js +5 -4
- package/dist/commands/repo/fix-remotes.js.map +1 -1
- package/dist/commands/repo/index.d.ts +3 -4
- package/dist/commands/repo/index.js +5 -4
- package/dist/commands/repo/index.js.map +1 -1
- package/dist/commands/repo/list.d.ts +3 -4
- package/dist/commands/repo/list.js +5 -4
- package/dist/commands/repo/list.js.map +1 -1
- package/dist/commands/repo/remove.d.ts +1 -1
- package/dist/commands/repo/view.d.ts +1 -1
- package/dist/commands/session/attach.d.ts +1 -1
- package/dist/commands/session/cleanup.d.ts +3 -4
- package/dist/commands/session/cleanup.js +5 -4
- package/dist/commands/session/cleanup.js.map +1 -1
- package/dist/commands/session/create.d.ts +3 -4
- package/dist/commands/session/create.js +5 -4
- package/dist/commands/session/create.js.map +1 -1
- package/dist/commands/session/exec.d.ts +3 -4
- package/dist/commands/session/exec.js +5 -4
- package/dist/commands/session/exec.js.map +1 -1
- package/dist/commands/session/health.d.ts +1 -1
- package/dist/commands/session/health.js +18 -0
- package/dist/commands/session/health.js.map +1 -1
- package/dist/commands/session/index.d.ts +3 -4
- package/dist/commands/session/index.js +9 -4
- package/dist/commands/session/index.js.map +1 -1
- package/dist/commands/session/inspect.d.ts +3 -4
- package/dist/commands/session/inspect.js +5 -4
- package/dist/commands/session/inspect.js.map +1 -1
- package/dist/commands/session/list.d.ts +3 -4
- package/dist/commands/session/list.js +19 -5
- package/dist/commands/session/list.js.map +1 -1
- package/dist/commands/session/peek.d.ts +1 -1
- package/dist/commands/session/prune.d.ts +3 -4
- package/dist/commands/session/prune.js +5 -4
- package/dist/commands/session/prune.js.map +1 -1
- package/dist/commands/session/report.d.ts +25 -5
- package/dist/commands/session/report.js +201 -5
- package/dist/commands/session/report.js.map +1 -1
- package/dist/commands/session/restart.d.ts +3 -4
- package/dist/commands/session/restart.js +5 -4
- package/dist/commands/session/restart.js.map +1 -1
- package/dist/commands/session/watch.d.ts +17 -0
- package/dist/commands/session/watch.js +139 -0
- package/dist/commands/session/watch.js.map +1 -0
- package/dist/commands/shortcut/connect.d.ts +1 -1
- package/dist/commands/support/logs.d.ts +1 -1
- package/dist/commands/ticket/create.d.ts +1 -1
- package/dist/commands/ticket/delete.d.ts +1 -1
- package/dist/commands/ticket/edit.d.ts +1 -1
- package/dist/commands/ticket/index.d.ts +3 -4
- package/dist/commands/ticket/index.js +11 -40
- package/dist/commands/ticket/index.js.map +1 -1
- package/dist/commands/ticket/list.d.ts +1 -1
- package/dist/commands/ticket/move.d.ts +1 -1
- package/dist/commands/ticket/show.d.ts +8 -7
- package/dist/commands/ticket/show.js +101 -8
- package/dist/commands/ticket/show.js.map +1 -1
- package/dist/commands/ticket/update.d.ts +1 -1
- package/dist/commands/trello/configure.d.ts +1 -1
- package/dist/commands/trello/import.d.ts +1 -1
- package/dist/commands/trello/sync.d.ts +1 -1
- package/dist/commands/{dashboard/index.d.ts → web.d.ts} +10 -4
- package/dist/commands/web.js +82 -0
- package/dist/commands/web.js.map +1 -0
- package/dist/commands/work/asana.d.ts +1 -1
- package/dist/commands/work/complete.d.ts +1 -1
- package/dist/commands/work/groom.d.ts +1 -1
- package/dist/commands/work/hooks/add.d.ts +3 -4
- package/dist/commands/work/hooks/add.js +5 -4
- package/dist/commands/work/hooks/add.js.map +1 -1
- package/dist/commands/work/hooks/index.d.ts +1 -1
- package/dist/commands/work/hooks/list.d.ts +3 -4
- package/dist/commands/work/hooks/list.js +5 -4
- package/dist/commands/work/hooks/list.js.map +1 -1
- package/dist/commands/work/hooks/remove.d.ts +1 -1
- package/dist/commands/work/hooks/toggle.d.ts +3 -4
- package/dist/commands/work/hooks/toggle.js +5 -4
- package/dist/commands/work/hooks/toggle.js.map +1 -1
- package/dist/commands/work/implement.d.ts +1 -1
- package/dist/commands/work/index.d.ts +1 -1
- package/dist/commands/work/jira.d.ts +1 -1
- package/dist/commands/work/linear.d.ts +1 -1
- package/dist/commands/work/peek.d.ts +3 -4
- package/dist/commands/work/peek.js +5 -4
- package/dist/commands/work/peek.js.map +1 -1
- package/dist/commands/{ticket/cancel.d.ts → work/propose.d.ts} +11 -5
- package/dist/commands/work/propose.js +57 -0
- package/dist/commands/work/propose.js.map +1 -0
- package/dist/commands/work/ready.d.ts +1 -1
- package/dist/commands/work/ready.js +2 -2
- package/dist/commands/work/ready.js.map +1 -1
- package/dist/commands/work/rebase.d.ts +2 -2
- package/dist/commands/work/rebase.js +52 -49
- package/dist/commands/work/rebase.js.map +1 -1
- package/dist/commands/work/resolve.d.ts +1 -1
- package/dist/commands/work/review.d.ts +1 -1
- package/dist/commands/work/ship.d.ts +7 -1
- package/dist/commands/work/ship.js +217 -48
- package/dist/commands/work/ship.js.map +1 -1
- package/dist/commands/work/shortcut.d.ts +1 -1
- package/dist/commands/work/source/set.d.ts +1 -1
- package/dist/commands/work/source.d.ts +1 -1
- package/dist/commands/work/spawn.d.ts +1 -1
- package/dist/commands/work/start.d.ts +1 -1
- package/dist/commands/work/start.js +3 -6
- package/dist/commands/work/start.js.map +1 -1
- package/dist/commands/work/status.d.ts +1 -1
- package/dist/commands/work/stop.d.ts +3 -4
- package/dist/commands/work/stop.js +5 -4
- package/dist/commands/work/stop.js.map +1 -1
- package/dist/commands/work/watch.d.ts +1 -1
- package/dist/hooks/init.js +12 -2
- package/dist/hooks/init.js.map +1 -1
- package/dist/lib/asana/config.js +13 -7
- package/dist/lib/asana/config.js.map +1 -1
- package/dist/lib/branch/index.d.ts +6 -5
- package/dist/lib/branch/index.js +8 -13
- package/dist/lib/branch/index.js.map +1 -1
- package/dist/lib/clickup/client.d.ts +92 -0
- package/dist/lib/clickup/client.js +150 -0
- package/dist/lib/clickup/client.js.map +1 -0
- package/dist/lib/clickup/config.d.ts +41 -0
- package/dist/lib/clickup/config.js +104 -0
- package/dist/lib/clickup/config.js.map +1 -0
- package/dist/lib/clickup/index.d.ts +4 -0
- package/dist/lib/clickup/index.js +4 -0
- package/dist/lib/clickup/index.js.map +1 -0
- package/dist/lib/clickup/types.d.ts +104 -0
- package/dist/lib/clickup/types.js +34 -0
- package/dist/lib/clickup/types.js.map +1 -0
- package/dist/lib/dashboard/html.d.ts +2 -1
- package/dist/lib/dashboard/html.js +150 -522
- package/dist/lib/dashboard/html.js.map +1 -1
- package/dist/lib/database/credential-store.d.ts +64 -0
- package/dist/lib/database/credential-store.js +306 -0
- package/dist/lib/database/credential-store.js.map +1 -0
- package/dist/lib/database/db-safety.d.ts +48 -9
- package/dist/lib/database/db-safety.js +308 -43
- package/dist/lib/database/db-safety.js.map +1 -1
- package/dist/lib/database/index.d.ts +2 -1
- package/dist/lib/database/index.js +3 -1
- package/dist/lib/database/index.js.map +1 -1
- package/dist/lib/database/pmo-bootstrap.d.ts +7 -0
- package/dist/lib/database/pmo-bootstrap.js +45 -20
- package/dist/lib/database/pmo-bootstrap.js.map +1 -1
- package/dist/lib/database/workspace.js +7 -1
- package/dist/lib/database/workspace.js.map +1 -1
- package/dist/lib/execution/devcontainer.js +51 -0
- package/dist/lib/execution/devcontainer.js.map +1 -1
- package/dist/lib/execution/runners/docker-management.d.ts +23 -0
- package/dist/lib/execution/runners/docker-management.js +99 -7
- package/dist/lib/execution/runners/docker-management.js.map +1 -1
- package/dist/lib/execution/runners/docker.js +8 -0
- package/dist/lib/execution/runners/docker.js.map +1 -1
- package/dist/lib/execution/runners/prompt-builder.js +9 -6
- package/dist/lib/execution/runners/prompt-builder.js.map +1 -1
- package/dist/lib/execution/session-utils.d.ts +4 -0
- package/dist/lib/execution/session-utils.js +34 -24
- package/dist/lib/execution/session-utils.js.map +1 -1
- package/dist/lib/execution/spawner.js +2 -4
- package/dist/lib/execution/spawner.js.map +1 -1
- package/dist/lib/execution/storage.d.ts +29 -1
- package/dist/lib/execution/storage.js +77 -0
- package/dist/lib/execution/storage.js.map +1 -1
- package/dist/lib/execution/types.d.ts +17 -6
- package/dist/lib/execution/types.js +11 -8
- package/dist/lib/execution/types.js.map +1 -1
- package/dist/lib/external-issues/types.d.ts +3 -3
- package/dist/lib/external-issues/types.js +1 -1
- package/dist/lib/external-issues/types.js.map +1 -1
- package/dist/lib/jira/config.js +10 -4
- package/dist/lib/jira/config.js.map +1 -1
- package/dist/lib/linear/config.js +13 -8
- package/dist/lib/linear/config.js.map +1 -1
- package/dist/lib/machine-config.d.ts +8 -0
- package/dist/lib/machine-config.js +37 -0
- package/dist/lib/machine-config.js.map +1 -1
- package/dist/lib/mcp/generator.d.ts +26 -0
- package/dist/lib/mcp/generator.js +219 -0
- package/dist/lib/mcp/generator.js.map +1 -0
- package/dist/lib/mcp/index.d.ts +1 -0
- package/dist/lib/mcp/index.js +1 -0
- package/dist/lib/mcp/index.js.map +1 -1
- package/dist/lib/mcp/tools/index.d.ts +0 -11
- package/dist/lib/mcp/tools/index.js +0 -11
- package/dist/lib/mcp/tools/index.js.map +1 -1
- package/dist/lib/mcp/tools/overrides/index.d.ts +23 -0
- package/dist/lib/mcp/tools/overrides/index.js +30 -0
- package/dist/lib/mcp/tools/overrides/index.js.map +1 -0
- package/dist/lib/mcp/tools/overrides/tmux.d.ts +11 -0
- package/dist/lib/mcp/tools/overrides/tmux.js +184 -0
- package/dist/lib/mcp/tools/overrides/tmux.js.map +1 -0
- package/dist/lib/mcp/tools/overrides/work-start.d.ts +12 -0
- package/dist/lib/mcp/tools/overrides/work-start.js +108 -0
- package/dist/lib/mcp/tools/overrides/work-start.js.map +1 -0
- package/dist/lib/mcp/tools/ticket.js +10 -48
- package/dist/lib/mcp/tools/ticket.js.map +1 -1
- package/dist/lib/monday/config.js +11 -5
- package/dist/lib/monday/config.js.map +1 -1
- package/dist/lib/orchestrate/poller.d.ts +1 -1
- package/dist/lib/orchestrate/poller.js +1 -1
- package/dist/lib/pmo/base-command.d.ts +20 -152
- package/dist/lib/pmo/base-command.js +32 -198
- package/dist/lib/pmo/base-command.js.map +1 -1
- package/dist/lib/pmo/index.d.ts +1 -0
- package/dist/lib/pmo/index.js +3 -0
- package/dist/lib/pmo/index.js.map +1 -1
- package/dist/lib/pmo/storage/base.d.ts +0 -18
- package/dist/lib/pmo/storage/base.js +5 -234
- package/dist/lib/pmo/storage/base.js.map +1 -1
- package/dist/lib/pmo/storage/index.d.ts +1 -76
- package/dist/lib/pmo/storage/index.js +1 -215
- package/dist/lib/pmo/storage/index.js.map +1 -1
- package/dist/lib/pmo/storage/tickets.d.ts +2 -2
- package/dist/lib/pmo/storage/tickets.js +4 -34
- package/dist/lib/pmo/storage/tickets.js.map +1 -1
- package/dist/lib/pmo/types.d.ts +0 -37
- package/dist/lib/providers/clickup-provider.d.ts +28 -0
- package/dist/lib/providers/clickup-provider.js +353 -0
- package/dist/lib/providers/clickup-provider.js.map +1 -0
- package/dist/lib/providers/index.d.ts +1 -0
- package/dist/lib/providers/index.js +1 -0
- package/dist/lib/providers/index.js.map +1 -1
- package/dist/lib/providers/resolver.d.ts +1 -1
- package/dist/lib/providers/resolver.js +32 -5
- package/dist/lib/providers/resolver.js.map +1 -1
- package/dist/lib/providers/trello-provider.d.ts +28 -0
- package/dist/lib/providers/trello-provider.js +381 -0
- package/dist/lib/providers/trello-provider.js.map +1 -0
- package/dist/lib/providers/types.d.ts +1 -1
- package/dist/lib/runners/claude-code-runner.js +13 -4
- package/dist/lib/runners/claude-code-runner.js.map +1 -1
- package/dist/lib/runtime-command.d.ts +219 -0
- package/dist/lib/runtime-command.js +320 -0
- package/dist/lib/runtime-command.js.map +1 -0
- package/dist/lib/session/heartbeat.d.ts +45 -0
- package/dist/lib/session/heartbeat.js +150 -0
- package/dist/lib/session/heartbeat.js.map +1 -0
- package/dist/lib/session/index.d.ts +7 -0
- package/dist/lib/session/index.js +8 -0
- package/dist/lib/session/index.js.map +1 -0
- package/dist/lib/session/watcher.d.ts +79 -0
- package/dist/lib/session/watcher.js +142 -0
- package/dist/lib/session/watcher.js.map +1 -0
- package/dist/lib/shipping/auto-merge.d.ts +57 -0
- package/dist/lib/shipping/auto-merge.js +311 -0
- package/dist/lib/shipping/auto-merge.js.map +1 -0
- package/dist/lib/shipping/github.d.ts +68 -0
- package/dist/lib/shipping/github.js +217 -0
- package/dist/lib/shipping/github.js.map +1 -0
- package/dist/lib/shipping/index.d.ts +13 -0
- package/dist/lib/shipping/index.js +11 -0
- package/dist/lib/shipping/index.js.map +1 -0
- package/dist/lib/shipping/rebase.d.ts +35 -0
- package/dist/lib/shipping/rebase.js +107 -0
- package/dist/lib/shipping/rebase.js.map +1 -0
- package/dist/lib/shipping/types.d.ts +181 -0
- package/dist/lib/shipping/types.js +9 -0
- package/dist/lib/shipping/types.js.map +1 -0
- package/dist/lib/shortcut/config.js +13 -7
- package/dist/lib/shortcut/config.js.map +1 -1
- package/dist/lib/trello/client.d.ts +1 -0
- package/dist/lib/trello/client.js +6 -0
- package/dist/lib/trello/client.js.map +1 -1
- package/dist/lib/trello/config.js +17 -12
- package/dist/lib/trello/config.js.map +1 -1
- package/dist/lib/work-lifecycle/events.d.ts +1 -1
- package/dist/lib/work-source/config.d.ts +1 -1
- package/dist/lib/work-source/config.js +11 -1
- package/dist/lib/work-source/config.js.map +1 -1
- package/dist/lib/work-source/provider-sources.js +6 -1
- package/dist/lib/work-source/provider-sources.js.map +1 -1
- package/oclif.manifest.json +3810 -5723
- package/package.json +8 -8
- package/dist/commands/board/index.d.ts +0 -21
- package/dist/commands/board/index.js +0 -263
- package/dist/commands/board/index.js.map +0 -1
- package/dist/commands/board/view.d.ts +0 -15
- package/dist/commands/board/view.js +0 -137
- package/dist/commands/board/view.js.map +0 -1
- package/dist/commands/board/watch.d.ts +0 -15
- package/dist/commands/board/watch.js +0 -59
- package/dist/commands/board/watch.js.map +0 -1
- package/dist/commands/dashboard/index.js +0 -117
- package/dist/commands/dashboard/index.js.map +0 -1
- package/dist/commands/dashboard.d.ts +0 -38
- package/dist/commands/dashboard.js +0 -353
- package/dist/commands/dashboard.js.map +0 -1
- package/dist/commands/pmo/init.d.ts +0 -28
- package/dist/commands/pmo/init.js +0 -410
- package/dist/commands/pmo/init.js.map +0 -1
- package/dist/commands/project/archive.d.ts +0 -18
- package/dist/commands/project/archive.js +0 -79
- package/dist/commands/project/archive.js.map +0 -1
- package/dist/commands/project/create.d.ts +0 -24
- package/dist/commands/project/create.js +0 -191
- package/dist/commands/project/create.js.map +0 -1
- package/dist/commands/project/delete.d.ts +0 -18
- package/dist/commands/project/delete.js +0 -115
- package/dist/commands/project/delete.js.map +0 -1
- package/dist/commands/project/index.d.ts +0 -14
- package/dist/commands/project/index.js +0 -60
- package/dist/commands/project/index.js.map +0 -1
- package/dist/commands/project/list.d.ts +0 -16
- package/dist/commands/project/list.js +0 -115
- package/dist/commands/project/list.js.map +0 -1
- package/dist/commands/project/spec.d.ts +0 -19
- package/dist/commands/project/spec.js +0 -218
- package/dist/commands/project/spec.js.map +0 -1
- package/dist/commands/project/unarchive.d.ts +0 -17
- package/dist/commands/project/unarchive.js +0 -55
- package/dist/commands/project/unarchive.js.map +0 -1
- package/dist/commands/project/update.d.ts +0 -19
- package/dist/commands/project/update.js +0 -161
- package/dist/commands/project/update.js.map +0 -1
- package/dist/commands/project/view.d.ts +0 -17
- package/dist/commands/project/view.js +0 -107
- package/dist/commands/project/view.js.map +0 -1
- package/dist/commands/ticket/bulk.d.ts +0 -14
- package/dist/commands/ticket/bulk.js +0 -141
- package/dist/commands/ticket/bulk.js.map +0 -1
- package/dist/commands/ticket/cancel.js +0 -206
- package/dist/commands/ticket/cancel.js.map +0 -1
- package/dist/commands/ticket/category.d.ts +0 -15
- package/dist/commands/ticket/category.js +0 -64
- package/dist/commands/ticket/category.js.map +0 -1
- package/dist/commands/ticket/complete.d.ts +0 -17
- package/dist/commands/ticket/complete.js +0 -193
- package/dist/commands/ticket/complete.js.map +0 -1
- package/dist/commands/ticket/epic.d.ts +0 -21
- package/dist/commands/ticket/epic.js +0 -306
- package/dist/commands/ticket/epic.js.map +0 -1
- package/dist/commands/ticket/link/block.d.ts +0 -15
- package/dist/commands/ticket/link/block.js +0 -96
- package/dist/commands/ticket/link/block.js.map +0 -1
- package/dist/commands/ticket/link/duplicates.d.ts +0 -15
- package/dist/commands/ticket/link/duplicates.js +0 -96
- package/dist/commands/ticket/link/duplicates.js.map +0 -1
- package/dist/commands/ticket/link/index.d.ts +0 -14
- package/dist/commands/ticket/link/index.js +0 -99
- package/dist/commands/ticket/link/index.js.map +0 -1
- package/dist/commands/ticket/link/relates.d.ts +0 -15
- package/dist/commands/ticket/link/relates.js +0 -96
- package/dist/commands/ticket/link/relates.js.map +0 -1
- package/dist/commands/ticket/project.d.ts +0 -19
- package/dist/commands/ticket/project.js +0 -257
- package/dist/commands/ticket/project.js.map +0 -1
- package/dist/commands/ticket/reassign.d.ts +0 -20
- package/dist/commands/ticket/reassign.js +0 -340
- package/dist/commands/ticket/reassign.js.map +0 -1
- package/dist/commands/ticket/resolve.d.ts +0 -68
- package/dist/commands/ticket/resolve.js +0 -306
- package/dist/commands/ticket/resolve.js.map +0 -1
- package/dist/commands/ticket/spec.d.ts +0 -19
- package/dist/commands/ticket/spec.js +0 -260
- package/dist/commands/ticket/spec.js.map +0 -1
- package/dist/commands/ticket/status.d.ts +0 -14
- package/dist/commands/ticket/status.js +0 -84
- package/dist/commands/ticket/status.js.map +0 -1
- package/dist/commands/ticket/view.d.ts +0 -14
- package/dist/commands/ticket/view.js +0 -113
- package/dist/commands/ticket/view.js.map +0 -1
- package/dist/lib/mcp/tools/board.d.ts +0 -6
- package/dist/lib/mcp/tools/board.js +0 -190
- package/dist/lib/mcp/tools/board.js.map +0 -1
- package/dist/lib/mcp/tools/category.d.ts +0 -6
- package/dist/lib/mcp/tools/category.js +0 -85
- package/dist/lib/mcp/tools/category.js.map +0 -1
- package/dist/lib/mcp/tools/epic.d.ts +0 -6
- package/dist/lib/mcp/tools/epic.js +0 -184
- package/dist/lib/mcp/tools/epic.js.map +0 -1
- package/dist/lib/mcp/tools/label.d.ts +0 -6
- package/dist/lib/mcp/tools/label.js +0 -339
- package/dist/lib/mcp/tools/label.js.map +0 -1
- package/dist/lib/mcp/tools/phase.d.ts +0 -6
- package/dist/lib/mcp/tools/phase.js +0 -132
- package/dist/lib/mcp/tools/phase.js.map +0 -1
- package/dist/lib/mcp/tools/project.d.ts +0 -6
- package/dist/lib/mcp/tools/project.js +0 -197
- package/dist/lib/mcp/tools/project.js.map +0 -1
- package/dist/lib/mcp/tools/roadmap.d.ts +0 -6
- package/dist/lib/mcp/tools/roadmap.js +0 -124
- package/dist/lib/mcp/tools/roadmap.js.map +0 -1
- package/dist/lib/mcp/tools/status.d.ts +0 -6
- package/dist/lib/mcp/tools/status.js +0 -110
- package/dist/lib/mcp/tools/status.js.map +0 -1
- package/dist/lib/mcp/tools/template.d.ts +0 -6
- package/dist/lib/mcp/tools/template.js +0 -108
- package/dist/lib/mcp/tools/template.js.map +0 -1
- package/dist/lib/mcp/tools/view.d.ts +0 -6
- package/dist/lib/mcp/tools/view.js +0 -77
- package/dist/lib/mcp/tools/view.js.map +0 -1
- package/dist/lib/mcp/tools/workflow.d.ts +0 -6
- package/dist/lib/mcp/tools/workflow.js +0 -96
- package/dist/lib/mcp/tools/workflow.js.map +0 -1
- package/dist/lib/pmo/storage/categories.d.ts +0 -50
- package/dist/lib/pmo/storage/categories.js +0 -206
- package/dist/lib/pmo/storage/categories.js.map +0 -1
- package/dist/lib/pmo/storage/labels.d.ts +0 -55
- package/dist/lib/pmo/storage/labels.js +0 -347
- package/dist/lib/pmo/storage/labels.js.map +0 -1
- package/dist/lib/pmo/storage/phases.d.ts +0 -65
- package/dist/lib/pmo/storage/phases.js +0 -393
- package/dist/lib/pmo/storage/phases.js.map +0 -1
- package/dist/lib/pmo/storage/roadmaps.d.ts +0 -64
- package/dist/lib/pmo/storage/roadmaps.js +0 -373
- package/dist/lib/pmo/storage/roadmaps.js.map +0 -1
- package/dist/lib/pmo/storage/views.d.ts +0 -57
- package/dist/lib/pmo/storage/views.js +0 -456
- package/dist/lib/pmo/storage/views.js.map +0 -1
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Agent Heartbeat
|
|
3
|
+
*
|
|
4
|
+
* Heartbeat recording and checking for agent executions.
|
|
5
|
+
* The heartbeat system has two sides:
|
|
6
|
+
*
|
|
7
|
+
* 1. Agent-side (push): Agents update their heartbeat when alive/active.
|
|
8
|
+
* This is done by checking tmux pane liveness and JSONL file activity.
|
|
9
|
+
*
|
|
10
|
+
* 2. Host-side (pull): The watcher checks heartbeat timestamps and marks
|
|
11
|
+
* stale executions as failed. This catches the case where the agent is
|
|
12
|
+
* so dead it can't self-report (OOM, zombie processes).
|
|
13
|
+
*/
|
|
14
|
+
import { execSync } from 'node:child_process';
|
|
15
|
+
import { captureTmuxPane, getHostTmuxSessionNames, getContainerTmuxSessionMap, findContainerSessionsByPrefix, findSessionForExecution, } from '../execution/session-utils.js';
|
|
16
|
+
import { detectState } from '../../commands/session/health.js';
|
|
17
|
+
// =============================================================================
|
|
18
|
+
// Heartbeat Recording (Agent-side push)
|
|
19
|
+
// =============================================================================
|
|
20
|
+
/**
|
|
21
|
+
* Record a heartbeat for an execution by checking if its tmux session is alive.
|
|
22
|
+
* Uses tmux pane inspection to determine if the agent is still active.
|
|
23
|
+
*
|
|
24
|
+
* Returns the detected health state, or null if the session couldn't be found.
|
|
25
|
+
*/
|
|
26
|
+
export function recordHeartbeatFromSession(storage, execution) {
|
|
27
|
+
const isContainer = execution.environment === 'devcontainer';
|
|
28
|
+
let sessionId = execution.sessionId;
|
|
29
|
+
// Try to find the tmux session
|
|
30
|
+
if (isContainer && execution.containerId) {
|
|
31
|
+
const containerSessions = getContainerTmuxSessionMap();
|
|
32
|
+
const sessions = findContainerSessionsByPrefix(containerSessions, execution.containerId);
|
|
33
|
+
if (!sessions || sessions.length === 0)
|
|
34
|
+
return null;
|
|
35
|
+
if (sessionId && sessions.includes(sessionId)) {
|
|
36
|
+
// Session found by exact match
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
// Try fuzzy match
|
|
40
|
+
const match = findSessionForExecution(execution.ticketId, execution.agentName, sessions);
|
|
41
|
+
if (match) {
|
|
42
|
+
sessionId = match;
|
|
43
|
+
}
|
|
44
|
+
else {
|
|
45
|
+
return null;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
else {
|
|
50
|
+
const hostSessions = getHostTmuxSessionNames();
|
|
51
|
+
if (sessionId && hostSessions.includes(sessionId)) {
|
|
52
|
+
// Session found
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
const match = findSessionForExecution(execution.ticketId, execution.agentName, hostSessions);
|
|
56
|
+
if (match) {
|
|
57
|
+
sessionId = match;
|
|
58
|
+
}
|
|
59
|
+
else {
|
|
60
|
+
return null;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
if (!sessionId)
|
|
65
|
+
return null;
|
|
66
|
+
// Capture pane content and detect state
|
|
67
|
+
const paneContent = captureTmuxPane(sessionId, 10, isContainer ? execution.containerId : undefined);
|
|
68
|
+
const state = detectState(paneContent);
|
|
69
|
+
// If the session is alive (any state other than UNKNOWN with no content), record heartbeat
|
|
70
|
+
if (paneContent !== null) {
|
|
71
|
+
storage.updateHeartbeat(execution.id);
|
|
72
|
+
// Update lifecycle state based on detected health
|
|
73
|
+
if (state === 'WORKING') {
|
|
74
|
+
storage.updateLifecycleState(execution.id, 'healthy');
|
|
75
|
+
}
|
|
76
|
+
else if (state === 'IDLE') {
|
|
77
|
+
storage.updateLifecycleState(execution.id, 'idle');
|
|
78
|
+
}
|
|
79
|
+
else if (state === 'DONE') {
|
|
80
|
+
storage.updateLifecycleState(execution.id, 'completed');
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
return state;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Record heartbeats for all running executions.
|
|
87
|
+
* Returns a map of execution ID to detected state.
|
|
88
|
+
*/
|
|
89
|
+
export function recordAllHeartbeats(storage) {
|
|
90
|
+
const results = new Map();
|
|
91
|
+
const runningExecutions = storage.listExecutions({ status: 'running' });
|
|
92
|
+
const startingExecutions = storage.listExecutions({ status: 'starting' });
|
|
93
|
+
const activeExecutions = [...runningExecutions, ...startingExecutions];
|
|
94
|
+
for (const exec of activeExecutions) {
|
|
95
|
+
const state = recordHeartbeatFromSession(storage, exec);
|
|
96
|
+
if (state) {
|
|
97
|
+
results.set(exec.id, state);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return results;
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Check for stale executions that have exceeded the heartbeat timeout.
|
|
104
|
+
*/
|
|
105
|
+
export function detectStaleExecutions(storage, timeoutMinutes) {
|
|
106
|
+
const staleExecutions = storage.getStaleExecutions(timeoutMinutes);
|
|
107
|
+
return staleExecutions.map(exec => {
|
|
108
|
+
const lastHeartbeat = exec.lastHeartbeat || null;
|
|
109
|
+
const referenceTime = lastHeartbeat || exec.startedAt;
|
|
110
|
+
const staleDurationMs = Date.now() - referenceTime.getTime();
|
|
111
|
+
const staleDurationMinutes = Math.floor(staleDurationMs / 60000);
|
|
112
|
+
const reason = lastHeartbeat
|
|
113
|
+
? `No heartbeat for ${staleDurationMinutes} minutes (last: ${lastHeartbeat.toISOString()})`
|
|
114
|
+
: `No heartbeat since start ${staleDurationMinutes} minutes ago`;
|
|
115
|
+
return {
|
|
116
|
+
execution: exec,
|
|
117
|
+
lastHeartbeat,
|
|
118
|
+
staleDurationMinutes,
|
|
119
|
+
reason,
|
|
120
|
+
};
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
// =============================================================================
|
|
124
|
+
// Container Kill
|
|
125
|
+
// =============================================================================
|
|
126
|
+
/**
|
|
127
|
+
* Kill a Docker container by ID.
|
|
128
|
+
* Returns true if the container was killed or already stopped.
|
|
129
|
+
*/
|
|
130
|
+
export function killContainer(containerId) {
|
|
131
|
+
try {
|
|
132
|
+
execSync(`docker kill ${containerId}`, {
|
|
133
|
+
encoding: 'utf-8',
|
|
134
|
+
stdio: ['pipe', 'pipe', 'pipe'],
|
|
135
|
+
timeout: 30000,
|
|
136
|
+
});
|
|
137
|
+
return true;
|
|
138
|
+
}
|
|
139
|
+
catch {
|
|
140
|
+
// Container may already be stopped
|
|
141
|
+
try {
|
|
142
|
+
const status = execSync(`docker inspect --format '{{.State.Status}}' ${containerId}`, { encoding: 'utf-8', stdio: ['pipe', 'pipe', 'pipe'], timeout: 10000 }).trim();
|
|
143
|
+
return status === 'exited' || status === 'dead';
|
|
144
|
+
}
|
|
145
|
+
catch {
|
|
146
|
+
return false;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
//# sourceMappingURL=heartbeat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heartbeat.js","sourceRoot":"","sources":["../../../src/lib/session/heartbeat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAI7C,OAAO,EACL,eAAe,EACf,uBAAuB,EACvB,0BAA0B,EAC1B,6BAA6B,EAC7B,uBAAuB,GACxB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAE9D,gFAAgF;AAChF,wCAAwC;AACxC,gFAAgF;AAEhF;;;;;GAKG;AACH,MAAM,UAAU,0BAA0B,CACxC,OAAyB,EACzB,SAAoB;IAEpB,MAAM,WAAW,GAAG,SAAS,CAAC,WAAW,KAAK,cAAc,CAAA;IAC5D,IAAI,SAAS,GAAG,SAAS,CAAC,SAAS,CAAA;IAEnC,+BAA+B;IAC/B,IAAI,WAAW,IA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E,QAAQ,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,EAAE,KAAK,EAAE,CACvE,CAAC,IAAI,EAAE,CAAA;YACR,OAAO,MAAM,KAAK,QAAQ,IAAI,MAAM,KAAK,MAAM,CAAA;QACjD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/lib/session/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,cAAc,gBAAgB,CAAA;AAC9B,cAAc,cAAc,CAAA"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Watcher
|
|
3
|
+
*
|
|
4
|
+
* Host-side cron/poll loop that monitors agent heartbeats and takes action
|
|
5
|
+
* on stale executions. This is the safety net for detecting hung agents
|
|
6
|
+
* that can't self-report (OOM kills, zombie processes, container crashes).
|
|
7
|
+
*
|
|
8
|
+
* Architecture:
|
|
9
|
+
* 1. Poll: Check all running executions for heartbeat timeout
|
|
10
|
+
* 2. Update: Record heartbeats for alive agents (tmux pane inspection)
|
|
11
|
+
* 3. Detect: Find stale executions that exceeded the timeout
|
|
12
|
+
* 4. Act: Mark failed, kill containers, fire events
|
|
13
|
+
*/
|
|
14
|
+
import type Database from 'better-sqlite3';
|
|
15
|
+
import type { AgentWork } from '../execution/types.js';
|
|
16
|
+
import { type StaleExecution } from './heartbeat.js';
|
|
17
|
+
export interface WatcherOptions {
|
|
18
|
+
/** Database connection */
|
|
19
|
+
db: Database.Database;
|
|
20
|
+
/** Poll interval in minutes (default: 5) */
|
|
21
|
+
intervalMinutes?: number;
|
|
22
|
+
/** Heartbeat timeout in minutes (default: 15) */
|
|
23
|
+
timeoutMinutes?: number;
|
|
24
|
+
/** Whether to kill containers on timeout (default: true) */
|
|
25
|
+
autoKill?: boolean;
|
|
26
|
+
/** Logger function */
|
|
27
|
+
log?: (msg: string) => void;
|
|
28
|
+
/** Callback when a stale execution is detected and handled */
|
|
29
|
+
onStaleDetected?: (execution: AgentWork, reason: string) => void | Promise<void>;
|
|
30
|
+
}
|
|
31
|
+
export interface WatchCycleResult {
|
|
32
|
+
/** Number of active executions checked */
|
|
33
|
+
checked: number;
|
|
34
|
+
/** Number of heartbeats updated (agents confirmed alive) */
|
|
35
|
+
heartbeatsUpdated: number;
|
|
36
|
+
/** Stale executions detected and acted upon */
|
|
37
|
+
staleExecutions: StaleExecution[];
|
|
38
|
+
/** Number of containers killed */
|
|
39
|
+
containersKilled: number;
|
|
40
|
+
}
|
|
41
|
+
export declare class SessionWatcher {
|
|
42
|
+
private storage;
|
|
43
|
+
private db;
|
|
44
|
+
private intervalMinutes;
|
|
45
|
+
private timeoutMinutes;
|
|
46
|
+
private autoKill;
|
|
47
|
+
private log;
|
|
48
|
+
private onStaleDetected?;
|
|
49
|
+
private timer;
|
|
50
|
+
private running;
|
|
51
|
+
constructor(options: WatcherOptions);
|
|
52
|
+
/**
|
|
53
|
+
* Run a single watch cycle.
|
|
54
|
+
* Can be called directly for one-shot checking, or used by the polling loop.
|
|
55
|
+
*/
|
|
56
|
+
runCycle(): Promise<WatchCycleResult>;
|
|
57
|
+
/**
|
|
58
|
+
* Start the polling loop.
|
|
59
|
+
* Runs an initial cycle immediately, then polls at the configured interval.
|
|
60
|
+
*/
|
|
61
|
+
start(): void;
|
|
62
|
+
/**
|
|
63
|
+
* Stop the polling loop.
|
|
64
|
+
*/
|
|
65
|
+
stop(): void;
|
|
66
|
+
/**
|
|
67
|
+
* Check if the watcher is currently running.
|
|
68
|
+
*/
|
|
69
|
+
isRunning(): boolean;
|
|
70
|
+
/**
|
|
71
|
+
* Get current configuration.
|
|
72
|
+
*/
|
|
73
|
+
getConfig(): {
|
|
74
|
+
intervalMinutes: number;
|
|
75
|
+
timeoutMinutes: number;
|
|
76
|
+
autoKill: boolean;
|
|
77
|
+
};
|
|
78
|
+
private runCycleWithErrorHandling;
|
|
79
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Session Watcher
|
|
3
|
+
*
|
|
4
|
+
* Host-side cron/poll loop that monitors agent heartbeats and takes action
|
|
5
|
+
* on stale executions. This is the safety net for detecting hung agents
|
|
6
|
+
* that can't self-report (OOM kills, zombie processes, container crashes).
|
|
7
|
+
*
|
|
8
|
+
* Architecture:
|
|
9
|
+
* 1. Poll: Check all running executions for heartbeat timeout
|
|
10
|
+
* 2. Update: Record heartbeats for alive agents (tmux pane inspection)
|
|
11
|
+
* 3. Detect: Find stale executions that exceeded the timeout
|
|
12
|
+
* 4. Act: Mark failed, kill containers, fire events
|
|
13
|
+
*/
|
|
14
|
+
import { ExecutionStorage } from '../execution/storage.js';
|
|
15
|
+
import { recordAllHeartbeats, detectStaleExecutions, killContainer, } from './heartbeat.js';
|
|
16
|
+
// =============================================================================
|
|
17
|
+
// Session Watcher
|
|
18
|
+
// =============================================================================
|
|
19
|
+
export class SessionWatcher {
|
|
20
|
+
storage;
|
|
21
|
+
db;
|
|
22
|
+
intervalMinutes;
|
|
23
|
+
timeoutMinutes;
|
|
24
|
+
autoKill;
|
|
25
|
+
log;
|
|
26
|
+
onStaleDetected;
|
|
27
|
+
timer = null;
|
|
28
|
+
running = false;
|
|
29
|
+
constructor(options) {
|
|
30
|
+
this.db = options.db;
|
|
31
|
+
this.storage = new ExecutionStorage(options.db);
|
|
32
|
+
this.intervalMinutes = options.intervalMinutes ?? 5;
|
|
33
|
+
this.timeoutMinutes = options.timeoutMinutes ?? 15;
|
|
34
|
+
this.autoKill = options.autoKill ?? true;
|
|
35
|
+
this.log = options.log ?? (() => { });
|
|
36
|
+
this.onStaleDetected = options.onStaleDetected;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Run a single watch cycle.
|
|
40
|
+
* Can be called directly for one-shot checking, or used by the polling loop.
|
|
41
|
+
*/
|
|
42
|
+
async runCycle() {
|
|
43
|
+
const result = {
|
|
44
|
+
checked: 0,
|
|
45
|
+
heartbeatsUpdated: 0,
|
|
46
|
+
staleExecutions: [],
|
|
47
|
+
containersKilled: 0,
|
|
48
|
+
};
|
|
49
|
+
// Phase 1: Record heartbeats for all active executions
|
|
50
|
+
// This is the "push" side — we check tmux panes and update heartbeats
|
|
51
|
+
const heartbeats = recordAllHeartbeats(this.storage);
|
|
52
|
+
result.heartbeatsUpdated = heartbeats.size;
|
|
53
|
+
result.checked = heartbeats.size;
|
|
54
|
+
// Phase 2: Detect stale executions that exceeded timeout
|
|
55
|
+
// This is the "pull" side — safety net for completely dead agents
|
|
56
|
+
const staleExecutions = detectStaleExecutions(this.storage, this.timeoutMinutes);
|
|
57
|
+
result.staleExecutions = staleExecutions;
|
|
58
|
+
// Phase 3: Act on stale executions
|
|
59
|
+
for (const stale of staleExecutions) {
|
|
60
|
+
const exec = stale.execution;
|
|
61
|
+
this.log(`[watcher] Stale agent detected: ${exec.agentName} (${exec.ticketId}) — ${stale.reason}`);
|
|
62
|
+
// Mark execution as failed due to heartbeat timeout
|
|
63
|
+
this.storage.markHeartbeatTimeout(exec.id);
|
|
64
|
+
// Kill container if configured and applicable
|
|
65
|
+
if (this.autoKill && exec.containerId) {
|
|
66
|
+
this.log(`[watcher] Killing container ${exec.containerId} for ${exec.agentName}`);
|
|
67
|
+
const killed = killContainer(exec.containerId);
|
|
68
|
+
if (killed) {
|
|
69
|
+
result.containersKilled++;
|
|
70
|
+
this.log(`[watcher] Container ${exec.containerId} killed`);
|
|
71
|
+
}
|
|
72
|
+
else {
|
|
73
|
+
this.log(`[watcher] Failed to kill container ${exec.containerId}`);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
// Fire callback
|
|
77
|
+
if (this.onStaleDetected) {
|
|
78
|
+
await this.onStaleDetected(exec, stale.reason);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return result;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* Start the polling loop.
|
|
85
|
+
* Runs an initial cycle immediately, then polls at the configured interval.
|
|
86
|
+
*/
|
|
87
|
+
start() {
|
|
88
|
+
if (this.running)
|
|
89
|
+
return;
|
|
90
|
+
this.running = true;
|
|
91
|
+
this.log(`[watcher] Starting session watcher (interval: ${this.intervalMinutes}m, timeout: ${this.timeoutMinutes}m, auto-kill: ${this.autoKill})`);
|
|
92
|
+
// Run initial cycle
|
|
93
|
+
void this.runCycleWithErrorHandling();
|
|
94
|
+
// Start polling
|
|
95
|
+
const intervalMs = this.intervalMinutes * 60 * 1000;
|
|
96
|
+
this.timer = setInterval(() => {
|
|
97
|
+
void this.runCycleWithErrorHandling();
|
|
98
|
+
}, intervalMs);
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* Stop the polling loop.
|
|
102
|
+
*/
|
|
103
|
+
stop() {
|
|
104
|
+
if (!this.running)
|
|
105
|
+
return;
|
|
106
|
+
this.running = false;
|
|
107
|
+
if (this.timer) {
|
|
108
|
+
clearInterval(this.timer);
|
|
109
|
+
this.timer = null;
|
|
110
|
+
}
|
|
111
|
+
this.log('[watcher] Session watcher stopped');
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Check if the watcher is currently running.
|
|
115
|
+
*/
|
|
116
|
+
isRunning() {
|
|
117
|
+
return this.running;
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Get current configuration.
|
|
121
|
+
*/
|
|
122
|
+
getConfig() {
|
|
123
|
+
return {
|
|
124
|
+
intervalMinutes: this.intervalMinutes,
|
|
125
|
+
timeoutMinutes: this.timeoutMinutes,
|
|
126
|
+
autoKill: this.autoKill,
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
async runCycleWithErrorHandling() {
|
|
130
|
+
try {
|
|
131
|
+
const result = await this.runCycle();
|
|
132
|
+
if (result.staleExecutions.length > 0) {
|
|
133
|
+
this.log(`[watcher] Cycle complete: ${result.checked} checked, ${result.heartbeatsUpdated} heartbeats, ` +
|
|
134
|
+
`${result.staleExecutions.length} stale, ${result.containersKilled} killed`);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
catch (error) {
|
|
138
|
+
this.log(`[watcher] Error during watch cycle: ${error instanceof Error ? error.message : error}`);
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
//# sourceMappingURL=watcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"watcher.js","sourceRoot":"","sources":["../../../src/lib/session/watcher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAA;AAE1D,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,aAAa,GAEd,MAAM,gBAAgB,CAAA;AAgCvB,gFAAgF;AAChF,kBAAkB;AAClB,gFAAgF;AAEhF,MAAM,OAAO,cAAc;IACjB,OAAO,CAAkB;IACzB,EAAE,CAAmB;IACrB,eAAe,CAAQ;IACvB,cAAc,CAAQ;IACtB,QAAQ,CAAS;IACjB,GAAG,CAAuB;IAC1B,eAAe,CAAiE;IAChF,KAAK,GAA0C,IAAI,CAAA;IACnD,OAAO,GAAG,KAAK,CAAA;IAEvB,YAAY,OAAuB;QACjC,IAAI,CAAC,EAAE,GAAG,OAAO,CAAC,EAAE,CAAA;QACpB,IAAI,CAAC,OAAO,GAAG,IAAI,gBAAgB,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;QAC/C,IAAI,CAAC,eAAe,GAAG,OAAO,CAAC,eAAe,IAAI,CAAC,CAAA;QACnD,IAAI,CAAC,cAAc,GAAG,OAAO,CAAC,cAAc,IAAI,EAAE,CAAA;QAClD,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,IAAI,IAAI,CAAA;QACxC,IAAI,CAAC,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,CAA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ACnB,CAAC;QAED,IAAI,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAA;IAC/C,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO,IAAI,CAAC,OAAO,CAAA;IACrB,CAAC;IAED;;OAEG;IACH,SAAS;QACP,OAAO;YACL,eAAe,EAAE,IAAI,CAAC,eAAe;YACrC,cAAc,EAAE,IAAI,CAAC,cAAc;YACnC,QAAQ,EAAE,IAAI,CAAC,QAAQ;SACxB,CAAA;IACH,CAAC;IAEO,KAAK,CAAC,yBAAyB;QACrC,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,QAAQ,EAAE,CAAA;YACpC,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACtC,IAAI,CAAC,GAAG,CACN,6BAA6B,MAAM,CAAC,OAAO,aAAa,MAAM,CAAC,iBAAiB,eAAe;oBAC/F,GAAG,MAAM,CAAC,eAAe,CAAC,MAAM,WAAW,MAAM,CAAC,gBAAgB,SAAS,CAC5E,CAAA;YACH,CAAC;QACH,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,GAAG,CAAC,uCAAuC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,CAAA;QACnG,CAAC;IACH,CAAC;CACF"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-Merge Orchestration
|
|
3
|
+
*
|
|
4
|
+
* Implements the --when-green watch loop that polls CI status and
|
|
5
|
+
* automatically merges a PR once all checks pass. Handles the full
|
|
6
|
+
* rebase+CI cycle automatically.
|
|
7
|
+
*
|
|
8
|
+
* Flow:
|
|
9
|
+
* 1. Optionally enable native auto-merge as a safety net
|
|
10
|
+
* 2. Poll CI status at regular intervals
|
|
11
|
+
* 3. If CI is green and branch is up to date, merge
|
|
12
|
+
* 4. If branch has conflicts, rebase and wait for CI to rerun
|
|
13
|
+
* 5. If CI fails, exit with error
|
|
14
|
+
* 6. If timeout, exit with error
|
|
15
|
+
*/
|
|
16
|
+
import { getPRChecks, mergePR } from '../pr/index.js';
|
|
17
|
+
import type { AutoMergeProvider } from './types.js';
|
|
18
|
+
import type { WhenGreenOptions, WhenGreenResult } from './types.js';
|
|
19
|
+
declare function sleep(ms: number): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Check if a PR has merge conflicts with its base branch.
|
|
22
|
+
*/
|
|
23
|
+
declare function checkMergeConflicts(prNumber: number, cwd?: string): boolean;
|
|
24
|
+
/**
|
|
25
|
+
* Check if a PR has already been merged.
|
|
26
|
+
*/
|
|
27
|
+
declare function isPRMerged(prNumber: number, cwd?: string): boolean;
|
|
28
|
+
/**
|
|
29
|
+
* Rebase a PR branch onto its base branch and force-push.
|
|
30
|
+
*/
|
|
31
|
+
declare function rebaseOntoBase(headBranch: string, baseBranch: string, cwd?: string): {
|
|
32
|
+
success: boolean;
|
|
33
|
+
error?: string;
|
|
34
|
+
};
|
|
35
|
+
export interface WatchAndShipDeps {
|
|
36
|
+
getPRChecks: typeof getPRChecks;
|
|
37
|
+
mergePR: typeof mergePR;
|
|
38
|
+
checkMergeConflicts: typeof checkMergeConflicts;
|
|
39
|
+
isPRMerged: typeof isPRMerged;
|
|
40
|
+
rebaseOntoBase: typeof rebaseOntoBase;
|
|
41
|
+
sleep: typeof sleep;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Watch a PR and ship it when CI turns green.
|
|
45
|
+
*
|
|
46
|
+
* This is the core implementation of `--when-green`. It enters a poll loop
|
|
47
|
+
* that checks CI status and handles the rebase+merge cycle automatically.
|
|
48
|
+
*
|
|
49
|
+
* If a native auto-merge provider is given, it will be enabled as a safety net
|
|
50
|
+
* so that even if this process dies, the PR will still auto-merge when ready.
|
|
51
|
+
*
|
|
52
|
+
* @param options - Watch loop configuration
|
|
53
|
+
* @param autoMergeProvider - Optional provider for native auto-merge
|
|
54
|
+
* @param deps - Injectable dependencies for testing
|
|
55
|
+
*/
|
|
56
|
+
export declare function watchAndShip(options: WhenGreenOptions, autoMergeProvider?: AutoMergeProvider | null, deps?: WatchAndShipDeps): Promise<WhenGreenResult>;
|
|
57
|
+
export {};
|