@wjarka/cezarion 0.10.0-pr30.54
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/LICENSE +21 -0
- package/README.md +838 -0
- package/dist/agent-config/account-identity.d.ts +44 -0
- package/dist/agent-config/account-identity.js +128 -0
- package/dist/agent-config/account-identity.js.map +1 -0
- package/dist/agent-config/catalog.d.ts +72 -0
- package/dist/agent-config/catalog.js +223 -0
- package/dist/agent-config/catalog.js.map +1 -0
- package/dist/agent-config/files.d.ts +46 -0
- package/dist/agent-config/files.js +119 -0
- package/dist/agent-config/files.js.map +1 -0
- package/dist/agent-config/model-settings/claude.d.ts +2 -0
- package/dist/agent-config/model-settings/claude.js +11 -0
- package/dist/agent-config/model-settings/claude.js.map +1 -0
- package/dist/agent-config/model-settings/codex.d.ts +2 -0
- package/dist/agent-config/model-settings/codex.js +16 -0
- package/dist/agent-config/model-settings/codex.js.map +1 -0
- package/dist/agent-config/model-settings/opencode.d.ts +2 -0
- package/dist/agent-config/model-settings/opencode.js +8 -0
- package/dist/agent-config/model-settings/opencode.js.map +1 -0
- package/dist/agent-config/model-settings/pi.d.ts +12 -0
- package/dist/agent-config/model-settings/pi.js +18 -0
- package/dist/agent-config/model-settings/pi.js.map +1 -0
- package/dist/agent-config/model-settings/shared.d.ts +9 -0
- package/dist/agent-config/model-settings/shared.js +93 -0
- package/dist/agent-config/model-settings/shared.js.map +1 -0
- package/dist/agent-config/model-settings/types.d.ts +9 -0
- package/dist/agent-config/model-settings/types.js +2 -0
- package/dist/agent-config/model-settings/types.js.map +1 -0
- package/dist/agent-config/models.d.ts +9 -0
- package/dist/agent-config/models.js +32 -0
- package/dist/agent-config/models.js.map +1 -0
- package/dist/agent-config/seed.d.ts +7 -0
- package/dist/agent-config/seed.js +90 -0
- package/dist/agent-config/seed.js.map +1 -0
- package/dist/agent-config/service.d.ts +44 -0
- package/dist/agent-config/service.js +71 -0
- package/dist/agent-config/service.js.map +1 -0
- package/dist/agent-config/validate.d.ts +21 -0
- package/dist/agent-config/validate.js +76 -0
- package/dist/agent-config/validate.js.map +1 -0
- package/dist/automations/coordinator.d.ts +26 -0
- package/dist/automations/coordinator.js +66 -0
- package/dist/automations/coordinator.js.map +1 -0
- package/dist/automations/github-poller.d.ts +74 -0
- package/dist/automations/github-poller.js +234 -0
- package/dist/automations/github-poller.js.map +1 -0
- package/dist/automations/scheduler.d.ts +42 -0
- package/dist/automations/scheduler.js +192 -0
- package/dist/automations/scheduler.js.map +1 -0
- package/dist/automations/store.d.ts +65 -0
- package/dist/automations/store.js +298 -0
- package/dist/automations/store.js.map +1 -0
- package/dist/automations/task-template.d.ts +18 -0
- package/dist/automations/task-template.js +95 -0
- package/dist/automations/task-template.js.map +1 -0
- package/dist/automations/types.d.ts +255 -0
- package/dist/automations/types.js +159 -0
- package/dist/automations/types.js.map +1 -0
- package/dist/config.d.ts +77 -0
- package/dist/config.js +242 -0
- package/dist/config.js.map +1 -0
- package/dist/contract/agent-config.d.ts +153 -0
- package/dist/contract/agent-profiles.d.ts +347 -0
- package/dist/contract/automations.d.ts +935 -0
- package/dist/contract/events.d.ts +104 -0
- package/dist/contract/github.d.ts +556 -0
- package/dist/contract/health.d.ts +102 -0
- package/dist/contract/index.d.ts +16 -0
- package/dist/contract/index.js +1895 -0
- package/dist/contract/projects.d.ts +210 -0
- package/dist/contract/repo.d.ts +234 -0
- package/dist/contract/runs.d.ts +1473 -0
- package/dist/contract/skills.d.ts +232 -0
- package/dist/contract/workflows.d.ts +218 -0
- package/dist/contract/workspace.d.ts +579 -0
- package/dist/core/agent-env.d.ts +31 -0
- package/dist/core/agent-env.js +371 -0
- package/dist/core/agent-env.js.map +1 -0
- package/dist/core/agent-model-policy.d.ts +10 -0
- package/dist/core/agent-model-policy.js +36 -0
- package/dist/core/agent-model-policy.js.map +1 -0
- package/dist/core/agent-profiles.d.ts +62 -0
- package/dist/core/agent-profiles.js +90 -0
- package/dist/core/agent-profiles.js.map +1 -0
- package/dist/core/agent-runner.d.ts +211 -0
- package/dist/core/agent-runner.js +68 -0
- package/dist/core/agent-runner.js.map +1 -0
- package/dist/core/ask.d.ts +105 -0
- package/dist/core/ask.js +187 -0
- package/dist/core/ask.js.map +1 -0
- package/dist/core/backend-detect.d.ts +16 -0
- package/dist/core/backend-detect.js +155 -0
- package/dist/core/backend-detect.js.map +1 -0
- package/dist/core/claude-cli-runner.d.ts +59 -0
- package/dist/core/claude-cli-runner.js +483 -0
- package/dist/core/claude-cli-runner.js.map +1 -0
- package/dist/core/claude-ui-mapper.d.ts +80 -0
- package/dist/core/claude-ui-mapper.js +598 -0
- package/dist/core/claude-ui-mapper.js.map +1 -0
- package/dist/core/codex-app-server-runner.d.ts +41 -0
- package/dist/core/codex-app-server-runner.js +584 -0
- package/dist/core/codex-app-server-runner.js.map +1 -0
- package/dist/core/codex-app-server-transport.d.ts +35 -0
- package/dist/core/codex-app-server-transport.js +150 -0
- package/dist/core/codex-app-server-transport.js.map +1 -0
- package/dist/core/codex-model-catalog.d.ts +10 -0
- package/dist/core/codex-model-catalog.js +110 -0
- package/dist/core/codex-model-catalog.js.map +1 -0
- package/dist/core/codex-ui-mapper.d.ts +112 -0
- package/dist/core/codex-ui-mapper.js +766 -0
- package/dist/core/codex-ui-mapper.js.map +1 -0
- package/dist/core/model-identity.d.ts +125 -0
- package/dist/core/model-identity.js +132 -0
- package/dist/core/model-identity.js.map +1 -0
- package/dist/core/model-presets.d.ts +21 -0
- package/dist/core/model-presets.js +81 -0
- package/dist/core/model-presets.js.map +1 -0
- package/dist/core/ndjson.d.ts +6 -0
- package/dist/core/ndjson.js +23 -0
- package/dist/core/ndjson.js.map +1 -0
- package/dist/core/opencode-model-catalog.d.ts +32 -0
- package/dist/core/opencode-model-catalog.js +153 -0
- package/dist/core/opencode-model-catalog.js.map +1 -0
- package/dist/core/opencode-server-runner.d.ts +32 -0
- package/dist/core/opencode-server-runner.js +882 -0
- package/dist/core/opencode-server-runner.js.map +1 -0
- package/dist/core/opencode-ui-mapper.d.ts +137 -0
- package/dist/core/opencode-ui-mapper.js +800 -0
- package/dist/core/opencode-ui-mapper.js.map +1 -0
- package/dist/core/pi-model-catalog.d.ts +31 -0
- package/dist/core/pi-model-catalog.js +152 -0
- package/dist/core/pi-model-catalog.js.map +1 -0
- package/dist/core/pi-runner.d.ts +24 -0
- package/dist/core/pi-runner.js +403 -0
- package/dist/core/pi-runner.js.map +1 -0
- package/dist/core/pi-ui-mapper.d.ts +36 -0
- package/dist/core/pi-ui-mapper.js +304 -0
- package/dist/core/pi-ui-mapper.js.map +1 -0
- package/dist/core/process-usage.d.ts +66 -0
- package/dist/core/process-usage.js +193 -0
- package/dist/core/process-usage.js.map +1 -0
- package/dist/core/provider-auth.d.ts +154 -0
- package/dist/core/provider-auth.js +509 -0
- package/dist/core/provider-auth.js.map +1 -0
- package/dist/core/provider-availability.d.ts +3 -0
- package/dist/core/provider-availability.js +14 -0
- package/dist/core/provider-availability.js.map +1 -0
- package/dist/core/runner-factory.d.ts +8 -0
- package/dist/core/runner-factory.js +25 -0
- package/dist/core/runner-factory.js.map +1 -0
- package/dist/core/runner-model-catalog.d.ts +29 -0
- package/dist/core/runner-model-catalog.js +78 -0
- package/dist/core/runner-model-catalog.js.map +1 -0
- package/dist/core/secret-redaction.d.ts +37 -0
- package/dist/core/secret-redaction.js +115 -0
- package/dist/core/secret-redaction.js.map +1 -0
- package/dist/core/shell-env.d.ts +28 -0
- package/dist/core/shell-env.js +56 -0
- package/dist/core/shell-env.js.map +1 -0
- package/dist/core/tool-display.d.ts +31 -0
- package/dist/core/tool-display.js +179 -0
- package/dist/core/tool-display.js.map +1 -0
- package/dist/core/ui-events.d.ts +335 -0
- package/dist/core/ui-events.js +25 -0
- package/dist/core/ui-events.js.map +1 -0
- package/dist/core/usage-limit.d.ts +42 -0
- package/dist/core/usage-limit.js +209 -0
- package/dist/core/usage-limit.js.map +1 -0
- package/dist/core/usage.d.ts +11 -0
- package/dist/core/usage.js +15 -0
- package/dist/core/usage.js.map +1 -0
- package/dist/core/v1-text-coalescer.d.ts +36 -0
- package/dist/core/v1-text-coalescer.js +72 -0
- package/dist/core/v1-text-coalescer.js.map +1 -0
- package/dist/git-diff-base.d.ts +85 -0
- package/dist/git-diff-base.js +180 -0
- package/dist/git-diff-base.js.map +1 -0
- package/dist/git-refs.d.ts +11 -0
- package/dist/git-refs.js +14 -0
- package/dist/git-refs.js.map +1 -0
- package/dist/git-worktree.d.ts +161 -0
- package/dist/git-worktree.js +508 -0
- package/dist/git-worktree.js.map +1 -0
- package/dist/handoff.d.ts +62 -0
- package/dist/handoff.js +154 -0
- package/dist/handoff.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +680 -0
- package/dist/index.js.map +1 -0
- package/dist/install-as-command.d.ts +40 -0
- package/dist/install-as-command.js +52 -0
- package/dist/install-as-command.js.map +1 -0
- package/dist/pack-check.d.ts +17 -0
- package/dist/pack-check.js +27 -0
- package/dist/pack-check.js.map +1 -0
- package/dist/paths.d.ts +140 -0
- package/dist/paths.js +192 -0
- package/dist/paths.js.map +1 -0
- package/dist/planner.d.ts +27 -0
- package/dist/planner.js +268 -0
- package/dist/planner.js.map +1 -0
- package/dist/release/manifests.d.ts +81 -0
- package/dist/release/manifests.js +74 -0
- package/dist/release/manifests.js.map +1 -0
- package/dist/release/snapshot.d.ts +67 -0
- package/dist/release/snapshot.js +97 -0
- package/dist/release/snapshot.js.map +1 -0
- package/dist/release/stable.d.ts +38 -0
- package/dist/release/stable.js +55 -0
- package/dist/release/stable.js.map +1 -0
- package/dist/runs/agent-tmpdir.d.ts +41 -0
- package/dist/runs/agent-tmpdir.js +183 -0
- package/dist/runs/agent-tmpdir.js.map +1 -0
- package/dist/runs/auto-name.d.ts +75 -0
- package/dist/runs/auto-name.js +179 -0
- package/dist/runs/auto-name.js.map +1 -0
- package/dist/runs/event-history.d.ts +50 -0
- package/dist/runs/event-history.js +613 -0
- package/dist/runs/event-history.js.map +1 -0
- package/dist/runs/retention.d.ts +60 -0
- package/dist/runs/retention.js +86 -0
- package/dist/runs/retention.js.map +1 -0
- package/dist/runs/review-gate.d.ts +18 -0
- package/dist/runs/review-gate.js +21 -0
- package/dist/runs/review-gate.js.map +1 -0
- package/dist/runs/run-index.d.ts +19 -0
- package/dist/runs/run-index.js +43 -0
- package/dist/runs/run-index.js.map +1 -0
- package/dist/runs/store.d.ts +446 -0
- package/dist/runs/store.js +1118 -0
- package/dist/runs/store.js.map +1 -0
- package/dist/runs/task-markers.d.ts +28 -0
- package/dist/runs/task-markers.js +74 -0
- package/dist/runs/task-markers.js.map +1 -0
- package/dist/runs/task-refs.d.ts +25 -0
- package/dist/runs/task-refs.js +74 -0
- package/dist/runs/task-refs.js.map +1 -0
- package/dist/runs/ui-event-sink.d.ts +81 -0
- package/dist/runs/ui-event-sink.js +210 -0
- package/dist/runs/ui-event-sink.js.map +1 -0
- package/dist/server/app-type.d.ts +21 -0
- package/dist/server/app-type.js +2 -0
- package/dist/server/app-type.js.map +1 -0
- package/dist/server/capabilities.d.ts +70 -0
- package/dist/server/capabilities.js +152 -0
- package/dist/server/capabilities.js.map +1 -0
- package/dist/server/checkout.d.ts +128 -0
- package/dist/server/checkout.js +296 -0
- package/dist/server/checkout.js.map +1 -0
- package/dist/server/forge/github.d.ts +513 -0
- package/dist/server/forge/github.js +2364 -0
- package/dist/server/forge/github.js.map +1 -0
- package/dist/server/forge/index.d.ts +40 -0
- package/dist/server/forge/index.js +72 -0
- package/dist/server/forge/index.js.map +1 -0
- package/dist/server/forge/types.d.ts +242 -0
- package/dist/server/forge/types.js +2 -0
- package/dist/server/forge/types.js.map +1 -0
- package/dist/server/fs-browse.d.ts +105 -0
- package/dist/server/fs-browse.js +182 -0
- package/dist/server/fs-browse.js.map +1 -0
- package/dist/server/git-changes.d.ts +213 -0
- package/dist/server/git-changes.js +555 -0
- package/dist/server/git-changes.js.map +1 -0
- package/dist/server/git.d.ts +28 -0
- package/dist/server/git.js +112 -0
- package/dist/server/git.js.map +1 -0
- package/dist/server/github.d.ts +9 -0
- package/dist/server/github.js +8 -0
- package/dist/server/github.js.map +1 -0
- package/dist/server/launch-key.d.ts +7 -0
- package/dist/server/launch-key.js +33 -0
- package/dist/server/launch-key.js.map +1 -0
- package/dist/server/open-in-app.d.ts +66 -0
- package/dist/server/open-in-app.js +211 -0
- package/dist/server/open-in-app.js.map +1 -0
- package/dist/server/open-in-terminal.d.ts +70 -0
- package/dist/server/open-in-terminal.js +179 -0
- package/dist/server/open-in-terminal.js.map +1 -0
- package/dist/server/pr.d.ts +7 -0
- package/dist/server/pr.js +7 -0
- package/dist/server/pr.js.map +1 -0
- package/dist/server/project-context.d.ts +120 -0
- package/dist/server/project-context.js +182 -0
- package/dist/server/project-context.js.map +1 -0
- package/dist/server/provider-action-gate.d.ts +8 -0
- package/dist/server/provider-action-gate.js +56 -0
- package/dist/server/provider-action-gate.js.map +1 -0
- package/dist/server/provider-auth-runtime.d.ts +21 -0
- package/dist/server/provider-auth-runtime.js +66 -0
- package/dist/server/provider-auth-runtime.js.map +1 -0
- package/dist/server/server.d.ts +13138 -0
- package/dist/server/server.js +5263 -0
- package/dist/server/server.js.map +1 -0
- package/dist/server/static-ui.d.ts +49 -0
- package/dist/server/static-ui.js +92 -0
- package/dist/server/static-ui.js.map +1 -0
- package/dist/server/validators.d.ts +97 -0
- package/dist/server/validators.js +86 -0
- package/dist/server/validators.js.map +1 -0
- package/dist/server/ws.d.ts +85 -0
- package/dist/server/ws.js +218 -0
- package/dist/server/ws.js.map +1 -0
- package/dist/server/wsl.d.ts +25 -0
- package/dist/server/wsl.js +92 -0
- package/dist/server/wsl.js.map +1 -0
- package/dist/server-install/engine.d.ts +50 -0
- package/dist/server-install/engine.js +324 -0
- package/dist/server-install/engine.js.map +1 -0
- package/dist/server-install/platforms/macosx-ngrok.d.ts +6 -0
- package/dist/server-install/platforms/macosx-ngrok.js +345 -0
- package/dist/server-install/platforms/macosx-ngrok.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps.d.ts +78 -0
- package/dist/server-install/platforms/ubuntu-vps.js +1016 -0
- package/dist/server-install/platforms/ubuntu-vps.js.map +1 -0
- package/dist/server-install/state.d.ts +52 -0
- package/dist/server-install/state.js +182 -0
- package/dist/server-install/state.js.map +1 -0
- package/dist/server-install/steps.d.ts +109 -0
- package/dist/server-install/steps.js +334 -0
- package/dist/server-install/steps.js.map +1 -0
- package/dist/server-install/strategies.d.ts +4 -0
- package/dist/server-install/strategies.js +20 -0
- package/dist/server-install/strategies.js.map +1 -0
- package/dist/server-install/types.d.ts +287 -0
- package/dist/server-install/types.js +121 -0
- package/dist/server-install/types.js.map +1 -0
- package/dist/server-install/ui.d.ts +42 -0
- package/dist/server-install/ui.js +130 -0
- package/dist/server-install/ui.js.map +1 -0
- package/dist/skills-banner.d.ts +22 -0
- package/dist/skills-banner.js +41 -0
- package/dist/skills-banner.js.map +1 -0
- package/dist/skills-remote.d.ts +84 -0
- package/dist/skills-remote.js +468 -0
- package/dist/skills-remote.js.map +1 -0
- package/dist/skills-update.d.ts +88 -0
- package/dist/skills-update.js +392 -0
- package/dist/skills-update.js.map +1 -0
- package/dist/skills.d.ts +82 -0
- package/dist/skills.js +251 -0
- package/dist/skills.js.map +1 -0
- package/dist/todos.d.ts +48 -0
- package/dist/todos.js +201 -0
- package/dist/todos.js.map +1 -0
- package/dist/ui-state.d.ts +26 -0
- package/dist/ui-state.js +38 -0
- package/dist/ui-state.js.map +1 -0
- package/dist/update-check.d.ts +12 -0
- package/dist/update-check.js +41 -0
- package/dist/update-check.js.map +1 -0
- package/dist/workflows/load.d.ts +15 -0
- package/dist/workflows/load.js +56 -0
- package/dist/workflows/load.js.map +1 -0
- package/dist/workflows/run.d.ts +758 -0
- package/dist/workflows/run.js +3389 -0
- package/dist/workflows/run.js.map +1 -0
- package/dist/workflows/types.d.ts +153 -0
- package/dist/workflows/types.js +212 -0
- package/dist/workflows/types.js.map +1 -0
- package/dist/workspace/agent-accounts.d.ts +153 -0
- package/dist/workspace/agent-accounts.js +304 -0
- package/dist/workspace/agent-accounts.js.map +1 -0
- package/dist/workspace/agent-profiles.d.ts +78 -0
- package/dist/workspace/agent-profiles.js +115 -0
- package/dist/workspace/agent-profiles.js.map +1 -0
- package/dist/workspace/config.d.ts +169 -0
- package/dist/workspace/config.js +379 -0
- package/dist/workspace/config.js.map +1 -0
- package/dist/workspace/migrations.d.ts +45 -0
- package/dist/workspace/migrations.js +147 -0
- package/dist/workspace/migrations.js.map +1 -0
- package/dist/workspace/projects-cli.d.ts +25 -0
- package/dist/workspace/projects-cli.js +172 -0
- package/dist/workspace/projects-cli.js.map +1 -0
- package/dist/workspace/projects.d.ts +109 -0
- package/dist/workspace/projects.js +250 -0
- package/dist/workspace/projects.js.map +1 -0
- package/dist/workspace/semaphore.d.ts +179 -0
- package/dist/workspace/semaphore.js +195 -0
- package/dist/workspace/semaphore.js.map +1 -0
- package/dist/workspace/ui-state.d.ts +34 -0
- package/dist/workspace/ui-state.js +53 -0
- package/dist/workspace/ui-state.js.map +1 -0
- package/package.json +70 -0
- package/scripts/check-pack.mjs +46 -0
- package/scripts/inline-contract.mjs +112 -0
- package/scripts/install-as-command.mjs +120 -0
- package/scripts/mock-claude.mjs +520 -0
- package/scripts/mock-pi-rpc.mjs +83 -0
- package/scripts/sync-readme.mjs +20 -0
- package/scripts/test-process-usage.mjs +47 -0
- package/web/dist/assets/alert-dialog-B4Ofsgv7.js +1 -0
- package/web/dist/assets/arrow-down-Dy8dup7j.js +1 -0
- package/web/dist/assets/arrow-left-BJaucbhn.js +1 -0
- package/web/dist/assets/bundle-mjs-BT31bpU6.js +1 -0
- package/web/dist/assets/centered-state-duPW0phQ.js +43 -0
- package/web/dist/assets/chevron-right-Be4A5TCS.js +1 -0
- package/web/dist/assets/chunk-BO2N2NFS-DE6qKn3r.js +131 -0
- package/web/dist/assets/collapsible-DdcNBdSk.js +1 -0
- package/web/dist/assets/commit-list-CgvN9vec.js +1 -0
- package/web/dist/assets/compare-variants-CQA2nd65.js +1 -0
- package/web/dist/assets/core-BCsw8oQw.js +12 -0
- package/web/dist/assets/css-BsVw1vtW.js +1 -0
- package/web/dist/assets/diff-B6Agp5Hl.js +3 -0
- package/web/dist/assets/diff-stat-BoXuGkgq.js +1 -0
- package/web/dist/assets/diff-view-CD8XI-fj.js +6 -0
- package/web/dist/assets/diff-woXpYk--.js +1 -0
- package/web/dist/assets/dropdown-menu-B3SYw-k5.js +1 -0
- package/web/dist/assets/editable-title-B-hjp5wl.js +1 -0
- package/web/dist/assets/ellipsis-vertical-BYwzw0xl.js +1 -0
- package/web/dist/assets/engine-javascript-FQvzRocB.js +141 -0
- package/web/dist/assets/file-BRj5eISx.js +1 -0
- package/web/dist/assets/folder-z4oT5981.js +1 -0
- package/web/dist/assets/git-toolbar-owSEkYld.js +1 -0
- package/web/dist/assets/github-Bz2VgRX3.js +1 -0
- package/web/dist/assets/go-rLFTqkRN.js +1 -0
- package/web/dist/assets/highlighted-body-OFNGDK62-BL-MfFgl.js +1 -0
- package/web/dist/assets/highlighter-CdHqIwFr.js +3 -0
- package/web/dist/assets/html-BY76lXLH.js +1 -0
- package/web/dist/assets/image-preview-h3WFluuy.js +1 -0
- package/web/dist/assets/index-BbcQNT92.css +2 -0
- package/web/dist/assets/index-EtQQQ6Kj.js +7 -0
- package/web/dist/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/web/dist/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/web/dist/assets/javascript-BgS3c2Ky.js +1 -0
- package/web/dist/assets/jetbrains-mono-latin-ext-wght-normal-DBQx-q_a.woff2 +0 -0
- package/web/dist/assets/jetbrains-mono-latin-wght-normal-B9CIFXIH.woff2 +0 -0
- package/web/dist/assets/json-qhed-kSA.js +1 -0
- package/web/dist/assets/jsonc-CYpm1nAK.js +1 -0
- package/web/dist/assets/jsx-Bz0zcwM4.js +1 -0
- package/web/dist/assets/lib-BQXq3kEf.js +1 -0
- package/web/dist/assets/lib-BxQXEXDF.js +1 -0
- package/web/dist/assets/markdown-BYOwaDjH.js +1 -0
- package/web/dist/assets/markdown-DqBKYPiB.js +2 -0
- package/web/dist/assets/mermaid-GHXKKRXX-C4jxqUUb.js +1 -0
- package/web/dist/assets/new-task-form-BdJKRBJX.js +1 -0
- package/web/dist/assets/pill-BQfmfpYp.js +1 -0
- package/web/dist/assets/project-router-DxgFZY1l.js +1 -0
- package/web/dist/assets/prompt-templates-B6m16gq-.js +15 -0
- package/web/dist/assets/python-gzcpVVnB.js +1 -0
- package/web/dist/assets/react-runtime-CCIEwYL0.js +9 -0
- package/web/dist/assets/refresh-cw-mhSpxf2a.js +1 -0
- package/web/dist/assets/repo-git-CUNRxR3_.js +1 -0
- package/web/dist/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/web/dist/assets/run-diff-DsmmDVfx.js +3 -0
- package/web/dist/assets/run-header-BkhrseLJ.js +1 -0
- package/web/dist/assets/rust-Cfkwpbl8.js +1 -0
- package/web/dist/assets/search-x-BqDMB2g8.js +1 -0
- package/web/dist/assets/shellscript-CLZ0U2zV.js +1 -0
- package/web/dist/assets/skill-empty-hint-BWEvTggc.js +1 -0
- package/web/dist/assets/skills-9oR_oHse.js +1 -0
- package/web/dist/assets/skills-DwIxnnWO.js +1 -0
- package/web/dist/assets/sparkles-DIoTQpyx.js +1 -0
- package/web/dist/assets/sql-BsFa4tDR.js +1 -0
- package/web/dist/assets/square-terminal-Cc7CuQxc.js +1 -0
- package/web/dist/assets/tab-link-D1fQgpmO.js +1 -0
- package/web/dist/assets/task-changes-BKeLlDpK.js +1 -0
- package/web/dist/assets/task-commits-gcEFZIa5.js +1 -0
- package/web/dist/assets/task-files-BGAqoXTW.js +2 -0
- package/web/dist/assets/task-thread-DT8aUYTS.js +9 -0
- package/web/dist/assets/textarea-BOVbfy5C.js +1 -0
- package/web/dist/assets/thread-loading-CypW73KD.js +1 -0
- package/web/dist/assets/toml-CcmNWLt0.js +1 -0
- package/web/dist/assets/trash-2-CJq6LHWn.js +1 -0
- package/web/dist/assets/triangle-alert-CjDFvU27.js +1 -0
- package/web/dist/assets/tsx-udAQXfEw.js +1 -0
- package/web/dist/assets/typescript-bsJCZSQ-.js +1 -0
- package/web/dist/assets/upload-CPDZlJeK.js +1 -0
- package/web/dist/assets/use-desktop-5JsLmi0a.js +1 -0
- package/web/dist/assets/use-submit-shortcut-CHVFevty.js +1 -0
- package/web/dist/assets/utils-DiO6zyJd.js +64 -0
- package/web/dist/assets/workflows-rQDFzWRt.js +11 -0
- package/web/dist/assets/yaml-rwi0_p6S.js +1 -0
- package/web/dist/assets/zoomable-image-COWqb11v.js +1 -0
- package/web/dist/index.html +80 -0
- package/web/dist/open-mercato.svg +11 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reject option-like git revision arguments (#431). A `-`/`--`-prefixed
|
|
3
|
+
* base/from ref is git argument injection: `git diff --output=/path` writes an
|
|
4
|
+
* arbitrary file, `--upload-pack=<cmd>` runs a command, etc. Every ref cezar
|
|
5
|
+
* feeds to git is already gated upstream by `git rev-parse --verify` /
|
|
6
|
+
* `git check-ref-format`, which reject option-like values — this is the
|
|
7
|
+
* explicit last line of defense so a future refactor can't silently drop that
|
|
8
|
+
* gate. Empty refs are rejected too: git would resolve them to an unexpected
|
|
9
|
+
* default rather than the intended revision.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isSafeGitRef(ref: string): boolean;
|
package/dist/git-refs.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Reject option-like git revision arguments (#431). A `-`/`--`-prefixed
|
|
3
|
+
* base/from ref is git argument injection: `git diff --output=/path` writes an
|
|
4
|
+
* arbitrary file, `--upload-pack=<cmd>` runs a command, etc. Every ref cezar
|
|
5
|
+
* feeds to git is already gated upstream by `git rev-parse --verify` /
|
|
6
|
+
* `git check-ref-format`, which reject option-like values — this is the
|
|
7
|
+
* explicit last line of defense so a future refactor can't silently drop that
|
|
8
|
+
* gate. Empty refs are rejected too: git would resolve them to an unexpected
|
|
9
|
+
* default rather than the intended revision.
|
|
10
|
+
*/
|
|
11
|
+
export function isSafeGitRef(ref) {
|
|
12
|
+
return ref.length > 0 && !ref.startsWith('-');
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=git-refs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-refs.js","sourceRoot":"","sources":["../src/git-refs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,MAAM,UAAU,YAAY,CAAC,GAAW;IACtC,OAAO,GAAG,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC;AAChD,CAAC"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Git worktree per task (spec 006). Each run gets its own branch
|
|
3
|
+
* `cez/<id8>` checked out into `.ai/cezar/worktrees/<runId>` so agents never
|
|
4
|
+
* touch the user's working tree. Pattern ported from github-janitor's
|
|
5
|
+
* `git.ts` (createWorktree / autosaveCommit), minus the bare clone — we're
|
|
6
|
+
* already inside a working copy. Everything degrades: helpers never throw
|
|
7
|
+
* except `createWorktree`, whose failure the caller turns into a note.
|
|
8
|
+
*/
|
|
9
|
+
/** Repo-relative home of all task worktrees (gitignored via .ai/cezar/.gitignore). */
|
|
10
|
+
export declare const WORKTREES_DIR = ".ai/cezar/worktrees";
|
|
11
|
+
export declare function branchFor(runId: string): string;
|
|
12
|
+
/**
|
|
13
|
+
* Resolve the configured base branch to something `git worktree add` can
|
|
14
|
+
* fork from: the local branch, its remote-tracking ref, or null — the caller
|
|
15
|
+
* falls back to the current branch with a note. Never throws.
|
|
16
|
+
*
|
|
17
|
+
* When BOTH the local branch and `origin/<base>` exist, prefer whichever is up
|
|
18
|
+
* to date. A stale LOCAL base (behind origin, because nothing fetched it into
|
|
19
|
+
* this worktree's repo) is the classic inflated-diff trap: the merge-base every
|
|
20
|
+
* diff is measured from collapses onto the stale tip, so all of the history
|
|
21
|
+
* merged into origin since then counts as the task's own changes — the phantom
|
|
22
|
+
* 142k-line diff. `origin/<base>` is the source of truth for a review base, so
|
|
23
|
+
* only keep the local ref when it is equal to or ahead of origin (unpushed base
|
|
24
|
+
* commits); otherwise use origin.
|
|
25
|
+
*
|
|
26
|
+
* This answers the question once, when the worktree is forked. The local ref
|
|
27
|
+
* goes stale AFTERWARDS too — agents fetch, they never pull — so every diff
|
|
28
|
+
* re-applies the same rule at read time through `freshestBaseRef`
|
|
29
|
+
* (`git-diff-base.ts`). Keep the two in agreement.
|
|
30
|
+
*/
|
|
31
|
+
export declare function resolveBaseRef(repoRoot: string, base: string): Promise<string | null>;
|
|
32
|
+
export declare function worktreePathFor(repoRoot: string, runId: string): string;
|
|
33
|
+
export interface WorktreeInfo {
|
|
34
|
+
path: string;
|
|
35
|
+
branch: string;
|
|
36
|
+
/** Branch name the worktree was forked from (commit sha when HEAD was detached). */
|
|
37
|
+
baseBranch: string;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Establish the task worktree idempotently. Besides the fresh
|
|
41
|
+
* `git worktree add -b` path, recover the two normal restart/deletion cases:
|
|
42
|
+
* reuse an already-registered task worktree, or reattach a surviving task
|
|
43
|
+
* branch after its directory/registration was removed. Existing non-empty
|
|
44
|
+
* unregistered paths are never deleted because they may hold recoverable
|
|
45
|
+
* uncommitted work.
|
|
46
|
+
*/
|
|
47
|
+
export declare function createWorktree(repoRoot: string, runId: string, baseBranch: string): Promise<WorktreeInfo>;
|
|
48
|
+
/**
|
|
49
|
+
* Best-effort on-disk size of a worktree directory in bytes, via POSIX
|
|
50
|
+
* `du -sk` (kibibytes → bytes). Returns `null` when `du` is unavailable —
|
|
51
|
+
* including all of Windows, where `du` is not a command — or on any error.
|
|
52
|
+
* Never throws and never blocks: worktree retention is count-based, so a null
|
|
53
|
+
* size only blanks the panel's size column, it does not affect reclamation.
|
|
54
|
+
*/
|
|
55
|
+
export declare function worktreeSizeBytes(path: string): Promise<number | null>;
|
|
56
|
+
/** Remove a task worktree and its branch. Best effort — never throws. */
|
|
57
|
+
export declare function removeWorktree(repoRoot: string, worktreePath: string, branch?: string): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Why an autosave commit happened. Only `periodic` is gated (behind
|
|
60
|
+
* `CEZ_AUTOSAVE=1`, #471) — the three flushes always run so the branch ends
|
|
61
|
+
* holding the finished state. Before this was recorded, all four wrote the bare
|
|
62
|
+
* message `cezar autosave`, so a user who had opted out of the periodic timer
|
|
63
|
+
* still saw `cezar autosave` in `git log` and reasonably concluded the opt-out
|
|
64
|
+
* was broken. Only commit *spacing* (~90 s ⇒ timer) told them apart.
|
|
65
|
+
*/
|
|
66
|
+
export type AutosaveReason = 'periodic' | 'turn end' | 'run finalize' | 'pre-PR';
|
|
67
|
+
/**
|
|
68
|
+
* What an autosave attempt did. `refused` and `failed` are distinct from
|
|
69
|
+
* `nothing-to-do` because one call site must act on them: the pre-PR flush is
|
|
70
|
+
* the *last* one, so anything other than `committed`/`nothing-to-do` there
|
|
71
|
+
* means the branch leaves the box without the run's final state and the user
|
|
72
|
+
* has to be told (see createDraftPr). A bare boolean could not carry that.
|
|
73
|
+
*/
|
|
74
|
+
export type AutosaveResult = 'committed' | 'nothing-to-do' | 'refused' | 'failed';
|
|
75
|
+
/**
|
|
76
|
+
* Stage and commit everything in the worktree as a "cezar autosave" commit
|
|
77
|
+
* (janitor pattern) — the agent's progress is always recoverable from the
|
|
78
|
+
* `cez/<id8>` branch history. Quietly a no-op when nothing changed.
|
|
79
|
+
*
|
|
80
|
+
* The message carries `reason` so the opt-in periodic timer and the always-on
|
|
81
|
+
* flushes are distinguishable in `git log`; the `cezar autosave` prefix is kept
|
|
82
|
+
* so existing log greps still match.
|
|
83
|
+
*
|
|
84
|
+
* Refuses to commit a worktree that is mid-merge or still carries conflict
|
|
85
|
+
* markers: the incident behind #471 was an autosave capturing a half-resolved
|
|
86
|
+
* merge, and a blind `git add -A` would do it again.
|
|
87
|
+
*/
|
|
88
|
+
export declare function autosaveCommit(dir: string, reason: AutosaveReason): Promise<AutosaveResult>;
|
|
89
|
+
/**
|
|
90
|
+
* "What did this task change": diff of the worktree (committed + uncommitted
|
|
91
|
+
* + untracked, via `add -N`) against the merge-base with its base branch —
|
|
92
|
+
* so the diff stays *this task's* changes even after the base moves on.
|
|
93
|
+
*
|
|
94
|
+
* Deliberately does NOT take the repointed-HEAD guard that `collectChanges`
|
|
95
|
+
* (#591) and `worktreeShortstat` (#751) resolve through
|
|
96
|
+
* `resolveTaskDiffBase` — this is the whole-branch anchor on purpose, for two
|
|
97
|
+
* reasons. Its text output is `GET /api/v1/runs/:id/diff`, a protected surface
|
|
98
|
+
* (BACKWARD_COMPATIBILITY.md §2), so narrowing it would silently change what
|
|
99
|
+
* every existing consumer reads. And its other caller, `settleSuccess`, asks
|
|
100
|
+
* only "is there anything here to review at all" — over-answering that parks a
|
|
101
|
+
* run at the review gate, which is recoverable, while under-answering would
|
|
102
|
+
* settle a run to `done` with work still in the tree. If a future change wants
|
|
103
|
+
* the narrow answer here, take it from `resolveTaskDiffBase` rather than
|
|
104
|
+
* re-deriving the rule a fourth time.
|
|
105
|
+
*/
|
|
106
|
+
export declare function worktreeDiff(worktreePath: string, baseBranch: string, cap?: number): Promise<string>;
|
|
107
|
+
/**
|
|
108
|
+
* `git diff --stat` version of `worktreeDiff` (spec 010 — the variant
|
|
109
|
+
* comparison columns). Same merge-base anchoring, and it stays whole-branch
|
|
110
|
+
* for a reason of its own: variants are sibling cezar worktrees, each on its
|
|
111
|
+
* own `cez/*` branch, and the column exists to compare their *committed* work
|
|
112
|
+
* against one another. Narrowing one variant to its uncommitted tree would
|
|
113
|
+
* make the comparison meaningless rather than more honest. Returns '' on any
|
|
114
|
+
* failure. (The task-diff rule the other surfaces follow: `git-diff-base.ts`.)
|
|
115
|
+
*/
|
|
116
|
+
export declare function worktreeDiffStat(worktreePath: string, baseBranch: string): Promise<string>;
|
|
117
|
+
/** Aggregate diff numbers (#389) — the shape stored on `RunRecord.diffStat`. */
|
|
118
|
+
export interface DiffStat {
|
|
119
|
+
adds: number;
|
|
120
|
+
dels: number;
|
|
121
|
+
files: number;
|
|
122
|
+
/** Set only when the numbers were narrowed to what this run did on a branch it checked
|
|
123
|
+
* out into its worktree, because HEAD had been repointed off the task's branch (#751).
|
|
124
|
+
* Absent — never `false` — on a normal run, so the persisted shape is unchanged for
|
|
125
|
+
* every task that behaved. */
|
|
126
|
+
repointed?: boolean;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Parse `git diff --shortstat` output — " 3 files changed, 10 insertions(+),
|
|
130
|
+
* 2 deletions(-)". Every part is optional: insertions-only and deletions-only
|
|
131
|
+
* diffs omit the other counter, and an empty diff prints nothing at all
|
|
132
|
+
* (→ all zeros). The wording is stable porcelain English — git does not
|
|
133
|
+
* localize `--shortstat` — so matching the words is safe.
|
|
134
|
+
*/
|
|
135
|
+
export declare function parseShortstat(s: string): DiffStat;
|
|
136
|
+
/**
|
|
137
|
+
* `git diff --shortstat` of the worktree vs its base (#389) — the numbers
|
|
138
|
+
* behind `RunRecord.diffStat`, which is what the sidebar quick list and the
|
|
139
|
+
* Tasks table show. Same intent-to-add as `worktreeDiff`, but the anchor comes
|
|
140
|
+
* from the shared `resolveTaskDiffBase` rule (`git-diff-base.ts`): pass the
|
|
141
|
+
* run's own `taskBranch` and `runStartedAt`, and a worktree whose HEAD was
|
|
142
|
+
* repointed onto another branch reports what this run did to that branch
|
|
143
|
+
* instead of claiming the branch's whole diff as this task's (#751 — the #591
|
|
144
|
+
* guard, on this surface). The same rule re-resolves a stale local base ref,
|
|
145
|
+
* so the number never counts upstream history the task merely forked from.
|
|
146
|
+
*
|
|
147
|
+
* `repointed: true` rides along on the returned stat exactly when that
|
|
148
|
+
* narrowing happened, so the UI can say why the number is what it is. Null on
|
|
149
|
+
* git failure (the caller notes it, never fails the run); an empty diff is a
|
|
150
|
+
* valid all-zero stat.
|
|
151
|
+
*/
|
|
152
|
+
export declare function worktreeShortstat(worktreePath: string, baseBranch: string, opts?: {
|
|
153
|
+
taskBranch?: string;
|
|
154
|
+
runStartedAt?: string;
|
|
155
|
+
}): Promise<DiffStat | null>;
|
|
156
|
+
/**
|
|
157
|
+
* Startup reconcile: `git worktree prune` + remove every directory under
|
|
158
|
+
* `.ai/cezar/worktrees/` whose run id is no longer in the store (and its
|
|
159
|
+
* branch). Returns the removed run ids for the boot log. Never throws.
|
|
160
|
+
*/
|
|
161
|
+
export declare function pruneOrphans(repoRoot: string, validIds: ReadonlySet<string>): Promise<string[]>;
|