@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,104 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
/**
|
|
3
|
+
* SSE frame payloads — the only shapes in this contract that are NOT derived from a route.
|
|
4
|
+
*
|
|
5
|
+
* They are delivered over `text/event-stream` (`GET /api/v1/runs/:id/events`, `/api/v1/events`,
|
|
6
|
+
* `/api/v1/workspace/events`), which Hono types as a string body, so `InferResponseType` sees a
|
|
7
|
+
* stream of text and never the frame inside it. That makes the route-parity check in
|
|
8
|
+
* `contract-parity*.test.ts` inapplicable here — but it is no reason to hand-write the TYPE.
|
|
9
|
+
* These are zod like everything else, and `api-types.test.ts` still pins `RunEvent` against the
|
|
10
|
+
* server's own declaration, which is the closest thing to a route that exists for it.
|
|
11
|
+
*/
|
|
12
|
+
/**
|
|
13
|
+
* One line of a run transcript.
|
|
14
|
+
*
|
|
15
|
+
* Open by design: `type` is a plain string and unknown keys pass through, because the event
|
|
16
|
+
* vocabulary is an APPEND-ONLY on-disk format (BACKWARD_COMPATIBILITY.md §7) that old NDJSON
|
|
17
|
+
* recordings must keep replaying forever. Closing this schema would make a recording written by
|
|
18
|
+
* a newer cezar unreadable by an older one — the opposite of what the format promises.
|
|
19
|
+
*/
|
|
20
|
+
export declare const runEventSchema: z.ZodObject<{
|
|
21
|
+
seq: z.ZodNumber;
|
|
22
|
+
ts: z.ZodString;
|
|
23
|
+
stepId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodString;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
export type RunEvent = z.infer<typeof runEventSchema>;
|
|
27
|
+
/** Fixed protocol-level item count for one progressive transcript page. */
|
|
28
|
+
export declare const RUN_HISTORY_PAGE_ITEMS = 100;
|
|
29
|
+
export declare const runIdParamSchema: z.ZodObject<{
|
|
30
|
+
id: z.ZodString;
|
|
31
|
+
}, z.core.$strip>;
|
|
32
|
+
export type RunIdParam = z.infer<typeof runIdParamSchema>;
|
|
33
|
+
/** Opaque, short-lived cursor returned by the history API. */
|
|
34
|
+
export declare const runHistoryCursorSchema: z.ZodString;
|
|
35
|
+
export type RunHistoryCursor = z.infer<typeof runHistoryCursorSchema>;
|
|
36
|
+
/** Query accepted by the reverse-paged history endpoint. */
|
|
37
|
+
export declare const runHistoryQuerySchema: z.ZodObject<{
|
|
38
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
39
|
+
}, z.core.$strip>;
|
|
40
|
+
export type RunHistoryQuery = z.infer<typeof runHistoryQuerySchema>;
|
|
41
|
+
/** Additive resume controls for the existing per-run SSE endpoint. */
|
|
42
|
+
export declare const runEventsQuerySchema: z.ZodObject<{
|
|
43
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
44
|
+
afterSeq: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type RunEventsQuery = z.infer<typeof runEventsQuerySchema>;
|
|
47
|
+
/**
|
|
48
|
+
* Persisted history retains the append-only event vocabulary. The required envelope stays
|
|
49
|
+
* strict; additive payload keys remain open for newer protocol events, matching `RunEvent`.
|
|
50
|
+
* `z.any()` is deliberate here: Hono recursively rewrites `unknown` to its JSON union in a
|
|
51
|
+
* response type, making the schema wider than the route even though every value came from
|
|
52
|
+
* `JSON.parse`; `any` is stable on both sides while the required keys remain exact.
|
|
53
|
+
*/
|
|
54
|
+
export declare const runHistoryEventSchema: z.ZodObject<{
|
|
55
|
+
seq: z.ZodNumber;
|
|
56
|
+
ts: z.ZodString;
|
|
57
|
+
stepId: z.ZodOptional<z.ZodString>;
|
|
58
|
+
type: z.ZodString;
|
|
59
|
+
}, z.core.$catchall<z.ZodAny>>;
|
|
60
|
+
export type RunHistoryEvent = z.infer<typeof runHistoryEventSchema>;
|
|
61
|
+
export declare const runHistoryPageSchema: z.ZodObject<{
|
|
62
|
+
events: z.ZodArray<z.ZodObject<{
|
|
63
|
+
seq: z.ZodNumber;
|
|
64
|
+
ts: z.ZodString;
|
|
65
|
+
stepId: z.ZodOptional<z.ZodString>;
|
|
66
|
+
type: z.ZodString;
|
|
67
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
68
|
+
itemCount: z.ZodNumber;
|
|
69
|
+
olderCursor: z.ZodOptional<z.ZodString>;
|
|
70
|
+
newerCursor: z.ZodOptional<z.ZodString>;
|
|
71
|
+
liveCursor: z.ZodString;
|
|
72
|
+
asOfSeq: z.ZodNumber;
|
|
73
|
+
hasOlder: z.ZodBoolean;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type RunHistoryPage = z.infer<typeof runHistoryPageSchema>;
|
|
76
|
+
export declare const runHistoryContextSchema: z.ZodObject<{
|
|
77
|
+
contextEvents: z.ZodArray<z.ZodObject<{
|
|
78
|
+
seq: z.ZodNumber;
|
|
79
|
+
ts: z.ZodString;
|
|
80
|
+
stepId: z.ZodOptional<z.ZodString>;
|
|
81
|
+
type: z.ZodString;
|
|
82
|
+
}, z.core.$catchall<z.ZodAny>>>;
|
|
83
|
+
asOfSeq: z.ZodNumber;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export type RunHistoryContext = z.infer<typeof runHistoryContextSchema>;
|
|
86
|
+
/**
|
|
87
|
+
* One `checkout-progress` workspace frame (multi-project spec, step 4.3).
|
|
88
|
+
*
|
|
89
|
+
* `cloning` carries a single line of `git clone` output; `done` and `error` are terminal. The
|
|
90
|
+
* clone dialog renders `error` VERBATIM — a clone fails for reasons (auth, network, a mistyped
|
|
91
|
+
* repo) that only the server can name.
|
|
92
|
+
*/
|
|
93
|
+
export declare const checkoutProgressEventSchema: z.ZodObject<{
|
|
94
|
+
checkoutId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
name: z.ZodString;
|
|
96
|
+
phase: z.ZodEnum<{
|
|
97
|
+
cloning: "cloning";
|
|
98
|
+
done: "done";
|
|
99
|
+
error: "error";
|
|
100
|
+
}>;
|
|
101
|
+
line: z.ZodOptional<z.ZodString>;
|
|
102
|
+
error: z.ZodOptional<z.ZodString>;
|
|
103
|
+
}, z.core.$strip>;
|
|
104
|
+
export type CheckoutProgressEvent = z.infer<typeof checkoutProgressEventSchema>;
|
|
@@ -0,0 +1,556 @@
|
|
|
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
|
+
* Where a referenced PR or issue STANDS — the vocabulary a task's tracker chip paints.
|
|
106
|
+
*
|
|
107
|
+
* One flat enum rather than a per-kind union, because the chip renders one status and a union
|
|
108
|
+
* would make every consumer narrow on `kind` before it could pick a color. The kinds share no
|
|
109
|
+
* value on purpose: a closed PR (abandoned — red) and a closed issue (`completed` — done, violet)
|
|
110
|
+
* are opposite outcomes wearing the same English word, and collapsing them is how a merged-looking
|
|
111
|
+
* task turns out to have been dropped.
|
|
112
|
+
*
|
|
113
|
+
* PR values: `merged`, `closed` (closed WITHOUT merging), `draft`, `checks-pending`,
|
|
114
|
+
* `changes-requested`, `checks-failing`, `review-required`, `ready`. Issue values: `open`,
|
|
115
|
+
* `completed`, `not-planned`.
|
|
116
|
+
*
|
|
117
|
+
* Which one a PR gets is `derivePrReferenceStatus`'s ranking (server-side, and documented there):
|
|
118
|
+
* it answers "what is this waiting on right now", so it ranks by how FRESH a signal is rather
|
|
119
|
+
* than by how heavy a blocker it is — running checks mean a commit was just pushed, and a
|
|
120
|
+
* requested change the author has already pushed past is not what the PR is waiting on.
|
|
121
|
+
*
|
|
122
|
+
* `ready` is the honest reading of "nothing is blocking it here": open, not a draft, no failing or
|
|
123
|
+
* running checks, and no review the forge is still waiting on. It is NOT a mergeability probe —
|
|
124
|
+
* that is `githubPrMergeStateResponseSchema`, which costs a request per PR; this is one batched
|
|
125
|
+
* query for a whole table.
|
|
126
|
+
*/
|
|
127
|
+
export declare const referenceStatusSchema: z.ZodEnum<{
|
|
128
|
+
"changes-requested": "changes-requested";
|
|
129
|
+
"checks-failing": "checks-failing";
|
|
130
|
+
"checks-pending": "checks-pending";
|
|
131
|
+
closed: "closed";
|
|
132
|
+
completed: "completed";
|
|
133
|
+
draft: "draft";
|
|
134
|
+
merged: "merged";
|
|
135
|
+
"not-planned": "not-planned";
|
|
136
|
+
open: "open";
|
|
137
|
+
ready: "ready";
|
|
138
|
+
"review-required": "review-required";
|
|
139
|
+
}>;
|
|
140
|
+
export type ReferenceStatus = z.infer<typeof referenceStatusSchema>;
|
|
141
|
+
/**
|
|
142
|
+
* `GET /api/v1/github/ref-status?prs=…&issues=…` — batched status for the PR/issue chips a task
|
|
143
|
+
* table is painting. The additive sibling of `/github/checks`: same cache-behind-the-route shape,
|
|
144
|
+
* same in-payload degrade, same "absent number = nothing known" rule (an unknown or unreachable
|
|
145
|
+
* number is simply missing from the map, and its chip stays neutral).
|
|
146
|
+
*/
|
|
147
|
+
/**
|
|
148
|
+
* How many numbers of ONE kind a single `/github/ref-status` request may name — the route 400s
|
|
149
|
+
* past it, and the cockpit caps its batches to match.
|
|
150
|
+
*
|
|
151
|
+
* It lives in the contract because it is one: a client that believed a larger number would send
|
|
152
|
+
* requests the server rejects outright, costing every chip in the batch its status rather than
|
|
153
|
+
* just the tail. Two constants that must agree, in two packages, with nothing making them, is the
|
|
154
|
+
* drift this export exists to prevent.
|
|
155
|
+
*/
|
|
156
|
+
export declare const REFERENCE_STATUS_MAX = 100;
|
|
157
|
+
export declare const githubRefStatusDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
158
|
+
available: z.ZodLiteral<true>;
|
|
159
|
+
prs: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
160
|
+
"changes-requested": "changes-requested";
|
|
161
|
+
"checks-failing": "checks-failing";
|
|
162
|
+
"checks-pending": "checks-pending";
|
|
163
|
+
closed: "closed";
|
|
164
|
+
completed: "completed";
|
|
165
|
+
draft: "draft";
|
|
166
|
+
merged: "merged";
|
|
167
|
+
"not-planned": "not-planned";
|
|
168
|
+
open: "open";
|
|
169
|
+
ready: "ready";
|
|
170
|
+
"review-required": "review-required";
|
|
171
|
+
}>>;
|
|
172
|
+
issues: z.ZodRecord<z.ZodNumber, z.ZodEnum<{
|
|
173
|
+
"changes-requested": "changes-requested";
|
|
174
|
+
"checks-failing": "checks-failing";
|
|
175
|
+
"checks-pending": "checks-pending";
|
|
176
|
+
closed: "closed";
|
|
177
|
+
completed: "completed";
|
|
178
|
+
draft: "draft";
|
|
179
|
+
merged: "merged";
|
|
180
|
+
"not-planned": "not-planned";
|
|
181
|
+
open: "open";
|
|
182
|
+
ready: "ready";
|
|
183
|
+
"review-required": "review-required";
|
|
184
|
+
}>>;
|
|
185
|
+
conflicts: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
186
|
+
recheckAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
187
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
188
|
+
available: z.ZodLiteral<false>;
|
|
189
|
+
reason: z.ZodString;
|
|
190
|
+
recheckAfterMs: z.ZodNullable<z.ZodNumber>;
|
|
191
|
+
}, z.core.$strip>], "available">;
|
|
192
|
+
export type GithubRefStatusData = z.infer<typeof githubRefStatusDataSchema>;
|
|
193
|
+
/** One comment or PR review summary in an issue/PR thread (#499). */
|
|
194
|
+
export declare const githubCommentSchema: z.ZodObject<{
|
|
195
|
+
id: z.ZodNumber;
|
|
196
|
+
author: z.ZodString;
|
|
197
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
198
|
+
createdAt: z.ZodString;
|
|
199
|
+
body: z.ZodString;
|
|
200
|
+
kind: z.ZodEnum<{
|
|
201
|
+
comment: "comment";
|
|
202
|
+
review: "review";
|
|
203
|
+
}>;
|
|
204
|
+
reviewState: z.ZodOptional<z.ZodEnum<{
|
|
205
|
+
approved: "approved";
|
|
206
|
+
changes_requested: "changes_requested";
|
|
207
|
+
commented: "commented";
|
|
208
|
+
dismissed: "dismissed";
|
|
209
|
+
}>>;
|
|
210
|
+
url: z.ZodString;
|
|
211
|
+
}, z.core.$strip>;
|
|
212
|
+
export type GithubComment = z.infer<typeof githubCommentSchema>;
|
|
213
|
+
/**
|
|
214
|
+
* The timeline event kinds the thread renders (#525) — an allowlist, so an unknown GitHub event
|
|
215
|
+
* type is dropped server-side rather than reaching the client.
|
|
216
|
+
*/
|
|
217
|
+
export declare const githubTimelineEventKindSchema: z.ZodEnum<{
|
|
218
|
+
assigned: "assigned";
|
|
219
|
+
closed: "closed";
|
|
220
|
+
committed: "committed";
|
|
221
|
+
"cross-referenced": "cross-referenced";
|
|
222
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
223
|
+
labeled: "labeled";
|
|
224
|
+
merged: "merged";
|
|
225
|
+
renamed: "renamed";
|
|
226
|
+
reopened: "reopened";
|
|
227
|
+
unassigned: "unassigned";
|
|
228
|
+
unlabeled: "unlabeled";
|
|
229
|
+
}>;
|
|
230
|
+
export type GithubTimelineEventKind = z.infer<typeof githubTimelineEventKindSchema>;
|
|
231
|
+
/**
|
|
232
|
+
* One non-comment timeline row (#525). Deliberately a separate shape from `GithubComment` rather
|
|
233
|
+
* than a widened `kind`, which would break the client's narrowing.
|
|
234
|
+
*/
|
|
235
|
+
export declare const githubTimelineEventSchema: z.ZodObject<{
|
|
236
|
+
id: z.ZodString;
|
|
237
|
+
kind: z.ZodEnum<{
|
|
238
|
+
assigned: "assigned";
|
|
239
|
+
closed: "closed";
|
|
240
|
+
committed: "committed";
|
|
241
|
+
"cross-referenced": "cross-referenced";
|
|
242
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
243
|
+
labeled: "labeled";
|
|
244
|
+
merged: "merged";
|
|
245
|
+
renamed: "renamed";
|
|
246
|
+
reopened: "reopened";
|
|
247
|
+
unassigned: "unassigned";
|
|
248
|
+
unlabeled: "unlabeled";
|
|
249
|
+
}>;
|
|
250
|
+
actor: z.ZodString;
|
|
251
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
252
|
+
createdAt: z.ZodString;
|
|
253
|
+
url: z.ZodOptional<z.ZodString>;
|
|
254
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
255
|
+
message: z.ZodOptional<z.ZodString>;
|
|
256
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
257
|
+
failing: "failing";
|
|
258
|
+
passing: "passing";
|
|
259
|
+
pending: "pending";
|
|
260
|
+
}>>>;
|
|
261
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
262
|
+
name: z.ZodString;
|
|
263
|
+
color: z.ZodOptional<z.ZodString>;
|
|
264
|
+
}, z.core.$strip>>;
|
|
265
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
266
|
+
refNumber: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
refTitle: z.ZodOptional<z.ZodString>;
|
|
268
|
+
refIsPr: z.ZodOptional<z.ZodBoolean>;
|
|
269
|
+
}, z.core.$strip>;
|
|
270
|
+
export type GithubTimelineEvent = z.infer<typeof githubTimelineEventSchema>;
|
|
271
|
+
/**
|
|
272
|
+
* `GET /api/v1/github/comments/:kind/:number` — the full thread. Degrades to
|
|
273
|
+
* `{ available: false, reason }` like the list fetch, never an error.
|
|
274
|
+
*/
|
|
275
|
+
export declare const githubCommentsDataSchema: z.ZodObject<{
|
|
276
|
+
available: z.ZodBoolean;
|
|
277
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
278
|
+
comments: z.ZodArray<z.ZodObject<{
|
|
279
|
+
id: z.ZodNumber;
|
|
280
|
+
author: z.ZodString;
|
|
281
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
282
|
+
createdAt: z.ZodString;
|
|
283
|
+
body: z.ZodString;
|
|
284
|
+
kind: z.ZodEnum<{
|
|
285
|
+
comment: "comment";
|
|
286
|
+
review: "review";
|
|
287
|
+
}>;
|
|
288
|
+
reviewState: z.ZodOptional<z.ZodEnum<{
|
|
289
|
+
approved: "approved";
|
|
290
|
+
changes_requested: "changes_requested";
|
|
291
|
+
commented: "commented";
|
|
292
|
+
dismissed: "dismissed";
|
|
293
|
+
}>>;
|
|
294
|
+
url: z.ZodString;
|
|
295
|
+
}, z.core.$strip>>;
|
|
296
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
297
|
+
events: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
298
|
+
id: z.ZodString;
|
|
299
|
+
kind: z.ZodEnum<{
|
|
300
|
+
assigned: "assigned";
|
|
301
|
+
closed: "closed";
|
|
302
|
+
committed: "committed";
|
|
303
|
+
"cross-referenced": "cross-referenced";
|
|
304
|
+
head_ref_force_pushed: "head_ref_force_pushed";
|
|
305
|
+
labeled: "labeled";
|
|
306
|
+
merged: "merged";
|
|
307
|
+
renamed: "renamed";
|
|
308
|
+
reopened: "reopened";
|
|
309
|
+
unassigned: "unassigned";
|
|
310
|
+
unlabeled: "unlabeled";
|
|
311
|
+
}>;
|
|
312
|
+
actor: z.ZodString;
|
|
313
|
+
avatarUrl: z.ZodOptional<z.ZodString>;
|
|
314
|
+
createdAt: z.ZodString;
|
|
315
|
+
url: z.ZodOptional<z.ZodString>;
|
|
316
|
+
sha: z.ZodOptional<z.ZodString>;
|
|
317
|
+
message: z.ZodOptional<z.ZodString>;
|
|
318
|
+
checks: z.ZodOptional<z.ZodNullable<z.ZodEnum<{
|
|
319
|
+
failing: "failing";
|
|
320
|
+
passing: "passing";
|
|
321
|
+
pending: "pending";
|
|
322
|
+
}>>>;
|
|
323
|
+
label: z.ZodOptional<z.ZodObject<{
|
|
324
|
+
name: z.ZodString;
|
|
325
|
+
color: z.ZodOptional<z.ZodString>;
|
|
326
|
+
}, z.core.$strip>>;
|
|
327
|
+
subject: z.ZodOptional<z.ZodString>;
|
|
328
|
+
refNumber: z.ZodOptional<z.ZodNumber>;
|
|
329
|
+
refTitle: z.ZodOptional<z.ZodString>;
|
|
330
|
+
refIsPr: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
}, z.core.$strip>>>;
|
|
332
|
+
}, z.core.$strip>;
|
|
333
|
+
export type GithubCommentsData = z.infer<typeof githubCommentsDataSchema>;
|
|
334
|
+
export declare const githubMergeMethodSchema: z.ZodEnum<{
|
|
335
|
+
merge: "merge";
|
|
336
|
+
rebase: "rebase";
|
|
337
|
+
squash: "squash";
|
|
338
|
+
}>;
|
|
339
|
+
export type GithubMergeMethod = z.infer<typeof githubMergeMethodSchema>;
|
|
340
|
+
/** One check row of the merge panel. */
|
|
341
|
+
export declare const githubPrCheckSchema: z.ZodObject<{
|
|
342
|
+
name: z.ZodString;
|
|
343
|
+
state: z.ZodEnum<{
|
|
344
|
+
failing: "failing";
|
|
345
|
+
passing: "passing";
|
|
346
|
+
pending: "pending";
|
|
347
|
+
unknown: "unknown";
|
|
348
|
+
}>;
|
|
349
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
350
|
+
url: z.ZodOptional<z.ZodString>;
|
|
351
|
+
}, z.core.$strip>;
|
|
352
|
+
export type GithubPrCheck = z.infer<typeof githubPrCheckSchema>;
|
|
353
|
+
/** Everything the merge panel needs about one PR. */
|
|
354
|
+
export declare const githubPrMergeStateSchema: z.ZodObject<{
|
|
355
|
+
number: z.ZodNumber;
|
|
356
|
+
title: z.ZodString;
|
|
357
|
+
url: z.ZodString;
|
|
358
|
+
state: z.ZodEnum<{
|
|
359
|
+
closed: "closed";
|
|
360
|
+
merged: "merged";
|
|
361
|
+
open: "open";
|
|
362
|
+
}>;
|
|
363
|
+
isDraft: z.ZodBoolean;
|
|
364
|
+
headRef: z.ZodString;
|
|
365
|
+
baseRef: z.ZodString;
|
|
366
|
+
headSha: z.ZodString;
|
|
367
|
+
mergeable: z.ZodEnum<{
|
|
368
|
+
conflicting: "conflicting";
|
|
369
|
+
mergeable: "mergeable";
|
|
370
|
+
unknown: "unknown";
|
|
371
|
+
}>;
|
|
372
|
+
reviewDecision: z.ZodEnum<{
|
|
373
|
+
approved: "approved";
|
|
374
|
+
"changes-requested": "changes-requested";
|
|
375
|
+
"review-required": "review-required";
|
|
376
|
+
unknown: "unknown";
|
|
377
|
+
}>;
|
|
378
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
379
|
+
name: z.ZodString;
|
|
380
|
+
state: z.ZodEnum<{
|
|
381
|
+
failing: "failing";
|
|
382
|
+
passing: "passing";
|
|
383
|
+
pending: "pending";
|
|
384
|
+
unknown: "unknown";
|
|
385
|
+
}>;
|
|
386
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
387
|
+
url: z.ZodOptional<z.ZodString>;
|
|
388
|
+
}, z.core.$strip>>;
|
|
389
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
390
|
+
merge: "merge";
|
|
391
|
+
rebase: "rebase";
|
|
392
|
+
squash: "squash";
|
|
393
|
+
}>>;
|
|
394
|
+
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
395
|
+
merge: "merge";
|
|
396
|
+
rebase: "rebase";
|
|
397
|
+
squash: "squash";
|
|
398
|
+
}>>;
|
|
399
|
+
eligibility: z.ZodEnum<{
|
|
400
|
+
blocked: "blocked";
|
|
401
|
+
pending: "pending";
|
|
402
|
+
ready: "ready";
|
|
403
|
+
terminal: "terminal";
|
|
404
|
+
unauthorized: "unauthorized";
|
|
405
|
+
unknown: "unknown";
|
|
406
|
+
}>;
|
|
407
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
408
|
+
code: z.ZodString;
|
|
409
|
+
message: z.ZodString;
|
|
410
|
+
}, z.core.$strip>>;
|
|
411
|
+
canMerge: z.ZodBoolean;
|
|
412
|
+
canOverride: z.ZodBoolean;
|
|
413
|
+
}, z.core.$strip>;
|
|
414
|
+
export type GithubPrMergeState = z.infer<typeof githubPrMergeStateSchema>;
|
|
415
|
+
/** `GET /api/v1/github/prs/:number/merge-state` — 200 either way; the reason is the degrade. */
|
|
416
|
+
export declare const githubPrMergeStateResponseSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
417
|
+
available: z.ZodLiteral<true>;
|
|
418
|
+
mergeState: z.ZodObject<{
|
|
419
|
+
number: z.ZodNumber;
|
|
420
|
+
title: z.ZodString;
|
|
421
|
+
url: z.ZodString;
|
|
422
|
+
state: z.ZodEnum<{
|
|
423
|
+
closed: "closed";
|
|
424
|
+
merged: "merged";
|
|
425
|
+
open: "open";
|
|
426
|
+
}>;
|
|
427
|
+
isDraft: z.ZodBoolean;
|
|
428
|
+
headRef: z.ZodString;
|
|
429
|
+
baseRef: z.ZodString;
|
|
430
|
+
headSha: z.ZodString;
|
|
431
|
+
mergeable: z.ZodEnum<{
|
|
432
|
+
conflicting: "conflicting";
|
|
433
|
+
mergeable: "mergeable";
|
|
434
|
+
unknown: "unknown";
|
|
435
|
+
}>;
|
|
436
|
+
reviewDecision: z.ZodEnum<{
|
|
437
|
+
approved: "approved";
|
|
438
|
+
"changes-requested": "changes-requested";
|
|
439
|
+
"review-required": "review-required";
|
|
440
|
+
unknown: "unknown";
|
|
441
|
+
}>;
|
|
442
|
+
checks: z.ZodArray<z.ZodObject<{
|
|
443
|
+
name: z.ZodString;
|
|
444
|
+
state: z.ZodEnum<{
|
|
445
|
+
failing: "failing";
|
|
446
|
+
passing: "passing";
|
|
447
|
+
pending: "pending";
|
|
448
|
+
unknown: "unknown";
|
|
449
|
+
}>;
|
|
450
|
+
required: z.ZodNullable<z.ZodBoolean>;
|
|
451
|
+
url: z.ZodOptional<z.ZodString>;
|
|
452
|
+
}, z.core.$strip>>;
|
|
453
|
+
methods: z.ZodArray<z.ZodEnum<{
|
|
454
|
+
merge: "merge";
|
|
455
|
+
rebase: "rebase";
|
|
456
|
+
squash: "squash";
|
|
457
|
+
}>>;
|
|
458
|
+
defaultMethod: z.ZodNullable<z.ZodEnum<{
|
|
459
|
+
merge: "merge";
|
|
460
|
+
rebase: "rebase";
|
|
461
|
+
squash: "squash";
|
|
462
|
+
}>>;
|
|
463
|
+
eligibility: z.ZodEnum<{
|
|
464
|
+
blocked: "blocked";
|
|
465
|
+
pending: "pending";
|
|
466
|
+
ready: "ready";
|
|
467
|
+
terminal: "terminal";
|
|
468
|
+
unauthorized: "unauthorized";
|
|
469
|
+
unknown: "unknown";
|
|
470
|
+
}>;
|
|
471
|
+
blockers: z.ZodArray<z.ZodObject<{
|
|
472
|
+
code: z.ZodString;
|
|
473
|
+
message: z.ZodString;
|
|
474
|
+
}, z.core.$strip>>;
|
|
475
|
+
canMerge: z.ZodBoolean;
|
|
476
|
+
canOverride: z.ZodBoolean;
|
|
477
|
+
}, z.core.$strip>;
|
|
478
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
479
|
+
available: z.ZodLiteral<false>;
|
|
480
|
+
reason: z.ZodString;
|
|
481
|
+
}, z.core.$strip>], "available">;
|
|
482
|
+
export type GithubPrMergeStateResponse = z.infer<typeof githubPrMergeStateResponseSchema>;
|
|
483
|
+
/**
|
|
484
|
+
* `POST /api/v1/github/prs/:number/merge` — the 200 branch only. Every refusal (403/404/409/502)
|
|
485
|
+
* is an `ApiError`, so `merged` is pinned to `true` here rather than a boolean to re-check.
|
|
486
|
+
*/
|
|
487
|
+
export declare const githubMergeResponseSchema: z.ZodObject<{
|
|
488
|
+
merged: z.ZodLiteral<true>;
|
|
489
|
+
number: z.ZodNumber;
|
|
490
|
+
url: z.ZodString;
|
|
491
|
+
method: z.ZodEnum<{
|
|
492
|
+
merge: "merge";
|
|
493
|
+
rebase: "rebase";
|
|
494
|
+
squash: "squash";
|
|
495
|
+
}>;
|
|
496
|
+
mergeCommitSha: z.ZodOptional<z.ZodString>;
|
|
497
|
+
}, z.core.$strip>;
|
|
498
|
+
export type GithubMergeResponse = z.infer<typeof githubMergeResponseSchema>;
|
|
499
|
+
/** One changed file of a pull request's diff. */
|
|
500
|
+
export declare const githubPrChangeSchema: z.ZodObject<{
|
|
501
|
+
path: z.ZodString;
|
|
502
|
+
previousPath: z.ZodOptional<z.ZodString>;
|
|
503
|
+
status: z.ZodEnum<{
|
|
504
|
+
added: "added";
|
|
505
|
+
changed: "changed";
|
|
506
|
+
copied: "copied";
|
|
507
|
+
modified: "modified";
|
|
508
|
+
removed: "removed";
|
|
509
|
+
renamed: "renamed";
|
|
510
|
+
}>;
|
|
511
|
+
additions: z.ZodNumber;
|
|
512
|
+
deletions: z.ZodNumber;
|
|
513
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
514
|
+
patchUnavailableReason: z.ZodOptional<z.ZodEnum<{
|
|
515
|
+
binary: "binary";
|
|
516
|
+
"not-provided": "not-provided";
|
|
517
|
+
"too-large": "too-large";
|
|
518
|
+
}>>;
|
|
519
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
520
|
+
}, z.core.$strip>;
|
|
521
|
+
export type GithubPrChange = z.infer<typeof githubPrChangeSchema>;
|
|
522
|
+
/** `GET /api/v1/github/prs/:number/changes` — bounded, read-only PR file changes. */
|
|
523
|
+
export declare const githubPrChangesDataSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
524
|
+
available: z.ZodLiteral<true>;
|
|
525
|
+
number: z.ZodNumber;
|
|
526
|
+
headSha: z.ZodString;
|
|
527
|
+
files: z.ZodArray<z.ZodObject<{
|
|
528
|
+
path: z.ZodString;
|
|
529
|
+
previousPath: z.ZodOptional<z.ZodString>;
|
|
530
|
+
status: z.ZodEnum<{
|
|
531
|
+
added: "added";
|
|
532
|
+
changed: "changed";
|
|
533
|
+
copied: "copied";
|
|
534
|
+
modified: "modified";
|
|
535
|
+
removed: "removed";
|
|
536
|
+
renamed: "renamed";
|
|
537
|
+
}>;
|
|
538
|
+
additions: z.ZodNumber;
|
|
539
|
+
deletions: z.ZodNumber;
|
|
540
|
+
patch: z.ZodOptional<z.ZodString>;
|
|
541
|
+
patchUnavailableReason: z.ZodOptional<z.ZodEnum<{
|
|
542
|
+
binary: "binary";
|
|
543
|
+
"not-provided": "not-provided";
|
|
544
|
+
"too-large": "too-large";
|
|
545
|
+
}>>;
|
|
546
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
547
|
+
}, z.core.$strip>>;
|
|
548
|
+
additions: z.ZodNumber;
|
|
549
|
+
deletions: z.ZodNumber;
|
|
550
|
+
truncated: z.ZodBoolean;
|
|
551
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
552
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
553
|
+
available: z.ZodLiteral<false>;
|
|
554
|
+
reason: z.ZodString;
|
|
555
|
+
}, z.core.$strip>], "available">;
|
|
556
|
+
export type GithubPrChangesData = z.infer<typeof githubPrChangesDataSchema>;
|