@hearsay-tools/squawk 0.18.0-pr3452.6067 → 0.18.0-pr3455.6157
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/activity/wait.js +1 -1
- package/dist/agent-config/account-identity.js +1 -1
- package/dist/agent-config/catalog.js +1 -1
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/model-settings/pi.js +3 -3
- package/dist/agent-config/seed.d.ts +2 -2
- package/dist/agent-config/seed.js +3 -3
- package/dist/agent-config/seed.js.map +1 -1
- package/dist/artifacts/store.js +1 -1
- package/dist/artifacts/store.js.map +1 -1
- package/dist/automations/prompts.js +3 -2
- package/dist/automations/prompts.js.map +1 -1
- package/dist/automations/schedule-runner.js +1 -1
- package/dist/automations/schedule-runner.js.map +1 -1
- package/dist/automations/store.js +1 -1
- package/dist/automations/store.js.map +1 -1
- package/dist/automations/task-template.js +1 -1
- package/dist/autosave-commit.d.ts +52 -0
- package/dist/autosave-commit.js +378 -0
- package/dist/autosave-commit.js.map +1 -0
- package/dist/ci-wait/client.d.ts +5 -5
- package/dist/ci-wait/client.js +10 -10
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +16 -25
- package/dist/ci-wait/controller.js +11 -24
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/errors.d.ts +10 -1
- package/dist/ci-wait/errors.js +30 -15
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/injection.js +2 -2
- package/dist/ci-wait/injection.js.map +1 -1
- package/dist/ci-wait/mcp.js +3 -3
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/ci-wait/resource-pool.d.ts +17 -0
- package/dist/ci-wait/resource-pool.js +51 -0
- package/dist/ci-wait/resource-pool.js.map +1 -0
- package/dist/ci-wait/resources.d.ts +5 -8
- package/dist/ci-wait/resources.js +8 -42
- package/dist/ci-wait/resources.js.map +1 -1
- package/dist/ci-wait/tool-catalog.d.ts +3 -3
- package/dist/ci-wait/tool-catalog.js +19 -18
- package/dist/ci-wait/tool-catalog.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +9 -9
- package/dist/ci-wait/tools.js +18 -17
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +2 -2
- package/dist/config.js.map +1 -1
- package/dist/contract/ask-schema.d.ts +2 -2
- package/dist/contract/attachments.d.ts +2 -2
- package/dist/contract/conversations.d.ts +1 -1
- package/dist/contract/delegation.d.ts +2 -2
- package/dist/contract/events.d.ts +3 -3
- package/dist/contract/handoff.d.ts +2 -2
- package/dist/contract/index.d.ts +1 -1
- package/dist/contract/index.js +33 -33
- package/dist/contract/run-predicates.d.ts +1 -1
- package/dist/contract/scheduled-tasks.d.ts +3 -3
- package/dist/contract/skill-sources.d.ts +2 -2
- package/dist/contract/task-options.d.ts +1 -1
- package/dist/contract/usage-limit-hold.d.ts +1 -1
- package/dist/contract/waits.d.ts +30 -30
- package/dist/core/agent-env.js +3 -3
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-profiles.d.ts +2 -2
- package/dist/core/agent-profiles.js +2 -2
- package/dist/core/agent-runner.d.ts +6 -3
- package/dist/core/agent-runner.js +3 -2
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +1 -1
- package/dist/core/claude-cli-runner.js +30 -27
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/claude-model-catalog.js +3 -3
- package/dist/core/claude-model-catalog.js.map +1 -1
- package/dist/core/claude-stream.d.ts +1 -1
- package/dist/core/claude-stream.js +2 -2
- package/dist/core/claude-stream.js.map +1 -1
- package/dist/core/codex-app-server-runner.d.ts +2 -2
- package/dist/core/codex-app-server-runner.js +25 -24
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.d.ts +3 -1
- package/dist/core/codex-app-server-transport.js +7 -7
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/codex-approvals.d.ts +3 -3
- package/dist/core/codex-approvals.js +7 -7
- package/dist/core/codex-approvals.js.map +1 -1
- package/dist/core/codex-native-frames.d.ts +6 -6
- package/dist/core/codex-native-frames.js +10 -9
- package/dist/core/codex-native-frames.js.map +1 -1
- package/dist/core/codex-turn-outcome.js +1 -1
- package/dist/core/codex-turn-outcome.js.map +1 -1
- package/dist/core/codex-ui-mapper.js +1 -1
- package/dist/core/codex-ui-mapper.js.map +1 -1
- package/dist/core/cursor-cli-flags.d.ts +1 -1
- package/dist/core/cursor-cli-flags.js +2 -2
- package/dist/core/cursor-cli-flags.js.map +1 -1
- package/dist/core/cursor-model-catalog.d.ts +1 -1
- package/dist/core/cursor-model-catalog.js +1 -1
- package/dist/core/cursor-print-capabilities.js +1 -1
- package/dist/core/cursor-print-capabilities.js.map +1 -1
- package/dist/core/cursor-print-process.d.ts +2 -0
- package/dist/core/cursor-print-process.js +5 -5
- package/dist/core/cursor-print-process.js.map +1 -1
- package/dist/core/cursor-print-runner.js +16 -13
- package/dist/core/cursor-print-runner.js.map +1 -1
- package/dist/core/cursor-runner.js +3 -2
- package/dist/core/cursor-runner.js.map +1 -1
- package/dist/core/disclaim-spawn.js +2 -2
- package/dist/core/managed-session.js +4 -3
- package/dist/core/managed-session.js.map +1 -1
- package/dist/core/model-identity.d.ts +1 -1
- package/dist/core/model-presets.js +2 -2
- package/dist/core/omp-model-catalog.d.ts +1 -1
- package/dist/core/omp-model-catalog.js +1 -1
- package/dist/core/omp-runner.d.ts +4 -4
- package/dist/core/omp-runner.js +25 -22
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/opencode-permissions.d.ts +3 -3
- package/dist/core/opencode-permissions.js +3 -3
- package/dist/core/opencode-permissions.js.map +1 -1
- package/dist/core/opencode-runtime-config.d.ts +1 -1
- package/dist/core/opencode-runtime-config.js +1 -1
- package/dist/core/opencode-server-runner.d.ts +1 -1
- package/dist/core/opencode-server-runner.js +15 -14
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/pi-rpc-turn.d.ts +2 -2
- package/dist/core/pi-rpc-turn.js +5 -4
- package/dist/core/pi-rpc-turn.js.map +1 -1
- package/dist/core/pi-rpc-wire.d.ts +1 -1
- package/dist/core/pi-rpc-wire.js +1 -1
- package/dist/core/pi-rpc-wire.js.map +1 -1
- package/dist/core/pi-runner.d.ts +1 -1
- package/dist/core/pi-runner.js +27 -24
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/process-stat.d.ts +36 -0
- package/dist/core/process-stat.js +101 -0
- package/dist/core/process-stat.js.map +1 -0
- package/dist/core/provider-auth.d.ts +1 -1
- package/dist/core/provider-auth.js +1 -1
- package/dist/core/runner-facts.d.ts +4 -4
- package/dist/core/runner-runtime.d.ts +9 -0
- package/dist/core/runner-runtime.js +7 -0
- package/dist/core/runner-runtime.js.map +1 -1
- package/dist/core/session-process.d.ts +3 -1
- package/dist/core/session-process.js +6 -6
- package/dist/core/session-process.js.map +1 -1
- package/dist/core/usage-limit.d.ts +1 -1
- package/dist/core/usage-limit.js +1 -1
- package/dist/delegation/conversations.js +1 -1
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/identity-file-store.d.ts +1 -1
- package/dist/delegation/owned-workspace-release.d.ts +8 -0
- package/dist/delegation/owned-workspace-release.js +9 -0
- package/dist/delegation/owned-workspace-release.js.map +1 -0
- package/dist/delegation/park-notice.d.ts +2 -2
- package/dist/delegation/park-notice.js +6 -5
- package/dist/delegation/park-notice.js.map +1 -1
- package/dist/delegation/policy.d.ts +1 -1
- package/dist/delegation/policy.js +2 -1
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/process-liveness.d.ts +3 -11
- package/dist/delegation/process-liveness.js +4 -43
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/provision.d.ts +4 -2
- package/dist/delegation/provision.js +18 -15
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/retry-backoff.d.ts +1 -1
- package/dist/delegation/routes.d.ts +11 -11
- package/dist/delegation/service.d.ts +14 -5
- package/dist/delegation/service.js +19 -12
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/windows-identity-store.d.ts +1 -1
- package/dist/delegation/windows-identity-store.js +1 -1
- package/dist/delegation/windows-identity-store.js.map +1 -1
- package/dist/delegation/worker-cleanup.d.ts +3 -1
- package/dist/delegation/worker-cleanup.js +7 -2
- package/dist/delegation/worker-cleanup.js.map +1 -1
- package/dist/delegation/workspace-git.d.ts +19 -0
- package/dist/delegation/workspace-git.js +67 -0
- package/dist/delegation/workspace-git.js.map +1 -0
- package/dist/delegation/workspace-record.d.ts +63 -0
- package/dist/delegation/workspace-record.js +78 -0
- package/dist/delegation/workspace-record.js.map +1 -0
- package/dist/delegation/workspace-removal.d.ts +19 -0
- package/dist/delegation/workspace-removal.js +284 -0
- package/dist/delegation/workspace-removal.js.map +1 -0
- package/dist/delegation/workspace.d.ts +1 -28
- package/dist/delegation/workspace.js +7 -411
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/detached-process.d.ts +4 -25
- package/dist/detached-process.js +4 -63
- package/dist/detached-process.js.map +1 -1
- package/dist/git-diff-base.d.ts +1 -1
- package/dist/git-refs.d.ts +1 -1
- package/dist/git-refs.js +1 -1
- package/dist/git-worktree-release.d.ts +5 -9
- package/dist/git-worktree-release.js +5 -10
- package/dist/git-worktree-release.js.map +1 -1
- package/dist/git-worktree.d.ts +0 -52
- package/dist/git-worktree.js +2 -374
- package/dist/git-worktree.js.map +1 -1
- package/dist/handoff.d.ts +4 -4
- package/dist/handoff.js +17 -16
- package/dist/handoff.js.map +1 -1
- package/dist/headless-run.d.ts +3 -0
- package/dist/headless-run.js +3 -2
- package/dist/headless-run.js.map +1 -1
- package/dist/home/boundary.js +4 -4
- package/dist/home/boundary.js.map +1 -1
- package/dist/home/home.js +2 -2
- package/dist/home/home.js.map +1 -1
- package/dist/home/install-marker.js +3 -3
- package/dist/home/install-marker.js.map +1 -1
- package/dist/home/leases.js +1 -1
- package/dist/home/leases.js.map +1 -1
- package/dist/home/migrate.js +3 -3
- package/dist/home/migrate.js.map +1 -1
- package/dist/home/migration-accounts.js +1 -1
- package/dist/home/migration-accounts.js.map +1 -1
- package/dist/home/migration-boot.js +2 -2
- package/dist/home/migration-boot.js.map +1 -1
- package/dist/home/migration-claim.js +1 -1
- package/dist/home/migration-claim.js.map +1 -1
- package/dist/home/migration-plan.d.ts +1 -1
- package/dist/home/migration-plan.js +1 -1
- package/dist/home/migration-plan.js.map +1 -1
- package/dist/home/private-files.js +1 -1
- package/dist/home/private-files.js.map +1 -1
- package/dist/home/process-identity.js +1 -1
- package/dist/home/process-identity.js.map +1 -1
- package/dist/home/protected-roots.d.ts +1 -1
- package/dist/home/protected-roots.js +3 -3
- package/dist/home/protected-roots.js.map +1 -1
- package/dist/home/store.js +2 -2
- package/dist/home/store.js.map +1 -1
- package/dist/home/write-lock.js +1 -1
- package/dist/home/write-lock.js.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/jobs/cli.js +2 -1
- package/dist/jobs/cli.js.map +1 -1
- package/dist/jobs/command.d.ts +2 -2
- package/dist/jobs/command.js +2 -2
- package/dist/jobs/job.js +2 -2
- package/dist/jobs/job.js.map +1 -1
- package/dist/managed-install/launcher.js +3 -3
- package/dist/managed-install/launcher.js.map +1 -1
- package/dist/paths.d.ts +7 -7
- package/dist/paths.js +9 -9
- package/dist/paths.js.map +1 -1
- package/dist/planner.js +1 -1
- package/dist/planner.js.map +1 -1
- package/dist/preview/agent-marker.js +1 -1
- package/dist/preview/cdp-proxy.d.ts +2 -2
- package/dist/preview/cdp-proxy.js +1 -1
- package/dist/preview/cdp-proxy.js.map +1 -1
- package/dist/preview/chromium.d.ts +5 -5
- package/dist/preview/chromium.js +6 -6
- package/dist/preview/chromium.js.map +1 -1
- package/dist/preview/dev-server.d.ts +2 -2
- package/dist/preview/dev-server.js +5 -5
- package/dist/preview/dev-server.js.map +1 -1
- package/dist/preview/host.d.ts +8 -8
- package/dist/preview/host.js +10 -10
- package/dist/preview/host.js.map +1 -1
- package/dist/preview/registration.d.ts +1 -1
- package/dist/preview/registration.js +6 -5
- package/dist/preview/registration.js.map +1 -1
- package/dist/preview/run-tools.d.ts +2 -2
- package/dist/preview/run-tools.js +6 -6
- package/dist/preview/run-tools.js.map +1 -1
- package/dist/process-wait/exit-file.d.ts +2 -2
- package/dist/process-wait/exit-file.js +2 -1
- package/dist/process-wait/exit-file.js.map +1 -1
- package/dist/process-wait/supervisor.d.ts +1 -1
- package/dist/process-wait/supervisor.js +1 -1
- package/dist/project-fence.d.ts +63 -0
- package/dist/project-fence.js +146 -0
- package/dist/project-fence.js.map +1 -0
- package/dist/project-migration/containment.js +1 -1
- package/dist/project-migration/containment.js.map +1 -1
- package/dist/project-migration/live.js +1 -1
- package/dist/project-migration/live.js.map +1 -1
- package/dist/project-migration/plan.js +1 -1
- package/dist/project-migration/plan.js.map +1 -1
- package/dist/project-migration/steps.js +1 -1
- package/dist/project-migration/steps.js.map +1 -1
- package/dist/release/manifests.d.ts +1 -1
- package/dist/remote-settings-cli.d.ts +1 -1
- package/dist/remote-settings-cli.js +1 -1
- package/dist/runs/agent-tmpdir.js +1 -1
- package/dist/runs/conversation-identity.js +2 -2
- package/dist/runs/conversation-identity.js.map +1 -1
- package/dist/runs/legacy-index.d.ts +2 -2
- package/dist/runs/legacy-index.js +3 -3
- package/dist/runs/legacy-index.js.map +1 -1
- package/dist/runs/legacy-run-rows.d.ts +1 -1
- package/dist/runs/legacy-run-rows.js +1 -1
- package/dist/runs/legacy-waits.js +2 -2
- package/dist/runs/legacy-waits.js.map +1 -1
- package/dist/runs/live-tasks.d.ts +10 -0
- package/dist/runs/live-tasks.js +33 -0
- package/dist/runs/live-tasks.js.map +1 -0
- package/dist/runs/loaded-run-exits.js +1 -1
- package/dist/runs/loaded-run-exits.js.map +1 -1
- package/dist/runs/loaded-run-healing.js +1 -1
- package/dist/runs/loaded-run-healing.js.map +1 -1
- package/dist/runs/record-write-rules.d.ts +1 -1
- package/dist/runs/record-write-rules.js +1 -1
- package/dist/runs/retention.js +1 -1
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/run-database-version.d.ts +1 -1
- package/dist/runs/run-database-version.js +1 -1
- package/dist/runs/run-database.d.ts +1 -1
- package/dist/runs/run-database.js +2 -2
- package/dist/runs/run-database.js.map +1 -1
- package/dist/runs/run-index.js +1 -1
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-references.d.ts +1 -1
- package/dist/runs/run-references.js +1 -1
- package/dist/runs/run-row.js +1 -1
- package/dist/runs/run-row.js.map +1 -1
- package/dist/runs/store.d.ts +4 -4
- package/dist/runs/store.js +7 -7
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/transcript-facts-load.js +1 -1
- package/dist/runs/transcript-facts-load.js.map +1 -1
- package/dist/serve-boot.d.ts +1 -1
- package/dist/serve-boot.js +2 -2
- package/dist/serve-boot.js.map +1 -1
- package/dist/serve-command.d.ts +5 -1
- package/dist/serve-command.js +8 -6
- package/dist/serve-command.js.map +1 -1
- package/dist/serve-listener.d.ts +2 -2
- package/dist/serve-listener.js +2 -2
- package/dist/server/cockpit-ownership.d.ts +2 -59
- package/dist/server/cockpit-ownership.js +4 -143
- package/dist/server/cockpit-ownership.js.map +1 -1
- package/dist/server/create-project.js +1 -1
- package/dist/server/create-project.js.map +1 -1
- package/dist/server/forge/draft-pr.d.ts +1 -1
- package/dist/server/forge/draft-pr.js +4 -3
- package/dist/server/forge/draft-pr.js.map +1 -1
- package/dist/server/fs-browse.js +1 -1
- package/dist/server/open-in-terminal.d.ts +3 -3
- package/dist/server/open-in-terminal.js +3 -3
- package/dist/server/project-context.d.ts +7 -13
- package/dist/server/project-context.js +4 -35
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/server-deps.d.ts +1 -1
- package/dist/server/server-deps.js +2 -0
- package/dist/server/server-deps.js.map +1 -1
- package/dist/server/server.d.ts +490 -490
- package/dist/server/server.js +23 -352
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-server.d.ts +6 -0
- package/dist/server/start-server.js +348 -0
- package/dist/server/start-server.js.map +1 -0
- package/dist/server/workspace-live-routes.d.ts +6 -6
- package/dist/server/workspace-projects.d.ts +1 -1
- package/dist/server/wsl.js +1 -1
- package/dist/server-install/engine.d.ts +2 -2
- package/dist/server-install/engine.js +2 -2
- package/dist/server-install/engine.js.map +1 -1
- package/dist/server-install/platforms/macosx-ngrok.d.ts +4 -4
- package/dist/server-install/platforms/macosx-ngrok.js +14 -14
- package/dist/server-install/platforms/macosx-ngrok.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps-migration.d.ts +2 -2
- package/dist/server-install/platforms/ubuntu-vps-migration.js +3 -3
- package/dist/server-install/platforms/ubuntu-vps-migration.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.d.ts +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js +1 -1
- package/dist/server-install/platforms/ubuntu-vps-redeploy.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps.d.ts +2 -2
- package/dist/server-install/platforms/ubuntu-vps.js +27 -27
- package/dist/server-install/platforms/ubuntu-vps.js.map +1 -1
- package/dist/server-install/types.d.ts +7 -4
- package/dist/server-install/types.js +8 -5
- package/dist/server-install/types.js.map +1 -1
- package/dist/skills-provision.d.ts +4 -4
- package/dist/skills-provision.js +12 -12
- package/dist/skills-provision.js.map +1 -1
- package/dist/skills-remote.js +1 -1
- package/dist/task-cli/discovery.js +1 -1
- package/dist/task-cli/discovery.js.map +1 -1
- package/dist/task-cli/projections.d.ts +1 -1
- package/dist/task-cli/projections.js +1 -1
- package/dist/ui-state.js +1 -1
- package/dist/ui-state.js.map +1 -1
- package/dist/update-check.js +1 -1
- package/dist/workflows/active-run.d.ts +1 -1
- package/dist/workflows/active-run.js +1 -1
- package/dist/workflows/completion-policy.d.ts +2 -2
- package/dist/workflows/continuation-admission.d.ts +1 -1
- package/dist/workflows/continuation-admission.js +1 -1
- package/dist/workflows/question-routing.d.ts +1 -1
- package/dist/workflows/run/auto-resume.d.ts +1 -1
- package/dist/workflows/run/auto-resume.js +5 -4
- package/dist/workflows/run/auto-resume.js.map +1 -1
- package/dist/workflows/run/compose.d.ts +10 -10
- package/dist/workflows/run/compose.js +6 -6
- package/dist/workflows/run/compose.js.map +1 -1
- package/dist/workflows/run/constants.d.ts +2 -2
- package/dist/workflows/run/constants.js +3 -2
- package/dist/workflows/run/constants.js.map +1 -1
- package/dist/workflows/run/continuation-session.d.ts +1 -1
- package/dist/workflows/run/continuation-session.js +3 -2
- package/dist/workflows/run/continuation-session.js.map +1 -1
- package/dist/workflows/run/human-waits.d.ts +9 -9
- package/dist/workflows/run/human-waits.js +14 -14
- package/dist/workflows/run/human-waits.js.map +1 -1
- package/dist/workflows/run/input-delivery.d.ts +2 -2
- package/dist/workflows/run/input-delivery.js +6 -6
- package/dist/workflows/run/input-delivery.js.map +1 -1
- package/dist/workflows/run/launch-read-resolver.d.ts +1 -1
- package/dist/workflows/run/launch-read-resolver.js +1 -1
- package/dist/workflows/run/maintenance-claims.d.ts +1 -1
- package/dist/workflows/run/maintenance-claims.js +1 -1
- package/dist/workflows/run/prompts.js +2 -1
- package/dist/workflows/run/prompts.js.map +1 -1
- package/dist/workflows/run/run-finish.d.ts +2 -2
- package/dist/workflows/run/run-finish.js +3 -3
- package/dist/workflows/run/run-finish.js.map +1 -1
- package/dist/workflows/run/run-recovery.d.ts +1 -1
- package/dist/workflows/run/run-recovery.js +10 -9
- package/dist/workflows/run/run-recovery.js.map +1 -1
- package/dist/workflows/run/run-settlement.d.ts +2 -2
- package/dist/workflows/run/run-settlement.js +3 -3
- package/dist/workflows/run/run-settlement.js.map +1 -1
- package/dist/workflows/run/run-skills.d.ts +1 -1
- package/dist/workflows/run/run-skills.js +1 -1
- package/dist/workflows/run/session-events.js +3 -3
- package/dist/workflows/run/session-events.js.map +1 -1
- package/dist/workflows/run/{cezar-tools.d.ts → squawk-tools.d.ts} +9 -9
- package/dist/workflows/run/{cezar-tools.js → squawk-tools.js} +3 -3
- package/dist/workflows/run/squawk-tools.js.map +1 -0
- package/dist/workflows/run/step-loop.js +1 -1
- package/dist/workflows/run/step-loop.js.map +1 -1
- package/dist/workflows/run/step-session.js +2 -1
- package/dist/workflows/run/step-session.js.map +1 -1
- package/dist/workflows/run/subagent-waits.d.ts +3 -3
- package/dist/workflows/run/subagent-waits.js +2 -2
- package/dist/workflows/run/turn-nudges.d.ts +4 -4
- package/dist/workflows/run/turn-nudges.js +4 -4
- package/dist/workflows/run/turn-nudges.js.map +1 -1
- package/dist/workflows/run/turn-settler.d.ts +5 -5
- package/dist/workflows/run/turn-settler.js +12 -12
- package/dist/workflows/run/turn-settler.js.map +1 -1
- package/dist/workflows/run/types.d.ts +1 -0
- package/dist/workflows/run/wait-engine.d.ts +3 -3
- package/dist/workflows/run/wait-engine.js +4 -4
- package/dist/workflows/run/wait-engine.js.map +1 -1
- package/dist/workflows/run/wait-kinds.d.ts +21 -21
- package/dist/workflows/run/wait-kinds.js +18 -17
- package/dist/workflows/run/wait-kinds.js.map +1 -1
- package/dist/workflows/run/wait-registration-tool.d.ts +3 -3
- package/dist/workflows/run/wait-registration-tool.js +2 -2
- package/dist/workflows/run/wait-registration-tool.js.map +1 -1
- package/dist/workflows/run/wait-registration.d.ts +2 -2
- package/dist/workflows/run/wait-registration.js.map +1 -1
- package/dist/workflows/run/wait-registry.d.ts +5 -5
- package/dist/workflows/run/wait-registry.js +7 -7
- package/dist/workflows/run/wait-registry.js.map +1 -1
- package/dist/workflows/run/wake-admission.d.ts +1 -1
- package/dist/workflows/run/wake-admission.js +1 -1
- package/dist/workflows/run/worker-orphans.d.ts +2 -2
- package/dist/workflows/run/worker-orphans.js +5 -4
- package/dist/workflows/run/worker-orphans.js.map +1 -1
- package/dist/workflows/run/worker-questions.d.ts +18 -18
- package/dist/workflows/run/worker-questions.js +20 -20
- package/dist/workflows/run/worker-questions.js.map +1 -1
- package/dist/workflows/run/worktree-autosave.d.ts +2 -2
- package/dist/workflows/run/worktree-autosave.js +5 -4
- package/dist/workflows/run/worktree-autosave.js.map +1 -1
- package/dist/workflows/run-scheduling.d.ts +1 -1
- package/dist/workflows/run-scheduling.js +1 -1
- package/dist/workflows/run-states.js +18 -17
- package/dist/workflows/run-states.js.map +1 -1
- package/dist/workflows/run.d.ts +11 -8
- package/dist/workflows/run.js +11 -12
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/turn-end.d.ts +7 -7
- package/dist/workflows/turn-end.js +4 -14
- package/dist/workflows/turn-end.js.map +1 -1
- package/dist/workflows/types.js +2 -1
- package/dist/workflows/types.js.map +1 -1
- package/dist/workflows/wait-scope.d.ts +2 -2
- package/dist/workflows/wait-scope.js.map +1 -1
- package/dist/workflows/waits.d.ts +2 -2
- package/dist/workflows/waits.js +4 -4
- package/dist/workflows/waits.js.map +1 -1
- package/dist/workspace/agent-accounts.js +3 -3
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/agent-profiles.d.ts +5 -5
- package/dist/workspace/agent-profiles.js +3 -3
- package/dist/workspace/backups.js +6 -6
- package/dist/workspace/backups.js.map +1 -1
- package/dist/workspace/config.d.ts +2 -2
- package/dist/workspace/config.js +6 -6
- package/dist/workspace/config.js.map +1 -1
- package/dist/workspace/migrations.js +1 -1
- package/dist/workspace/projects-cli.d.ts +1 -1
- package/dist/workspace/projects-cli.js +2 -2
- package/dist/workspace/projects-cli.js.map +1 -1
- package/dist/workspace/projects.js +1 -1
- package/dist/workspace/projects.js.map +1 -1
- package/dist/workspace/semaphore.js +1 -1
- package/dist/worktree-manifest.d.ts +13 -13
- package/dist/worktree-manifest.js +17 -17
- package/dist/worktree-manifest.js.map +1 -1
- package/dist/worktree-setup.js +4 -3
- package/dist/worktree-setup.js.map +1 -1
- package/package.json +4 -4
- package/scripts/benchmark-family-reconcile.ts +2 -1
- package/scripts/benchmark-run-store.ts +2 -1
- package/scripts/benchmark-stuck-destroys.ts +5 -3
- package/scripts/benchmark-workspace-events.ts +4 -3
- package/scripts/measure-transcript-facts-health.mjs +4 -3
- package/scripts/mock-autonomous.mjs +1 -1
- package/scripts/mock-ci-tool.mjs +14 -14
- package/scripts/mock-claude.mjs +3 -3
- package/scripts/mock-codex-app-server.mjs +7 -7
- package/scripts/mock-cursor-print.mjs +1 -1
- package/scripts/mock-lifecycle.d.mts +2 -0
- package/scripts/mock-lifecycle.mjs +5 -1
- package/scripts/mock-nudge.mjs +2 -2
- package/scripts/mock-omp-rpc.mjs +2 -2
- package/scripts/mock-opencode-serve.mjs +5 -5
- package/scripts/mock-pi-rpc.mjs +1 -1
- package/scripts/mock-provider-failures.mjs +1 -1
- package/scripts/mock-scenario.mjs +1 -1
- package/scripts/mock-silent-tail.mjs +1 -1
- package/scripts/omp-ci-wait.mjs +5 -5
- package/scripts/opencode-task-scope.d.mts +1 -1
- package/scripts/opencode-task-scope.mjs +5 -5
- package/scripts/pi-ci-wait.mjs +3 -3
- package/scripts/pi-default-tools.mjs +3 -3
- package/web/dist/assets/{activity-motion-uhQPLbuu.js → activity-motion-DKwwsRr3.js} +1 -1
- package/web/dist/assets/{activity-route-Dkulydc2.js → activity-route-DIPqGSX9.js} +1 -1
- package/web/dist/assets/{commit-diff-panel-C9GL2tao.js → commit-diff-panel-V_1QPI6-.js} +1 -1
- package/web/dist/assets/{diff-BbT6HX3u.js → diff-CeZUO8N3.js} +2 -2
- package/web/dist/assets/{diff-view-oyOw4umg.js → diff-view-t7aBbbYR.js} +1 -1
- package/web/dist/assets/{file-preview-BQ0R19La.js → file-preview-DePQ7br9.js} +1 -1
- package/web/dist/assets/{git-toolbar-PeaVnT03.js → git-toolbar-wuy8ssaR.js} +1 -1
- package/web/dist/assets/{github-5L2qkK1k.js → github-BnmHJIdi.js} +1 -1
- package/web/dist/assets/{global-activity-route-DLfuJ7Lw.js → global-activity-route-WbzruEHL.js} +1 -1
- package/web/dist/assets/{index-CFbFtL5O.js → index-DOC5F0jG.js} +3 -3
- package/web/dist/assets/{index-DI_O8V74.css → index-U_ryo80X.css} +1 -1
- package/web/dist/assets/{preview-pane-connected-ClnZeK7_.js → preview-pane-connected-DA-o4lox.js} +1 -1
- package/web/dist/assets/{repo-git-C5kdJUtx.js → repo-git-CPAzGsXP.js} +1 -1
- package/web/dist/assets/{report-reader-C9f7Zevx.js → report-reader-258jGuDd.js} +1 -1
- package/web/dist/assets/{reports-DLozsIav.js → reports-Bi62-scJ.js} +1 -1
- package/web/dist/assets/{run-header-gKKxDTom.js → run-header-CtB7SQZX.js} +1 -1
- package/web/dist/assets/{skills-nbFjA9HV.js → skills-DgMECGzl.js} +1 -1
- package/web/dist/assets/{task-changes-DcgY25bB.js → task-changes-Cl5qY22F.js} +1 -1
- package/web/dist/assets/{task-commits-amSX-bTC.js → task-commits-BeWKWgm7.js} +1 -1
- package/web/dist/assets/{task-files-BW4uOVGM.js → task-files-CetL9fpi.js} +1 -1
- package/web/dist/assets/{task-github-item-CG8dVePG.js → task-github-item-CPMpjXAi.js} +1 -1
- package/web/dist/assets/{task-thread-BJRqzTFi.js → task-thread-HhiSFO55.js} +1 -1
- package/web/dist/assets/{thread-state-CtFtvKUi.js → thread-state-CiNCxsdq.js} +1 -1
- package/web/dist/assets/{use-hand-to-agent-state-DWLpzA5t.js → use-hand-to-agent-state-07Nw6AlG.js} +1 -1
- package/web/dist/assets/{workflows-DDM-LFxD.js → workflows-D1sS-h0j.js} +1 -1
- package/web/dist/index.html +2 -2
- package/dist/workflows/run/cezar-tools.js.map +0 -1
|
@@ -14,7 +14,7 @@ export declare const ASK_LIMITS: {
|
|
|
14
14
|
readonly context: 20000;
|
|
15
15
|
};
|
|
16
16
|
/** hearsay-tools/cezarion#1458: the Markdown the user reads above the questions. On Claude, prose
|
|
17
|
-
* between tool calls can reach
|
|
17
|
+
* between tool calls can reach Squawk only as a short summary; a field inside the call arrives whole. */
|
|
18
18
|
export declare const askContextSchema: z.ZodString;
|
|
19
19
|
export declare const askOptionSchema: z.ZodObject<{
|
|
20
20
|
label: z.ZodString;
|
|
@@ -31,7 +31,7 @@ export declare const askQuestionSchema: z.ZodObject<{
|
|
|
31
31
|
multiSelect: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
}, z.core.$strict>;
|
|
33
33
|
/** The stored shape: asks recorded before hearsay-tools/cezarion#1458, saved asks from the retired
|
|
34
|
-
* `CEZ:ASK` marker and a routed question may carry no context. `cezar_ask` requires it (`
|
|
34
|
+
* `CEZ:ASK` marker and a routed question may carry no context. `cezar_ask` requires it (`squawkAskRequestSchema`). */
|
|
35
35
|
export declare const askRequestSchema: z.ZodObject<{
|
|
36
36
|
context: z.ZodOptional<z.ZodString>;
|
|
37
37
|
questions: z.ZodArray<z.ZodObject<{
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
7
|
* Non-image attachment types the composer may send (#950). Deliberately an allowlist and
|
|
8
|
-
* deliberately short:
|
|
8
|
+
* deliberately short: Squawk serves these files back from the cockpit's own origin, so every entry
|
|
9
9
|
* here is one more thing that must be safe to hand a browser. `image/*` stays a regex — narrowing
|
|
10
10
|
* what the route has always accepted would be the breaking half of this change.
|
|
11
11
|
*
|
|
@@ -19,7 +19,7 @@ export declare function isAttachmentMediaType(mediaType: string): boolean;
|
|
|
19
19
|
/**
|
|
20
20
|
* The on-disk extension for an attachment, derived from its media type ALONE — the user's own
|
|
21
21
|
* filename never reaches the wire, and therefore never reaches a path. `img` is the pre-existing
|
|
22
|
-
* catch-all for an image type
|
|
22
|
+
* catch-all for an image type Squawk does not name (an SVG, a BMP), kept so those files land where
|
|
23
23
|
* they always did.
|
|
24
24
|
*/
|
|
25
25
|
export declare function attachmentExtension(mediaType: string): string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/** Who may talk: a root and its owned worker (`family`), or two root tasks of one project (`peer`,
|
|
3
|
-
* spec 2026-10-27-task-communication-protocol § 2).
|
|
3
|
+
* spec 2026-10-27-task-communication-protocol § 2). Squawk writes it on peer messages only; an
|
|
4
4
|
* absent field reads as `family`, so family records stay as older versions wrote them. */
|
|
5
5
|
export declare const conversationRelationshipSchema: z.ZodEnum<{
|
|
6
6
|
family: "family";
|
|
@@ -96,7 +96,7 @@ export declare const workerWaitSchema: z.ZodObject<{
|
|
|
96
96
|
wakeId: z.ZodOptional<z.ZodUUID>;
|
|
97
97
|
}, z.core.$strict>;
|
|
98
98
|
export type WorkerWait = z.infer<typeof workerWaitSchema>;
|
|
99
|
-
/**
|
|
99
|
+
/** Squawk's completion wait as inspection and the relationships view show it: the `WorkerWait`
|
|
100
100
|
* projection without a deadline, which that wait does not have, and the `via` that names it.
|
|
101
101
|
* `WorkerWait` keeps requiring a deadline (hearsay-tools/cezarion#1301). */
|
|
102
102
|
export declare const workerCompletionWaitSchema: z.ZodObject<{
|
|
@@ -142,7 +142,7 @@ export type WorkerCompletionWait = z.infer<typeof workerCompletionWaitSchema>;
|
|
|
142
142
|
* attempts ran since the last explicit request, when the next one is due, and whether they
|
|
143
143
|
* reached the hourly cap with nothing changing, which the cockpit shows as needing attention.
|
|
144
144
|
* Absent until the first automatic attempt; a manual destroy clears it. Stored on the run record
|
|
145
|
-
* (`destroyRetry`), never inside the strict worker delegation, so an older
|
|
145
|
+
* (`destroyRetry`), never inside the strict worker delegation, so an older Squawk strips it instead
|
|
146
146
|
* of quarantining the worker; the API shows it as the worker's `destroy.retry`. */
|
|
147
147
|
export declare const workerDestroyRetrySchema: z.ZodObject<{
|
|
148
148
|
attempts: z.ZodNumber;
|
|
@@ -15,7 +15,7 @@ import { z } from 'zod';
|
|
|
15
15
|
* Open by design: `type` is a plain string and unknown keys pass through, because the event
|
|
16
16
|
* vocabulary is an APPEND-ONLY on-disk format (BACKWARD_COMPATIBILITY.md) that old NDJSON
|
|
17
17
|
* recordings must keep replaying forever. Closing this schema would make a recording written by
|
|
18
|
-
* a newer
|
|
18
|
+
* a newer Squawk unreadable by an older one — the opposite of what the format promises.
|
|
19
19
|
*/
|
|
20
20
|
export declare const runEventSchema: z.ZodObject<{
|
|
21
21
|
seq: z.ZodNumber;
|
|
@@ -169,7 +169,7 @@ export declare const humanInputDeliveredEventSchema: z.ZodObject<{
|
|
|
169
169
|
}, z.core.$loose>;
|
|
170
170
|
export type HumanInputDeliveredEvent = z.infer<typeof humanInputDeliveredEventSchema>;
|
|
171
171
|
/** The question was retired unanswered: an accepted Finish ended the task (`finish`,
|
|
172
|
-
* hearsay-tools/cezarion#1260), or new input went to a worker whose only question was
|
|
172
|
+
* hearsay-tools/cezarion#1260), or new input went to a worker whose only question was Squawk's own
|
|
173
173
|
* fallback question (`superseded`, hearsay-tools/cezarion#1301). A worker's question has one
|
|
174
174
|
* addressee, its parent (hearsay-tools/cezarion#2410): it also closes when the parent stopped
|
|
175
175
|
* (`parent-stopped`), when the worker stopped (`worker-stopped`), or when a live parent could not
|
|
@@ -211,7 +211,7 @@ export declare const workerQuestionFallbackEventSchema: z.ZodObject<{
|
|
|
211
211
|
reason: z.ZodString;
|
|
212
212
|
}, z.core.$loose>;
|
|
213
213
|
export type WorkerQuestionFallbackEvent = z.infer<typeof workerQuestionFallbackEventSchema>;
|
|
214
|
-
/** A worker's question could not reach its live parent (hearsay-tools/cezarion#2410):
|
|
214
|
+
/** A worker's question could not reach its live parent (hearsay-tools/cezarion#2410): Squawk answers
|
|
215
215
|
* it with the reason, and no human does. */
|
|
216
216
|
export declare const workerQuestionUndeliveredEventSchema: z.ZodObject<{
|
|
217
217
|
seq: z.ZodNumber;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
/**
|
|
3
3
|
* The handoff journal (`.ai/cezar/runs/<runId>.handoff.md`, spec 007) as the server and the
|
|
4
|
-
* cockpit both read it. The agent writes the file;
|
|
4
|
+
* cockpit both read it. The agent writes the file; Squawk keeps its own records in the run store
|
|
5
5
|
* and writes them into the file as one block that it rewrites whole (hearsay-tools/cezarion#1809).
|
|
6
6
|
*/
|
|
7
7
|
/** How many autosave records a run keeps, newest first. */
|
|
@@ -20,7 +20,7 @@ export declare const handoffAutosaveRecordSchema: z.ZodObject<{
|
|
|
20
20
|
}, z.core.$strip>>;
|
|
21
21
|
}, z.core.$strip>;
|
|
22
22
|
export type HandoffAutosaveRecord = z.infer<typeof handoffAutosaveRecordSchema>;
|
|
23
|
-
/** `RunRecord.handoffRecords`:
|
|
23
|
+
/** `RunRecord.handoffRecords`: Squawk's own records for the run's handoff file, newest first. */
|
|
24
24
|
export declare const handoffRecordsSchema: z.ZodObject<{
|
|
25
25
|
autosave: z.ZodArray<z.ZodObject<{
|
|
26
26
|
at: z.ZodString;
|
package/dist/contract/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
2
|
+
* The Squawk API contract. See `../README.md` — one zod definition per shape, its TypeScript type
|
|
3
3
|
* inferred from it, shared by the server, the api-client and the cockpit.
|
|
4
4
|
*/
|
|
5
5
|
export * from './events.ts';
|
package/dist/contract/index.js
CHANGED
|
@@ -739,9 +739,9 @@ var agentInputSchema = z8.object({
|
|
|
739
739
|
* such input; records written before #505 never carry it, so nothing historical replays. */
|
|
740
740
|
awaitingRead: z8.literal(true).optional(),
|
|
741
741
|
inboxClaim: inboxClaimSchema.optional(),
|
|
742
|
-
/** A completion refusal
|
|
742
|
+
/** A completion refusal Squawk queued for a closed session (hearsay-tools/cezarion#1301): its
|
|
743
743
|
* delivery is the nudge's turn, bounded by the nudge's reply bound, and a session that closes
|
|
744
|
-
* before it is a failed delivery. `undelivered-question` is
|
|
744
|
+
* before it is a failed delivery. `undelivered-question` is Squawk's answer to a worker question
|
|
745
745
|
* that could not reach its live parent (hearsay-tools/cezarion#2410). Absent on every other input
|
|
746
746
|
* and on records written before. */
|
|
747
747
|
purpose: z8.enum(["completion-refusal", "undelivered-question"]).optional(),
|
|
@@ -886,7 +886,7 @@ var humanInputDeliveredEventSchema = runEventSchema.extend({
|
|
|
886
886
|
type: z9.literal("human-input-delivered"),
|
|
887
887
|
askSeq: z9.number().int().nonnegative(),
|
|
888
888
|
/** Who answered: absent (records before #505) or `human` is a person; `parent` is the
|
|
889
|
-
* owning parent's reply to a routed worker question; `cezar` is
|
|
889
|
+
* owning parent's reply to a routed worker question; `cezar` is Squawk's notice that the question
|
|
890
890
|
* could not reach a live parent (hearsay-tools/cezarion#2410). */
|
|
891
891
|
source: z9.enum(["human", "parent", "cezar"]).optional()
|
|
892
892
|
});
|
|
@@ -1513,7 +1513,7 @@ var previewClientMessageSchema = z14.discriminatedUnion("t", [
|
|
|
1513
1513
|
/** Automatic reconnects may reclaim only this pane's last ownership. */
|
|
1514
1514
|
viewerId: z14.string().min(1).max(128).optional(),
|
|
1515
1515
|
resume: z14.boolean().optional(),
|
|
1516
|
-
/** `agent`: the page an agent drives through
|
|
1516
|
+
/** `agent`: the page an agent drives through Squawk's CDP proxy, shown as it is, never navigated (hearsay-tools/cezarion#784). */
|
|
1517
1517
|
target: z14.union([z14.object({ port }), z14.object({ url: z14.string().min(1).max(2048) }), z14.object({ agent: z14.literal(true) })]),
|
|
1518
1518
|
/** Absent from an older cockpit, which streams `normal`. */
|
|
1519
1519
|
quality: previewQualitySchema.optional(),
|
|
@@ -1966,7 +1966,7 @@ var humanWaitEntrySchema = z17.object({
|
|
|
1966
1966
|
var workerWaitEntrySchema = z17.object({
|
|
1967
1967
|
...waitBaseShape,
|
|
1968
1968
|
kind: z17.literal("worker"),
|
|
1969
|
-
//
|
|
1969
|
+
// Squawk's completion wait has neither: it ends when its workers settle (hearsay-tools/cezarion#1301).
|
|
1970
1970
|
deadline: z17.iso.datetime().optional(),
|
|
1971
1971
|
timeoutSeconds: z17.number().int().min(1).max(PEER_WAIT_MAX_SECONDS).optional(),
|
|
1972
1972
|
mode: workerWaitModeSchema.optional(),
|
|
@@ -2039,7 +2039,7 @@ var oneModeTakesOneId = (ids, mode, ctx) => {
|
|
|
2039
2039
|
};
|
|
2040
2040
|
var waitTimeoutSeconds = z17.number().int().min(1).max(PEER_WAIT_MAX_SECONDS).default(PEER_WAIT_DEFAULT_SECONDS);
|
|
2041
2041
|
var registrationFields = { operation_id: z17.uuid().optional() };
|
|
2042
|
-
var
|
|
2042
|
+
var squawkWaitRequestSchema = z17.discriminatedUnion("kind", [
|
|
2043
2043
|
ciWaitRequestSchema.extend({ kind: z17.literal("pr"), ...registrationFields }).strict(),
|
|
2044
2044
|
z17.object({
|
|
2045
2045
|
kind: z17.literal("worker"),
|
|
@@ -2076,7 +2076,7 @@ var cezarWaitRequestSchema = z17.discriminatedUnion("kind", [
|
|
|
2076
2076
|
note: z17.string().max(NOTE_MAX).optional()
|
|
2077
2077
|
}).strict()
|
|
2078
2078
|
]);
|
|
2079
|
-
var
|
|
2079
|
+
var squawkCancelWaitRequestSchema = z17.object({ wait_id: z17.uuid() }).strict();
|
|
2080
2080
|
var openWaitFields = { wait_id: z17.uuid(), summary: z17.string().max(256) };
|
|
2081
2081
|
var openWaitSchema = z17.discriminatedUnion("kind", [
|
|
2082
2082
|
z17.object({ ...openWaitFields, kind: z17.enum(["pr", "timer", "worker", "process", "peer", "subagent"]), deadline: z17.iso.datetime() }).strict(),
|
|
@@ -2107,7 +2107,7 @@ var waitRegistrationReceiptSchema = z17.object({
|
|
|
2107
2107
|
var registrationAnswerFields = {
|
|
2108
2108
|
operation_id: z17.uuid().optional()
|
|
2109
2109
|
};
|
|
2110
|
-
var
|
|
2110
|
+
var squawkWaitAnswerSchema = z17.discriminatedUnion("ok", [
|
|
2111
2111
|
z17.object({
|
|
2112
2112
|
ok: z17.literal(true),
|
|
2113
2113
|
...registrationAnswerFields,
|
|
@@ -2131,7 +2131,7 @@ var cezarWaitAnswerSchema = z17.discriminatedUnion("ok", [
|
|
|
2131
2131
|
open_waits: z17.array(openWaitSchema).max(WAIT_LIMIT).optional()
|
|
2132
2132
|
}).strict()
|
|
2133
2133
|
]);
|
|
2134
|
-
var
|
|
2134
|
+
var squawkAskRequestSchema = askRequestSchema.extend({ context: askContextSchema });
|
|
2135
2135
|
var askErrorCodeSchema = z17.enum([
|
|
2136
2136
|
"invalid_request",
|
|
2137
2137
|
"capacity",
|
|
@@ -2153,7 +2153,7 @@ var askErrorCodeSchema = z17.enum([
|
|
|
2153
2153
|
"worker_execution_stopped",
|
|
2154
2154
|
"root_finish_pending"
|
|
2155
2155
|
]);
|
|
2156
|
-
var
|
|
2156
|
+
var squawkAskAnswerSchema = z17.discriminatedUnion("ok", [
|
|
2157
2157
|
z17.object({ ok: z17.literal(true), wait_id: z17.uuid(), open_waits: z17.array(openWaitSchema).max(WAIT_LIMIT) }).strict(),
|
|
2158
2158
|
z17.object({
|
|
2159
2159
|
ok: z17.literal(false),
|
|
@@ -2162,7 +2162,7 @@ var cezarAskAnswerSchema = z17.discriminatedUnion("ok", [
|
|
|
2162
2162
|
open_waits: z17.array(openWaitSchema).max(WAIT_LIMIT).optional()
|
|
2163
2163
|
}).strict()
|
|
2164
2164
|
]);
|
|
2165
|
-
var
|
|
2165
|
+
var squawkCancelWaitAnswerSchema = z17.discriminatedUnion("cancelled", [
|
|
2166
2166
|
z17.object({
|
|
2167
2167
|
cancelled: z17.literal(true),
|
|
2168
2168
|
wait_id: z17.uuid(),
|
|
@@ -2175,7 +2175,7 @@ var cezarCancelWaitAnswerSchema = z17.discriminatedUnion("cancelled", [
|
|
|
2175
2175
|
open_waits: z17.array(openWaitSchema).max(WAIT_LIMIT).optional()
|
|
2176
2176
|
}).strict()
|
|
2177
2177
|
]);
|
|
2178
|
-
var
|
|
2178
|
+
var squawkDoneRequestSchema = z17.object({ summary: z17.string().max(2e3).optional() }).strict();
|
|
2179
2179
|
var doneErrorCodeSchema = z17.enum([
|
|
2180
2180
|
"workers_outstanding",
|
|
2181
2181
|
"workers_uncollected",
|
|
@@ -2204,7 +2204,7 @@ var doneAccepted = {
|
|
|
2204
2204
|
finishes: z17.literal("at_turn_end"),
|
|
2205
2205
|
open_waits: z17.array(openWaitSchema).max(WAIT_LIMIT)
|
|
2206
2206
|
};
|
|
2207
|
-
var
|
|
2207
|
+
var squawkDoneAnswerSchema = z17.discriminatedUnion("ok", [
|
|
2208
2208
|
z17.discriminatedUnion("completes", [
|
|
2209
2209
|
z17.object({ ...doneAccepted, completes: z17.literal("task") }).strict(),
|
|
2210
2210
|
z17.object({ ...doneAccepted, completes: z17.literal("step"), next_step: z17.string().min(1) }).strict()
|
|
@@ -2603,7 +2603,7 @@ var runRecordSchema = z20.object({
|
|
|
2603
2603
|
*
|
|
2604
2604
|
* `event` is a plain string rather than `automationEventSchema`: it is the event NAME the
|
|
2605
2605
|
* launching definition matched, recorded on the run for the audit trail, and `src/runs/store.ts`
|
|
2606
|
-
* persists it as free text so an older
|
|
2606
|
+
* persists it as free text so an older Squawk can still read a record written by a newer one.
|
|
2607
2607
|
*/
|
|
2608
2608
|
automation: z20.object({
|
|
2609
2609
|
automationId: z20.string(),
|
|
@@ -2614,7 +2614,7 @@ var runRecordSchema = z20.object({
|
|
|
2614
2614
|
}).optional(),
|
|
2615
2615
|
/**
|
|
2616
2616
|
* Provenance for a task a SCHEDULED automation launched. A separate optional key rather than a
|
|
2617
|
-
* loosened `automation`: `runs.json` is parsed as one array, so a downgraded
|
|
2617
|
+
* loosened `automation`: `runs.json` is parsed as one array, so a downgraded Squawk meeting a
|
|
2618
2618
|
* record without `githubUrl` would drop every run, whereas an unknown key it simply strips.
|
|
2619
2619
|
*/
|
|
2620
2620
|
automationTrigger: z20.object({
|
|
@@ -2626,7 +2626,7 @@ var runRecordSchema = z20.object({
|
|
|
2626
2626
|
occurrenceAt: z20.string()
|
|
2627
2627
|
}).optional(),
|
|
2628
2628
|
/** A pending worker destroy's automatic retry state (hearsay-tools/cezarion#879). Here, not in
|
|
2629
|
-
* the strict worker `delegation`, so an older
|
|
2629
|
+
* the strict worker `delegation`, so an older Squawk strips it instead of quarantining the worker,
|
|
2630
2630
|
* and keeps it across its own writes. The API shows it as the worker's `destroy.retry`. */
|
|
2631
2631
|
destroyRetry: workerDestroyRetrySchema.optional(),
|
|
2632
2632
|
/** Task webhook opt-in (#589): the project's webhook receives this run's status changes.
|
|
@@ -2736,7 +2736,7 @@ var runRecordSchema = z20.object({
|
|
|
2736
2736
|
* like every other key.
|
|
2737
2737
|
*/
|
|
2738
2738
|
workflowDef: workflowDefSchema.optional(),
|
|
2739
|
-
/**
|
|
2739
|
+
/** Squawk's autosave records for the handoff file (hearsay-tools/cezarion#1809). */
|
|
2740
2740
|
handoffRecords: handoffRecordsSchema.optional()
|
|
2741
2741
|
});
|
|
2742
2742
|
var apiRunSchema = runRecordSchema.extend({
|
|
@@ -2818,7 +2818,7 @@ var runSummarySchema = z20.object({
|
|
|
2818
2818
|
* The live CPU/RSS sample of this run's process tree, attached on the way out exactly as
|
|
2819
2819
|
* `GET /runs` attaches it (`withUsage`) — never persisted.
|
|
2820
2820
|
*
|
|
2821
|
-
* It can ride a WORKSPACE-level answer because the sampler is process-wide: one
|
|
2821
|
+
* It can ride a WORKSPACE-level answer because the sampler is process-wide: one Squawk process
|
|
2822
2822
|
* runs every project's agents, so `currentUsage(runId)` knows about a run whatever project it
|
|
2823
2823
|
* belongs to. That is what lets a cross-project table show live usage without opening one
|
|
2824
2824
|
* event stream per project (it could not — the run stream is project-scoped).
|
|
@@ -3679,7 +3679,7 @@ var skillSchema = z23.object({
|
|
|
3679
3679
|
interactive: z23.literal(true).optional(),
|
|
3680
3680
|
body: z23.string(),
|
|
3681
3681
|
path: z23.string(),
|
|
3682
|
-
/** `builtin`: shipped by
|
|
3682
|
+
/** `builtin`: shipped by Squawk itself and listed last (#774), so a repo skill of the same name wins. */
|
|
3683
3683
|
source: z23.enum(["ai", "cezar", "agents", "global", "team", "builtin"]),
|
|
3684
3684
|
/** Team skills only: where the definition lives in its skills repo. */
|
|
3685
3685
|
team: z23.object({
|
|
@@ -3830,7 +3830,7 @@ var agentProfileSchema = z26.object({
|
|
|
3830
3830
|
/** Whether the dir carries this agent's own marker files. ADVISORY: an unrecognised dir is
|
|
3831
3831
|
* still accepted, because "add profile → Connect → the CLI creates it" is the real flow. */
|
|
3832
3832
|
looksValid: z26.boolean(),
|
|
3833
|
-
/** True for the profile
|
|
3833
|
+
/** True for the profile Squawk discovers from the environment. Never stored, never deletable. */
|
|
3834
3834
|
isDefault: z26.boolean(),
|
|
3835
3835
|
/** This account's own authentication state — two Claude logins answer independently.
|
|
3836
3836
|
*
|
|
@@ -3859,7 +3859,7 @@ var agentProfilesResponseSchema = z26.object({
|
|
|
3859
3859
|
*
|
|
3860
3860
|
* Served here rather than on `GET /api/v1/projects` because it is stored beside the accounts it
|
|
3861
3861
|
* names (`~/.cezar/agent-accounts.json`) — one file, so deleting an account and scrubbing every
|
|
3862
|
-
* reference to it is one atomic write, and neither can be dropped by a
|
|
3862
|
+
* reference to it is one atomic write, and neither can be dropped by a Squawk version that never
|
|
3863
3863
|
* heard of accounts. Empty in hosted mode, where the whole family is withheld. */
|
|
3864
3864
|
selections: z26.record(z26.string(), agentAccountSelectionSchema),
|
|
3865
3865
|
/** The machine-wide fallback account per provider, used by any repo that has chosen none. */
|
|
@@ -4322,7 +4322,7 @@ var automationLogResultSchema = z28.enum([
|
|
|
4322
4322
|
"manual",
|
|
4323
4323
|
"catch-up",
|
|
4324
4324
|
"failed",
|
|
4325
|
-
// once schedule:
|
|
4325
|
+
// once schedule: Squawk started after its latest start, so nothing launched.
|
|
4326
4326
|
"missed"
|
|
4327
4327
|
]);
|
|
4328
4328
|
var automationLogRecordSchema = z28.object({
|
|
@@ -4497,7 +4497,7 @@ var scheduledTaskSchema = z29.object({
|
|
|
4497
4497
|
});
|
|
4498
4498
|
var scheduledTaskRefusalCodeSchema = z29.enum(["invalid_request", "unavailable", "not_found", "conflict", "automations_off"]);
|
|
4499
4499
|
var refusal = z29.object({ ok: z29.literal(false), code: scheduledTaskRefusalCodeSchema, message: z29.string() });
|
|
4500
|
-
var SCHEDULED_TASK_NOTE = "
|
|
4500
|
+
var SCHEDULED_TASK_NOTE = "The cockpit must be running at the due time, or start again before the latest start, for this task to launch.";
|
|
4501
4501
|
var scheduleTaskAnswerSchema = z29.union([
|
|
4502
4502
|
z29.object({ ok: z29.literal(true), task: scheduledTaskSchema, note: z29.string() }),
|
|
4503
4503
|
refusal
|
|
@@ -4923,8 +4923,8 @@ var activityWaitSchema = z34.discriminatedUnion("kind", [
|
|
|
4923
4923
|
detail: z34.object({
|
|
4924
4924
|
/** The ask card's first question. */
|
|
4925
4925
|
question: z34.string().max(ACTIVITY_TEXT_MAX).optional(),
|
|
4926
|
-
/** `question`: an open question; `turn-end`:
|
|
4927
|
-
* automatic-wake budget is spent; `completion`:
|
|
4926
|
+
/** `question`: an open question; `turn-end`: Squawk's `no-wait` wait; `budget`: the
|
|
4927
|
+
* automatic-wake budget is spent; `completion`: Squawk's completion gate. */
|
|
4928
4928
|
reason: z34.enum(["question", "turn-end", "budget", "completion"]),
|
|
4929
4929
|
/** Inputs not delivered yet, when there are any. */
|
|
4930
4930
|
queuedMessages: z34.number().int().positive().optional()
|
|
@@ -6079,14 +6079,6 @@ export {
|
|
|
6079
6079
|
cancelAutoResumeResponseSchema,
|
|
6080
6080
|
cancelResponseSchema,
|
|
6081
6081
|
capabilitiesSchema,
|
|
6082
|
-
cezarAskAnswerSchema,
|
|
6083
|
-
cezarAskRequestSchema,
|
|
6084
|
-
cezarCancelWaitAnswerSchema,
|
|
6085
|
-
cezarCancelWaitRequestSchema,
|
|
6086
|
-
cezarDoneAnswerSchema,
|
|
6087
|
-
cezarDoneRequestSchema,
|
|
6088
|
-
cezarWaitAnswerSchema,
|
|
6089
|
-
cezarWaitRequestSchema,
|
|
6090
6082
|
changedFileSchema,
|
|
6091
6083
|
changesPayloadSchema,
|
|
6092
6084
|
checkoutProgressEventSchema,
|
|
@@ -6462,6 +6454,14 @@ export {
|
|
|
6462
6454
|
skillSchema,
|
|
6463
6455
|
skillsRepoKind,
|
|
6464
6456
|
sqlPrefilterTokens,
|
|
6457
|
+
squawkAskAnswerSchema,
|
|
6458
|
+
squawkAskRequestSchema,
|
|
6459
|
+
squawkCancelWaitAnswerSchema,
|
|
6460
|
+
squawkCancelWaitRequestSchema,
|
|
6461
|
+
squawkDoneAnswerSchema,
|
|
6462
|
+
squawkDoneRequestSchema,
|
|
6463
|
+
squawkWaitAnswerSchema,
|
|
6464
|
+
squawkWaitRequestSchema,
|
|
6465
6465
|
statusEntrySchema,
|
|
6466
6466
|
stepKindSchema,
|
|
6467
6467
|
stepStateSchema,
|
|
@@ -59,7 +59,7 @@ export declare function canBeUnread(run: ReadStateInput): boolean;
|
|
|
59
59
|
* "Mark unread" (hearsay-tools/cezarion#775) takes the other road: it *clears* the receipt, and an absent one is
|
|
60
60
|
* unread by this same clause.
|
|
61
61
|
*
|
|
62
|
-
* ISO-8601 strings compare lexicographically because every timestamp
|
|
62
|
+
* ISO-8601 strings compare lexicographically because every timestamp Squawk writes is UTC
|
|
63
63
|
* (`toISOString()` → trailing `Z`), so `<` on the strings is `<` on the instants.
|
|
64
64
|
*/
|
|
65
65
|
export declare function isUnread(run: ReadStateInput): boolean;
|
|
@@ -32,7 +32,7 @@ export declare function resolveDelay(delay: string, nowMs: number, timeZone: str
|
|
|
32
32
|
export declare function wallTimeAtOrAfter(targetMs: number, timeZone: string): string;
|
|
33
33
|
/**
|
|
34
34
|
* The agent's form of a time: UTC to the minute, `YYYY-MM-DDTHH:MMZ`, like every other time a
|
|
35
|
-
*
|
|
35
|
+
* Squawk tool takes or answers. The stored schedule keeps a wall time in its zone for the cockpit.
|
|
36
36
|
*/
|
|
37
37
|
export declare const UTC_MINUTE_PATTERN: RegExp;
|
|
38
38
|
export declare const utcMinute: (instantMs: number) => string;
|
|
@@ -108,8 +108,8 @@ export declare const scheduledTaskRefusalCodeSchema: z.ZodEnum<{
|
|
|
108
108
|
unavailable: "unavailable";
|
|
109
109
|
}>;
|
|
110
110
|
export type ScheduledTaskRefusalCode = z.infer<typeof scheduledTaskRefusalCodeSchema>;
|
|
111
|
-
/** The note every create answer carries:
|
|
112
|
-
export declare const SCHEDULED_TASK_NOTE = "
|
|
111
|
+
/** The note every create answer carries: Squawk has no daemon, so it must be running. */
|
|
112
|
+
export declare const SCHEDULED_TASK_NOTE = "The cockpit must be running at the due time, or start again before the latest start, for this task to launch.";
|
|
113
113
|
export declare const scheduleTaskAnswerSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
114
114
|
ok: z.ZodLiteral<true>;
|
|
115
115
|
task: z.ZodObject<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
/** The source shapes
|
|
2
|
+
/** The source shapes Squawk accepts, as the cockpit and every refusal name them. */
|
|
3
3
|
export declare const SKILLS_REPO_FORMATS = "owner/name, an https, ssh or git URL, git@host:path, or a local or file:// path";
|
|
4
4
|
/**
|
|
5
|
-
* The kind of a `skillsRepos` `repo` value, or null when
|
|
5
|
+
* The kind of a `skillsRepos` `repo` value, or null when Squawk refuses it. One rule for the
|
|
6
6
|
* request schema, the cockpit's Add form and the server's git remote (`safeRemoteFor`).
|
|
7
7
|
*
|
|
8
8
|
* Refused: an empty value, a leading `-` (git would read an option), `::` (remote-helper
|
|
@@ -4,7 +4,7 @@ export declare const completionControlsShape: {
|
|
|
4
4
|
archiveWhenDone: z.ZodOptional<z.ZodBoolean>;
|
|
5
5
|
autoMergePr: z.ZodOptional<z.ZodBoolean>;
|
|
6
6
|
};
|
|
7
|
-
/** Task access (hearsay-tools/cezarion#2784): may the task's agents start and resume
|
|
7
|
+
/** Task access (hearsay-tools/cezarion#2784): may the task's agents start and resume Squawk workers,
|
|
8
8
|
* and message peer tasks. New runs store an explicit value; a missing value is on. */
|
|
9
9
|
export declare const taskAccessShape: {
|
|
10
10
|
allowWorkers: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8,7 +8,7 @@ import type { RunRecord } from './runs.ts';
|
|
|
8
8
|
* the time only, so a caller can still settle the hold to another status.
|
|
9
9
|
*
|
|
10
10
|
* This module has no runtime imports: `vitest.setup.ts` loads it through `run-exits.ts`, so every
|
|
11
|
-
*
|
|
11
|
+
* Squawk test loads it (hearsay-tools/cezarion#3241). `waits.ts` re-exports it.
|
|
12
12
|
*/
|
|
13
13
|
export declare function isUsageLimitHold<T extends Partial<Pick<RunRecord, 'status' | 'autoResumeAt'>>>(run: T): run is T & {
|
|
14
14
|
autoResumeAt: string;
|
package/dist/contract/waits.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export { isUsageLimitHold };
|
|
|
17
17
|
* entry with no deadline, so the list is all `computeWaitingOn` reads.
|
|
18
18
|
* hearsay-tools/cezarion#1995 adds `peer` (spec `2026-10-27-task-communication-protocol` § 7): a root
|
|
19
19
|
* task waits for named peer root tasks to write or to settle, with a deadline.
|
|
20
|
-
* hearsay-tools/cezarion#2431 adds `subagent`:
|
|
20
|
+
* hearsay-tools/cezarion#2431 adds `subagent`: Squawk's own wait on the native subagents a turn left
|
|
21
21
|
* running, with a safety deadline.
|
|
22
22
|
*/
|
|
23
23
|
export declare const WAIT_LIMIT = 16;
|
|
@@ -32,7 +32,7 @@ export declare const PROCESS_EXIT_FILE_MAX = 4096;
|
|
|
32
32
|
export declare const PEER_WAIT_DEFAULT_SECONDS = 600;
|
|
33
33
|
export declare const PEER_WAIT_MAX_SECONDS = 7200;
|
|
34
34
|
/** A subagent wait (hearsay-tools/cezarion#2431): its safety deadline after the last child event,
|
|
35
|
-
* the grace after the last child ends before
|
|
35
|
+
* the grace after the last child ends before Squawk wakes the parent, and its child bound. */
|
|
36
36
|
export declare const SUBAGENT_WAIT_DEADLINE_SECONDS = 1800;
|
|
37
37
|
export declare const SUBAGENT_WAIT_GRACE_SECONDS = 15;
|
|
38
38
|
export declare const SUBAGENT_WAIT_CHILD_LIMIT = 32;
|
|
@@ -45,13 +45,13 @@ export declare const waitPhaseSchema: z.ZodEnum<{
|
|
|
45
45
|
}>;
|
|
46
46
|
export type WaitPhase = z.infer<typeof waitPhaseSchema>;
|
|
47
47
|
/** What opened the wait: the tool itself, or one of the aliases that map into the same list.
|
|
48
|
-
* `no-wait` is the human wait
|
|
48
|
+
* `no-wait` is the human wait Squawk opens when a nudged turn still ends without one; `budget`
|
|
49
49
|
* is the one it opens when the automatic-wake budget is spent; `cez-worker-wait` is
|
|
50
50
|
* `cez worker wait`, the alias that opens a `worker` wait; `completion` is the worker wait
|
|
51
|
-
*
|
|
51
|
+
* Squawk opens for a root whose done is refused twice (hearsay-tools/cezarion#1301).
|
|
52
52
|
* `cez-message-wait` is `cez message wait --peer` (hearsay-tools/cezarion#1995); a request wait
|
|
53
53
|
* from `cez message wait --request` keeps `cez-worker-wait`. `native-subagents` is the subagent
|
|
54
|
-
* wait
|
|
54
|
+
* wait Squawk opens when a turn ends with native subagents still running (hearsay-tools/cezarion#2431). */
|
|
55
55
|
export declare const waitViaSchema: z.ZodEnum<{
|
|
56
56
|
"ask-line": "ask-line";
|
|
57
57
|
budget: "budget";
|
|
@@ -286,8 +286,8 @@ export declare const processWaitEntrySchema: z.ZodObject<{
|
|
|
286
286
|
}, z.core.$strict>;
|
|
287
287
|
export type ProcessWaitEntry = z.infer<typeof processWaitEntrySchema>;
|
|
288
288
|
/** The user. `questions` is the card the agent asked with, absent for a plain "your turn";
|
|
289
|
-
* `askSeq` is the event
|
|
290
|
-
* gate a wait without a card raises, or the note that shows
|
|
289
|
+
* `askSeq` is the event Squawk showed it as, once the turn ended: its `ask.requested`, the human
|
|
290
|
+
* gate a wait without a card raises, or the note that shows Squawk's own wait. */
|
|
291
291
|
export declare const humanWaitEntrySchema: z.ZodObject<{
|
|
292
292
|
id: z.ZodUUID;
|
|
293
293
|
source: z.ZodEnum<{
|
|
@@ -428,7 +428,7 @@ export declare const workerWaitEntrySchema: z.ZodObject<{
|
|
|
428
428
|
wakeInputId: z.ZodOptional<z.ZodUUID>;
|
|
429
429
|
}, z.core.$strict>;
|
|
430
430
|
export type WorkerWaitEntry = z.infer<typeof workerWaitEntrySchema>;
|
|
431
|
-
/** An entry the legacy `WorkerWait` shape can render: its deadline is required there.
|
|
431
|
+
/** An entry the legacy `WorkerWait` shape can render: its deadline is required there. Squawk's
|
|
432
432
|
* deadline-less completion wait is not one (hearsay-tools/cezarion#1301). */
|
|
433
433
|
export type DeadlinedWorkerWaitEntry = WorkerWaitEntry & {
|
|
434
434
|
deadline: string;
|
|
@@ -517,7 +517,7 @@ export declare const subagentWaitResultSchema: z.ZodObject<{
|
|
|
517
517
|
}, z.core.$strict>;
|
|
518
518
|
export type SubagentWaitResult = z.infer<typeof subagentWaitResultSchema>;
|
|
519
519
|
/**
|
|
520
|
-
* The native subagents a turn left running (hearsay-tools/cezarion#2431).
|
|
520
|
+
* The native subagents a turn left running (hearsay-tools/cezarion#2431). Squawk opens it at the
|
|
521
521
|
* turn end instead of a monitoring timer: the park keeps its session, which holds the children, and
|
|
522
522
|
* a monitoring-pool slot. It resolves when every child ended and the runner did not resume the
|
|
523
523
|
* parent within a grace, or at its deadline, which each child event moves.
|
|
@@ -954,7 +954,7 @@ export declare const waitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
954
954
|
}, z.core.$strict>>;
|
|
955
955
|
}, z.core.$strict>], "kind">;
|
|
956
956
|
export type Wait = z.infer<typeof waitSchema>;
|
|
957
|
-
export declare const
|
|
957
|
+
export declare const squawkWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
958
958
|
pr: z.ZodString;
|
|
959
959
|
until: z.ZodDefault<z.ZodEnum<{
|
|
960
960
|
checks: "checks";
|
|
@@ -1003,13 +1003,13 @@ export declare const cezarWaitRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObjec
|
|
|
1003
1003
|
timeout_seconds: z.ZodDefault<z.ZodNumber>;
|
|
1004
1004
|
note: z.ZodOptional<z.ZodString>;
|
|
1005
1005
|
}, z.core.$strict>], "kind">;
|
|
1006
|
-
export type
|
|
1006
|
+
export type SquawkWaitRequest = z.infer<typeof squawkWaitRequestSchema>;
|
|
1007
1007
|
/** What a caller may send: the defaults (`until`, `wake_on_conflict`, `timeout_seconds`) still unset. */
|
|
1008
|
-
export type
|
|
1009
|
-
export declare const
|
|
1008
|
+
export type SquawkWaitRequestInput = z.input<typeof squawkWaitRequestSchema>;
|
|
1009
|
+
export declare const squawkCancelWaitRequestSchema: z.ZodObject<{
|
|
1010
1010
|
wait_id: z.ZodUUID;
|
|
1011
1011
|
}, z.core.$strict>;
|
|
1012
|
-
export type
|
|
1012
|
+
export type SquawkCancelWaitRequest = z.infer<typeof squawkCancelWaitRequestSchema>;
|
|
1013
1013
|
export declare const openWaitSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1014
1014
|
wait_id: z.ZodUUID;
|
|
1015
1015
|
summary: z.ZodString;
|
|
@@ -1471,7 +1471,7 @@ export declare const waitRegistrationReceiptSchema: z.ZodObject<{
|
|
|
1471
1471
|
deduplicated: z.ZodBoolean;
|
|
1472
1472
|
}, z.core.$strict>;
|
|
1473
1473
|
export type WaitRegistrationReceipt = z.infer<typeof waitRegistrationReceiptSchema>;
|
|
1474
|
-
export declare const
|
|
1474
|
+
export declare const squawkWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1475
1475
|
operation_id: z.ZodOptional<z.ZodUUID>;
|
|
1476
1476
|
ok: z.ZodLiteral<true>;
|
|
1477
1477
|
effect: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1598,13 +1598,13 @@ export declare const cezarWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject
|
|
|
1598
1598
|
kind: z.ZodLiteral<"human">;
|
|
1599
1599
|
}, z.core.$strict>], "kind">>>;
|
|
1600
1600
|
}, z.core.$strict>], "ok">;
|
|
1601
|
-
export type
|
|
1601
|
+
export type SquawkWaitAnswer = z.infer<typeof squawkWaitAnswerSchema>;
|
|
1602
1602
|
/**
|
|
1603
1603
|
* `cezar_ask` (hearsay-tools/cezarion#1234): the user's answer, asked with a card. A question
|
|
1604
1604
|
* without options is open, and the user types its answer. The wait it opens has no deadline.
|
|
1605
1605
|
* `context` is required here (hearsay-tools/cezarion#1458), optional in every stored shape.
|
|
1606
1606
|
*/
|
|
1607
|
-
export declare const
|
|
1607
|
+
export declare const squawkAskRequestSchema: z.ZodObject<{
|
|
1608
1608
|
questions: z.ZodArray<z.ZodObject<{
|
|
1609
1609
|
id: z.ZodOptional<z.ZodString>;
|
|
1610
1610
|
header: z.ZodString;
|
|
@@ -1617,7 +1617,7 @@ export declare const cezarAskRequestSchema: z.ZodObject<{
|
|
|
1617
1617
|
}, z.core.$strict>>;
|
|
1618
1618
|
context: z.ZodString;
|
|
1619
1619
|
}, z.core.$strict>;
|
|
1620
|
-
export type
|
|
1620
|
+
export type SquawkAskRequest = z.infer<typeof squawkAskRequestSchema>;
|
|
1621
1621
|
/** The refusals a question can meet: the session's, the run's capacity, and an autonomous run. */
|
|
1622
1622
|
export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
1623
1623
|
autonomous_run: "autonomous_run";
|
|
@@ -1641,7 +1641,7 @@ export declare const askErrorCodeSchema: z.ZodEnum<{
|
|
|
1641
1641
|
worker_wait_pending: "worker_wait_pending";
|
|
1642
1642
|
}>;
|
|
1643
1643
|
export type AskErrorCode = z.infer<typeof askErrorCodeSchema>;
|
|
1644
|
-
export declare const
|
|
1644
|
+
export declare const squawkAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1645
1645
|
ok: z.ZodLiteral<true>;
|
|
1646
1646
|
wait_id: z.ZodUUID;
|
|
1647
1647
|
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1703,10 +1703,10 @@ export declare const cezarAskAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<
|
|
|
1703
1703
|
kind: z.ZodLiteral<"human">;
|
|
1704
1704
|
}, z.core.$strict>], "kind">>>;
|
|
1705
1705
|
}, z.core.$strict>], "ok">;
|
|
1706
|
-
export type
|
|
1706
|
+
export type SquawkAskAnswer = z.infer<typeof squawkAskAnswerSchema>;
|
|
1707
1707
|
/** `already_resolved`: the result is owed and arrives with the next wake; cancelling is a no-op.
|
|
1708
1708
|
* `human_question`: the question already reached the user, so only their answer ends it. */
|
|
1709
|
-
export declare const
|
|
1709
|
+
export declare const squawkCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1710
1710
|
cancelled: z.ZodLiteral<true>;
|
|
1711
1711
|
wait_id: z.ZodUUID;
|
|
1712
1712
|
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1754,12 +1754,12 @@ export declare const cezarCancelWaitAnswerSchema: z.ZodDiscriminatedUnion<[z.Zod
|
|
|
1754
1754
|
kind: z.ZodLiteral<"human">;
|
|
1755
1755
|
}, z.core.$strict>], "kind">>>;
|
|
1756
1756
|
}, z.core.$strict>], "cancelled">;
|
|
1757
|
-
export type
|
|
1757
|
+
export type SquawkCancelWaitAnswer = z.infer<typeof squawkCancelWaitAnswerSchema>;
|
|
1758
1758
|
/** `cezar_done`: the run finishes when this turn ends. The summary becomes the closing note. */
|
|
1759
|
-
export declare const
|
|
1759
|
+
export declare const squawkDoneRequestSchema: z.ZodObject<{
|
|
1760
1760
|
summary: z.ZodOptional<z.ZodString>;
|
|
1761
1761
|
}, z.core.$strict>;
|
|
1762
|
-
export type
|
|
1762
|
+
export type SquawkDoneRequest = z.infer<typeof squawkDoneRequestSchema>;
|
|
1763
1763
|
export declare const doneErrorCodeSchema: z.ZodEnum<{
|
|
1764
1764
|
capability_revoked: "capability_revoked";
|
|
1765
1765
|
finish_requested: "finish_requested";
|
|
@@ -1786,7 +1786,7 @@ export declare const doneErrorCodeSchema: z.ZodEnum<{
|
|
|
1786
1786
|
export type DoneErrorCode = z.infer<typeof doneErrorCodeSchema>;
|
|
1787
1787
|
/** An accepted done finishes the task, or, in a workflow step that is not the last, completes that
|
|
1788
1788
|
* step and starts `next_step`, named as the run's rail names it (hearsay-tools/cezarion#1620). */
|
|
1789
|
-
export declare const
|
|
1789
|
+
export declare const squawkDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1790
1790
|
ok: z.ZodLiteral<true>;
|
|
1791
1791
|
finishes: z.ZodLiteral<"at_turn_end">;
|
|
1792
1792
|
open_waits: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -1881,7 +1881,7 @@ export declare const cezarDoneAnswerSchema: z.ZodDiscriminatedUnion<[z.ZodDiscri
|
|
|
1881
1881
|
kind: z.ZodLiteral<"human">;
|
|
1882
1882
|
}, z.core.$strict>], "kind">>>;
|
|
1883
1883
|
}, z.core.$strict>], "ok">;
|
|
1884
|
-
export type
|
|
1884
|
+
export type SquawkDoneAnswer = z.infer<typeof squawkDoneAnswerSchema>;
|
|
1885
1885
|
/** Stored summaries written before hearsay-tools/cezarion#1425 carry `{ kind: 'ci' }`: a checks wait. */
|
|
1886
1886
|
export declare const waitingOnSchema: z.ZodPreprocess<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
1887
1887
|
kind: z.ZodLiteral<"human">;
|
|
@@ -1948,8 +1948,8 @@ export declare function workerWaitTargets(wait: Pick<WorkerWaitEntry, 'requestId
|
|
|
1948
1948
|
export declare function computeWaitingOn(run: WaitingOnInput): WaitingOn | undefined;
|
|
1949
1949
|
/** Whether the run waits on the user: an open human wait (phase 4b, hearsay-tools/cezarion#1236). */
|
|
1950
1950
|
export declare function asksHuman(run: Pick<WaitingOnInput, 'waits'>): boolean;
|
|
1951
|
-
/** Whether a question waits on the user: an open human wait the agent opened, or one of
|
|
1952
|
-
* that carries a card (a worker's fallback question to its parent).
|
|
1951
|
+
/** Whether a question waits on the user: an open human wait the agent opened, or one of Squawk's
|
|
1952
|
+
* that carries a card (a worker's fallback question to its parent). Squawk's other waits
|
|
1953
1953
|
* (`no-wait`, `budget`, `completion`) wait for the user without a question. */
|
|
1954
1954
|
export declare function asksQuestion(run: Pick<WaitingOnInput, 'waits'>): boolean;
|
|
1955
1955
|
/** A resolved wait is a wake owed to the agent: its result is in, its turn has not started.
|
|
@@ -1964,7 +1964,7 @@ export declare function resolveWaitingOn(run: {
|
|
|
1964
1964
|
} & WaitingOnInput): WaitingOn | undefined;
|
|
1965
1965
|
/**
|
|
1966
1966
|
* A run's worker wait in the old `WorkerWait` shape, for views that still show one: the newest
|
|
1967
|
-
* open or owed `worker` entry the agent registered (hearsay-tools/cezarion#1235).
|
|
1967
|
+
* open or owed `worker` entry the agent registered (hearsay-tools/cezarion#1235). Squawk's
|
|
1968
1968
|
* completion wait has no deadline, which that shape requires, so it is not one
|
|
1969
1969
|
* (hearsay-tools/cezarion#1301). An open entry reads `parked` once the run waits on it, unless a
|
|
1970
1970
|
* pending question holds the run.
|
|
@@ -1973,7 +1973,7 @@ export declare function workerWaitView(run: Partial<Pick<RunRecord, 'status' | '
|
|
|
1973
1973
|
/** The newest open or owed deadline-less completion entry, which `workerWaitView` leaves out. */
|
|
1974
1974
|
export declare function completionWaitEntry(waits: readonly Wait[] | undefined, workerId?: string): WorkerWaitEntry | undefined;
|
|
1975
1975
|
/**
|
|
1976
|
-
*
|
|
1976
|
+
* Squawk's completion wait as inspection and the relationships view show it, read from the list
|
|
1977
1977
|
* like `workerWaitView` (hearsay-tools/cezarion#1301): its phases map as the legacy shape's do.
|
|
1978
1978
|
*/
|
|
1979
1979
|
export declare function workerCompletionWaitProjection(entry: WorkerWaitEntry, run: Partial<Pick<RunRecord, 'status' | 'waits'>>): WorkerCompletionWait;
|