@qodeca/xezar 0.10.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +810 -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 +71 -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 +597 -0
- package/dist/contract/health.d.ts +102 -0
- package/dist/contract/index.d.ts +16 -0
- package/dist/contract/index.js +1953 -0
- package/dist/contract/projects.d.ts +210 -0
- package/dist/contract/repo.d.ts +234 -0
- package/dist/contract/runs.d.ts +1527 -0
- package/dist/contract/skills.d.ts +234 -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 +115 -0
- package/dist/core/ask.js +256 -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 +65 -0
- package/dist/core/claude-cli-runner.js +479 -0
- package/dist/core/claude-cli-runner.js.map +1 -0
- package/dist/core/claude-model-catalog.d.ts +24 -0
- package/dist/core/claude-model-catalog.js +208 -0
- package/dist/core/claude-model-catalog.js.map +1 -0
- package/dist/core/claude-ui-mapper.d.ts +79 -0
- package/dist/core/claude-ui-mapper.js +597 -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 +109 -0
- package/dist/core/codex-ui-mapper.js +764 -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 +91 -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 +535 -0
- package/dist/core/opencode-server-runner.js.map +1 -0
- package/dist/core/opencode-ui-mapper.d.ts +111 -0
- package/dist/core/opencode-ui-mapper.js +668 -0
- package/dist/core/opencode-ui-mapper.js.map +1 -0
- package/dist/core/pi-runner.d.ts +24 -0
- package/dist/core/pi-runner.js +349 -0
- package/dist/core/pi-runner.js.map +1 -0
- package/dist/core/pi-ui-mapper.d.ts +34 -0
- package/dist/core/pi-ui-mapper.js +270 -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 +28 -0
- package/dist/core/runner-model-catalog.js +62 -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 +332 -0
- package/dist/core/ui-events.js +22 -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 +684 -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 +78 -0
- package/dist/release/manifests.js +57 -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 +33 -0
- package/dist/release/stable.js +50 -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/arm-repo-handle.d.ts +17 -0
- package/dist/runs/arm-repo-handle.js +24 -0
- package/dist/runs/arm-repo-handle.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 +490 -0
- package/dist/runs/store.js +1283 -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 +80 -0
- package/dist/runs/ui-event-sink.js +209 -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 +535 -0
- package/dist/server/forge/github.js +2544 -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 +267 -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 +192 -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 +13578 -0
- package/dist/server/server.js +5284 -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 +83 -0
- package/dist/server/ws.js +216 -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 +348 -0
- package/dist/server-install/platforms/macosx-ngrok.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps.d.ts +63 -0
- package/dist/server-install/platforms/ubuntu-vps.js +997 -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 +803 -0
- package/dist/workflows/run.js +3483 -0
- package/dist/workflows/run.js.map +1 -0
- package/dist/workflows/types.d.ts +145 -0
- package/dist/workflows/types.js +194 -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 +85 -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 +524 -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-CGskMvgc.js +1 -0
- package/web/dist/assets/arrow-down-G8adPhbu.js +1 -0
- package/web/dist/assets/arrow-left-BJsIW6A0.js +1 -0
- package/web/dist/assets/bundle-mjs-BT31bpU6.js +1 -0
- package/web/dist/assets/centered-state-B_V_Ai2h.js +43 -0
- package/web/dist/assets/chevron-right-CFzn-von.js +1 -0
- package/web/dist/assets/chunk-BO2N2NFS-DE6qKn3r.js +131 -0
- package/web/dist/assets/collapsible-B_8uYwHb.js +1 -0
- package/web/dist/assets/commit-list-C4Dv6vUL.js +1 -0
- package/web/dist/assets/compare-variants-SR2zZfZq.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-CbozNUJq.js +3 -0
- package/web/dist/assets/diff-stat-btAmKFJr.js +1 -0
- package/web/dist/assets/diff-view-BpFTcG3R.js +6 -0
- package/web/dist/assets/diff-woXpYk--.js +1 -0
- package/web/dist/assets/dropdown-menu-Z80KMInL.js +1 -0
- package/web/dist/assets/editable-title-wS5NWwob.js +1 -0
- package/web/dist/assets/ellipsis-vertical-Bmi2u2TG.js +1 -0
- package/web/dist/assets/engine-javascript-FQvzRocB.js +141 -0
- package/web/dist/assets/file-DKoYWRsv.js +1 -0
- package/web/dist/assets/folder-u01HScRT.js +1 -0
- package/web/dist/assets/git-toolbar-DZlZjTGz.js +1 -0
- package/web/dist/assets/github-CFURo9kf.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-C8DK1_sG.js +3 -0
- package/web/dist/assets/html-BY76lXLH.js +1 -0
- package/web/dist/assets/image-preview-BR3iIIhf.js +1 -0
- package/web/dist/assets/index-BcI5hug3.css +2 -0
- package/web/dist/assets/index-DlC81_GI.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-5FuCZDA4.js +2 -0
- package/web/dist/assets/markdown-BYOwaDjH.js +1 -0
- package/web/dist/assets/mermaid-GHXKKRXX-C4jxqUUb.js +1 -0
- package/web/dist/assets/new-task-form-BydHBbef.js +1 -0
- package/web/dist/assets/pill-vNzaaYxj.js +1 -0
- package/web/dist/assets/project-router-BbCzrHKs.js +1 -0
- package/web/dist/assets/prompt-templates-B7Fs2b1S.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-DGliez3E.js +1 -0
- package/web/dist/assets/repo-git-CJFDMauC.js +1 -0
- package/web/dist/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/web/dist/assets/run-diff-Bq9vkSNK.js +3 -0
- package/web/dist/assets/run-header-Cd8mSKBG.js +1 -0
- package/web/dist/assets/rust-Cfkwpbl8.js +1 -0
- package/web/dist/assets/search-x-69n_672Y.js +1 -0
- package/web/dist/assets/shellscript-CLZ0U2zV.js +1 -0
- package/web/dist/assets/skill-empty-hint-DTu0LzaJ.js +1 -0
- package/web/dist/assets/skills-Cs-auniL.js +1 -0
- package/web/dist/assets/skills-D4P-Hgey.js +1 -0
- package/web/dist/assets/sparkles-B8agSxBZ.js +1 -0
- package/web/dist/assets/sql-BsFa4tDR.js +1 -0
- package/web/dist/assets/square-terminal-Cf4Og6ct.js +1 -0
- package/web/dist/assets/tab-link-Cp2-CJS8.js +1 -0
- package/web/dist/assets/task-changes-DYgNXOyY.js +1 -0
- package/web/dist/assets/task-commits-BRpZSz1G.js +1 -0
- package/web/dist/assets/task-files-pKOwSyLh.js +2 -0
- package/web/dist/assets/task-thread-Bfyqqy-t.js +9 -0
- package/web/dist/assets/textarea--cpYshee.js +1 -0
- package/web/dist/assets/thread-loading-GyH2Atwo.js +1 -0
- package/web/dist/assets/toml-CcmNWLt0.js +1 -0
- package/web/dist/assets/trash-2--ZtrzUx3.js +1 -0
- package/web/dist/assets/triangle-alert-D5tJwRD2.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-SnwVxKOA.js +1 -0
- package/web/dist/assets/use-desktop-C31lOFUD.js +1 -0
- package/web/dist/assets/use-submit-shortcut-JY8M_MPL.js +1 -0
- package/web/dist/assets/utils-Bb8ohcr3.js +64 -0
- package/web/dist/assets/workflows-BmOehP-A.js +11 -0
- package/web/dist/assets/yaml-rwi0_p6S.js +1 -0
- package/web/dist/assets/zoomable-image-0G3IBXWC.js +1 -0
- package/web/dist/index.html +80 -0
- package/web/dist/xezar.svg +14 -0
|
@@ -0,0 +1,597 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* One issue or pull request, flattened for the cockpit (`ForgeItem` server-side).
|
|
4
|
+
* A protected shape — BACKWARD_COMPATIBILITY.md §2 forbids reshaping it.
|
|
5
|
+
*/
|
|
6
|
+
export declare const githubItemSchema: z.ZodObject<{
|
|
7
|
+
kind: z.ZodEnum<{
|
|
8
|
+
issue: "issue";
|
|
9
|
+
pr: "pr";
|
|
10
|
+
}>;
|
|
11
|
+
number: z.ZodNumber;
|
|
12
|
+
title: z.ZodString;
|
|
13
|
+
author: z.ZodString;
|
|
14
|
+
createdAt: z.ZodString;
|
|
15
|
+
labels: z.ZodArray<z.ZodString>;
|
|
16
|
+
body: z.ZodString;
|
|
17
|
+
url: z.ZodString;
|
|
18
|
+
comments: z.ZodNumber;
|
|
19
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
20
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
22
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
23
|
+
failing: "failing";
|
|
24
|
+
passing: "passing";
|
|
25
|
+
pending: "pending";
|
|
26
|
+
}>>>;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type GithubItem = z.infer<typeof githubItemSchema>;
|
|
29
|
+
/**
|
|
30
|
+
* `GET /api/v1/github` — the tab's issue + PR lists.
|
|
31
|
+
*
|
|
32
|
+
* NOT a discriminated union, unlike its siblings: `fetchGithub` always answers the full record and
|
|
33
|
+
* merely flips `available`, so an unavailable payload still carries `issues: []` / `prs: []`.
|
|
34
|
+
*/
|
|
35
|
+
export declare const githubDataSchema: z.ZodObject<{
|
|
36
|
+
available: z.ZodBoolean;
|
|
37
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
38
|
+
repo: z.ZodOptional<z.ZodString>;
|
|
39
|
+
syncedAt: z.ZodOptional<z.ZodString>;
|
|
40
|
+
issues: z.ZodArray<z.ZodObject<{
|
|
41
|
+
kind: z.ZodEnum<{
|
|
42
|
+
issue: "issue";
|
|
43
|
+
pr: "pr";
|
|
44
|
+
}>;
|
|
45
|
+
number: z.ZodNumber;
|
|
46
|
+
title: z.ZodString;
|
|
47
|
+
author: z.ZodString;
|
|
48
|
+
createdAt: z.ZodString;
|
|
49
|
+
labels: z.ZodArray<z.ZodString>;
|
|
50
|
+
body: z.ZodString;
|
|
51
|
+
url: z.ZodString;
|
|
52
|
+
comments: z.ZodNumber;
|
|
53
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
55
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
56
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
57
|
+
failing: "failing";
|
|
58
|
+
passing: "passing";
|
|
59
|
+
pending: "pending";
|
|
60
|
+
}>>>;
|
|
61
|
+
}, z.core.$strip>>;
|
|
62
|
+
prs: z.ZodArray<z.ZodObject<{
|
|
63
|
+
kind: z.ZodEnum<{
|
|
64
|
+
issue: "issue";
|
|
65
|
+
pr: "pr";
|
|
66
|
+
}>;
|
|
67
|
+
number: z.ZodNumber;
|
|
68
|
+
title: z.ZodString;
|
|
69
|
+
author: z.ZodString;
|
|
70
|
+
createdAt: z.ZodString;
|
|
71
|
+
labels: z.ZodArray<z.ZodString>;
|
|
72
|
+
body: z.ZodString;
|
|
73
|
+
url: z.ZodString;
|
|
74
|
+
comments: z.ZodNumber;
|
|
75
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
76
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
77
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
78
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
79
|
+
failing: "failing";
|
|
80
|
+
passing: "passing";
|
|
81
|
+
pending: "pending";
|
|
82
|
+
}>>>;
|
|
83
|
+
}, z.core.$strip>>;
|
|
84
|
+
labelColors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
export type GithubData = z.infer<typeof githubDataSchema>;
|
|
87
|
+
/**
|
|
88
|
+
* `GET /api/v1/github/checks?prs=…` (#664) — lazy PR checks glyphs, `number → glyph`. The list
|
|
89
|
+
* call no longer ships `statusCheckRollup`, so a row's glyph is hydrated here for the on-screen
|
|
90
|
+
* rows only. An absent number means "no checks / not found".
|
|
91
|
+
*/
|
|
92
|
+
export declare const githubChecksDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
93
|
+
available: z.ZodLiteral<true>;
|
|
94
|
+
checks: z.ZodRecord<z.ZodNumber, z.ZodNullable<z.ZodEnum<{
|
|
95
|
+
failing: "failing";
|
|
96
|
+
passing: "passing";
|
|
97
|
+
pending: "pending";
|
|
98
|
+
}>>>;
|
|
99
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
100
|
+
available: z.ZodLiteral<false>;
|
|
101
|
+
reason: z.ZodString;
|
|
102
|
+
}, z.core.$strip>], "available">;
|
|
103
|
+
export type GithubChecksData = z.infer<typeof githubChecksDataSchema>;
|
|
104
|
+
/**
|
|
105
|
+
* `GET /api/v1/github/search?kind=…&q=…&limit=…` (#730) — issues/PRs in ANY state.
|
|
106
|
+
*
|
|
107
|
+
* `GET /api/v1/github` lists the OPEN set only, and the tab's search is an in-memory filter over
|
|
108
|
+
* exactly that payload, so a closed or merged item is not "outside the fetched window" — it was
|
|
109
|
+
* never fetched, and nothing the user types can reach it. This is the cross-state lookup the tab
|
|
110
|
+
* falls back to.
|
|
111
|
+
*
|
|
112
|
+
* Not a discriminated union, like `githubDataSchema` and unlike `githubChecksDataSchema`: the
|
|
113
|
+
* driver always answers the full record and merely flips `available`, so an unavailable payload
|
|
114
|
+
* still carries `items: []`.
|
|
115
|
+
*/
|
|
116
|
+
export declare const githubSearchDataSchema: z.ZodObject<{
|
|
117
|
+
available: z.ZodBoolean;
|
|
118
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
119
|
+
items: z.ZodArray<z.ZodObject<{
|
|
120
|
+
kind: z.ZodEnum<{
|
|
121
|
+
issue: "issue";
|
|
122
|
+
pr: "pr";
|
|
123
|
+
}>;
|
|
124
|
+
number: z.ZodNumber;
|
|
125
|
+
title: z.ZodString;
|
|
126
|
+
author: z.ZodString;
|
|
127
|
+
createdAt: z.ZodString;
|
|
128
|
+
labels: z.ZodArray<z.ZodString>;
|
|
129
|
+
body: z.ZodString;
|
|
130
|
+
url: z.ZodString;
|
|
131
|
+
comments: z.ZodNumber;
|
|
132
|
+
isDraft: z.ZodOptional<z.ZodBoolean>;
|
|
133
|
+
additions: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
deletions: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
136
|
+
failing: "failing";
|
|
137
|
+
passing: "passing";
|
|
138
|
+
pending: "pending";
|
|
139
|
+
}>>>;
|
|
140
|
+
}, z.core.$strip>>;
|
|
141
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
labelColors: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
143
|
+
}, z.core.$strip>;
|
|
144
|
+
export type GithubSearchData = z.infer<typeof githubSearchDataSchema>;
|
|
145
|
+
/**
|
|
146
|
+
* Where a referenced PR or issue STANDS — the vocabulary a task's tracker chip paints.
|
|
147
|
+
*
|
|
148
|
+
* One flat enum rather than a per-kind union, because the chip renders one status and a union
|
|
149
|
+
* would make every consumer narrow on `kind` before it could pick a color. The kinds share no
|
|
150
|
+
* value on purpose: a closed PR (abandoned — red) and a closed issue (`completed` — done, violet)
|
|
151
|
+
* are opposite outcomes wearing the same English word, and collapsing them is how a merged-looking
|
|
152
|
+
* task turns out to have been dropped.
|
|
153
|
+
*
|
|
154
|
+
* PR values: `merged`, `closed` (closed WITHOUT merging), `draft`, `checks-pending`,
|
|
155
|
+
* `changes-requested`, `checks-failing`, `review-required`, `ready`. Issue values: `open`,
|
|
156
|
+
* `completed`, `not-planned`.
|
|
157
|
+
*
|
|
158
|
+
* Which one a PR gets is `derivePrReferenceStatus`'s ranking (server-side, and documented there):
|
|
159
|
+
* it answers "what is this waiting on right now", so it ranks by how FRESH a signal is rather
|
|
160
|
+
* than by how heavy a blocker it is — running checks mean a commit was just pushed, and a
|
|
161
|
+
* requested change the author has already pushed past is not what the PR is waiting on.
|
|
162
|
+
*
|
|
163
|
+
* `ready` is the honest reading of "nothing is blocking it here": open, not a draft, no failing or
|
|
164
|
+
* running checks, and no review the forge is still waiting on. It is NOT a mergeability probe —
|
|
165
|
+
* that is `githubPrMergeStateResponseSchema`, which costs a request per PR; this is one batched
|
|
166
|
+
* query for a whole table.
|
|
167
|
+
*/
|
|
168
|
+
export declare const referenceStatusSchema: z.ZodEnum<{
|
|
169
|
+
"changes-requested": "changes-requested";
|
|
170
|
+
"checks-failing": "checks-failing";
|
|
171
|
+
"checks-pending": "checks-pending";
|
|
172
|
+
closed: "closed";
|
|
173
|
+
completed: "completed";
|
|
174
|
+
draft: "draft";
|
|
175
|
+
merged: "merged";
|
|
176
|
+
"not-planned": "not-planned";
|
|
177
|
+
open: "open";
|
|
178
|
+
ready: "ready";
|
|
179
|
+
"review-required": "review-required";
|
|
180
|
+
}>;
|
|
181
|
+
export type ReferenceStatus = z.infer<typeof referenceStatusSchema>;
|
|
182
|
+
/**
|
|
183
|
+
* `GET /api/v1/github/ref-status?prs=…&issues=…` — batched status for the PR/issue chips a task
|
|
184
|
+
* table is painting. The additive sibling of `/github/checks`: same cache-behind-the-route shape,
|
|
185
|
+
* same in-payload degrade, same "absent number = nothing known" rule (an unknown or unreachable
|
|
186
|
+
* number is simply missing from the map, and its chip stays neutral).
|
|
187
|
+
*/
|
|
188
|
+
/**
|
|
189
|
+
* How many numbers of ONE kind a single `/github/ref-status` request may name — the route 400s
|
|
190
|
+
* past it, and the cockpit caps its batches to match.
|
|
191
|
+
*
|
|
192
|
+
* It lives in the contract because it is one: a client that believed a larger number would send
|
|
193
|
+
* requests the server rejects outright, costing every chip in the batch its status rather than
|
|
194
|
+
* just the tail. Two constants that must agree, in two packages, with nothing making them, is the
|
|
195
|
+
* drift this export exists to prevent.
|
|
196
|
+
*/
|
|
197
|
+
export declare const REFERENCE_STATUS_MAX = 100;
|
|
198
|
+
export declare const githubRefStatusDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
199
|
+
available: z.ZodLiteral<true>;
|
|
200
|
+
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
201
|
+
"changes-requested": "changes-requested";
|
|
202
|
+
"checks-failing": "checks-failing";
|
|
203
|
+
"checks-pending": "checks-pending";
|
|
204
|
+
closed: "closed";
|
|
205
|
+
completed: "completed";
|
|
206
|
+
draft: "draft";
|
|
207
|
+
merged: "merged";
|
|
208
|
+
"not-planned": "not-planned";
|
|
209
|
+
open: "open";
|
|
210
|
+
ready: "ready";
|
|
211
|
+
"review-required": "review-required";
|
|
212
|
+
}>>;
|
|
213
|
+
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
214
|
+
"changes-requested": "changes-requested";
|
|
215
|
+
"checks-failing": "checks-failing";
|
|
216
|
+
"checks-pending": "checks-pending";
|
|
217
|
+
closed: "closed";
|
|
218
|
+
completed: "completed";
|
|
219
|
+
draft: "draft";
|
|
220
|
+
merged: "merged";
|
|
221
|
+
"not-planned": "not-planned";
|
|
222
|
+
open: "open";
|
|
223
|
+
ready: "ready";
|
|
224
|
+
"review-required": "review-required";
|
|
225
|
+
}>>;
|
|
226
|
+
conflicts: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
227
|
+
recheckAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
229
|
+
available: z.ZodLiteral<false>;
|
|
230
|
+
reason: z.ZodString;
|
|
231
|
+
recheckAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
232
|
+
}, z.core.$strip>], "available">;
|
|
233
|
+
export type GithubRefStatusData = z.infer<typeof githubRefStatusDataSchema>;
|
|
234
|
+
/** One comment or PR review summary in an issue/PR thread (#499). */
|
|
235
|
+
export declare const githubCommentSchema: z.ZodObject<{
|
|
236
|
+
id: z.ZodNumber;
|
|
237
|
+
author: z.ZodString;
|
|
238
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
239
|
+
createdAt: z.ZodString;
|
|
240
|
+
body: z.ZodString;
|
|
241
|
+
kind: z.ZodEnum<{
|
|
242
|
+
comment: "comment";
|
|
243
|
+
review: "review";
|
|
244
|
+
}>;
|
|
245
|
+
reviewState: z.ZodOptional<z.ZodEnum<{
|
|
246
|
+
approved: "approved";
|
|
247
|
+
changes_requested: "changes_requested";
|
|
248
|
+
commented: "commented";
|
|
249
|
+
dismissed: "dismissed";
|
|
250
|
+
}>>;
|
|
251
|
+
url: z.ZodString;
|
|
252
|
+
}, z.core.$strip>;
|
|
253
|
+
export type GithubComment = z.infer<typeof githubCommentSchema>;
|
|
254
|
+
/**
|
|
255
|
+
* The timeline event kinds the thread renders (#525) — an allowlist, so an unknown GitHub event
|
|
256
|
+
* type is dropped server-side rather than reaching the client.
|
|
257
|
+
*/
|
|
258
|
+
export declare const githubTimelineEventKindSchema: z.ZodEnum<{
|
|
259
|
+
assigned: "assigned";
|
|
260
|
+
closed: "closed";
|
|
261
|
+
committed: "committed";
|
|
262
|
+
"cross-referenced": "cross-referenced";
|
|
263
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
264
|
+
labeled: "labeled";
|
|
265
|
+
merged: "merged";
|
|
266
|
+
renamed: "renamed";
|
|
267
|
+
reopened: "reopened";
|
|
268
|
+
unassigned: "unassigned";
|
|
269
|
+
unlabeled: "unlabeled";
|
|
270
|
+
}>;
|
|
271
|
+
export type GithubTimelineEventKind = z.infer<typeof githubTimelineEventKindSchema>;
|
|
272
|
+
/**
|
|
273
|
+
* One non-comment timeline row (#525). Deliberately a separate shape from `GithubComment` rather
|
|
274
|
+
* than a widened `kind`, which would break the client's narrowing.
|
|
275
|
+
*/
|
|
276
|
+
export declare const githubTimelineEventSchema: z.ZodObject<{
|
|
277
|
+
id: z.ZodString;
|
|
278
|
+
kind: z.ZodEnum<{
|
|
279
|
+
assigned: "assigned";
|
|
280
|
+
closed: "closed";
|
|
281
|
+
committed: "committed";
|
|
282
|
+
"cross-referenced": "cross-referenced";
|
|
283
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
284
|
+
labeled: "labeled";
|
|
285
|
+
merged: "merged";
|
|
286
|
+
renamed: "renamed";
|
|
287
|
+
reopened: "reopened";
|
|
288
|
+
unassigned: "unassigned";
|
|
289
|
+
unlabeled: "unlabeled";
|
|
290
|
+
}>;
|
|
291
|
+
actor: z.ZodString;
|
|
292
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
293
|
+
createdAt: z.ZodString;
|
|
294
|
+
url: z.ZodOptional<z.ZodString>;
|
|
295
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
296
|
+
message: z.ZodOptional<z.ZodString>;
|
|
297
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
298
|
+
failing: "failing";
|
|
299
|
+
passing: "passing";
|
|
300
|
+
pending: "pending";
|
|
301
|
+
}>>>;
|
|
302
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
303
|
+
name: z.ZodString;
|
|
304
|
+
color: z.ZodOptional<z.ZodString>;
|
|
305
|
+
}, z.core.$strip>>;
|
|
306
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
307
|
+
refNumber: z.ZodOptional<z.ZodNumber>;
|
|
308
|
+
refTitle: z.ZodOptional<z.ZodString>;
|
|
309
|
+
refIsPr: z.ZodOptional<z.ZodBoolean>;
|
|
310
|
+
}, z.core.$strip>;
|
|
311
|
+
export type GithubTimelineEvent = z.infer<typeof githubTimelineEventSchema>;
|
|
312
|
+
/**
|
|
313
|
+
* `GET /api/v1/github/comments/:kind/:number` — the full thread. Degrades to
|
|
314
|
+
* `{ available: false, reason }` like the list fetch, never an error.
|
|
315
|
+
*/
|
|
316
|
+
export declare const githubCommentsDataSchema: z.ZodObject<{
|
|
317
|
+
available: z.ZodBoolean;
|
|
318
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
319
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
320
|
+
id: z.ZodNumber;
|
|
321
|
+
author: z.ZodString;
|
|
322
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
323
|
+
createdAt: z.ZodString;
|
|
324
|
+
body: z.ZodString;
|
|
325
|
+
kind: z.ZodEnum<{
|
|
326
|
+
comment: "comment";
|
|
327
|
+
review: "review";
|
|
328
|
+
}>;
|
|
329
|
+
reviewState: z.ZodOptional<z.ZodEnum<{
|
|
330
|
+
approved: "approved";
|
|
331
|
+
changes_requested: "changes_requested";
|
|
332
|
+
commented: "commented";
|
|
333
|
+
dismissed: "dismissed";
|
|
334
|
+
}>>;
|
|
335
|
+
url: z.ZodString;
|
|
336
|
+
}, z.core.$strip>>;
|
|
337
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
338
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
339
|
+
id: z.ZodString;
|
|
340
|
+
kind: z.ZodEnum<{
|
|
341
|
+
assigned: "assigned";
|
|
342
|
+
closed: "closed";
|
|
343
|
+
committed: "committed";
|
|
344
|
+
"cross-referenced": "cross-referenced";
|
|
345
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
346
|
+
labeled: "labeled";
|
|
347
|
+
merged: "merged";
|
|
348
|
+
renamed: "renamed";
|
|
349
|
+
reopened: "reopened";
|
|
350
|
+
unassigned: "unassigned";
|
|
351
|
+
unlabeled: "unlabeled";
|
|
352
|
+
}>;
|
|
353
|
+
actor: z.ZodString;
|
|
354
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
355
|
+
createdAt: z.ZodString;
|
|
356
|
+
url: z.ZodOptional<z.ZodString>;
|
|
357
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
358
|
+
message: z.ZodOptional<z.ZodString>;
|
|
359
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
360
|
+
failing: "failing";
|
|
361
|
+
passing: "passing";
|
|
362
|
+
pending: "pending";
|
|
363
|
+
}>>>;
|
|
364
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
365
|
+
name: z.ZodString;
|
|
366
|
+
color: z.ZodOptional<z.ZodString>;
|
|
367
|
+
}, z.core.$strip>>;
|
|
368
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
369
|
+
refNumber: z.ZodOptional<z.ZodNumber>;
|
|
370
|
+
refTitle: z.ZodOptional<z.ZodString>;
|
|
371
|
+
refIsPr: z.ZodOptional<z.ZodBoolean>;
|
|
372
|
+
}, z.core.$strip>>>;
|
|
373
|
+
}, z.core.$strip>;
|
|
374
|
+
export type GithubCommentsData = z.infer<typeof githubCommentsDataSchema>;
|
|
375
|
+
export declare const githubMergeMethodSchema: z.ZodEnum<{
|
|
376
|
+
merge: "merge";
|
|
377
|
+
rebase: "rebase";
|
|
378
|
+
squash: "squash";
|
|
379
|
+
}>;
|
|
380
|
+
export type GithubMergeMethod = z.infer<typeof githubMergeMethodSchema>;
|
|
381
|
+
/** One check row of the merge panel. */
|
|
382
|
+
export declare const githubPrCheckSchema: z.ZodObject<{
|
|
383
|
+
name: z.ZodString;
|
|
384
|
+
state: z.ZodEnum<{
|
|
385
|
+
failing: "failing";
|
|
386
|
+
passing: "passing";
|
|
387
|
+
pending: "pending";
|
|
388
|
+
unknown: "unknown";
|
|
389
|
+
}>;
|
|
390
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
391
|
+
url: z.ZodOptional<z.ZodString>;
|
|
392
|
+
}, z.core.$strip>;
|
|
393
|
+
export type GithubPrCheck = z.infer<typeof githubPrCheckSchema>;
|
|
394
|
+
/** Everything the merge panel needs about one PR. */
|
|
395
|
+
export declare const githubPrMergeStateSchema: z.ZodObject<{
|
|
396
|
+
number: z.ZodNumber;
|
|
397
|
+
title: z.ZodString;
|
|
398
|
+
url: z.ZodString;
|
|
399
|
+
state: z.ZodEnum<{
|
|
400
|
+
closed: "closed";
|
|
401
|
+
merged: "merged";
|
|
402
|
+
open: "open";
|
|
403
|
+
}>;
|
|
404
|
+
isDraft: z.ZodBoolean;
|
|
405
|
+
headRef: z.ZodString;
|
|
406
|
+
baseRef: z.ZodString;
|
|
407
|
+
headSha: z.ZodString;
|
|
408
|
+
mergeable: z.ZodEnum<{
|
|
409
|
+
conflicting: "conflicting";
|
|
410
|
+
mergeable: "mergeable";
|
|
411
|
+
unknown: "unknown";
|
|
412
|
+
}>;
|
|
413
|
+
reviewDecision: z.ZodEnum<{
|
|
414
|
+
approved: "approved";
|
|
415
|
+
"changes-requested": "changes-requested";
|
|
416
|
+
"review-required": "review-required";
|
|
417
|
+
unknown: "unknown";
|
|
418
|
+
}>;
|
|
419
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
420
|
+
name: z.ZodString;
|
|
421
|
+
state: z.ZodEnum<{
|
|
422
|
+
failing: "failing";
|
|
423
|
+
passing: "passing";
|
|
424
|
+
pending: "pending";
|
|
425
|
+
unknown: "unknown";
|
|
426
|
+
}>;
|
|
427
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
428
|
+
url: z.ZodOptional<z.ZodString>;
|
|
429
|
+
}, z.core.$strip>>;
|
|
430
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
431
|
+
merge: "merge";
|
|
432
|
+
rebase: "rebase";
|
|
433
|
+
squash: "squash";
|
|
434
|
+
}>>;
|
|
435
|
+
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
436
|
+
merge: "merge";
|
|
437
|
+
rebase: "rebase";
|
|
438
|
+
squash: "squash";
|
|
439
|
+
}>>;
|
|
440
|
+
eligibility: z.ZodEnum<{
|
|
441
|
+
blocked: "blocked";
|
|
442
|
+
pending: "pending";
|
|
443
|
+
ready: "ready";
|
|
444
|
+
terminal: "terminal";
|
|
445
|
+
unauthorized: "unauthorized";
|
|
446
|
+
unknown: "unknown";
|
|
447
|
+
}>;
|
|
448
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
449
|
+
code: z.ZodString;
|
|
450
|
+
message: z.ZodString;
|
|
451
|
+
}, z.core.$strip>>;
|
|
452
|
+
canMerge: z.ZodBoolean;
|
|
453
|
+
canOverride: z.ZodBoolean;
|
|
454
|
+
}, z.core.$strip>;
|
|
455
|
+
export type GithubPrMergeState = z.infer<typeof githubPrMergeStateSchema>;
|
|
456
|
+
/** `GET /api/v1/github/prs/:number/merge-state` — 200 either way; the reason is the degrade. */
|
|
457
|
+
export declare const githubPrMergeStateResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
458
|
+
available: z.ZodLiteral<true>;
|
|
459
|
+
mergeState: z.ZodObject<{
|
|
460
|
+
number: z.ZodNumber;
|
|
461
|
+
title: z.ZodString;
|
|
462
|
+
url: z.ZodString;
|
|
463
|
+
state: z.ZodEnum<{
|
|
464
|
+
closed: "closed";
|
|
465
|
+
merged: "merged";
|
|
466
|
+
open: "open";
|
|
467
|
+
}>;
|
|
468
|
+
isDraft: z.ZodBoolean;
|
|
469
|
+
headRef: z.ZodString;
|
|
470
|
+
baseRef: z.ZodString;
|
|
471
|
+
headSha: z.ZodString;
|
|
472
|
+
mergeable: z.ZodEnum<{
|
|
473
|
+
conflicting: "conflicting";
|
|
474
|
+
mergeable: "mergeable";
|
|
475
|
+
unknown: "unknown";
|
|
476
|
+
}>;
|
|
477
|
+
reviewDecision: z.ZodEnum<{
|
|
478
|
+
approved: "approved";
|
|
479
|
+
"changes-requested": "changes-requested";
|
|
480
|
+
"review-required": "review-required";
|
|
481
|
+
unknown: "unknown";
|
|
482
|
+
}>;
|
|
483
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
484
|
+
name: z.ZodString;
|
|
485
|
+
state: z.ZodEnum<{
|
|
486
|
+
failing: "failing";
|
|
487
|
+
passing: "passing";
|
|
488
|
+
pending: "pending";
|
|
489
|
+
unknown: "unknown";
|
|
490
|
+
}>;
|
|
491
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
492
|
+
url: z.ZodOptional<z.ZodString>;
|
|
493
|
+
}, z.core.$strip>>;
|
|
494
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
495
|
+
merge: "merge";
|
|
496
|
+
rebase: "rebase";
|
|
497
|
+
squash: "squash";
|
|
498
|
+
}>>;
|
|
499
|
+
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
500
|
+
merge: "merge";
|
|
501
|
+
rebase: "rebase";
|
|
502
|
+
squash: "squash";
|
|
503
|
+
}>>;
|
|
504
|
+
eligibility: z.ZodEnum<{
|
|
505
|
+
blocked: "blocked";
|
|
506
|
+
pending: "pending";
|
|
507
|
+
ready: "ready";
|
|
508
|
+
terminal: "terminal";
|
|
509
|
+
unauthorized: "unauthorized";
|
|
510
|
+
unknown: "unknown";
|
|
511
|
+
}>;
|
|
512
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
513
|
+
code: z.ZodString;
|
|
514
|
+
message: z.ZodString;
|
|
515
|
+
}, z.core.$strip>>;
|
|
516
|
+
canMerge: z.ZodBoolean;
|
|
517
|
+
canOverride: z.ZodBoolean;
|
|
518
|
+
}, z.core.$strip>;
|
|
519
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
520
|
+
available: z.ZodLiteral<false>;
|
|
521
|
+
reason: z.ZodString;
|
|
522
|
+
}, z.core.$strip>], "available">;
|
|
523
|
+
export type GithubPrMergeStateResponse = z.infer<typeof githubPrMergeStateResponseSchema>;
|
|
524
|
+
/**
|
|
525
|
+
* `POST /api/v1/github/prs/:number/merge` — the 200 branch only. Every refusal (403/404/409/502)
|
|
526
|
+
* is an `ApiError`, so `merged` is pinned to `true` here rather than a boolean to re-check.
|
|
527
|
+
*/
|
|
528
|
+
export declare const githubMergeResponseSchema: z.ZodObject<{
|
|
529
|
+
merged: z.ZodLiteral<true>;
|
|
530
|
+
number: z.ZodNumber;
|
|
531
|
+
url: z.ZodString;
|
|
532
|
+
method: z.ZodEnum<{
|
|
533
|
+
merge: "merge";
|
|
534
|
+
rebase: "rebase";
|
|
535
|
+
squash: "squash";
|
|
536
|
+
}>;
|
|
537
|
+
mergeCommitSha: z.ZodOptional<z.ZodString>;
|
|
538
|
+
}, z.core.$strip>;
|
|
539
|
+
export type GithubMergeResponse = z.infer<typeof githubMergeResponseSchema>;
|
|
540
|
+
/** One changed file of a pull request's diff. */
|
|
541
|
+
export declare const githubPrChangeSchema: z.ZodObject<{
|
|
542
|
+
path: z.ZodString;
|
|
543
|
+
previousPath: z.ZodOptional<z.ZodString>;
|
|
544
|
+
status: z.ZodEnum<{
|
|
545
|
+
added: "added";
|
|
546
|
+
changed: "changed";
|
|
547
|
+
copied: "copied";
|
|
548
|
+
modified: "modified";
|
|
549
|
+
removed: "removed";
|
|
550
|
+
renamed: "renamed";
|
|
551
|
+
}>;
|
|
552
|
+
additions: z.ZodNumber;
|
|
553
|
+
deletions: z.ZodNumber;
|
|
554
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
555
|
+
patchUnavailableReason: z.ZodOptional<z.ZodEnum<{
|
|
556
|
+
binary: "binary";
|
|
557
|
+
"not-provided": "not-provided";
|
|
558
|
+
"too-large": "too-large";
|
|
559
|
+
}>>;
|
|
560
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
561
|
+
}, z.core.$strip>;
|
|
562
|
+
export type GithubPrChange = z.infer<typeof githubPrChangeSchema>;
|
|
563
|
+
/** `GET /api/v1/github/prs/:number/changes` — bounded, read-only PR file changes. */
|
|
564
|
+
export declare const githubPrChangesDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
565
|
+
available: z.ZodLiteral<true>;
|
|
566
|
+
number: z.ZodNumber;
|
|
567
|
+
headSha: z.ZodString;
|
|
568
|
+
files: z.ZodArray<z.ZodObject<{
|
|
569
|
+
path: z.ZodString;
|
|
570
|
+
previousPath: z.ZodOptional<z.ZodString>;
|
|
571
|
+
status: z.ZodEnum<{
|
|
572
|
+
added: "added";
|
|
573
|
+
changed: "changed";
|
|
574
|
+
copied: "copied";
|
|
575
|
+
modified: "modified";
|
|
576
|
+
removed: "removed";
|
|
577
|
+
renamed: "renamed";
|
|
578
|
+
}>;
|
|
579
|
+
additions: z.ZodNumber;
|
|
580
|
+
deletions: z.ZodNumber;
|
|
581
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
582
|
+
patchUnavailableReason: z.ZodOptional<z.ZodEnum<{
|
|
583
|
+
binary: "binary";
|
|
584
|
+
"not-provided": "not-provided";
|
|
585
|
+
"too-large": "too-large";
|
|
586
|
+
}>>;
|
|
587
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
588
|
+
}, z.core.$strip>>;
|
|
589
|
+
additions: z.ZodNumber;
|
|
590
|
+
deletions: z.ZodNumber;
|
|
591
|
+
truncated: z.ZodBoolean;
|
|
592
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
593
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
594
|
+
available: z.ZodLiteral<false>;
|
|
595
|
+
reason: z.ZodString;
|
|
596
|
+
}, z.core.$strip>], "available">;
|
|
597
|
+
export type GithubPrChangesData = z.infer<typeof githubPrChangesDataSchema>;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/** The agent backends a run can be dispatched to. */
|
|
3
|
+
export declare const runnerSchema: z.ZodEnum<{
|
|
4
|
+
claude: "claude";
|
|
5
|
+
codex: "codex";
|
|
6
|
+
opencode: "opencode";
|
|
7
|
+
pi: "pi";
|
|
8
|
+
}>;
|
|
9
|
+
export type Runner = z.infer<typeof runnerSchema>;
|
|
10
|
+
/** Git facts about the project root, or `null` when it is not a repository. */
|
|
11
|
+
export declare const repoInfoSchema: z.ZodObject<{
|
|
12
|
+
root: z.ZodString;
|
|
13
|
+
branch: z.ZodString;
|
|
14
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, z.core.$strip>;
|
|
16
|
+
export type RepoInfo = z.infer<typeof repoInfoSchema>;
|
|
17
|
+
/** One probed CLI behind the Tools menu. */
|
|
18
|
+
export declare const backendCheckSchema: z.ZodObject<{
|
|
19
|
+
name: z.ZodEnum<{
|
|
20
|
+
claude: "claude";
|
|
21
|
+
codex: "codex";
|
|
22
|
+
gh: "gh";
|
|
23
|
+
git: "git";
|
|
24
|
+
opencode: "opencode";
|
|
25
|
+
pi: "pi";
|
|
26
|
+
}>;
|
|
27
|
+
available: z.ZodBoolean;
|
|
28
|
+
version: z.ZodOptional<z.ZodString>;
|
|
29
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type BackendCheck = z.infer<typeof backendCheckSchema>;
|
|
32
|
+
export declare const forgeInfoSchema: z.ZodObject<{
|
|
33
|
+
kind: z.ZodLiteral<"github">;
|
|
34
|
+
available: z.ZodOptional<z.ZodBoolean>;
|
|
35
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ForgeInfo = z.infer<typeof forgeInfoSchema>;
|
|
38
|
+
/** Server-side feature switches the cockpit reads once at boot. */
|
|
39
|
+
export declare const capabilitiesSchema: z.ZodObject<{
|
|
40
|
+
localHandoff: z.ZodBoolean;
|
|
41
|
+
followups: z.ZodBoolean;
|
|
42
|
+
singleProject: z.ZodBoolean;
|
|
43
|
+
automations: z.ZodBoolean;
|
|
44
|
+
tokenMetrics: z.ZodBoolean;
|
|
45
|
+
tokenUsageMetrics: z.ZodBoolean;
|
|
46
|
+
costMetrics: z.ZodBoolean;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export type Capabilities = z.infer<typeof capabilitiesSchema>;
|
|
49
|
+
/**
|
|
50
|
+
* `GET /api/v1/health` — the CORS-open discovery endpoint (BACKWARD_COMPATIBILITY.md §2).
|
|
51
|
+
*
|
|
52
|
+
* Additive fields only: this is the most externally-depended-on JSON in the app.
|
|
53
|
+
*/
|
|
54
|
+
export declare const healthResponseSchema: z.ZodObject<{
|
|
55
|
+
version: z.ZodString;
|
|
56
|
+
latestVersion: z.ZodOptional<z.ZodString>;
|
|
57
|
+
repoRoot: z.ZodString;
|
|
58
|
+
repo: z.ZodNullable<z.ZodObject<{
|
|
59
|
+
root: z.ZodString;
|
|
60
|
+
branch: z.ZodString;
|
|
61
|
+
remote: z.ZodOptional<z.ZodString>;
|
|
62
|
+
}, z.core.$strip>>;
|
|
63
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
64
|
+
name: z.ZodEnum<{
|
|
65
|
+
claude: "claude";
|
|
66
|
+
codex: "codex";
|
|
67
|
+
gh: "gh";
|
|
68
|
+
git: "git";
|
|
69
|
+
opencode: "opencode";
|
|
70
|
+
pi: "pi";
|
|
71
|
+
}>;
|
|
72
|
+
available: z.ZodBoolean;
|
|
73
|
+
version: z.ZodOptional<z.ZodString>;
|
|
74
|
+
hint: z.ZodOptional<z.ZodString>;
|
|
75
|
+
}, z.core.$strip>>;
|
|
76
|
+
defaultRunner: z.ZodEnum<{
|
|
77
|
+
claude: "claude";
|
|
78
|
+
codex: "codex";
|
|
79
|
+
opencode: "opencode";
|
|
80
|
+
pi: "pi";
|
|
81
|
+
}>;
|
|
82
|
+
forge: z.ZodNullable<z.ZodObject<{
|
|
83
|
+
kind: z.ZodLiteral<"github">;
|
|
84
|
+
available: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
capabilities: z.ZodObject<{
|
|
88
|
+
localHandoff: z.ZodBoolean;
|
|
89
|
+
followups: z.ZodBoolean;
|
|
90
|
+
singleProject: z.ZodBoolean;
|
|
91
|
+
automations: z.ZodBoolean;
|
|
92
|
+
tokenMetrics: z.ZodBoolean;
|
|
93
|
+
tokenUsageMetrics: z.ZodBoolean;
|
|
94
|
+
costMetrics: z.ZodBoolean;
|
|
95
|
+
}, z.core.$strip>;
|
|
96
|
+
projects: z.ZodArray<z.ZodObject<{
|
|
97
|
+
id: z.ZodString;
|
|
98
|
+
name: z.ZodString;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
bootProject: z.ZodString;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
export type HealthResponse = z.infer<typeof healthResponseSchema>;
|