@wjarka/cezarion 0.15.1 → 0.16.0
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/README.md +167 -46
- package/dist/agent-config/catalog.d.ts +6 -2
- package/dist/agent-config/catalog.js +78 -3
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/model-settings/shared.js +6 -3
- package/dist/agent-config/model-settings/shared.js.map +1 -1
- package/dist/agent-config/models.js +4 -0
- package/dist/agent-config/models.js.map +1 -1
- package/dist/agent-config/validate.js +6 -0
- package/dist/agent-config/validate.js.map +1 -1
- package/dist/artifacts/cli.js +10 -2
- package/dist/artifacts/cli.js.map +1 -1
- package/dist/automations/coordinator.d.ts +7 -0
- package/dist/automations/coordinator.js +22 -2
- package/dist/automations/coordinator.js.map +1 -1
- package/dist/automations/github-poller.d.ts +4 -4
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/schedule-runner.d.ts +130 -0
- package/dist/automations/schedule-runner.js +326 -0
- package/dist/automations/schedule-runner.js.map +1 -0
- package/dist/automations/scheduler.d.ts +38 -7
- package/dist/automations/scheduler.js +90 -22
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/store.d.ts +80 -3
- package/dist/automations/store.js +208 -16
- package/dist/automations/store.js.map +1 -1
- package/dist/automations/task-template.d.ts +42 -6
- package/dist/automations/task-template.js +152 -24
- package/dist/automations/task-template.js.map +1 -1
- package/dist/automations/types.d.ts +142 -6
- package/dist/automations/types.js +64 -6
- package/dist/automations/types.js.map +1 -1
- package/dist/autosave-holders.js +8 -12
- package/dist/autosave-holders.js.map +1 -1
- package/dist/ci-wait/client.d.ts +8 -1
- package/dist/ci-wait/client.js +43 -1
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +83 -4
- package/dist/ci-wait/controller.js +76 -11
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/errors.d.ts +7 -1
- package/dist/ci-wait/errors.js +36 -0
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/github.d.ts +2 -0
- package/dist/ci-wait/github.js +3 -1
- package/dist/ci-wait/github.js.map +1 -1
- package/dist/ci-wait/mcp.d.ts +2 -98
- package/dist/ci-wait/mcp.js +11 -25
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/ci-wait/supervisor.d.ts +2 -1
- package/dist/ci-wait/supervisor.js +2 -1
- package/dist/ci-wait/supervisor.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +307 -0
- package/dist/ci-wait/tools.js +63 -0
- package/dist/ci-wait/tools.js.map +1 -0
- package/dist/config.d.ts +3 -0
- package/dist/config.js +7 -0
- package/dist/config.js.map +1 -1
- package/dist/contract/agent-config.d.ts +5 -0
- package/dist/contract/agent-profiles.d.ts +15 -0
- package/dist/contract/automation-schedule.d.ts +60 -0
- package/dist/contract/automations.d.ts +208 -36
- package/dist/contract/delegation.d.ts +96 -0
- package/dist/contract/discovery.d.ts +7 -0
- package/dist/contract/github.d.ts +1 -0
- package/dist/contract/health.d.ts +6 -0
- package/dist/contract/index.d.ts +3 -0
- package/dist/contract/index.js +1445 -745
- package/dist/contract/preview.d.ts +508 -0
- package/dist/contract/runs.d.ts +716 -15
- package/dist/contract/skills.d.ts +39 -0
- package/dist/contract/workflows.d.ts +6 -0
- package/dist/contract/workspace.d.ts +65 -0
- package/dist/contract/zoned-time.d.ts +35 -0
- package/dist/core/agent-env.d.ts +11 -0
- package/dist/core/agent-env.js +27 -5
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-profiles.js +7 -0
- package/dist/core/agent-profiles.js.map +1 -1
- package/dist/core/agent-runner.d.ts +49 -1
- package/dist/core/agent-runner.js +2 -1
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/backend-detect.d.ts +3 -2
- package/dist/core/backend-detect.js +27 -1
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +1 -0
- package/dist/core/claude-cli-runner.js +69 -19
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/codex-app-server-runner.d.ts +1 -0
- package/dist/core/codex-app-server-runner.js +200 -25
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.d.ts +7 -3
- package/dist/core/codex-app-server-transport.js +11 -9
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/cursor-acp-runner.d.ts +1 -0
- package/dist/core/cursor-acp-runner.js +24 -9
- package/dist/core/cursor-acp-runner.js.map +1 -1
- package/dist/core/host-model-catalog.js +2 -0
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/managed-session.js +2 -0
- package/dist/core/managed-session.js.map +1 -1
- package/dist/core/model-identity.js +2 -0
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.js +3 -0
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/omp-model-catalog.d.ts +43 -0
- package/dist/core/omp-model-catalog.js +205 -0
- package/dist/core/omp-model-catalog.js.map +1 -0
- package/dist/core/omp-runner.d.ts +73 -0
- package/dist/core/omp-runner.js +990 -0
- package/dist/core/omp-runner.js.map +1 -0
- package/dist/core/omp-ui-mapper.d.ts +106 -0
- package/dist/core/omp-ui-mapper.js +882 -0
- package/dist/core/omp-ui-mapper.js.map +1 -0
- package/dist/core/opencode-server-runner.d.ts +18 -4
- package/dist/core/opencode-server-runner.js +337 -96
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/opencode-session-error.d.ts +11 -0
- package/dist/core/opencode-session-error.js +26 -0
- package/dist/core/opencode-session-error.js.map +1 -0
- package/dist/core/opencode-ui-mapper.js +4 -36
- package/dist/core/opencode-ui-mapper.js.map +1 -1
- package/dist/core/pi-runner.d.ts +1 -0
- package/dist/core/pi-runner.js +75 -12
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/provider-auth.d.ts +9 -2
- package/dist/core/provider-auth.js +43 -6
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-factory.js +3 -0
- package/dist/core/runner-factory.js.map +1 -1
- package/dist/core/runner-model-catalog.js +1 -0
- package/dist/core/runner-model-catalog.js.map +1 -1
- package/dist/core/runner-stderr.d.ts +2 -0
- package/dist/core/runner-stderr.js +20 -0
- package/dist/core/runner-stderr.js.map +1 -0
- package/dist/core/session-process.d.ts +22 -0
- package/dist/core/session-process.js +202 -0
- package/dist/core/session-process.js.map +1 -0
- package/dist/core/ui-events.d.ts +1 -1
- package/dist/core/usage-limit.js +3 -60
- package/dist/core/usage-limit.js.map +1 -1
- package/dist/data-gitignore.d.ts +6 -0
- package/dist/data-gitignore.js +57 -0
- package/dist/data-gitignore.js.map +1 -0
- package/dist/delegation/capacity.d.ts +19 -0
- package/dist/delegation/capacity.js +34 -0
- package/dist/delegation/capacity.js.map +1 -0
- package/dist/delegation/cli.js +13 -4
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/conversations.d.ts +4 -2
- package/dist/delegation/conversations.js +8 -12
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/credentials.d.ts +2 -0
- package/dist/delegation/credentials.js +10 -0
- package/dist/delegation/credentials.js.map +1 -1
- package/dist/delegation/destroy-observation.d.ts +42 -0
- package/dist/delegation/destroy-observation.js +115 -0
- package/dist/delegation/destroy-observation.js.map +1 -0
- package/dist/delegation/execution-identity.d.ts +6 -0
- package/dist/delegation/execution-identity.js +1 -1
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/policy.d.ts +3 -2
- package/dist/delegation/policy.js +7 -5
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/process-liveness.d.ts +57 -20
- package/dist/delegation/process-liveness.js +114 -92
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/provision.js +6 -6
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/results.js +4 -2
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/retry-backoff.d.ts +23 -0
- package/dist/delegation/retry-backoff.js +18 -0
- package/dist/delegation/retry-backoff.js.map +1 -0
- package/dist/delegation/routes.d.ts +64 -58
- package/dist/delegation/scratch-cleanup.d.ts +29 -0
- package/dist/delegation/scratch-cleanup.js +143 -0
- package/dist/delegation/scratch-cleanup.js.map +1 -0
- package/dist/delegation/service.d.ts +20 -1
- package/dist/delegation/service.js +233 -70
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +12 -6
- package/dist/delegation/workspace.d.ts +23 -4
- package/dist/delegation/workspace.js +147 -31
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/git-worktree-lock-helper.js +8 -3
- package/dist/git-worktree-lock-helper.js.map +1 -1
- package/dist/git-worktree-lock.d.ts +6 -1
- package/dist/git-worktree-lock.js +10 -4
- package/dist/git-worktree-lock.js.map +1 -1
- package/dist/git-worktree-release.d.ts +20 -0
- package/dist/git-worktree-release.js +27 -0
- package/dist/git-worktree-release.js.map +1 -0
- package/dist/git-worktree.d.ts +8 -2
- package/dist/git-worktree.js +19 -2
- package/dist/git-worktree.js.map +1 -1
- package/dist/handoff.d.ts +2 -2
- package/dist/handoff.js +1 -1
- package/dist/index.js +109 -76
- package/dist/index.js.map +1 -1
- package/dist/paths.d.ts +1 -1
- package/dist/paths.js +5 -1
- package/dist/paths.js.map +1 -1
- package/dist/preview/cdp.d.ts +13 -0
- package/dist/preview/cdp.js +69 -0
- package/dist/preview/cdp.js.map +1 -0
- package/dist/preview/chromium.d.ts +75 -0
- package/dist/preview/chromium.js +394 -0
- package/dist/preview/chromium.js.map +1 -0
- package/dist/preview/dev-server.d.ts +68 -0
- package/dist/preview/dev-server.js +341 -0
- package/dist/preview/dev-server.js.map +1 -0
- package/dist/preview/host.d.ts +154 -0
- package/dist/preview/host.js +681 -0
- package/dist/preview/host.js.map +1 -0
- package/dist/preview/registration.d.ts +63 -0
- package/dist/preview/registration.js +109 -0
- package/dist/preview/registration.js.map +1 -0
- package/dist/preview/session.d.ts +73 -0
- package/dist/preview/session.js +347 -0
- package/dist/preview/session.js.map +1 -0
- package/dist/preview/url.d.ts +6 -0
- package/dist/preview/url.js +17 -0
- package/dist/preview/url.js.map +1 -0
- package/dist/runs/agent-tmpdir-removal.d.ts +15 -0
- package/dist/runs/agent-tmpdir-removal.js +60 -0
- package/dist/runs/agent-tmpdir-removal.js.map +1 -0
- package/dist/runs/agent-tmpdir.d.ts +12 -1
- package/dist/runs/agent-tmpdir.js +123 -34
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/delegation-state.d.ts +5 -1
- package/dist/runs/delegation-state.js +9 -0
- package/dist/runs/delegation-state.js.map +1 -1
- package/dist/runs/event-history.d.ts +4 -4
- package/dist/runs/event-history.js +97 -117
- package/dist/runs/event-history.js.map +1 -1
- package/dist/runs/history-compressor.d.ts +29 -0
- package/dist/runs/history-compressor.js +116 -0
- package/dist/runs/history-compressor.js.map +1 -0
- package/dist/runs/history-file.d.ts +36 -0
- package/dist/runs/history-file.js +463 -0
- package/dist/runs/history-file.js.map +1 -0
- package/dist/runs/human-ask-summary.js +18 -13
- package/dist/runs/human-ask-summary.js.map +1 -1
- package/dist/runs/legacy-index.d.ts +62 -0
- package/dist/runs/legacy-index.js +168 -0
- package/dist/runs/legacy-index.js.map +1 -0
- package/dist/runs/raw-record.d.ts +52 -0
- package/dist/runs/raw-record.js +145 -0
- package/dist/runs/raw-record.js.map +1 -0
- package/dist/runs/retention.d.ts +13 -6
- package/dist/runs/retention.js +42 -13
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-claims.d.ts +23 -0
- package/dist/runs/run-claims.js +24 -0
- package/dist/runs/run-claims.js.map +1 -0
- package/dist/runs/run-database.d.ts +385 -0
- package/dist/runs/run-database.js +930 -0
- package/dist/runs/run-database.js.map +1 -0
- package/dist/runs/run-index.d.ts +35 -9
- package/dist/runs/run-index.js +200 -25
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-row.d.ts +44 -0
- package/dist/runs/run-row.js +84 -0
- package/dist/runs/run-row.js.map +1 -0
- package/dist/runs/run-search.d.ts +29 -0
- package/dist/runs/run-search.js +63 -0
- package/dist/runs/run-search.js.map +1 -0
- package/dist/runs/store-open-error.d.ts +24 -0
- package/dist/runs/store-open-error.js +61 -0
- package/dist/runs/store-open-error.js.map +1 -0
- package/dist/runs/store.d.ts +667 -32
- package/dist/runs/store.js +2153 -324
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/transcript-facts.d.ts +77 -0
- package/dist/runs/transcript-facts.js +302 -0
- package/dist/runs/transcript-facts.js.map +1 -0
- package/dist/runs/webhook.js +5 -4
- package/dist/runs/webhook.js.map +1 -1
- package/dist/runs/worker-execution.d.ts +22 -0
- package/dist/runs/worker-execution.js +30 -0
- package/dist/runs/worker-execution.js.map +1 -0
- package/dist/server/capabilities.d.ts +1 -0
- package/dist/server/capabilities.js +2 -0
- package/dist/server/capabilities.js.map +1 -1
- package/dist/server/cockpit-ownership.d.ts +8 -0
- package/dist/server/cockpit-ownership.js +19 -0
- package/dist/server/cockpit-ownership.js.map +1 -1
- package/dist/server/forge/github.d.ts +1 -4
- package/dist/server/forge/github.js +47 -23
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/git.js +1 -1
- package/dist/server/git.js.map +1 -1
- package/dist/server/open-in-app.js +1 -0
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/preview-socket.d.ts +36 -0
- package/dist/server/preview-socket.js +126 -0
- package/dist/server/preview-socket.js.map +1 -0
- package/dist/server/project-context.d.ts +31 -4
- package/dist/server/project-context.js +73 -9
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/provider-action-gate.js +1 -0
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/repo-branches.d.ts +4 -3
- package/dist/server/repo-branches.js +5 -4
- package/dist/server/repo-branches.js.map +1 -1
- package/dist/server/server.d.ts +4500 -2727
- package/dist/server/server.js +651 -202
- package/dist/server/server.js.map +1 -1
- package/dist/server/upgrade-router.d.ts +23 -0
- package/dist/server/upgrade-router.js +53 -0
- package/dist/server/upgrade-router.js.map +1 -0
- package/dist/server/validators.d.ts +6 -1
- package/dist/server/validators.js +4 -4
- package/dist/server/validators.js.map +1 -1
- package/dist/server/ws.d.ts +16 -16
- package/dist/server/ws.js +56 -54
- package/dist/server/ws.js.map +1 -1
- package/dist/skills-remote.d.ts +14 -0
- package/dist/skills-remote.js +91 -15
- package/dist/skills-remote.js.map +1 -1
- package/dist/task-cli/cli.js +40 -16
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/task-cli/discovery.d.ts +4 -3
- package/dist/task-cli/discovery.js +4 -3
- package/dist/task-cli/discovery.js.map +1 -1
- package/dist/task-cli/http.d.ts +2 -0
- package/dist/task-cli/http.js +10 -4
- package/dist/task-cli/http.js.map +1 -1
- package/dist/task-cli/projections.d.ts +5 -2
- package/dist/task-cli/projections.js +13 -0
- package/dist/task-cli/projections.js.map +1 -1
- package/dist/task-cli/watch.d.ts +15 -2
- package/dist/task-cli/watch.js +31 -9
- package/dist/task-cli/watch.js.map +1 -1
- package/dist/ui-state.d.ts +4 -3
- package/dist/ui-state.js +8 -3
- package/dist/ui-state.js.map +1 -1
- package/dist/workflows/grouped-command.d.ts +31 -0
- package/dist/workflows/grouped-command.js +143 -0
- package/dist/workflows/grouped-command.js.map +1 -0
- package/dist/workflows/run.d.ts +223 -42
- package/dist/workflows/run.js +1316 -398
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/types.d.ts +12 -0
- package/dist/workflows/types.js +20 -0
- package/dist/workflows/types.js.map +1 -1
- package/dist/workspace/agent-accounts.d.ts +5 -1
- package/dist/workspace/agent-accounts.js +1 -0
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/agent-profiles.js +1 -1
- package/dist/workspace/agent-profiles.js.map +1 -1
- package/dist/workspace/config.d.ts +3 -1
- package/dist/workspace/config.js +1 -0
- package/dist/workspace/config.js.map +1 -1
- package/dist/worktree-setup.d.ts +85 -0
- package/dist/worktree-setup.js +164 -0
- package/dist/worktree-setup.js.map +1 -0
- package/package.json +7 -5
- package/scripts/benchmark-run-store-fixture.ts +428 -0
- package/scripts/benchmark-run-store.ts +743 -0
- package/scripts/benchmark-stuck-destroys.ts +143 -0
- package/scripts/mock-autonomous.mjs +11 -0
- package/scripts/mock-ci-tool.mjs +20 -5
- package/scripts/mock-claude.mjs +110 -1
- package/scripts/mock-codex-app-server.mjs +117 -2
- package/scripts/mock-codex-coalesce-steer.mjs +59 -0
- package/scripts/mock-codex-reverse-steer.mjs +130 -0
- package/scripts/mock-cursor-acp.mjs +75 -1
- package/scripts/mock-omp-rpc.mjs +605 -0
- package/scripts/mock-opencode-serve.mjs +312 -22
- package/scripts/mock-pi-rpc.mjs +109 -3
- package/scripts/mock-runner-crash.mjs +42 -0
- package/scripts/mock-silent-tail.mjs +78 -0
- package/scripts/mock-turn-messages.mjs +5 -0
- package/scripts/omp-ci-wait.mjs +29 -0
- package/scripts/omp-restrict-delegation.yml +4 -0
- package/scripts/pi-ci-wait.mjs +12 -9
- package/scripts/seed-archive-profile.ts +3 -3
- package/web/dist/assets/agent-accounts-CFOBMVHc.js +1 -0
- package/web/dist/assets/alert-dialog-BrpNUwMt.js +1 -0
- package/web/dist/assets/app-window-CSHwDX9N.js +1 -0
- package/web/dist/assets/button-C_rd7CPp.js +43 -0
- package/web/dist/assets/compare-variants-D6WXhvXA.js +1 -0
- package/web/dist/assets/diff-DrEARXTV.js +3 -0
- package/web/dist/assets/diff-controls-B1-j7nFg.js +1 -0
- package/web/dist/assets/{diff-view-DPn6bQ5W.js → diff-view-DvGLjdTk.js} +3 -3
- package/web/dist/assets/dropdown-menu-BegOZFrj.js +1 -0
- package/web/dist/assets/format-DpNe3S0A.js +1 -0
- package/web/dist/assets/git-toolbar-Cw4ljmhB.js +1 -0
- package/web/dist/assets/github-CfV5sqL0.js +1 -0
- package/web/dist/assets/{image-preview-DJ8cgb1Z.js → image-preview-FOEfqpZP.js} +1 -1
- package/web/dist/assets/index-DgWWlOLy.js +13 -0
- package/web/dist/assets/index-fBFnuvxu.css +1 -0
- package/web/dist/assets/{nav-row-styles-3j64kH5s.js → nav-row-styles-vp2JbhuJ.js} +1 -1
- package/web/dist/assets/play-CmVAj_fu.js +1 -0
- package/web/dist/assets/popover-BohP6WTx.js +1 -0
- package/web/dist/assets/preview-pane-connected-qTA5KNoJ.js +3 -0
- package/web/dist/assets/preview-state-vuMviq6q.js +1 -0
- package/web/dist/assets/prompt-templates-Cubdut_C.js +15 -0
- package/web/dist/assets/repo-git-Cf4t5PD0.js +1 -0
- package/web/dist/assets/{run-diff-5-RRdcVz.js → run-diff-BpkUW37Z.js} +3 -3
- package/web/dist/assets/run-header-68WHf9wV.js +1 -0
- package/web/dist/assets/skills-DiVIgKeU.js +1 -0
- package/web/dist/assets/square-terminal-B6RYYieR.js +1 -0
- package/web/dist/assets/status-dot-CqTJHSP9.js +1 -0
- package/web/dist/assets/{tab-link-K0hjzEXR.js → tab-link-B07Hu4QX.js} +1 -1
- package/web/dist/assets/task-changes--lQF6EYf.js +1 -0
- package/web/dist/assets/task-commits-Cx0qy4DN.js +1 -0
- package/web/dist/assets/task-files-D50s-gKW.js +2 -0
- package/web/dist/assets/task-github-item-DaqmSwYT.js +1 -0
- package/web/dist/assets/task-thread-BPQ64lui.js +7 -0
- package/web/dist/assets/{task-thread-Bw_nQuTx.css → task-thread-zNE2Q9E-.css} +1 -1
- package/web/dist/assets/textarea-D20O4Pw0.js +1 -0
- package/web/dist/assets/thread-state-DWcFMrvb.js +4 -0
- package/web/dist/assets/use-hand-to-agent-state-BLIGmwbd.css +1 -0
- package/web/dist/assets/use-hand-to-agent-state-Cy9eyyfL.js +1 -0
- package/web/dist/assets/{utils-fzNfbPzA.js → utils-JsL3ZsJf.js} +1 -1
- package/web/dist/assets/workflows-jwG7uxqi.js +11 -0
- package/web/dist/assets/{zoomable-image-CDmZ_Rtl.js → zoomable-image-BJJ64KGc.js} +1 -1
- package/web/dist/cezarion-lockup-dark.svg +1 -13
- package/web/dist/cezarion-lockup-light.svg +1 -13
- package/web/dist/cezarion-mark-dark.svg +1 -12
- package/web/dist/cezarion-mark-light.svg +1 -12
- package/web/dist/index.html +16 -21
- package/web/dist/assets/agent-accounts-CU2ZDv24.js +0 -1
- package/web/dist/assets/alert-dialog-C-xYE_dg.js +0 -43
- package/web/dist/assets/chevron-right-BENZ-1ZN.js +0 -1
- package/web/dist/assets/collapsible-DD9J91Iv.js +0 -1
- package/web/dist/assets/compare-variants-5FmqpFSN.js +0 -1
- package/web/dist/assets/diff-controls-Bj0YrioE.js +0 -1
- package/web/dist/assets/diff-rE8rm75J2.js +0 -3
- package/web/dist/assets/diff-stat-BKDCSVfJ.js +0 -1
- package/web/dist/assets/dropdown-menu-Ch5BYQh_.js +0 -1
- package/web/dist/assets/format-dBiNDNVe.js +0 -1
- package/web/dist/assets/git-toolbar-ClVvf5iF.js +0 -1
- package/web/dist/assets/github-BkNOyour.css +0 -1
- package/web/dist/assets/github-DeZMeMwJ.js +0 -1
- package/web/dist/assets/github-item-detail-W5F6GVjF.js +0 -1
- package/web/dist/assets/github-sidebar-model-DcMu-IK2.js +0 -1
- package/web/dist/assets/highlighter-CdHqIwFr.js +0 -3
- package/web/dist/assets/index-CatemBEL.js +0 -8
- package/web/dist/assets/index-MvfD8bZJ.css +0 -1
- package/web/dist/assets/markdown-zdKeLIYA.js +0 -2
- package/web/dist/assets/mobile-run-bar-BCfmFi8V.js +0 -1
- package/web/dist/assets/prompt-templates-CBPp39IU.js +0 -15
- package/web/dist/assets/reference-chip-D6owncJT.js +0 -1
- package/web/dist/assets/repo-git-CtdkZFey.js +0 -1
- package/web/dist/assets/run-header-BcjoDi0W.js +0 -1
- package/web/dist/assets/sheet-ChnYVrp1.js +0 -1
- package/web/dist/assets/skills-C8YKp2vr.js +0 -1
- package/web/dist/assets/task-changes-BW8YdWG8.js +0 -1
- package/web/dist/assets/task-commits-q2kB2y6L.js +0 -1
- package/web/dist/assets/task-files-pPL6_3Cr.js +0 -2
- package/web/dist/assets/task-github-item-BXF5R52U.js +0 -1
- package/web/dist/assets/task-thread-DtkFL3EC.js +0 -10
- package/web/dist/assets/textarea-DxlkE-Yd.js +0 -1
- package/web/dist/assets/token-metrics-DIAjrPlM.js +0 -1
- package/web/dist/assets/use-desktop-CrDny2uG.js +0 -1
- package/web/dist/assets/use-submit-shortcut-KWJsC906.js +0 -1
- package/web/dist/assets/workflows-TmcPEj2K.js +0 -11
- /package/web/dist/assets/{lib-BQXq3kEf2.js → lib-BQXq3kEf.js} +0 -0
package/dist/git-worktree.d.ts
CHANGED
|
@@ -67,10 +67,16 @@ export declare function ownedCleanupProtection(repoRoot: string): Promise<{
|
|
|
67
67
|
branches: Set<string>;
|
|
68
68
|
uncertain: boolean;
|
|
69
69
|
}>;
|
|
70
|
-
export
|
|
70
|
+
export type RemoveWorktreeOptions = {
|
|
71
71
|
reclaimOwnedDirectory?: boolean;
|
|
72
72
|
onlyClean?: boolean;
|
|
73
|
-
|
|
73
|
+
/** Runs once every check that can decline the removal has passed, right before git removes
|
|
74
|
+
* the checkout (#781: the run's preview is released here). A declined removal never calls it. */
|
|
75
|
+
beforeRemove?: () => Promise<void>;
|
|
76
|
+
/** Fresh generation/resource authorization, after all awaits and before destructive Git. */
|
|
77
|
+
assertCurrent?: () => void;
|
|
78
|
+
};
|
|
79
|
+
export declare function removeWorktree(repoRoot: string, worktreePath: string, branch?: string, opts?: RemoveWorktreeOptions): Promise<void>;
|
|
74
80
|
/**
|
|
75
81
|
* Why an autosave commit happened. Only `periodic` is gated (behind
|
|
76
82
|
* `CEZ_AUTOSAVE=1`, #471) — the three flushes always run so the branch ends
|
package/dist/git-worktree.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { inspectGeneration } from './delegation/process-liveness.js';
|
|
1
2
|
import { execFile } from 'node:child_process';
|
|
2
3
|
import { autosaveGit } from './autosave-git.js';
|
|
3
4
|
import { workerWorkspaceSchema } from './contract/index.js';
|
|
@@ -310,6 +311,13 @@ export async function removeWorktree(repoRoot, worktreePath, branch, opts) {
|
|
|
310
311
|
await withWorktreeMutation(repoRoot, git => removeWorktreeLocked(repoRoot, worktreePath, branch, opts, git)).catch(() => undefined);
|
|
311
312
|
}
|
|
312
313
|
async function removeWorktreeLocked(repoRoot, worktreePath, branch, opts, git) {
|
|
314
|
+
const beforeRemove = async () => {
|
|
315
|
+
await opts?.beforeRemove?.().catch(() => undefined);
|
|
316
|
+
opts?.assertCurrent?.();
|
|
317
|
+
if (protection.paths.has(worktreePath) && inspectGeneration({ paths: [worktreePath] }).liveness !== 'gone') {
|
|
318
|
+
throw new Error('Owned worktree may still be held by a process');
|
|
319
|
+
}
|
|
320
|
+
};
|
|
313
321
|
const protection = await ownedCleanupProtection(repoRoot);
|
|
314
322
|
// Directory-only retention (#575) may reclaim a finished owned-worker checkout
|
|
315
323
|
// while keeping its branch and receipts. Unowned deletion still refuses owned
|
|
@@ -343,6 +351,12 @@ async function removeWorktreeLocked(repoRoot, worktreePath, branch, opts, git) {
|
|
|
343
351
|
const kept = await git(repoRoot, ['for-each-ref', '--contains', sha, '--count=1', '--format=%(refname)', 'refs/heads', 'refs/remotes']);
|
|
344
352
|
if (!kept.ok || kept.stdout.trim() === '')
|
|
345
353
|
return;
|
|
354
|
+
// The refusal git would give a dirty tree, read first so a declined removal costs nothing
|
|
355
|
+
// (`beforeRemove` stops the run's preview). git still has the last word at removal time.
|
|
356
|
+
const status = await git(worktreePath, ['status', '--porcelain']);
|
|
357
|
+
if (!status.ok || status.stdout.trim() !== '')
|
|
358
|
+
return;
|
|
359
|
+
await beforeRemove();
|
|
346
360
|
const removed = await git(repoRoot, ['worktree', 'remove', worktreePath]);
|
|
347
361
|
if (!removed.ok)
|
|
348
362
|
return;
|
|
@@ -350,10 +364,13 @@ async function removeWorktreeLocked(repoRoot, worktreePath, branch, opts, git) {
|
|
|
350
364
|
await git(repoRoot, ['worktree', 'prune']);
|
|
351
365
|
return;
|
|
352
366
|
}
|
|
353
|
-
|
|
367
|
+
await beforeRemove();
|
|
368
|
+
await git(repoRoot, ['worktree', 'remove', '--force', worktreePath]);
|
|
354
369
|
// Owned-path reclaim must not `rm` a receipt path that is no longer a git
|
|
355
370
|
// worktree — the directory may have been replaced with unrelated files.
|
|
356
|
-
|
|
371
|
+
// For owned resources Git already removed the exact checkout. Never recursively delete a
|
|
372
|
+
// path recreated after that operation (possibly by another execution/controller).
|
|
373
|
+
if (reclaimOwnedDirectory && protection.paths.has(worktreePath))
|
|
357
374
|
return;
|
|
358
375
|
await rm(worktreePath, { recursive: true, force: true }).catch(() => undefined);
|
|
359
376
|
if (protection.paths.size === 0)
|
package/dist/git-worktree.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-worktree.js","sourceRoot":"","sources":["../src/git-worktree.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAwB,MAAM,mBAAmB,CAAC;AACtE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,YAAY,EAAe,MAAM,SAAS,CAAC;AAChE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC7D,OAAO,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,oBAAoB,EAAoB,MAAM,wBAAwB,CAAC;AAEhF;;;;;;;GAOG;AAEH,sFAAsF;AACtF,MAAM,CAAC,MAAM,aAAa,GAAG,qBAAqB,CAAC;AAEnD,MAAM,CAAC,MAAM,QAAQ,GAAG,OAAO,CAAC;AAahC,iEAAiE;AACjE,SAAS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,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,CAAC;YAAE,SAAS;QAC9H,MAAM,oBAAoB,CAAC,QAAQ,EAAE,eAAe,CAAC,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,CAAC,KAAK,CAAC,IAAI,CAAC,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;QACnH,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC3B,CAAC;IACD,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
package/dist/handoff.d.ts
CHANGED
|
@@ -56,7 +56,7 @@ export declare function followupsEnabled(env?: NodeJS.ProcessEnv): boolean;
|
|
|
56
56
|
* inherited value from a parent cezar cannot shine through
|
|
57
57
|
* (`RunManager.agentEnv`).
|
|
58
58
|
*/
|
|
59
|
-
export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u20134 questions, 2\u20134 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The user can always type a free-form reply, so never add an \"Other\" option. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, TXT, MD) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.";
|
|
59
|
+
export declare const HANDOFF_ONLY_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. When the watched work is finished and the task goal is complete, end your final message with CEZ:DONE. If the watched work is still pending, end with CEZ:MONITORING. Never yield markerless for a monitoring wrap-up. A genuine question for the user still follows the question paths above and below. Never combine CEZ:MONITORING with CEZ:DONE.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u20134 questions, 2\u20134 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The user can always type a free-form reply, so never add an \"Other\" option. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, TXT, MD) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.";
|
|
60
60
|
export declare const FOLLOWUP_INSTRUCTIONS = "## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
|
|
61
61
|
/** Default-on combined contract retained for old callers and runs. */
|
|
62
|
-
export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u20134 questions, 2\u20134 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The user can always type a free-form reply, so never add an \"Other\" option. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, TXT, MD) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
|
|
62
|
+
export declare const HANDOFF_INSTRUCTIONS = "## Handoff (cezar)\n\nCEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file. Treat it like a HANDOFF.md:\n1. At the start of work, read it \u2014 \"Resume notes\" left by a previous session is your starting context.\n2. After every meaningful milestone (passing tests, a commit, a PR, a scope decision), append one terse timestamped line under \"## Progress log\", newest at the top.\n3. Before finishing or pausing, update \"## Resume notes\" with what's done, what's next and any blockers. Leave it empty only when the task is truly complete.\n\nTask completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE \u2014 cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.\n\nStill-working marker: if you end a turn while still working on your OWN downstream work \u2014 a sub-agent you dispatched, or a long-running command you're monitoring \u2014 and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as \"monitoring\" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. When the watched work is finished and the task goal is complete, end your final message with CEZ:DONE. If the watched work is still pending, end with CEZ:MONITORING. Never yield markerless for a monitoring wrap-up. A genuine question for the user still follows the question paths above and below. Never combine CEZ:MONITORING with CEZ:DONE.\n\nStructured question marker: when you are blocked on a decision that is genuinely the user's to make \u2014 one you cannot resolve from the request, the code, or sensible defaults \u2014 and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {\"questions\":[{\"header\":\"\u226412-char label\",\"question\":\"a clear question ending in ?\",\"multiSelect\":false,\"options\":[{\"label\":\"short choice\",\"description\":\"what it means / the trade-off\"}]}]} \u2014 use only those keys (plus an optional non-empty \"id\" up to 64 characters), with 1\u20134 questions, 2\u20134 options per question, unique question text and option labels, header 1\u201312 characters, question 1\u2013400, option label 1\u201360, and description at most 280. The JSON must be syntactically valid \u2014 every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The user can always type a free-form reply, so never add an \"Other\" option. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.\n\nTask reference markers: as soon as you know which GitHub pull request or issue this task is ABOUT (it was named in the task, or you just opened it), declare it by emitting, on its own line in your message text: CEZ:PR=<number> and/or CEZ:ISSUE=<number>. Re-emit with the new number if the subject changes (e.g. you open a PR later in the task). Declare only the task's own subject \u2014 never a PR/issue you merely mention, list, or compare against. You may also emit CEZ:TITLE=<terse gerund phrase, max 40 chars, e.g. \"implementing comment threads\"> once the work has a clearer shape than its current title; cez uses these instead of guessing from the transcript. Put markers in plain message text, never inside a code fence.\n\n## Pasted attachments\nUser-attached screenshots and files (PDF, TXT, MD) are saved as real files; their absolute paths are listed in the message that carries them. Read a file from its path when you need its contents, and use the path when a task needs the file itself (saving, uploading, attaching to issues/PRs). An image also rides along inline, but that copy is for viewing only; a non-image attachment exists ONLY as the file at that path.\n\n## Follow-ups (cezar)\n\nCEZ_TODOS_FILE (env) is the absolute path to the user's follow-up inbox \u2014 a JSON array. Only append an entry when a genuinely actionable follow-up remains: something concrete a human or the next agent still needs to decide or do (a review nit worth a dedicated pass, a manual step you cannot take yourself, a decision blocked on the user, a known next task). Do NOT append filler \u2014 a restated summary of what you just finished, a congratulatory note, or \"no further action needed\" is not a follow-up; when the task is simply done, skip this file entirely. When (and only when) a real follow-up exists, read the file (treat a missing file as []), append ONE object and write the whole array back:\n{ \"ts\": \"<ISO 8601>\", \"taskId\": \"<value of CEZ_TASK_ID>\", \"summary\": \"<one sentence: the concrete next action, not a status report>\", \"action\": \"<imperative user action, optional>\", \"prUrl\": \"<optional>\", \"suggestedSkill\": \"<optional skill name for the follow-up>\", \"suggestedArgs\": \"<optional>\", \"suggestedPrompt\": \"<optional freeform prompt for the follow-up task>\", \"runnable\": <true when an agent can execute this follow-up, false when it is a note> }\nSet \"runnable\": false for anything a human must do or merely read \u2014 manual QA, \"remember to\u2026\", informational notes \u2014 and leave out suggestedSkill/suggestedPrompt for those; the inbox then offers \"Acknowledge\" instead of \"Run\". Set \"runnable\": true only when suggestedSkill or suggestedPrompt says what to actually execute.\nNever modify or remove existing entries \u2014 append only.";
|
package/dist/handoff.js
CHANGED
|
@@ -135,7 +135,7 @@ CEZ_HANDOFF_FILE (env) is the absolute path to this task's rolling handoff file.
|
|
|
135
135
|
|
|
136
136
|
Task completion marker: when the task's goal is fully achieved and you have no question for the user, end your final message with a line containing exactly CEZ:DONE — cez then closes the session and marks the task finished. If you are waiting on the user (a question, a decision, missing input), just end your message normally; the session stays open for their reply. Never emit CEZ:DONE while anything is unfinished or unverified.
|
|
137
137
|
|
|
138
|
-
Still-working marker: if you end a turn while still working on your OWN downstream work — a sub-agent you dispatched, or a long-running command you're monitoring — and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as "monitoring" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. Never combine CEZ:MONITORING with CEZ:DONE.
|
|
138
|
+
Still-working marker: if you end a turn while still working on your OWN downstream work — a sub-agent you dispatched, or a long-running command you're monitoring — and are NOT waiting on the user for anything, end your final message with a line containing exactly CEZ:MONITORING. cez then shows the task as "monitoring" (still working) instead of asking for your attention. Use CEZ:MONITORING only for that in-progress case; use CEZ:DONE when the goal is done; end plainly (no marker) only when you are genuinely waiting on the user. When the watched work is finished and the task goal is complete, end your final message with CEZ:DONE. If the watched work is still pending, end with CEZ:MONITORING. Never yield markerless for a monitoring wrap-up. A genuine question for the user still follows the question paths above and below. Never combine CEZ:MONITORING with CEZ:DONE.
|
|
139
139
|
|
|
140
140
|
Structured question marker: when you are blocked on a decision that is genuinely the user's to make — one you cannot resolve from the request, the code, or sensible defaults — and it comes down to a few concrete choices, end your turn with a single line CEZ:ASK <json> instead of asking in prose. cez renders it as clickable option chips in the cockpit so the user can answer in one tap. The <json> is ONE object on ONE line, the last thing in your message: {"questions":[{"header":"≤12-char label","question":"a clear question ending in ?","multiSelect":false,"options":[{"label":"short choice","description":"what it means / the trade-off"}]}]} — use only those keys (plus an optional non-empty "id" up to 64 characters), with 1–4 questions, 2–4 options per question, unique question text and option labels, header 1–12 characters, question 1–400, option label 1–60, and description at most 280. The JSON must be syntactically valid — every brace and bracket closed, no trailing commas; re-read the line before you send it, because a payload cez cannot parse is shown to the user as raw JSON instead of chips. The user can always type a free-form reply, so never add an "Other" option. Prefer sensible defaults over asking; use CEZ:ASK only when the choice is truly the user's. Never combine CEZ:ASK with CEZ:DONE or CEZ:MONITORING.
|
|
141
141
|
|
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import { createHostDiscovery } from './discovery/catalog.js';
|
|
|
3
3
|
import { DelegationController } from './delegation/provision.js';
|
|
4
4
|
import { parseArgs } from 'node:util';
|
|
5
5
|
import { execFileSync } from 'node:child_process';
|
|
6
|
-
import { createServer } from 'node:
|
|
6
|
+
import { createServer } from 'node:http';
|
|
7
7
|
import { once } from 'node:events';
|
|
8
8
|
import { mkdirSync, writeFileSync, existsSync, readFileSync } from 'node:fs';
|
|
9
9
|
import { dirname, join, resolve } from 'node:path';
|
|
@@ -11,12 +11,17 @@ import { fileURLToPath } from 'node:url';
|
|
|
11
11
|
import { detectEnvironment } from './core/backend-detect.js';
|
|
12
12
|
import { ProviderAuthService, providerAuthChecksDisabled, } from './core/provider-auth.js';
|
|
13
13
|
import { applyProviderEnablement } from './core/provider-availability.js';
|
|
14
|
+
import { forwardToSessionGroups } from './core/session-process.js';
|
|
14
15
|
import { pruneOrphans } from './git-worktree.js';
|
|
15
16
|
import { getRepoInfo } from './server/git.js';
|
|
16
17
|
import { DEFAULT_WORKTREE_RETENTION, loadConfig, resolveWorktreeRetention } from './config.js';
|
|
17
18
|
import { reclaimWorktrees } from './runs/retention.js';
|
|
19
|
+
import { previewToolEnabled } from './ci-wait/tools.js';
|
|
20
|
+
import { PreviewHost } from './preview/host.js';
|
|
18
21
|
import { armRepoHandle } from './runs/arm-repo-handle.js';
|
|
19
22
|
import { RunStore } from './runs/store.js';
|
|
23
|
+
import { RunStoreOpenError } from './runs/store-open-error.js';
|
|
24
|
+
import { ensureDataGitignore } from './data-gitignore.js';
|
|
20
25
|
import { TaskWebhooks } from './runs/webhook.js';
|
|
21
26
|
import { RunManager } from './workflows/run.js';
|
|
22
27
|
import { loadWorkflows } from './workflows/load.js';
|
|
@@ -222,6 +227,9 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
222
227
|
const ownership = new CockpitOwnership();
|
|
223
228
|
process.once('exit', () => ownership.releaseAll());
|
|
224
229
|
await ownership.acquire(join(repoRoot, '.ai/cezar'));
|
|
230
|
+
// Hold the real listener before workspace writes, recovery or background resources.
|
|
231
|
+
// A probe followed by a later bind would allow another cwd to win in between.
|
|
232
|
+
const listener = await acquireServeListener(preferredPort, bindHost);
|
|
225
233
|
const bootProjectId = await initWorkspace(repoRoot);
|
|
226
234
|
// ONE workspace semaphore for the whole process (spec 2026-07-20, step 2.5):
|
|
227
235
|
// the boot manager and every lazily-built project context count their runs
|
|
@@ -231,12 +239,18 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
231
239
|
await semaphore.refresh();
|
|
232
240
|
// keepLive + recover() (#367): runs that were queued/running/waiting when
|
|
233
241
|
// the previous process exited are re-queued or resumed instead of failed.
|
|
234
|
-
const store =
|
|
242
|
+
const store = openBootStore(repoRoot);
|
|
235
243
|
// Before recovery (#589): the runs recovery re-queues, resumes or fails are exactly the
|
|
236
244
|
// transitions an opted-in bot is waiting for. Deliveries wait until startServer knows its port.
|
|
237
245
|
const taskWebhooks = new TaskWebhooks();
|
|
238
246
|
taskWebhooks.attach({ id: bootProjectId ?? 'default', root: repoRoot, store });
|
|
239
|
-
|
|
247
|
+
// ONE preview host for the whole process (#781), like the semaphore: ports are host-global, so
|
|
248
|
+
// `port_held` must see every project's servers. Off unless `CEZ_PREVIEW=1`.
|
|
249
|
+
const previewHost = previewToolEnabled() ? new PreviewHost() : undefined;
|
|
250
|
+
// The port the cockpit bound, once `startServer` listens; the preview tool refuses it.
|
|
251
|
+
let boundPort;
|
|
252
|
+
const cezarPort = () => boundPort;
|
|
253
|
+
const manager = new RunManager(store, repoRoot, { semaphore, preview: previewHost, cezarPort });
|
|
240
254
|
const delegation = await DelegationController.start();
|
|
241
255
|
delegation.attachProject({ id: bootProjectId ?? 'default', root: repoRoot, store, manager });
|
|
242
256
|
const providerAuth = new ProviderAuthService();
|
|
@@ -249,9 +263,10 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
249
263
|
const version = readOwnVersion();
|
|
250
264
|
const checks = await detectEnvironment();
|
|
251
265
|
const repo = await getRepoInfo(repoRoot);
|
|
252
|
-
// Startup reconcile (spec 006): sweep worktrees whose run no longer exists.
|
|
253
|
-
|
|
254
|
-
|
|
266
|
+
// Startup reconcile (spec 006): sweep worktrees whose run no longer exists. Never over a store
|
|
267
|
+
// that could not open (#779): its runs are unknown, and every worktree would look orphaned.
|
|
268
|
+
if (repo && !store.unavailable) {
|
|
269
|
+
const orphans = await pruneOrphans(repoRoot, new Set(store.listRunIds())).catch(() => []);
|
|
255
270
|
if (orphans.length > 0) {
|
|
256
271
|
console.log(` cleaned ${orphans.length} orphaned worktree(s): ${orphans.map((id) => id.slice(0, 8)).join(', ')}`);
|
|
257
272
|
}
|
|
@@ -259,7 +274,7 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
259
274
|
// the keep-limit (directory only — `cez/<id8>` branch kept, so recoverable).
|
|
260
275
|
// Best-effort; never blocks boot.
|
|
261
276
|
const keep = await resolveWorktreeRetention(repoRoot).catch(() => DEFAULT_WORKTREE_RETENTION);
|
|
262
|
-
const reclaimed = await reclaimWorktrees(repoRoot, store, keep).catch(() => []);
|
|
277
|
+
const reclaimed = await reclaimWorktrees(repoRoot, store, keep, { previewHost }).catch(() => []);
|
|
263
278
|
if (reclaimed.length > 0) {
|
|
264
279
|
console.log(` reclaimed ${reclaimed.length} old worktree(s), branch kept: ${reclaimed.map((id) => id.slice(0, 8)).join(', ')}`);
|
|
265
280
|
}
|
|
@@ -267,8 +282,12 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
267
282
|
const recovered = store
|
|
268
283
|
.listRuns()
|
|
269
284
|
.filter((r) => ['queued', 'waiting', 'running'].includes(r.status)).length;
|
|
270
|
-
|
|
271
|
-
|
|
285
|
+
if (!store.unavailable) {
|
|
286
|
+
await recoverWithProviderRuntimeAuthObservation(store, () => manager.recover(), providerRuntimeAuth);
|
|
287
|
+
// Boot project never enters ProjectContexts.build(); same sweep that path runs after recover.
|
|
288
|
+
store.compressArchivedHistory();
|
|
289
|
+
delegation.service.armDestroyRetries(bootProjectId ?? 'default');
|
|
290
|
+
}
|
|
272
291
|
if (recovered > 0)
|
|
273
292
|
console.log(` recovered ${recovered} run(s) from the previous session`);
|
|
274
293
|
// Update discovery (#368) — fire-and-forget; the banner prints whenever the
|
|
@@ -281,7 +300,7 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
281
300
|
update.latest = latest;
|
|
282
301
|
console.log(`\n ⬆ cezar ${latest} is available (running ${version}) — restart with: npx ${pkgName}@latest\n`);
|
|
283
302
|
});
|
|
284
|
-
const port =
|
|
303
|
+
const port = preferredPort;
|
|
285
304
|
// SECURITY: cezar executes agents. A non-loopback bind exposes that box to
|
|
286
305
|
// whatever can reach the interface, and cezar itself has NO auth — it is only
|
|
287
306
|
// for a deliberate hosted setup where a reverse proxy in front provides TLS +
|
|
@@ -323,13 +342,15 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
323
342
|
providerRuntimeAuth,
|
|
324
343
|
workspaceEvents,
|
|
325
344
|
taskWebhooks,
|
|
326
|
-
|
|
345
|
+
previewHost,
|
|
346
|
+
cezarPort,
|
|
347
|
+
}, port, listener);
|
|
327
348
|
if (!server.listening)
|
|
328
349
|
await once(server, 'listening');
|
|
329
350
|
const address = server.address();
|
|
330
351
|
if (!address || typeof address === 'string')
|
|
331
352
|
throw new Error('cockpit TCP listener is unavailable');
|
|
332
|
-
|
|
353
|
+
boundPort = address.port;
|
|
333
354
|
const boundHost = address.address;
|
|
334
355
|
if (restartExact && process.send) {
|
|
335
356
|
process.send({ type: 'application-update-listening', host: boundHost, port: boundPort, repoRoot, version }, () => process.disconnect?.());
|
|
@@ -343,20 +364,24 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
343
364
|
const detail = check.available ? (check.version ?? 'ok') : (check.hint ?? 'missing');
|
|
344
365
|
console.log(` ${mark} ${check.name.padEnd(6)} ${detail}`);
|
|
345
366
|
}
|
|
346
|
-
if (preferredPort !== 0 && boundPort !== preferredPort)
|
|
347
|
-
console.log(` (port ${preferredPort} was busy — using ${boundPort})`);
|
|
348
367
|
console.log(`\n cockpit → ${url}\n`);
|
|
349
368
|
// Silenced by CEZ_NO_BANNER=1 or by dismissing the cockpit's banner (#391).
|
|
350
369
|
await printSkillsBanner(repoRoot);
|
|
351
|
-
const shutdown = () => {
|
|
352
|
-
|
|
370
|
+
const shutdown = (signal) => {
|
|
371
|
+
// Dev servers run in their own process groups: stop them before this process exits.
|
|
372
|
+
void Promise.all([delegation.close(), previewHost?.close()]).finally(() => {
|
|
353
373
|
server.close();
|
|
354
|
-
store.
|
|
374
|
+
store.close();
|
|
375
|
+
// Agent sessions lead their own process groups (hearsay-tools/cezarion#890), so the
|
|
376
|
+
// terminal's Ctrl-C no longer reaches them. Forward the signal last: with the store
|
|
377
|
+
// closed, an agent it ends cannot settle its run, and restart recovery resumes it.
|
|
378
|
+
// SIGHUP stays unhandled: a listener would override nohup's ignore disposition.
|
|
379
|
+
forwardToSessionGroups(signal);
|
|
355
380
|
process.exit(0);
|
|
356
381
|
});
|
|
357
382
|
};
|
|
358
|
-
process.on('SIGINT', shutdown);
|
|
359
|
-
process.on('SIGTERM', shutdown);
|
|
383
|
+
process.on('SIGINT', () => shutdown('SIGINT'));
|
|
384
|
+
process.on('SIGTERM', () => shutdown('SIGTERM'));
|
|
360
385
|
// Open the browser only once the server actually answers, so the first
|
|
361
386
|
// paint is the cockpit and never a connection error.
|
|
362
387
|
if (openBrowser) {
|
|
@@ -365,21 +390,26 @@ async function serveCommand(repoRoot, preferredPort, openBrowser, bindHost, rest
|
|
|
365
390
|
openUrl(url);
|
|
366
391
|
}
|
|
367
392
|
}
|
|
368
|
-
/**
|
|
369
|
-
async function
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
}
|
|
374
|
-
return start; // let the server fail loudly if 50 ports are somehow busy
|
|
375
|
-
}
|
|
376
|
-
function canListen(port) {
|
|
377
|
-
return new Promise((resolvePort) => {
|
|
378
|
-
const probe = createServer();
|
|
379
|
-
probe.once('error', () => resolvePort(false));
|
|
380
|
-
probe.once('listening', () => probe.close(() => resolvePort(true)));
|
|
381
|
-
probe.listen(port, '127.0.0.1');
|
|
393
|
+
/** Acquire once, on the actual bind host; --port 0 delegates selection to the OS. */
|
|
394
|
+
async function acquireServeListener(port, bindHost = '127.0.0.1') {
|
|
395
|
+
const listener = createServer((_request, response) => {
|
|
396
|
+
response.writeHead(503, { 'Content-Type': 'text/plain', 'Connection': 'close' });
|
|
397
|
+
response.end('Cockpit is starting; retry shortly.\n');
|
|
382
398
|
});
|
|
399
|
+
try {
|
|
400
|
+
listener.listen(port, bindHost);
|
|
401
|
+
await once(listener, 'listening');
|
|
402
|
+
return listener;
|
|
403
|
+
}
|
|
404
|
+
catch (error) {
|
|
405
|
+
listener.close();
|
|
406
|
+
if (error.code === 'EADDRINUSE') {
|
|
407
|
+
throw new Error(`Cockpit port ${port} on ${bindHost} is already in use. ` +
|
|
408
|
+
'Open the existing cockpit if it is serving there, stop the process using this port, ' +
|
|
409
|
+
'or pass --port <free-port> to deliberately start another cockpit.');
|
|
410
|
+
}
|
|
411
|
+
throw error;
|
|
412
|
+
}
|
|
383
413
|
}
|
|
384
414
|
async function waitForHealth(healthUrl, timeoutMs) {
|
|
385
415
|
const deadline = Date.now() + timeoutMs;
|
|
@@ -398,9 +428,9 @@ async function waitForHealth(healthUrl, timeoutMs) {
|
|
|
398
428
|
}
|
|
399
429
|
// ---- run (headless) ----------------------------------------------------------
|
|
400
430
|
/**
|
|
401
|
-
* Headless `run` stays headless (#504)
|
|
402
|
-
*
|
|
403
|
-
* silent on any failure.
|
|
431
|
+
* Headless `run` stays headless (#504). A cockpit already serving this repo lists the run, but
|
|
432
|
+
* cannot control it while this process owns it (#779, plan step 3), and gets none of its live
|
|
433
|
+
* events — say so once, on stderr. Capped so it never delays the run, and silent on any failure.
|
|
404
434
|
*/
|
|
405
435
|
async function hintRunningCockpit(repoRoot) {
|
|
406
436
|
const { discoverCockpit } = await import('./task-cli/discovery.js');
|
|
@@ -444,9 +474,31 @@ async function runCommand(repoRoot, task, workflowName, model) {
|
|
|
444
474
|
}
|
|
445
475
|
}
|
|
446
476
|
const repoHandleController = new AbortController();
|
|
447
|
-
|
|
477
|
+
let store;
|
|
478
|
+
try {
|
|
479
|
+
store = openStore(repoRoot, { repoHandleSignal: repoHandleController.signal });
|
|
480
|
+
}
|
|
481
|
+
catch (error) {
|
|
482
|
+
if (!(error instanceof RunStoreOpenError))
|
|
483
|
+
throw error;
|
|
484
|
+
console.error(error.message);
|
|
485
|
+
process.exitCode = 1;
|
|
486
|
+
return;
|
|
487
|
+
}
|
|
448
488
|
const delegation = await DelegationController.start();
|
|
449
489
|
delegation.service.setDiscovery(createHostDiscovery(repoRoot, providerAuth));
|
|
490
|
+
// Agent sessions lead their own process groups (hearsay-tools/cezarion#890): pass Ctrl-C and
|
|
491
|
+
// SIGTERM on, then end by the same signal, as this process did before it had a handler.
|
|
492
|
+
const forward = (signal) => {
|
|
493
|
+
forwardToSessionGroups(signal);
|
|
494
|
+
process.off('SIGINT', onSigint);
|
|
495
|
+
process.off('SIGTERM', onSigterm);
|
|
496
|
+
process.kill(process.pid, signal);
|
|
497
|
+
};
|
|
498
|
+
const onSigint = () => forward('SIGINT');
|
|
499
|
+
const onSigterm = () => forward('SIGTERM');
|
|
500
|
+
process.on('SIGINT', onSigint);
|
|
501
|
+
process.on('SIGTERM', onSigterm);
|
|
450
502
|
try {
|
|
451
503
|
// Headless tasks still appear in the cockpit later, so persist the same
|
|
452
504
|
// task-local recovery event when a credential expires after the preflight.
|
|
@@ -501,11 +553,13 @@ async function runCommand(repoRoot, task, workflowName, model) {
|
|
|
501
553
|
process.exitCode = final === 'done' || final === 'review' ? 0 : 1;
|
|
502
554
|
}
|
|
503
555
|
finally {
|
|
556
|
+
process.off('SIGINT', onSigint);
|
|
557
|
+
process.off('SIGTERM', onSigterm);
|
|
504
558
|
await delegation.close();
|
|
505
559
|
// A slow GitHub child must not keep a completed headless task alive. Any handle that
|
|
506
560
|
// already arrived has repaired the store; an unfinished lookup remains unknown.
|
|
507
561
|
repoHandleController.abort();
|
|
508
|
-
store.
|
|
562
|
+
store.close();
|
|
509
563
|
}
|
|
510
564
|
}
|
|
511
565
|
// ---- server-install / server-uninstall --------------------------------------
|
|
@@ -692,53 +746,32 @@ description: House rules the agent should follow in this repo.
|
|
|
692
746
|
console.log('\nDone. Start the cockpit with: npx cezarion');
|
|
693
747
|
}
|
|
694
748
|
// ---- helpers -----------------------------------------------------------------
|
|
749
|
+
/** The project's run store, at the start of a process: a busy database is waited out
|
|
750
|
+
* (`retryBusy`), and a store that cannot open throws its `RunStoreOpenError`. */
|
|
695
751
|
function openStore(repoRoot, opts) {
|
|
696
752
|
const dataDir = join(repoRoot, '.ai/cezar');
|
|
697
|
-
|
|
753
|
+
// First: an open that fails may already have created the database and the history backups.
|
|
754
|
+
ensureDataGitignore(repoRoot);
|
|
755
|
+
const store = RunStore.open(dataDir, { keepLive: opts?.keepLive, retryBusy: true });
|
|
698
756
|
// Repo-scope the referenced tier (#945) — see `armRepoHandle`. Background, never awaited: a
|
|
699
757
|
// `gh`-less or offline machine keeps working exactly as it did, just unscoped.
|
|
700
758
|
armRepoHandle(store, repoRoot, opts?.repoHandleSignal);
|
|
701
|
-
ensureDataGitignore(repoRoot);
|
|
702
759
|
return store;
|
|
703
760
|
}
|
|
704
|
-
/**
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
'runs/',
|
|
711
|
-
'worktrees/',
|
|
712
|
-
'tmp/', // per-run agent temp directories (#785)
|
|
713
|
-
'todos.json',
|
|
714
|
-
'todos.json.tmp',
|
|
715
|
-
'launch-key',
|
|
716
|
-
'cockpit.lock*',
|
|
717
|
-
'automations.json',
|
|
718
|
-
'automations.json.tmp',
|
|
719
|
-
'automation-state.json',
|
|
720
|
-
'automation-state.json.tmp',
|
|
721
|
-
'automation-receipts.ndjson',
|
|
722
|
-
'automation-receipts.ndjson.tmp',
|
|
723
|
-
'automation-log.ndjson',
|
|
724
|
-
'automation-log.ndjson.tmp',
|
|
725
|
-
'automation-log.lock',
|
|
726
|
-
'automation-log.reclaim*/',
|
|
727
|
-
'automation-poll.lock',
|
|
728
|
-
'automation-poll.reclaim*/',
|
|
729
|
-
];
|
|
761
|
+
/**
|
|
762
|
+
* The boot project's store for `serve` (#779, plan step 4). One that cannot open does not stop the
|
|
763
|
+
* cockpit: the boot project answers every route with the reason (`RunStore.unavailable`), the
|
|
764
|
+
* other projects work, and a restart once the cause is gone opens it.
|
|
765
|
+
*/
|
|
766
|
+
function openBootStore(repoRoot) {
|
|
730
767
|
try {
|
|
731
|
-
|
|
732
|
-
const current = existsSync(path) ? readFileSync(path, 'utf8') : '';
|
|
733
|
-
const lines = current.split('\n');
|
|
734
|
-
const missing = wanted.filter((w) => !lines.includes(w));
|
|
735
|
-
if (missing.length > 0) {
|
|
736
|
-
const glue = current && !current.endsWith('\n') ? '\n' : '';
|
|
737
|
-
writeFileSync(path, `${current}${glue}${missing.join('\n')}\n`, 'utf8');
|
|
738
|
-
}
|
|
768
|
+
return openStore(repoRoot, { keepLive: true });
|
|
739
769
|
}
|
|
740
|
-
catch {
|
|
741
|
-
|
|
770
|
+
catch (error) {
|
|
771
|
+
if (!(error instanceof RunStoreOpenError))
|
|
772
|
+
throw error;
|
|
773
|
+
console.error(`\n ✗ ${error.message}\n`);
|
|
774
|
+
return RunStore.unavailable(join(repoRoot, '.ai/cezar'), error);
|
|
742
775
|
}
|
|
743
776
|
}
|
|
744
777
|
/** Own package name — for the npm-registry update check (#368). */
|