@wjarka/cezarion 0.16.0 → 0.17.0
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 +1 -0
- package/README.md +594 -207
- package/dist/agent-config/account-identity.d.ts +3 -19
- package/dist/agent-config/account-identity.js +8 -5
- package/dist/agent-config/account-identity.js.map +1 -1
- package/dist/agent-config/catalog.d.ts +3 -14
- package/dist/agent-config/catalog.js.map +1 -1
- package/dist/agent-config/files.d.ts +2 -6
- package/dist/agent-config/files.js +2 -6
- package/dist/agent-config/files.js.map +1 -1
- package/dist/agent-config/model-settings/types.d.ts +1 -1
- package/dist/agent-config/seed.d.ts +11 -3
- package/dist/agent-config/seed.js +52 -48
- package/dist/agent-config/seed.js.map +1 -1
- package/dist/agent-config/service.js +3 -2
- package/dist/agent-config/service.js.map +1 -1
- package/dist/agent-config/validate.d.ts +1 -4
- package/dist/agent-config/validate.js.map +1 -1
- package/dist/application-update/helper.d.ts +2 -2
- package/dist/application-update/helper.js +7 -12
- package/dist/application-update/helper.js.map +1 -1
- package/dist/application-update/launcher.d.ts +4 -0
- package/dist/application-update/launcher.js +18 -12
- package/dist/application-update/launcher.js.map +1 -1
- package/dist/application-update/service.d.ts +3 -3
- package/dist/application-update/service.js +1 -1
- package/dist/application-update/service.js.map +1 -1
- package/dist/archive-on-merge-setting.d.ts +15 -0
- package/dist/archive-on-merge-setting.js +14 -0
- package/dist/archive-on-merge-setting.js.map +1 -0
- package/dist/artifacts/cli.d.ts +8 -0
- package/dist/artifacts/cli.js +21 -2
- package/dist/artifacts/cli.js.map +1 -1
- package/dist/artifacts/resolve.js +2 -1
- package/dist/artifacts/resolve.js.map +1 -1
- package/dist/artifacts/store.js.map +1 -1
- package/dist/automations/automation-cli.d.ts +59 -0
- package/dist/automations/automation-cli.js +509 -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/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 +23 -4
- package/dist/automations/github-poller.js +157 -88
- package/dist/automations/github-poller.js.map +1 -1
- package/dist/automations/prompts.d.ts +12 -0
- package/dist/automations/prompts.js +160 -0
- package/dist/automations/prompts.js.map +1 -0
- package/dist/automations/schedule-runner.d.ts +43 -24
- package/dist/automations/schedule-runner.js +207 -20
- package/dist/automations/schedule-runner.js.map +1 -1
- package/dist/automations/scheduler.d.ts +10 -2
- package/dist/automations/scheduler.js +200 -54
- package/dist/automations/scheduler.js.map +1 -1
- package/dist/automations/service.d.ts +777 -0
- package/dist/automations/service.js +444 -0
- package/dist/automations/service.js.map +1 -0
- package/dist/automations/store.d.ts +17 -7
- package/dist/automations/store.js +88 -17
- package/dist/automations/store.js.map +1 -1
- package/dist/automations/task-template.d.ts +7 -2
- package/dist/automations/task-template.js +93 -44
- package/dist/automations/task-template.js.map +1 -1
- package/dist/automations/tool-adapter.d.ts +6 -0
- package/dist/automations/tool-adapter.js +108 -0
- package/dist/automations/tool-adapter.js.map +1 -0
- package/dist/automations/types.d.ts +1 -405
- package/dist/automations/types.js +1 -218
- package/dist/automations/types.js.map +1 -1
- 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 +3 -0
- package/dist/autosave-git.js +67 -35
- package/dist/autosave-git.js.map +1 -1
- 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 +31 -4
- package/dist/autosave-holders.js +92 -7
- package/dist/autosave-holders.js.map +1 -1
- package/dist/autosave-windows.d.ts +14 -0
- package/dist/autosave-windows.js +36 -2
- package/dist/autosave-windows.js.map +1 -1
- package/dist/ci-wait/client.d.ts +20 -3
- package/dist/ci-wait/client.js +40 -44
- package/dist/ci-wait/client.js.map +1 -1
- package/dist/ci-wait/controller.d.ts +622 -36
- package/dist/ci-wait/controller.js +152 -20
- package/dist/ci-wait/controller.js.map +1 -1
- package/dist/ci-wait/errors.d.ts +19 -0
- package/dist/ci-wait/errors.js +180 -2
- package/dist/ci-wait/errors.js.map +1 -1
- package/dist/ci-wait/github.d.ts +25 -1
- package/dist/ci-wait/github.js +76 -9
- package/dist/ci-wait/github.js.map +1 -1
- package/dist/ci-wait/mcp.d.ts +0 -1
- package/dist/ci-wait/mcp.js +0 -2
- package/dist/ci-wait/mcp.js.map +1 -1
- package/dist/ci-wait/supervisor.d.ts +7 -0
- package/dist/ci-wait/supervisor.js +113 -17
- package/dist/ci-wait/supervisor.js.map +1 -1
- package/dist/ci-wait/tools.d.ts +536 -16
- package/dist/ci-wait/tools.js +165 -20
- package/dist/ci-wait/tools.js.map +1 -1
- package/dist/config.d.ts +3 -17
- package/dist/config.js +4 -60
- package/dist/config.js.map +1 -1
- package/dist/contract/active-provider.d.ts +12 -0
- package/dist/contract/agent-profiles.d.ts +2 -10
- package/dist/contract/ask-schema.d.ts +22 -4
- package/dist/contract/ask.d.ts +6 -4
- package/dist/contract/attachments.d.ts +35 -0
- package/dist/contract/attention.d.ts +46 -37
- package/dist/contract/automation-requests.d.ts +308 -0
- package/dist/contract/automation-schedule.d.ts +40 -11
- package/dist/contract/automation-storage.d.ts +512 -0
- package/dist/contract/automations.d.ts +421 -40
- package/dist/contract/ci-wait.d.ts +41 -4
- package/dist/contract/config-requests.d.ts +36 -0
- package/dist/contract/conversations.d.ts +24 -10
- package/dist/contract/defined.d.ts +8 -0
- package/dist/contract/delegation.d.ts +312 -8
- package/dist/contract/events.d.ts +24 -3
- package/dist/contract/github-requests.d.ts +26 -0
- package/dist/contract/github.d.ts +60 -27
- package/dist/contract/handoff.d.ts +43 -0
- package/dist/contract/health.d.ts +2 -2
- package/dist/contract/image-path.d.ts +6 -0
- package/dist/contract/index.d.ts +31 -0
- package/dist/contract/index.js +3756 -1525
- package/dist/contract/live-coordination.d.ts +158 -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/permissions.d.ts +54 -0
- package/dist/contract/preview.d.ts +33 -0
- package/dist/contract/project-limits.d.ts +33 -0
- package/dist/contract/projects.d.ts +486 -20
- 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/run-labels.d.ts +8 -0
- package/dist/contract/run-limits.d.ts +8 -0
- package/dist/contract/run-predicates.d.ts +32 -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 +2232 -1894
- package/dist/contract/scheduled-tasks.d.ts +187 -0
- package/dist/contract/skills.d.ts +22 -772
- package/dist/contract/team-skill-ref.d.ts +10 -0
- package/dist/{core → contract}/tool-display.d.ts +4 -10
- 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 +1204 -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 +1 -2
- package/dist/contract/workspace.d.ts +34 -82
- package/dist/contract/zoned-time.d.ts +2 -11
- package/dist/core/agent-env.d.ts +4 -16
- package/dist/core/agent-env.js +14 -16
- package/dist/core/agent-env.js.map +1 -1
- package/dist/core/agent-profiles.d.ts +28 -40
- package/dist/core/agent-profiles.js +56 -51
- package/dist/core/agent-profiles.js.map +1 -1
- package/dist/core/agent-runner.d.ts +88 -44
- package/dist/core/agent-runner.js +17 -18
- package/dist/core/agent-runner.js.map +1 -1
- package/dist/core/ask.d.ts +3 -0
- package/dist/core/ask.js +12 -0
- package/dist/core/ask.js.map +1 -1
- package/dist/core/backend-detect.js +16 -2
- package/dist/core/backend-detect.js.map +1 -1
- package/dist/core/claude-cli-runner.d.ts +23 -4
- package/dist/core/claude-cli-runner.js +280 -76
- package/dist/core/claude-cli-runner.js.map +1 -1
- package/dist/core/claude-model-catalog.d.ts +2 -10
- package/dist/core/claude-model-catalog.js +2 -10
- package/dist/core/claude-model-catalog.js.map +1 -1
- package/dist/core/claude-ui-mapper.d.ts +2 -2
- package/dist/core/claude-ui-mapper.js +94 -2
- package/dist/core/claude-ui-mapper.js.map +1 -1
- package/dist/core/codex-app-server-runner.d.ts +3 -4
- package/dist/core/codex-app-server-runner.js +146 -51
- package/dist/core/codex-app-server-runner.js.map +1 -1
- package/dist/core/codex-app-server-transport.d.ts +4 -3
- package/dist/core/codex-app-server-transport.js +11 -7
- package/dist/core/codex-app-server-transport.js.map +1 -1
- package/dist/core/codex-approvals.d.ts +12 -0
- package/dist/core/codex-approvals.js +161 -0
- package/dist/core/codex-approvals.js.map +1 -0
- package/dist/core/codex-permissions.d.ts +1 -1
- package/dist/core/codex-ui-mapper.js +45 -1
- package/dist/core/codex-ui-mapper.js.map +1 -1
- package/dist/core/cursor-acp-runner.d.ts +1 -1
- package/dist/core/cursor-acp-runner.js +39 -15
- package/dist/core/cursor-acp-runner.js.map +1 -1
- 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-model-catalog.d.ts +22 -0
- package/dist/core/cursor-model-catalog.js +53 -24
- package/dist/core/cursor-model-catalog.js.map +1 -1
- package/dist/core/cursor-print-capabilities.d.ts +16 -0
- package/dist/core/cursor-print-capabilities.js +141 -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 +31 -0
- package/dist/core/cursor-print-runner.js +555 -0
- package/dist/core/cursor-print-runner.js.map +1 -0
- package/dist/core/cursor-print-tool-catalog.d.ts +10 -0
- package/dist/core/cursor-print-tool-catalog.js +91 -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 +553 -0
- package/dist/core/cursor-print-ui-mapper.js.map +1 -0
- package/dist/core/cursor-runner.d.ts +24 -0
- package/dist/core/cursor-runner.js +149 -0
- package/dist/core/cursor-runner.js.map +1 -0
- package/dist/core/cursor-ui-mapper.js +5 -2
- package/dist/core/cursor-ui-mapper.js.map +1 -1
- 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/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 +2 -9
- package/dist/core/host-model-catalog.js +2 -9
- package/dist/core/host-model-catalog.js.map +1 -1
- package/dist/core/managed-session.js +15 -3
- package/dist/core/managed-session.js.map +1 -1
- package/dist/core/model-identity.d.ts +4 -21
- package/dist/core/model-identity.js.map +1 -1
- package/dist/core/model-presets.d.ts +2 -13
- package/dist/core/model-presets.js +2 -13
- package/dist/core/model-presets.js.map +1 -1
- package/dist/core/omp-model-catalog.js.map +1 -1
- package/dist/core/omp-runner.d.ts +6 -7
- package/dist/core/omp-runner.js +92 -33
- package/dist/core/omp-runner.js.map +1 -1
- package/dist/core/omp-ui-mapper.js +1 -1
- package/dist/core/omp-ui-mapper.js.map +1 -1
- package/dist/core/opencode-model-catalog.js.map +1 -1
- 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-server-runner.d.ts +10 -9
- package/dist/core/opencode-server-runner.js +286 -28
- package/dist/core/opencode-server-runner.js.map +1 -1
- package/dist/core/opencode-session-error.d.ts +15 -7
- package/dist/core/opencode-session-error.js +25 -9
- package/dist/core/opencode-session-error.js.map +1 -1
- package/dist/core/opencode-ui-mapper.js +2 -2
- package/dist/core/opencode-ui-mapper.js.map +1 -1
- package/dist/core/pi-model-catalog.js.map +1 -1
- package/dist/core/pi-runner.d.ts +12 -4
- package/dist/core/pi-runner.js +171 -63
- package/dist/core/pi-runner.js.map +1 -1
- package/dist/core/pi-ui-mapper.js +1 -1
- package/dist/core/pi-ui-mapper.js.map +1 -1
- package/dist/core/process-usage.d.ts +5 -0
- package/dist/core/process-usage.js +24 -4
- package/dist/core/process-usage.js.map +1 -1
- package/dist/core/provider-auth.d.ts +16 -107
- package/dist/core/provider-auth.js +16 -132
- package/dist/core/provider-auth.js.map +1 -1
- package/dist/core/runner-factory.d.ts +4 -1
- package/dist/core/runner-factory.js +3 -3
- package/dist/core/runner-factory.js.map +1 -1
- package/dist/core/runner-runtime.d.ts +22 -0
- package/dist/core/runner-runtime.js +66 -5
- package/dist/core/runner-runtime.js.map +1 -1
- package/dist/core/runner-tool-grants.d.ts +21 -0
- package/dist/core/runner-tool-grants.js +64 -0
- package/dist/core/runner-tool-grants.js.map +1 -0
- package/dist/core/secret-redaction.d.ts +3 -20
- package/dist/core/secret-redaction.js +3 -20
- package/dist/core/secret-redaction.js.map +1 -1
- package/dist/core/session-process.d.ts +22 -2
- package/dist/core/session-process.js +170 -12
- package/dist/core/session-process.js.map +1 -1
- package/dist/core/shell-env.d.ts +2 -15
- package/dist/core/shell-env.js +2 -15
- package/dist/core/shell-env.js.map +1 -1
- package/dist/core/ui-events.d.ts +60 -47
- package/dist/core/ui-events.js +0 -23
- package/dist/core/ui-events.js.map +1 -1
- package/dist/core/usage-limit.js.map +1 -1
- package/dist/data-gitignore.js +3 -1
- package/dist/data-gitignore.js.map +1 -1
- package/dist/delegation/capacity.d.ts +4 -8
- package/dist/delegation/capacity.js +4 -8
- package/dist/delegation/capacity.js.map +1 -1
- package/dist/delegation/cli.js +123 -21
- package/dist/delegation/cli.js.map +1 -1
- package/dist/delegation/context.d.ts +19 -3
- package/dist/delegation/context.js +217 -22
- package/dist/delegation/context.js.map +1 -1
- package/dist/delegation/conversations.d.ts +4 -3
- package/dist/delegation/conversations.js +7 -5
- package/dist/delegation/conversations.js.map +1 -1
- package/dist/delegation/destroy-observation.d.ts +1 -1
- package/dist/delegation/destroy-observation.js.map +1 -1
- package/dist/delegation/effort.js.map +1 -1
- package/dist/delegation/execution-identity.d.ts +1 -1
- package/dist/delegation/execution-identity.js +41 -7
- package/dist/delegation/execution-identity.js.map +1 -1
- package/dist/delegation/idle-test-app.d.ts +4 -0
- package/dist/delegation/idle-test-app.js +174 -0
- package/dist/delegation/idle-test-app.js.map +1 -0
- package/dist/delegation/input.js.map +1 -1
- package/dist/delegation/park-notice.d.ts +42 -0
- package/dist/delegation/park-notice.js +71 -0
- package/dist/delegation/park-notice.js.map +1 -0
- package/dist/delegation/policy.d.ts +2 -0
- package/dist/delegation/policy.js +9 -1
- package/dist/delegation/policy.js.map +1 -1
- package/dist/delegation/process-liveness.d.ts +10 -15
- package/dist/delegation/process-liveness.js +11 -35
- package/dist/delegation/process-liveness.js.map +1 -1
- package/dist/delegation/provision.js +21 -19
- package/dist/delegation/provision.js.map +1 -1
- package/dist/delegation/questions.d.ts +3 -1
- package/dist/delegation/questions.js +10 -5
- package/dist/delegation/questions.js.map +1 -1
- package/dist/delegation/readiness.d.ts +2 -2
- package/dist/delegation/results.d.ts +4 -1
- package/dist/delegation/results.js +49 -18
- package/dist/delegation/results.js.map +1 -1
- package/dist/delegation/retry-backoff.d.ts +8 -0
- package/dist/delegation/retry-backoff.js +8 -0
- package/dist/delegation/retry-backoff.js.map +1 -1
- package/dist/delegation/routes.d.ts +114 -30
- package/dist/delegation/routes.js +4 -1
- package/dist/delegation/routes.js.map +1 -1
- package/dist/delegation/scratch-cleanup.d.ts +4 -5
- package/dist/delegation/scratch-cleanup.js +10 -8
- package/dist/delegation/scratch-cleanup.js.map +1 -1
- package/dist/delegation/service.d.ts +12 -4
- package/dist/delegation/service.js +76 -28
- package/dist/delegation/service.js.map +1 -1
- package/dist/delegation/transport.d.ts +154 -70
- package/dist/delegation/wait.d.ts +11 -0
- package/dist/delegation/wait.js +24 -0
- package/dist/delegation/wait.js.map +1 -1
- package/dist/delegation/windows-test-app.d.ts +5 -0
- package/dist/delegation/windows-test-app.js +63 -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 +22 -0
- package/dist/delegation/windows-workspace-identity.js.map +1 -0
- package/dist/delegation/workspace.d.ts +5 -10
- package/dist/delegation/workspace.js +136 -75
- package/dist/delegation/workspace.js.map +1 -1
- package/dist/detached-process.d.ts +103 -0
- package/dist/detached-process.js +301 -0
- package/dist/detached-process.js.map +1 -0
- package/dist/discovery/catalog.d.ts +2 -1
- package/dist/discovery/catalog.js.map +1 -1
- package/dist/discovery/cli.js +3 -1
- package/dist/discovery/cli.js.map +1 -1
- package/dist/git-diff-base.d.ts +6 -61
- package/dist/git-diff-base.js +6 -70
- package/dist/git-diff-base.js.map +1 -1
- 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-worktree-lock.d.ts +2 -4
- package/dist/git-worktree-lock.js +2 -4
- package/dist/git-worktree-lock.js.map +1 -1
- package/dist/git-worktree-release.d.ts +2 -2
- package/dist/git-worktree-release.js.map +1 -1
- package/dist/git-worktree.d.ts +47 -76
- package/dist/git-worktree.js +240 -94
- package/dist/git-worktree.js.map +1 -1
- package/dist/handoff.d.ts +51 -41
- package/dist/handoff.js +130 -78
- package/dist/handoff.js.map +1 -1
- package/dist/index.js +60 -39
- package/dist/index.js.map +1 -1
- 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/open-url.js +4 -14
- package/dist/open-url.js.map +1 -1
- package/dist/paths.d.ts +10 -13
- package/dist/paths.js +36 -17
- package/dist/paths.js.map +1 -1
- package/dist/planner.d.ts +2 -1
- package/dist/planner.js +9 -6
- package/dist/planner.js.map +1 -1
- package/dist/preview/agent-address.d.ts +34 -0
- package/dist/preview/agent-address.js +51 -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/cdp-proxy.d.ts +54 -0
- package/dist/preview/cdp-proxy.js +151 -0
- package/dist/preview/cdp-proxy.js.map +1 -0
- package/dist/preview/cdp.d.ts +39 -3
- package/dist/preview/cdp.js +155 -57
- package/dist/preview/cdp.js.map +1 -1
- package/dist/preview/chromium.d.ts +18 -6
- package/dist/preview/chromium.js +112 -25
- package/dist/preview/chromium.js.map +1 -1
- package/dist/preview/dev-server.d.ts +1 -1
- package/dist/preview/dev-server.js +20 -44
- package/dist/preview/dev-server.js.map +1 -1
- package/dist/preview/host.d.ts +70 -3
- package/dist/preview/host.js +314 -28
- package/dist/preview/host.js.map +1 -1
- package/dist/preview/registration.d.ts +10 -5
- package/dist/preview/registration.js +2 -0
- package/dist/preview/registration.js.map +1 -1
- package/dist/preview/session.d.ts +2 -0
- package/dist/preview/session.js +10 -0
- package/dist/preview/session.js.map +1 -1
- 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/release/snapshot.d.ts +6 -6
- package/dist/runs/agent-tmpdir.d.ts +51 -36
- package/dist/runs/agent-tmpdir.js +389 -132
- package/dist/runs/agent-tmpdir.js.map +1 -1
- package/dist/runs/auto-name.d.ts +6 -6
- package/dist/runs/auto-name.js +1 -1
- package/dist/runs/auto-name.js.map +1 -1
- package/dist/runs/client-request.d.ts +3 -3
- package/dist/runs/client-request.js +3 -3
- package/dist/runs/client-request.js.map +1 -1
- package/dist/runs/delegation-state.d.ts +11 -2
- package/dist/runs/delegation-state.js.map +1 -1
- package/dist/runs/event-history-agent-context.d.ts +14 -0
- package/dist/runs/event-history-agent-context.js +105 -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 +4 -1
- package/dist/runs/event-history.js +29 -130
- package/dist/runs/event-history.js.map +1 -1
- 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 +6 -19
- package/dist/runs/legacy-index.js +6 -19
- package/dist/runs/legacy-index.js.map +1 -1
- package/dist/runs/live-item-snapshots.d.ts +13 -0
- package/dist/runs/live-item-snapshots.js +79 -0
- package/dist/runs/live-item-snapshots.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 +98 -0
- package/dist/runs/outcome-commit.js +132 -0
- package/dist/runs/outcome-commit.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 +3 -15
- package/dist/runs/raw-record.js +3 -15
- package/dist/runs/raw-record.js.map +1 -1
- package/dist/runs/retention.d.ts +2 -2
- package/dist/runs/retention.js +7 -0
- package/dist/runs/retention.js.map +1 -1
- package/dist/runs/review-gate.d.ts +1 -1
- package/dist/runs/review-gate.js.map +1 -1
- package/dist/runs/run-claims.d.ts +2 -9
- package/dist/runs/run-claims.js.map +1 -1
- package/dist/runs/run-database.d.ts +29 -34
- package/dist/runs/run-database.js +124 -46
- package/dist/runs/run-database.js.map +1 -1
- package/dist/runs/run-index.d.ts +6 -25
- package/dist/runs/run-index.js +25 -38
- package/dist/runs/run-index.js.map +1 -1
- package/dist/runs/run-row.d.ts +5 -34
- package/dist/runs/run-row.js +13 -38
- package/dist/runs/run-row.js.map +1 -1
- package/dist/runs/store.d.ts +1597 -744
- package/dist/runs/store.js +1231 -739
- package/dist/runs/store.js.map +1 -1
- package/dist/runs/task-markers.d.ts +1 -0
- package/dist/runs/task-markers.js +5 -1
- package/dist/runs/task-markers.js.map +1 -1
- package/dist/runs/task-refs.d.ts +3 -3
- 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 +13 -51
- package/dist/runs/transcript-facts.js +86 -202
- package/dist/runs/transcript-facts.js.map +1 -1
- package/dist/runs/ui-event-sink.d.ts +5 -30
- package/dist/runs/ui-event-sink.js +8 -30
- package/dist/runs/ui-event-sink.js.map +1 -1
- package/dist/runs/webhook.d.ts +104 -38
- package/dist/runs/webhook.js +180 -77
- package/dist/runs/webhook.js.map +1 -1
- package/dist/server/app-type.d.ts +2 -17
- package/dist/server/archive-on-merge.d.ts +35 -0
- package/dist/server/archive-on-merge.js +202 -0
- package/dist/server/archive-on-merge.js.map +1 -0
- package/dist/server/capabilities.d.ts +3 -15
- package/dist/server/capabilities.js +6 -19
- package/dist/server/capabilities.js.map +1 -1
- 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 +10 -19
- package/dist/server/checkout.js +15 -45
- package/dist/server/checkout.js.map +1 -1
- package/dist/server/cockpit-ownership.d.ts +2 -0
- package/dist/server/cockpit-ownership.js +9 -0
- package/dist/server/cockpit-ownership.js.map +1 -1
- package/dist/server/cold-repo-handles.d.ts +2 -7
- package/dist/server/cold-repo-handles.js +2 -7
- package/dist/server/cold-repo-handles.js.map +1 -1
- package/dist/server/completion-actions.d.ts +30 -0
- package/dist/server/completion-actions.js +204 -0
- package/dist/server/completion-actions.js.map +1 -0
- package/dist/server/create-project.d.ts +71 -0
- package/dist/server/create-project.js +448 -0
- package/dist/server/create-project.js.map +1 -0
- package/dist/server/forge/github-filters.d.ts +7 -1
- package/dist/server/forge/github-filters.js +66 -51
- package/dist/server/forge/github-filters.js.map +1 -1
- package/dist/server/forge/github-merge-requirements.d.ts +18 -0
- package/dist/server/forge/github-merge-requirements.js +137 -0
- package/dist/server/forge/github-merge-requirements.js.map +1 -0
- package/dist/server/forge/github.d.ts +98 -111
- package/dist/server/forge/github.js +625 -306
- package/dist/server/forge/github.js.map +1 -1
- package/dist/server/forge/types.d.ts +25 -22
- package/dist/server/fs-browse.d.ts +3 -28
- package/dist/server/fs-browse.js.map +1 -1
- package/dist/server/git-changes.d.ts +5 -15
- package/dist/server/git-changes.js +3 -50
- package/dist/server/git-changes.js.map +1 -1
- package/dist/server/git.d.ts +3 -1
- package/dist/server/git.js +12 -0
- package/dist/server/git.js.map +1 -1
- package/dist/server/github.d.ts +1 -1
- package/dist/server/github.js +1 -1
- package/dist/server/github.js.map +1 -1
- package/dist/server/launch-key.d.ts +2 -4
- package/dist/server/launch-key.js +2 -4
- package/dist/server/launch-key.js.map +1 -1
- package/dist/server/live-routes.d.ts +68 -0
- package/dist/server/live-routes.js +147 -0
- package/dist/server/live-routes.js.map +1 -0
- package/dist/server/open-in-app.d.ts +4 -13
- package/dist/server/open-in-app.js +5 -41
- package/dist/server/open-in-app.js.map +1 -1
- package/dist/server/open-in-targets.d.ts +42 -0
- package/dist/server/open-in-targets.js +110 -0
- package/dist/server/open-in-targets.js.map +1 -0
- package/dist/server/open-in-terminal.d.ts +3 -0
- package/dist/server/open-in-terminal.js +6 -26
- package/dist/server/open-in-terminal.js.map +1 -1
- 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 +11 -11
- package/dist/server/preview-socket.js +22 -22
- package/dist/server/preview-socket.js.map +1 -1
- 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 +54 -18
- package/dist/server/project-context.js +178 -5
- package/dist/server/project-context.js.map +1 -1
- package/dist/server/provider-action-gate.d.ts +0 -2
- package/dist/server/provider-action-gate.js +0 -21
- package/dist/server/provider-action-gate.js.map +1 -1
- package/dist/server/provider-auth-runtime.d.ts +3 -18
- package/dist/server/provider-auth-runtime.js +3 -18
- package/dist/server/provider-auth-runtime.js.map +1 -1
- package/dist/server/repo-branches.d.ts +3 -9
- package/dist/server/repo-branches.js +6 -22
- package/dist/server/repo-branches.js.map +1 -1
- package/dist/server/run-event-feed.d.ts +20 -0
- package/dist/server/run-event-feed.js +190 -0
- package/dist/server/run-event-feed.js.map +1 -0
- package/dist/server/server-deps.d.ts +37 -0
- package/dist/server/server-deps.js +114 -0
- package/dist/server/server-deps.js.map +1 -0
- package/dist/server/server.d.ts +14082 -11998
- package/dist/server/server.js +785 -1647
- package/dist/server/server.js.map +1 -1
- package/dist/server/start-run-options.d.ts +82 -0
- package/dist/server/start-run-options.js +111 -0
- package/dist/server/start-run-options.js.map +1 -0
- package/dist/server/validators.d.ts +3 -29
- package/dist/server/validators.js +1 -2
- package/dist/server/validators.js.map +1 -1
- package/dist/server/ws.d.ts +3 -23
- package/dist/server/ws.js +3 -23
- package/dist/server/ws.js.map +1 -1
- package/dist/server-install/engine.d.ts +6 -9
- package/dist/server-install/engine.js +2 -9
- package/dist/server-install/engine.js.map +1 -1
- package/dist/server-install/platforms/ubuntu-vps.d.ts +1 -1
- package/dist/server-install/state.d.ts +2 -4
- package/dist/server-install/state.js +2 -4
- package/dist/server-install/state.js.map +1 -1
- package/dist/server-install/steps.d.ts +2 -5
- package/dist/server-install/steps.js +3 -6
- package/dist/server-install/steps.js.map +1 -1
- package/dist/server-install/types.d.ts +3 -6
- package/dist/server-install/types.js +2 -5
- package/dist/server-install/types.js.map +1 -1
- package/dist/server-install/ui.d.ts +2 -8
- package/dist/server-install/ui.js +3 -3
- package/dist/server-install/ui.js.map +1 -1
- package/dist/session-context.d.ts +64 -0
- package/dist/session-context.js +264 -0
- package/dist/session-context.js.map +1 -0
- package/dist/skills-provision.d.ts +62 -0
- package/dist/skills-provision.js +325 -0
- package/dist/skills-provision.js.map +1 -0
- package/dist/skills-remote.d.ts +29 -27
- package/dist/skills-remote.js +236 -100
- package/dist/skills-remote.js.map +1 -1
- package/dist/skills.d.ts +25 -36
- package/dist/skills.js +43 -54
- package/dist/skills.js.map +1 -1
- package/dist/subcommands.d.ts +11 -0
- package/dist/subcommands.js +24 -0
- package/dist/subcommands.js.map +1 -0
- package/dist/task-cli/cli.js +78 -25
- package/dist/task-cli/cli.js.map +1 -1
- package/dist/task-cli/discovery.d.ts +4 -2
- package/dist/task-cli/discovery.js +14 -13
- package/dist/task-cli/discovery.js.map +1 -1
- package/dist/task-cli/hint.d.ts +20 -0
- package/dist/task-cli/hint.js +14 -0
- package/dist/task-cli/hint.js.map +1 -0
- package/dist/task-cli/http.d.ts +1 -0
- package/dist/task-cli/http.js +3 -1
- package/dist/task-cli/http.js.map +1 -1
- package/dist/task-cli/projections.d.ts +14 -11
- package/dist/task-cli/projections.js +15 -11
- package/dist/task-cli/projections.js.map +1 -1
- package/dist/task-cli/watch.d.ts +18 -10
- package/dist/task-cli/watch.js +128 -20
- package/dist/task-cli/watch.js.map +1 -1
- package/dist/ui-state.d.ts +17 -3
- package/dist/ui-state.js +56 -9
- package/dist/ui-state.js.map +1 -1
- package/dist/update-check.d.ts +0 -10
- package/dist/update-check.js +1 -16
- package/dist/update-check.js.map +1 -1
- package/dist/voice/decide.d.ts +32 -0
- package/dist/voice/decide.js +297 -0
- package/dist/voice/decide.js.map +1 -0
- package/dist/voice/decision-log.d.ts +52 -0
- package/dist/voice/decision-log.js +107 -0
- package/dist/voice/decision-log.js.map +1 -0
- package/dist/voice/engine.d.ts +119 -0
- package/dist/voice/engine.js +60 -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 +50 -0
- package/dist/voice/pending-ask.js.map +1 -0
- package/dist/voice/routes.d.ts +115 -0
- package/dist/voice/routes.js +91 -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 +145 -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 +167 -0
- package/dist/workflows/active-run.js +21 -0
- package/dist/workflows/active-run.js.map +1 -0
- package/dist/workflows/continuation-admission.d.ts +913 -0
- package/dist/workflows/continuation-admission.js +265 -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/input-acknowledgement.d.ts +152 -0
- package/dist/workflows/input-acknowledgement.js +38 -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/outcome-batches.d.ts +20 -0
- package/dist/workflows/outcome-batches.js +25 -0
- package/dist/workflows/outcome-batches.js.map +1 -0
- package/dist/workflows/question-routing.d.ts +8 -0
- package/dist/workflows/question-routing.js +18 -0
- package/dist/workflows/question-routing.js.map +1 -0
- package/dist/workflows/run-scheduling.d.ts +35 -0
- package/dist/workflows/run-scheduling.js +61 -0
- package/dist/workflows/run-scheduling.js.map +1 -0
- package/dist/workflows/run-states.d.ts +190 -0
- package/dist/workflows/run-states.js +295 -0
- package/dist/workflows/run-states.js.map +1 -0
- package/dist/workflows/run.d.ts +1296 -278
- package/dist/workflows/run.js +5730 -3265
- package/dist/workflows/run.js.map +1 -1
- package/dist/workflows/turn-end.d.ts +116 -0
- package/dist/workflows/turn-end.js +68 -0
- package/dist/workflows/turn-end.js.map +1 -0
- package/dist/workflows/types.d.ts +35 -130
- package/dist/workflows/types.js +47 -100
- package/dist/workflows/types.js.map +1 -1
- package/dist/workflows/waits.d.ts +74 -0
- package/dist/workflows/waits.js +197 -0
- package/dist/workflows/waits.js.map +1 -0
- package/dist/workspace/agent-accounts.d.ts +5 -38
- package/dist/workspace/agent-accounts.js +14 -40
- package/dist/workspace/agent-accounts.js.map +1 -1
- package/dist/workspace/agent-profiles.d.ts +40 -16
- package/dist/workspace/agent-profiles.js +77 -17
- package/dist/workspace/agent-profiles.js.map +1 -1
- package/dist/workspace/config.d.ts +48 -49
- package/dist/workspace/config.js +68 -72
- package/dist/workspace/config.js.map +1 -1
- package/dist/workspace/migrations.d.ts +3 -13
- package/dist/workspace/migrations.js.map +1 -1
- package/dist/workspace/projects-cli.d.ts +1 -1
- package/dist/workspace/projects-cli.js.map +1 -1
- package/dist/workspace/projects.d.ts +15 -18
- package/dist/workspace/projects.js +20 -16
- package/dist/workspace/projects.js.map +1 -1
- package/dist/workspace/semaphore.d.ts +11 -45
- package/dist/workspace/semaphore.js +6 -18
- package/dist/workspace/semaphore.js.map +1 -1
- package/dist/workspace/ui-state.d.ts +6 -4
- package/dist/workspace/ui-state.js +6 -4
- package/dist/workspace/ui-state.js.map +1 -1
- 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 +530 -0
- package/dist/worktree-manifest.js.map +1 -0
- package/dist/worktree-setup.js.map +1 -1
- package/package.json +6 -5
- package/scripts/benchmark-run-store-fixture.ts +7 -3
- package/scripts/check-pack.mjs +3 -1
- package/scripts/inline-contract.mjs +80 -27
- package/scripts/install-as-command.mjs +3 -1
- package/scripts/measure-transcript-facts-health.mjs +87 -0
- package/scripts/measure-transcript-facts-lag.mjs +68 -0
- package/scripts/mock-ci-tool.mjs +49 -6
- package/scripts/mock-claude-model-refusal.mjs +42 -0
- package/scripts/mock-claude.mjs +833 -591
- package/scripts/mock-codex-app-server.mjs +785 -418
- package/scripts/mock-cursor-acp.mjs +296 -125
- package/scripts/mock-cursor-print.mjs +256 -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-multi-pr.mjs +7 -0
- package/scripts/mock-nudge.mjs +45 -0
- package/scripts/mock-omp-rpc.mjs +429 -255
- package/scripts/mock-opencode-serve.mjs +972 -557
- package/scripts/mock-pi-rpc.mjs +558 -331
- package/scripts/mock-runner-crash.mjs +18 -2
- package/scripts/mock-session-context.d.mts +5 -0
- package/scripts/mock-session-context.mjs +56 -0
- package/scripts/mock-silent-tail.mjs +10 -3
- package/scripts/pi-default-tools.mjs +22 -0
- package/scripts/pi-project-skills.mjs +59 -0
- package/scripts/probe-cursor-print.mjs +627 -0
- package/scripts/transcript-facts-fixture.mjs +53 -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/alert-dialog-DfctKUMw.js +1 -0
- package/web/dist/assets/button-CeupvoKG.js +41 -0
- package/web/dist/assets/centered-state-hDsyXrnH.js +1 -0
- package/web/dist/assets/cez-idle-D3aj_9lp.js +1 -0
- package/web/dist/assets/diff-BnIXZK3i2.js +3 -0
- package/web/dist/assets/diff-controls-GewpW9aF.js +1 -0
- package/web/dist/assets/diff-view-Byo7gpvW.js +11 -0
- package/web/dist/assets/dropdown-menu-COj_J5wd.js +6 -0
- package/web/dist/assets/eye-B8okNWXU.js +1 -0
- package/web/dist/assets/git-toolbar-DY0z0n4S.js +1 -0
- package/web/dist/assets/github-DwU6ALRK.js +1 -0
- package/web/dist/assets/{image-preview-FOEfqpZP.js → image-preview-C_t9q45f.js} +1 -1
- package/web/dist/assets/index-BOfE8pyD.js +34 -0
- package/web/dist/assets/index-D9HpsmdW.css +1 -0
- package/web/dist/assets/live-protocol-Uce2NwEX.js +64 -0
- package/web/dist/assets/live-worker-BizfZSoh.ts +33 -0
- package/web/dist/assets/markdown-BBDDg-4t.js +1 -0
- package/web/dist/assets/nav-row-styles-AoIhhIwf.js +1 -0
- package/web/dist/assets/popover-D56fhiXj.js +1 -0
- package/web/dist/assets/preview-pane-connected-BmVqfSU5.js +3 -0
- package/web/dist/assets/reference-chip-gQNk-4jc.js +1 -0
- package/web/dist/assets/repo-git-B5ECDUuv.js +1 -0
- package/web/dist/assets/{repo-git-CoKp-g9K.css → repo-git-DVXNOJDT.css} +1 -1
- package/web/dist/assets/run-header-C0Y1NvEM.js +2 -0
- package/web/dist/assets/run-header-CC7VUTg9.css +1 -0
- package/web/dist/assets/skills-DUeTkZ9z.js +1 -0
- package/web/dist/assets/status-dot-1PR0i69P.js +1 -0
- package/web/dist/assets/tab-link-DmWk4l5O.js +1 -0
- package/web/dist/assets/task-changes-DKZXuW89.js +1 -0
- package/web/dist/assets/task-commits-BZ6KxWdF.js +1 -0
- package/web/dist/assets/task-files-DlF7Apcn.js +2 -0
- package/web/dist/assets/task-github-item-CVPo3geZ.js +1 -0
- package/web/dist/assets/task-thread-DtQ6uGfQ.css +1 -0
- package/web/dist/assets/task-thread-mm4-ECyo.js +9 -0
- package/web/dist/assets/thread-state-CIw2BlhT.js +4 -0
- package/web/dist/assets/use-hand-to-agent-state-BCDjzHnG.js +1 -0
- package/web/dist/assets/use-hand-to-agent-state-C7esPJ-N.css +1 -0
- package/web/dist/assets/workflows-D8vYD-ql.js +7 -0
- package/web/dist/assets/zoomable-image-CxQSsfcn.js +1 -0
- package/web/dist/index.html +13 -17
- package/web/dist/live-worker.js +4 -0
- package/dist/core/tool-display.js +0 -179
- package/dist/core/tool-display.js.map +0 -1
- package/dist/runs/human-ask-summary.d.ts +0 -9
- package/dist/runs/human-ask-summary.js +0 -39
- package/dist/runs/human-ask-summary.js.map +0 -1
- package/dist/runs/run-search.d.ts +0 -29
- package/dist/runs/run-search.js +0 -63
- package/dist/runs/run-search.js.map +0 -1
- package/dist/skills-banner.d.ts +0 -22
- package/dist/skills-banner.js +0 -41
- package/dist/skills-banner.js.map +0 -1
- package/dist/skills-update.d.ts +0 -88
- package/dist/skills-update.js +0 -392
- package/dist/skills-update.js.map +0 -1
- package/dist/todos.d.ts +0 -48
- package/dist/todos.js +0 -201
- package/dist/todos.js.map +0 -1
- package/web/dist/assets/agent-accounts-CFOBMVHc.js +0 -1
- package/web/dist/assets/alert-dialog-BrpNUwMt.js +0 -1
- package/web/dist/assets/button-C_rd7CPp.js +0 -43
- package/web/dist/assets/compare-variants-D6WXhvXA.js +0 -1
- package/web/dist/assets/diff-DrEARXTV.js +0 -3
- package/web/dist/assets/diff-controls-B1-j7nFg.js +0 -1
- package/web/dist/assets/diff-view-DvGLjdTk.js +0 -6
- package/web/dist/assets/dropdown-menu-BegOZFrj.js +0 -1
- package/web/dist/assets/format-DpNe3S0A.js +0 -1
- package/web/dist/assets/git-toolbar-Cw4ljmhB.js +0 -1
- package/web/dist/assets/github-CfV5sqL0.js +0 -1
- package/web/dist/assets/index-DgWWlOLy.js +0 -13
- package/web/dist/assets/index-fBFnuvxu.css +0 -1
- package/web/dist/assets/nav-row-styles-vp2JbhuJ.js +0 -1
- package/web/dist/assets/popover-BohP6WTx.js +0 -1
- package/web/dist/assets/preview-pane-connected-qTA5KNoJ.js +0 -3
- package/web/dist/assets/preview-state-vuMviq6q.js +0 -1
- package/web/dist/assets/prompt-templates-Cubdut_C.js +0 -15
- package/web/dist/assets/repo-git-Cf4t5PD0.js +0 -1
- package/web/dist/assets/run-diff-BpkUW37Z.js +0 -3
- package/web/dist/assets/run-header-68WHf9wV.js +0 -1
- package/web/dist/assets/run-header-8GObNx6F.css +0 -1
- package/web/dist/assets/search-x-I9Q8pgUa.js +0 -1
- package/web/dist/assets/skills-DFBiAuJG.js +0 -1
- package/web/dist/assets/skills-DiVIgKeU.js +0 -1
- package/web/dist/assets/square-terminal-B6RYYieR.js +0 -1
- package/web/dist/assets/status-dot-CqTJHSP9.js +0 -1
- package/web/dist/assets/tab-link-B07Hu4QX.js +0 -1
- package/web/dist/assets/task-changes--lQF6EYf.js +0 -1
- package/web/dist/assets/task-commits-Cx0qy4DN.js +0 -1
- package/web/dist/assets/task-files-D50s-gKW.js +0 -2
- package/web/dist/assets/task-github-item-DaqmSwYT.js +0 -1
- package/web/dist/assets/task-thread-BPQ64lui.js +0 -7
- package/web/dist/assets/task-thread-zNE2Q9E-.css +0 -1
- package/web/dist/assets/textarea-D20O4Pw0.js +0 -1
- package/web/dist/assets/thread-state-DWcFMrvb.js +0 -4
- package/web/dist/assets/use-hand-to-agent-state-BLIGmwbd.css +0 -1
- package/web/dist/assets/use-hand-to-agent-state-Cy9eyyfL.js +0 -1
- package/web/dist/assets/utils-JsL3ZsJf.js +0 -64
- package/web/dist/assets/workflows-jwG7uxqi.js +0 -11
- package/web/dist/assets/zoomable-image-BJJ64KGc.js +0 -1
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared turn-end decision for initial sessions, Continue and late input ACKs. Owed input
|
|
3
|
+
* defers; done and waits take precedence. Every agent step completes only on a done
|
|
4
|
+
* (hearsay-tools/cezarion#1620): a no-wait turn gets bounded nudges, then a human wait; never
|
|
5
|
+
* classify prose.
|
|
6
|
+
*
|
|
7
|
+
* A nudge has a cause. No wait: the turn named neither a wait nor a done. Completion: the agent's
|
|
8
|
+
* done was refused by the completion gate (hearsay-tools/cezarion#1301). Each cause keeps its own
|
|
9
|
+
* order: the completion cause takes its second step before it checks the budget, the no-wait cause
|
|
10
|
+
* checks the budget first, and a nudge the wire refuses ends differently for each (`ifRefused`).
|
|
11
|
+
*/
|
|
12
|
+
/** What a turn end knows when it decides. */
|
|
13
|
+
export type TurnEndFacts = {
|
|
14
|
+
/** The session is still open. A closed one settles elsewhere. */
|
|
15
|
+
sessionOpen: boolean;
|
|
16
|
+
/** `cezar_done` was accepted this turn, or the done line. */
|
|
17
|
+
done: boolean;
|
|
18
|
+
/** The completion gate refused that done. `liveWorkers`: live workers block it. */
|
|
19
|
+
doneRefused?: {
|
|
20
|
+
liveWorkers: boolean;
|
|
21
|
+
};
|
|
22
|
+
/** A submission still awaits its acknowledgement. */
|
|
23
|
+
inputInFlight: boolean;
|
|
24
|
+
/** Input the harness has not taken, beside any flight: queued, or delivered and still unread. */
|
|
25
|
+
inputQueued: boolean;
|
|
26
|
+
/** The result of delivering owed input at this turn end. Undefined: not tried yet, and the rule
|
|
27
|
+
* answers `take-input` when it needs it. False when the entry delivers nothing of its own. */
|
|
28
|
+
inputTaken?: boolean | undefined;
|
|
29
|
+
/** An autonomous nudge the wire refused waits for input readiness at this boundary. */
|
|
30
|
+
nudgePending: boolean;
|
|
31
|
+
/** This turn's ask: an ask line, or the card of a human wait it registered. Owed input waits
|
|
32
|
+
* behind it. */
|
|
33
|
+
turnAsk: boolean;
|
|
34
|
+
/** A native ask still pending in the live session. A done waits behind it. */
|
|
35
|
+
nativeAsk: boolean;
|
|
36
|
+
/** Any question: this turn's ask or human gate, a pending ask, an open human wait. */
|
|
37
|
+
question: boolean;
|
|
38
|
+
/** The agent's own waits: every wait but Cezar's human waits. */
|
|
39
|
+
agentWaits: boolean;
|
|
40
|
+
/** Cezar's own human wait is open (`no-wait`, `budget`, `completion`). */
|
|
41
|
+
cezarHumanWait: boolean;
|
|
42
|
+
/** The session's done completes a workflow step that is not the last, not the task
|
|
43
|
+
* (hearsay-tools/cezarion#1620). Only the nudge wording reads it. */
|
|
44
|
+
stepScope: boolean;
|
|
45
|
+
/** The turn that just ended answered Cezar's no-wait nudge. */
|
|
46
|
+
noWaitNudgedLastTurn: boolean;
|
|
47
|
+
/** The turn that just ended answered Cezar's completion nudge. */
|
|
48
|
+
completionNudgedLastTurn: boolean;
|
|
49
|
+
autonomous: boolean;
|
|
50
|
+
/** `automaticWakes` reached `MAX_AUTO_CONTINUES`. */
|
|
51
|
+
budgetSpent: boolean;
|
|
52
|
+
/** The session has cezar tools; without them the nudge names the lifecycle markers. */
|
|
53
|
+
tools: boolean;
|
|
54
|
+
};
|
|
55
|
+
export type NudgeCause = 'no-wait' | 'completion';
|
|
56
|
+
/** `refused`: the decision follows a refused done, whose refusal the turn end records as a note. */
|
|
57
|
+
export type TurnEndDecision = {
|
|
58
|
+
kind: 'closed';
|
|
59
|
+
} | {
|
|
60
|
+
kind: 'take-input';
|
|
61
|
+
refused?: true;
|
|
62
|
+
} | {
|
|
63
|
+
kind: 'input';
|
|
64
|
+
refused?: true;
|
|
65
|
+
} | {
|
|
66
|
+
kind: 'defer';
|
|
67
|
+
keepDone?: true;
|
|
68
|
+
refused?: true;
|
|
69
|
+
} | {
|
|
70
|
+
kind: 'done';
|
|
71
|
+
} | {
|
|
72
|
+
kind: 'park';
|
|
73
|
+
refused?: true;
|
|
74
|
+
} | {
|
|
75
|
+
kind: 'completion-wait';
|
|
76
|
+
}
|
|
77
|
+
/** `text` is absent for the completion cause: the refusal message is the nudge. A refused
|
|
78
|
+
* submission waits for input readiness (autonomous), opens Cezar's no-wait human wait, or parks
|
|
79
|
+
* for the user (completion). */
|
|
80
|
+
| {
|
|
81
|
+
kind: 'nudge';
|
|
82
|
+
cause: NudgeCause;
|
|
83
|
+
text?: string;
|
|
84
|
+
ifRefused: 'readiness' | 'human-wait' | 'park-for-user';
|
|
85
|
+
refused?: true;
|
|
86
|
+
} | {
|
|
87
|
+
kind: 'human-wait';
|
|
88
|
+
via: 'no-wait' | 'budget' | 'completion';
|
|
89
|
+
refused?: true;
|
|
90
|
+
};
|
|
91
|
+
export declare const AUTONOMOUS_NUDGE = "Continue working autonomously until the task is fully complete. Do not ask me for confirmation or clarification \u2014 make reasonable assumptions and proceed. When everything is done, end the session with your done signal.";
|
|
92
|
+
/** The no-wait nudge. It names the wait kinds `cezar_wait` takes. */
|
|
93
|
+
export declare const NO_WAIT_NUDGE = "Your turn ended without a wait or done. Call cezar_ask if you need the user, cezar_wait (pr, worker, timer or process) if you are waiting on something, or cezar_done if the task is complete. If you owe the user a reply, write it in the same turn.";
|
|
94
|
+
/** The no-wait nudge for a session without cezar tools, which was taught the markers. */
|
|
95
|
+
export declare const NO_WAIT_NUDGE_MARKERS = "Your turn ended without a wait or done. End your message with a CEZ:ASK line if you need the user, a CEZ:MONITORING line if you are waiting on something, or a CEZ:DONE line if the task is complete. If you owe the user a reply, write it in the same turn.";
|
|
96
|
+
/** Appended to a nudge in a session whose done completes a workflow step, not the task
|
|
97
|
+
* (hearsay-tools/cezarion#1620). Appended, so the nudge keeps its opening words. */
|
|
98
|
+
/** A nudge as an earlier workflow step receives it: with the step suffix when `stepScope` holds. */
|
|
99
|
+
export declare function stepScopedNudge(text: string, stepScope: boolean): string;
|
|
100
|
+
export declare const STEP_NUDGE_SUFFIX = "In this workflow step, the done signal completes this step's own work, and Cezar then starts the next step.";
|
|
101
|
+
export declare function decideTurnEnd(facts: TurnEndFacts): TurnEndDecision;
|
|
102
|
+
/** How a settled turn end left the run. */
|
|
103
|
+
export type TurnEndOutcome = {
|
|
104
|
+
kind: 'nudge';
|
|
105
|
+
cause: NudgeCause;
|
|
106
|
+
autonomous: boolean;
|
|
107
|
+
} | {
|
|
108
|
+
kind: 'readiness';
|
|
109
|
+
} | {
|
|
110
|
+
kind: 'running';
|
|
111
|
+
} | {
|
|
112
|
+
kind: 'park';
|
|
113
|
+
keepsSlot: boolean;
|
|
114
|
+
} | {
|
|
115
|
+
kind: 'done';
|
|
116
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared turn-end decision for initial sessions, Continue and late input ACKs. Owed input
|
|
3
|
+
* defers; done and waits take precedence. Every agent step completes only on a done
|
|
4
|
+
* (hearsay-tools/cezarion#1620): a no-wait turn gets bounded nudges, then a human wait; never
|
|
5
|
+
* classify prose.
|
|
6
|
+
*
|
|
7
|
+
* A nudge has a cause. No wait: the turn named neither a wait nor a done. Completion: the agent's
|
|
8
|
+
* done was refused by the completion gate (hearsay-tools/cezarion#1301). Each cause keeps its own
|
|
9
|
+
* order: the completion cause takes its second step before it checks the budget, the no-wait cause
|
|
10
|
+
* checks the budget first, and a nudge the wire refuses ends differently for each (`ifRefused`).
|
|
11
|
+
*/
|
|
12
|
+
export const AUTONOMOUS_NUDGE = 'Continue working autonomously until the task is fully complete. Do not ask me for confirmation or clarification — make reasonable assumptions and proceed. When everything is done, end the session with your done signal.';
|
|
13
|
+
/** The no-wait nudge. It names the wait kinds `cezar_wait` takes. */
|
|
14
|
+
export const NO_WAIT_NUDGE = 'Your turn ended without a wait or done. Call cezar_ask if you need the user, cezar_wait (pr, worker, timer or process) if you are waiting on something, or cezar_done if the task is complete. If you owe the user a reply, write it in the same turn.';
|
|
15
|
+
/** The no-wait nudge for a session without cezar tools, which was taught the markers. */
|
|
16
|
+
export const NO_WAIT_NUDGE_MARKERS = 'Your turn ended without a wait or done. End your message with a CEZ:ASK line if you need the user, a CEZ:MONITORING line if you are waiting on something, or a CEZ:DONE line if the task is complete. If you owe the user a reply, write it in the same turn.';
|
|
17
|
+
/** Appended to a nudge in a session whose done completes a workflow step, not the task
|
|
18
|
+
* (hearsay-tools/cezarion#1620). Appended, so the nudge keeps its opening words. */
|
|
19
|
+
/** A nudge as an earlier workflow step receives it: with the step suffix when `stepScope` holds. */
|
|
20
|
+
export function stepScopedNudge(text, stepScope) {
|
|
21
|
+
return stepScope ? `${text} ${STEP_NUDGE_SUFFIX}` : text;
|
|
22
|
+
}
|
|
23
|
+
export const STEP_NUDGE_SUFFIX = 'In this workflow step, the done signal completes this step\'s own work, and Cezar then starts the next step.';
|
|
24
|
+
export function decideTurnEnd(facts) {
|
|
25
|
+
if (!facts.sessionOpen)
|
|
26
|
+
return { kind: 'closed' };
|
|
27
|
+
if (facts.doneRefused) {
|
|
28
|
+
// An input still in flight may be the one this turn answered, acknowledged after the turn end
|
|
29
|
+
// (OpenCode HTTP/SSE): the done stays at the boundary, and the acknowledgement decides it.
|
|
30
|
+
if (facts.inputInFlight && !facts.inputQueued && !facts.agentWaits)
|
|
31
|
+
return { kind: 'defer', keepDone: true };
|
|
32
|
+
// The agent's open waits and owed input come first: the refusal is a note, and the turn end
|
|
33
|
+
// goes on as one without a done.
|
|
34
|
+
if (facts.agentWaits || facts.inputInFlight || facts.inputQueued)
|
|
35
|
+
return { ...decideWithoutDone({ ...facts, done: false }), refused: true };
|
|
36
|
+
// One nudge per cycle: the turn that answered it ended on a refused done again. Cezar waits on
|
|
37
|
+
// the live workers, else on the user; an autonomous run is nudged again instead.
|
|
38
|
+
if (facts.completionNudgedLastTurn && !facts.autonomous) {
|
|
39
|
+
return facts.doneRefused.liveWorkers ? { kind: 'completion-wait' } : { kind: 'human-wait', via: 'completion' };
|
|
40
|
+
}
|
|
41
|
+
if (facts.budgetSpent)
|
|
42
|
+
return { kind: 'human-wait', via: 'budget' };
|
|
43
|
+
return { kind: 'nudge', cause: 'completion', ifRefused: 'park-for-user' };
|
|
44
|
+
}
|
|
45
|
+
return decideWithoutDone(facts);
|
|
46
|
+
}
|
|
47
|
+
function decideWithoutDone(facts) {
|
|
48
|
+
if (!facts.turnAsk && facts.inputTaken === undefined)
|
|
49
|
+
return { kind: 'take-input' };
|
|
50
|
+
if (facts.inputTaken)
|
|
51
|
+
return { kind: 'input' };
|
|
52
|
+
if (facts.done && !facts.nativeAsk && !facts.inputInFlight && !facts.inputQueued)
|
|
53
|
+
return { kind: 'done' };
|
|
54
|
+
if (facts.nudgePending)
|
|
55
|
+
return { kind: 'defer' };
|
|
56
|
+
if (facts.question || facts.agentWaits || facts.cezarHumanWait)
|
|
57
|
+
return { kind: 'park' };
|
|
58
|
+
if (facts.budgetSpent)
|
|
59
|
+
return { kind: 'human-wait', via: 'budget' };
|
|
60
|
+
// An autonomous run is nudged on every such turn end until the budget is spent.
|
|
61
|
+
const scoped = (text) => stepScopedNudge(text, facts.stepScope);
|
|
62
|
+
if (facts.autonomous)
|
|
63
|
+
return { kind: 'nudge', cause: 'no-wait', text: scoped(AUTONOMOUS_NUDGE), ifRefused: 'readiness' };
|
|
64
|
+
if (facts.noWaitNudgedLastTurn)
|
|
65
|
+
return { kind: 'human-wait', via: 'no-wait' };
|
|
66
|
+
return { kind: 'nudge', cause: 'no-wait', text: scoped(facts.tools ? NO_WAIT_NUDGE : NO_WAIT_NUDGE_MARKERS), ifRefused: 'human-wait' };
|
|
67
|
+
}
|
|
68
|
+
//# sourceMappingURL=turn-end.js.map
|
|
@@ -0,0 +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AY,EAAE,EAAE,CAAC,eAAe,CAAC,IAAI,EAAE,KAAK,CAAC,SAAS,CAAC,CAAC;IACxE,IAAI,KAAK,CAAC,UAAU;QAAE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,gBAAgB,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,CAAC;IACzH,IAAI,KAAK,CAAC,oBAAoB;QAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC;IAC9E,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,YAAY,EAAE,CAAC;AACzI,CAAC"}
|
|
@@ -1,117 +1,10 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { type AgentBackend, type RunnerId } from '../core/agent-runner.ts';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
* - `check` — a shell command; exit 0 passes, non-zero can loop back to an
|
|
7
|
-
* earlier step via `onFail` (bounded by `max`).
|
|
8
|
-
*
|
|
9
|
-
* `{{task}}` in a prompt is replaced with the user's task text. When a check
|
|
10
|
-
* loops back, the failing output is appended to the retried agent's prompt.
|
|
11
|
-
*/
|
|
12
|
-
export declare const workflowStepSchema: z.ZodObject<{
|
|
13
|
-
id: z.ZodString;
|
|
14
|
-
name: z.ZodOptional<z.ZodString>;
|
|
15
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
16
|
-
skill: z.ZodOptional<z.ZodString>;
|
|
17
|
-
model: z.ZodOptional<z.ZodString>;
|
|
18
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
19
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
20
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
21
|
-
claude: "claude";
|
|
22
|
-
codex: "codex";
|
|
23
|
-
cursor: "cursor";
|
|
24
|
-
omp: "omp";
|
|
25
|
-
opencode: "opencode";
|
|
26
|
-
pi: "pi";
|
|
27
|
-
}>>;
|
|
28
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
29
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
-
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
31
|
-
command: z.ZodOptional<z.ZodString>;
|
|
32
|
-
onFail: z.ZodOptional<z.ZodObject<{
|
|
33
|
-
retry: z.ZodString;
|
|
34
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
35
|
-
}, z.core.$strip>>;
|
|
36
|
-
}, z.core.$strip>;
|
|
37
|
-
/**
|
|
38
|
-
* A workflow file names either full `steps` or the portable `skills` shorthand
|
|
39
|
-
* (spec 012 — what the builder exports): an ordered list of skill names, each
|
|
40
|
-
* becoming one agent step that applies that skill to `{{task}}`.
|
|
41
|
-
*/
|
|
42
|
-
export declare const workflowFileSchema: z.ZodObject<{
|
|
43
|
-
name: z.ZodString;
|
|
44
|
-
description: z.ZodOptional<z.ZodString>;
|
|
45
|
-
steps: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
46
|
-
id: z.ZodString;
|
|
47
|
-
name: z.ZodOptional<z.ZodString>;
|
|
48
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
49
|
-
skill: z.ZodOptional<z.ZodString>;
|
|
50
|
-
model: z.ZodOptional<z.ZodString>;
|
|
51
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
52
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
54
|
-
claude: "claude";
|
|
55
|
-
codex: "codex";
|
|
56
|
-
cursor: "cursor";
|
|
57
|
-
omp: "omp";
|
|
58
|
-
opencode: "opencode";
|
|
59
|
-
pi: "pi";
|
|
60
|
-
}>>;
|
|
61
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
62
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
63
|
-
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
64
|
-
command: z.ZodOptional<z.ZodString>;
|
|
65
|
-
onFail: z.ZodOptional<z.ZodObject<{
|
|
66
|
-
retry: z.ZodString;
|
|
67
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
68
|
-
}, z.core.$strip>>;
|
|
69
|
-
}, z.core.$strip>>>;
|
|
70
|
-
skills: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
71
|
-
}, z.core.$strip>;
|
|
2
|
+
import { type AgentBackend, type RunnerId, type ToolGrant } from '../core/agent-runner.ts';
|
|
3
|
+
import { workflowStepDefSchema as workflowStepSchema, workflowDefSchema } from '../contract/index.js';
|
|
4
|
+
import { workflowFileSchema } from '../contract/index.js';
|
|
5
|
+
export { workflowStepSchema, workflowDefSchema, workflowFileSchema };
|
|
72
6
|
export type WorkflowStepDef = z.infer<typeof workflowStepSchema>;
|
|
73
7
|
export type WorkflowDoc = z.infer<typeof workflowFileSchema>;
|
|
74
|
-
/**
|
|
75
|
-
* A resolved workflow: a catalog entry, or the ad-hoc "(planned)" chain a task
|
|
76
|
-
* was started with. A SCHEMA and not an interface because `RunStore` persists
|
|
77
|
-
* one of these on the run record (`workflowDef`) and has to parse it back —
|
|
78
|
-
* `src/server/contract-parity.workflows.test.ts` is what keeps this shape and
|
|
79
|
-
* the contract's `workflowDefSchema` from drifting.
|
|
80
|
-
*/
|
|
81
|
-
export declare const workflowDefSchema: z.ZodObject<{
|
|
82
|
-
name: z.ZodString;
|
|
83
|
-
description: z.ZodOptional<z.ZodString>;
|
|
84
|
-
steps: z.ZodArray<z.ZodObject<{
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
name: z.ZodOptional<z.ZodString>;
|
|
87
|
-
prompt: z.ZodOptional<z.ZodString>;
|
|
88
|
-
skill: z.ZodOptional<z.ZodString>;
|
|
89
|
-
model: z.ZodOptional<z.ZodString>;
|
|
90
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
91
|
-
timeoutMs: z.ZodOptional<z.ZodNumber>;
|
|
92
|
-
runner: z.ZodOptional<z.ZodEnum<{
|
|
93
|
-
claude: "claude";
|
|
94
|
-
codex: "codex";
|
|
95
|
-
cursor: "cursor";
|
|
96
|
-
omp: "omp";
|
|
97
|
-
opencode: "opencode";
|
|
98
|
-
pi: "pi";
|
|
99
|
-
}>>;
|
|
100
|
-
agentProfile: z.ZodOptional<z.ZodString>;
|
|
101
|
-
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
102
|
-
bashAllowlist: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
-
command: z.ZodOptional<z.ZodString>;
|
|
104
|
-
onFail: z.ZodOptional<z.ZodObject<{
|
|
105
|
-
retry: z.ZodString;
|
|
106
|
-
max: z.ZodDefault<z.ZodNumber>;
|
|
107
|
-
}, z.core.$strip>>;
|
|
108
|
-
}, z.core.$strip>>;
|
|
109
|
-
source: z.ZodEnum<{
|
|
110
|
-
"built-in": "built-in";
|
|
111
|
-
file: "file";
|
|
112
|
-
}>;
|
|
113
|
-
path: z.ZodOptional<z.ZodString>;
|
|
114
|
-
}, z.core.$strip>;
|
|
115
8
|
export type WorkflowDef = z.infer<typeof workflowDefSchema>;
|
|
116
9
|
/** `skills: [a, b]` → agent steps, one per skill, each running `{{task}}`. */
|
|
117
10
|
export declare function skillsToSteps(skills: string[]): WorkflowStepDef[];
|
|
@@ -131,22 +24,8 @@ export declare function normalizeWorkflowDoc(doc: WorkflowDoc): {
|
|
|
131
24
|
export declare function skillStackOf(steps: WorkflowStepDef[]): string[] | null;
|
|
132
25
|
export declare function stepKind(step: WorkflowStepDef): 'agent' | 'check';
|
|
133
26
|
/**
|
|
134
|
-
*
|
|
135
|
-
*
|
|
136
|
-
* one run-level handoff journal, so a later step's fresh session can read an
|
|
137
|
-
* earlier step's own "done" signal (its final report, its handoff Resume
|
|
138
|
-
* notes) and — with nothing in its prompt saying otherwise — conclude the
|
|
139
|
-
* OVERALL task is already achieved. Since only the chain's last step honors
|
|
140
|
-
* `CEZ:DONE` as an early-completion signal (`run.ts`'s `interactive` gate),
|
|
141
|
-
* this silently skipped exactly the last selected skill: it ended its first
|
|
142
|
-
* turn with the marker instead of doing its own step's work.
|
|
143
|
-
*
|
|
144
|
-
* `index` is the position in `steps`; both the gate and the "step N of M"
|
|
145
|
-
* numbering count agent steps only. Check steps are shell commands, not
|
|
146
|
-
* sessions the model reasons about, so a workflow with one agent step and any
|
|
147
|
-
* number of checks around it (the README's `implement` + `verify` shape) is
|
|
148
|
-
* not a chain and gets no note — that single-step case stays byte-for-byte
|
|
149
|
-
* unchanged. Returns undefined for check steps.
|
|
27
|
+
* Tell each chained agent step to complete its own goal before CEZ:DONE. An earlier step’s done
|
|
28
|
+
* report does not complete a later step’s work. Steps share the task and handoff journal.
|
|
150
29
|
*/
|
|
151
30
|
export declare function chainStepNote(steps: WorkflowStepDef[], index: number): string | undefined;
|
|
152
31
|
/**
|
|
@@ -163,16 +42,42 @@ export declare const HARNESS_EXTRA_TOOLS: {
|
|
|
163
42
|
readonly [K in RunnerId]: readonly string[];
|
|
164
43
|
};
|
|
165
44
|
export declare function allowedToolsForStep(step: {
|
|
166
|
-
allowedTools?: string[];
|
|
45
|
+
allowedTools?: string[] | undefined;
|
|
167
46
|
} | undefined, backend: AgentBackend | undefined): string[];
|
|
47
|
+
/** Tool lists as a workflow step and a worker identity store them. */
|
|
48
|
+
export type ToolGrantLists = {
|
|
49
|
+
allowedTools?: string[] | undefined;
|
|
50
|
+
bashAllowlist?: string[] | undefined;
|
|
51
|
+
};
|
|
52
|
+
/**
|
|
53
|
+
* The `ToolGrant` one step's session runs with, resolved once before the runner
|
|
54
|
+
* (hearsay-tools/cezarion#1810). An owned worker's pinned grants come from its parent at
|
|
55
|
+
* spawn and win over its step; otherwise the step's own list, or this runner's default
|
|
56
|
+
* when it sets none. Lists stay lists on disk; only the runner sees the kind.
|
|
57
|
+
*/
|
|
58
|
+
export declare function stepToolGrant(pinned: ToolGrantLists | undefined, step: ToolGrantLists | undefined, backend: AgentBackend | undefined): ToolGrant;
|
|
59
|
+
/** A grant's lists, for the settings the session's workers inherit (`narrowGrants`). */
|
|
60
|
+
export declare function toolGrantLists(grant: ToolGrant): ToolGrantLists;
|
|
168
61
|
/** One task step applying the selected skill to the user's task. */
|
|
169
62
|
export declare function skillTaskSteps(name: string): WorkflowStepDef[];
|
|
170
63
|
/** Wrap an inline chain as an ad-hoc workflow. */
|
|
171
64
|
export declare function plannedWorkflow(steps: WorkflowStepDef[]): WorkflowDef;
|
|
172
65
|
/** Validate the mutually exclusive skill/workflow flags before discovery. */
|
|
173
66
|
export declare function skillFlagIssue(flags: {
|
|
174
|
-
skill?: string;
|
|
175
|
-
workflow?: string;
|
|
67
|
+
skill?: string | undefined;
|
|
68
|
+
workflow?: string | undefined;
|
|
176
69
|
}): string | undefined;
|
|
70
|
+
/**
|
|
71
|
+
* `--runner` and its permanent alias `--backend` (hearsay-tools/cezarion#632). Both may be given
|
|
72
|
+
* with one value; two different values are a usage error. The caller maps the result onto its
|
|
73
|
+
* own wire field (`runner` on the run API, `backend` on a worker spawn).
|
|
74
|
+
*/
|
|
75
|
+
export declare function runnerFlag(flags: {
|
|
76
|
+
runner?: string | undefined;
|
|
77
|
+
backend?: string | undefined;
|
|
78
|
+
}): {
|
|
79
|
+
runner?: string;
|
|
80
|
+
issue?: string;
|
|
81
|
+
};
|
|
177
82
|
/** The zero-config workflow: one agent step that just does the task. */
|
|
178
83
|
export declare const QUICK_TASK_WORKFLOW: WorkflowDef;
|
package/dist/workflows/types.js
CHANGED
|
@@ -1,86 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
* A workflow is an ordered list of steps. Two step kinds:
|
|
5
|
-
* - `agent` — one claude CLI run (prompt + optional skill + model + tools);
|
|
6
|
-
* - `check` — a shell command; exit 0 passes, non-zero can loop back to an
|
|
7
|
-
* earlier step via `onFail` (bounded by `max`).
|
|
8
|
-
*
|
|
9
|
-
* `{{task}}` in a prompt is replaced with the user's task text. When a check
|
|
10
|
-
* loops back, the failing output is appended to the retried agent's prompt.
|
|
11
|
-
*/
|
|
12
|
-
export const workflowStepSchema = z
|
|
13
|
-
.object({
|
|
14
|
-
id: z.string().min(1),
|
|
15
|
-
name: z.string().optional(),
|
|
16
|
-
// agent step
|
|
17
|
-
prompt: z.string().optional(),
|
|
18
|
-
skill: z.string().optional(),
|
|
19
|
-
model: z.string().optional(),
|
|
20
|
-
effort: z.string().max(32).optional(),
|
|
21
|
-
/** Authored agent-step wall-clock limit in ms. Omitted or 0 means no limit.
|
|
22
|
-
* Bound to Node's timer range so a larger value cannot become a 1ms kill. */
|
|
23
|
-
timeoutMs: z.number().int().min(0).max(2_147_483_647).optional(),
|
|
24
|
-
/** Per-step agent backend override (falls back to the task / config default).
|
|
25
|
-
*
|
|
26
|
-
* Deliberately NOT widened to the legacy `claude-cli` the way the run store's
|
|
27
|
-
* `runner`/`backend` were (#547). This enum validates two things a user AUTHORS —
|
|
28
|
-
* workflow YAML, and the inline chain on `POST /runs` — so the selectable set is the
|
|
29
|
-
* right one, and rejecting `claude-cli` here is a loud load-time error rather than
|
|
30
|
-
* data loss. It also gates the persisted `workflowDef` (`runs/store.ts`), but nothing
|
|
31
|
-
* has ever been able to write the legacy id THERE either, because this same enum was
|
|
32
|
-
* the only way in: there is no legacy shape to keep parseable. */
|
|
33
|
-
runner: z.enum(RUNNER_IDS).optional(),
|
|
34
|
-
/** Agent account id for this step (spec 2026-07-29-agent-profiles). An owned worker resolves
|
|
35
|
-
* and pins it per step at spawn (#452); an id the registry does not know is refused there. */
|
|
36
|
-
agentProfile: z.string().min(1).max(64).optional(),
|
|
37
|
-
allowedTools: z.array(z.string()).optional(),
|
|
38
|
-
bashAllowlist: z.array(z.string()).optional(),
|
|
39
|
-
// check step
|
|
40
|
-
command: z.string().optional(),
|
|
41
|
-
onFail: z
|
|
42
|
-
.object({
|
|
43
|
-
retry: z.string().min(1),
|
|
44
|
-
max: z.number().int().positive().default(2),
|
|
45
|
-
})
|
|
46
|
-
.optional(),
|
|
47
|
-
})
|
|
48
|
-
.refine((s) => Boolean(s.command) !== Boolean(s.prompt ?? s.skill), {
|
|
49
|
-
message: 'a step is either an agent step (prompt/skill) or a check step (command), not both',
|
|
50
|
-
})
|
|
51
|
-
.refine((s) => !s.command || s.timeoutMs === undefined, {
|
|
52
|
-
message: 'timeoutMs applies only to agent steps',
|
|
53
|
-
path: ['timeoutMs'],
|
|
54
|
-
});
|
|
55
|
-
/**
|
|
56
|
-
* A workflow file names either full `steps` or the portable `skills` shorthand
|
|
57
|
-
* (spec 012 — what the builder exports): an ordered list of skill names, each
|
|
58
|
-
* becoming one agent step that applies that skill to `{{task}}`.
|
|
59
|
-
*/
|
|
60
|
-
export const workflowFileSchema = z
|
|
61
|
-
.object({
|
|
62
|
-
name: z.string().min(1),
|
|
63
|
-
description: z.string().optional(),
|
|
64
|
-
steps: z.array(workflowStepSchema).min(1).optional(),
|
|
65
|
-
skills: z.array(z.string().trim().min(1)).min(1).optional(),
|
|
66
|
-
})
|
|
67
|
-
.refine((d) => Boolean(d.steps) !== Boolean(d.skills), {
|
|
68
|
-
message: 'a workflow lists either "steps" or "skills", not both',
|
|
69
|
-
});
|
|
70
|
-
/**
|
|
71
|
-
* A resolved workflow: a catalog entry, or the ad-hoc "(planned)" chain a task
|
|
72
|
-
* was started with. A SCHEMA and not an interface because `RunStore` persists
|
|
73
|
-
* one of these on the run record (`workflowDef`) and has to parse it back —
|
|
74
|
-
* `src/server/contract-parity.workflows.test.ts` is what keeps this shape and
|
|
75
|
-
* the contract's `workflowDefSchema` from drifting.
|
|
76
|
-
*/
|
|
77
|
-
export const workflowDefSchema = z.object({
|
|
78
|
-
name: z.string(),
|
|
79
|
-
description: z.string().optional(),
|
|
80
|
-
steps: z.array(workflowStepSchema),
|
|
81
|
-
source: z.enum(['built-in', 'file']),
|
|
82
|
-
path: z.string().optional(),
|
|
83
|
-
});
|
|
1
|
+
import { workflowStepDefSchema as workflowStepSchema, workflowDefSchema } from '../contract/index.js';
|
|
2
|
+
import { workflowFileSchema } from '../contract/index.js';
|
|
3
|
+
export { workflowStepSchema, workflowDefSchema, workflowFileSchema };
|
|
84
4
|
/** `skills: [a, b]` → agent steps, one per skill, each running `{{task}}`. */
|
|
85
5
|
export function skillsToSteps(skills) {
|
|
86
6
|
const used = new Set();
|
|
@@ -126,22 +46,8 @@ export function stepKind(step) {
|
|
|
126
46
|
return step.command ? 'check' : 'agent';
|
|
127
47
|
}
|
|
128
48
|
/**
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
* one run-level handoff journal, so a later step's fresh session can read an
|
|
132
|
-
* earlier step's own "done" signal (its final report, its handoff Resume
|
|
133
|
-
* notes) and — with nothing in its prompt saying otherwise — conclude the
|
|
134
|
-
* OVERALL task is already achieved. Since only the chain's last step honors
|
|
135
|
-
* `CEZ:DONE` as an early-completion signal (`run.ts`'s `interactive` gate),
|
|
136
|
-
* this silently skipped exactly the last selected skill: it ended its first
|
|
137
|
-
* turn with the marker instead of doing its own step's work.
|
|
138
|
-
*
|
|
139
|
-
* `index` is the position in `steps`; both the gate and the "step N of M"
|
|
140
|
-
* numbering count agent steps only. Check steps are shell commands, not
|
|
141
|
-
* sessions the model reasons about, so a workflow with one agent step and any
|
|
142
|
-
* number of checks around it (the README's `implement` + `verify` shape) is
|
|
143
|
-
* not a chain and gets no note — that single-step case stays byte-for-byte
|
|
144
|
-
* unchanged. Returns undefined for check steps.
|
|
49
|
+
* Tell each chained agent step to complete its own goal before CEZ:DONE. An earlier step’s done
|
|
50
|
+
* report does not complete a later step’s work. Steps share the task and handoff journal.
|
|
145
51
|
*/
|
|
146
52
|
export function chainStepNote(steps, index) {
|
|
147
53
|
const step = steps[index];
|
|
@@ -164,7 +70,10 @@ export function chainStepNote(steps, index) {
|
|
|
164
70
|
sentences.push(`An earlier step in this same run may already have reported its own work done (in its ` +
|
|
165
71
|
`report, or in this run's handoff file); that does not mean step ${position}'s work is done.`);
|
|
166
72
|
}
|
|
167
|
-
sentences.push(`
|
|
73
|
+
sentences.push(`Signal done (call cezar_done, or end your message with a CEZ:DONE line when you have no cezar tools) only once step ${position}'s own goal is achieved, not just the run's overall task.`);
|
|
74
|
+
// hearsay-tools/cezarion#1620: the step completes only on that signal.
|
|
75
|
+
if (position < total)
|
|
76
|
+
sentences.push(`Cezar starts step ${position + 1} only after that signal; a turn that ends without it keeps step ${position} open.`);
|
|
168
77
|
return sentences.join(' ');
|
|
169
78
|
}
|
|
170
79
|
/**
|
|
@@ -195,6 +104,9 @@ export const HARNESS_EXTRA_TOOLS = {
|
|
|
195
104
|
claude: [],
|
|
196
105
|
codex: [],
|
|
197
106
|
opencode: [],
|
|
107
|
+
// The trio still marks the default list (hearsay-tools/cezarion#75). pi itself gets no --tools
|
|
108
|
+
// allowlist for it (hearsay-tools/cezarion#1305): the default-tools extension activates these
|
|
109
|
+
// names with the built-ins, so MCP and other extension tools stay callable.
|
|
198
110
|
pi: ['Subagent', 'SubagentSupervisor', 'SubagentWait'],
|
|
199
111
|
cursor: [],
|
|
200
112
|
// R1 (rulings): find and ast_grep are gated behind settings that default off, and a --tools
|
|
@@ -212,6 +124,28 @@ function extrasFor(backend) {
|
|
|
212
124
|
return HARNESS_EXTRA_TOOLS.claude;
|
|
213
125
|
return HARNESS_EXTRA_TOOLS[backend];
|
|
214
126
|
}
|
|
127
|
+
/**
|
|
128
|
+
* The `ToolGrant` one step's session runs with, resolved once before the runner
|
|
129
|
+
* (hearsay-tools/cezarion#1810). An owned worker's pinned grants come from its parent at
|
|
130
|
+
* spawn and win over its step; otherwise the step's own list, or this runner's default
|
|
131
|
+
* when it sets none. Lists stay lists on disk; only the runner sees the kind.
|
|
132
|
+
*/
|
|
133
|
+
export function stepToolGrant(pinned, step, backend) {
|
|
134
|
+
const source = pinned ?? step;
|
|
135
|
+
const bash = source?.bashAllowlist === undefined ? {} : { bashAllowlist: [...source.bashAllowlist] };
|
|
136
|
+
if (pinned)
|
|
137
|
+
return pinned.allowedTools === undefined ? { kind: 'unset', ...bash } : { kind: 'inherited', tools: [...pinned.allowedTools], ...bash };
|
|
138
|
+
if (step?.allowedTools)
|
|
139
|
+
return { kind: 'explicit', tools: [...step.allowedTools], ...bash };
|
|
140
|
+
return { kind: 'step-default', tools: allowedToolsForStep(undefined, backend), ...bash };
|
|
141
|
+
}
|
|
142
|
+
/** A grant's lists, for the settings the session's workers inherit (`narrowGrants`). */
|
|
143
|
+
export function toolGrantLists(grant) {
|
|
144
|
+
return {
|
|
145
|
+
...(grant.kind === 'unset' ? {} : { allowedTools: [...grant.tools] }),
|
|
146
|
+
...(grant.bashAllowlist === undefined ? {} : { bashAllowlist: [...grant.bashAllowlist] }),
|
|
147
|
+
};
|
|
148
|
+
}
|
|
215
149
|
/** One task step applying the selected skill to the user's task. */
|
|
216
150
|
export function skillTaskSteps(name) {
|
|
217
151
|
return [{ id: 'task', name, skill: name, prompt: '{{task}}' }];
|
|
@@ -229,6 +163,19 @@ export function skillFlagIssue(flags) {
|
|
|
229
163
|
return '--skill must name a skill';
|
|
230
164
|
return undefined;
|
|
231
165
|
}
|
|
166
|
+
/**
|
|
167
|
+
* `--runner` and its permanent alias `--backend` (hearsay-tools/cezarion#632). Both may be given
|
|
168
|
+
* with one value; two different values are a usage error. The caller maps the result onto its
|
|
169
|
+
* own wire field (`runner` on the run API, `backend` on a worker spawn).
|
|
170
|
+
*/
|
|
171
|
+
export function runnerFlag(flags) {
|
|
172
|
+
const { runner, backend } = flags;
|
|
173
|
+
if (runner !== undefined && backend !== undefined && runner !== backend) {
|
|
174
|
+
return { issue: `--runner ${runner} and --backend ${backend} name different runners; pass one --runner` };
|
|
175
|
+
}
|
|
176
|
+
const selected = runner ?? backend;
|
|
177
|
+
return selected === undefined ? {} : { runner: selected };
|
|
178
|
+
}
|
|
232
179
|
/** The zero-config workflow: one agent step that just does the task. */
|
|
233
180
|
export const QUICK_TASK_WORKFLOW = {
|
|
234
181
|
name: 'quick-task',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/workflows/types.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,qBAAqB,IAAI,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AACxH,OAAO,EAAE,kBAAkB,EAAE,MAAM,4CAA4C,CAAC;AAChF,OAAO,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,CAAC;AAKrE,8EAA8E;AAC9E,MAAM,UAAU,aAAa,CAAC,MAAgB;IAC5C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC1B,IAAI,EAAE,GAAG,KAAK,CAAC;QACf,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE;YAAE,EAAE,GAAG,GAAG,KAAK,IAAI,CAAC,EAAE,CAAC;QACxD,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QACb,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;IACxD,CAAC,CAAC,CAAC;AACL,CAAC;AAED,qDAAqD;AACrD,MAAM,UAAU,oBAAoB,CAAC,GAAgB;IAKnD,OAAO;QACL,IAAI,EAAE,GAAG,CAAC,IAAI;QACd,GAAG,CAAC,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,E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