@hearsay-tools/squawk 0.0.0-stage → 0.17.0-dev.5685
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 +22 -0
- package/README.md +1846 -2
- package/dist/activity/demand.d.ts +21 -0
- package/dist/activity/demand.js +49 -0
- package/dist/activity/demand.js.map +1 -0
- package/dist/activity/publisher.d.ts +48 -0
- package/dist/activity/publisher.js +175 -0
- package/dist/activity/publisher.js.map +1 -0
- package/dist/activity/read-model.d.ts +50 -0
- package/dist/activity/read-model.js +143 -0
- package/dist/activity/read-model.js.map +1 -0
- package/dist/activity/requests.d.ts +27 -0
- package/dist/activity/requests.js +81 -0
- package/dist/activity/requests.js.map +1 -0
- package/dist/activity/text.d.ts +4 -0
- package/dist/activity/text.js +13 -0
- package/dist/activity/text.js.map +1 -0
- package/dist/activity/tool-activity.d.ts +87 -0
- package/dist/activity/tool-activity.js +250 -0
- package/dist/activity/tool-activity.js.map +1 -0
- package/dist/activity/wait.d.ts +19 -0
- package/dist/activity/wait.js +91 -0
- package/dist/activity/wait.js.map +1 -0
- package/dist/agent-config/account-identity.d.ts +28 -0
- package/dist/agent-config/account-identity.js +132 -0
- package/dist/agent-config/account-identity.js.map +1 -0
- package/dist/agent-config/catalog.d.ts +70 -0
- package/dist/agent-config/catalog.js +384 -0
- package/dist/agent-config/catalog.js.map +1 -0
- package/dist/agent-config/files.d.ts +42 -0
- package/dist/agent-config/files.js +115 -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 +2 -0
- package/dist/agent-config/model-settings/pi.js +38 -0
- package/dist/agent-config/model-settings/pi.js.map +1 -0
- package/dist/agent-config/model-settings/shared.d.ts +12 -0
- package/dist/agent-config/model-settings/shared.js +100 -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 +40 -0
- package/dist/agent-config/models.js.map +1 -0
- package/dist/agent-config/seed.d.ts +15 -0
- package/dist/agent-config/seed.js +94 -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 +73 -0
- package/dist/agent-config/service.js.map +1 -0
- package/dist/agent-config/validate.d.ts +18 -0
- package/dist/agent-config/validate.js +82 -0
- package/dist/agent-config/validate.js.map +1 -0
- package/dist/application-update/bin-recovery.d.ts +5 -0
- package/dist/application-update/bin-recovery.js +96 -0
- package/dist/application-update/bin-recovery.js.map +1 -0
- package/dist/application-update/discovery.d.ts +23 -0
- package/dist/application-update/discovery.js +131 -0
- package/dist/application-update/discovery.js.map +1 -0
- package/dist/application-update/helper.d.ts +58 -0
- package/dist/application-update/helper.js +363 -0
- package/dist/application-update/helper.js.map +1 -0
- package/dist/application-update/launcher.d.ts +12 -0
- package/dist/application-update/launcher.js +61 -0
- package/dist/application-update/launcher.js.map +1 -0
- package/dist/application-update/lock.d.ts +4 -0
- package/dist/application-update/lock.js +70 -0
- package/dist/application-update/lock.js.map +1 -0
- package/dist/application-update/npm-process.d.ts +17 -0
- package/dist/application-update/npm-process.js +156 -0
- package/dist/application-update/npm-process.js.map +1 -0
- package/dist/application-update/runtime-layout.d.ts +20 -0
- package/dist/application-update/runtime-layout.js +91 -0
- package/dist/application-update/runtime-layout.js.map +1 -0
- package/dist/application-update/scoped-recovery.d.ts +32 -0
- package/dist/application-update/scoped-recovery.js +210 -0
- package/dist/application-update/scoped-recovery.js.map +1 -0
- package/dist/application-update/service.d.ts +86 -0
- package/dist/application-update/service.js +523 -0
- package/dist/application-update/service.js.map +1 -0
- package/dist/archive-on-merge-setting.d.ts +15 -0
- package/dist/archive-on-merge-setting.js +15 -0
- package/dist/archive-on-merge-setting.js.map +1 -0
- package/dist/artifacts/cli.d.ts +1 -0
- package/dist/artifacts/cli.js +54 -0
- package/dist/artifacts/cli.js.map +1 -0
- package/dist/artifacts/lifecycle.d.ts +4 -0
- package/dist/artifacts/lifecycle.js +42 -0
- package/dist/artifacts/lifecycle.js.map +1 -0
- package/dist/artifacts/reports-index.d.ts +46 -0
- package/dist/artifacts/reports-index.js +279 -0
- package/dist/artifacts/reports-index.js.map +1 -0
- package/dist/artifacts/reports-watch.d.ts +43 -0
- package/dist/artifacts/reports-watch.js +129 -0
- package/dist/artifacts/reports-watch.js.map +1 -0
- package/dist/artifacts/resolve.d.ts +18 -0
- package/dist/artifacts/resolve.js +129 -0
- package/dist/artifacts/resolve.js.map +1 -0
- package/dist/artifacts/store.d.ts +40 -0
- package/dist/artifacts/store.js +513 -0
- package/dist/artifacts/store.js.map +1 -0
- package/dist/automations/automation-cli.d.ts +61 -0
- package/dist/automations/automation-cli.js +519 -0
- package/dist/automations/automation-cli.js.map +1 -0
- package/dist/automations/builtin-skill.d.ts +7 -0
- package/dist/automations/builtin-skill.js +14 -0
- package/dist/automations/builtin-skill.js.map +1 -0
- package/dist/automations/coordinator.d.ts +53 -0
- package/dist/automations/coordinator.js +136 -0
- package/dist/automations/coordinator.js.map +1 -0
- package/dist/automations/github-baseline.d.ts +3 -0
- package/dist/automations/github-baseline.js +17 -0
- package/dist/automations/github-baseline.js.map +1 -0
- package/dist/automations/github-poller.d.ts +93 -0
- package/dist/automations/github-poller.js +303 -0
- package/dist/automations/github-poller.js.map +1 -0
- package/dist/automations/project-files.d.ts +6 -0
- package/dist/automations/project-files.js +43 -0
- package/dist/automations/project-files.js.map +1 -0
- package/dist/automations/prompts.d.ts +12 -0
- package/dist/automations/prompts.js +162 -0
- package/dist/automations/prompts.js.map +1 -0
- package/dist/automations/schedule-runner.d.ts +153 -0
- package/dist/automations/schedule-runner.js +529 -0
- package/dist/automations/schedule-runner.js.map +1 -0
- package/dist/automations/scheduler.d.ts +95 -0
- package/dist/automations/scheduler.js +462 -0
- package/dist/automations/scheduler.js.map +1 -0
- package/dist/automations/service.d.ts +793 -0
- package/dist/automations/service.js +444 -0
- package/dist/automations/service.js.map +1 -0
- package/dist/automations/store.d.ts +168 -0
- package/dist/automations/store.js +805 -0
- package/dist/automations/store.js.map +1 -0
- package/dist/automations/task-template.d.ts +59 -0
- package/dist/automations/task-template.js +285 -0
- package/dist/automations/task-template.js.map +1 -0
- package/dist/automations/tool-adapter.d.ts +6 -0
- package/dist/automations/tool-adapter.js +115 -0
- package/dist/automations/tool-adapter.js.map +1 -0
- package/dist/automations/types.d.ts +1 -0
- package/dist/automations/types.js +2 -0
- package/dist/automations/types.js.map +1 -0
- package/dist/autosave-cleanup.d.ts +26 -0
- package/dist/autosave-cleanup.js +87 -0
- package/dist/autosave-cleanup.js.map +1 -0
- package/dist/autosave-git.d.ts +23 -0
- package/dist/autosave-git.js +211 -0
- package/dist/autosave-git.js.map +1 -0
- package/dist/autosave-group.d.ts +8 -0
- package/dist/autosave-group.js +61 -0
- package/dist/autosave-group.js.map +1 -0
- package/dist/autosave-holders.d.ts +34 -0
- package/dist/autosave-holders.js +228 -0
- package/dist/autosave-holders.js.map +1 -0
- package/dist/autosave-windows.d.ts +25 -0
- package/dist/autosave-windows.js +170 -0
- package/dist/autosave-windows.js.map +1 -0
- package/dist/cez.d.ts +2 -0
- package/dist/cez.js +3 -0
- package/dist/cez.js.map +1 -0
- package/dist/cezarion.d.ts +2 -0
- package/dist/cezarion.js +3 -0
- package/dist/cezarion.js.map +1 -0
- package/dist/ci-wait/client.d.ts +28 -0
- package/dist/ci-wait/client.js +123 -0
- package/dist/ci-wait/client.js.map +1 -0
- package/dist/ci-wait/controller.d.ts +824 -0
- package/dist/ci-wait/controller.js +305 -0
- package/dist/ci-wait/controller.js.map +1 -0
- package/dist/ci-wait/errors.d.ts +35 -0
- package/dist/ci-wait/errors.js +273 -0
- package/dist/ci-wait/errors.js.map +1 -0
- package/dist/ci-wait/github.d.ts +105 -0
- package/dist/ci-wait/github.js +324 -0
- package/dist/ci-wait/github.js.map +1 -0
- package/dist/ci-wait/injection.d.ts +3 -0
- package/dist/ci-wait/injection.js +13 -0
- package/dist/ci-wait/injection.js.map +1 -0
- package/dist/ci-wait/mcp.d.ts +3 -0
- package/dist/ci-wait/mcp.js +30 -0
- package/dist/ci-wait/mcp.js.map +1 -0
- package/dist/ci-wait/merge-progress.d.ts +84 -0
- package/dist/ci-wait/merge-progress.js +50 -0
- package/dist/ci-wait/merge-progress.js.map +1 -0
- package/dist/ci-wait/progress.d.ts +56 -0
- package/dist/ci-wait/progress.js +100 -0
- package/dist/ci-wait/progress.js.map +1 -0
- package/dist/ci-wait/resources.d.ts +9 -0
- package/dist/ci-wait/resources.js +46 -0
- package/dist/ci-wait/resources.js.map +1 -0
- package/dist/ci-wait/supervisor.d.ts +47 -0
- package/dist/ci-wait/supervisor.js +334 -0
- package/dist/ci-wait/supervisor.js.map +1 -0
- package/dist/ci-wait/text.d.ts +2 -0
- package/dist/ci-wait/text.js +5 -0
- package/dist/ci-wait/text.js.map +1 -0
- package/dist/ci-wait/tools.d.ts +845 -0
- package/dist/ci-wait/tools.js +232 -0
- package/dist/ci-wait/tools.js.map +1 -0
- package/dist/cli-dispatch.d.ts +33 -0
- package/dist/cli-dispatch.js +239 -0
- package/dist/cli-dispatch.js.map +1 -0
- package/dist/config.d.ts +117 -0
- package/dist/config.js +343 -0
- package/dist/config.js.map +1 -0
- package/dist/contract/active-provider.d.ts +12 -0
- package/dist/contract/activity.d.ts +1478 -0
- package/dist/contract/agent-config.d.ts +160 -0
- package/dist/contract/agent-profiles.d.ts +369 -0
- package/dist/contract/application-update.d.ts +32 -0
- package/dist/contract/artifacts.d.ts +100 -0
- package/dist/contract/ask-schema.d.ts +50 -0
- package/dist/contract/ask.d.ts +11 -0
- package/dist/contract/attachments.d.ts +35 -0
- package/dist/contract/attention.d.ts +99 -0
- package/dist/contract/automation-requests.d.ts +314 -0
- package/dist/contract/automation-schedule.d.ts +89 -0
- package/dist/contract/automation-storage.d.ts +518 -0
- package/dist/contract/automations.d.ts +1560 -0
- package/dist/contract/ci-wait.d.ts +281 -0
- package/dist/contract/config-requests.d.ts +36 -0
- package/dist/contract/control-locations.d.ts +10 -0
- package/dist/contract/conversations.d.ts +415 -0
- package/dist/contract/defined.d.ts +8 -0
- package/dist/contract/delegation.d.ts +2168 -0
- package/dist/contract/discovery.d.ts +228 -0
- package/dist/contract/effort.d.ts +18 -0
- package/dist/contract/events.d.ts +324 -0
- package/dist/contract/github-requests.d.ts +26 -0
- package/dist/contract/github.d.ts +732 -0
- package/dist/contract/handoff.d.ts +43 -0
- package/dist/contract/health.d.ts +128 -0
- package/dist/contract/home-recovery.d.ts +71 -0
- package/dist/contract/image-path.d.ts +6 -0
- package/dist/contract/index.d.ts +68 -0
- package/dist/contract/index.js +6709 -0
- package/dist/contract/live-coordination.d.ts +164 -0
- package/dist/contract/live-limits.d.ts +8 -0
- package/dist/contract/live.d.ts +123 -0
- package/dist/contract/pending-ask.d.ts +58 -0
- package/dist/contract/per-runner-optional-strings.d.ts +10 -0
- package/dist/contract/permissions.d.ts +54 -0
- package/dist/contract/preview.d.ts +568 -0
- package/dist/contract/project-limits.d.ts +35 -0
- package/dist/contract/projects.d.ts +716 -0
- package/dist/contract/provider-requests.d.ts +77 -0
- package/dist/contract/query-requests.d.ts +52 -0
- package/dist/contract/repo-requests.d.ts +12 -0
- package/dist/contract/repo.d.ts +515 -0
- package/dist/contract/report-title.d.ts +3 -0
- package/dist/contract/reports.d.ts +101 -0
- package/dist/contract/run-labels.d.ts +8 -0
- package/dist/contract/run-limits.d.ts +8 -0
- package/dist/contract/run-predicates.d.ts +87 -0
- package/dist/contract/run-requests.d.ts +33 -0
- package/dist/contract/run-search.d.ts +193 -0
- package/dist/contract/runs.d.ts +7108 -0
- package/dist/contract/scheduled-tasks.d.ts +188 -0
- package/dist/contract/self-update.d.ts +255 -0
- package/dist/contract/skill-sources.d.ts +125 -0
- package/dist/contract/skills.d.ts +56 -0
- package/dist/contract/task-options.d.ts +18 -0
- package/dist/contract/team-skill-ref.d.ts +10 -0
- package/dist/contract/tool-display.d.ts +25 -0
- package/dist/contract/ui-state-requests.d.ts +60 -0
- package/dist/contract/version.d.ts +3 -0
- package/dist/contract/voice.d.ts +213 -0
- package/dist/contract/waits.d.ts +1996 -0
- package/dist/contract/workflow-file.d.ts +37 -0
- package/dist/contract/workflow-requests.d.ts +7 -0
- package/dist/contract/workflows.d.ts +250 -0
- package/dist/contract/workspace-events.d.ts +410 -0
- package/dist/contract/workspace.d.ts +631 -0
- package/dist/contract/zoned-time.d.ts +26 -0
- package/dist/core/agent-env.d.ts +34 -0
- package/dist/core/agent-env.js +411 -0
- package/dist/core/agent-env.js.map +1 -0
- package/dist/core/agent-model-policy.d.ts +11 -0
- package/dist/core/agent-model-policy.js +38 -0
- package/dist/core/agent-model-policy.js.map +1 -0
- package/dist/core/agent-profiles.d.ts +50 -0
- package/dist/core/agent-profiles.js +105 -0
- package/dist/core/agent-profiles.js.map +1 -0
- package/dist/core/agent-runner.d.ts +425 -0
- package/dist/core/agent-runner.js +98 -0
- package/dist/core/agent-runner.js.map +1 -0
- package/dist/core/ask.d.ts +26 -0
- package/dist/core/ask.js +35 -0
- package/dist/core/ask.js.map +1 -0
- package/dist/core/backend-detect.d.ts +18 -0
- package/dist/core/backend-detect.js +216 -0
- package/dist/core/backend-detect.js.map +1 -0
- package/dist/core/claude-cli-runner.d.ts +85 -0
- package/dist/core/claude-cli-runner.js +899 -0
- package/dist/core/claude-cli-runner.js.map +1 -0
- package/dist/core/claude-executable.d.ts +2 -0
- package/dist/core/claude-executable.js +15 -0
- package/dist/core/claude-executable.js.map +1 -0
- package/dist/core/claude-model-catalog.d.ts +16 -0
- package/dist/core/claude-model-catalog.js +198 -0
- package/dist/core/claude-model-catalog.js.map +1 -0
- package/dist/core/claude-stream.d.ts +38 -0
- package/dist/core/claude-stream.js +77 -0
- package/dist/core/claude-stream.js.map +1 -0
- package/dist/core/claude-ui-mapper.d.ts +88 -0
- package/dist/core/claude-ui-mapper.js +851 -0
- package/dist/core/claude-ui-mapper.js.map +1 -0
- package/dist/core/codex-app-server-runner.d.ts +76 -0
- package/dist/core/codex-app-server-runner.js +1271 -0
- package/dist/core/codex-app-server-runner.js.map +1 -0
- package/dist/core/codex-app-server-transport.d.ts +52 -0
- package/dist/core/codex-app-server-transport.js +200 -0
- package/dist/core/codex-app-server-transport.js.map +1 -0
- package/dist/core/codex-approvals.d.ts +12 -0
- package/dist/core/codex-approvals.js +180 -0
- package/dist/core/codex-approvals.js.map +1 -0
- package/dist/core/codex-hook-mapper.d.ts +15 -0
- package/dist/core/codex-hook-mapper.js +73 -0
- package/dist/core/codex-hook-mapper.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-native-frames.d.ts +35 -0
- package/dist/core/codex-native-frames.js +80 -0
- package/dist/core/codex-native-frames.js.map +1 -0
- package/dist/core/codex-permissions.d.ts +6 -0
- package/dist/core/codex-permissions.js +27 -0
- package/dist/core/codex-permissions.js.map +1 -0
- package/dist/core/codex-stream-error.d.ts +2 -0
- package/dist/core/codex-stream-error.js +12 -0
- package/dist/core/codex-stream-error.js.map +1 -0
- package/dist/core/codex-turn-outcome.d.ts +10 -0
- package/dist/core/codex-turn-outcome.js +35 -0
- package/dist/core/codex-turn-outcome.js.map +1 -0
- package/dist/core/codex-ui-mapper-state.d.ts +84 -0
- package/dist/core/codex-ui-mapper-state.js +8 -0
- package/dist/core/codex-ui-mapper-state.js.map +1 -0
- package/dist/core/codex-ui-mapper.d.ts +44 -0
- package/dist/core/codex-ui-mapper.js +799 -0
- package/dist/core/codex-ui-mapper.js.map +1 -0
- package/dist/core/cursor-cli-flags.d.ts +19 -0
- package/dist/core/cursor-cli-flags.js +47 -0
- package/dist/core/cursor-cli-flags.js.map +1 -0
- package/dist/core/cursor-config-options.d.ts +18 -0
- package/dist/core/cursor-config-options.js +31 -0
- package/dist/core/cursor-config-options.js.map +1 -0
- package/dist/core/cursor-model-catalog.d.ts +50 -0
- package/dist/core/cursor-model-catalog.js +306 -0
- package/dist/core/cursor-model-catalog.js.map +1 -0
- package/dist/core/cursor-print-capabilities.d.ts +14 -0
- package/dist/core/cursor-print-capabilities.js +169 -0
- package/dist/core/cursor-print-capabilities.js.map +1 -0
- package/dist/core/cursor-print-process.d.ts +31 -0
- package/dist/core/cursor-print-process.js +117 -0
- package/dist/core/cursor-print-process.js.map +1 -0
- package/dist/core/cursor-print-runner.d.ts +43 -0
- package/dist/core/cursor-print-runner.js +574 -0
- package/dist/core/cursor-print-runner.js.map +1 -0
- package/dist/core/cursor-print-tool-catalog.d.ts +3 -0
- package/dist/core/cursor-print-tool-catalog.js +13 -0
- package/dist/core/cursor-print-tool-catalog.js.map +1 -0
- package/dist/core/cursor-print-ui-mapper.d.ts +47 -0
- package/dist/core/cursor-print-ui-mapper.js +574 -0
- package/dist/core/cursor-print-ui-mapper.js.map +1 -0
- package/dist/core/cursor-provider-error.d.ts +9 -0
- package/dist/core/cursor-provider-error.js +15 -0
- package/dist/core/cursor-provider-error.js.map +1 -0
- package/dist/core/cursor-runner.d.ts +46 -0
- package/dist/core/cursor-runner.js +144 -0
- package/dist/core/cursor-runner.js.map +1 -0
- package/dist/core/defined.d.ts +1 -0
- package/dist/core/defined.js +2 -0
- package/dist/core/defined.js.map +1 -0
- package/dist/core/disclaim-spawn.d.ts +11 -0
- package/dist/core/disclaim-spawn.js +60 -0
- package/dist/core/disclaim-spawn.js.map +1 -0
- package/dist/core/edit-write-key.d.ts +2 -0
- package/dist/core/edit-write-key.js +6 -0
- package/dist/core/edit-write-key.js.map +1 -0
- package/dist/core/hook-items.d.ts +14 -0
- package/dist/core/hook-items.js +13 -0
- package/dist/core/hook-items.js.map +1 -0
- package/dist/core/host-model-catalog.d.ts +7 -0
- package/dist/core/host-model-catalog.js +21 -0
- package/dist/core/host-model-catalog.js.map +1 -0
- package/dist/core/input-submissions.d.ts +14 -0
- package/dist/core/input-submissions.js +26 -0
- package/dist/core/input-submissions.js.map +1 -0
- package/dist/core/managed-session.d.ts +6 -0
- package/dist/core/managed-session.js +116 -0
- package/dist/core/managed-session.js.map +1 -0
- package/dist/core/model-discovery-options.d.ts +8 -0
- package/dist/core/model-discovery-options.js +2 -0
- package/dist/core/model-discovery-options.js.map +1 -0
- package/dist/core/model-identity.d.ts +108 -0
- package/dist/core/model-identity.js +137 -0
- package/dist/core/model-identity.js.map +1 -0
- package/dist/core/model-presets.d.ts +10 -0
- package/dist/core/model-presets.js +77 -0
- package/dist/core/model-presets.js.map +1 -0
- package/dist/core/model-probe-teardown.d.ts +4 -0
- package/dist/core/model-probe-teardown.js +20 -0
- package/dist/core/model-probe-teardown.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/omp-model-catalog.d.ts +39 -0
- package/dist/core/omp-model-catalog.js +183 -0
- package/dist/core/omp-model-catalog.js.map +1 -0
- package/dist/core/omp-runner.d.ts +86 -0
- package/dist/core/omp-runner.js +818 -0
- package/dist/core/omp-runner.js.map +1 -0
- package/dist/core/omp-subagent-rows.d.ts +21 -0
- package/dist/core/omp-subagent-rows.js +99 -0
- package/dist/core/omp-subagent-rows.js.map +1 -0
- package/dist/core/omp-ui-mapper.d.ts +112 -0
- package/dist/core/omp-ui-mapper.js +807 -0
- package/dist/core/omp-ui-mapper.js.map +1 -0
- package/dist/core/opencode-model-catalog.d.ts +27 -0
- package/dist/core/opencode-model-catalog.js +189 -0
- package/dist/core/opencode-model-catalog.js.map +1 -0
- package/dist/core/opencode-permissions.d.ts +52 -0
- package/dist/core/opencode-permissions.js +101 -0
- package/dist/core/opencode-permissions.js.map +1 -0
- package/dist/core/opencode-runtime-config.d.ts +9 -0
- package/dist/core/opencode-runtime-config.js +26 -0
- package/dist/core/opencode-runtime-config.js.map +1 -0
- package/dist/core/opencode-server-runner.d.ts +75 -0
- package/dist/core/opencode-server-runner.js +1690 -0
- package/dist/core/opencode-server-runner.js.map +1 -0
- package/dist/core/opencode-session-error.d.ts +19 -0
- package/dist/core/opencode-session-error.js +42 -0
- package/dist/core/opencode-session-error.js.map +1 -0
- package/dist/core/opencode-task-scope.d.ts +9 -0
- package/dist/core/opencode-task-scope.js +19 -0
- package/dist/core/opencode-task-scope.js.map +1 -0
- package/dist/core/opencode-ui-mapper-state.d.ts +82 -0
- package/dist/core/opencode-ui-mapper-state.js +7 -0
- package/dist/core/opencode-ui-mapper-state.js.map +1 -0
- package/dist/core/opencode-ui-mapper.d.ts +59 -0
- package/dist/core/opencode-ui-mapper.js +724 -0
- package/dist/core/opencode-ui-mapper.js.map +1 -0
- package/dist/core/opencode-usage.d.ts +32 -0
- package/dist/core/opencode-usage.js +105 -0
- package/dist/core/opencode-usage.js.map +1 -0
- package/dist/core/pi-model-catalog.d.ts +34 -0
- package/dist/core/pi-model-catalog.js +247 -0
- package/dist/core/pi-model-catalog.js.map +1 -0
- package/dist/core/pi-rpc-turn.d.ts +179 -0
- package/dist/core/pi-rpc-turn.js +370 -0
- package/dist/core/pi-rpc-turn.js.map +1 -0
- package/dist/core/pi-rpc-wire.d.ts +31 -0
- package/dist/core/pi-rpc-wire.js +88 -0
- package/dist/core/pi-rpc-wire.js.map +1 -0
- package/dist/core/pi-runner.d.ts +58 -0
- package/dist/core/pi-runner.js +587 -0
- package/dist/core/pi-runner.js.map +1 -0
- package/dist/core/pi-ui-mapper.d.ts +52 -0
- package/dist/core/pi-ui-mapper.js +408 -0
- package/dist/core/pi-ui-mapper.js.map +1 -0
- package/dist/core/process-usage.d.ts +74 -0
- package/dist/core/process-usage.js +219 -0
- package/dist/core/process-usage.js.map +1 -0
- package/dist/core/product-env.d.ts +21 -0
- package/dist/core/product-env.js +38 -0
- package/dist/core/product-env.js.map +1 -0
- package/dist/core/provider-auth.d.ts +168 -0
- package/dist/core/provider-auth.js +661 -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 +11 -0
- package/dist/core/runner-factory.js +36 -0
- package/dist/core/runner-factory.js.map +1 -0
- package/dist/core/runner-facts.d.ts +135 -0
- package/dist/core/runner-facts.js +59 -0
- package/dist/core/runner-facts.js.map +1 -0
- package/dist/core/runner-model-catalog.d.ts +34 -0
- package/dist/core/runner-model-catalog.js +109 -0
- package/dist/core/runner-model-catalog.js.map +1 -0
- package/dist/core/runner-runtime.d.ts +40 -0
- package/dist/core/runner-runtime.js +88 -0
- package/dist/core/runner-runtime.js.map +1 -0
- package/dist/core/runner-stderr.d.ts +2 -0
- package/dist/core/runner-stderr.js +20 -0
- package/dist/core/runner-stderr.js.map +1 -0
- package/dist/core/runner-tool-grants.d.ts +19 -0
- package/dist/core/runner-tool-grants.js +54 -0
- package/dist/core/runner-tool-grants.js.map +1 -0
- package/dist/core/secret-redaction.d.ts +20 -0
- package/dist/core/secret-redaction.js +95 -0
- package/dist/core/secret-redaction.js.map +1 -0
- package/dist/core/session-process.d.ts +43 -0
- package/dist/core/session-process.js +363 -0
- package/dist/core/session-process.js.map +1 -0
- package/dist/core/shell-env.d.ts +17 -0
- package/dist/core/shell-env.js +51 -0
- package/dist/core/shell-env.js.map +1 -0
- package/dist/core/ui-events.d.ts +356 -0
- package/dist/core/ui-events.js +13 -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 +152 -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/data-gitignore.d.ts +6 -0
- package/dist/data-gitignore.js +80 -0
- package/dist/data-gitignore.js.map +1 -0
- package/dist/delegation/capacity.d.ts +15 -0
- package/dist/delegation/capacity.js +30 -0
- package/dist/delegation/capacity.js.map +1 -0
- package/dist/delegation/cli.d.ts +5 -0
- package/dist/delegation/cli.js +572 -0
- package/dist/delegation/cli.js.map +1 -0
- package/dist/delegation/context.d.ts +40 -0
- package/dist/delegation/context.js +398 -0
- package/dist/delegation/context.js.map +1 -0
- package/dist/delegation/conversation-send.d.ts +64 -0
- package/dist/delegation/conversation-send.js +74 -0
- package/dist/delegation/conversation-send.js.map +1 -0
- package/dist/delegation/conversations.d.ts +2186 -0
- package/dist/delegation/conversations.js +285 -0
- package/dist/delegation/conversations.js.map +1 -0
- package/dist/delegation/credentials.d.ts +21 -0
- package/dist/delegation/credentials.js +66 -0
- package/dist/delegation/credentials.js.map +1 -0
- package/dist/delegation/destroy-observation.d.ts +42 -0
- package/dist/delegation/destroy-observation.js +115 -0
- package/dist/delegation/destroy-observation.js.map +1 -0
- package/dist/delegation/effort.d.ts +1 -0
- package/dist/delegation/effort.js +11 -0
- package/dist/delegation/effort.js.map +1 -0
- package/dist/delegation/execution-identity.d.ts +257 -0
- package/dist/delegation/execution-identity.js +253 -0
- package/dist/delegation/execution-identity.js.map +1 -0
- package/dist/delegation/execution-settings.d.ts +11 -0
- package/dist/delegation/execution-settings.js +65 -0
- package/dist/delegation/execution-settings.js.map +1 -0
- package/dist/delegation/idle-test-app.d.ts +4 -0
- package/dist/delegation/idle-test-app.js +186 -0
- package/dist/delegation/idle-test-app.js.map +1 -0
- package/dist/delegation/input.d.ts +12 -0
- package/dist/delegation/input.js +50 -0
- package/dist/delegation/input.js.map +1 -0
- package/dist/delegation/park-notice.d.ts +45 -0
- package/dist/delegation/park-notice.js +81 -0
- package/dist/delegation/park-notice.js.map +1 -0
- package/dist/delegation/policy.d.ts +27 -0
- package/dist/delegation/policy.js +110 -0
- package/dist/delegation/policy.js.map +1 -0
- package/dist/delegation/process-liveness.d.ts +98 -0
- package/dist/delegation/process-liveness.js +213 -0
- package/dist/delegation/process-liveness.js.map +1 -0
- package/dist/delegation/provision.d.ts +36 -0
- package/dist/delegation/provision.js +218 -0
- package/dist/delegation/provision.js.map +1 -0
- package/dist/delegation/questions.d.ts +24 -0
- package/dist/delegation/questions.js +56 -0
- package/dist/delegation/questions.js.map +1 -0
- package/dist/delegation/readiness.d.ts +13 -0
- package/dist/delegation/readiness.js +19 -0
- package/dist/delegation/readiness.js.map +1 -0
- package/dist/delegation/results.d.ts +13 -0
- package/dist/delegation/results.js +153 -0
- package/dist/delegation/results.js.map +1 -0
- package/dist/delegation/retry-backoff.d.ts +31 -0
- package/dist/delegation/retry-backoff.js +26 -0
- package/dist/delegation/retry-backoff.js.map +1 -0
- package/dist/delegation/routes.d.ts +1017 -0
- package/dist/delegation/routes.js +85 -0
- package/dist/delegation/routes.js.map +1 -0
- package/dist/delegation/scratch-cleanup.d.ts +33 -0
- package/dist/delegation/scratch-cleanup.js +155 -0
- package/dist/delegation/scratch-cleanup.js.map +1 -0
- package/dist/delegation/service.d.ts +264 -0
- package/dist/delegation/service.js +807 -0
- package/dist/delegation/service.js.map +1 -0
- package/dist/delegation/task-discovery.d.ts +6 -0
- package/dist/delegation/task-discovery.js +27 -0
- package/dist/delegation/task-discovery.js.map +1 -0
- package/dist/delegation/transport.d.ts +995 -0
- package/dist/delegation/transport.js +22 -0
- package/dist/delegation/transport.js.map +1 -0
- package/dist/delegation/wait.d.ts +7 -0
- package/dist/delegation/wait.js +44 -0
- package/dist/delegation/wait.js.map +1 -0
- package/dist/delegation/windows-test-app.d.ts +5 -0
- package/dist/delegation/windows-test-app.js +64 -0
- package/dist/delegation/windows-test-app.js.map +1 -0
- package/dist/delegation/windows-workspace-identity.d.ts +3 -0
- package/dist/delegation/windows-workspace-identity.js +23 -0
- package/dist/delegation/windows-workspace-identity.js.map +1 -0
- package/dist/delegation/worker-cleanup.d.ts +53 -0
- package/dist/delegation/worker-cleanup.js +330 -0
- package/dist/delegation/worker-cleanup.js.map +1 -0
- package/dist/delegation/workspace.d.ts +40 -0
- package/dist/delegation/workspace.js +592 -0
- package/dist/delegation/workspace.js.map +1 -0
- package/dist/detached-process.d.ts +134 -0
- package/dist/detached-process.js +460 -0
- package/dist/detached-process.js.map +1 -0
- package/dist/discovery/catalog.d.ts +16 -0
- package/dist/discovery/catalog.js +31 -0
- package/dist/discovery/catalog.js.map +1 -0
- package/dist/discovery/cli.d.ts +8 -0
- package/dist/discovery/cli.js +122 -0
- package/dist/discovery/cli.js.map +1 -0
- package/dist/git-command.d.ts +7 -0
- package/dist/git-command.js +8 -0
- package/dist/git-command.js.map +1 -0
- package/dist/git-diff-base.d.ts +41 -0
- package/dist/git-diff-base.js +116 -0
- package/dist/git-diff-base.js.map +1 -0
- package/dist/git-index-copy.d.ts +4 -0
- package/dist/git-index-copy.js +10 -0
- package/dist/git-index-copy.js.map +1 -0
- package/dist/git-private-index.d.ts +11 -0
- package/dist/git-private-index.js +51 -0
- package/dist/git-private-index.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-lock-helper.d.ts +7 -0
- package/dist/git-worktree-lock-helper.js +178 -0
- package/dist/git-worktree-lock-helper.js.map +1 -0
- package/dist/git-worktree-lock.d.ts +17 -0
- package/dist/git-worktree-lock.js +90 -0
- package/dist/git-worktree-lock.js.map +1 -0
- package/dist/git-worktree-release.d.ts +20 -0
- package/dist/git-worktree-release.js +27 -0
- package/dist/git-worktree-release.js.map +1 -0
- package/dist/git-worktree.d.ts +148 -0
- package/dist/git-worktree.js +858 -0
- package/dist/git-worktree.js.map +1 -0
- package/dist/handoff.d.ts +72 -0
- package/dist/handoff.js +213 -0
- package/dist/handoff.js.map +1 -0
- package/dist/headless-run.d.ts +48 -0
- package/dist/headless-run.js +158 -0
- package/dist/headless-run.js.map +1 -0
- package/dist/home/boundary.d.ts +5 -0
- package/dist/home/boundary.js +76 -0
- package/dist/home/boundary.js.map +1 -0
- package/dist/home/changes.d.ts +3 -0
- package/dist/home/changes.js +11 -0
- package/dist/home/changes.js.map +1 -0
- package/dist/home/command.d.ts +9 -0
- package/dist/home/command.js +37 -0
- package/dist/home/command.js.map +1 -0
- package/dist/home/deprecation.d.ts +9 -0
- package/dist/home/deprecation.js +17 -0
- package/dist/home/deprecation.js.map +1 -0
- package/dist/home/display.d.ts +4 -0
- package/dist/home/display.js +11 -0
- package/dist/home/display.js.map +1 -0
- package/dist/home/entry-authorization.d.ts +17 -0
- package/dist/home/entry-authorization.js +39 -0
- package/dist/home/entry-authorization.js.map +1 -0
- package/dist/home/entry.d.ts +16 -0
- package/dist/home/entry.js +96 -0
- package/dist/home/entry.js.map +1 -0
- package/dist/home/file-location.d.ts +14 -0
- package/dist/home/file-location.js +24 -0
- package/dist/home/file-location.js.map +1 -0
- package/dist/home/home.d.ts +42 -0
- package/dist/home/home.js +70 -0
- package/dist/home/home.js.map +1 -0
- package/dist/home/identity.d.ts +22 -0
- package/dist/home/identity.js +25 -0
- package/dist/home/identity.js.map +1 -0
- package/dist/home/install-marker.d.ts +27 -0
- package/dist/home/install-marker.js +78 -0
- package/dist/home/install-marker.js.map +1 -0
- package/dist/home/kind-roots.d.ts +10 -0
- package/dist/home/kind-roots.js +36 -0
- package/dist/home/kind-roots.js.map +1 -0
- package/dist/home/leases.d.ts +14 -0
- package/dist/home/leases.js +55 -0
- package/dist/home/leases.js.map +1 -0
- package/dist/home/legacy-account-paths.d.ts +4 -0
- package/dist/home/legacy-account-paths.js +41 -0
- package/dist/home/legacy-account-paths.js.map +1 -0
- package/dist/home/legacy-merge.d.ts +3 -0
- package/dist/home/legacy-merge.js +45 -0
- package/dist/home/legacy-merge.js.map +1 -0
- package/dist/home/legacy-recovery.d.ts +5 -0
- package/dist/home/legacy-recovery.js +154 -0
- package/dist/home/legacy-recovery.js.map +1 -0
- package/dist/home/legacy-source.d.ts +15 -0
- package/dist/home/legacy-source.js +57 -0
- package/dist/home/legacy-source.js.map +1 -0
- package/dist/home/migrate.d.ts +19 -0
- package/dist/home/migrate.js +322 -0
- package/dist/home/migrate.js.map +1 -0
- package/dist/home/migration-account-source.d.ts +2 -0
- package/dist/home/migration-account-source.js +17 -0
- package/dist/home/migration-account-source.js.map +1 -0
- package/dist/home/migration-accounts.d.ts +23 -0
- package/dist/home/migration-accounts.js +174 -0
- package/dist/home/migration-accounts.js.map +1 -0
- package/dist/home/migration-boot.d.ts +23 -0
- package/dist/home/migration-boot.js +84 -0
- package/dist/home/migration-boot.js.map +1 -0
- package/dist/home/migration-claim.d.ts +4 -0
- package/dist/home/migration-claim.js +69 -0
- package/dist/home/migration-claim.js.map +1 -0
- package/dist/home/migration-cli.d.ts +3 -0
- package/dist/home/migration-cli.js +64 -0
- package/dist/home/migration-cli.js.map +1 -0
- package/dist/home/migration-files.d.ts +14 -0
- package/dist/home/migration-files.js +192 -0
- package/dist/home/migration-files.js.map +1 -0
- package/dist/home/migration-guard.d.ts +2 -0
- package/dist/home/migration-guard.js +20 -0
- package/dist/home/migration-guard.js.map +1 -0
- package/dist/home/migration-plan.d.ts +20 -0
- package/dist/home/migration-plan.js +71 -0
- package/dist/home/migration-plan.js.map +1 -0
- package/dist/home/migration-record.d.ts +79 -0
- package/dist/home/migration-record.js +39 -0
- package/dist/home/migration-record.js.map +1 -0
- package/dist/home/private-files.d.ts +13 -0
- package/dist/home/private-files.js +113 -0
- package/dist/home/private-files.js.map +1 -0
- package/dist/home/process-identity.d.ts +2 -0
- package/dist/home/process-identity.js +8 -0
- package/dist/home/process-identity.js.map +1 -0
- package/dist/home/protected-roots.d.ts +25 -0
- package/dist/home/protected-roots.js +91 -0
- package/dist/home/protected-roots.js.map +1 -0
- package/dist/home/recovery-watch.d.ts +3 -0
- package/dist/home/recovery-watch.js +75 -0
- package/dist/home/recovery-watch.js.map +1 -0
- package/dist/home/recovery.d.ts +10 -0
- package/dist/home/recovery.js +94 -0
- package/dist/home/recovery.js.map +1 -0
- package/dist/home/registry-content.d.ts +2 -0
- package/dist/home/registry-content.js +17 -0
- package/dist/home/registry-content.js.map +1 -0
- package/dist/home/reset-detection.d.ts +5 -0
- package/dist/home/reset-detection.js +22 -0
- package/dist/home/reset-detection.js.map +1 -0
- package/dist/home/resolve.d.ts +10 -0
- package/dist/home/resolve.js +28 -0
- package/dist/home/resolve.js.map +1 -0
- package/dist/home/store.d.ts +48 -0
- package/dist/home/store.js +324 -0
- package/dist/home/store.js.map +1 -0
- package/dist/home/switch.d.ts +2 -0
- package/dist/home/switch.js +3 -0
- package/dist/home/switch.js.map +1 -0
- package/dist/home/version-log.d.ts +48 -0
- package/dist/home/version-log.js +216 -0
- package/dist/home/version-log.js.map +1 -0
- package/dist/home/write-lock.d.ts +6 -0
- package/dist/home/write-lock.js +96 -0
- package/dist/home/write-lock.js.map +1 -0
- package/dist/hsq.d.ts +2 -0
- package/dist/hsq.js +3 -0
- package/dist/hsq.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +123 -0
- package/dist/index.js.map +1 -0
- package/dist/install-as-command.d.ts +32 -0
- package/dist/install-as-command.js +55 -0
- package/dist/install-as-command.js.map +1 -0
- package/dist/jobs/cli.d.ts +2 -0
- package/dist/jobs/cli.js +53 -0
- package/dist/jobs/cli.js.map +1 -0
- package/dist/jobs/command.d.ts +9 -0
- package/dist/jobs/command.js +19 -0
- package/dist/jobs/command.js.map +1 -0
- package/dist/jobs/job.d.ts +77 -0
- package/dist/jobs/job.js +252 -0
- package/dist/jobs/job.js.map +1 -0
- package/dist/merge-observations.d.ts +13 -0
- package/dist/merge-observations.js +55 -0
- package/dist/merge-observations.js.map +1 -0
- package/dist/merged-streams.d.ts +13 -0
- package/dist/merged-streams.js +33 -0
- package/dist/merged-streams.js.map +1 -0
- package/dist/open-url.d.ts +2 -0
- package/dist/open-url.js +10 -0
- package/dist/open-url.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 +118 -0
- package/dist/paths.js +192 -0
- package/dist/paths.js.map +1 -0
- package/dist/planner.d.ts +30 -0
- package/dist/planner.js +270 -0
- package/dist/planner.js.map +1 -0
- package/dist/preview/agent-address.d.ts +34 -0
- package/dist/preview/agent-address.js +52 -0
- package/dist/preview/agent-address.js.map +1 -0
- package/dist/preview/agent-marker.d.ts +17 -0
- package/dist/preview/agent-marker.js +71 -0
- package/dist/preview/agent-marker.js.map +1 -0
- package/dist/preview/browser-launch.d.ts +28 -0
- package/dist/preview/browser-launch.js +64 -0
- package/dist/preview/browser-launch.js.map +1 -0
- package/dist/preview/cdp-proxy.d.ts +54 -0
- package/dist/preview/cdp-proxy.js +152 -0
- package/dist/preview/cdp-proxy.js.map +1 -0
- package/dist/preview/cdp.d.ts +49 -0
- package/dist/preview/cdp.js +167 -0
- package/dist/preview/cdp.js.map +1 -0
- package/dist/preview/chromium-launch-progress.d.ts +10 -0
- package/dist/preview/chromium-launch-progress.js +48 -0
- package/dist/preview/chromium-launch-progress.js.map +1 -0
- package/dist/preview/chromium.d.ts +91 -0
- package/dist/preview/chromium.js +500 -0
- package/dist/preview/chromium.js.map +1 -0
- package/dist/preview/density.d.ts +17 -0
- package/dist/preview/density.js +62 -0
- package/dist/preview/density.js.map +1 -0
- package/dist/preview/dev-server.d.ts +68 -0
- package/dist/preview/dev-server.js +318 -0
- package/dist/preview/dev-server.js.map +1 -0
- package/dist/preview/host.d.ts +215 -0
- package/dist/preview/host.js +954 -0
- package/dist/preview/host.js.map +1 -0
- package/dist/preview/registration.d.ts +68 -0
- package/dist/preview/registration.js +111 -0
- package/dist/preview/registration.js.map +1 -0
- package/dist/preview/run-tools.d.ts +9 -0
- package/dist/preview/run-tools.js +72 -0
- package/dist/preview/run-tools.js.map +1 -0
- package/dist/preview/session.d.ts +139 -0
- package/dist/preview/session.js +479 -0
- package/dist/preview/session.js.map +1 -0
- package/dist/preview/url.d.ts +6 -0
- package/dist/preview/url.js +17 -0
- package/dist/preview/url.js.map +1 -0
- package/dist/process-wait/exit-file.d.ts +29 -0
- package/dist/process-wait/exit-file.js +67 -0
- package/dist/process-wait/exit-file.js.map +1 -0
- package/dist/process-wait/supervisor.d.ts +30 -0
- package/dist/process-wait/supervisor.js +71 -0
- package/dist/process-wait/supervisor.js.map +1 -0
- package/dist/project-commands.d.ts +14 -0
- package/dist/project-commands.js +91 -0
- package/dist/project-commands.js.map +1 -0
- package/dist/project-migration/answer.d.ts +23 -0
- package/dist/project-migration/answer.js +37 -0
- package/dist/project-migration/answer.js.map +1 -0
- package/dist/project-migration/auto.d.ts +73 -0
- package/dist/project-migration/auto.js +161 -0
- package/dist/project-migration/auto.js.map +1 -0
- package/dist/project-migration/cli.d.ts +18 -0
- package/dist/project-migration/cli.js +57 -0
- package/dist/project-migration/cli.js.map +1 -0
- package/dist/project-migration/containment.d.ts +52 -0
- package/dist/project-migration/containment.js +200 -0
- package/dist/project-migration/containment.js.map +1 -0
- package/dist/project-migration/durable.d.ts +25 -0
- package/dist/project-migration/durable.js +69 -0
- package/dist/project-migration/durable.js.map +1 -0
- package/dist/project-migration/engine.d.ts +47 -0
- package/dist/project-migration/engine.js +103 -0
- package/dist/project-migration/engine.js.map +1 -0
- package/dist/project-migration/fresh.d.ts +4 -0
- package/dist/project-migration/fresh.js +25 -0
- package/dist/project-migration/fresh.js.map +1 -0
- package/dist/project-migration/journal.d.ts +139 -0
- package/dist/project-migration/journal.js +69 -0
- package/dist/project-migration/journal.js.map +1 -0
- package/dist/project-migration/live.d.ts +48 -0
- package/dist/project-migration/live.js +148 -0
- package/dist/project-migration/live.js.map +1 -0
- package/dist/project-migration/offline.d.ts +25 -0
- package/dist/project-migration/offline.js +54 -0
- package/dist/project-migration/offline.js.map +1 -0
- package/dist/project-migration/plan.d.ts +91 -0
- package/dist/project-migration/plan.js +466 -0
- package/dist/project-migration/plan.js.map +1 -0
- package/dist/project-migration/recovery.d.ts +28 -0
- package/dist/project-migration/recovery.js +78 -0
- package/dist/project-migration/recovery.js.map +1 -0
- package/dist/project-migration/steps.d.ts +18 -0
- package/dist/project-migration/steps.js +312 -0
- package/dist/project-migration/steps.js.map +1 -0
- package/dist/project-paths.d.ts +61 -0
- package/dist/project-paths.js +185 -0
- package/dist/project-paths.js.map +1 -0
- package/dist/release/compatibility.d.ts +12 -0
- package/dist/release/compatibility.js +62 -0
- package/dist/release/compatibility.js.map +1 -0
- package/dist/release/manifests.d.ts +112 -0
- package/dist/release/manifests.js +104 -0
- package/dist/release/manifests.js.map +1 -0
- package/dist/release/publication.d.ts +3 -0
- package/dist/release/publication.js +34 -0
- package/dist/release/publication.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/remote-settings-cli.d.ts +24 -0
- package/dist/remote-settings-cli.js +156 -0
- package/dist/remote-settings-cli.js.map +1 -0
- package/dist/remote-settings.d.ts +41 -0
- package/dist/remote-settings.js +110 -0
- package/dist/remote-settings.js.map +1 -0
- package/dist/runs/agent-tmpdir-removal.d.ts +15 -0
- package/dist/runs/agent-tmpdir-removal.js +60 -0
- package/dist/runs/agent-tmpdir-removal.js.map +1 -0
- package/dist/runs/agent-tmpdir.d.ts +119 -0
- package/dist/runs/agent-tmpdir.js +855 -0
- package/dist/runs/agent-tmpdir.js.map +1 -0
- package/dist/runs/archive-family.d.ts +33 -0
- package/dist/runs/archive-family.js +90 -0
- package/dist/runs/archive-family.js.map +1 -0
- package/dist/runs/arm-repo-handle.d.ts +10 -0
- package/dist/runs/arm-repo-handle.js +45 -0
- package/dist/runs/arm-repo-handle.js.map +1 -0
- package/dist/runs/auto-name.d.ts +77 -0
- package/dist/runs/auto-name.js +179 -0
- package/dist/runs/auto-name.js.map +1 -0
- package/dist/runs/claim-families.d.ts +37 -0
- package/dist/runs/claim-families.js +101 -0
- package/dist/runs/claim-families.js.map +1 -0
- package/dist/runs/client-request.d.ts +11 -0
- package/dist/runs/client-request.js +26 -0
- package/dist/runs/client-request.js.map +1 -0
- package/dist/runs/cold-reads.d.ts +40 -0
- package/dist/runs/cold-reads.js +56 -0
- package/dist/runs/cold-reads.js.map +1 -0
- package/dist/runs/conversation-identity.d.ts +19 -0
- package/dist/runs/conversation-identity.js +31 -0
- package/dist/runs/conversation-identity.js.map +1 -0
- package/dist/runs/delegation-state.d.ts +409 -0
- package/dist/runs/delegation-state.js +22 -0
- package/dist/runs/delegation-state.js.map +1 -0
- package/dist/runs/event-history-agent-context.d.ts +15 -0
- package/dist/runs/event-history-agent-context.js +119 -0
- package/dist/runs/event-history-agent-context.js.map +1 -0
- package/dist/runs/event-history-context.d.ts +15 -0
- package/dist/runs/event-history-context.js +109 -0
- package/dist/runs/event-history-context.js.map +1 -0
- package/dist/runs/event-history.d.ts +53 -0
- package/dist/runs/event-history.js +563 -0
- package/dist/runs/event-history.js.map +1 -0
- package/dist/runs/exit-events.d.ts +27 -0
- package/dist/runs/exit-events.js +46 -0
- package/dist/runs/exit-events.js.map +1 -0
- package/dist/runs/history-compressor.d.ts +29 -0
- package/dist/runs/history-compressor.js +116 -0
- package/dist/runs/history-compressor.js.map +1 -0
- package/dist/runs/history-file.d.ts +36 -0
- package/dist/runs/history-file.js +464 -0
- package/dist/runs/history-file.js.map +1 -0
- package/dist/runs/history-stream.d.ts +2 -0
- package/dist/runs/history-stream.js +62 -0
- package/dist/runs/history-stream.js.map +1 -0
- package/dist/runs/legacy-index.d.ts +49 -0
- package/dist/runs/legacy-index.js +156 -0
- package/dist/runs/legacy-index.js.map +1 -0
- package/dist/runs/legacy-run-rows.d.ts +12 -0
- package/dist/runs/legacy-run-rows.js +33 -0
- package/dist/runs/legacy-run-rows.js.map +1 -0
- package/dist/runs/legacy-waits.d.ts +64 -0
- package/dist/runs/legacy-waits.js +335 -0
- package/dist/runs/legacy-waits.js.map +1 -0
- package/dist/runs/live-item-snapshots.d.ts +15 -0
- package/dist/runs/live-item-snapshots.js +95 -0
- package/dist/runs/live-item-snapshots.js.map +1 -0
- package/dist/runs/loaded-run-exits.d.ts +6 -0
- package/dist/runs/loaded-run-exits.js +32 -0
- package/dist/runs/loaded-run-exits.js.map +1 -0
- package/dist/runs/loaded-run-healing.d.ts +3 -0
- package/dist/runs/loaded-run-healing.js +17 -0
- package/dist/runs/loaded-run-healing.js.map +1 -0
- package/dist/runs/outcome-commit.d.ts +119 -0
- package/dist/runs/outcome-commit.js +155 -0
- package/dist/runs/outcome-commit.js.map +1 -0
- package/dist/runs/owned-run-create.d.ts +33 -0
- package/dist/runs/owned-run-create.js +98 -0
- package/dist/runs/owned-run-create.js.map +1 -0
- package/dist/runs/project-run-connection.d.ts +76 -0
- package/dist/runs/project-run-connection.js +287 -0
- package/dist/runs/project-run-connection.js.map +1 -0
- package/dist/runs/project-run-sources.d.ts +21 -0
- package/dist/runs/project-run-sources.js +86 -0
- package/dist/runs/project-run-sources.js.map +1 -0
- package/dist/runs/pull-requests.d.ts +14 -0
- package/dist/runs/pull-requests.js +96 -0
- package/dist/runs/pull-requests.js.map +1 -0
- package/dist/runs/raw-record.d.ts +40 -0
- package/dist/runs/raw-record.js +133 -0
- package/dist/runs/raw-record.js.map +1 -0
- package/dist/runs/record-write-rules.d.ts +129 -0
- package/dist/runs/record-write-rules.js +326 -0
- package/dist/runs/record-write-rules.js.map +1 -0
- package/dist/runs/report-rows.d.ts +36 -0
- package/dist/runs/report-rows.js +102 -0
- package/dist/runs/report-rows.js.map +1 -0
- package/dist/runs/retention.d.ts +91 -0
- package/dist/runs/retention.js +193 -0
- package/dist/runs/retention.js.map +1 -0
- package/dist/runs/review-gate.d.ts +18 -0
- package/dist/runs/review-gate.js +22 -0
- package/dist/runs/review-gate.js.map +1 -0
- package/dist/runs/run-claims.d.ts +30 -0
- package/dist/runs/run-claims.js +52 -0
- package/dist/runs/run-claims.js.map +1 -0
- package/dist/runs/run-database-peer-page.d.ts +12 -0
- package/dist/runs/run-database-peer-page.js +25 -0
- package/dist/runs/run-database-peer-page.js.map +1 -0
- package/dist/runs/run-database-row.d.ts +39 -0
- package/dist/runs/run-database-row.js +83 -0
- package/dist/runs/run-database-row.js.map +1 -0
- package/dist/runs/run-database-version.d.ts +14 -0
- package/dist/runs/run-database-version.js +19 -0
- package/dist/runs/run-database-version.js.map +1 -0
- package/dist/runs/run-database.d.ts +389 -0
- package/dist/runs/run-database.js +957 -0
- package/dist/runs/run-database.js.map +1 -0
- package/dist/runs/run-exits.d.ts +4510 -0
- package/dist/runs/run-exits.js +191 -0
- package/dist/runs/run-exits.js.map +1 -0
- package/dist/runs/run-index.d.ts +36 -0
- package/dist/runs/run-index.js +262 -0
- package/dist/runs/run-index.js.map +1 -0
- package/dist/runs/run-references.d.ts +61 -0
- package/dist/runs/run-references.js +421 -0
- package/dist/runs/run-references.js.map +1 -0
- package/dist/runs/run-row.d.ts +14 -0
- package/dist/runs/run-row.js +56 -0
- package/dist/runs/run-row.js.map +1 -0
- package/dist/runs/run-summary-page.d.ts +36 -0
- package/dist/runs/run-summary-page.js +46 -0
- package/dist/runs/run-summary-page.js.map +1 -0
- package/dist/runs/run-title.d.ts +8 -0
- package/dist/runs/run-title.js +28 -0
- package/dist/runs/run-title.js.map +1 -0
- package/dist/runs/store-open-error.d.ts +24 -0
- package/dist/runs/store-open-error.js +62 -0
- package/dist/runs/store-open-error.js.map +1 -0
- package/dist/runs/store.d.ts +3974 -0
- package/dist/runs/store.js +3516 -0
- package/dist/runs/store.js.map +1 -0
- package/dist/runs/task-markers.d.ts +29 -0
- package/dist/runs/task-markers.js +78 -0
- package/dist/runs/task-markers.js.map +1 -0
- package/dist/runs/task-refs.d.ts +39 -0
- package/dist/runs/task-refs.js +107 -0
- package/dist/runs/task-refs.js.map +1 -0
- package/dist/runs/transcript-facts-fold.d.ts +64 -0
- package/dist/runs/transcript-facts-fold.js +109 -0
- package/dist/runs/transcript-facts-fold.js.map +1 -0
- package/dist/runs/transcript-facts-load.d.ts +11 -0
- package/dist/runs/transcript-facts-load.js +66 -0
- package/dist/runs/transcript-facts-load.js.map +1 -0
- package/dist/runs/transcript-facts-queue.d.ts +30 -0
- package/dist/runs/transcript-facts-queue.js +227 -0
- package/dist/runs/transcript-facts-queue.js.map +1 -0
- package/dist/runs/transcript-facts-worker.d.ts +15 -0
- package/dist/runs/transcript-facts-worker.js +26 -0
- package/dist/runs/transcript-facts-worker.js.map +1 -0
- package/dist/runs/transcript-facts.d.ts +40 -0
- package/dist/runs/transcript-facts.js +193 -0
- package/dist/runs/transcript-facts.js.map +1 -0
- package/dist/runs/ui-event-sink.d.ts +59 -0
- package/dist/runs/ui-event-sink.js +197 -0
- package/dist/runs/ui-event-sink.js.map +1 -0
- package/dist/runs/wait-capacity.d.ts +8 -0
- package/dist/runs/wait-capacity.js +28 -0
- package/dist/runs/wait-capacity.js.map +1 -0
- package/dist/runs/wait-phases.d.ts +4 -0
- package/dist/runs/wait-phases.js +11 -0
- package/dist/runs/wait-phases.js.map +1 -0
- package/dist/runs/wait-registration-write.d.ts +5 -0
- package/dist/runs/wait-registration-write.js +35 -0
- package/dist/runs/wait-registration-write.js.map +1 -0
- package/dist/runs/webhook.d.ts +193 -0
- package/dist/runs/webhook.js +362 -0
- package/dist/runs/webhook.js.map +1 -0
- package/dist/runs/worker-deletion-proof.d.ts +13 -0
- package/dist/runs/worker-deletion-proof.js +13 -0
- package/dist/runs/worker-deletion-proof.js.map +1 -0
- package/dist/runs/worker-execution.d.ts +22 -0
- package/dist/runs/worker-execution.js +30 -0
- package/dist/runs/worker-execution.js.map +1 -0
- package/dist/runs/worker-resource-holders.d.ts +17 -0
- package/dist/runs/worker-resource-holders.js +34 -0
- package/dist/runs/worker-resource-holders.js.map +1 -0
- package/dist/runs/worker-result-commit.d.ts +26 -0
- package/dist/runs/worker-result-commit.js +121 -0
- package/dist/runs/worker-result-commit.js.map +1 -0
- package/dist/self-update/checkouts.d.ts +46 -0
- package/dist/self-update/checkouts.js +284 -0
- package/dist/self-update/checkouts.js.map +1 -0
- package/dist/self-update/cli.d.ts +19 -0
- package/dist/self-update/cli.js +243 -0
- package/dist/self-update/cli.js.map +1 -0
- package/dist/self-update/installer.d.ts +24 -0
- package/dist/self-update/installer.js +139 -0
- package/dist/self-update/installer.js.map +1 -0
- package/dist/self-update/launcher.d.ts +30 -0
- package/dist/self-update/launcher.js +172 -0
- package/dist/self-update/launcher.js.map +1 -0
- package/dist/self-update/layout.d.ts +108 -0
- package/dist/self-update/layout.js +276 -0
- package/dist/self-update/layout.js.map +1 -0
- package/dist/self-update/pulls.d.ts +30 -0
- package/dist/self-update/pulls.js +128 -0
- package/dist/self-update/pulls.js.map +1 -0
- package/dist/self-update/registry.d.ts +37 -0
- package/dist/self-update/registry.js +86 -0
- package/dist/self-update/registry.js.map +1 -0
- package/dist/self-update/restart.d.ts +25 -0
- package/dist/self-update/restart.js +79 -0
- package/dist/self-update/restart.js.map +1 -0
- package/dist/self-update/semver.d.ts +19 -0
- package/dist/self-update/semver.js +79 -0
- package/dist/self-update/semver.js.map +1 -0
- package/dist/self-update/service.d.ts +115 -0
- package/dist/self-update/service.js +332 -0
- package/dist/self-update/service.js.map +1 -0
- package/dist/self-update/supervisor.d.ts +10 -0
- package/dist/self-update/supervisor.js +52 -0
- package/dist/self-update/supervisor.js.map +1 -0
- package/dist/serve-boot.d.ts +60 -0
- package/dist/serve-boot.js +142 -0
- package/dist/serve-boot.js.map +1 -0
- package/dist/serve-command.d.ts +71 -0
- package/dist/serve-command.js +168 -0
- package/dist/serve-command.js.map +1 -0
- package/dist/serve-listener.d.ts +12 -0
- package/dist/serve-listener.js +52 -0
- package/dist/serve-listener.js.map +1 -0
- package/dist/server/activity-project-topic.d.ts +44 -0
- package/dist/server/activity-project-topic.js +137 -0
- package/dist/server/activity-project-topic.js.map +1 -0
- package/dist/server/activity-routes.d.ts +317 -0
- package/dist/server/activity-routes.js +117 -0
- package/dist/server/activity-routes.js.map +1 -0
- package/dist/server/activity-sources.d.ts +26 -0
- package/dist/server/activity-sources.js +45 -0
- package/dist/server/activity-sources.js.map +1 -0
- package/dist/server/activity-topic.d.ts +33 -0
- package/dist/server/activity-topic.js +48 -0
- package/dist/server/activity-topic.js.map +1 -0
- package/dist/server/app-type.d.ts +6 -0
- package/dist/server/app-type.js +2 -0
- package/dist/server/app-type.js.map +1 -0
- package/dist/server/archive-on-merge.d.ts +45 -0
- package/dist/server/archive-on-merge.js +242 -0
- package/dist/server/archive-on-merge.js.map +1 -0
- package/dist/server/automation-log-retry.d.ts +27 -0
- package/dist/server/automation-log-retry.js +88 -0
- package/dist/server/automation-log-retry.js.map +1 -0
- package/dist/server/capabilities.d.ts +69 -0
- package/dist/server/capabilities.js +111 -0
- package/dist/server/capabilities.js.map +1 -0
- package/dist/server/checkout-progress.d.ts +10 -0
- package/dist/server/checkout-progress.js +27 -0
- package/dist/server/checkout-progress.js.map +1 -0
- package/dist/server/checkout.d.ts +153 -0
- package/dist/server/checkout.js +323 -0
- package/dist/server/checkout.js.map +1 -0
- package/dist/server/cockpit-ownership.d.ts +112 -0
- package/dist/server/cockpit-ownership.js +420 -0
- package/dist/server/cockpit-ownership.js.map +1 -0
- package/dist/server/cold-repo-handles.d.ts +17 -0
- package/dist/server/cold-repo-handles.js +82 -0
- package/dist/server/cold-repo-handles.js.map +1 -0
- package/dist/server/completion-actions.d.ts +37 -0
- package/dist/server/completion-actions.js +261 -0
- package/dist/server/completion-actions.js.map +1 -0
- package/dist/server/config-merge.d.ts +11 -0
- package/dist/server/config-merge.js +74 -0
- package/dist/server/config-merge.js.map +1 -0
- package/dist/server/create-project.d.ts +71 -0
- package/dist/server/create-project.js +467 -0
- package/dist/server/create-project.js.map +1 -0
- package/dist/server/forge/draft-pr.d.ts +8 -0
- package/dist/server/forge/draft-pr.js +123 -0
- package/dist/server/forge/draft-pr.js.map +1 -0
- package/dist/server/forge/github-filters.d.ts +22 -0
- package/dist/server/forge/github-filters.js +128 -0
- package/dist/server/forge/github-filters.js.map +1 -0
- package/dist/server/forge/github-merge-requirements.d.ts +18 -0
- package/dist/server/forge/github-merge-requirements.js +148 -0
- package/dist/server/forge/github-merge-requirements.js.map +1 -0
- package/dist/server/forge/github-merge-state.d.ts +27 -0
- package/dist/server/forge/github-merge-state.js +248 -0
- package/dist/server/forge/github-merge-state.js.map +1 -0
- package/dist/server/forge/github-timeline.d.ts +117 -0
- package/dist/server/forge/github-timeline.js +273 -0
- package/dist/server/forge/github-timeline.js.map +1 -0
- package/dist/server/forge/github.d.ts +393 -0
- package/dist/server/forge/github.js +2881 -0
- package/dist/server/forge/github.js.map +1 -0
- package/dist/server/forge/index.d.ts +47 -0
- package/dist/server/forge/index.js +81 -0
- package/dist/server/forge/index.js.map +1 -0
- package/dist/server/forge/repo-handle-discovery.d.ts +16 -0
- package/dist/server/forge/repo-handle-discovery.js +2 -0
- package/dist/server/forge/repo-handle-discovery.js.map +1 -0
- package/dist/server/forge/types.d.ts +278 -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 +82 -0
- package/dist/server/fs-browse.js +217 -0
- package/dist/server/fs-browse.js.map +1 -0
- package/dist/server/git-changes.d.ts +205 -0
- package/dist/server/git-changes.js +531 -0
- package/dist/server/git-changes.js.map +1 -0
- package/dist/server/git.d.ts +52 -0
- package/dist/server/git.js +174 -0
- package/dist/server/git.js.map +1 -0
- package/dist/server/home-recovery-routes.d.ts +171 -0
- package/dist/server/home-recovery-routes.js +56 -0
- package/dist/server/home-recovery-routes.js.map +1 -0
- package/dist/server/launch-key.d.ts +5 -0
- package/dist/server/launch-key.js +35 -0
- package/dist/server/launch-key.js.map +1 -0
- package/dist/server/live-routes.d.ts +73 -0
- package/dist/server/live-routes.js +161 -0
- package/dist/server/live-routes.js.map +1 -0
- package/dist/server/open-in-app.d.ts +57 -0
- package/dist/server/open-in-app.js +178 -0
- package/dist/server/open-in-app.js.map +1 -0
- package/dist/server/open-in-targets.d.ts +53 -0
- package/dist/server/open-in-targets.js +112 -0
- package/dist/server/open-in-targets.js.map +1 -0
- package/dist/server/open-in-terminal.d.ts +73 -0
- package/dist/server/open-in-terminal.js +160 -0
- package/dist/server/open-in-terminal.js.map +1 -0
- package/dist/server/preview-cdp-socket.d.ts +21 -0
- package/dist/server/preview-cdp-socket.js +112 -0
- package/dist/server/preview-cdp-socket.js.map +1 -0
- package/dist/server/preview-socket.d.ts +36 -0
- package/dist/server/preview-socket.js +142 -0
- package/dist/server/preview-socket.js.map +1 -0
- package/dist/server/preview-sockets.d.ts +14 -0
- package/dist/server/preview-sockets.js +18 -0
- package/dist/server/preview-sockets.js.map +1 -0
- package/dist/server/project-context.d.ts +218 -0
- package/dist/server/project-context.js +525 -0
- package/dist/server/project-context.js.map +1 -0
- package/dist/server/project-run-files.d.ts +13 -0
- package/dist/server/project-run-files.js +52 -0
- package/dist/server/project-run-files.js.map +1 -0
- package/dist/server/provider-action-gate.d.ts +5 -0
- package/dist/server/provider-action-gate.js +28 -0
- package/dist/server/provider-action-gate.js.map +1 -0
- package/dist/server/provider-auth-runtime.d.ts +34 -0
- package/dist/server/provider-auth-runtime.js +118 -0
- package/dist/server/provider-auth-runtime.js.map +1 -0
- package/dist/server/repo-branch-forge.d.ts +61 -0
- package/dist/server/repo-branch-forge.js +158 -0
- package/dist/server/repo-branch-forge.js.map +1 -0
- package/dist/server/repo-branch-sweep.d.ts +21 -0
- package/dist/server/repo-branch-sweep.js +64 -0
- package/dist/server/repo-branch-sweep.js.map +1 -0
- package/dist/server/repo-branches.d.ts +103 -0
- package/dist/server/repo-branches.js +804 -0
- package/dist/server/repo-branches.js.map +1 -0
- package/dist/server/repo-pull.d.ts +18 -0
- package/dist/server/repo-pull.js +97 -0
- package/dist/server/repo-pull.js.map +1 -0
- package/dist/server/reports-api.d.ts +90 -0
- package/dist/server/reports-api.js +21 -0
- package/dist/server/reports-api.js.map +1 -0
- package/dist/server/reports-topic.d.ts +5 -0
- package/dist/server/reports-topic.js +37 -0
- package/dist/server/reports-topic.js.map +1 -0
- package/dist/server/run-checkout.d.ts +56 -0
- package/dist/server/run-checkout.js +141 -0
- package/dist/server/run-checkout.js.map +1 -0
- package/dist/server/run-event-feed.d.ts +20 -0
- package/dist/server/run-event-feed.js +203 -0
- package/dist/server/run-event-feed.js.map +1 -0
- package/dist/server/self-update-routes.d.ts +308 -0
- package/dist/server/self-update-routes.js +80 -0
- package/dist/server/self-update-routes.js.map +1 -0
- package/dist/server/server-deps.d.ts +40 -0
- package/dist/server/server-deps.js +132 -0
- package/dist/server/server-deps.js.map +1 -0
- package/dist/server/server.d.ts +35332 -0
- package/dist/server/server.js +5046 -0
- package/dist/server/server.js.map +1 -0
- package/dist/server/skill-sources.d.ts +264 -0
- package/dist/server/skill-sources.js +130 -0
- package/dist/server/skill-sources.js.map +1 -0
- package/dist/server/start-run-options.d.ts +84 -0
- package/dist/server/start-run-options.js +114 -0
- package/dist/server/start-run-options.js.map +1 -0
- package/dist/server/static-ui.d.ts +49 -0
- package/dist/server/static-ui.js +99 -0
- package/dist/server/static-ui.js.map +1 -0
- package/dist/server/upgrade-router.d.ts +23 -0
- package/dist/server/upgrade-router.js +53 -0
- package/dist/server/upgrade-router.js.map +1 -0
- package/dist/server/validators.d.ts +80 -0
- package/dist/server/validators.js +85 -0
- package/dist/server/validators.js.map +1 -0
- package/dist/server/workflow-files.d.ts +9 -0
- package/dist/server/workflow-files.js +27 -0
- package/dist/server/workflow-files.js.map +1 -0
- package/dist/server/workspace-config-patch.d.ts +11 -0
- package/dist/server/workspace-config-patch.js +75 -0
- package/dist/server/workspace-config-patch.js.map +1 -0
- package/dist/server/workspace-live-routes.d.ts +222 -0
- package/dist/server/workspace-live-routes.js +8 -0
- package/dist/server/workspace-live-routes.js.map +1 -0
- package/dist/server/workspace-projects.d.ts +51 -0
- package/dist/server/workspace-projects.js +161 -0
- package/dist/server/workspace-projects.js.map +1 -0
- package/dist/server/workspace-run-feed.d.ts +66 -0
- package/dist/server/workspace-run-feed.js +171 -0
- package/dist/server/workspace-run-feed.js.map +1 -0
- package/dist/server/ws.d.ts +80 -0
- package/dist/server/ws.js +280 -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-command.d.ts +53 -0
- package/dist/server-command.js +180 -0
- package/dist/server-command.js.map +1 -0
- package/dist/server-install/engine.d.ts +51 -0
- package/dist/server-install/engine.js +358 -0
- package/dist/server-install/engine.js.map +1 -0
- package/dist/server-install/group-migrate.d.ts +26 -0
- package/dist/server-install/group-migrate.js +241 -0
- package/dist/server-install/group-migrate.js.map +1 -0
- package/dist/server-install/migrate-cli.d.ts +12 -0
- package/dist/server-install/migrate-cli.js +44 -0
- package/dist/server-install/migrate-cli.js.map +1 -0
- package/dist/server-install/migrate-journal.d.ts +15 -0
- package/dist/server-install/migrate-journal.js +48 -0
- package/dist/server-install/migrate-journal.js.map +1 -0
- package/dist/server-install/migration-report.d.ts +3 -0
- package/dist/server-install/migration-report.js +21 -0
- package/dist/server-install/migration-report.js.map +1 -0
- package/dist/server-install/npx-cache.d.ts +34 -0
- package/dist/server-install/npx-cache.js +142 -0
- package/dist/server-install/npx-cache.js.map +1 -0
- package/dist/server-install/platforms/macosx-launchd-files.d.ts +11 -0
- package/dist/server-install/platforms/macosx-launchd-files.js +60 -0
- package/dist/server-install/platforms/macosx-launchd-files.js.map +1 -0
- package/dist/server-install/platforms/macosx-migration.d.ts +17 -0
- package/dist/server-install/platforms/macosx-migration.js +239 -0
- package/dist/server-install/platforms/macosx-migration.js.map +1 -0
- package/dist/server-install/platforms/macosx-ngrok.d.ts +12 -0
- package/dist/server-install/platforms/macosx-ngrok.js +490 -0
- package/dist/server-install/platforms/macosx-ngrok.js.map +1 -0
- package/dist/server-install/platforms/service-env.d.ts +4 -0
- package/dist/server-install/platforms/service-env.js +17 -0
- package/dist/server-install/platforms/service-env.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps-files.d.ts +18 -0
- package/dist/server-install/platforms/ubuntu-vps-files.js +43 -0
- package/dist/server-install/platforms/ubuntu-vps-files.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps-migration.d.ts +26 -0
- package/dist/server-install/platforms/ubuntu-vps-migration.js +391 -0
- package/dist/server-install/platforms/ubuntu-vps-migration.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps-names.d.ts +30 -0
- package/dist/server-install/platforms/ubuntu-vps-names.js +50 -0
- package/dist/server-install/platforms/ubuntu-vps-names.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps-redeploy.d.ts +42 -0
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js +127 -0
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js.map +1 -0
- package/dist/server-install/platforms/ubuntu-vps.d.ts +57 -0
- package/dist/server-install/platforms/ubuntu-vps.js +945 -0
- package/dist/server-install/platforms/ubuntu-vps.js.map +1 -0
- package/dist/server-install/state.d.ts +51 -0
- package/dist/server-install/state.js +178 -0
- package/dist/server-install/state.js.map +1 -0
- package/dist/server-install/steps.d.ts +108 -0
- package/dist/server-install/steps.js +348 -0
- package/dist/server-install/steps.js.map +1 -0
- package/dist/server-install/strategies.d.ts +6 -0
- package/dist/server-install/strategies.js +24 -0
- package/dist/server-install/strategies.js.map +1 -0
- package/dist/server-install/types.d.ts +316 -0
- package/dist/server-install/types.js +118 -0
- package/dist/server-install/types.js.map +1 -0
- package/dist/server-install/ui.d.ts +36 -0
- package/dist/server-install/ui.js +131 -0
- package/dist/server-install/ui.js.map +1 -0
- package/dist/session-context.d.ts +66 -0
- package/dist/session-context.js +266 -0
- package/dist/session-context.js.map +1 -0
- package/dist/skills-provision.d.ts +64 -0
- package/dist/skills-provision.js +325 -0
- package/dist/skills-provision.js.map +1 -0
- package/dist/skills-remote.d.ts +144 -0
- package/dist/skills-remote.js +847 -0
- package/dist/skills-remote.js.map +1 -0
- package/dist/skills.d.ts +81 -0
- package/dist/skills.js +288 -0
- package/dist/skills.js.map +1 -0
- package/dist/subcommands.d.ts +12 -0
- package/dist/subcommands.js +59 -0
- package/dist/subcommands.js.map +1 -0
- package/dist/task-cli/cli.d.ts +39 -0
- package/dist/task-cli/cli.js +773 -0
- package/dist/task-cli/cli.js.map +1 -0
- package/dist/task-cli/discovery.d.ts +32 -0
- package/dist/task-cli/discovery.js +133 -0
- package/dist/task-cli/discovery.js.map +1 -0
- package/dist/task-cli/hint.d.ts +20 -0
- package/dist/task-cli/hint.js +15 -0
- package/dist/task-cli/hint.js.map +1 -0
- package/dist/task-cli/http.d.ts +42 -0
- package/dist/task-cli/http.js +110 -0
- package/dist/task-cli/http.js.map +1 -0
- package/dist/task-cli/projections.d.ts +68 -0
- package/dist/task-cli/projections.js +76 -0
- package/dist/task-cli/projections.js.map +1 -0
- package/dist/task-cli/watch.d.ts +119 -0
- package/dist/task-cli/watch.js +494 -0
- package/dist/task-cli/watch.js.map +1 -0
- package/dist/ui-state.d.ts +41 -0
- package/dist/ui-state.js +93 -0
- package/dist/ui-state.js.map +1 -0
- package/dist/update-check.d.ts +2 -0
- package/dist/update-check.js +28 -0
- package/dist/update-check.js.map +1 -0
- package/dist/use-command-notice.d.ts +1 -0
- package/dist/use-command-notice.js +6 -0
- package/dist/use-command-notice.js.map +1 -0
- package/dist/voice/decide.d.ts +35 -0
- package/dist/voice/decide.js +329 -0
- package/dist/voice/decide.js.map +1 -0
- package/dist/voice/decision-log.d.ts +48 -0
- package/dist/voice/decision-log.js +117 -0
- package/dist/voice/decision-log.js.map +1 -0
- package/dist/voice/engine.d.ts +119 -0
- package/dist/voice/engine.js +61 -0
- package/dist/voice/engine.js.map +1 -0
- package/dist/voice/fake-engine.d.ts +10 -0
- package/dist/voice/fake-engine.js +192 -0
- package/dist/voice/fake-engine.js.map +1 -0
- package/dist/voice/jev-engine.d.ts +17 -0
- package/dist/voice/jev-engine.js +110 -0
- package/dist/voice/jev-engine.js.map +1 -0
- package/dist/voice/pending-ask.d.ts +17 -0
- package/dist/voice/pending-ask.js +51 -0
- package/dist/voice/pending-ask.js.map +1 -0
- package/dist/voice/routes.d.ts +115 -0
- package/dist/voice/routes.js +92 -0
- package/dist/voice/routes.js.map +1 -0
- package/dist/voice/sentence.d.ts +21 -0
- package/dist/voice/sentence.js +61 -0
- package/dist/voice/sentence.js.map +1 -0
- package/dist/voice/thresholds.d.ts +28 -0
- package/dist/voice/thresholds.js +29 -0
- package/dist/voice/thresholds.js.map +1 -0
- package/dist/webhooks/cli.d.ts +18 -0
- package/dist/webhooks/cli.js +127 -0
- package/dist/webhooks/cli.js.map +1 -0
- package/dist/webhooks/prompt.d.ts +5 -0
- package/dist/webhooks/prompt.js +26 -0
- package/dist/webhooks/prompt.js.map +1 -0
- package/dist/workflows/active-run.d.ts +46 -0
- package/dist/workflows/active-run.js +46 -0
- package/dist/workflows/active-run.js.map +1 -0
- package/dist/workflows/attachment-path.d.ts +6 -0
- package/dist/workflows/attachment-path.js +40 -0
- package/dist/workflows/attachment-path.js.map +1 -0
- package/dist/workflows/completion-policy.d.ts +98 -0
- package/dist/workflows/completion-policy.js +77 -0
- package/dist/workflows/completion-policy.js.map +1 -0
- package/dist/workflows/continuation-admission.d.ts +1229 -0
- package/dist/workflows/continuation-admission.js +277 -0
- package/dist/workflows/continuation-admission.js.map +1 -0
- package/dist/workflows/execution-account.d.ts +13 -0
- package/dist/workflows/execution-account.js +18 -0
- package/dist/workflows/execution-account.js.map +1 -0
- package/dist/workflows/grouped-command.d.ts +31 -0
- package/dist/workflows/grouped-command.js +147 -0
- package/dist/workflows/grouped-command.js.map +1 -0
- package/dist/workflows/input-acknowledgement.d.ts +233 -0
- package/dist/workflows/input-acknowledgement.js +41 -0
- package/dist/workflows/input-acknowledgement.js.map +1 -0
- package/dist/workflows/line-order.d.ts +5 -0
- package/dist/workflows/line-order.js +25 -0
- package/dist/workflows/line-order.js.map +1 -0
- package/dist/workflows/load.d.ts +19 -0
- package/dist/workflows/load.js +74 -0
- package/dist/workflows/load.js.map +1 -0
- package/dist/workflows/outcome-batches.d.ts +32 -0
- package/dist/workflows/outcome-batches.js +55 -0
- package/dist/workflows/outcome-batches.js.map +1 -0
- package/dist/workflows/pasted-content.d.ts +60 -0
- package/dist/workflows/pasted-content.js +69 -0
- package/dist/workflows/pasted-content.js.map +1 -0
- package/dist/workflows/question-routing.d.ts +16 -0
- package/dist/workflows/question-routing.js +28 -0
- package/dist/workflows/question-routing.js.map +1 -0
- package/dist/workflows/run/attachment-writer.d.ts +34 -0
- package/dist/workflows/run/attachment-writer.js +98 -0
- package/dist/workflows/run/attachment-writer.js.map +1 -0
- package/dist/workflows/run/auto-resume.d.ts +91 -0
- package/dist/workflows/run/auto-resume.js +247 -0
- package/dist/workflows/run/auto-resume.js.map +1 -0
- package/dist/workflows/run/cezar-tools.d.ts +45 -0
- package/dist/workflows/run/cezar-tools.js +117 -0
- package/dist/workflows/run/cezar-tools.js.map +1 -0
- package/dist/workflows/run/completion-gate.d.ts +77 -0
- package/dist/workflows/run/completion-gate.js +93 -0
- package/dist/workflows/run/completion-gate.js.map +1 -0
- package/dist/workflows/run/compose.d.ts +181 -0
- package/dist/workflows/run/compose.js +413 -0
- package/dist/workflows/run/compose.js.map +1 -0
- package/dist/workflows/run/constants.d.ts +48 -0
- package/dist/workflows/run/constants.js +49 -0
- package/dist/workflows/run/constants.js.map +1 -0
- package/dist/workflows/run/continuation-acceptance.d.ts +70 -0
- package/dist/workflows/run/continuation-acceptance.js +188 -0
- package/dist/workflows/run/continuation-acceptance.js.map +1 -0
- package/dist/workflows/run/continuation-session.d.ts +130 -0
- package/dist/workflows/run/continuation-session.js +597 -0
- package/dist/workflows/run/continuation-session.js.map +1 -0
- package/dist/workflows/run/drop-active.d.ts +4 -0
- package/dist/workflows/run/drop-active.js +11 -0
- package/dist/workflows/run/drop-active.js.map +1 -0
- package/dist/workflows/run/family-reconciler.d.ts +78 -0
- package/dist/workflows/run/family-reconciler.js +308 -0
- package/dist/workflows/run/family-reconciler.js.map +1 -0
- package/dist/workflows/run/human-waits.d.ts +85 -0
- package/dist/workflows/run/human-waits.js +163 -0
- package/dist/workflows/run/human-waits.js.map +1 -0
- package/dist/workflows/run/inbox-claims.d.ts +38 -0
- package/dist/workflows/run/inbox-claims.js +108 -0
- package/dist/workflows/run/inbox-claims.js.map +1 -0
- package/dist/workflows/run/input-batch.d.ts +15 -0
- package/dist/workflows/run/input-batch.js +32 -0
- package/dist/workflows/run/input-batch.js.map +1 -0
- package/dist/workflows/run/input-delivery.d.ts +202 -0
- package/dist/workflows/run/input-delivery.js +818 -0
- package/dist/workflows/run/input-delivery.js.map +1 -0
- package/dist/workflows/run/input-receipts.d.ts +65 -0
- package/dist/workflows/run/input-receipts.js +221 -0
- package/dist/workflows/run/input-receipts.js.map +1 -0
- package/dist/workflows/run/input-timers.d.ts +10 -0
- package/dist/workflows/run/input-timers.js +32 -0
- package/dist/workflows/run/input-timers.js.map +1 -0
- package/dist/workflows/run/launch-context.d.ts +62 -0
- package/dist/workflows/run/launch-context.js +119 -0
- package/dist/workflows/run/launch-context.js.map +1 -0
- package/dist/workflows/run/launch-read-resolver.d.ts +510 -0
- package/dist/workflows/run/launch-read-resolver.js +658 -0
- package/dist/workflows/run/launch-read-resolver.js.map +1 -0
- package/dist/workflows/run/launch-settings.d.ts +10 -0
- package/dist/workflows/run/launch-settings.js +11 -0
- package/dist/workflows/run/launch-settings.js.map +1 -0
- package/dist/workflows/run/live-session-state.d.ts +49 -0
- package/dist/workflows/run/live-session-state.js +83 -0
- package/dist/workflows/run/live-session-state.js.map +1 -0
- package/dist/workflows/run/maintenance-claims.d.ts +47 -0
- package/dist/workflows/run/maintenance-claims.js +83 -0
- package/dist/workflows/run/maintenance-claims.js.map +1 -0
- package/dist/workflows/run/memory-guard.d.ts +25 -0
- package/dist/workflows/run/memory-guard.js +64 -0
- package/dist/workflows/run/memory-guard.js.map +1 -0
- package/dist/workflows/run/opening.d.ts +30 -0
- package/dist/workflows/run/opening.js +6 -0
- package/dist/workflows/run/opening.js.map +1 -0
- package/dist/workflows/run/pending-ask-facts.d.ts +10 -0
- package/dist/workflows/run/pending-ask-facts.js +19 -0
- package/dist/workflows/run/pending-ask-facts.js.map +1 -0
- package/dist/workflows/run/prompts.d.ts +74 -0
- package/dist/workflows/run/prompts.js +140 -0
- package/dist/workflows/run/prompts.js.map +1 -0
- package/dist/workflows/run/queued-input.d.ts +108 -0
- package/dist/workflows/run/queued-input.js +249 -0
- package/dist/workflows/run/queued-input.js.map +1 -0
- package/dist/workflows/run/queued-revival.d.ts +44 -0
- package/dist/workflows/run/queued-revival.js +124 -0
- package/dist/workflows/run/queued-revival.js.map +1 -0
- package/dist/workflows/run/readonly-collections.d.ts +24 -0
- package/dist/workflows/run/readonly-collections.js +33 -0
- package/dist/workflows/run/readonly-collections.js.map +1 -0
- package/dist/workflows/run/repo-root-lease.d.ts +34 -0
- package/dist/workflows/run/repo-root-lease.js +71 -0
- package/dist/workflows/run/repo-root-lease.js.map +1 -0
- package/dist/workflows/run/resolved-wait-input-batch.d.ts +7 -0
- package/dist/workflows/run/resolved-wait-input-batch.js +23 -0
- package/dist/workflows/run/resolved-wait-input-batch.js.map +1 -0
- package/dist/workflows/run/run-cancel.d.ts +36 -0
- package/dist/workflows/run/run-cancel.js +130 -0
- package/dist/workflows/run/run-cancel.js.map +1 -0
- package/dist/workflows/run/run-finish.d.ts +72 -0
- package/dist/workflows/run/run-finish.js +256 -0
- package/dist/workflows/run/run-finish.js.map +1 -0
- package/dist/workflows/run/run-guards.d.ts +15 -0
- package/dist/workflows/run/run-guards.js +39 -0
- package/dist/workflows/run/run-guards.js.map +1 -0
- package/dist/workflows/run/run-line.d.ts +187 -0
- package/dist/workflows/run/run-line.js +438 -0
- package/dist/workflows/run/run-line.js.map +1 -0
- package/dist/workflows/run/run-recovery.d.ts +116 -0
- package/dist/workflows/run/run-recovery.js +422 -0
- package/dist/workflows/run/run-recovery.js.map +1 -0
- package/dist/workflows/run/run-settlement.d.ts +177 -0
- package/dist/workflows/run/run-settlement.js +504 -0
- package/dist/workflows/run/run-settlement.js.map +1 -0
- package/dist/workflows/run/run-skills.d.ts +114 -0
- package/dist/workflows/run/run-skills.js +233 -0
- package/dist/workflows/run/run-skills.js.map +1 -0
- package/dist/workflows/run/run-start.d.ts +64 -0
- package/dist/workflows/run/run-start.js +126 -0
- package/dist/workflows/run/run-start.js.map +1 -0
- package/dist/workflows/run/run-workspace.d.ts +25 -0
- package/dist/workflows/run/run-workspace.js +66 -0
- package/dist/workflows/run/run-workspace.js.map +1 -0
- package/dist/workflows/run/session-events.d.ts +155 -0
- package/dist/workflows/run/session-events.js +282 -0
- package/dist/workflows/run/session-events.js.map +1 -0
- package/dist/workflows/run/step-decisions.d.ts +37 -0
- package/dist/workflows/run/step-decisions.js +43 -0
- package/dist/workflows/run/step-decisions.js.map +1 -0
- package/dist/workflows/run/step-loop.d.ts +143 -0
- package/dist/workflows/run/step-loop.js +488 -0
- package/dist/workflows/run/step-loop.js.map +1 -0
- package/dist/workflows/run/step-session.d.ts +65 -0
- package/dist/workflows/run/step-session.js +280 -0
- package/dist/workflows/run/step-session.js.map +1 -0
- package/dist/workflows/run/steps.d.ts +13 -0
- package/dist/workflows/run/steps.js +14 -0
- package/dist/workflows/run/steps.js.map +1 -0
- package/dist/workflows/run/subagent-waits.d.ts +138 -0
- package/dist/workflows/run/subagent-waits.js +305 -0
- package/dist/workflows/run/subagent-waits.js.map +1 -0
- package/dist/workflows/run/tracked-work.d.ts +12 -0
- package/dist/workflows/run/tracked-work.js +29 -0
- package/dist/workflows/run/tracked-work.js.map +1 -0
- package/dist/workflows/run/turn-bookkeeping.d.ts +67 -0
- package/dist/workflows/run/turn-bookkeeping.js +173 -0
- package/dist/workflows/run/turn-bookkeeping.js.map +1 -0
- package/dist/workflows/run/turn-boundary.d.ts +215 -0
- package/dist/workflows/run/turn-boundary.js +329 -0
- package/dist/workflows/run/turn-boundary.js.map +1 -0
- package/dist/workflows/run/turn-markers.d.ts +62 -0
- package/dist/workflows/run/turn-markers.js +86 -0
- package/dist/workflows/run/turn-markers.js.map +1 -0
- package/dist/workflows/run/turn-nudges.d.ts +104 -0
- package/dist/workflows/run/turn-nudges.js +244 -0
- package/dist/workflows/run/turn-nudges.js.map +1 -0
- package/dist/workflows/run/turn-settler.d.ts +161 -0
- package/dist/workflows/run/turn-settler.js +469 -0
- package/dist/workflows/run/turn-settler.js.map +1 -0
- package/dist/workflows/run/types.d.ts +293 -0
- package/dist/workflows/run/types.js +2 -0
- package/dist/workflows/run/types.js.map +1 -0
- package/dist/workflows/run/usage-accounting.d.ts +49 -0
- package/dist/workflows/run/usage-accounting.js +213 -0
- package/dist/workflows/run/usage-accounting.js.map +1 -0
- package/dist/workflows/run/wait-engine.d.ts +1210 -0
- package/dist/workflows/run/wait-engine.js +456 -0
- package/dist/workflows/run/wait-engine.js.map +1 -0
- package/dist/workflows/run/wait-kinds.d.ts +336 -0
- package/dist/workflows/run/wait-kinds.js +471 -0
- package/dist/workflows/run/wait-kinds.js.map +1 -0
- package/dist/workflows/run/wait-registration-tool.d.ts +3 -0
- package/dist/workflows/run/wait-registration-tool.js +68 -0
- package/dist/workflows/run/wait-registration-tool.js.map +1 -0
- package/dist/workflows/run/wait-registration.d.ts +7 -0
- package/dist/workflows/run/wait-registration.js +39 -0
- package/dist/workflows/run/wait-registration.js.map +1 -0
- package/dist/workflows/run/wait-registry.d.ts +120 -0
- package/dist/workflows/run/wait-registry.js +365 -0
- package/dist/workflows/run/wait-registry.js.map +1 -0
- package/dist/workflows/run/wait-watches.d.ts +13 -0
- package/dist/workflows/run/wait-watches.js +12 -0
- package/dist/workflows/run/wait-watches.js.map +1 -0
- package/dist/workflows/run/wake-admission.d.ts +150 -0
- package/dist/workflows/run/wake-admission.js +397 -0
- package/dist/workflows/run/wake-admission.js.map +1 -0
- package/dist/workflows/run/wake-ledger.d.ts +61 -0
- package/dist/workflows/run/wake-ledger.js +78 -0
- package/dist/workflows/run/wake-ledger.js.map +1 -0
- package/dist/workflows/run/wake-retries.d.ts +31 -0
- package/dist/workflows/run/wake-retries.js +93 -0
- package/dist/workflows/run/wake-retries.js.map +1 -0
- package/dist/workflows/run/worker-executions.d.ts +54 -0
- package/dist/workflows/run/worker-executions.js +149 -0
- package/dist/workflows/run/worker-executions.js.map +1 -0
- package/dist/workflows/run/worker-orphans.d.ts +91 -0
- package/dist/workflows/run/worker-orphans.js +275 -0
- package/dist/workflows/run/worker-orphans.js.map +1 -0
- package/dist/workflows/run/worker-questions.d.ts +169 -0
- package/dist/workflows/run/worker-questions.js +464 -0
- package/dist/workflows/run/worker-questions.js.map +1 -0
- package/dist/workflows/run/workflow-position.d.ts +7 -0
- package/dist/workflows/run/workflow-position.js +9 -0
- package/dist/workflows/run/workflow-position.js.map +1 -0
- package/dist/workflows/run/worktree-autosave.d.ts +48 -0
- package/dist/workflows/run/worktree-autosave.js +175 -0
- package/dist/workflows/run/worktree-autosave.js.map +1 -0
- package/dist/workflows/run-scheduling.d.ts +38 -0
- package/dist/workflows/run-scheduling.js +76 -0
- package/dist/workflows/run-scheduling.js.map +1 -0
- package/dist/workflows/run-states.d.ts +73 -0
- package/dist/workflows/run-states.js +233 -0
- package/dist/workflows/run-states.js.map +1 -0
- package/dist/workflows/run.d.ts +275 -0
- package/dist/workflows/run.js +626 -0
- package/dist/workflows/run.js.map +1 -0
- package/dist/workflows/turn-end.d.ts +119 -0
- package/dist/workflows/turn-end.js +74 -0
- package/dist/workflows/turn-end.js.map +1 -0
- package/dist/workflows/types.d.ts +83 -0
- package/dist/workflows/types.js +192 -0
- package/dist/workflows/types.js.map +1 -0
- package/dist/workflows/wait-scope.d.ts +75 -0
- package/dist/workflows/wait-scope.js +115 -0
- package/dist/workflows/wait-scope.js.map +1 -0
- package/dist/workflows/waits.d.ts +58 -0
- package/dist/workflows/waits.js +89 -0
- package/dist/workflows/waits.js.map +1 -0
- package/dist/workspace/agent-accounts.d.ts +135 -0
- package/dist/workspace/agent-accounts.js +353 -0
- package/dist/workspace/agent-accounts.js.map +1 -0
- package/dist/workspace/agent-profiles.d.ts +125 -0
- package/dist/workspace/agent-profiles.js +190 -0
- package/dist/workspace/agent-profiles.js.map +1 -0
- package/dist/workspace/backup-cli.d.ts +9 -0
- package/dist/workspace/backup-cli.js +147 -0
- package/dist/workspace/backup-cli.js.map +1 -0
- package/dist/workspace/backups.d.ts +36 -0
- package/dist/workspace/backups.js +249 -0
- package/dist/workspace/backups.js.map +1 -0
- package/dist/workspace/config.d.ts +179 -0
- package/dist/workspace/config.js +396 -0
- package/dist/workspace/config.js.map +1 -0
- package/dist/workspace/migrations.d.ts +37 -0
- package/dist/workspace/migrations.js +149 -0
- package/dist/workspace/migrations.js.map +1 -0
- package/dist/workspace/projects-cli.d.ts +27 -0
- package/dist/workspace/projects-cli.js +175 -0
- package/dist/workspace/projects-cli.js.map +1 -0
- package/dist/workspace/projects.d.ts +131 -0
- package/dist/workspace/projects.js +274 -0
- package/dist/workspace/projects.js.map +1 -0
- package/dist/workspace/root-probe-cache.d.ts +10 -0
- package/dist/workspace/root-probe-cache.js +43 -0
- package/dist/workspace/root-probe-cache.js.map +1 -0
- package/dist/workspace/semaphore.d.ts +147 -0
- package/dist/workspace/semaphore.js +196 -0
- package/dist/workspace/semaphore.js.map +1 -0
- package/dist/workspace/ui-state.d.ts +17 -0
- package/dist/workspace/ui-state.js +59 -0
- package/dist/workspace/ui-state.js.map +1 -0
- package/dist/workspace/webhooks.d.ts +40 -0
- package/dist/workspace/webhooks.js +146 -0
- package/dist/workspace/webhooks.js.map +1 -0
- package/dist/worktree-manifest.d.ts +165 -0
- package/dist/worktree-manifest.js +535 -0
- package/dist/worktree-manifest.js.map +1 -0
- package/dist/worktree-setup.d.ts +88 -0
- package/dist/worktree-setup.js +170 -0
- package/dist/worktree-setup.js.map +1 -0
- package/package.json +80 -4
- package/scripts/benchmark-family-reconcile.ts +119 -0
- package/scripts/benchmark-home.ts +32 -0
- package/scripts/benchmark-project-probes.mjs +158 -0
- package/scripts/benchmark-run-store-fixture.ts +432 -0
- package/scripts/benchmark-run-store.ts +767 -0
- package/scripts/benchmark-stuck-destroys.ts +144 -0
- package/scripts/benchmark-workspace-events.ts +339 -0
- package/scripts/check-pack.mjs +48 -0
- package/scripts/inline-contract.mjs +165 -0
- package/scripts/install-as-command.mjs +125 -0
- package/scripts/measure-transcript-facts-health.mjs +103 -0
- package/scripts/measure-transcript-facts-lag.mjs +69 -0
- package/scripts/mock-autonomous.mjs +13 -0
- package/scripts/mock-ci-tool.mjs +159 -0
- package/scripts/mock-claude-model-refusal.mjs +76 -0
- package/scripts/mock-claude-subagents.mjs +54 -0
- package/scripts/mock-claude.mjs +800 -0
- package/scripts/mock-codex-app-server.mjs +767 -0
- package/scripts/mock-codex-coalesce-steer.mjs +59 -0
- package/scripts/mock-codex-reverse-steer.mjs +143 -0
- package/scripts/mock-codex-subagents.mjs +52 -0
- package/scripts/mock-controls.d.mts +11 -0
- package/scripts/mock-controls.mjs +13 -0
- package/scripts/mock-cursor-hang-stdin-late.mjs +35 -0
- package/scripts/mock-cursor-hang-stdin.mjs +30 -0
- package/scripts/mock-cursor-print.mjs +237 -0
- package/scripts/mock-deferred-turn-start.mjs +16 -0
- package/scripts/mock-delivery-control.d.mts +23 -0
- package/scripts/mock-delivery-control.mjs +80 -0
- package/scripts/mock-env-record.mjs +11 -0
- package/scripts/mock-failure-control.d.mts +13 -0
- package/scripts/mock-failure-control.mjs +68 -0
- package/scripts/mock-lifecycle.mjs +51 -0
- package/scripts/mock-multi-pr.mjs +10 -0
- package/scripts/mock-nudge.mjs +43 -0
- package/scripts/mock-omp-rpc.mjs +536 -0
- package/scripts/mock-opencode-serve.mjs +1000 -0
- package/scripts/mock-pi-rpc.mjs +421 -0
- package/scripts/mock-publish.mjs +13 -0
- package/scripts/mock-runner-crash.mjs +64 -0
- package/scripts/mock-scenario.d.mts +71 -0
- package/scripts/mock-scenario.mjs +295 -0
- package/scripts/mock-session-context.d.mts +5 -0
- package/scripts/mock-session-context.mjs +56 -0
- package/scripts/mock-silent-tail.mjs +93 -0
- package/scripts/mock-turn-messages.mjs +5 -0
- package/scripts/mock-wire-evidence.config.mjs +12 -0
- package/scripts/mock-wire-recorder.mjs +66 -0
- package/scripts/mock-wire-tools.mjs +7 -0
- package/scripts/omp-ci-wait.mjs +29 -0
- package/scripts/opencode-task-scope.d.mts +18 -0
- package/scripts/opencode-task-scope.mjs +59 -0
- package/scripts/parity-rows.ts +160 -0
- package/scripts/pi-ci-wait.mjs +17 -0
- package/scripts/pi-default-tools.mjs +22 -0
- package/scripts/pi-project-skills.mjs +59 -0
- package/scripts/pi-retry-degraded-service.mjs +16 -0
- package/scripts/probe-cursor-print.mjs +699 -0
- package/scripts/probe-session-env.ts +8 -0
- package/scripts/product-env.mjs +6 -0
- package/scripts/product-identity.mjs +12 -0
- package/scripts/record-mock-wires.mjs +16 -0
- package/scripts/seed-archive-profile.ts +53 -0
- package/scripts/sync-readme.mjs +20 -0
- package/scripts/test-process-usage.mjs +47 -0
- package/scripts/transcript-facts-fixture.mjs +53 -0
- package/scripts/transcript-facts-timing.mjs +42 -0
- package/scripts/voice-replay.ts +50 -0
- package/scripts/windows-workspace-identity.cs +208 -0
- package/scripts/windows-workspace-identity.ps1 +10 -0
- package/web/dist/assets/activity-motion-0wHCeUs7.css +1 -0
- package/web/dist/assets/activity-motion-SGth5vR4.js +2 -0
- package/web/dist/assets/activity-route-D8otXwOA.js +1 -0
- package/web/dist/assets/agent-accounts-6EuZhy-N.js +18 -0
- package/web/dist/assets/alert-dialog-vFjLgfK4.js +1 -0
- package/web/dist/assets/app-window-CSHwDX9N.js +1 -0
- package/web/dist/assets/arrow-right-Dh_Lx3um.js +1 -0
- package/web/dist/assets/bundle-mjs-BT31bpU6.js +1 -0
- package/web/dist/assets/button-BEK7XKhS.js +3 -0
- package/web/dist/assets/centered-state-CPgI8cCO.js +1 -0
- package/web/dist/assets/cez-idle-BT0U4GN_.js +1 -0
- package/web/dist/assets/chunk-BO2N2NFS-DE6qKn3r.js +131 -0
- package/web/dist/assets/commit-diff-panel-DzyWgn1Z.js +1 -0
- package/web/dist/assets/control-locations-CexZsd3M.js +1 -0
- package/web/dist/assets/core-BCsw8oQw.js +12 -0
- package/web/dist/assets/createLucideIcon-BHp8sXmF.js +1 -0
- package/web/dist/assets/css-BsVw1vtW.js +1 -0
- package/web/dist/assets/design-icons-DmYTv2r1.js +1 -0
- package/web/dist/assets/diff-DBDiZl58.js +3 -0
- package/web/dist/assets/diff-controls-DXyB0aDl.js +1 -0
- package/web/dist/assets/diff-view-DiKAwVMH.js +11 -0
- package/web/dist/assets/diff-woXpYk--.js +1 -0
- package/web/dist/assets/dropdown-menu-DYflHa4m.js +1 -0
- package/web/dist/assets/engine-javascript-FQvzRocB.js +141 -0
- package/web/dist/assets/es2015-BO600Xfi.js +41 -0
- package/web/dist/assets/eye-B8okNWXU.js +1 -0
- package/web/dist/assets/file-preview-DTSRkmMo.js +2 -0
- package/web/dist/assets/git-toolbar-U4s46kUd.js +1 -0
- package/web/dist/assets/github-UaBp2yRF.js +1 -0
- package/web/dist/assets/github-sidebar-model-czjLsgVJ.js +1 -0
- package/web/dist/assets/global-activity-route-B2N2Nz0H.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/hourglass-B0lPAJvT.js +1 -0
- package/web/dist/assets/html-BY76lXLH.js +1 -0
- package/web/dist/assets/image-preview-XPCPclpG.js +1 -0
- package/web/dist/assets/index-B18AqW0Z.css +1 -0
- package/web/dist/assets/index-xj-3O89_.js +14 -0
- package/web/dist/assets/index.global-D3Ga_D3Y.js +1 -0
- package/web/dist/assets/info-DA1x_4bz.js +1 -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-BxQXEXDF.js +1 -0
- package/web/dist/assets/live-protocol-BDY7JJpT.js +64 -0
- package/web/dist/assets/live-refetch-C-Ony2Yr.js +1 -0
- package/web/dist/assets/live-worker-BWdeGzQX.ts +34 -0
- package/web/dist/assets/loader-circle-CZkGEdoI.js +1 -0
- package/web/dist/assets/markdown-BBDDg-4t.js +1 -0
- package/web/dist/assets/markdown-BYOwaDjH.js +1 -0
- package/web/dist/assets/markdown-UdZ_toya.js +6 -0
- package/web/dist/assets/mermaid-GHXKKRXX-C4jxqUUb.js +1 -0
- package/web/dist/assets/mermaid.min-3O9YjB2l.js +1 -0
- package/web/dist/assets/message-square-B-MD-8rD.js +1 -0
- package/web/dist/assets/nav-row-styles-BE99gD3_.js +1 -0
- package/web/dist/assets/popover-CpULuQSm.js +1 -0
- package/web/dist/assets/poppins-devanagari-400-normal-CJDn6rn8.woff2 +0 -0
- package/web/dist/assets/poppins-devanagari-400-normal-CqVvlrh5.woff +0 -0
- package/web/dist/assets/poppins-devanagari-500-normal-BIdkeU1p.woff2 +0 -0
- package/web/dist/assets/poppins-devanagari-500-normal-DMPDjHtT.woff +0 -0
- package/web/dist/assets/poppins-devanagari-600-normal-ClASKHrr.woff +0 -0
- package/web/dist/assets/poppins-devanagari-600-normal-STEjXBNN.woff2 +0 -0
- package/web/dist/assets/poppins-latin-400-normal-BOb3E3N0.woff +0 -0
- package/web/dist/assets/poppins-latin-400-normal-cpxAROuN.woff2 +0 -0
- package/web/dist/assets/poppins-latin-500-normal-C8OXljZJ.woff2 +0 -0
- package/web/dist/assets/poppins-latin-500-normal-DGXqpDMm.woff +0 -0
- package/web/dist/assets/poppins-latin-600-normal-BJdTmd5m.woff +0 -0
- package/web/dist/assets/poppins-latin-600-normal-zEkxB9Mr.woff2 +0 -0
- package/web/dist/assets/poppins-latin-ext-400-normal-DaBSavcJ.woff +0 -0
- package/web/dist/assets/poppins-latin-ext-400-normal-by3JarPu.woff2 +0 -0
- package/web/dist/assets/poppins-latin-ext-500-normal-CK-6C4Hw.woff2 +0 -0
- package/web/dist/assets/poppins-latin-ext-500-normal-CgAe2rWW.woff +0 -0
- package/web/dist/assets/poppins-latin-ext-600-normal-CAhIAdZj.woff2 +0 -0
- package/web/dist/assets/poppins-latin-ext-600-normal-Df5ffKXP.woff +0 -0
- package/web/dist/assets/preview-pane-connected-CgRK7GzB.js +3 -0
- package/web/dist/assets/project-router-CimAoN1H.js +1 -0
- package/web/dist/assets/project-scope-context-DMpvJqIm.js +4 -0
- package/web/dist/assets/python-gzcpVVnB.js +1 -0
- package/web/dist/assets/queries-BIOp8jLx.js +1 -0
- package/web/dist/assets/react-runtime-CCIEwYL0.js +9 -0
- package/web/dist/assets/repo-git-DVXNOJDT.css +1 -0
- package/web/dist/assets/repo-git-XkyTfP9G.js +1 -0
- package/web/dist/assets/report-reader-CZjYS5Aw.js +1 -0
- package/web/dist/assets/report-title-D4Mbu2Er.js +1 -0
- package/web/dist/assets/reports-B7QAzibP.css +1 -0
- package/web/dist/assets/reports-D_2sFE1y.js +1 -0
- package/web/dist/assets/rolldown-runtime-QTnfLwEv.js +1 -0
- package/web/dist/assets/run-header-BwPDVPpg.js +2 -0
- package/web/dist/assets/run-header-CC7VUTg9.css +1 -0
- package/web/dist/assets/rust-Cfkwpbl8.js +1 -0
- package/web/dist/assets/shellscript-CLZ0U2zV.js +1 -0
- package/web/dist/assets/skill-empty-hint-YDmkqgo-.js +1 -0
- package/web/dist/assets/skills-BkXe4p4q.js +1 -0
- package/web/dist/assets/skills-DFBiAuJG.js +1 -0
- package/web/dist/assets/skills-workflows-C21NystW.css +1 -0
- package/web/dist/assets/sortable.esm-zp_qkYGV.js +5 -0
- package/web/dist/assets/sql-BsFa4tDR.js +1 -0
- package/web/dist/assets/tab-link-BIweqlIZ.js +1 -0
- package/web/dist/assets/task-changes-USNHNm_T.js +1 -0
- package/web/dist/assets/task-commits-kHqlOJe_.js +1 -0
- package/web/dist/assets/task-files-wTWwLR39.js +1 -0
- package/web/dist/assets/task-github-item-GzaQjkF1.js +1 -0
- package/web/dist/assets/task-thread-BZX863UN.js +9 -0
- package/web/dist/assets/task-thread-DtQ6uGfQ.css +1 -0
- package/web/dist/assets/textarea-FAUkHz1K.js +1 -0
- package/web/dist/assets/thread-state-CBzx2hmX.js +4 -0
- package/web/dist/assets/toaster-pthKGWiE.js +1 -0
- package/web/dist/assets/toml-CcmNWLt0.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/use-hand-to-agent-state-Bav9eT3b.js +1 -0
- package/web/dist/assets/use-hand-to-agent-state-C7esPJ-N.css +1 -0
- package/web/dist/assets/useInfiniteQuery-CQI4BO4C.js +1 -0
- package/web/dist/assets/useQuery-Bkq-x4Id.js +1 -0
- package/web/dist/assets/workflows-D871Gx--.js +7 -0
- package/web/dist/assets/ws-DspW9wBH.js +1 -0
- package/web/dist/assets/yaml-rwi0_p6S.js +1 -0
- package/web/dist/assets/zoomable-image-DNc6ORaF.js +1 -0
- package/web/dist/cezarion-lockup-dark.svg +9 -0
- package/web/dist/cezarion-lockup-light.svg +9 -0
- package/web/dist/cezarion-mark-dark.svg +4 -0
- package/web/dist/cezarion-mark-light.svg +4 -0
- package/web/dist/index.html +90 -0
- package/web/dist/live-worker.js +4 -0
|
@@ -0,0 +1,851 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pure claude stream-json → protocol-v2 mapper. `mapClaudeMessage` folds one
|
|
3
|
+
* parsed NDJSON stdout line into `UiEvent`s plus the next mapper state; the
|
|
4
|
+
* runner calls it ALONGSIDE the v1 path (v1 events keep flowing unchanged).
|
|
5
|
+
*
|
|
6
|
+
* Contract: `.ai/analysis/cockpit-ui-redesign/agent-event-protocols.md` §1
|
|
7
|
+
* (wire format) and §7.1 "Claude (stream-json)" (the mapping). Golden
|
|
8
|
+
* fixtures replaying real wire shapes live in `__fixtures__/claude/`.
|
|
9
|
+
*
|
|
10
|
+
* Robustness rule: input is untrusted wire data — the mapper never throws;
|
|
11
|
+
* unknown message/block types map to zero events.
|
|
12
|
+
*
|
|
13
|
+
* State is explicit and treated as immutable: callers thread the returned
|
|
14
|
+
* `state` into the next call. Item ids are deterministic — tool items reuse
|
|
15
|
+
* the wire `tool_use` id; text/thinking blocks (which have no wire id) get
|
|
16
|
+
* sequential `item_<n>` ids, turns get `turn_<n>` — so replaying a stored
|
|
17
|
+
* transcript reproduces the exact event sequence.
|
|
18
|
+
*
|
|
19
|
+
* Plan/task rule: task ids are the harness's, and it only ever reports them in
|
|
20
|
+
* tool RESULT text (`Task #3 created successfully: …`, `#3 [pending] …`), never
|
|
21
|
+
* in the call. So a `TaskCreate` parks until its result lands. Inferring ids by
|
|
22
|
+
* counting creates looks equivalent and is not: `--resume` reopens a session
|
|
23
|
+
* whose list is already at 1..N while a fresh mapper state starts at zero, and
|
|
24
|
+
* the two id spaces then drift silently — updates land on the wrong row.
|
|
25
|
+
*/
|
|
26
|
+
import { hookEventName, isVisibleHookItem } from './hook-items.js';
|
|
27
|
+
import { editWriteKey } from './edit-write-key.js';
|
|
28
|
+
import { toolDisplay } from '../contract/index.js';
|
|
29
|
+
export function createClaudeUiState(opts = {}) {
|
|
30
|
+
return {
|
|
31
|
+
fallbackSessionId: opts.fallbackSessionId,
|
|
32
|
+
sessionStarted: false,
|
|
33
|
+
pendingTurnIds: [],
|
|
34
|
+
turnSeq: 0,
|
|
35
|
+
currentTurnId: null,
|
|
36
|
+
itemSeq: 0,
|
|
37
|
+
sawAssistantText: false,
|
|
38
|
+
openTools: new Map(),
|
|
39
|
+
tasks: new Map(),
|
|
40
|
+
pendingTaskCreates: new Map(),
|
|
41
|
+
backgroundTasks: new Map(),
|
|
42
|
+
backgroundTaskIds: new Map(),
|
|
43
|
+
endedBackgroundTasks: new Set(),
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Claude has no wire-level turn-start — the runner writing a user message to
|
|
48
|
+
* stdin IS the turn boundary, so the runner calls this on each send. Until
|
|
49
|
+
* `init` arrives the event is queued (the seed message is written before the
|
|
50
|
+
* first stdout line is read).
|
|
51
|
+
*/
|
|
52
|
+
export function claudeTurnStarted(state) {
|
|
53
|
+
const turnId = `turn_${state.turnSeq + 1}`;
|
|
54
|
+
const next = { ...state, turnSeq: state.turnSeq + 1, currentTurnId: turnId };
|
|
55
|
+
if (!state.sessionStarted) {
|
|
56
|
+
return { events: [], state: { ...next, pendingTurnIds: [...state.pendingTurnIds, turnId] } };
|
|
57
|
+
}
|
|
58
|
+
return { events: [{ type: 'turn.started', turnId }], state: next };
|
|
59
|
+
}
|
|
60
|
+
/** Fold one parsed stream-json message into v2 events. Never throws. */
|
|
61
|
+
export function mapClaudeMessage(msg, state) {
|
|
62
|
+
if (!isRecord(msg))
|
|
63
|
+
return { events: [], state };
|
|
64
|
+
switch (msg.type) {
|
|
65
|
+
case 'system':
|
|
66
|
+
if (msg.subtype === 'init')
|
|
67
|
+
return mapInit(msg, state);
|
|
68
|
+
// `hook_started`/`hook_progress` render nothing: hooks are completion-only (#961).
|
|
69
|
+
if (msg.subtype === 'hook_response')
|
|
70
|
+
return { events: mapHookResponse(msg), state };
|
|
71
|
+
if (msg.subtype === 'task_started')
|
|
72
|
+
return mapTaskStarted(msg, state);
|
|
73
|
+
if (msg.subtype === 'task_notification')
|
|
74
|
+
return mapTaskNotification(msg, state);
|
|
75
|
+
return { events: [], state };
|
|
76
|
+
case 'assistant':
|
|
77
|
+
return mapAssistant(msg, state);
|
|
78
|
+
case 'user':
|
|
79
|
+
return mapToolResults(msg, state);
|
|
80
|
+
case 'result':
|
|
81
|
+
return mapResult(msg, state);
|
|
82
|
+
default:
|
|
83
|
+
// stream_event, control_request, … — nothing to render yet.
|
|
84
|
+
return { events: [], state };
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
// ---- system/init → session.started ----------------------------------------
|
|
88
|
+
function mapInit(msg, state) {
|
|
89
|
+
const event = {
|
|
90
|
+
type: 'session.started',
|
|
91
|
+
sessionId: str(msg.session_id) ?? state.fallbackSessionId ?? '',
|
|
92
|
+
backend: 'claude',
|
|
93
|
+
};
|
|
94
|
+
const model = str(msg.model);
|
|
95
|
+
if (model !== undefined)
|
|
96
|
+
event.model = model;
|
|
97
|
+
const cwd = str(msg.cwd);
|
|
98
|
+
if (cwd !== undefined)
|
|
99
|
+
event.cwd = cwd;
|
|
100
|
+
if (Array.isArray(msg.tools)) {
|
|
101
|
+
event.tools = msg.tools.filter((tool) => typeof tool === 'string');
|
|
102
|
+
}
|
|
103
|
+
const events = [event];
|
|
104
|
+
// Flush turns that began before init (the seeded first user message).
|
|
105
|
+
for (const turnId of state.pendingTurnIds)
|
|
106
|
+
events.push({ type: 'turn.started', turnId });
|
|
107
|
+
return { events, state: { ...state, sessionStarted: true, pendingTurnIds: [] } };
|
|
108
|
+
}
|
|
109
|
+
// ---- system/hook_response → hook item (#961) --------------------------------
|
|
110
|
+
/**
|
|
111
|
+
* One finished hook run. Status comes from how it exited AND from what its JSON
|
|
112
|
+
* said: exit 2 is Claude's blocking error, and a hook can also block with exit 0
|
|
113
|
+
* through `decision: "block"`, `continue: false` or a `permissionDecision` deny.
|
|
114
|
+
* Entries are what the agent received, never the raw JSON wrapper.
|
|
115
|
+
*/
|
|
116
|
+
function mapHookResponse(msg) {
|
|
117
|
+
const hookId = str(msg.hook_id);
|
|
118
|
+
const event = str(msg.hook_event);
|
|
119
|
+
if (hookId === undefined || event === undefined)
|
|
120
|
+
return [];
|
|
121
|
+
const stdout = typeof msg.stdout === 'string' ? msg.stdout : '';
|
|
122
|
+
const stderr = typeof msg.stderr === 'string' ? msg.stderr : '';
|
|
123
|
+
const exitCode = num(msg.exit_code);
|
|
124
|
+
// Claude reads a hook's stdout only on exit 0; on any other exit it ignores it
|
|
125
|
+
// (exit 2 feeds stderr back instead), so stdout stays raw output, not entries.
|
|
126
|
+
const parsed = exitCode === undefined || exitCode === 0 ? parseHookJson(stdout) : undefined;
|
|
127
|
+
const { entries, blockedByOutput } = hookOutputEntries(parsed, stdout, exitCode);
|
|
128
|
+
const status = hookStatus(msg.outcome, exitCode, blockedByOutput);
|
|
129
|
+
if (status !== 'completed')
|
|
130
|
+
addHookEntry(entries, 'error', stderr);
|
|
131
|
+
const item = completeHookItem(msg, hookId, event, status, entries, stdout, stderr, exitCode);
|
|
132
|
+
return isVisibleHookItem(item) ? [{ type: 'item.completed', item }] : [];
|
|
133
|
+
}
|
|
134
|
+
function addHookEntry(entries, kind, text) {
|
|
135
|
+
if (typeof text === 'string' && text.trim() !== '')
|
|
136
|
+
entries.push({ kind, text: text.trim() });
|
|
137
|
+
}
|
|
138
|
+
function hookOutputEntries(parsed, stdout, exitCode) {
|
|
139
|
+
const entries = [];
|
|
140
|
+
let blockedByOutput = false;
|
|
141
|
+
if (parsed) {
|
|
142
|
+
const specific = isRecord(parsed.hookSpecificOutput) ? parsed.hookSpecificOutput : {};
|
|
143
|
+
addHookEntry(entries, 'context', specific.additionalContext);
|
|
144
|
+
addHookEntry(entries, 'warning', parsed.systemMessage);
|
|
145
|
+
if (parsed.decision === 'block') {
|
|
146
|
+
blockedByOutput = true;
|
|
147
|
+
addHookEntry(entries, 'stop', parsed.reason);
|
|
148
|
+
}
|
|
149
|
+
if (parsed.continue === false)
|
|
150
|
+
blockedByOutput = true;
|
|
151
|
+
addHookEntry(entries, 'stop', parsed.stopReason);
|
|
152
|
+
if (specific.permissionDecision === 'deny') {
|
|
153
|
+
blockedByOutput = true;
|
|
154
|
+
addHookEntry(entries, 'stop', specific.permissionDecisionReason);
|
|
155
|
+
}
|
|
156
|
+
if (specific.permissionDecision === 'ask')
|
|
157
|
+
addHookEntry(entries, 'feedback', specific.permissionDecisionReason);
|
|
158
|
+
}
|
|
159
|
+
else if (exitCode === undefined || exitCode === 0) {
|
|
160
|
+
addHookEntry(entries, 'context', stdout);
|
|
161
|
+
}
|
|
162
|
+
return { entries, blockedByOutput };
|
|
163
|
+
}
|
|
164
|
+
function hookStatus(outcome, exitCode, blockedByOutput) {
|
|
165
|
+
if (outcome === 'cancelled')
|
|
166
|
+
return 'cancelled';
|
|
167
|
+
if (exitCode === 2)
|
|
168
|
+
return 'blocked';
|
|
169
|
+
if (outcome === 'error' || (exitCode !== undefined && exitCode !== 0))
|
|
170
|
+
return 'failed';
|
|
171
|
+
if (blockedByOutput)
|
|
172
|
+
return 'blocked';
|
|
173
|
+
return 'completed';
|
|
174
|
+
}
|
|
175
|
+
function completeHookItem(msg, hookId, event, status, entries, stdout, stderr, exitCode) {
|
|
176
|
+
const item = { kind: 'hook', id: `hook_${hookId}`, event, status, entries };
|
|
177
|
+
const name = str(msg.hook_name);
|
|
178
|
+
if (name !== undefined && name !== event)
|
|
179
|
+
item.name = name;
|
|
180
|
+
if (stdout.trim() !== '')
|
|
181
|
+
item.stdout = stdout;
|
|
182
|
+
if (stderr.trim() !== '')
|
|
183
|
+
item.stderr = stderr;
|
|
184
|
+
if (exitCode !== undefined)
|
|
185
|
+
item.exitCode = exitCode;
|
|
186
|
+
const parentItemId = str(msg.parent_tool_use_id);
|
|
187
|
+
if (parentItemId !== undefined)
|
|
188
|
+
item.parentItemId = parentItemId;
|
|
189
|
+
item.event = hookEventName(item.event);
|
|
190
|
+
return item;
|
|
191
|
+
}
|
|
192
|
+
/** A hook's stdout as a JSON object, or undefined when it is plain text (or JSON
|
|
193
|
+
* that is not an object — `"text"`, `[1,2]`, `null` read as text). */
|
|
194
|
+
function parseHookJson(stdout) {
|
|
195
|
+
const trimmed = stdout.trim();
|
|
196
|
+
if (!trimmed.startsWith('{'))
|
|
197
|
+
return undefined;
|
|
198
|
+
try {
|
|
199
|
+
const value = JSON.parse(trimmed);
|
|
200
|
+
return isRecord(value) ? value : undefined;
|
|
201
|
+
}
|
|
202
|
+
catch {
|
|
203
|
+
return undefined;
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
// ---- background subagents (hearsay-tools/cezarion#2431) ----------------------
|
|
207
|
+
/**
|
|
208
|
+
* A backgrounded `Agent`/`Task` outlives its spawn call: Claude answers the call at once with an
|
|
209
|
+
* `async_launched` acknowledgement and reports the child's end later in `system/task_notification`.
|
|
210
|
+
* The root task item carries `background: true` and stays `running` until that notification. A
|
|
211
|
+
* foreground fork (`is_backgrounded: false`, the forked-skill fixture) keeps the ordinary tool lifecycle,
|
|
212
|
+
* and so does a child's own nested spawn: only a root task item is marked.
|
|
213
|
+
*/
|
|
214
|
+
function isRootTask(item) {
|
|
215
|
+
return item.toolKind === 'task' && item.parentItemId === undefined;
|
|
216
|
+
}
|
|
217
|
+
/** Record a running background item under its tool_use id and, when known, Claude's task id. */
|
|
218
|
+
function withBackgroundTask(state, item, taskId) {
|
|
219
|
+
const backgroundTaskIds = taskId === undefined ? state.backgroundTaskIds : new Map(state.backgroundTaskIds).set(taskId, item.id);
|
|
220
|
+
return { ...state, backgroundTasks: new Map(state.backgroundTasks).set(item.id, item), backgroundTaskIds };
|
|
221
|
+
}
|
|
222
|
+
function mapTaskStarted(msg, state) {
|
|
223
|
+
const toolUseId = str(msg.tool_use_id);
|
|
224
|
+
const open = toolUseId === undefined ? undefined : state.openTools.get(toolUseId);
|
|
225
|
+
if (msg.is_backgrounded !== true || !open || !isRootTask(open) || open.background)
|
|
226
|
+
return { events: [], state };
|
|
227
|
+
const item = { ...open, background: true };
|
|
228
|
+
const next = withBackgroundTask(state, item, str(msg.task_id));
|
|
229
|
+
return { events: [{ type: 'item.updated', item }], state: { ...next, openTools: new Map(state.openTools).set(item.id, item) } };
|
|
230
|
+
}
|
|
231
|
+
/** The spawn acknowledgement's `agentId`, or undefined when the result is not an async launch. */
|
|
232
|
+
function asyncLaunchAgentId(msg) {
|
|
233
|
+
const result = isRecord(msg.tool_use_result) ? msg.tool_use_result : undefined;
|
|
234
|
+
if (!result || (result.status !== 'async_launched' && result.isAsync !== true))
|
|
235
|
+
return undefined;
|
|
236
|
+
return str(result.agentId) ?? null;
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* A background child's spawn acknowledgement: the child runs on, so its item stays running with the
|
|
240
|
+
* acknowledgement as output. Null for a late result of a child that already ended, which must not
|
|
241
|
+
* reopen or rename it; undefined for an ordinary result.
|
|
242
|
+
*/
|
|
243
|
+
function backgroundAck(state, open, raw, launchedAgentId) {
|
|
244
|
+
if (typeof raw.tool_use_id === 'string' && state.endedBackgroundTasks.has(raw.tool_use_id))
|
|
245
|
+
return null;
|
|
246
|
+
if (!open || !isRootTask(open) || raw.is_error === true)
|
|
247
|
+
return undefined;
|
|
248
|
+
if (!open.background && launchedAgentId === undefined)
|
|
249
|
+
return undefined;
|
|
250
|
+
return { ...open, background: true, status: 'running', output: stringifyToolResultContent(raw.content) };
|
|
251
|
+
}
|
|
252
|
+
/** The child's end: completed, failed, or declined for any other status (stopped, killed). */
|
|
253
|
+
function mapTaskNotification(msg, state) {
|
|
254
|
+
const toolUseId = str(msg.tool_use_id);
|
|
255
|
+
const taskId = str(msg.task_id);
|
|
256
|
+
const id = toolUseId !== undefined && state.backgroundTasks.has(toolUseId)
|
|
257
|
+
? toolUseId
|
|
258
|
+
: taskId === undefined ? undefined : state.backgroundTaskIds.get(taskId);
|
|
259
|
+
const running = id === undefined ? undefined : state.backgroundTasks.get(id);
|
|
260
|
+
if (id === undefined || !running)
|
|
261
|
+
return { events: [], state };
|
|
262
|
+
const status = msg.status === 'completed' ? 'completed' : msg.status === 'failed' ? 'failed' : 'declined';
|
|
263
|
+
const item = { ...running, status };
|
|
264
|
+
const summary = str(msg.summary);
|
|
265
|
+
if (status === 'failed' && summary !== undefined)
|
|
266
|
+
item.error = summary;
|
|
267
|
+
const backgroundTasks = new Map(state.backgroundTasks);
|
|
268
|
+
backgroundTasks.delete(id);
|
|
269
|
+
const backgroundTaskIds = new Map([...state.backgroundTaskIds].filter(([, toolId]) => toolId !== id));
|
|
270
|
+
const openTools = new Map(state.openTools);
|
|
271
|
+
openTools.delete(id);
|
|
272
|
+
return {
|
|
273
|
+
events: [{ type: 'item.completed', item }],
|
|
274
|
+
state: { ...state, backgroundTasks, backgroundTaskIds, openTools, endedBackgroundTasks: new Set(state.endedBackgroundTasks).add(id) },
|
|
275
|
+
};
|
|
276
|
+
}
|
|
277
|
+
// ---- assistant blocks → message/reasoning/tool items -----------------------
|
|
278
|
+
function mapAssistant(msg, state) {
|
|
279
|
+
const content = messageContent(msg);
|
|
280
|
+
const parentItemId = str(msg.parent_tool_use_id);
|
|
281
|
+
const events = [];
|
|
282
|
+
let itemSeq = state.itemSeq;
|
|
283
|
+
let openTools = null;
|
|
284
|
+
let tasks = state.tasks;
|
|
285
|
+
let pendingTaskCreates = state.pendingTaskCreates;
|
|
286
|
+
let sawAssistantText = state.sawAssistantText;
|
|
287
|
+
for (const raw of content) {
|
|
288
|
+
if (!isRecord(raw))
|
|
289
|
+
continue;
|
|
290
|
+
if (raw.type === 'text' && typeof raw.text === 'string') {
|
|
291
|
+
const mapped = mapAssistantTextBlock(raw.text, parentItemId, itemSeq);
|
|
292
|
+
itemSeq = mapped.itemSeq;
|
|
293
|
+
if (mapped.sawAssistantText)
|
|
294
|
+
sawAssistantText = true;
|
|
295
|
+
events.push(...mapped.events);
|
|
296
|
+
}
|
|
297
|
+
else if (raw.type === 'thinking' && typeof raw.thinking === 'string' && raw.thinking.trim() !== '') {
|
|
298
|
+
const mapped = mapAssistantThinkingBlock(raw.thinking, parentItemId, itemSeq);
|
|
299
|
+
itemSeq = mapped.itemSeq;
|
|
300
|
+
events.push(...mapped.events);
|
|
301
|
+
}
|
|
302
|
+
else if (raw.type === 'tool_use' && typeof raw.id === 'string' && typeof raw.name === 'string') {
|
|
303
|
+
const mapped = mapAssistantToolUse(raw, parentItemId, state.openTools, openTools, tasks, pendingTaskCreates);
|
|
304
|
+
events.push(...mapped.events);
|
|
305
|
+
openTools = mapped.openTools;
|
|
306
|
+
tasks = mapped.tasks;
|
|
307
|
+
pendingTaskCreates = mapped.pendingTaskCreates;
|
|
308
|
+
}
|
|
309
|
+
// Unknown block types (redacted_thinking, server_tool_use, …): ignored.
|
|
310
|
+
}
|
|
311
|
+
if (events.length === 0)
|
|
312
|
+
return { events, state };
|
|
313
|
+
return {
|
|
314
|
+
events,
|
|
315
|
+
state: { ...state, itemSeq, openTools: openTools ?? state.openTools, tasks, pendingTaskCreates, sawAssistantText },
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
function mapAssistantTextBlock(text, parentItemId, itemSeq) {
|
|
319
|
+
// Whole blocks per API round-trip — claude sends no deltas in this
|
|
320
|
+
// mode, so we never fake `item.delta`s: started + completed.
|
|
321
|
+
// Match the runner's parent-only result fallback guard (#149), while
|
|
322
|
+
// still rendering child blocks as nested v2 messages.
|
|
323
|
+
const sawAssistantText = parentItemId === undefined;
|
|
324
|
+
const item = { kind: 'message', id: `item_${++itemSeq}`, role: 'assistant', text };
|
|
325
|
+
if (parentItemId !== undefined)
|
|
326
|
+
item.parentItemId = parentItemId;
|
|
327
|
+
return { events: [{ type: 'item.started', item }, { type: 'item.completed', item }], itemSeq, sawAssistantText };
|
|
328
|
+
}
|
|
329
|
+
function mapAssistantThinkingBlock(thinking, parentItemId, itemSeq) {
|
|
330
|
+
// Blank `thinking` is skipped: it carries no information and would only
|
|
331
|
+
// mint a dead "Thinking —" row in the session view (#528).
|
|
332
|
+
const item = { kind: 'reasoning', id: `item_${++itemSeq}`, text: thinking };
|
|
333
|
+
if (parentItemId !== undefined)
|
|
334
|
+
item.parentItemId = parentItemId;
|
|
335
|
+
return { events: [{ type: 'item.started', item }, { type: 'item.completed', item }], itemSeq };
|
|
336
|
+
}
|
|
337
|
+
function mapAssistantToolUse(raw, parentItemId, stateOpenTools, openTools, tasks, pendingTaskCreates) {
|
|
338
|
+
const id = raw.id;
|
|
339
|
+
const name = raw.name;
|
|
340
|
+
const events = [];
|
|
341
|
+
const item = startAssistantToolItem(id, name, raw.input, parentItemId);
|
|
342
|
+
events.push({ type: 'item.started', item });
|
|
343
|
+
({ tasks, pendingTaskCreates } = applyAssistantToolPlan(name, id, raw.input, parentItemId, tasks, pendingTaskCreates, events));
|
|
344
|
+
openTools ??= new Map(stateOpenTools);
|
|
345
|
+
openTools.set(id, item);
|
|
346
|
+
return { events, openTools, tasks, pendingTaskCreates };
|
|
347
|
+
}
|
|
348
|
+
function startAssistantToolItem(id, name, input, parentItemId) {
|
|
349
|
+
const display = toolDisplay(name, input);
|
|
350
|
+
const item = {
|
|
351
|
+
kind: 'tool',
|
|
352
|
+
id,
|
|
353
|
+
name,
|
|
354
|
+
toolKind: display.toolKind,
|
|
355
|
+
title: display.title,
|
|
356
|
+
// claude has no pending phase — a tool_use is already executing.
|
|
357
|
+
status: 'running',
|
|
358
|
+
};
|
|
359
|
+
if (input !== undefined)
|
|
360
|
+
item.input = input;
|
|
361
|
+
const edit = editArtifacts(name, input);
|
|
362
|
+
if (edit) {
|
|
363
|
+
if (edit.diffs)
|
|
364
|
+
item.diffs = edit.diffs;
|
|
365
|
+
item.locations = edit.locations;
|
|
366
|
+
}
|
|
367
|
+
if (parentItemId !== undefined)
|
|
368
|
+
item.parentItemId = parentItemId;
|
|
369
|
+
return item;
|
|
370
|
+
}
|
|
371
|
+
function applyAssistantToolPlan(name, id, input, parentItemId, tasks, pendingTaskCreates, events) {
|
|
372
|
+
if (name === 'TodoWrite') {
|
|
373
|
+
const entries = planEntries(input);
|
|
374
|
+
if (entries)
|
|
375
|
+
events.push({ type: 'plan.updated', entries });
|
|
376
|
+
return { tasks, pendingTaskCreates };
|
|
377
|
+
}
|
|
378
|
+
if (parentItemId !== undefined)
|
|
379
|
+
return { tasks, pendingTaskCreates };
|
|
380
|
+
// Task tools are main-agent-only: a subagent's tool list has no
|
|
381
|
+
// TaskCreate/TaskUpdate/TaskList at all (verified against the live
|
|
382
|
+
// harness). Should that change, its id space is its own, so folding a
|
|
383
|
+
// subagent's ids into this map would corrupt the main plan — ignore
|
|
384
|
+
// them until the shared-or-separate question is answered on the wire.
|
|
385
|
+
const pending = pendingTaskCreate(name, input);
|
|
386
|
+
if (pending) {
|
|
387
|
+
// The id is minted by the harness and only revealed in the result, so
|
|
388
|
+
// the entry parks here until then (`applyTaskCreateResult`). Counting
|
|
389
|
+
// creates to guess it desyncs the moment a create is rejected or the
|
|
390
|
+
// session resumes with a task list already at 1..N.
|
|
391
|
+
return { tasks, pendingTaskCreates: new Map(pendingTaskCreates).set(id, pending) };
|
|
392
|
+
}
|
|
393
|
+
const folded = applyTaskUpdate(name, input, tasks);
|
|
394
|
+
if (folded) {
|
|
395
|
+
events.push({ type: 'plan.updated', entries: [...folded.values()] });
|
|
396
|
+
return { tasks: folded, pendingTaskCreates };
|
|
397
|
+
}
|
|
398
|
+
return { tasks, pendingTaskCreates };
|
|
399
|
+
}
|
|
400
|
+
/** claude `Edit`/`Write` inputs carry the diff inline (§7.1). */
|
|
401
|
+
function editArtifacts(name, input) {
|
|
402
|
+
const key = editWriteKey(name);
|
|
403
|
+
if (!key)
|
|
404
|
+
return undefined;
|
|
405
|
+
if (!isRecord(input) || typeof input.file_path !== 'string' || input.file_path === '')
|
|
406
|
+
return undefined;
|
|
407
|
+
const path = input.file_path;
|
|
408
|
+
const locations = [{ path }];
|
|
409
|
+
if (key === 'edit') {
|
|
410
|
+
if (typeof input.old_string === 'string' && typeof input.new_string === 'string') {
|
|
411
|
+
return { diffs: [{ path, oldText: input.old_string, newText: input.new_string }], locations };
|
|
412
|
+
}
|
|
413
|
+
return { locations };
|
|
414
|
+
}
|
|
415
|
+
// Write: a created (or fully replaced) file — `oldText: null` per FileDiff.
|
|
416
|
+
const diff = { path, oldText: null };
|
|
417
|
+
if (typeof input.content === 'string')
|
|
418
|
+
diff.newText = input.content;
|
|
419
|
+
return { diffs: [diff], locations };
|
|
420
|
+
}
|
|
421
|
+
export const PLAN_STATUSES = ['pending', 'in_progress', 'completed'];
|
|
422
|
+
/** `TaskUpdate.status` is `pending | in_progress | completed | deleted`. `deleted`
|
|
423
|
+
* is handled by the caller — it drops the entry, since PlanStatus has no such
|
|
424
|
+
* state. `running` is tolerated defensively as an alias for `in_progress`. */
|
|
425
|
+
function normalizePlanStatus(value) {
|
|
426
|
+
if (value === 'running')
|
|
427
|
+
return 'in_progress';
|
|
428
|
+
return PLAN_STATUSES.find((status) => status === value);
|
|
429
|
+
}
|
|
430
|
+
/** `TaskCreate` result: `Task #12 created successfully: Ship it`. The id here is
|
|
431
|
+
* the harness's own, which is why it — not a count of creates — is the key. */
|
|
432
|
+
const TASK_CREATED_RE = /^Task #(\d+) created successfully\b/;
|
|
433
|
+
/** `TaskList` line: `#12 [in_progress] Ship it`. */
|
|
434
|
+
const TASK_LIST_LINE_RE = /^#(\d+) \[([a-z_]+)\] (.*)$/;
|
|
435
|
+
/** A `TaskCreate` call parked until its result reveals the harness id, or
|
|
436
|
+
* `undefined` when this is not a renderable create. */
|
|
437
|
+
function pendingTaskCreate(name, input) {
|
|
438
|
+
if (name.toLowerCase() !== 'taskcreate')
|
|
439
|
+
return undefined;
|
|
440
|
+
// `subject` is required by the schema; without one there is nothing to render.
|
|
441
|
+
if (!isRecord(input) || typeof input.subject !== 'string')
|
|
442
|
+
return undefined;
|
|
443
|
+
const content = input.subject.trim();
|
|
444
|
+
if (content === '')
|
|
445
|
+
return undefined;
|
|
446
|
+
const entry = { content, status: 'pending' };
|
|
447
|
+
if (typeof input.activeForm === 'string' && input.activeForm !== '')
|
|
448
|
+
entry.activeForm = input.activeForm;
|
|
449
|
+
return entry;
|
|
450
|
+
}
|
|
451
|
+
/** Land a parked create under the id the harness reported. A result that does
|
|
452
|
+
* not confirm creation (the tool errored, or the wording changed) drops the
|
|
453
|
+
* entry rather than inventing an id for it. */
|
|
454
|
+
function applyTaskCreateResult(entry, resultText, tasks) {
|
|
455
|
+
const id = TASK_CREATED_RE.exec(resultText.trim())?.[1];
|
|
456
|
+
if (id === undefined)
|
|
457
|
+
return undefined;
|
|
458
|
+
return new Map(tasks).set(id, entry);
|
|
459
|
+
}
|
|
460
|
+
/** Rebuild the plan from a `TaskList` result — the only wire message carrying
|
|
461
|
+
* the harness's whole task list, and so the one way a resumed session (whose
|
|
462
|
+
* tasks were created before this mapper existed) recovers them.
|
|
463
|
+
*
|
|
464
|
+
* Returns `undefined` unless every non-blank line parses: a partial parse of an
|
|
465
|
+
* unrecognized format would silently drop live rows. `TaskList` omits
|
|
466
|
+
* `activeForm`, so it is carried over from the entry already held for that id. */
|
|
467
|
+
function applyTaskListResult(resultText, tasks) {
|
|
468
|
+
const lines = resultText.split('\n').map((line) => line.trim()).filter((line) => line !== '');
|
|
469
|
+
if (lines.length === 0)
|
|
470
|
+
return undefined;
|
|
471
|
+
const next = new Map();
|
|
472
|
+
for (const line of lines) {
|
|
473
|
+
const match = TASK_LIST_LINE_RE.exec(line);
|
|
474
|
+
if (!match)
|
|
475
|
+
return undefined;
|
|
476
|
+
const [, id, rawStatus, rawSubject] = match;
|
|
477
|
+
const status = normalizePlanStatus(rawStatus);
|
|
478
|
+
const content = (rawSubject ?? '').trim();
|
|
479
|
+
if (id === undefined || status === undefined || content === '')
|
|
480
|
+
return undefined;
|
|
481
|
+
const entry = { content, status };
|
|
482
|
+
const activeForm = tasks.get(id)?.activeForm;
|
|
483
|
+
if (activeForm !== undefined)
|
|
484
|
+
entry.activeForm = activeForm;
|
|
485
|
+
next.set(id, entry);
|
|
486
|
+
}
|
|
487
|
+
return next;
|
|
488
|
+
}
|
|
489
|
+
/** Fold one `TaskUpdate` into the plan. Its `taskId` is already the harness's
|
|
490
|
+
* own id, so it applies at call time; an id this mapper never saw created is
|
|
491
|
+
* dropped (a resumed session's pre-existing tasks land via `TaskList`). */
|
|
492
|
+
function applyTaskUpdate(name, input, tasks) {
|
|
493
|
+
if (name.toLowerCase() !== 'taskupdate')
|
|
494
|
+
return undefined;
|
|
495
|
+
if (!isRecord(input))
|
|
496
|
+
return undefined;
|
|
497
|
+
const id = typeof input.taskId === 'string'
|
|
498
|
+
? input.taskId
|
|
499
|
+
: typeof input.taskId === 'number'
|
|
500
|
+
? String(input.taskId)
|
|
501
|
+
: undefined;
|
|
502
|
+
if (id === undefined)
|
|
503
|
+
return undefined;
|
|
504
|
+
const existing = tasks.get(id);
|
|
505
|
+
if (existing === undefined)
|
|
506
|
+
return undefined;
|
|
507
|
+
// `deleted` removes the task outright ("permanently removes the task"). The
|
|
508
|
+
// harness does not renumber what is left, so surviving ids stay valid.
|
|
509
|
+
if (input.status === 'deleted') {
|
|
510
|
+
const next = new Map(tasks);
|
|
511
|
+
next.delete(id);
|
|
512
|
+
return next;
|
|
513
|
+
}
|
|
514
|
+
const entry = { ...existing };
|
|
515
|
+
let changed = false;
|
|
516
|
+
const status = normalizePlanStatus(input.status);
|
|
517
|
+
if (status !== undefined && status !== existing.status) {
|
|
518
|
+
entry.status = status;
|
|
519
|
+
changed = true;
|
|
520
|
+
}
|
|
521
|
+
if (typeof input.subject === 'string') {
|
|
522
|
+
const content = input.subject.trim();
|
|
523
|
+
if (content !== '' && content !== existing.content) {
|
|
524
|
+
entry.content = content;
|
|
525
|
+
changed = true;
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
// An empty activeForm would blank the dock's label exactly while the row is
|
|
529
|
+
// in progress, so it is ignored like an empty subject.
|
|
530
|
+
if (typeof input.activeForm === 'string' && input.activeForm !== '' && input.activeForm !== existing.activeForm) {
|
|
531
|
+
entry.activeForm = input.activeForm;
|
|
532
|
+
changed = true;
|
|
533
|
+
}
|
|
534
|
+
if (!changed)
|
|
535
|
+
return undefined;
|
|
536
|
+
return new Map(tasks).set(id, entry);
|
|
537
|
+
}
|
|
538
|
+
/** TodoWrite input `{todos:[{content,status,activeForm}]}` → plan entries
|
|
539
|
+
* (full-replacement semantics — an empty list is a valid plan). */
|
|
540
|
+
function planEntries(input) {
|
|
541
|
+
if (!isRecord(input) || !Array.isArray(input.todos))
|
|
542
|
+
return undefined;
|
|
543
|
+
const entries = [];
|
|
544
|
+
for (const todo of input.todos) {
|
|
545
|
+
if (!isRecord(todo) || typeof todo.content !== 'string')
|
|
546
|
+
continue;
|
|
547
|
+
const status = PLAN_STATUSES.find((s) => s === todo.status);
|
|
548
|
+
if (status === undefined)
|
|
549
|
+
continue;
|
|
550
|
+
const entry = { content: todo.content, status };
|
|
551
|
+
if (typeof todo.activeForm === 'string')
|
|
552
|
+
entry.activeForm = todo.activeForm;
|
|
553
|
+
entries.push(entry);
|
|
554
|
+
}
|
|
555
|
+
return entries;
|
|
556
|
+
}
|
|
557
|
+
// ---- user tool_result blocks → item.completed (+ image events) -------------
|
|
558
|
+
function mapToolResults(msg, state) {
|
|
559
|
+
const content = messageContent(msg);
|
|
560
|
+
const parentItemId = str(msg.parent_tool_use_id);
|
|
561
|
+
const events = [];
|
|
562
|
+
let openTools = null;
|
|
563
|
+
let tasks = state.tasks;
|
|
564
|
+
let pendingTaskCreates = state.pendingTaskCreates;
|
|
565
|
+
let background = state;
|
|
566
|
+
const launchedAgentId = asyncLaunchAgentId(msg);
|
|
567
|
+
for (const raw of content) {
|
|
568
|
+
if (!isRecord(raw) || raw.type !== 'tool_result' || typeof raw.tool_use_id !== 'string')
|
|
569
|
+
continue;
|
|
570
|
+
const open = (openTools ?? state.openTools).get(raw.tool_use_id);
|
|
571
|
+
const ack = backgroundAck(state, open, raw, launchedAgentId);
|
|
572
|
+
if (ack !== undefined) {
|
|
573
|
+
if (ack !== null) {
|
|
574
|
+
events.push({ type: 'item.updated', item: ack });
|
|
575
|
+
background = withBackgroundTask(background, ack, launchedAgentId ?? undefined);
|
|
576
|
+
openTools ??= new Map(state.openTools);
|
|
577
|
+
openTools.delete(raw.tool_use_id);
|
|
578
|
+
}
|
|
579
|
+
continue;
|
|
580
|
+
}
|
|
581
|
+
// A result for a tool we never saw start (state loss) still completes an
|
|
582
|
+
// item — consumers upsert by id, so a lone snapshot renders fine.
|
|
583
|
+
const item = open
|
|
584
|
+
? { ...open }
|
|
585
|
+
: { kind: 'tool', id: raw.tool_use_id, name: 'unknown', toolKind: 'other', title: 'Tool', status: 'running' };
|
|
586
|
+
if (!open && parentItemId !== undefined)
|
|
587
|
+
item.parentItemId = parentItemId;
|
|
588
|
+
const text = stringifyToolResultContent(raw.content);
|
|
589
|
+
if (raw.is_error === true) {
|
|
590
|
+
item.status = 'failed';
|
|
591
|
+
item.error = text;
|
|
592
|
+
}
|
|
593
|
+
else {
|
|
594
|
+
item.status = 'completed';
|
|
595
|
+
item.output = text;
|
|
596
|
+
}
|
|
597
|
+
events.push({ type: 'item.completed', item });
|
|
598
|
+
for (const img of toolResultImageBlocks(raw.content)) {
|
|
599
|
+
events.push({ type: 'image', itemId: raw.tool_use_id, mediaType: img.media_type, data: img.data });
|
|
600
|
+
}
|
|
601
|
+
({ tasks, pendingTaskCreates } = applyTaskToolResult(open, raw.tool_use_id, raw.is_error === true, text, tasks, pendingTaskCreates, events));
|
|
602
|
+
openTools ??= new Map(state.openTools);
|
|
603
|
+
openTools.delete(raw.tool_use_id);
|
|
604
|
+
}
|
|
605
|
+
if (events.length === 0)
|
|
606
|
+
return { events, state };
|
|
607
|
+
const { backgroundTasks, backgroundTaskIds } = background;
|
|
608
|
+
return {
|
|
609
|
+
events,
|
|
610
|
+
state: { ...state, openTools: openTools ?? state.openTools, tasks, pendingTaskCreates, backgroundTasks, backgroundTaskIds },
|
|
611
|
+
};
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* The task tools report their outcome only as result text — `is_error` stays unset even for a
|
|
615
|
+
* rejected update ("Task not found"), so the text is the only signal there is. A `TaskCreate`
|
|
616
|
+
* result lands its parked entry; a root `TaskList` result resyncs the plan. Pushes any
|
|
617
|
+
* `plan.updated` it causes onto `events`.
|
|
618
|
+
*/
|
|
619
|
+
function applyTaskToolResult(open, toolUseId, isError, text, tasks, pendingTaskCreates, events) {
|
|
620
|
+
const parked = pendingTaskCreates.get(toolUseId);
|
|
621
|
+
if (parked !== undefined) {
|
|
622
|
+
const next = new Map(pendingTaskCreates);
|
|
623
|
+
next.delete(toolUseId);
|
|
624
|
+
const landed = !isError ? applyTaskCreateResult(parked, text, tasks) : undefined;
|
|
625
|
+
if (landed)
|
|
626
|
+
events.push({ type: 'plan.updated', entries: [...landed.values()] });
|
|
627
|
+
// `parentItemId` here mirrors the call-side subagent guard: a subagent's
|
|
628
|
+
// list describes its own tasks, so it must not rewrite the main plan.
|
|
629
|
+
return { tasks: landed || tasks, pendingTaskCreates: next };
|
|
630
|
+
}
|
|
631
|
+
if (open?.name.toLowerCase() !== 'tasklist' || open.parentItemId !== undefined || isError)
|
|
632
|
+
return { tasks, pendingTaskCreates };
|
|
633
|
+
const resynced = applyTaskListResult(text, tasks);
|
|
634
|
+
if (!resynced || samePlan(resynced, tasks))
|
|
635
|
+
return { tasks, pendingTaskCreates };
|
|
636
|
+
events.push({ type: 'plan.updated', entries: [...resynced.values()] });
|
|
637
|
+
return { tasks: resynced, pendingTaskCreates };
|
|
638
|
+
}
|
|
639
|
+
/** Whether a `TaskList` resync would change the rendered plan — it usually just
|
|
640
|
+
* restates what the mapper already has, and re-emitting is pure dock churn. */
|
|
641
|
+
function samePlan(a, b) {
|
|
642
|
+
if (a.size !== b.size)
|
|
643
|
+
return false;
|
|
644
|
+
for (const [id, entry] of a) {
|
|
645
|
+
const other = b.get(id);
|
|
646
|
+
if (other === undefined ||
|
|
647
|
+
other.content !== entry.content ||
|
|
648
|
+
other.status !== entry.status ||
|
|
649
|
+
other.activeForm !== entry.activeForm) {
|
|
650
|
+
return false;
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
return true;
|
|
654
|
+
}
|
|
655
|
+
// ---- result → declined tools + turn.completed + usage.updated --------------
|
|
656
|
+
function mapResult(msg, state) {
|
|
657
|
+
const events = [];
|
|
658
|
+
const denials = completePermissionDenials(msg, state);
|
|
659
|
+
events.push(...denials.events);
|
|
660
|
+
let itemSeq = denials.itemSeq;
|
|
661
|
+
const fallback = fallbackResultMessage(msg, state.sawAssistantText, itemSeq);
|
|
662
|
+
events.push(...fallback.events);
|
|
663
|
+
itemSeq = fallback.itemSeq;
|
|
664
|
+
let turnSeq = state.turnSeq;
|
|
665
|
+
const turnId = state.currentTurnId ?? `turn_${++turnSeq}`;
|
|
666
|
+
events.push(...completeTurnEvents(msg, turnId));
|
|
667
|
+
return {
|
|
668
|
+
events,
|
|
669
|
+
state: {
|
|
670
|
+
...state,
|
|
671
|
+
itemSeq,
|
|
672
|
+
turnSeq,
|
|
673
|
+
currentTurnId: null,
|
|
674
|
+
openTools: denials.openTools ?? state.openTools,
|
|
675
|
+
sawAssistantText: fallback.sawAssistantText,
|
|
676
|
+
},
|
|
677
|
+
};
|
|
678
|
+
}
|
|
679
|
+
function completePermissionDenials(msg, state) {
|
|
680
|
+
const events = [];
|
|
681
|
+
let itemSeq = state.itemSeq;
|
|
682
|
+
let openTools = null;
|
|
683
|
+
if (!Array.isArray(msg.permission_denials))
|
|
684
|
+
return { events, itemSeq, openTools };
|
|
685
|
+
for (const raw of msg.permission_denials) {
|
|
686
|
+
if (!isRecord(raw) || typeof raw.tool_name !== 'string')
|
|
687
|
+
continue;
|
|
688
|
+
const id = typeof raw.tool_use_id === 'string' ? raw.tool_use_id : `item_${++itemSeq}`;
|
|
689
|
+
const open = (openTools ?? state.openTools).get(id);
|
|
690
|
+
let item;
|
|
691
|
+
if (open) {
|
|
692
|
+
item = { ...open, status: 'declined' };
|
|
693
|
+
openTools ??= new Map(state.openTools);
|
|
694
|
+
openTools.delete(id);
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
const display = toolDisplay(raw.tool_name, raw.tool_input);
|
|
698
|
+
item = {
|
|
699
|
+
kind: 'tool',
|
|
700
|
+
id,
|
|
701
|
+
name: raw.tool_name,
|
|
702
|
+
toolKind: display.toolKind,
|
|
703
|
+
title: display.title,
|
|
704
|
+
status: 'declined',
|
|
705
|
+
};
|
|
706
|
+
if (raw.tool_input !== undefined)
|
|
707
|
+
item.input = raw.tool_input;
|
|
708
|
+
}
|
|
709
|
+
events.push({ type: 'item.completed', item });
|
|
710
|
+
}
|
|
711
|
+
return { events, itemSeq, openTools };
|
|
712
|
+
}
|
|
713
|
+
function fallbackResultMessage(msg, sawAssistantText, itemSeq) {
|
|
714
|
+
// The result fallback, mirroring claude-cli-runner.ts's `textChunks.length === 0`
|
|
715
|
+
// branch: a session that streamed no parent assistant text block carries its whole
|
|
716
|
+
// reply on `msg.result`. The runner emits a v1 `text` for it; without the v2
|
|
717
|
+
// twin below, the cockpit's per-turn "v2 wins" dedup drops that line and the
|
|
718
|
+
// turn renders tool cards with no prose at all.
|
|
719
|
+
if (sawAssistantText || typeof msg.result !== 'string' || msg.result === '') {
|
|
720
|
+
return { events: [], itemSeq, sawAssistantText };
|
|
721
|
+
}
|
|
722
|
+
const item = {
|
|
723
|
+
kind: 'message',
|
|
724
|
+
id: `item_${++itemSeq}`,
|
|
725
|
+
role: 'assistant',
|
|
726
|
+
text: msg.result,
|
|
727
|
+
};
|
|
728
|
+
return {
|
|
729
|
+
events: [{ type: 'item.started', item }, { type: 'item.completed', item }],
|
|
730
|
+
itemSeq,
|
|
731
|
+
sawAssistantText: true,
|
|
732
|
+
};
|
|
733
|
+
}
|
|
734
|
+
function completeTurnEvents(msg, turnId) {
|
|
735
|
+
const usage = rawTokenUsage(msg.usage);
|
|
736
|
+
const costUsd = typeof msg.total_cost_usd === 'number' && Number.isFinite(msg.total_cost_usd)
|
|
737
|
+
? msg.total_cost_usd
|
|
738
|
+
: undefined;
|
|
739
|
+
const turnEvent = { type: 'turn.completed', turnId, stopReason: resultStopReason(msg) };
|
|
740
|
+
if (usage)
|
|
741
|
+
turnEvent.usage = usage;
|
|
742
|
+
if (costUsd !== undefined)
|
|
743
|
+
turnEvent.costUsd = costUsd;
|
|
744
|
+
const events = [turnEvent];
|
|
745
|
+
if (usage) {
|
|
746
|
+
const usageEvent = { type: 'usage.updated', usage };
|
|
747
|
+
if (costUsd !== undefined)
|
|
748
|
+
usageEvent.costUsd = costUsd;
|
|
749
|
+
events.push(usageEvent);
|
|
750
|
+
}
|
|
751
|
+
return events;
|
|
752
|
+
}
|
|
753
|
+
/** §7.1: success→end_turn, error_max_turns→max_tokens,
|
|
754
|
+
* error_during_execution→error; unknown subtypes fall back on `is_error`.
|
|
755
|
+
*
|
|
756
|
+
* `success` still has to consult `is_error`: Claude Code reports a revoked
|
|
757
|
+
* credential (and a usage-limit stop) in an `is_error: true` result whose
|
|
758
|
+
* subtype is nevertheless `success`, so trusting the subtype alone told the
|
|
759
|
+
* cockpit an auth failure was a clean end of turn — group 1's failure mode
|
|
760
|
+
* (#53, #54) on claude's wire, found by the harness parity matrix's S7 row. */
|
|
761
|
+
function resultStopReason(msg) {
|
|
762
|
+
switch (msg.subtype) {
|
|
763
|
+
case 'success':
|
|
764
|
+
return msg.is_error === true ? 'error' : 'end_turn';
|
|
765
|
+
case 'error_max_turns':
|
|
766
|
+
return 'max_tokens';
|
|
767
|
+
case 'error_during_execution':
|
|
768
|
+
return 'error';
|
|
769
|
+
default:
|
|
770
|
+
return msg.is_error === true ? 'error' : 'end_turn';
|
|
771
|
+
}
|
|
772
|
+
}
|
|
773
|
+
/** Raw counts straight off the wire — never cost-weighted (that stays a
|
|
774
|
+
* presentation concern; v1's `token-usage` keeps the weighted number). */
|
|
775
|
+
function rawTokenUsage(usage) {
|
|
776
|
+
if (!isRecord(usage))
|
|
777
|
+
return undefined;
|
|
778
|
+
const input = num(usage.input_tokens) ?? 0;
|
|
779
|
+
const output = num(usage.output_tokens) ?? 0;
|
|
780
|
+
const cacheRead = num(usage.cache_read_input_tokens);
|
|
781
|
+
const cacheWrite = num(usage.cache_creation_input_tokens);
|
|
782
|
+
const result = {
|
|
783
|
+
input,
|
|
784
|
+
output,
|
|
785
|
+
total: input + output + (cacheRead ?? 0) + (cacheWrite ?? 0),
|
|
786
|
+
};
|
|
787
|
+
if (cacheRead !== undefined)
|
|
788
|
+
result.cacheRead = cacheRead;
|
|
789
|
+
if (cacheWrite !== undefined)
|
|
790
|
+
result.cacheWrite = cacheWrite;
|
|
791
|
+
return result;
|
|
792
|
+
}
|
|
793
|
+
// ---- shared wire helpers (also used by the v1 path in the runner) ----------
|
|
794
|
+
/** Flatten a `tool_result.content` (string or block array) to display text.
|
|
795
|
+
* Image blocks become a placeholder — they ride as their own events. */
|
|
796
|
+
export function stringifyToolResultContent(content) {
|
|
797
|
+
if (typeof content === 'string')
|
|
798
|
+
return content;
|
|
799
|
+
if (Array.isArray(content)) {
|
|
800
|
+
return content
|
|
801
|
+
.map((c) => {
|
|
802
|
+
const b = c;
|
|
803
|
+
if (b?.type === 'text' && typeof b.text === 'string')
|
|
804
|
+
return b.text;
|
|
805
|
+
if (b?.type === 'image')
|
|
806
|
+
return '[screenshot]'; // emitted as its own image event
|
|
807
|
+
try {
|
|
808
|
+
return JSON.stringify(b);
|
|
809
|
+
}
|
|
810
|
+
catch {
|
|
811
|
+
return String(b);
|
|
812
|
+
}
|
|
813
|
+
})
|
|
814
|
+
.join('\n');
|
|
815
|
+
}
|
|
816
|
+
try {
|
|
817
|
+
// `JSON.stringify(undefined)` is `undefined`: a result without content is empty text.
|
|
818
|
+
return JSON.stringify(content) ?? '';
|
|
819
|
+
}
|
|
820
|
+
catch {
|
|
821
|
+
return String(content);
|
|
822
|
+
}
|
|
823
|
+
}
|
|
824
|
+
/** base64 image blocks inside a tool_result's content, if any. */
|
|
825
|
+
export function toolResultImageBlocks(content) {
|
|
826
|
+
if (!Array.isArray(content))
|
|
827
|
+
return [];
|
|
828
|
+
const out = [];
|
|
829
|
+
for (const c of content) {
|
|
830
|
+
const b = c;
|
|
831
|
+
if (b?.type === 'image' && b.source?.type === 'base64' && b.source.media_type && b.source.data) {
|
|
832
|
+
out.push({ media_type: b.source.media_type, data: b.source.data });
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
return out;
|
|
836
|
+
}
|
|
837
|
+
// ---- tiny guards ------------------------------------------------------------
|
|
838
|
+
function isRecord(value) {
|
|
839
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value);
|
|
840
|
+
}
|
|
841
|
+
function messageContent(msg) {
|
|
842
|
+
const message = isRecord(msg.message) ? msg.message : undefined;
|
|
843
|
+
return message && Array.isArray(message.content) ? message.content : [];
|
|
844
|
+
}
|
|
845
|
+
function str(value) {
|
|
846
|
+
return typeof value === 'string' && value !== '' ? value : undefined;
|
|
847
|
+
}
|
|
848
|
+
function num(value) {
|
|
849
|
+
return typeof value === 'number' && Number.isFinite(value) ? value : undefined;
|
|
850
|
+
}
|
|
851
|
+
//# sourceMappingURL=claude-ui-mapper.js.map
|