@sema-ai/core 1.275.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +5433 -0
- package/LICENSE +27 -0
- package/NOTICE.md +30 -0
- package/README.md +1040 -0
- package/dist/agents/agent-definition.d.ts +10 -0
- package/dist/agents/agent-definition.d.ts.map +1 -0
- package/dist/agents/agent-definition.js +18 -0
- package/dist/agents/agent-definition.js.map +1 -0
- package/dist/agents/builtin-agents.d.ts +69 -0
- package/dist/agents/builtin-agents.d.ts.map +1 -0
- package/dist/agents/builtin-agents.js +177 -0
- package/dist/agents/builtin-agents.js.map +1 -0
- package/dist/agents/cascade.d.ts +101 -0
- package/dist/agents/cascade.d.ts.map +1 -0
- package/dist/agents/cascade.js +189 -0
- package/dist/agents/cascade.js.map +1 -0
- package/dist/agents/observer.d.ts +209 -0
- package/dist/agents/observer.d.ts.map +1 -0
- package/dist/agents/observer.js +495 -0
- package/dist/agents/observer.js.map +1 -0
- package/dist/agents/repair-loop.d.ts +236 -0
- package/dist/agents/repair-loop.d.ts.map +1 -0
- package/dist/agents/repair-loop.js +293 -0
- package/dist/agents/repair-loop.js.map +1 -0
- package/dist/agents/session-util.d.ts +8 -0
- package/dist/agents/session-util.d.ts.map +1 -0
- package/dist/agents/session-util.js +9 -0
- package/dist/agents/session-util.js.map +1 -0
- package/dist/agents/subagent-steps.d.ts +93 -0
- package/dist/agents/subagent-steps.d.ts.map +1 -0
- package/dist/agents/subagent-steps.js +206 -0
- package/dist/agents/subagent-steps.js.map +1 -0
- package/dist/agents/subagent.d.ts +441 -0
- package/dist/agents/subagent.d.ts.map +1 -0
- package/dist/agents/subagent.js +2492 -0
- package/dist/agents/subagent.js.map +1 -0
- package/dist/agents/suspend-guard.d.ts +35 -0
- package/dist/agents/suspend-guard.d.ts.map +1 -0
- package/dist/agents/suspend-guard.js +48 -0
- package/dist/agents/suspend-guard.js.map +1 -0
- package/dist/agents/teacher.d.ts +137 -0
- package/dist/agents/teacher.d.ts.map +1 -0
- package/dist/agents/teacher.js +575 -0
- package/dist/agents/teacher.js.map +1 -0
- package/dist/agents/team.d.ts +211 -0
- package/dist/agents/team.d.ts.map +1 -0
- package/dist/agents/team.js +293 -0
- package/dist/agents/team.js.map +1 -0
- package/dist/agents/tool-filter.d.ts +29 -0
- package/dist/agents/tool-filter.d.ts.map +1 -0
- package/dist/agents/tool-filter.js +50 -0
- package/dist/agents/tool-filter.js.map +1 -0
- package/dist/agents/verify.d.ts +177 -0
- package/dist/agents/verify.d.ts.map +1 -0
- package/dist/agents/verify.js +305 -0
- package/dist/agents/verify.js.map +1 -0
- package/dist/bench/metrics.d.ts +714 -0
- package/dist/bench/metrics.d.ts.map +1 -0
- package/dist/bench/metrics.js +618 -0
- package/dist/bench/metrics.js.map +1 -0
- package/dist/bin/sema-tb.d.ts +3 -0
- package/dist/bin/sema-tb.d.ts.map +1 -0
- package/dist/bin/sema-tb.js +516 -0
- package/dist/bin/sema-tb.js.map +1 -0
- package/dist/bin/tb-env.d.ts +13 -0
- package/dist/bin/tb-env.d.ts.map +1 -0
- package/dist/bin/tb-env.js +26 -0
- package/dist/bin/tb-env.js.map +1 -0
- package/dist/brain/anthropic.d.ts +46 -0
- package/dist/brain/anthropic.d.ts.map +1 -0
- package/dist/brain/anthropic.js +830 -0
- package/dist/brain/anthropic.js.map +1 -0
- package/dist/brain/circuit-breaker.d.ts +46 -0
- package/dist/brain/circuit-breaker.d.ts.map +1 -0
- package/dist/brain/circuit-breaker.js +173 -0
- package/dist/brain/circuit-breaker.js.map +1 -0
- package/dist/brain/degrading.d.ts +98 -0
- package/dist/brain/degrading.d.ts.map +1 -0
- package/dist/brain/degrading.js +249 -0
- package/dist/brain/degrading.js.map +1 -0
- package/dist/brain/errors.d.ts +31 -0
- package/dist/brain/errors.d.ts.map +1 -0
- package/dist/brain/errors.js +58 -0
- package/dist/brain/errors.js.map +1 -0
- package/dist/brain/failover.d.ts +18 -0
- package/dist/brain/failover.d.ts.map +1 -0
- package/dist/brain/failover.js +118 -0
- package/dist/brain/failover.js.map +1 -0
- package/dist/brain/model-presets.d.ts +36 -0
- package/dist/brain/model-presets.d.ts.map +1 -0
- package/dist/brain/model-presets.js +54 -0
- package/dist/brain/model-presets.js.map +1 -0
- package/dist/brain/openai.d.ts +43 -0
- package/dist/brain/openai.d.ts.map +1 -0
- package/dist/brain/openai.js +784 -0
- package/dist/brain/openai.js.map +1 -0
- package/dist/brain/reasoning.d.ts +138 -0
- package/dist/brain/reasoning.d.ts.map +1 -0
- package/dist/brain/reasoning.js +146 -0
- package/dist/brain/reasoning.js.map +1 -0
- package/dist/brain/repetition.d.ts +60 -0
- package/dist/brain/repetition.d.ts.map +1 -0
- package/dist/brain/repetition.js +121 -0
- package/dist/brain/repetition.js.map +1 -0
- package/dist/brain/request-params.d.ts +29 -0
- package/dist/brain/request-params.d.ts.map +1 -0
- package/dist/brain/request-params.js +78 -0
- package/dist/brain/request-params.js.map +1 -0
- package/dist/brain/retry.d.ts +18 -0
- package/dist/brain/retry.d.ts.map +1 -0
- package/dist/brain/retry.js +42 -0
- package/dist/brain/retry.js.map +1 -0
- package/dist/brain/routing.d.ts +19 -0
- package/dist/brain/routing.d.ts.map +1 -0
- package/dist/brain/routing.js +44 -0
- package/dist/brain/routing.js.map +1 -0
- package/dist/brain/status-sink.d.ts +46 -0
- package/dist/brain/status-sink.d.ts.map +1 -0
- package/dist/brain/status-sink.js +36 -0
- package/dist/brain/status-sink.js.map +1 -0
- package/dist/brain/stream-engine.d.ts +85 -0
- package/dist/brain/stream-engine.d.ts.map +1 -0
- package/dist/brain/stream-engine.js +391 -0
- package/dist/brain/stream-engine.js.map +1 -0
- package/dist/brain/timeout.d.ts +44 -0
- package/dist/brain/timeout.d.ts.map +1 -0
- package/dist/brain/timeout.js +41 -0
- package/dist/brain/timeout.js.map +1 -0
- package/dist/brain/tool-call-repair.d.ts +15 -0
- package/dist/brain/tool-call-repair.d.ts.map +1 -0
- package/dist/brain/tool-call-repair.js +67 -0
- package/dist/brain/tool-call-repair.js.map +1 -0
- package/dist/brain/walltime.d.ts +14 -0
- package/dist/brain/walltime.d.ts.map +1 -0
- package/dist/brain/walltime.js +14 -0
- package/dist/brain/walltime.js.map +1 -0
- package/dist/core/arg-summary.d.ts +19 -0
- package/dist/core/arg-summary.d.ts.map +1 -0
- package/dist/core/arg-summary.js +96 -0
- package/dist/core/arg-summary.js.map +1 -0
- package/dist/core/ask-question.d.ts +113 -0
- package/dist/core/ask-question.d.ts.map +1 -0
- package/dist/core/ask-question.js +246 -0
- package/dist/core/ask-question.js.map +1 -0
- package/dist/core/auto-compaction.d.ts +341 -0
- package/dist/core/auto-compaction.d.ts.map +1 -0
- package/dist/core/auto-compaction.js +495 -0
- package/dist/core/auto-compaction.js.map +1 -0
- package/dist/core/auto-promote.d.ts +126 -0
- package/dist/core/auto-promote.d.ts.map +1 -0
- package/dist/core/auto-promote.js +171 -0
- package/dist/core/auto-promote.js.map +1 -0
- package/dist/core/background-shell.d.ts +128 -0
- package/dist/core/background-shell.d.ts.map +1 -0
- package/dist/core/background-shell.js +42 -0
- package/dist/core/background-shell.js.map +1 -0
- package/dist/core/cache-break-detector.d.ts +63 -0
- package/dist/core/cache-break-detector.d.ts.map +1 -0
- package/dist/core/cache-break-detector.js +0 -0
- package/dist/core/cache-break-detector.js.map +1 -0
- package/dist/core/canonical-json.d.ts +45 -0
- package/dist/core/canonical-json.d.ts.map +1 -0
- package/dist/core/canonical-json.js +132 -0
- package/dist/core/canonical-json.js.map +1 -0
- package/dist/core/checkpoint-store.d.ts +1101 -0
- package/dist/core/checkpoint-store.d.ts.map +1 -0
- package/dist/core/checkpoint-store.js +514 -0
- package/dist/core/checkpoint-store.js.map +1 -0
- package/dist/core/consolidate-scope.d.ts +94 -0
- package/dist/core/consolidate-scope.d.ts.map +1 -0
- package/dist/core/consolidate-scope.js +158 -0
- package/dist/core/consolidate-scope.js.map +1 -0
- package/dist/core/context-edit.d.ts +82 -0
- package/dist/core/context-edit.d.ts.map +1 -0
- package/dist/core/context-edit.js +149 -0
- package/dist/core/context-edit.js.map +1 -0
- package/dist/core/context-guard.d.ts +43 -0
- package/dist/core/context-guard.d.ts.map +1 -0
- package/dist/core/context-guard.js +171 -0
- package/dist/core/context-guard.js.map +1 -0
- package/dist/core/dynamic-recall.d.ts +100 -0
- package/dist/core/dynamic-recall.d.ts.map +1 -0
- package/dist/core/dynamic-recall.js +108 -0
- package/dist/core/dynamic-recall.js.map +1 -0
- package/dist/core/exec-gate.d.ts +74 -0
- package/dist/core/exec-gate.d.ts.map +1 -0
- package/dist/core/exec-gate.js +143 -0
- package/dist/core/exec-gate.js.map +1 -0
- package/dist/core/exec-output-tail.d.ts +37 -0
- package/dist/core/exec-output-tail.d.ts.map +1 -0
- package/dist/core/exec-output-tail.js +63 -0
- package/dist/core/exec-output-tail.js.map +1 -0
- package/dist/core/file-snapshot-store.d.ts +137 -0
- package/dist/core/file-snapshot-store.d.ts.map +1 -0
- package/dist/core/file-snapshot-store.js +319 -0
- package/dist/core/file-snapshot-store.js.map +1 -0
- package/dist/core/git-worktree-env.d.ts +41 -0
- package/dist/core/git-worktree-env.d.ts.map +1 -0
- package/dist/core/git-worktree-env.js +64 -0
- package/dist/core/git-worktree-env.js.map +1 -0
- package/dist/core/hooks.d.ts +372 -0
- package/dist/core/hooks.d.ts.map +1 -0
- package/dist/core/hooks.js +269 -0
- package/dist/core/hooks.js.map +1 -0
- package/dist/core/lsp-diagnostics.d.ts +74 -0
- package/dist/core/lsp-diagnostics.d.ts.map +1 -0
- package/dist/core/lsp-diagnostics.js +125 -0
- package/dist/core/lsp-diagnostics.js.map +1 -0
- package/dist/core/lsp-protocol.d.ts +28 -0
- package/dist/core/lsp-protocol.d.ts.map +1 -0
- package/dist/core/lsp-protocol.js +179 -0
- package/dist/core/lsp-protocol.js.map +1 -0
- package/dist/core/lsp-session.d.ts +56 -0
- package/dist/core/lsp-session.d.ts.map +1 -0
- package/dist/core/lsp-session.js +185 -0
- package/dist/core/lsp-session.js.map +1 -0
- package/dist/core/lsp.d.ts +132 -0
- package/dist/core/lsp.d.ts.map +1 -0
- package/dist/core/lsp.js +147 -0
- package/dist/core/lsp.js.map +1 -0
- package/dist/core/mcp.d.ts +294 -0
- package/dist/core/mcp.d.ts.map +1 -0
- package/dist/core/mcp.js +992 -0
- package/dist/core/mcp.js.map +1 -0
- package/dist/core/media-byte-cap.d.ts +34 -0
- package/dist/core/media-byte-cap.d.ts.map +1 -0
- package/dist/core/media-byte-cap.js +76 -0
- package/dist/core/media-byte-cap.js.map +1 -0
- package/dist/core/memory-engine/data-plane.d.ts +103 -0
- package/dist/core/memory-engine/data-plane.d.ts.map +1 -0
- package/dist/core/memory-engine/data-plane.js +272 -0
- package/dist/core/memory-engine/data-plane.js.map +1 -0
- package/dist/core/memory-engine/dual-root.d.ts +40 -0
- package/dist/core/memory-engine/dual-root.d.ts.map +1 -0
- package/dist/core/memory-engine/dual-root.js +95 -0
- package/dist/core/memory-engine/dual-root.js.map +1 -0
- package/dist/core/memory-engine/engine.d.ts +161 -0
- package/dist/core/memory-engine/engine.d.ts.map +1 -0
- package/dist/core/memory-engine/engine.js +1110 -0
- package/dist/core/memory-engine/engine.js.map +1 -0
- package/dist/core/memory-engine/file-backend.d.ts +162 -0
- package/dist/core/memory-engine/file-backend.d.ts.map +1 -0
- package/dist/core/memory-engine/file-backend.js +948 -0
- package/dist/core/memory-engine/file-backend.js.map +1 -0
- package/dist/core/memory-engine/frontmatter.d.ts +24 -0
- package/dist/core/memory-engine/frontmatter.d.ts.map +1 -0
- package/dist/core/memory-engine/frontmatter.js +135 -0
- package/dist/core/memory-engine/frontmatter.js.map +1 -0
- package/dist/core/memory-engine/index.d.ts +13 -0
- package/dist/core/memory-engine/index.d.ts.map +1 -0
- package/dist/core/memory-engine/index.js +28 -0
- package/dist/core/memory-engine/index.js.map +1 -0
- package/dist/core/memory-engine/layout.d.ts +123 -0
- package/dist/core/memory-engine/layout.d.ts.map +1 -0
- package/dist/core/memory-engine/layout.js +643 -0
- package/dist/core/memory-engine/layout.js.map +1 -0
- package/dist/core/memory-engine/memory-backend-contract.d.ts +22 -0
- package/dist/core/memory-engine/memory-backend-contract.d.ts.map +1 -0
- package/dist/core/memory-engine/memory-backend-contract.js +271 -0
- package/dist/core/memory-engine/memory-backend-contract.js.map +1 -0
- package/dist/core/memory-engine/migrate.d.ts +17 -0
- package/dist/core/memory-engine/migrate.d.ts.map +1 -0
- package/dist/core/memory-engine/migrate.js +35 -0
- package/dist/core/memory-engine/migrate.js.map +1 -0
- package/dist/core/memory-engine/scan.d.ts +20 -0
- package/dist/core/memory-engine/scan.d.ts.map +1 -0
- package/dist/core/memory-engine/scan.js +84 -0
- package/dist/core/memory-engine/scan.js.map +1 -0
- package/dist/core/memory-engine/scope-contract.d.ts +104 -0
- package/dist/core/memory-engine/scope-contract.d.ts.map +1 -0
- package/dist/core/memory-engine/scope-contract.js +288 -0
- package/dist/core/memory-engine/scope-contract.js.map +1 -0
- package/dist/core/memory-engine/sync-client.d.ts +100 -0
- package/dist/core/memory-engine/sync-client.d.ts.map +1 -0
- package/dist/core/memory-engine/sync-client.js +328 -0
- package/dist/core/memory-engine/sync-client.js.map +1 -0
- package/dist/core/memory-engine/sync.d.ts +97 -0
- package/dist/core/memory-engine/sync.d.ts.map +1 -0
- package/dist/core/memory-engine/sync.js +91 -0
- package/dist/core/memory-engine/sync.js.map +1 -0
- package/dist/core/memory-engine/types.d.ts +279 -0
- package/dist/core/memory-engine/types.d.ts.map +1 -0
- package/dist/core/memory-engine/types.js +9 -0
- package/dist/core/memory-engine/types.js.map +1 -0
- package/dist/core/memory-recall.d.ts +261 -0
- package/dist/core/memory-recall.d.ts.map +1 -0
- package/dist/core/memory-recall.js +600 -0
- package/dist/core/memory-recall.js.map +1 -0
- package/dist/core/memory-vector.d.ts +24 -0
- package/dist/core/memory-vector.d.ts.map +1 -0
- package/dist/core/memory-vector.js +51 -0
- package/dist/core/memory-vector.js.map +1 -0
- package/dist/core/memory.d.ts +502 -0
- package/dist/core/memory.d.ts.map +1 -0
- package/dist/core/memory.js +881 -0
- package/dist/core/memory.js.map +1 -0
- package/dist/core/message-utils.d.ts +7 -0
- package/dist/core/message-utils.d.ts.map +1 -0
- package/dist/core/message-utils.js +10 -0
- package/dist/core/message-utils.js.map +1 -0
- package/dist/core/oracle-isolation.d.ts +85 -0
- package/dist/core/oracle-isolation.d.ts.map +1 -0
- package/dist/core/oracle-isolation.js +121 -0
- package/dist/core/oracle-isolation.js.map +1 -0
- package/dist/core/permission-rules.d.ts +102 -0
- package/dist/core/permission-rules.d.ts.map +1 -0
- package/dist/core/permission-rules.js +357 -0
- package/dist/core/permission-rules.js.map +1 -0
- package/dist/core/present-plan-tool.d.ts +28 -0
- package/dist/core/present-plan-tool.d.ts.map +1 -0
- package/dist/core/present-plan-tool.js +119 -0
- package/dist/core/present-plan-tool.js.map +1 -0
- package/dist/core/pricing.d.ts +48 -0
- package/dist/core/pricing.d.ts.map +1 -0
- package/dist/core/pricing.js +46 -0
- package/dist/core/pricing.js.map +1 -0
- package/dist/core/property-harness.d.ts +126 -0
- package/dist/core/property-harness.d.ts.map +1 -0
- package/dist/core/property-harness.js +192 -0
- package/dist/core/property-harness.js.map +1 -0
- package/dist/core/push-queue.d.ts +10 -0
- package/dist/core/push-queue.d.ts.map +1 -0
- package/dist/core/push-queue.js +42 -0
- package/dist/core/push-queue.js.map +1 -0
- package/dist/core/remote-env.d.ts +432 -0
- package/dist/core/remote-env.d.ts.map +1 -0
- package/dist/core/remote-env.js +77 -0
- package/dist/core/remote-env.js.map +1 -0
- package/dist/core/roles.d.ts +74 -0
- package/dist/core/roles.d.ts.map +1 -0
- package/dist/core/roles.js +272 -0
- package/dist/core/roles.js.map +1 -0
- package/dist/core/runner/active-skill-scope.d.ts +64 -0
- package/dist/core/runner/active-skill-scope.d.ts.map +1 -0
- package/dist/core/runner/active-skill-scope.js +197 -0
- package/dist/core/runner/active-skill-scope.js.map +1 -0
- package/dist/core/runner/assemble-result.d.ts +191 -0
- package/dist/core/runner/assemble-result.d.ts.map +1 -0
- package/dist/core/runner/assemble-result.js +250 -0
- package/dist/core/runner/assemble-result.js.map +1 -0
- package/dist/core/runner/call-cap.d.ts +130 -0
- package/dist/core/runner/call-cap.d.ts.map +1 -0
- package/dist/core/runner/call-cap.js +151 -0
- package/dist/core/runner/call-cap.js.map +1 -0
- package/dist/core/runner/grounding-signal.d.ts +12 -0
- package/dist/core/runner/grounding-signal.d.ts.map +1 -0
- package/dist/core/runner/grounding-signal.js +94 -0
- package/dist/core/runner/grounding-signal.js.map +1 -0
- package/dist/core/runner/image.d.ts +23 -0
- package/dist/core/runner/image.d.ts.map +1 -0
- package/dist/core/runner/image.js +151 -0
- package/dist/core/runner/image.js.map +1 -0
- package/dist/core/runner/memory-consolidation.d.ts +112 -0
- package/dist/core/runner/memory-consolidation.d.ts.map +1 -0
- package/dist/core/runner/memory-consolidation.js +372 -0
- package/dist/core/runner/memory-consolidation.js.map +1 -0
- package/dist/core/runner/prepare-task.d.ts +583 -0
- package/dist/core/runner/prepare-task.d.ts.map +1 -0
- package/dist/core/runner/prepare-task.js +3612 -0
- package/dist/core/runner/prepare-task.js.map +1 -0
- package/dist/core/runner/prompt-suggestions.d.ts +33 -0
- package/dist/core/runner/prompt-suggestions.d.ts.map +1 -0
- package/dist/core/runner/prompt-suggestions.js +116 -0
- package/dist/core/runner/prompt-suggestions.js.map +1 -0
- package/dist/core/runner/runtask.d.ts +274 -0
- package/dist/core/runner/runtask.d.ts.map +1 -0
- package/dist/core/runner/runtask.js +4606 -0
- package/dist/core/runner/runtask.js.map +1 -0
- package/dist/core/runner/session-rule-policy.d.ts +28 -0
- package/dist/core/runner/session-rule-policy.d.ts.map +1 -0
- package/dist/core/runner/session-rule-policy.js +110 -0
- package/dist/core/runner/session-rule-policy.js.map +1 -0
- package/dist/core/runner/strict-output-schema.d.ts +36 -0
- package/dist/core/runner/strict-output-schema.d.ts.map +1 -0
- package/dist/core/runner/strict-output-schema.js +365 -0
- package/dist/core/runner/strict-output-schema.js.map +1 -0
- package/dist/core/runner/synthetic-tools.d.ts +72 -0
- package/dist/core/runner/synthetic-tools.d.ts.map +1 -0
- package/dist/core/runner/synthetic-tools.js +203 -0
- package/dist/core/runner/synthetic-tools.js.map +1 -0
- package/dist/core/runner/tool-disclosure.d.ts +117 -0
- package/dist/core/runner/tool-disclosure.d.ts.map +1 -0
- package/dist/core/runner/tool-disclosure.js +0 -0
- package/dist/core/runner/tool-disclosure.js.map +1 -0
- package/dist/core/runner/turn-attachments.d.ts +381 -0
- package/dist/core/runner/turn-attachments.d.ts.map +1 -0
- package/dist/core/runner/turn-attachments.js +596 -0
- package/dist/core/runner/turn-attachments.js.map +1 -0
- package/dist/core/runner/usage-accounting.d.ts +35 -0
- package/dist/core/runner/usage-accounting.d.ts.map +1 -0
- package/dist/core/runner/usage-accounting.js +45 -0
- package/dist/core/runner/usage-accounting.js.map +1 -0
- package/dist/core/runtime.d.ts +9 -0
- package/dist/core/runtime.d.ts.map +1 -0
- package/dist/core/runtime.js +17 -0
- package/dist/core/runtime.js.map +1 -0
- package/dist/core/safety-axis-vocab.d.ts +33 -0
- package/dist/core/safety-axis-vocab.d.ts.map +1 -0
- package/dist/core/safety-axis-vocab.js +35 -0
- package/dist/core/safety-axis-vocab.js.map +1 -0
- package/dist/core/safety-merge-corpus.d.ts +48 -0
- package/dist/core/safety-merge-corpus.d.ts.map +1 -0
- package/dist/core/safety-merge-corpus.js +203 -0
- package/dist/core/safety-merge-corpus.js.map +1 -0
- package/dist/core/scheduler.d.ts +126 -0
- package/dist/core/scheduler.d.ts.map +1 -0
- package/dist/core/scheduler.js +54 -0
- package/dist/core/scheduler.js.map +1 -0
- package/dist/core/secret-env.d.ts +23 -0
- package/dist/core/secret-env.d.ts.map +1 -0
- package/dist/core/secret-env.js +35 -0
- package/dist/core/secret-env.js.map +1 -0
- package/dist/core/select-model.d.ts +26 -0
- package/dist/core/select-model.d.ts.map +1 -0
- package/dist/core/select-model.js +58 -0
- package/dist/core/select-model.js.map +1 -0
- package/dist/core/sensitive-path-policy.d.ts +24 -0
- package/dist/core/sensitive-path-policy.d.ts.map +1 -0
- package/dist/core/sensitive-path-policy.js +96 -0
- package/dist/core/sensitive-path-policy.js.map +1 -0
- package/dist/core/session-policy-store.d.ts +102 -0
- package/dist/core/session-policy-store.d.ts.map +1 -0
- package/dist/core/session-policy-store.js +177 -0
- package/dist/core/session-policy-store.js.map +1 -0
- package/dist/core/session-reconcile.d.ts +63 -0
- package/dist/core/session-reconcile.d.ts.map +1 -0
- package/dist/core/session-reconcile.js +71 -0
- package/dist/core/session-reconcile.js.map +1 -0
- package/dist/core/session-store.d.ts +99 -0
- package/dist/core/session-store.d.ts.map +1 -0
- package/dist/core/session-store.js +298 -0
- package/dist/core/session-store.js.map +1 -0
- package/dist/core/session.d.ts +144 -0
- package/dist/core/session.d.ts.map +1 -0
- package/dist/core/session.js +56 -0
- package/dist/core/session.js.map +1 -0
- package/dist/core/spec-contract.d.ts +147 -0
- package/dist/core/spec-contract.d.ts.map +1 -0
- package/dist/core/spec-contract.js +340 -0
- package/dist/core/spec-contract.js.map +1 -0
- package/dist/core/strategy-store.d.ts +50 -0
- package/dist/core/strategy-store.d.ts.map +1 -0
- package/dist/core/strategy-store.js +100 -0
- package/dist/core/strategy-store.js.map +1 -0
- package/dist/core/stub-env.d.ts +35 -0
- package/dist/core/stub-env.d.ts.map +1 -0
- package/dist/core/stub-env.js +69 -0
- package/dist/core/stub-env.js.map +1 -0
- package/dist/core/task-notification.d.ts +115 -0
- package/dist/core/task-notification.d.ts.map +1 -0
- package/dist/core/task-notification.js +247 -0
- package/dist/core/task-notification.js.map +1 -0
- package/dist/core/task-outcome.d.ts +80 -0
- package/dist/core/task-outcome.d.ts.map +1 -0
- package/dist/core/task-outcome.js +40 -0
- package/dist/core/task-outcome.js.map +1 -0
- package/dist/core/task-registry.d.ts +349 -0
- package/dist/core/task-registry.d.ts.map +1 -0
- package/dist/core/task-registry.js +1751 -0
- package/dist/core/task-registry.js.map +1 -0
- package/dist/core/tighten-task-spec.d.ts +27 -0
- package/dist/core/tighten-task-spec.d.ts.map +1 -0
- package/dist/core/tighten-task-spec.js +95 -0
- package/dist/core/tighten-task-spec.js.map +1 -0
- package/dist/core/tool-detach.d.ts +31 -0
- package/dist/core/tool-detach.d.ts.map +1 -0
- package/dist/core/tool-detach.js +62 -0
- package/dist/core/tool-detach.js.map +1 -0
- package/dist/core/tool-errors.d.ts +72 -0
- package/dist/core/tool-errors.d.ts.map +1 -0
- package/dist/core/tool-errors.js +194 -0
- package/dist/core/tool-errors.js.map +1 -0
- package/dist/core/tool-name-aliases.d.ts +5 -0
- package/dist/core/tool-name-aliases.d.ts.map +1 -0
- package/dist/core/tool-name-aliases.js +130 -0
- package/dist/core/tool-name-aliases.js.map +1 -0
- package/dist/core/tool-policy.d.ts +295 -0
- package/dist/core/tool-policy.d.ts.map +1 -0
- package/dist/core/tool-policy.js +567 -0
- package/dist/core/tool-policy.js.map +1 -0
- package/dist/core/tool-result-budget.d.ts +44 -0
- package/dist/core/tool-result-budget.d.ts.map +1 -0
- package/dist/core/tool-result-budget.js +140 -0
- package/dist/core/tool-result-budget.js.map +1 -0
- package/dist/core/tool-result-store.d.ts +136 -0
- package/dist/core/tool-result-store.d.ts.map +1 -0
- package/dist/core/tool-result-store.js +219 -0
- package/dist/core/tool-result-store.js.map +1 -0
- package/dist/core/tools.d.ts +14 -0
- package/dist/core/tools.d.ts.map +1 -0
- package/dist/core/tools.js +98 -0
- package/dist/core/tools.js.map +1 -0
- package/dist/core/trace.d.ts +340 -0
- package/dist/core/trace.d.ts.map +1 -0
- package/dist/core/trace.js +12 -0
- package/dist/core/trace.js.map +1 -0
- package/dist/core/types.d.ts +2828 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +2 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/untrusted-egress.d.ts +32 -0
- package/dist/core/untrusted-egress.d.ts.map +1 -0
- package/dist/core/untrusted-egress.js +49 -0
- package/dist/core/untrusted-egress.js.map +1 -0
- package/dist/core/untrusted-text.d.ts +64 -0
- package/dist/core/untrusted-text.d.ts.map +1 -0
- package/dist/core/untrusted-text.js +119 -0
- package/dist/core/untrusted-text.js.map +1 -0
- package/dist/core/warm-resume.d.ts +23 -0
- package/dist/core/warm-resume.d.ts.map +1 -0
- package/dist/core/warm-resume.js +28 -0
- package/dist/core/warm-resume.js.map +1 -0
- package/dist/core/with-retry.d.ts +43 -0
- package/dist/core/with-retry.d.ts.map +1 -0
- package/dist/core/with-retry.js +59 -0
- package/dist/core/with-retry.js.map +1 -0
- package/dist/core/workflow-journal-store.d.ts +44 -0
- package/dist/core/workflow-journal-store.d.ts.map +1 -0
- package/dist/core/workflow-journal-store.js +47 -0
- package/dist/core/workflow-journal-store.js.map +1 -0
- package/dist/core/workflow-run-store-contract.d.ts +31 -0
- package/dist/core/workflow-run-store-contract.d.ts.map +1 -0
- package/dist/core/workflow-run-store-contract.js +191 -0
- package/dist/core/workflow-run-store-contract.js.map +1 -0
- package/dist/core/workflow-run-store.d.ts +149 -0
- package/dist/core/workflow-run-store.d.ts.map +1 -0
- package/dist/core/workflow-run-store.js +110 -0
- package/dist/core/workflow-run-store.js.map +1 -0
- package/dist/engine/compaction/compaction.d.ts +139 -0
- package/dist/engine/compaction/compaction.d.ts.map +1 -0
- package/dist/engine/compaction/compaction.js +1030 -0
- package/dist/engine/compaction/compaction.js.map +1 -0
- package/dist/engine/compaction/utils.d.ts +45 -0
- package/dist/engine/compaction/utils.d.ts.map +1 -0
- package/dist/engine/compaction/utils.js +203 -0
- package/dist/engine/compaction/utils.js.map +1 -0
- package/dist/engine/execution-env/kill-tree.d.ts +20 -0
- package/dist/engine/execution-env/kill-tree.d.ts.map +1 -0
- package/dist/engine/execution-env/kill-tree.js +183 -0
- package/dist/engine/execution-env/kill-tree.js.map +1 -0
- package/dist/engine/execution-env/node-execution-env.d.ts +133 -0
- package/dist/engine/execution-env/node-execution-env.d.ts.map +1 -0
- package/dist/engine/execution-env/node-execution-env.js +1031 -0
- package/dist/engine/execution-env/node-execution-env.js.map +1 -0
- package/dist/engine/harness/agent-harness.d.ts +174 -0
- package/dist/engine/harness/agent-harness.d.ts.map +1 -0
- package/dist/engine/harness/agent-harness.js +1053 -0
- package/dist/engine/harness/agent-harness.js.map +1 -0
- package/dist/engine/harness/messages.d.ts +17 -0
- package/dist/engine/harness/messages.d.ts.map +1 -0
- package/dist/engine/harness/messages.js +122 -0
- package/dist/engine/harness/messages.js.map +1 -0
- package/dist/engine/harness/types.d.ts +713 -0
- package/dist/engine/harness/types.d.ts.map +1 -0
- package/dist/engine/harness/types.js +100 -0
- package/dist/engine/harness/types.js.map +1 -0
- package/dist/engine/llm/diagnostics.d.ts +23 -0
- package/dist/engine/llm/diagnostics.d.ts.map +1 -0
- package/dist/engine/llm/diagnostics.js +32 -0
- package/dist/engine/llm/diagnostics.js.map +1 -0
- package/dist/engine/llm/event-stream.d.ts +25 -0
- package/dist/engine/llm/event-stream.d.ts.map +1 -0
- package/dist/engine/llm/event-stream.js +103 -0
- package/dist/engine/llm/event-stream.js.map +1 -0
- package/dist/engine/llm/index.d.ts +12 -0
- package/dist/engine/llm/index.d.ts.map +1 -0
- package/dist/engine/llm/index.js +12 -0
- package/dist/engine/llm/index.js.map +1 -0
- package/dist/engine/llm/types.d.ts +753 -0
- package/dist/engine/llm/types.d.ts.map +1 -0
- package/dist/engine/llm/types.js +2 -0
- package/dist/engine/llm/types.js.map +1 -0
- package/dist/engine/llm/validation.d.ts +8 -0
- package/dist/engine/llm/validation.d.ts.map +1 -0
- package/dist/engine/llm/validation.js +318 -0
- package/dist/engine/llm/validation.js.map +1 -0
- package/dist/engine/loop/agent-loop.d.ts +74 -0
- package/dist/engine/loop/agent-loop.d.ts.map +1 -0
- package/dist/engine/loop/agent-loop.js +1490 -0
- package/dist/engine/loop/agent-loop.js.map +1 -0
- package/dist/engine/loop/runtime-deps.d.ts +17 -0
- package/dist/engine/loop/runtime-deps.d.ts.map +1 -0
- package/dist/engine/loop/runtime-deps.js +21 -0
- package/dist/engine/loop/runtime-deps.js.map +1 -0
- package/dist/engine/loop/types.d.ts +609 -0
- package/dist/engine/loop/types.d.ts.map +1 -0
- package/dist/engine/loop/types.js +2 -0
- package/dist/engine/loop/types.js.map +1 -0
- package/dist/engine/lsp/frame-decoder.d.ts +16 -0
- package/dist/engine/lsp/frame-decoder.d.ts.map +1 -0
- package/dist/engine/lsp/frame-decoder.js +53 -0
- package/dist/engine/lsp/frame-decoder.js.map +1 -0
- package/dist/engine/lsp/node-lsp-manager.d.ts +105 -0
- package/dist/engine/lsp/node-lsp-manager.d.ts.map +1 -0
- package/dist/engine/lsp/node-lsp-manager.js +343 -0
- package/dist/engine/lsp/node-lsp-manager.js.map +1 -0
- package/dist/engine/lsp/stdio-lsp-transport.d.ts +37 -0
- package/dist/engine/lsp/stdio-lsp-transport.d.ts.map +1 -0
- package/dist/engine/lsp/stdio-lsp-transport.js +185 -0
- package/dist/engine/lsp/stdio-lsp-transport.js.map +1 -0
- package/dist/engine/session/import-validate.d.ts +44 -0
- package/dist/engine/session/import-validate.d.ts.map +1 -0
- package/dist/engine/session/import-validate.js +92 -0
- package/dist/engine/session/import-validate.js.map +1 -0
- package/dist/engine/session/memory-repo.d.ts +25 -0
- package/dist/engine/session/memory-repo.d.ts.map +1 -0
- package/dist/engine/session/memory-repo.js +59 -0
- package/dist/engine/session/memory-repo.js.map +1 -0
- package/dist/engine/session/memory-storage.d.ts +14 -0
- package/dist/engine/session/memory-storage.d.ts.map +1 -0
- package/dist/engine/session/memory-storage.js +17 -0
- package/dist/engine/session/memory-storage.js.map +1 -0
- package/dist/engine/session/repo-utils.d.ts +11 -0
- package/dist/engine/session/repo-utils.d.ts.map +1 -0
- package/dist/engine/session/repo-utils.js +40 -0
- package/dist/engine/session/repo-utils.js.map +1 -0
- package/dist/engine/session/session.d.ts +34 -0
- package/dist/engine/session/session.d.ts.map +1 -0
- package/dist/engine/session/session.js +227 -0
- package/dist/engine/session/session.js.map +1 -0
- package/dist/engine/session/storage-base.d.ts +38 -0
- package/dist/engine/session/storage-base.d.ts.map +1 -0
- package/dist/engine/session/storage-base.js +157 -0
- package/dist/engine/session/storage-base.js.map +1 -0
- package/dist/engine/session/timestamps.d.ts +3 -0
- package/dist/engine/session/timestamps.d.ts.map +1 -0
- package/dist/engine/session/timestamps.js +15 -0
- package/dist/engine/session/timestamps.js.map +1 -0
- package/dist/engine/session/uuid.d.ts +2 -0
- package/dist/engine/session/uuid.d.ts.map +1 -0
- package/dist/engine/session/uuid.js +50 -0
- package/dist/engine/session/uuid.js.map +1 -0
- package/dist/index.d.ts +160 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +374 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/harness.d.ts +26 -0
- package/dist/internal/harness.d.ts.map +1 -0
- package/dist/internal/harness.js +24 -0
- package/dist/internal/harness.js.map +1 -0
- package/dist/internal/llm.d.ts +9 -0
- package/dist/internal/llm.d.ts.map +1 -0
- package/dist/internal/llm.js +8 -0
- package/dist/internal/llm.js.map +1 -0
- package/dist/orchestration/builtin-workflows.d.ts +44 -0
- package/dist/orchestration/builtin-workflows.d.ts.map +1 -0
- package/dist/orchestration/builtin-workflows.js +165 -0
- package/dist/orchestration/builtin-workflows.js.map +1 -0
- package/dist/orchestration/dev-vm-script-runner.d.ts +24 -0
- package/dist/orchestration/dev-vm-script-runner.d.ts.map +1 -0
- package/dist/orchestration/dev-vm-script-runner.js +106 -0
- package/dist/orchestration/dev-vm-script-runner.js.map +1 -0
- package/dist/orchestration/goal.d.ts +97 -0
- package/dist/orchestration/goal.d.ts.map +1 -0
- package/dist/orchestration/goal.js +248 -0
- package/dist/orchestration/goal.js.map +1 -0
- package/dist/orchestration/run-spec.d.ts +63 -0
- package/dist/orchestration/run-spec.d.ts.map +1 -0
- package/dist/orchestration/run-spec.js +274 -0
- package/dist/orchestration/run-spec.js.map +1 -0
- package/dist/orchestration/run-workflow-tool.d.ts +187 -0
- package/dist/orchestration/run-workflow-tool.d.ts.map +1 -0
- package/dist/orchestration/run-workflow-tool.js +612 -0
- package/dist/orchestration/run-workflow-tool.js.map +1 -0
- package/dist/orchestration/workflow-governance.d.ts +70 -0
- package/dist/orchestration/workflow-governance.d.ts.map +1 -0
- package/dist/orchestration/workflow-governance.js +176 -0
- package/dist/orchestration/workflow-governance.js.map +1 -0
- package/dist/orchestration/workflow-meta.d.ts +41 -0
- package/dist/orchestration/workflow-meta.d.ts.map +1 -0
- package/dist/orchestration/workflow-meta.js +426 -0
- package/dist/orchestration/workflow-meta.js.map +1 -0
- package/dist/orchestration/workflow-observe.d.ts +77 -0
- package/dist/orchestration/workflow-observe.d.ts.map +1 -0
- package/dist/orchestration/workflow-observe.js +177 -0
- package/dist/orchestration/workflow-observe.js.map +1 -0
- package/dist/orchestration/workflow-primitives.d.ts +31 -0
- package/dist/orchestration/workflow-primitives.d.ts.map +1 -0
- package/dist/orchestration/workflow-primitives.js +104 -0
- package/dist/orchestration/workflow-primitives.js.map +1 -0
- package/dist/orchestration/workflow-sandbox-conformance.d.ts +34 -0
- package/dist/orchestration/workflow-sandbox-conformance.d.ts.map +1 -0
- package/dist/orchestration/workflow-sandbox-conformance.js +301 -0
- package/dist/orchestration/workflow-sandbox-conformance.js.map +1 -0
- package/dist/orchestration/workflow-script-runner.d.ts +127 -0
- package/dist/orchestration/workflow-script-runner.d.ts.map +1 -0
- package/dist/orchestration/workflow-script-runner.js +48 -0
- package/dist/orchestration/workflow-script-runner.js.map +1 -0
- package/dist/orchestration/workflow-script-store.d.ts +99 -0
- package/dist/orchestration/workflow-script-store.d.ts.map +1 -0
- package/dist/orchestration/workflow-script-store.js +133 -0
- package/dist/orchestration/workflow-script-store.js.map +1 -0
- package/dist/orchestration/workflow-size-guideline.d.ts +50 -0
- package/dist/orchestration/workflow-size-guideline.d.ts.map +1 -0
- package/dist/orchestration/workflow-size-guideline.js +78 -0
- package/dist/orchestration/workflow-size-guideline.js.map +1 -0
- package/dist/orchestration/workflow.d.ts +624 -0
- package/dist/orchestration/workflow.d.ts.map +1 -0
- package/dist/orchestration/workflow.js +1596 -0
- package/dist/orchestration/workflow.js.map +1 -0
- package/dist/prompts/default.d.ts +474 -0
- package/dist/prompts/default.d.ts.map +1 -0
- package/dist/prompts/default.js +676 -0
- package/dist/prompts/default.js.map +1 -0
- package/dist/prompts/supervisor.d.ts +60 -0
- package/dist/prompts/supervisor.d.ts.map +1 -0
- package/dist/prompts/supervisor.js +162 -0
- package/dist/prompts/supervisor.js.map +1 -0
- package/dist/scenarios/env.d.ts +41 -0
- package/dist/scenarios/env.d.ts.map +1 -0
- package/dist/scenarios/env.js +65 -0
- package/dist/scenarios/env.js.map +1 -0
- package/dist/scenarios/full-body.d.ts +47 -0
- package/dist/scenarios/full-body.d.ts.map +1 -0
- package/dist/scenarios/full-body.js +36 -0
- package/dist/scenarios/full-body.js.map +1 -0
- package/dist/scenarios/scenario-registry.d.ts +107 -0
- package/dist/scenarios/scenario-registry.d.ts.map +1 -0
- package/dist/scenarios/scenario-registry.js +192 -0
- package/dist/scenarios/scenario-registry.js.map +1 -0
- package/dist/scenarios/teacher-quickstart.d.ts +41 -0
- package/dist/scenarios/teacher-quickstart.d.ts.map +1 -0
- package/dist/scenarios/teacher-quickstart.js +32 -0
- package/dist/scenarios/teacher-quickstart.js.map +1 -0
- package/dist/server/http.d.ts +36 -0
- package/dist/server/http.d.ts.map +1 -0
- package/dist/server/http.js +144 -0
- package/dist/server/http.js.map +1 -0
- package/dist/stores/file/checkpoint-store.d.ts +62 -0
- package/dist/stores/file/checkpoint-store.d.ts.map +1 -0
- package/dist/stores/file/checkpoint-store.js +250 -0
- package/dist/stores/file/checkpoint-store.js.map +1 -0
- package/dist/stores/file/file-snapshot-store.d.ts +43 -0
- package/dist/stores/file/file-snapshot-store.d.ts.map +1 -0
- package/dist/stores/file/file-snapshot-store.js +374 -0
- package/dist/stores/file/file-snapshot-store.js.map +1 -0
- package/dist/stores/file/fs-atomic.d.ts +95 -0
- package/dist/stores/file/fs-atomic.d.ts.map +1 -0
- package/dist/stores/file/fs-atomic.js +415 -0
- package/dist/stores/file/fs-atomic.js.map +1 -0
- package/dist/stores/file/index.d.ts +98 -0
- package/dist/stores/file/index.d.ts.map +1 -0
- package/dist/stores/file/index.js +109 -0
- package/dist/stores/file/index.js.map +1 -0
- package/dist/stores/file/memory-store.d.ts +95 -0
- package/dist/stores/file/memory-store.d.ts.map +1 -0
- package/dist/stores/file/memory-store.js +393 -0
- package/dist/stores/file/memory-store.js.map +1 -0
- package/dist/stores/file/session-policy-store.d.ts +24 -0
- package/dist/stores/file/session-policy-store.d.ts.map +1 -0
- package/dist/stores/file/session-policy-store.js +123 -0
- package/dist/stores/file/session-policy-store.js.map +1 -0
- package/dist/stores/file/session-store.d.ts +34 -0
- package/dist/stores/file/session-store.d.ts.map +1 -0
- package/dist/stores/file/session-store.js +175 -0
- package/dist/stores/file/session-store.js.map +1 -0
- package/dist/stores/file/tool-result-store.d.ts +23 -0
- package/dist/stores/file/tool-result-store.d.ts.map +1 -0
- package/dist/stores/file/tool-result-store.js +61 -0
- package/dist/stores/file/tool-result-store.js.map +1 -0
- package/dist/stores/file/workflow-journal-store.d.ts +36 -0
- package/dist/stores/file/workflow-journal-store.d.ts.map +1 -0
- package/dist/stores/file/workflow-journal-store.js +157 -0
- package/dist/stores/file/workflow-journal-store.js.map +1 -0
- package/dist/stores/file/workflow-run-store.d.ts +58 -0
- package/dist/stores/file/workflow-run-store.d.ts.map +1 -0
- package/dist/stores/file/workflow-run-store.js +178 -0
- package/dist/stores/file/workflow-run-store.js.map +1 -0
- package/dist/stores/pg.d.ts +210 -0
- package/dist/stores/pg.d.ts.map +1 -0
- package/dist/stores/pg.js +652 -0
- package/dist/stores/pg.js.map +1 -0
- package/dist/tools/fs/encoding.d.ts +51 -0
- package/dist/tools/fs/encoding.d.ts.map +1 -0
- package/dist/tools/fs/encoding.js +74 -0
- package/dist/tools/fs/encoding.js.map +1 -0
- package/dist/tools/fs/gh-rate-limit.d.ts +19 -0
- package/dist/tools/fs/gh-rate-limit.d.ts.map +1 -0
- package/dist/tools/fs/gh-rate-limit.js +35 -0
- package/dist/tools/fs/gh-rate-limit.js.map +1 -0
- package/dist/tools/fs/index.d.ts +246 -0
- package/dist/tools/fs/index.d.ts.map +1 -0
- package/dist/tools/fs/index.js +2130 -0
- package/dist/tools/fs/index.js.map +1 -0
- package/dist/tools/fs/pdf.d.ts +106 -0
- package/dist/tools/fs/pdf.d.ts.map +1 -0
- package/dist/tools/fs/pdf.js +178 -0
- package/dist/tools/fs/pdf.js.map +1 -0
- package/dist/tools/fs/repo-map.d.ts +15 -0
- package/dist/tools/fs/repo-map.d.ts.map +1 -0
- package/dist/tools/fs/repo-map.js +251 -0
- package/dist/tools/fs/repo-map.js.map +1 -0
- package/dist/tools/fs/safety.d.ts +168 -0
- package/dist/tools/fs/safety.d.ts.map +1 -0
- package/dist/tools/fs/safety.js +479 -0
- package/dist/tools/fs/safety.js.map +1 -0
- package/dist/tools/fs/search.d.ts +118 -0
- package/dist/tools/fs/search.d.ts.map +1 -0
- package/dist/tools/fs/search.js +650 -0
- package/dist/tools/fs/search.js.map +1 -0
- package/dist/tools/gitea-issue.d.ts +39 -0
- package/dist/tools/gitea-issue.d.ts.map +1 -0
- package/dist/tools/gitea-issue.js +91 -0
- package/dist/tools/gitea-issue.js.map +1 -0
- package/dist/tools/monitor.d.ts +64 -0
- package/dist/tools/monitor.d.ts.map +1 -0
- package/dist/tools/monitor.js +135 -0
- package/dist/tools/monitor.js.map +1 -0
- package/dist/tools/scheduler-tools.d.ts +48 -0
- package/dist/tools/scheduler-tools.d.ts.map +1 -0
- package/dist/tools/scheduler-tools.js +449 -0
- package/dist/tools/scheduler-tools.js.map +1 -0
- package/dist/tools/sql-adapters.d.ts +32 -0
- package/dist/tools/sql-adapters.d.ts.map +1 -0
- package/dist/tools/sql-adapters.js +31 -0
- package/dist/tools/sql-adapters.js.map +1 -0
- package/dist/tools/sql.d.ts +36 -0
- package/dist/tools/sql.d.ts.map +1 -0
- package/dist/tools/sql.js +131 -0
- package/dist/tools/sql.js.map +1 -0
- package/dist/tools/task-list.d.ts +26 -0
- package/dist/tools/task-list.d.ts.map +1 -0
- package/dist/tools/task-list.js +352 -0
- package/dist/tools/task-list.js.map +1 -0
- package/dist/tools/todo.d.ts +11 -0
- package/dist/tools/todo.d.ts.map +1 -0
- package/dist/tools/todo.js +126 -0
- package/dist/tools/todo.js.map +1 -0
- package/dist/tools/web.d.ts +59 -0
- package/dist/tools/web.d.ts.map +1 -0
- package/dist/tools/web.js +607 -0
- package/dist/tools/web.js.map +1 -0
- package/dist/tools/worktree.d.ts +88 -0
- package/dist/tools/worktree.d.ts.map +1 -0
- package/dist/tools/worktree.js +434 -0
- package/dist/tools/worktree.js.map +1 -0
- package/docs/A1-ATTRIBUTION-ROUND1-2026-07-09.md +181 -0
- package/docs/AB-ORACLE-GATE-VERDICT-2026-07-10.md +100 -0
- package/docs/ANCHOR-GAP-INVENTORY-2026-07-09.md +143 -0
- package/docs/ARCHITECTURE.md +125 -0
- package/docs/BUGHUNT-2026-07-05-NIGHT.md +98 -0
- package/docs/BUILD.md +63 -0
- package/docs/CANCEL-ASYNC-ATTRIBUTION-2026-07-09.md +98 -0
- package/docs/CC-198-VS-201-DRIFT-2026-07-09.md +70 -0
- package/docs/CC-BASELINE-FAKE-ZERO-AUDIT-2026-07-09.md +51 -0
- package/docs/CC-DRIFT-198-206-AGENT-TYPES-2026-07-10.md +82 -0
- package/docs/CC-DRIFT-198-206-CHANGELOG-2026-07-10.md +82 -0
- package/docs/CC-DRIFT-198-206-REMINDERS-2026-07-10.md +96 -0
- package/docs/CC-DRIFT-198-206-ROADMAP-2026-07-10.md +110 -0
- package/docs/CC-DRIFT-198-206-TOOL-INVENTORY-2026-07-10.md +53 -0
- package/docs/CC-DRIFT-198-206-USAGE-CONSTANTS-2026-07-10.md +64 -0
- package/docs/CC-DRIFT-198-206-WORKFLOW-2026-07-10.md +83 -0
- package/docs/CC-PARITY-CHECKLIST.md +220 -0
- package/docs/CC-PARITY-DEEP-SWEEP-2026-07-07.md +149 -0
- package/docs/CC-SUBAGENT-PROMPT-STUDY-2026-07-09.md +219 -0
- package/docs/CC-TASK-REMINDER-CADENCE-STUDY-2026-07-09.md +396 -0
- package/docs/CC-TOOL-PARITY-SWEEP-2026-07.md +56 -0
- package/docs/CC-TOOL-PROMPT-DEEP-DIFF-2026-07-08.md +274 -0
- package/docs/CC-TOOLSURFACE-DEEP-DIVE-2026-07-07.md +197 -0
- package/docs/CC206-OBSERVER-ANCHORS-2026-07-11.md +463 -0
- package/docs/CC207-CORE-SWEEP-BACKLOG-2026-07-12.md +155 -0
- package/docs/CENTER-CONTROL-PLANE-SEAM.md +86 -0
- package/docs/CLEANUP-CONTRACT-ANCHOR-2026-07-09.md +83 -0
- package/docs/COLD-START-RSI-2026-07-09.md +72 -0
- package/docs/COMPACTION-LIVE-AUDIT-2026-07-09.md +114 -0
- package/docs/CONTEXT-lifecycle-extension-points-and-stop-attribution.md +71 -0
- package/docs/COREWARS-POLYGLOT-TRIAGE-2026-07-09.md +85 -0
- package/docs/DEADTARGET-OVERFULL-HBOX-2026-07-10.md +92 -0
- package/docs/DEADTARGET-PATH-TRACING-REVERSE-2026-07-10.md +87 -0
- package/docs/DEADTARGET-WINNING-AVG-COREWARS-2026-07-10.md +96 -0
- package/docs/DEEPSEEK-API-LIMITS-PROBE-2026-07-09.md +118 -0
- package/docs/DESIGN-140-MOCK-VERIFY-2026-07-11.md +79 -0
- package/docs/DESIGN-140-VERIFICATION-2026-07-11.md +43 -0
- package/docs/DESIGN-DRAFT-workflow-collab-2026-07-11.md +56 -0
- package/docs/DESIGN-ORACLE-GROUNDING-GATE-2026-07-10.md +167 -0
- package/docs/DESIGN-TFRAG-RECONCILE-SCAFFOLD-2026-07-09.md +102 -0
- package/docs/EXP-PA2-PE-DESIGN-2026-07-11.md +220 -0
- package/docs/EXT-DOGFOOD-2026-07-12.md +50 -0
- package/docs/FINAL-VERIFY-SURFACE-AUDIT-2026-07-09.md +44 -0
- package/docs/FRAG-RECON-INVESTIGATION-2026-07-09.md +183 -0
- package/docs/HANDOFF.md +121 -0
- package/docs/KNOWN-ISSUES.md +96 -0
- package/docs/LEGW-WINDOW-TAX-2026-07-10.md +82 -0
- package/docs/LIVE-PROBE-BATCH-2026-07-11.md +207 -0
- package/docs/M2-CERT-ATTRIBUTION-2026-07-10.md +61 -0
- package/docs/M25-LEG-VARIANCE-ATTRIBUTION-2026-07-10.md +81 -0
- package/docs/MAILMAN-TIMEOUT-ATTRIBUTION-2026-07-10.md +88 -0
- package/docs/MEMORY-BACKEND-DIALECT-NOTES.md +69 -0
- package/docs/MTEB-ESCAPE-HATCH-ATTRIBUTION-2026-07-09.md +57 -0
- package/docs/MTEB-LEADERBOARD-ATTRIBUTION-2026-07-10.md +134 -0
- package/docs/ORACLE-GATE-NEGATIVE-SAMPLE-2026-07-11.md +28 -0
- package/docs/PARITY-CONTEXT-TRANSACTIONS-2026-07-10.md +67 -0
- package/docs/PARITY-PROGRESS-MATRIX-2026-07-10.md +37 -0
- package/docs/PARITY-SPOT-AGENT-TYPES-2026-07-10.md +70 -0
- package/docs/PARITY-SPOT-REMINDERS-2026-07-10.md +144 -0
- package/docs/PARITY-SPOT-TOOL-INVENTORY-2026-07-10.md +61 -0
- package/docs/PARITY-SPOT-USAGE-CONSTANTS-2026-07-10.md +95 -0
- package/docs/PARITY-SPOT-WORKFLOW-2026-07-10.md +93 -0
- package/docs/PASSWORD-RECOVERY-PANEL-VERDICT-2026-07-10.md +62 -0
- package/docs/R8-R9-FINALIZE-COORDINATION-2026-07-09.md +124 -0
- package/docs/REPL-CODE-MODE-EVALUATION-2026-07-10.md +187 -0
- package/docs/REPORT-1249-TARGETED.md +48 -0
- package/docs/RESEARCH-3P-MEMORY-SWAP-2026-07-12.md +273 -0
- package/docs/ROADMAP.md +111 -0
- package/docs/RSI-CLOUD-DEPLOY-2026-07-06.md +289 -0
- package/docs/RSI-PROCESS-AI-COLDSTART-2026-07-11.md +68 -0
- package/docs/S18-THOROUGHNESS-AUDIT-2026-07-09.md +113 -0
- package/docs/SERVICE-INTEGRATION-GUIDE.md +298 -0
- package/docs/SUBAGENT-STREAM-RESILIENCE-PARITY-2026-07-10.md +118 -0
- package/docs/SWEBENCH-PRO-RECON-2026-07-11.md +31 -0
- package/docs/TB-EFFICIENCY-TELEMETRY-2026-07-08.md +114 -0
- package/docs/TB-FAILURE-AUTOPSY-2026-07-05-RERUN.md +67 -0
- package/docs/TB-FAIRNESS-AUDIT-2026-07-08.md +141 -0
- package/docs/TB-FULL-1257-2026-07-08.md +77 -0
- package/docs/TB-LEG-GAP-ATTRIBUTION-1261-1263-2026-07-11.md +154 -0
- package/docs/TB-REGRESSION-DAEMON-KILL-2026-07-08.md +58 -0
- package/docs/TB-RSI-CROSSCHECK-2026-07-06.md +68 -0
- package/docs/TB-RSI-LEDGER.md +30 -0
- package/docs/TB-STABLE-SET-2026-07-08.md +127 -0
- package/docs/TB21-RECON-2026-07-11.md +28 -0
- package/docs/TEST-DESIGN-BATCH-1-2-3.md +97 -0
- package/docs/THIRD-PARTY-INTEGRATION.md +45 -0
- package/docs/TOKEN-ESTIMATE-CALIBRATION-LIVE-2026-07-09.md +102 -0
- package/docs/audit-2026-06-10-/347/254/254/344/272/214/350/275/256-/347/251/272/347/231/275/345/214/272/344/270/216/345/277/230/346/216/245/347/272/277.md +147 -0
- package/docs/audit-2026-06-10-/350/256/241/347/256/227bug/346/211/253/346/217/217.md +163 -0
- package/docs/audit-2026-06-11-/344/277/256/345/244/215/345/244/215/345/256/241/344/270/216/345/233/236/345/275/222/344/270/223/346/211/253.md +95 -0
- package/docs/audit-2026-06-12-design71-P1/346/275/234/344/274/217/351/235/242/350/243/201/345/206/263/344/270/216/345/220/236/351/224/231/345/256/241/350/256/241.md +45 -0
- package/docs/audit-2026-06-12-/345/205/254/345/274/200/346/227/213/351/222/256/346/264/273/346/200/247/344/270/216vendored/346/255/273/350/267/257.md +63 -0
- package/docs/audit-2026-06-15/ADDENDUM-second-pass.md +88 -0
- package/docs/audit-2026-06-15/ARCHITECTURE-AND-ROADMAP.md +187 -0
- package/docs/audit-2026-06-15/DOC-CORRECTIONS.md +105 -0
- package/docs/audit-2026-06-15/INDEX.md +49 -0
- package/docs/audit-2026-06-15/ORCHESTRATION-STATUS.md +98 -0
- package/docs/audit-2026-06-15/PRODUCTION-ISSUES.md +189 -0
- package/docs/audit-2026-06-15/REFERENCES-literature.md +139 -0
- package/docs/audit-2026-06-15/VENDOR-REFACTOR-PLAN.md +96 -0
- package/docs/cc-probe-198/README.md +72 -0
- package/docs/cc-probe-198/STABILITY-AUDIT.md +118 -0
- package/docs/cc-probe-198/live-schema-monitor-worktree-2026-07-09.json +56 -0
- package/docs/cc-probe-198/mount-variants.json +536 -0
- package/docs/cc-probe-198/plan-mode-run.json +1 -0
- package/docs/cc-probe-198/probe-bash-bg.json +224 -0
- package/docs/cc-probe-198/probe-edit-mismatch.json +120 -0
- package/docs/cc-probe-198/probe-read-missing.json +62 -0
- package/docs/cc-probe-198/probe-search-empty.json +127 -0
- package/docs/cc-probe-198/probe-task-family.json +227 -0
- package/docs/cc-probe-198/probes.status +6 -0
- package/docs/cc-probe-198/raw-capture-interactive.json +948 -0
- package/docs/cc-probe-198/raw-capture-print.json +787 -0
- package/docs/cc-probe-198/raw-capture2-interactive.json +948 -0
- package/docs/cc-probe-198/raw-capture2-print.json +787 -0
- package/docs/cc-probe-198/system-prompt.txt +135 -0
- package/docs/cc-probe-198/tools-array.json +962 -0
- package/docs/durability-boundary.md +63 -0
- package/docs/fix-2026-06-10-/350/256/241/347/256/227bug/344/277/256/345/244/215-search/346/211/271.md +75 -0
- package/docs/fix-2026-06-11-/347/254/254/344/272/214/350/275/256-/344/277/256/345/244/215-search/346/211/271.md +62 -0
- package/docs/parity-sweep/REPORT-DYNAMIC.md +97 -0
- package/docs/parity-sweep/REPORT-STATIC-GGB.md +127 -0
- package/docs/parity-sweep/REPORT-STATIC-RWE.md +133 -0
- package/docs/vendor-history.md +385 -0
- package/docs/vendored-upstream-diff-2026-07.md +83 -0
- package/package.json +70 -0
|
@@ -0,0 +1,624 @@
|
|
|
1
|
+
import type { TSchema } from "typebox";
|
|
2
|
+
import type { Runner } from "../core/runner/runtask.js";
|
|
3
|
+
import type { AgentDefinition, TaskResult, TaskSpec, TaskStatus, ToolActivity } from "../core/types.js";
|
|
4
|
+
import type { WorkflowRunStore } from "../core/workflow-run-store.js";
|
|
5
|
+
import type { WorkflowJournalStore } from "../core/workflow-journal-store.js";
|
|
6
|
+
/** 198 `P0m` (pretty.js:447248) — prose state: the child's final text is the script-facing return value. */
|
|
7
|
+
export declare const WORKFLOW_SUBAGENT_PROMPT = "You are a subagent spawned by a workflow orchestration script. Use the tools available to complete the task.\n\nCRITICAL: Your final text response is returned **verbatim** as a string to the calling script \u2014 it is your return value, not a message to a human.\n- Output the literal result (data, JSON, text). Do NOT output confirmations like \"Done.\" or \"Sent.\"\n- If asked for JSON, return ONLY the raw JSON \u2014 no code fences, no prose, no markdown.\n- Do NOT address a human user \u2014 there is no user on the other end. Put your answer in your final text response.\n- Do NOT delegate to further sub-agents or start nested workflows; complete the task yourself.\n- Be concise. The script will parse your output.";
|
|
8
|
+
/** 198 `M0m` (pretty.js:447333) — schema state: the answer goes through the StructuredOutput tool, once. */
|
|
9
|
+
export declare const WORKFLOW_SUBAGENT_PROMPT_SCHEMA = "You are a subagent spawned by a workflow orchestration script. Use the tools available to complete the task.\n\nCRITICAL: You MUST call the StructuredOutput tool exactly once to return your final answer. The tool's input schema defines the required shape.\n- Do your work (Read files, run commands, etc.), then call StructuredOutput with your answer.\n- Do NOT put your answer in a text response. The script reads ONLY the StructuredOutput tool call.\n- If the schema validation fails, read the error and call StructuredOutput again with a corrected shape.\n- After calling StructuredOutput successfully, end your turn. No acknowledgment needed.\n- Do NOT delegate to further sub-agents or start nested workflows; complete the task yourself.";
|
|
10
|
+
/** 198 composite prose-append `O0m` (pretty.js:447255) — a script-supplied CUSTOM persona gets the return
|
|
11
|
+
* contract APPENDED (never replaced), mirroring 198's `opts.agentType` + schema composition. VERBATIM
|
|
12
|
+
* (PARITY-SPOT-WORKFLOW F6/B6): 198's constant opens with a `---` separator line and closes with the
|
|
13
|
+
* "Output the literal result; do not output confirmations…" tail — the previous sema paraphrase drifted. */
|
|
14
|
+
export declare const WORKFLOW_SUBAGENT_APPEND = "---\n\nNOTE: You are running inside a workflow script. Your final text response is returned verbatim as a string to the calling script \u2014 it is your return value, not a message to a human. Output the literal result; do not output confirmations like \"Done.\" Be concise \u2014 the script will parse your output.";
|
|
15
|
+
/** 198 composite schema-append `L0m` (pretty.js:447328) — VERBATIM incl. the `---` opener (F6/B6; the old
|
|
16
|
+
* sema text compressed the "Do your work, then call X" instruction out). */
|
|
17
|
+
export declare const WORKFLOW_SUBAGENT_APPEND_SCHEMA = "---\n\nNOTE: You are running inside a workflow script. You MUST return your final answer by calling the StructuredOutput tool exactly once \u2014 the tool's input schema defines the required shape. Do your work, then call StructuredOutput; do NOT put your answer in a text response (the script reads ONLY the tool call). If validation fails, read the error and call StructuredOutput again with a corrected shape.";
|
|
18
|
+
/**
|
|
19
|
+
* Apply the G5 default persona to a `ctx.agent`/`ctx.agentStream` child spec. Two-state on the EFFECTIVE
|
|
20
|
+
* schema (`agentOpts.schema` wins over a spec-carried `outputSchema`, same as the runSpec injection):
|
|
21
|
+
* • no `spec.systemPrompt` → the dedicated workflow-subagent persona REPLACES the role base (198
|
|
22
|
+
* default `workflow-subagent` agent-type semantics);
|
|
23
|
+
* • a script-supplied `spec.systemPrompt` (custom persona) → the matching NOTE is APPENDED via
|
|
24
|
+
* `appendSystemPrompt` (198 composite semantics — append, never replace), after any existing append.
|
|
25
|
+
* Called AFTER the call-key is computed (the journal identity keys the AUTHORED spec, so a resume across
|
|
26
|
+
* core versions replays cleanly; the persona is an execution detail, not call identity).
|
|
27
|
+
*/
|
|
28
|
+
/**
|
|
29
|
+
* F4 agentType (CC 198 锚 pretty.js:446608-446627): resolve `opts.agentType` against the registry
|
|
30
|
+
* (deployment SHADOW over built-ins) and fold the definition into the child spec — persona as
|
|
31
|
+
* `systemPrompt` (so {@link withWorkflowChildPersona} composes the return-contract NOTE via the
|
|
32
|
+
* custom-persona APPEND arm = CC `O0m` semantics), model/thinking/maxTurns/skills/memory when the spec
|
|
33
|
+
* didn't pin them, and allow/denyTools as a ToolPolicy (combined deny-wins with any spec policy).
|
|
34
|
+
* The definition is DEPLOYMENT-TRUSTED (registry-declared, not script-authored), so its model bypasses
|
|
35
|
+
* the script-facing modelName allowlist by design — same trust tier as the Agent tool's registry.
|
|
36
|
+
*/
|
|
37
|
+
export declare function applyWorkflowAgentType(spec: TaskSpec, agentType: string | undefined, registry: AgentDefinition[]): TaskSpec;
|
|
38
|
+
/** The agentType registry for one workflow run: built-ins (unless opted out) with deployment SHADOW. */
|
|
39
|
+
export declare function workflowAgentRegistry(opts: {
|
|
40
|
+
agents?: AgentDefinition[];
|
|
41
|
+
builtinAgents?: boolean;
|
|
42
|
+
}): AgentDefinition[];
|
|
43
|
+
/**
|
|
44
|
+
* design/97 CORE-1 (foundation) — the STABLE, deterministic identity of one `ctx.agent` call, so the resume
|
|
45
|
+
* journal (CORE-7) can key a cached result and the observe tree (CORE-3/5) can hang per-agent data off it.
|
|
46
|
+
* `ordinal` is the synchronous call-order index (`run.agents.length` at RECORD time — captured BEFORE the
|
|
47
|
+
* `sem.acquire` await, so for `parallel(direct thunks)`/sequential it is deterministic run-to-run. `pipeline`'s
|
|
48
|
+
* stage-2+ ordinals are LATENCY-dependent (NOT deterministic) — so `pipeline` conservatively forces replay
|
|
49
|
+
* divergence and runs live on resume; deterministic stage-scoped keys are a CORE-7.1 follow-on. The hash is over
|
|
50
|
+
* the WHOLE behaviour-defining spec (audit fix — a cherry-pick missed images/thinking/limits/maxTokens/model
|
|
51
|
+
* runtime fields), with non-behavioural identity (taskId/sessionId/signal) stripped and tools/mcp reduced to
|
|
52
|
+
* NAMES (their closures aren't serializable). SHARED pure fn (anti-drift): the journal MUST key through this.
|
|
53
|
+
*/
|
|
54
|
+
export declare function workflowAgentCallKey(ordinal: number, spec: TaskSpec, opts: {
|
|
55
|
+
schema?: TSchema;
|
|
56
|
+
isolation?: "worktree";
|
|
57
|
+
}): string;
|
|
58
|
+
/**
|
|
59
|
+
* Workflow mode (design/97 S1a) — deterministic JS orchestration primitives over `runner.runTask`, the
|
|
60
|
+
* core counterpart of Claude Code's Workflow tool. A workflow is a **script the caller writes**
|
|
61
|
+
* (`parallel`/`pipeline`/`phase`/`budget` + `ctx.agent`), NOT an LLM dynamically planning a DAG (the
|
|
62
|
+
* value-judgment-rejected LLM-planner). Thin composition, zero Runner-core changes — same posture as the 5
|
|
63
|
+
* orchestrators (team/cascade/teacher/verify/repair-loop).
|
|
64
|
+
*
|
|
65
|
+
* `ctx.agent(spec)` runs `runner.runTask(spec)` directly (script-driven, deterministic) — distinct from the
|
|
66
|
+
* subagent tool, where the LLM decides to delegate (non-deterministic).
|
|
67
|
+
*
|
|
68
|
+
* This module owns the run model + event types (S1a builds an in-memory {@link WorkflowRun} and emits
|
|
69
|
+
* {@link WorkflowEvent}s). Persistence (`WorkflowRunStore`, S1b) and the `/workflows` query/subscribe API
|
|
70
|
+
* (S1c) consume these types; with no store wired a workflow still runs and emits — observability is
|
|
71
|
+
* opt-in, never required (design/97 §D.4).
|
|
72
|
+
*/
|
|
73
|
+
export type WorkflowRunStatus = "running" | "completed" | "failed";
|
|
74
|
+
/** Status of one phase / agent-run within a workflow. */
|
|
75
|
+
export type WorkflowItemStatus = "running" | "completed" | "failed";
|
|
76
|
+
export interface WorkflowPhase {
|
|
77
|
+
title: string;
|
|
78
|
+
/** F7/B7 (CC pretty.js:446478): a phase PRE-REGISTERED from `meta.phases` starts as `"pending"` — the plan
|
|
79
|
+
* is visible before execution. The first `phase()` call with the SAME title adopts it (→ running). A phase
|
|
80
|
+
* still pending at the run's terminal was planned but never reached (left pending, honestly). */
|
|
81
|
+
status: WorkflowItemStatus | "pending";
|
|
82
|
+
/** meta.phases[].detail, when pre-registered. */
|
|
83
|
+
detail?: string;
|
|
84
|
+
/** meta.phases[].model (CC card :448042) — display-only phase model note. */
|
|
85
|
+
model?: string;
|
|
86
|
+
/** For a pre-registered phase this is the ADOPTION time (0 while pending — it hasn't started). */
|
|
87
|
+
startedAt: number;
|
|
88
|
+
endedAt?: number;
|
|
89
|
+
}
|
|
90
|
+
/** design/97 CORE-3: one nested `ctx.workflow` sub-group. The tree is reconstructed from `parentGroupId`
|
|
91
|
+
* (undefined = a child of the root) + the agents/phases that carry this `groupId`. */
|
|
92
|
+
export interface WorkflowGroup {
|
|
93
|
+
groupId: string;
|
|
94
|
+
parentGroupId?: string;
|
|
95
|
+
status: WorkflowItemStatus;
|
|
96
|
+
startedAt: number;
|
|
97
|
+
endedAt?: number;
|
|
98
|
+
}
|
|
99
|
+
export interface WorkflowAgentRun {
|
|
100
|
+
/** Display label (caller-supplied via opts.label, else an auto `agent-N`). */
|
|
101
|
+
label: string;
|
|
102
|
+
/** design/97 CORE-1: the STABLE deterministic identity of this `ctx.agent` call ({@link workflowAgentCallKey}
|
|
103
|
+
* = `ordinal:specIdentityHash`). The resume journal (CORE-7) keys a cached result on it. */
|
|
104
|
+
callKey: string;
|
|
105
|
+
/** design/97 CORE-1: the nesting GROUP this agent ran under — `undefined` = top-level (root); a nested
|
|
106
|
+
* `ctx.workflow` (CORE-3) sets a sub-group id so the observe/UI can render the agent tree. */
|
|
107
|
+
groupId?: string;
|
|
108
|
+
/** The phase this agent ran under, if any (opts.phase, else the enclosing `phase()` title). */
|
|
109
|
+
phase?: string;
|
|
110
|
+
/** design/97 CORE-8 (①): the model display label (`spec.model` id/name) — for a CC-style "Opus 4.8" per-agent row. */
|
|
111
|
+
model?: string;
|
|
112
|
+
/** design/97 CORE-4 (#5 observability): what the worker was ASKED — its objective (+ systemPrompt), redacted
|
|
113
|
+
* + size-bounded. NOT fenced at rest; a consumer feeding it to an LLM must fence (untrustedEgressForHuman). */
|
|
114
|
+
prompt?: string;
|
|
115
|
+
/** design/97 CORE-4 (#5 observability): the worker's final OUTPUT (structuredOutput or result text), redacted
|
|
116
|
+
* + size-bounded. Same fencing caveat as `prompt`. Set on a completed/returned run (absent on a thrown one). */
|
|
117
|
+
output?: string;
|
|
118
|
+
/** design/97 CORE-8 (②): total tool calls the worker made (from `TaskResult.stats.toolCalls`). */
|
|
119
|
+
toolCalls?: number;
|
|
120
|
+
/** design/97 CORE-8 (③): the worker's tool-call ACTIVITY — bounded to the LAST {@link MAX_ACTIVITY} beats (a
|
|
121
|
+
* CC-style "last N of M tool calls"; M is `toolCalls`). Structural only (name/phase/ids), no args/output. */
|
|
122
|
+
activity?: ToolActivity[];
|
|
123
|
+
status: WorkflowItemStatus;
|
|
124
|
+
/** The underlying task's terminal {@link TaskStatus} (a non-`completed` status maps to `failed` above). */
|
|
125
|
+
taskStatus?: TaskStatus;
|
|
126
|
+
/** design/99 MF-W (design-review DoR ⑥): when this agent was ENQUEUED (the `ctx.agent`/`ctx.agentStream` call,
|
|
127
|
+
* before it waited on the concurrency semaphore). Always set. A record with `queuedAt` set but `startedAt`
|
|
128
|
+
* ABSENT is QUEUED (waiting for a slot) — `deriveAgentDisplayStatus` projects that to `"queued"`. */
|
|
129
|
+
queuedAt: number;
|
|
130
|
+
/** When the agent ACTUALLY started running — set AFTER it acquired a concurrency slot (post-queue). ABSENT
|
|
131
|
+
* while queued, or if it was aborted/the-run-finalized before it ever ran. So `durationMs` (`endedAt -
|
|
132
|
+
* startedAt`) excludes the queue wait (the DoR fix: a queued agent no longer reports a wrong running duration). */
|
|
133
|
+
startedAt?: number;
|
|
134
|
+
endedAt?: number;
|
|
135
|
+
/** This agent's OWN (root) usage — nested/delegated usage rolls into the run's {@link WorkflowRunStats.nested}. */
|
|
136
|
+
stats?: {
|
|
137
|
+
tokens: number;
|
|
138
|
+
turns: number;
|
|
139
|
+
costMicroUsd?: number;
|
|
140
|
+
};
|
|
141
|
+
/** design/97 CORE-7: set when this agent's result was REPLAYED from a resume journal (cached, no live runTask)
|
|
142
|
+
* rather than freshly run. Its stats count toward `run.stats` (total work) but not `ctx.budget.spent()`. */
|
|
143
|
+
replayed?: boolean;
|
|
144
|
+
/** F5/B4: total attempts this call made (set only when > 1 — stall/throttle retries happened). The record's
|
|
145
|
+
* `stats` are the FINAL attempt's; burned retry spend rolls into `run.stats`/budget (CC semantics). */
|
|
146
|
+
attempts?: number;
|
|
147
|
+
/** F5/B4: why the LAST retry happened — "stalled" (progress watchdog) or "throttled" (degraded response). */
|
|
148
|
+
lastAttemptReason?: string;
|
|
149
|
+
/** design/114 — the session id of this agent's run (= its `TaskResult.sessionId`). Surfaces the conversation
|
|
150
|
+
* handle to the observation layer so an external initiator can WARM-resume a failed/timed-out agent
|
|
151
|
+
* (`fork(sessionId)→runTask`, or `runTask({sessionId})`) instead of a fresh re-run. An opaque id (not
|
|
152
|
+
* content) → scope-gated via `getWorkflowRun`, no redaction needed. Absent for a stub run that minted none. */
|
|
153
|
+
sessionId?: string;
|
|
154
|
+
}
|
|
155
|
+
/**
|
|
156
|
+
* Cumulative workflow usage. `own` (top-level) and `nested` (each agent's delegated sub-agents) are kept
|
|
157
|
+
* SEPARATE — never folded — mirroring `TaskResult.stats` (R-5): a consumer adds them. Total spend =
|
|
158
|
+
* `tokens + nested.tokens`.
|
|
159
|
+
*/
|
|
160
|
+
export interface WorkflowRunStats {
|
|
161
|
+
tokens: number;
|
|
162
|
+
turns: number;
|
|
163
|
+
costMicroUsd: number;
|
|
164
|
+
nested: {
|
|
165
|
+
tokens: number;
|
|
166
|
+
turns: number;
|
|
167
|
+
tasks: number;
|
|
168
|
+
costMicroUsd: number;
|
|
169
|
+
};
|
|
170
|
+
}
|
|
171
|
+
export interface WorkflowRun {
|
|
172
|
+
id: string;
|
|
173
|
+
scope: string;
|
|
174
|
+
/** design/99 MF-W (workflow monitor header): the workflow's display name + one-line description, from the
|
|
175
|
+
* script's `export const meta = {...}` (the run_workflow tool passes them in). Absent for a direct
|
|
176
|
+
* `runWorkflow` call that supplies no name. */
|
|
177
|
+
name?: string;
|
|
178
|
+
description?: string;
|
|
179
|
+
/** design/114 #3 (service) — the HOST task id that started this workflow (the `RunWorkflow` tool's source
|
|
180
|
+
* task). Lets a crash-recovered consumer rebuilding from `getWorkflowRun` re-associate the run with its
|
|
181
|
+
* initiator: the live notify path carries it, but the recovery path can't otherwise recover it (it rebuilds
|
|
182
|
+
* from the persisted `WorkflowRun`, which until now dropped it). Absent for a direct `runWorkflow` call. */
|
|
183
|
+
sourceTaskId?: string;
|
|
184
|
+
/** service [371]②: the ORIGINATING session id, recorded like {@link sourceTaskId} so crash-recovery
|
|
185
|
+
* rebuilds a completion payload symmetric with the live notify (which carries it since 1.208). */
|
|
186
|
+
originatingSessionId?: string;
|
|
187
|
+
/** design/140 §6 1a — the MERGED effective args the script actually received (call-time args over the
|
|
188
|
+
* registration's defaultArgs), snapshotted at RESOLVE time (parse-time discipline, design/140 §2).
|
|
189
|
+
* OBSERVATION-ONLY (a /workflows viewer / recovery consumer reads what the run got) — never a gate input,
|
|
190
|
+
* never re-read by the engine; a resume's identity is carried by the journal callKeys, not this field.
|
|
191
|
+
* Absent for a direct `runWorkflow` call or an argless invocation. */
|
|
192
|
+
effectiveArgs?: unknown;
|
|
193
|
+
status: WorkflowRunStatus;
|
|
194
|
+
phases: WorkflowPhase[];
|
|
195
|
+
agents: WorkflowAgentRun[];
|
|
196
|
+
/** design/97 CORE-3: nested `ctx.workflow` sub-groups (the persisted group tree). Empty when the script
|
|
197
|
+
* used no nesting. Agents/phases reference a group via their `groupId`. */
|
|
198
|
+
groups: WorkflowGroup[];
|
|
199
|
+
stats: WorkflowRunStats;
|
|
200
|
+
startedAt: number;
|
|
201
|
+
endedAt?: number;
|
|
202
|
+
createdAt: number;
|
|
203
|
+
/** Optimistic-concurrency revision for the store (S1b); unset for a pure in-memory run. */
|
|
204
|
+
rev?: number;
|
|
205
|
+
/** Set when `status === "failed"`: the error the script threw. */
|
|
206
|
+
error?: string;
|
|
207
|
+
/** 黑板 [409](飞轮): the script's RETURN VALUE, bounded + redacted at completion time (same egress
|
|
208
|
+
* discipline as the notifier `result`), so a terminal `TaskOutput` poll can hand the
|
|
209
|
+
* model the result instead of sending it in poll circles. Absent on failed runs and runs recorded by
|
|
210
|
+
* pre-[409] engine versions. */
|
|
211
|
+
result?: string;
|
|
212
|
+
/** 黑板 [413] (NH-1): the FULL return value (redacted, capped at {@link WORKFLOW_RESULT_FULL_MAX}), set ONLY
|
|
213
|
+
* when `result` above was truncated by its display bound. Terminal poll replies inline this instead of the
|
|
214
|
+
* truncated `result`, so the generic large-tool-result offload (design/30) persists it under a REAL
|
|
215
|
+
* `read_tool_result` ref — previously the `…[+N chars]` tail dead-ended (no retrieval path; models tried
|
|
216
|
+
* the runId as a ref and hit the store-miss message). Display/notify surfaces keep using `result`. */
|
|
217
|
+
resultFull?: string;
|
|
218
|
+
}
|
|
219
|
+
export type WorkflowEvent = {
|
|
220
|
+
type: "run_start";
|
|
221
|
+
runId: string;
|
|
222
|
+
scope: string;
|
|
223
|
+
ts: number;
|
|
224
|
+
} | {
|
|
225
|
+
type: "phase_start";
|
|
226
|
+
runId: string;
|
|
227
|
+
title: string;
|
|
228
|
+
ts: number;
|
|
229
|
+
} | {
|
|
230
|
+
type: "phase_end";
|
|
231
|
+
runId: string;
|
|
232
|
+
title: string;
|
|
233
|
+
status: WorkflowItemStatus;
|
|
234
|
+
ts: number;
|
|
235
|
+
} | {
|
|
236
|
+
type: "agent_start";
|
|
237
|
+
runId: string;
|
|
238
|
+
label: string;
|
|
239
|
+
phase?: string;
|
|
240
|
+
groupId?: string;
|
|
241
|
+
callKey?: string;
|
|
242
|
+
prompt?: string;
|
|
243
|
+
model?: string;
|
|
244
|
+
queuedAt?: number;
|
|
245
|
+
replayed?: boolean;
|
|
246
|
+
ts: number;
|
|
247
|
+
} | {
|
|
248
|
+
type: "agent_end";
|
|
249
|
+
runId: string;
|
|
250
|
+
label: string;
|
|
251
|
+
phase?: string;
|
|
252
|
+
groupId?: string;
|
|
253
|
+
status: WorkflowItemStatus;
|
|
254
|
+
output?: string;
|
|
255
|
+
toolCalls?: number;
|
|
256
|
+
replayed?: boolean;
|
|
257
|
+
ts: number;
|
|
258
|
+
} | {
|
|
259
|
+
type: "agent_activity";
|
|
260
|
+
runId: string;
|
|
261
|
+
callKey: string;
|
|
262
|
+
label: string;
|
|
263
|
+
groupId?: string;
|
|
264
|
+
phase: "start" | "end";
|
|
265
|
+
toolCallId: string;
|
|
266
|
+
toolName: string;
|
|
267
|
+
arg?: string;
|
|
268
|
+
isError?: boolean;
|
|
269
|
+
ts: number;
|
|
270
|
+
} | {
|
|
271
|
+
type: "subgroup_start";
|
|
272
|
+
runId: string;
|
|
273
|
+
groupId: string;
|
|
274
|
+
parentGroupId?: string;
|
|
275
|
+
ts: number;
|
|
276
|
+
} | {
|
|
277
|
+
type: "subgroup_end";
|
|
278
|
+
runId: string;
|
|
279
|
+
groupId: string;
|
|
280
|
+
status: WorkflowItemStatus;
|
|
281
|
+
ts: number;
|
|
282
|
+
} | {
|
|
283
|
+
type: "log";
|
|
284
|
+
runId: string;
|
|
285
|
+
message: string;
|
|
286
|
+
ts: number;
|
|
287
|
+
} | {
|
|
288
|
+
type: "run_end";
|
|
289
|
+
runId: string;
|
|
290
|
+
status: WorkflowRunStatus;
|
|
291
|
+
ts: number;
|
|
292
|
+
};
|
|
293
|
+
/** Thrown by `ctx.agent` once the workflow's cumulative token spend reaches the budget (design/96 G#4: a
|
|
294
|
+
* hard ceiling, typed error in v1; durable suspend is left to a future slice). */
|
|
295
|
+
export declare class WorkflowBudgetExceededError extends Error {
|
|
296
|
+
readonly spent: number;
|
|
297
|
+
readonly total: number;
|
|
298
|
+
readonly code = "workflow.budget_exceeded";
|
|
299
|
+
constructor(spent: number, total: number);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* Thrown by `runWorkflow`/`startWorkflow` when a workflow is started INSIDE another workflow — nesting is
|
|
303
|
+
* capped at ONE level (design/97 §H.1, the S8 prerequisite). A workflow's agent (a `runner.runTask` child)
|
|
304
|
+
* cannot itself start a workflow: the LLM-facing `run_workflow` tool hits this guard, and so does a
|
|
305
|
+
* trusted-dev nested `runWorkflow(...)` call. The depth is read from the TRUSTED
|
|
306
|
+
* {@link WorkflowInternals.workflowDepth} first (the cross-process channel — a worker/script cannot forge it,
|
|
307
|
+
* it is not a `TaskSpec` field) then the in-process {@link workflowDepthStore} (AsyncLocalStorage), so neither
|
|
308
|
+
* a spec field nor a tool param can defeat it (design/98 §0.1 BLOCKER3).
|
|
309
|
+
*/
|
|
310
|
+
export declare class WorkflowNestingError extends Error {
|
|
311
|
+
readonly code = "workflow.nesting";
|
|
312
|
+
constructor();
|
|
313
|
+
}
|
|
314
|
+
/**
|
|
315
|
+
* Thrown by `ctx.agent(spec, { schema })` (design/98 §0.2, strict mode) when the sub-agent **completed but
|
|
316
|
+
* produced no `structuredOutput`** — i.e. the model answered in PROSE, which core's `outputSchema` path
|
|
317
|
+
* permits by default (types.ts: "may still answer in prose"). A workflow script that asked for a structured
|
|
318
|
+
* result must not silently receive `undefined`; it fails loud here instead. A task that ended NON-`completed`
|
|
319
|
+
* (failed / blocked / timeout) is returned as-is (the script checks `result.status`) and never turned into
|
|
320
|
+
* this error — that path already carries its own signal.
|
|
321
|
+
*/
|
|
322
|
+
export declare class WorkflowAgentSchemaError extends Error {
|
|
323
|
+
readonly label: string;
|
|
324
|
+
readonly code = "workflow.agent_schema";
|
|
325
|
+
constructor(label: string);
|
|
326
|
+
}
|
|
327
|
+
/** design/98 §D.6 hard cap: thrown by `ctx.agent` once the workflow has spawned `max` agents (a runaway
|
|
328
|
+
* LLM-authored script is bounded, not trusted — budget alone is checked only pre-spawn, so a concurrent
|
|
329
|
+
* fan-out can overshoot it; this counts cumulative spawns). */
|
|
330
|
+
export declare class WorkflowMaxAgentsError extends Error {
|
|
331
|
+
readonly max: number;
|
|
332
|
+
readonly code = "workflow.max_agents";
|
|
333
|
+
constructor(max: number);
|
|
334
|
+
}
|
|
335
|
+
/** design/98 §D.6 hard cap: thrown when the script's returned result exceeds `maxResultChars` (a runaway
|
|
336
|
+
* script must not return an unbounded payload to the originator). */
|
|
337
|
+
export declare class WorkflowResultTooLargeError extends Error {
|
|
338
|
+
readonly size: number;
|
|
339
|
+
readonly max: number;
|
|
340
|
+
readonly code = "workflow.result_too_large";
|
|
341
|
+
constructor(size: number, max: number);
|
|
342
|
+
}
|
|
343
|
+
/**
|
|
344
|
+
* A TRUSTED, run-scoped internal channel carrying the workflow **nesting depth** across a process boundary
|
|
345
|
+
* (design/98 §0.1 BLOCKER3). It is NOT a `TaskSpec` field and NOT a `run_workflow` tool param — a worker or
|
|
346
|
+
* an LLM-authored script can never set it. When a deployment (e.g. the service) initiates a workflow on
|
|
347
|
+
* behalf of a parent run that is itself inside a workflow, it passes `workflowDepth = parentDepth + 1` here
|
|
348
|
+
* so the entry guard fires cross-process. In-process nesting needs no internals — the
|
|
349
|
+
* {@link workflowDepthStore} AsyncLocalStorage propagates depth into every `runner.runTask` child
|
|
350
|
+
* automatically. `startWorkflow` takes depth = `internals?.workflowDepth ?? ALS.depth ?? 0`.
|
|
351
|
+
*/
|
|
352
|
+
export interface WorkflowInternals {
|
|
353
|
+
workflowDepth?: number;
|
|
354
|
+
}
|
|
355
|
+
export interface WorkflowBudget {
|
|
356
|
+
/** The token ceiling, or null when none was set (then `remaining()` is Infinity). */
|
|
357
|
+
readonly total: number | null;
|
|
358
|
+
/** Cumulative tokens spent so far (own + nested across all agents). */
|
|
359
|
+
spent(): number;
|
|
360
|
+
/** `max(0, total - spent())`, or Infinity when no budget was set. */
|
|
361
|
+
remaining(): number;
|
|
362
|
+
}
|
|
363
|
+
export interface WorkflowAgentOptions {
|
|
364
|
+
/** Display label for this agent-run (else `agent-N`). */
|
|
365
|
+
label?: string;
|
|
366
|
+
/**
|
|
367
|
+
* F4 (CC 198 parity, 锚 pretty.js:446608-446627; DEFER 解除 2026-07-11 — 前提「无 agent 注册表」被
|
|
368
|
+
* 1.262.0 agents F1 推翻): run this agent AS a named agent type from the deployment's registry
|
|
369
|
+
* (built-in Explore/Plan + `RunWorkflowOptions.agents`, deployment SHADOW wins on a name collision —
|
|
370
|
+
* the same registry the Agent tool's `subagent_type` resolves). The definition supplies persona
|
|
371
|
+
* (composed with the workflow return-contract NOTE — CC `O0m` append semantics), model (tier words OK,
|
|
372
|
+
* the catalog is tier-expanded), thinking, maxTurns, skills, memory and the allow/deny tool policy.
|
|
373
|
+
* An unknown name throws a teaching error listing the known types. Slot-tools carrier (design/140
|
|
374
|
+
* ②-3): a collab member slot's tool surface = its agent type's allow/denyTools — no new mechanism.
|
|
375
|
+
*/
|
|
376
|
+
agentType?: string;
|
|
377
|
+
/** Explicitly group this agent under a phase title (use this inside `parallel`/`pipeline` where the
|
|
378
|
+
* global enclosing-phase state races — design/97 §D race note). */
|
|
379
|
+
phase?: string;
|
|
380
|
+
/** Per-agent cancellation; falls back to the workflow signal. */
|
|
381
|
+
signal?: AbortSignal;
|
|
382
|
+
/**
|
|
383
|
+
* Force a STRUCTURED result for this sub-agent (design/98 §0.2). Sets the child task's `outputSchema` to
|
|
384
|
+
* this typebox schema; the validated object is surfaced as `TaskResult.structuredOutput`. **Strict**: if
|
|
385
|
+
* the child COMPLETES without a `structuredOutput` (the model answered in prose — core permits that),
|
|
386
|
+
* `ctx.agent` throws {@link WorkflowAgentSchemaError} rather than silently returning `undefined`. A child
|
|
387
|
+
* that ends non-`completed` is returned as-is (the script checks `status`). If the script's `spec` already
|
|
388
|
+
* carried an `outputSchema`, this option wins.
|
|
389
|
+
*/
|
|
390
|
+
schema?: TSchema;
|
|
391
|
+
/**
|
|
392
|
+
* design/97 CORE-6: run this agent in an ISOLATED git WORKTREE so parallel agents editing the same repo
|
|
393
|
+
* don't conflict. A SCRIPT-FACING OPTION (NOT a TaskSpec field — an untrusted spec can't self-select an env,
|
|
394
|
+
* design/44 §7 Q4): threaded via the TRUSTED RunInternals.isolation to the control-plane executionEnvFactory,
|
|
395
|
+
* which mints a worktree-rooted env (e.g. {@link addWorktree}). The worktree is INSIDE the one configured env
|
|
396
|
+
* (local OR a single E2B) — not a per-agent container. ISOLATE-ONLY: the runtime never merges; the
|
|
397
|
+
* orchestrator script reads each worktree's result and decides verify/merge in userland. Requires a
|
|
398
|
+
* worktree-capable `executionEnvFactory`; durable-suspend is incompatible (the factory env is non-remote).
|
|
399
|
+
*/
|
|
400
|
+
isolation?: "worktree";
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* design/97 CORE-5 (#6 steer) — the handle returned by {@link WorkflowRunContext.agentStream}: a STILL-RUNNING
|
|
404
|
+
* agent the launcher can STEER mid-flight and then await. The recording (callKey/groupId/prompt + stats/output +
|
|
405
|
+
* `agent_end`) and the concurrency slot are tied to the underlying stream settling (an eager completion), NOT to
|
|
406
|
+
* `result()` being called — so a script that defers `result()` still records and releases. ⚠️ EXCEPTION (audit
|
|
407
|
+
* MAJOR): if the script returns and the run FINALIZES before the stream settles, the eager completion hits the
|
|
408
|
+
* finalized-guard and skips the trailing record — so a fire-and-forget stream the body never awaits may be left
|
|
409
|
+
* as `running`. A leader that wants the outcome (the normal case) awaits `result()`, which is fully recorded.
|
|
410
|
+
*/
|
|
411
|
+
export interface WorkflowAgentHandle {
|
|
412
|
+
/** The enclosing workflow run id (NOT a per-agent id — agentStream does not mint a sub-run). */
|
|
413
|
+
runId: string;
|
|
414
|
+
/** This agent's display label. */
|
|
415
|
+
label: string;
|
|
416
|
+
/** This agent's deterministic {@link workflowAgentCallKey}. */
|
|
417
|
+
callKey: string;
|
|
418
|
+
/**
|
|
419
|
+
* Inject an operator/leader STEER into the running worker (design/47 `TaskStream.steer`). The content is
|
|
420
|
+
* FENCED (untrusted data — it can't pose as authority) inside a TRUSTED framing that asks the worker to TAG
|
|
421
|
+
* its reply with the returned marker. Returns that MARKER so the launcher can correlate the worker's tagged
|
|
422
|
+
* reply via the #5 transcript (the worker self-stamps; reply is best-effort). One-directional + leader-driven
|
|
423
|
+
* (the worker can't address the leader except by the marker). Rejects with `steering.not_running` if the task
|
|
424
|
+
* hasn't started or already finished.
|
|
425
|
+
*/
|
|
426
|
+
steer(content: string): Promise<string>;
|
|
427
|
+
/** Await the agent's {@link TaskResult} (the same value the eager recording used; idempotent). */
|
|
428
|
+
result(): Promise<TaskResult>;
|
|
429
|
+
}
|
|
430
|
+
export interface WorkflowRunContext {
|
|
431
|
+
readonly runId: string;
|
|
432
|
+
readonly budget: WorkflowBudget;
|
|
433
|
+
/** The composed workflow abort signal (caller signal + `cancel()` + `totalTimeoutMs` deadline). A script
|
|
434
|
+
* runner (the hard sandbox) should thread THIS into its execution so a cancel/timeout actually aborts the
|
|
435
|
+
* script body — not just the agents it spawns (workflow review, caps). */
|
|
436
|
+
readonly signal: AbortSignal;
|
|
437
|
+
/** Run one `runner.runTask(spec)` as a recorded agent-run (script-driven, NOT an LLM delegation). Returns
|
|
438
|
+
* the TaskResult (any terminal status — it does not throw on a task-level failure). Throws on workflow
|
|
439
|
+
* abort or budget exhaustion before spawning.
|
|
440
|
+
*
|
|
441
|
+
* F5 terminal semantics vs the CC anchor (206-pretty.js:17488900-17489600), verified 2026-07-12:
|
|
442
|
+
* - stall-retry EXHAUSTION **throws** `agent stalled on all N attempts…` — CC throws here too (null is
|
|
443
|
+
* NOT the stall terminal in CC).
|
|
444
|
+
* - CC's `agent() → null` legs are user-skip and a terminal API error (post inner query-layer retries).
|
|
445
|
+
* This seam has no user-skip, and a terminal API death surfaces as a **`status:"failed"` TaskResult**
|
|
446
|
+
* (the script checks `status`) — the seam adaptation of CC's null; recorded divergence, not a gap.
|
|
447
|
+
* - inside `parallel`/`pipeline` a THROWN leg folds to `null` (F11/B8), so the CC-taught
|
|
448
|
+
* `.filter(Boolean)` idiom still holds at the fan-out level. */
|
|
449
|
+
agent(spec: TaskSpec, opts?: WorkflowAgentOptions): Promise<TaskResult>;
|
|
450
|
+
/** design/97 CORE-5 (#6): spawn a STEERABLE agent — same recording/caps/budget as {@link agent}, but returns a
|
|
451
|
+
* {@link WorkflowAgentHandle} the launcher can `steer()` mid-flight and then `await result()`. Resolves once
|
|
452
|
+
* a concurrency slot is acquired and the underlying stream has started (so `steer` won't hit a not-running
|
|
453
|
+
* task). Use for long-running workers a leader wants to redirect; use `agent` for fire-and-await. */
|
|
454
|
+
agentStream(spec: TaskSpec, opts?: WorkflowAgentOptions): Promise<WorkflowAgentHandle>;
|
|
455
|
+
/** Run thunks concurrently (capped by the workflow concurrency limit via `agent`). A thunk that throws
|
|
456
|
+
* resolves to `null` — filter before use. BARRIER: awaits all. */
|
|
457
|
+
parallel<T>(thunks: Array<() => Promise<T>>): Promise<Array<T | null>>;
|
|
458
|
+
/** Run each item through all stages independently, NO barrier between stages. Each stage receives
|
|
459
|
+
* `(prevResult, originalItem, index)`. A stage that throws drops that item to `null`. */
|
|
460
|
+
pipeline<I>(items: I[], ...stages: Array<(prev: any, item: I, index: number) => Promise<any>>): Promise<any[]>;
|
|
461
|
+
/** Group work under a named phase (observability). TWO forms (黑板 [406] CC-心智兼容):
|
|
462
|
+
* - scoped `phase(title, body)` — `body`'s agents default to this phase; closes when body settles.
|
|
463
|
+
* - bare `phase(title)` (CC marker style) — subsequent agents group under `title` until the NEXT
|
|
464
|
+
* `phase()` call, the end of the enclosing scoped `phase()` body (T2A-10: a marker never leaks its
|
|
465
|
+
* lexical scope), or the run's end — whichever comes first. Original contract line follows:
|
|
466
|
+
* `phase()` call (which closes it) or the run's end. Returns `undefined`. */
|
|
467
|
+
phase<T>(title: string, body?: () => Promise<T>): Promise<T | undefined>;
|
|
468
|
+
/**
|
|
469
|
+
* design/97 CORE-3: run `body` as a nested SUB-WORKFLOW — IN-PROCESS over the SAME ctx (shares budget / caps
|
|
470
|
+
* / abort / the cumulative agent counter / the run object), under a fresh sub-`groupId` so the observe tree
|
|
471
|
+
* can render it. It does NOT mint a new runId (it is NOT `startWorkflow`, so it never trips the run_workflow
|
|
472
|
+
* nesting guard). Agents/phases spawned inside carry the sub-group's id. Group nesting is depth-capped.
|
|
473
|
+
*/
|
|
474
|
+
workflow<T>(body: (ctx: WorkflowRunContext) => Promise<T>): Promise<T>;
|
|
475
|
+
/** Emit a narrator log line (observability only — not stored on the run). */
|
|
476
|
+
log(message: string): void;
|
|
477
|
+
}
|
|
478
|
+
export interface RunWorkflowOptions {
|
|
479
|
+
/** Trusted caller-supplied run id. Used by the unified task registry so tool-launched workflows expose
|
|
480
|
+
* `task_id === runId` (`w*`) without making the model choose an id. Omit for the legacy UUID mint path. */
|
|
481
|
+
runId?: string;
|
|
482
|
+
/** design/97 S1b/S1c — persist the {@link WorkflowRun} to a {@link WorkflowRunStore} for `/workflows`
|
|
483
|
+
* history + cross-replica visibility. **Opt-in (default none)**: with no store the workflow still runs
|
|
484
|
+
* + emits + is subscribable in-process (S1a behavior, unchanged). Persistence is **best-effort**: a store
|
|
485
|
+
* throw is swallowed and NEVER breaks the workflow (the run/script is the source of truth; the store is an
|
|
486
|
+
* observation layer). The owner is the sole writer (rev CAS). */
|
|
487
|
+
store?: WorkflowRunStore;
|
|
488
|
+
/** Tenant/grouping key for the run (default `"default"`). */
|
|
489
|
+
scope?: string;
|
|
490
|
+
/** design/99 MF-W: the workflow's display name + description (the run_workflow tool passes the script's
|
|
491
|
+
* `meta.name`/`meta.description`) — recorded on the {@link WorkflowRun} for the /workflows monitor header. */
|
|
492
|
+
name?: string;
|
|
493
|
+
description?: string;
|
|
494
|
+
/** design/114 #3 — the host task id that started this workflow → recorded on the {@link WorkflowRun} so a
|
|
495
|
+
* crash-recovered consumer can re-associate the run with its initiator (the run_workflow tool passes it). */
|
|
496
|
+
sourceTaskId?: string;
|
|
497
|
+
/** service [371]②: the originating session id — recorded on the {@link WorkflowRun}(same rationale as
|
|
498
|
+
* sourceTaskId: live notify carries it, recovery otherwise can't). */
|
|
499
|
+
originatingSessionId?: string;
|
|
500
|
+
/** design/140 §6 1a — the merged effective args snapshot recorded on the {@link WorkflowRun} (the
|
|
501
|
+
* run_workflow tool passes the value it resolved at parse time; a JSON value, observation-only). */
|
|
502
|
+
effectiveArgs?: unknown;
|
|
503
|
+
/** Cancels the whole workflow: propagated to each agent's runTask; new agents short-circuit once aborted. */
|
|
504
|
+
signal?: AbortSignal;
|
|
505
|
+
/**
|
|
506
|
+
* F4 agentType registry (2026-07-11): deployment agent definitions resolvable by `agent(…, {agentType})`.
|
|
507
|
+
* Same SHADOW rule as the Agent tool: a deployment definition whose name collides with a built-in
|
|
508
|
+
* (Explore/Plan) wins. The run_workflow tool threads the deployment's `agents` here.
|
|
509
|
+
*/
|
|
510
|
+
agents?: AgentDefinition[];
|
|
511
|
+
/** `false` removes the built-in Explore/Plan from the agentType registry (mirror of the Agent tool's
|
|
512
|
+
* `builtinAgents:false`, CC `CLAUDE_AGENT_SDK_DISABLE_BUILTIN_AGENTS` analog). Default true. */
|
|
513
|
+
builtinAgents?: boolean;
|
|
514
|
+
/** Token ceiling — `ctx.agent` throws {@link WorkflowBudgetExceededError} once spend reaches it. */
|
|
515
|
+
budget?: number;
|
|
516
|
+
/** Max concurrent agents (default `min(16, cpus-2)`, floor 1). */
|
|
517
|
+
concurrency?: number;
|
|
518
|
+
/** design/98 §D.6 hard cap — max CUMULATIVE agents the workflow may spawn (LLM-authored bound). `ctx.agent`
|
|
519
|
+
* throws {@link WorkflowMaxAgentsError} once reached. Undefined ⇒ only `budget`/`concurrency` bound it. */
|
|
520
|
+
maxAgents?: number;
|
|
521
|
+
/** design/98 §D.6 hard cap — whole-workflow wall-clock deadline (ms). An internal AbortController cancels
|
|
522
|
+
* the run at the deadline (agents short-circuit as aborted; the run finalizes `failed`). */
|
|
523
|
+
totalTimeoutMs?: number;
|
|
524
|
+
/** design/98 §D.6 hard cap — cap on a single `log()` message length (chars); longer messages are truncated
|
|
525
|
+
* with an honest marker (a runaway script must not flood the log). */
|
|
526
|
+
maxLogChars?: number;
|
|
527
|
+
/** design/98 §D.6 hard cap — cap on the script's RETURNED result size (chars, JSON-serialized). Exceeding
|
|
528
|
+
* finalizes the run `failed` with {@link WorkflowResultTooLargeError}. */
|
|
529
|
+
maxResultChars?: number;
|
|
530
|
+
/** Progress sink (run/phase/agent/log/run_end events). */
|
|
531
|
+
onEvent?: (e: WorkflowEvent) => void;
|
|
532
|
+
/** Injected clock (design/87 §4.3 — testable without the wall clock). Default `Date.now`. */
|
|
533
|
+
now?: () => number;
|
|
534
|
+
/**
|
|
535
|
+
* design/97 CORE-7 — the LOAD-BEARING resume journal. With a `journalStore`, every `ctx.agent` result (NOT
|
|
536
|
+
* `ctx.agentStream` — see below) is recorded keyed by its deterministic callKey. Supplying `resumeFromRunId`
|
|
537
|
+
* (a PRIOR run id, requires `journalStore`) replays the longest UNCHANGED PREFIX of those results instantly and
|
|
538
|
+
* runs only the first changed/new call + everything after it live (same script + args → 100% cache hit). A
|
|
539
|
+
* `journalStore` WITHOUT `resumeFromRunId` just records (so a future run can resume from THIS run). Replayed
|
|
540
|
+
* agents accumulate into `run.stats` (total work) but NOT into `ctx.budget.spent()` (live spend only — a resume
|
|
541
|
+
* is not re-charged for cached work). NOT-REPLAYED (they force divergence so the suffix runs live): `ctx.agentStream`
|
|
542
|
+
* (a finished result can't be steered) and `ctx.pipeline` (latency-dependent ordinals aren't deterministic —
|
|
543
|
+
* a CORE-7.1 follow-on adds stage-scoped deterministic keys). Sequential + `parallel(direct thunks)` replay.
|
|
544
|
+
*/
|
|
545
|
+
journalStore?: WorkflowJournalStore;
|
|
546
|
+
/** design/97 CORE-7 — resume by replaying a prior run's journal (requires `journalStore`). See `journalStore`. */
|
|
547
|
+
resumeFromRunId?: string;
|
|
548
|
+
/** The HOST task's effective working root — threaded into every spawned agent's trusted internals
|
|
549
|
+
* (`RunInternals.parentCwd`) so a TOC env factory roots children at the parent's cwd (CC parity;
|
|
550
|
+
* `isolation: "worktree"` on an individual agent wins over it). */
|
|
551
|
+
parentCwd?: string;
|
|
552
|
+
/** F7/B7 (CC pretty.js:446478): PRE-REGISTER the script's `meta.phases` as pending progress groups at run
|
|
553
|
+
* start — the plan is visible before execution; `phase(title)` adopts the matching pending entry. */
|
|
554
|
+
phases?: ReadonlyArray<{
|
|
555
|
+
title: string;
|
|
556
|
+
detail?: string;
|
|
557
|
+
model?: string;
|
|
558
|
+
}>;
|
|
559
|
+
/** F5/B4: override the per-agent stall watchdog (ms). Default {@link WORKFLOW_AGENT_STALL_MS}. A deployment
|
|
560
|
+
* may tune it; tests set it small to exercise the retry path without waiting 180s. */
|
|
561
|
+
stallMs?: number;
|
|
562
|
+
/** F5/B4: override the max stalled-attempt retries. Default {@link WORKFLOW_AGENT_MAX_RETRIES}. */
|
|
563
|
+
agentMaxRetries?: number;
|
|
564
|
+
/** F5/B4: override the throttle-degradation backoff (ms). Default {@link WORKFLOW_AGENT_THROTTLE_BACKOFF_MS}. */
|
|
565
|
+
throttleBackoffMs?: number;
|
|
566
|
+
/** F5/B4 (design/87 §4.3): injectable timers for the resilience layer (stall watchdog + throttle backoff
|
|
567
|
+
* sleep) — tests advance a virtual clock instead of really waiting {@link WORKFLOW_AGENT_STALL_MS}.
|
|
568
|
+
* Default: real unref'd `setTimeout`/`clearTimeout`. Pair with `now` for a fully virtual clock. */
|
|
569
|
+
timers?: WorkflowTimers;
|
|
570
|
+
}
|
|
571
|
+
export interface RunWorkflowResult<T> {
|
|
572
|
+
result: T;
|
|
573
|
+
runId: string;
|
|
574
|
+
run: WorkflowRun;
|
|
575
|
+
}
|
|
576
|
+
/**
|
|
577
|
+
* design/98 §D.4 (S8c) — the handle {@link startWorkflow} returns: the `runId` is available SYNCHRONOUSLY
|
|
578
|
+
* (the run row + live subscription exist before the body runs, so a caller can subscribe + return the id to an
|
|
579
|
+
* LLM immediately), `done` resolves/rejects exactly like {@link runWorkflow}, and `cancel` aborts the whole
|
|
580
|
+
* run (every agent's signal fires; new agents short-circuit).
|
|
581
|
+
*/
|
|
582
|
+
export interface WorkflowHandle<T> {
|
|
583
|
+
readonly runId: string;
|
|
584
|
+
readonly done: Promise<RunWorkflowResult<T>>;
|
|
585
|
+
cancel(reason?: string): void;
|
|
586
|
+
}
|
|
587
|
+
/** Cap on items a single `parallel`/`pipeline` call accepts (matches the CC Workflow tool). */
|
|
588
|
+
export declare const MAX_WORKFLOW_ITEMS = 4096;
|
|
589
|
+
/** CC `MTy` (206-pretty.js:17501680; 198 `F0m`): no tool activity for this long marks the attempt STALLED
|
|
590
|
+
* (progress-based, unlike the governance perAgentTimeoutSec hard cap, which still bounds each attempt).
|
|
591
|
+
* `<= 0` DISABLES the watchdog (CC arms only `if (ae > 0)`, :17477830). */
|
|
592
|
+
export declare const WORKFLOW_AGENT_STALL_MS = 180000;
|
|
593
|
+
/** CC `j_d` (206-pretty.js:17501680; 198 `Mxl`): max stalled-attempt retries per `ctx.agent` call
|
|
594
|
+
* (initial + 5 = 6 attempts). */
|
|
595
|
+
export declare const WORKFLOW_AGENT_MAX_RETRIES = 5;
|
|
596
|
+
/** CC throttle backoff (206-pretty.js:17488618): ONE fixed 45s sleep-then-retry for a throttle-shaped
|
|
597
|
+
* degraded response (a flat sleep, NOT exponential backoff — and only on the FIRST attempt's result). */
|
|
598
|
+
export declare const WORKFLOW_AGENT_THROTTLE_BACKOFF_MS = 45000;
|
|
599
|
+
/** F5/B4 + design/87 §4.3 — the INJECTABLE timer seam the per-agent resilience layer schedules on (the
|
|
600
|
+
* stall watchdog + the throttle backoff sleep). Tests drive VIRTUAL time instead of really waiting
|
|
601
|
+
* 180s/45s. Default: the real `setTimeout`/`clearTimeout`, unref'd (a pending watchdog must never hold
|
|
602
|
+
* the process open). */
|
|
603
|
+
export interface WorkflowTimers {
|
|
604
|
+
setTimeout(fn: () => void, ms: number): unknown;
|
|
605
|
+
clearTimeout(handle: unknown): void;
|
|
606
|
+
}
|
|
607
|
+
/**
|
|
608
|
+
* Start a workflow script and return its {@link WorkflowHandle} SYNCHRONOUSLY (design/98 §D.4): the `runId`,
|
|
609
|
+
* run row, and live subscription exist before the body runs — so a caller (e.g. the `run_workflow` tool) can
|
|
610
|
+
* subscribe + hand the id to an LLM immediately, then await `done`. Establishes a {@link WorkflowRunContext},
|
|
611
|
+
* runs `fn(ctx)` asynchronously, and resolves `done` with the script's value + the assembled
|
|
612
|
+
* {@link WorkflowRun} (status `completed`). If `fn` throws, the run finalizes `failed` (events emitted) and
|
|
613
|
+
* `done` rejects. `cancel(reason)` aborts the whole run. A nesting/validation violation throws SYNCHRONOUSLY
|
|
614
|
+
* from this call (before any handle exists). Thin composition over `runner.runTask` — no Runner changes.
|
|
615
|
+
*/
|
|
616
|
+
export declare function startWorkflow<T>(runner: Runner, fn: (ctx: WorkflowRunContext) => Promise<T>, opts?: RunWorkflowOptions, internals?: WorkflowInternals): WorkflowHandle<T>;
|
|
617
|
+
/**
|
|
618
|
+
* Run a workflow to completion (design/97 S1a) — the thin await over {@link startWorkflow}: returns the
|
|
619
|
+
* script's value + the assembled {@link WorkflowRun}. A synchronous nesting/validation throw from
|
|
620
|
+
* `startWorkflow` becomes a rejected promise here (this function is `async`), preserving the original
|
|
621
|
+
* `runWorkflow` contract (`await runWorkflow(...)` rejects rather than throwing synchronously).
|
|
622
|
+
*/
|
|
623
|
+
export declare function runWorkflow<T>(runner: Runner, fn: (ctx: WorkflowRunContext) => Promise<T>, opts?: RunWorkflowOptions, internals?: WorkflowInternals): Promise<RunWorkflowResult<T>>;
|
|
624
|
+
//# sourceMappingURL=workflow.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workflow.d.ts","sourceRoot":"","sources":["../../src/orchestration/workflow.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,2BAA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