@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,583 @@
|
|
|
1
|
+
import { AgentHarness, type ThinkingLevel } from "../../internal/harness.js";
|
|
2
|
+
import type { Model } from "../../internal/llm.js";
|
|
3
|
+
import { type MaterializedMcp } from "../mcp.js";
|
|
4
|
+
import { MemoryEngine } from "../memory-engine/engine.js";
|
|
5
|
+
import type { HarvestReport, MemorySessionHandle } from "../memory-engine/types.js";
|
|
6
|
+
import { Session } from "../session.js";
|
|
7
|
+
import type { SessionStore } from "../session.js";
|
|
8
|
+
import { SubagentRetainLedger } from "../../agents/subagent.js";
|
|
9
|
+
import type { ToolPolicy } from "../tool-policy.js";
|
|
10
|
+
import { type ActiveSkillFrame } from "./active-skill-scope.js";
|
|
11
|
+
import { CacheBreakDetector, type ToolFingerprintInput } from "../cache-break-detector.js";
|
|
12
|
+
import { type OutputRef, type BlockedRef } from "./synthetic-tools.js";
|
|
13
|
+
import { type ConsolidationNote } from "./memory-consolidation.js";
|
|
14
|
+
import type { TaskNotificationPayload } from "../task-notification.js";
|
|
15
|
+
import { type CwdRef } from "../../tools/fs/index.js";
|
|
16
|
+
import type { Runner } from "./runtask.js";
|
|
17
|
+
import { type CheckpointGate, type CheckpointState, type CheckpointToken, type ResourceLedger, type ResourceLimitReason } from "../checkpoint-store.js";
|
|
18
|
+
import type { AgentTool, ExecutionEnv } from "../../internal/harness.js";
|
|
19
|
+
import type { ModelRole, RunnerDeps, TaskEvent, TaskSpec, ToolActivity, ToolEffect } from "../types.js";
|
|
20
|
+
import type { RepairBundle } from "../../agents/repair-loop.js";
|
|
21
|
+
/** Resolved memory-consolidation state for a task (design/41), present only when consolidation is active. */
|
|
22
|
+
export interface PreparedConsolidation {
|
|
23
|
+
/** Memory scope to reconcile — the resolved `writeScope` (design/84 Seam A: the single layer ALL writes
|
|
24
|
+
* route to), never untrusted input. Consolidation only runs when `writeScope !== null` (council F7/Q2). */
|
|
25
|
+
scope: string;
|
|
26
|
+
/** This task's saved notes, collected by the `remember` tool during the run. */
|
|
27
|
+
notes: ConsolidationNote[];
|
|
28
|
+
/** Resolved settings (defaults applied) the Runner uses for the task-end pass. */
|
|
29
|
+
settings: {
|
|
30
|
+
role: ModelRole;
|
|
31
|
+
band: {
|
|
32
|
+
lo: number;
|
|
33
|
+
hi: number;
|
|
34
|
+
};
|
|
35
|
+
searchLimit: number;
|
|
36
|
+
maxNotes: number;
|
|
37
|
+
timeoutSec: number;
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
/** design/77 §4.4: the multi-tenant scope used when a durable suspend fires for an IRREVERSIBLE tool in an
|
|
41
|
+
* unattended deployment that did NOT opt into `durableApproval` (so there is no caller-supplied scope). The
|
|
42
|
+
* checkpoint carries this scope; resume reads it back from the checkpoint (`cp.scope`), so it is
|
|
43
|
+
* self-consistent without needing the original `TaskSpec`. Kept distinct from any tenant key to make an
|
|
44
|
+
* unattended irreversible suspend auditable as such. */
|
|
45
|
+
export declare const DEFAULT_IRREVERSIBLE_SCOPE = "irreversible";
|
|
46
|
+
/** Everything the run loop needs, built once by {@link prepareTask} (task setup, isolated from the loop). */
|
|
47
|
+
export interface Prepared {
|
|
48
|
+
harness: AgentHarness;
|
|
49
|
+
session: Session;
|
|
50
|
+
sessionId: string;
|
|
51
|
+
/** The ISOLATION-AWARE working-tree root for this task (a worktree's cwd when `isolation: "worktree"`, else
|
|
52
|
+
* `deps.rootPath ?? executionEnv.cwd`) — the same value the hands/LSP/policy/restore use. The Runner's
|
|
53
|
+
* rewind/snapshot path MUST key off THIS, not `deps.rootPath`, or a worktree-isolated turn snapshots the base
|
|
54
|
+
* repo (CORE-1~9 audit MAJOR). */
|
|
55
|
+
taskRootPath: string;
|
|
56
|
+
model: Model;
|
|
57
|
+
/** Effective thinking level (explicit `spec.thinking` or the resolved role's default). */
|
|
58
|
+
thinking?: ThinkingLevel;
|
|
59
|
+
compModel?: Model;
|
|
60
|
+
mcp: MaterializedMcp;
|
|
61
|
+
blockedRef: BlockedRef;
|
|
62
|
+
/** Holds the structured output once `submit_output` is called (when `spec.outputSchema` is set). */
|
|
63
|
+
outputRef: OutputRef;
|
|
64
|
+
/** Fires when the task aborts (timeout / max turns / end). Passed to `ToolPolicy.check` so a
|
|
65
|
+
* pending human-approval gate is released instead of hanging past the deadline (F4). */
|
|
66
|
+
abortController: AbortController;
|
|
67
|
+
/** Flipped if any session write lost the optimistic lock during the run → `errorCode = "conflict"`. */
|
|
68
|
+
conflictRef: {
|
|
69
|
+
hit: boolean;
|
|
70
|
+
};
|
|
71
|
+
/** design/134 复审: tool-call ids the gate blocked (policy/hook/plan-mode deny) or suspended —
|
|
72
|
+
* populated only while a consumer is wired (per-tool post hooks or postToolBatch). The runner's
|
|
73
|
+
* batch collector DELETES on match (its tool_execution_end is the only end-event a blocked call
|
|
74
|
+
* emits; the tool_result-side delete in prepare-task never fires for immediate results). */
|
|
75
|
+
blockedToolCalls: Set<string>;
|
|
76
|
+
/** Summed usage of nested sub-runs (sub-agents) spawned by this task's tools. */
|
|
77
|
+
nestedStats: {
|
|
78
|
+
tokens: number;
|
|
79
|
+
turns: number;
|
|
80
|
+
tasks: number;
|
|
81
|
+
costUsd: number;
|
|
82
|
+
costMicroUsd: number;
|
|
83
|
+
};
|
|
84
|
+
/** design/99 §E13 — the per-task logical cwd ref when a real shell is mounted (else undefined). The Runner
|
|
85
|
+
* reads `cwdRef.current` after each tool to detect a `cd` move and emit `workspace_changed`. */
|
|
86
|
+
cwdRef?: CwdRef;
|
|
87
|
+
/** design/99 §E6 — the DENY-NARROWING layers (session rules + skill scope, deny-only). Re-checked on RESUME
|
|
88
|
+
* before an approved pending tool executes, so a rule tightened during the suspend still applies. */
|
|
89
|
+
denyNarrowingPolicy?: ToolPolicy;
|
|
90
|
+
/** Removes the `spec.signal` abort listener on task end (else a long-lived signal leaks listeners). */
|
|
91
|
+
releaseSignal: () => void;
|
|
92
|
+
/** Per-task prefix-cache-break detector (design/31). The fingerprint is mutated when deferred tools
|
|
93
|
+
* materialize (design/36) — see `cacheFingerprint`. */
|
|
94
|
+
cacheBreakDetector?: CacheBreakDetector;
|
|
95
|
+
/** The fingerprinted prefix. `systemPrompt` is stable; `tools` is REFRESHED in place when a deferred
|
|
96
|
+
* tool is materialized (placeholder→full schema), so the design/31 detector sees the real tool set. */
|
|
97
|
+
cacheFingerprint?: {
|
|
98
|
+
systemPrompt: string;
|
|
99
|
+
tools: ToolFingerprintInput[];
|
|
100
|
+
};
|
|
101
|
+
/**
|
|
102
|
+
* 提示词主权批 — the labelled composition of the assembled system prompt, emitted as the
|
|
103
|
+
* `prompt.assembled` trace event at task start. `constitution` says who owned the safety layer:
|
|
104
|
+
* `"core"` (structural, the default), `"replaced"` (provider set `replaceAll` — deliberate opt-out),
|
|
105
|
+
* `"provider-assembled"` (migration guard: a historic provider returned a full prompt, passed through
|
|
106
|
+
* un-doubled + onError hint), `"legacy"` (free-form `PromptProvider.system`). Deployments/tests assert
|
|
107
|
+
* on this to make "which blocks were in the prompt" a runtime fact instead of archaeology.
|
|
108
|
+
*/
|
|
109
|
+
promptManifest: {
|
|
110
|
+
constitution: "core" | "replaced" | "provider-assembled" | "legacy";
|
|
111
|
+
blocks: Array<{
|
|
112
|
+
id: string;
|
|
113
|
+
chars: number;
|
|
114
|
+
hash: string;
|
|
115
|
+
}>;
|
|
116
|
+
};
|
|
117
|
+
/** Deferred-tool disclosure (design/36): the monotonic set of activated deferred-tool names. Empty
|
|
118
|
+
* (and no `tool_search` injected) when nothing is deferred. Mutated by `tool_search` across the run. */
|
|
119
|
+
activeTools: Set<string>;
|
|
120
|
+
/** @deprecated design/138 S4 — legacy memory consolidation (design/41) retired with the memoryStore
|
|
121
|
+
* path: prepareTask never produces this anymore (always `undefined`; runtask's reconcile pass is
|
|
122
|
+
* dead-by-input). Field kept one major so the runtask consumer compiles; removal is the next major. */
|
|
123
|
+
consolidation?: PreparedConsolidation;
|
|
124
|
+
/**
|
|
125
|
+
* design/138 S1 — the MemoryEngine session (present iff `deps.memoryBackend` + `spec.memory.enabled`).
|
|
126
|
+
* `harvest` is the swallow-guarded boundary hook (task terminal in runtask + the checkpoint mint
|
|
127
|
+
* point in commitSuspendSaga): it runs the FULL gate set (containment/secret/caps/deletion fuse),
|
|
128
|
+
* commits entry patches to the backend, self-heals the derived index, and re-baselines (a second
|
|
129
|
+
* harvest of an unchanged session yields zero patches). It NEVER throws.
|
|
130
|
+
* S2-B (O-F7/C-F3): the report is NOT discarded — `harvest` hands it to the Runner-owned
|
|
131
|
+
* `deps.onMemoryHarvestReport` callback (with the boundary phase), and the engine itself enqueues
|
|
132
|
+
* the announcement-queue entry at its harvest tail (drained into the NEXT session's first inject —
|
|
133
|
+
* 时机①; the r1 in-run attachments lane was cut, O-F2/C-F4). `phase` defaults to "terminal" (the
|
|
134
|
+
* runtask call site passes nothing); the checkpoint-mint call site passes "checkpoint".
|
|
135
|
+
*/
|
|
136
|
+
memoryEngineSession?: {
|
|
137
|
+
/** The WRITE-plane pair (design/142 S2b: dual roots collapse to one session face; these are the
|
|
138
|
+
* plane that owns the write gate — the read-only plane is internal to `inject`/`harvest`). */
|
|
139
|
+
engine: MemoryEngine;
|
|
140
|
+
handle: MemorySessionHandle;
|
|
141
|
+
/** Merged injection across all planes (single-root sessions: identical to engine.inject(handle)). */
|
|
142
|
+
inject: () => import("../memory-engine/engine.js").MemoryInjection;
|
|
143
|
+
harvest: (phase?: "checkpoint" | "terminal") => Promise<HarvestReport | undefined>;
|
|
144
|
+
};
|
|
145
|
+
/** A per-task env minted by `RunnerDeps.executionEnvFactory` (design/48 remote seam) that THIS task owns
|
|
146
|
+
* and the Runner must tear down on task end. Undefined when the env came from a (caller-owned) static
|
|
147
|
+
* `deps.executionEnv` or the stub — those outlive the task and must NOT be destroyed here. */
|
|
148
|
+
ownedEnv?: ExecutionEnv;
|
|
149
|
+
/** design/45: a mutable holder the durable-suspend gate writes when a policy `ask` was checkpointed
|
|
150
|
+
* (capture + abort). The run loop reads it to assemble `status:"suspended"`. Empty unless a suspension
|
|
151
|
+
* fired this run. */
|
|
152
|
+
suspendRef: {
|
|
153
|
+
token?: CheckpointToken;
|
|
154
|
+
gate?: CheckpointGate;
|
|
155
|
+
scope?: string;
|
|
156
|
+
};
|
|
157
|
+
/** design/76 §2.5 (dry-run / shadow) + design/80 D-B (plan-gate): the DUAL of {@link suspendRef} for the
|
|
158
|
+
* REVIEW-PAUSE family — a `{kind:"needs_review"}` pause (a profile's dry-run interception committed a
|
|
159
|
+
* checkpoint whose predicted state-diff a human/judge must REVIEW) OR a `{kind:"plan_review"}` pause (a
|
|
160
|
+
* profile's plan-gate committed a checkpoint whose proposed PLAN a human must approve/edit/reject). The
|
|
161
|
+
* commit-side discriminant (`publishCommittedSuspend`) writes HERE for a `needs_review` OR `plan_review`
|
|
162
|
+
* gate and into {@link suspendRef} for every other gate kind — **never both** (else assemble-result's slot
|
|
163
|
+
* 8.6 `needs_review` branch is dead code, v4 MAJOR-A). The run loop reads it to assemble
|
|
164
|
+
* `status:"needs_review"`. Empty unless a review pause fired this run. */
|
|
165
|
+
reviewRef: {
|
|
166
|
+
token?: CheckpointToken;
|
|
167
|
+
gate?: CheckpointGate;
|
|
168
|
+
scope?: string;
|
|
169
|
+
};
|
|
170
|
+
/** design/72 §2.2 (B): set when a suspend was REFUSED because the task already suspended `maxSuspends`
|
|
171
|
+
* times (a resume/restart loop) — the run is aborted and assembles as `failed`/`suspend.loop` instead
|
|
172
|
+
* of minting yet another checkpoint. */
|
|
173
|
+
suspendLoopRef: {
|
|
174
|
+
hit: boolean;
|
|
175
|
+
};
|
|
176
|
+
/** design/74 Slice 3c: opt-in resource-slice suspend. Present (≠ undefined) ONLY when the task opted in
|
|
177
|
+
* (`spec.resourceSuspend`) AND it is eligible to suspend durably (a checkpoint store, durable tool
|
|
178
|
+
* results, and a remote — or static caller-owned, never per-task-stub — env). The run loop calls it at a
|
|
179
|
+
* CLEAN turn boundary when a resource limit (turns/budget/walltime) was hit: it mints a `resource_limit`
|
|
180
|
+
* checkpoint + pauses the workspace + stops the loop cleanly (NOT abort). Returns true iff it committed a
|
|
181
|
+
* resumable checkpoint (sets `suspendRef`); false ⇒ caller falls through to normal limit handling.
|
|
182
|
+
* `sliceSpend` (Slice 4) is THIS slice's cost/tokens/turns, debited onto the cross-slice ledger. */
|
|
183
|
+
suspendForResource?: (reason: ResourceLimitReason, sliceSpend: {
|
|
184
|
+
costMicroUsd: number;
|
|
185
|
+
tokens: number;
|
|
186
|
+
turns: number;
|
|
187
|
+
}) => Promise<boolean>;
|
|
188
|
+
/** design/130 P1+P2 — present (≠ undefined) ONLY when `timeoutSec` is set and `callCapByDeadline`
|
|
189
|
+
* isn't disabled. prepare-task closes the harness's per-call cap provider over it; the run loop
|
|
190
|
+
* ARMS it (sets `deadlineMs`) once the task clock starts — and only for a NON-resource-suspend
|
|
191
|
+
* task (a slice boundary is not a delivery deadline, codex ⑤) — and feeds call/tool samples. */
|
|
192
|
+
callCapRef?: import("./call-cap.js").CallCapRef;
|
|
193
|
+
/** design/80 D-B — set by a tool calling `ctx.requestReview()` (the first-party `present_plan` tool, CC
|
|
194
|
+
* ExitPlanMode parity): the run loop honors it at the next CLEAN turn boundary by minting a `plan_review`
|
|
195
|
+
* checkpoint. `{ pending }` is set (with an optional reason) the moment a tool requests review; the boundary
|
|
196
|
+
* reads + clears it. First request in a batch wins (idempotent). */
|
|
197
|
+
reviewRequestRef: {
|
|
198
|
+
pending?: {
|
|
199
|
+
reason?: string;
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
/** design/80 D-B: present (≠ undefined) ONLY when a `checkpointStore` is wired (the deployment can pause). The
|
|
203
|
+
* run loop calls it at a CLEAN turn boundary when `reviewRequestRef.pending` is set: it mints a `plan_review`
|
|
204
|
+
* checkpoint (`status:"needs_review"`, routes to `reviewRef`) + pauses the workspace + aborts the loop, reusing
|
|
205
|
+
* the SAME commit saga as the human/resource suspends. Returns true iff it committed a resumable checkpoint;
|
|
206
|
+
* false ⇒ the request could not be honored (caller drops it and continues). */
|
|
207
|
+
suspendForReview?: (reason?: string) => Promise<boolean>;
|
|
208
|
+
/** design/74 Slice 4: the prior cross-slice {@link ResourceLedger} (from the resumed checkpoint), so the run
|
|
209
|
+
* loop can size this slice's effective budget = `min(maxCostUsd, remaining)`. Undefined on the first slice
|
|
210
|
+
* (or a non-resource task). */
|
|
211
|
+
resourceLedger?: ResourceLedger;
|
|
212
|
+
/** design/80 D-E-core (A3): a mutable holder the run loop populates (right after `stats` exists) so the
|
|
213
|
+
* human/irreversible_ask suspend can debit THIS leg's live cumulative spend onto the durable approval
|
|
214
|
+
* ledger it attaches (the resource-slice path passes `sliceSpend` explicitly; this event-driven gate has
|
|
215
|
+
* no such arg, so it reads the live spend here). Read at suspend time; absent ⇒ this leg's spend is not
|
|
216
|
+
* debited (the prior ledger still rides for the cross-leg READ). */
|
|
217
|
+
liveSpendRef: {
|
|
218
|
+
get?: () => {
|
|
219
|
+
costMicroUsd: number;
|
|
220
|
+
tokens: number;
|
|
221
|
+
turns: number;
|
|
222
|
+
};
|
|
223
|
+
};
|
|
224
|
+
/** design/91: the per-task human-review accumulator (synchronous `resolveAsk` waits this leg + the carried
|
|
225
|
+
* prior-leg burden seeded from the resumed checkpoint). The run loop ADDS the durable-resume latency
|
|
226
|
+
* (`now() − cp.suspendedAt`) on a resume, then surfaces it as `stats.humanReview` at assembly (omitted when
|
|
227
|
+
* empty). **Budget-EXCLUDED** — never folded into cost/the budget gate (design/91 §1). */
|
|
228
|
+
humanReviewRef: {
|
|
229
|
+
count: number;
|
|
230
|
+
totalWaitMs: number;
|
|
231
|
+
gates: Array<{
|
|
232
|
+
kind: string;
|
|
233
|
+
waitMs: number;
|
|
234
|
+
decision?: string;
|
|
235
|
+
toolName?: string;
|
|
236
|
+
toolArg?: string;
|
|
237
|
+
}>;
|
|
238
|
+
};
|
|
239
|
+
/** design/91: the injectable wall-clock the run loop uses for the durable-resume human-review latency
|
|
240
|
+
* (`humanLatencyMs = now() − cp.suspendedAt`), so it reads the SAME clock as the suspend-side `suspendedAt`. */
|
|
241
|
+
now: () => number;
|
|
242
|
+
/** design/45 resume: the FULL resolved tool list (real tools, never deferred placeholders) so the
|
|
243
|
+
* resume engine can execute a previously-suspended pending tool call directly (it bypasses the gate —
|
|
244
|
+
* the human already adjudicated it). Same wrapping (offload + ctx) the harness runs with. */
|
|
245
|
+
tools: AgentTool[];
|
|
246
|
+
/** Name→effect map for every tool this task can call (design/44 §3). Used by the abort-path orphan
|
|
247
|
+
* reconcile (design/64 §9) to make interrupted tool_results effect-aware (read/idempotent = safe to
|
|
248
|
+
* repeat; write/unknown = outcome unknown). Unknown names default to `write` (conservative). */
|
|
249
|
+
toolEffects: Map<string, ToolEffect>;
|
|
250
|
+
/** Fixed per-request prompt overhead (system prompt + tool schemas, ≈chars/4 tokens). Fed to
|
|
251
|
+
* `maybeCompact.overheadTokens` so the compaction trigger stays accurate in the anchor-less
|
|
252
|
+
* regime (custom Brains that don't report usage — design/64 §26.7). */
|
|
253
|
+
promptOverheadTokens: number;
|
|
254
|
+
/** Narrow workspace reader for compaction working-file attachments (LONGRUN-2): reads a task file
|
|
255
|
+
* via the SAME env the hands ran against (so remote/k8s/E2B tasks read the container's tree, not
|
|
256
|
+
* the control plane's). Present only when the hands are enabled — without an env there is no
|
|
257
|
+
* workspace to re-read. null = unreadable (deleted/binary/transport error); callers skip it. */
|
|
258
|
+
readTaskFile?: (path: string) => Promise<string | null>;
|
|
259
|
+
/** Blackboard 2026-07-03 (CC post-compact restore parity): the task's READ files, most recent
|
|
260
|
+
* first (from the hands' readFileState `lastReadAt` stamps). The compaction working-file
|
|
261
|
+
* attachment prefers this over the modified set — CC restores what the model RECENTLY READ,
|
|
262
|
+
* including untouched reference files. Present only with hands (same gate as readTaskFile). */
|
|
263
|
+
recentlyReadFiles?: () => string[];
|
|
264
|
+
/** design/121: the live diagnostics lane (present only when the gate passed — manager w/ registry +
|
|
265
|
+
* write hands + not opted out). `registry` is drained by runtask at turn boundaries; `nudge` is
|
|
266
|
+
* called (fire-and-forget) after each successful edit/write so the language server re-analyzes. */
|
|
267
|
+
lspDiagnostics?: {
|
|
268
|
+
registry: import("../lsp-diagnostics.js").LspDiagnosticsRegistry;
|
|
269
|
+
nudge: (rawPath: string) => void;
|
|
270
|
+
};
|
|
271
|
+
/** design/133 件④: the live plan-mode flag (`enter_plan_mode` flips it, run-local one-way). Exposed
|
|
272
|
+
* so the run loop's plan-mode attachment producer reads the SAME flag the write-deny enforces —
|
|
273
|
+
* never a second source of truth. Always present (`active:false` when plan mode is unused). */
|
|
274
|
+
planModeRef: {
|
|
275
|
+
active: boolean;
|
|
276
|
+
};
|
|
277
|
+
/** design/133 F5 (§R3 决议): boundary-time external-change scan over the ≤`maxFiles` most-recently-READ
|
|
278
|
+
* files. Stats each via `env.fileInfo` and reports paths whose `mtimeMs` moved past the recorded
|
|
279
|
+
* `lastReadAt` + 2s epsilon (CC getChangedFiles shape: readFileState needs NO new field; the agent's
|
|
280
|
+
* own write-backs refresh `lastReadAt`, so self-edits are immune). ENOENT evicts the readFileState
|
|
281
|
+
* entry (CC evict-only-on-ENOENT — transient stat failures skip, never evict) and is echoed in
|
|
282
|
+
* `evicted` so the caller drops its per-path dedup state in lockstep (LOW-9). Present only with
|
|
283
|
+
* hands; the run loop calls it ONLY when `spec.attachments.changedFiles` opted in (OFF ⇒ zero stat). */
|
|
284
|
+
detectExternalChanges?: (maxFiles: number) => Promise<{
|
|
285
|
+
changed: Array<{
|
|
286
|
+
path: string;
|
|
287
|
+
mtimeMs: number;
|
|
288
|
+
}>;
|
|
289
|
+
evicted: string[];
|
|
290
|
+
}>;
|
|
291
|
+
/** G1 通告层 [482] — deferred tools MATERIALIZED (design/36 rematerialize) but not yet announced at a
|
|
292
|
+
* turn boundary. Appended by the rematerialize diff (newly-activated names only — the announced set
|
|
293
|
+
* is seeded with prepare-time actives INCLUDING resume-reseeded ones, so a resume never replays);
|
|
294
|
+
* DRAINED by the run loop only when the `tools_delta` attachment actually survived the byte cap.
|
|
295
|
+
* Present only when the task has deferred tools at all. */
|
|
296
|
+
toolsDeltaRef?: {
|
|
297
|
+
pending: string[];
|
|
298
|
+
};
|
|
299
|
+
/** G1 通告层续批 (CC `agent_listing_delta` parity) — the mounted delegation tool's agent-type roster
|
|
300
|
+
* (read off `ToolSpec.agentListing`, filled by createSubagentTool), plus the tool's mounted name for
|
|
301
|
+
* the CC-verbatim headers. `seedAnnounced` = a durable-resume leg: the run loop MAY seed the
|
|
302
|
+
* producer's announced map with these entries — 1.256 复审 MED-3②: only after CONFIRMING a listing
|
|
303
|
+
* reminder actually rides the prior legs' transcript (a first leg that suspended before its first
|
|
304
|
+
* clean boundary never announced; unconfirmed ⇒ the resume leg re-announces the initial listing).
|
|
305
|
+
* Cross-leg roster drift is deliberately not delta-announced. Present only when such a tool is
|
|
306
|
+
* mounted AND its roster is non-empty. */
|
|
307
|
+
agentListing?: {
|
|
308
|
+
entries: ReadonlyArray<{
|
|
309
|
+
name: string;
|
|
310
|
+
description: string;
|
|
311
|
+
}>;
|
|
312
|
+
toolName: string;
|
|
313
|
+
seedAnnounced: boolean;
|
|
314
|
+
};
|
|
315
|
+
/** G1 通告层 [482] — narrow post-compact getter over the process task registry: THIS run's visible
|
|
316
|
+
* pending/running background tasks (same owner/scope/session identity the TaskOutput/TaskStop tools
|
|
317
|
+
* use), as a bounded display projection (id/description/status — never handles/env/abort). Called by
|
|
318
|
+
* the run loop ONLY when `spec.attachments.backgroundTasks` opted in AND a compaction just landed. */
|
|
319
|
+
listBackgroundTasks: () => Array<{
|
|
320
|
+
id: string;
|
|
321
|
+
description?: string;
|
|
322
|
+
status: string;
|
|
323
|
+
}>;
|
|
324
|
+
/** design/122 D1 — the parent-run subagent-retain ledger (present ONLY when `spec.retainSubagentSessions`
|
|
325
|
+
* is enabled). The Runner disposes it (abort in-flight resumes + unpin + release every retained child
|
|
326
|
+
* session) in the task's terminal `finally` — same UNCONDITIONAL posture as the background-agent reap:
|
|
327
|
+
* retain is NOT durable (a suspend leg's in-memory ledger cannot survive a re-prepare), so releasing on
|
|
328
|
+
* every exit path is hygiene, never a loss. */
|
|
329
|
+
subagentRetain?: SubagentRetainLedger;
|
|
330
|
+
/** design/84 Seam C: run-scoped consecutive-`summaryProvider`-reuse counter, OWNED by the Runner and
|
|
331
|
+
* SHARED across both compaction call sites (within-task turn boundary + `finish()`), so the
|
|
332
|
+
* `maxConsecutiveProviderReuse` drift guard is enforced over the whole task — incremented when a
|
|
333
|
+
* compaction reused the provider's summary, reset to 0 on a real (LLM) summary. */
|
|
334
|
+
compactionReuseRef: {
|
|
335
|
+
consecutive: number;
|
|
336
|
+
};
|
|
337
|
+
/** design/123 D4 — trim→compaction pressure propagation (16k live sawtooth root cause): set by the
|
|
338
|
+
* context hook when `trimToBudget` actually DROPPED messages from a request view (request-only trim
|
|
339
|
+
* + usage-anchor mismatch deflates the next boundary's estimate → the trigger and floor are both
|
|
340
|
+
* deceived → full-size request spikes alternate with trimmed troughs). The next turn boundary's
|
|
341
|
+
* `maybeCompact` consumes it as `force: true` (bypasses the auto threshold AND the §25.2 anti-thrash
|
|
342
|
+
* floor — "the request layer was forced to drop history" is direct evidence compaction is overdue).
|
|
343
|
+
* One-shot: cleared on consumption; a failed compaction does NOT re-arm it (existing breaker path).
|
|
344
|
+
* Content-only clears (`clearStaleToolResults`) never set it — only real message drops do. */
|
|
345
|
+
trimPressureRef: {
|
|
346
|
+
droppedMessages: boolean;
|
|
347
|
+
};
|
|
348
|
+
/** @deprecated design/138 S4 — the dynamic re-recall seam (design/86 §3) served ONLY the legacy
|
|
349
|
+
* memoryStore injection path, which is retired: prepareTask never wires this anymore (always
|
|
350
|
+
* `undefined`; runtask's re-recall turn hook is dead-by-input). Field kept one major so the
|
|
351
|
+
* runtask consumer compiles; removal is the next major. */
|
|
352
|
+
dynamicRecall?: {
|
|
353
|
+
selector: import("../memory-recall.js").MemorySelector;
|
|
354
|
+
scopes: string[];
|
|
355
|
+
recentTools: string[];
|
|
356
|
+
surfacedIds: Set<string>;
|
|
357
|
+
surfacedKeys: Set<string>;
|
|
358
|
+
};
|
|
359
|
+
}
|
|
360
|
+
/**
|
|
361
|
+
* design/45 resume inputs threaded into {@link prepareTask} to continue a suspended task. The Runner
|
|
362
|
+
* builds it from the persisted {@link Checkpoint}: rewind the branch to the suspension leaf, skip the
|
|
363
|
+
* suspended batch during wake-reconcile, and re-seed the §4.bis per-task correctness state so the
|
|
364
|
+
* resumed run is in the **same state space** it suspended in.
|
|
365
|
+
*/
|
|
366
|
+
export interface PrepareResume {
|
|
367
|
+
/** The session leaf to rewind to (the suspension point) BEFORE reconcile — discards the abort's
|
|
368
|
+
* off-branch "Operation aborted" writes so the resume engine resolves the pending batch cleanly. */
|
|
369
|
+
leafId: string;
|
|
370
|
+
/** Batch tool-call ids of the suspended turn — wake-reconcile SKIPS these (they are resumed, not
|
|
371
|
+
* crash-interrupted; closing them with `[INTERRUPTED]` would DESTROY the suspended batch, §15.2 #7). */
|
|
372
|
+
suspendedBatch: ReadonlySet<string>;
|
|
373
|
+
/** The §4.bis correctness-state snapshot to re-seed (activeTools / outputRef / nestedStats /
|
|
374
|
+
* consolidationNotes / readFileState). */
|
|
375
|
+
seed: CheckpointState;
|
|
376
|
+
/** design/72 §2.2 (B): how many times this task already suspended (the resumed checkpoint's
|
|
377
|
+
* `suspendCount`). The next suspend mints `priorSuspendCount + 1`; past `maxSuspends` it fails
|
|
378
|
+
* (`suspend.loop`) instead of re-suspending. Absent/0 ⇒ no prior suspends. */
|
|
379
|
+
priorSuspendCount?: number;
|
|
380
|
+
/** design/74 Slice 4: the cross-slice {@link ResourceLedger} carried by the resumed `resource_limit`
|
|
381
|
+
* checkpoint (cumulative spend + the frozen human totals). The next slice's effective budget is
|
|
382
|
+
* `min(maxCostUsd, totalBudget − spent)`, and its own suspend debits onto this. Absent ⇒ the first slice. */
|
|
383
|
+
priorLedger?: ResourceLedger;
|
|
384
|
+
/** design/91: the accumulated human-review burden carried by the resumed checkpoint
|
|
385
|
+
* ({@link import("../checkpoint-store.js").Checkpoint.humanReview}) — the gates resolved up to and including
|
|
386
|
+
* the suspend BEFORE this one. Seeds the per-task accumulator so the resumed leg ADDS this suspend's own
|
|
387
|
+
* latency (`now() − cp.suspendedAt`) on top, reporting the WHOLE chain's burden. Absent ⇒ no prior human time. */
|
|
388
|
+
priorHumanReview?: {
|
|
389
|
+
count: number;
|
|
390
|
+
totalWaitMs: number;
|
|
391
|
+
gates: Array<{
|
|
392
|
+
kind: string;
|
|
393
|
+
waitMs: number;
|
|
394
|
+
decision?: string;
|
|
395
|
+
toolName?: string;
|
|
396
|
+
toolArg?: string;
|
|
397
|
+
}>;
|
|
398
|
+
};
|
|
399
|
+
/** design/49 v1.5: when the suspend ran with a remote workspace, the {@link CheckpointState.workspaceHandle}
|
|
400
|
+
* to restore — prepare rebuilds the per-task env via `deps.executionEnvFactory` then `resumeVM(snapshotId)`
|
|
401
|
+
* + `postResumeInit()` (instead of running on a fresh, empty env). Threaded HERE (not via `ResumeTaskConfig`)
|
|
402
|
+
* so the factory stays a deployment-level `RunnerDeps` capability and never pollutes `TaskSpec` — preserving
|
|
403
|
+
* the "untrusted caller can't inject an env" red line (remote-env.ts:234, code-ready council round-2). */
|
|
404
|
+
workspaceHandle?: import("../remote-env.js").WorkspaceHandle;
|
|
405
|
+
}
|
|
406
|
+
/**
|
|
407
|
+
* design/78 Slice-1 (MAJOR-3 wiring): a TRUSTED, run-scoped internal channel into {@link prepareTask}, set
|
|
408
|
+
* ONLY by a trusted CORE caller (`runRepairLoop` via the Runner's internal `runTaskStream` arg) — NEVER from
|
|
409
|
+
* a {@link TaskSpec} field (the untrusted-caller surface, design/44 §7 Q4). It is the live-state counterpart
|
|
410
|
+
* of {@link PrepareResume.seed}: where `resume.seed` re-seeds correctness state RESTORED from a checkpoint,
|
|
411
|
+
* this carries the LIVE per-task state the Runner cannot otherwise see (it lives in the caller's closure).
|
|
412
|
+
*
|
|
413
|
+
* Today it carries only the repair loop's live {@link RepairBundle}: `runRepairLoop` is a thin composition
|
|
414
|
+
* OVER `runner.runTask`, so when an orthogonal durable suspend (resource/HITL) interleaves a repair attempt,
|
|
415
|
+
* the bundle (failureTrace/diagnostics/attemptCount/oracleTier) sits in the loop's closure and was being lost
|
|
416
|
+
* — the minted checkpoint serialized `repairBundle: undefined`. Threading it here lets
|
|
417
|
+
* {@link prepareTask}'s `serializeCheckpointState` source the LIVE bundle so a resume re-seeds `attemptCount`
|
|
418
|
+
* MONOTONICALLY (design/76 §2.2#1 r4 MAJOR-A). Mirrors how `nestedStats`/`resume.seed` thread trusted
|
|
419
|
+
* run-scoped internals through the Runner without touching `TaskSpec`.
|
|
420
|
+
*/
|
|
421
|
+
export interface RunInternals {
|
|
422
|
+
/** The live repair bundle from a `runRepairLoop` attempt in flight (attemptCount>0). Serialized onto a
|
|
423
|
+
* checkpoint minted MID-attempt so a resume re-seeds it; undefined for any non-repair run. */
|
|
424
|
+
repairBundle?: RepairBundle;
|
|
425
|
+
/**
|
|
426
|
+
* 🔴 design/97 §H.1 / design/98 §0.1 (BLOCKER3) — the workflow **nesting depth** for this run, a TRUSTED
|
|
427
|
+
* cross-process channel (worker/script can NEVER set it — it is not a {@link TaskSpec} field nor a
|
|
428
|
+
* `run_workflow` tool param). When a deployment initiates a workflow on behalf of a parent run that is
|
|
429
|
+
* itself inside a workflow (e.g. service's `/v1/workflows`), it threads `workflowDepth = parentDepth + 1`
|
|
430
|
+
* into `startWorkflow`/`runWorkflow` so the one-level nesting guard fires across the process boundary.
|
|
431
|
+
* In-process nesting needs nothing here — the engine's `AsyncLocalStorage` propagates depth automatically.
|
|
432
|
+
* Mirrors how `repairBundle`/`inheritedManifestScope` thread trusted run-scoped internals the Runner cannot
|
|
433
|
+
* see from `spec`. Consumed by the `run_workflow` tool wiring (S8c), not by `prepareTask` itself.
|
|
434
|
+
*/
|
|
435
|
+
workflowDepth?: number;
|
|
436
|
+
/**
|
|
437
|
+
* design/110 — set ONLY by the Agent tool's fork route (`Agent(subagent_type:"fork")`, a core caller) on the
|
|
438
|
+
* child it spawns: this run IS a forked child. `prepareTask` threads it to tool ctx as `insideFork` so the
|
|
439
|
+
* child's own Agent tool refuses a nested fork (nesting guard — mirrors CC's "fork is not available inside a
|
|
440
|
+
* forked worker"; a fork can still delegate via `Agent`, just not fork again). TRUSTED internal (NOT a
|
|
441
|
+
* `TaskSpec` field — the untrusted-caller surface), mirrors `inheritedManifestScope`.
|
|
442
|
+
*/
|
|
443
|
+
insideFork?: boolean;
|
|
444
|
+
/**
|
|
445
|
+
* G1+G2 合车复审修② (1.259.0) — the DEFAULT role-base persona for a DELEGATED child, threaded by
|
|
446
|
+
* `createSubagentTool`'s execute (a core caller) when neither an agent-definition `systemPrompt` nor the
|
|
447
|
+
* delegation tool's `opts.systemPrompt` names one. It sits at the BOTTOM of the role-base chain —
|
|
448
|
+
* `spec.systemPrompt ?? resolvedRole.systemPrompt ?? internals.defaultSystemPrompt` — so a deployment's
|
|
449
|
+
* `roles.subagent.systemPrompt` / `roles.default.systemPrompt` preset still wins (pre-G1 semantics: an
|
|
450
|
+
* unset child systemPrompt let the role preset apply; G1's first cut put SUBAGENT_PROMPT at spec level
|
|
451
|
+
* and silently shadowed the preset). Only when NO preset resolves does the lean SUBAGENT_PROMPT (CC 198
|
|
452
|
+
* general-purpose persona, pretty.js:419977) replace the full DEFAULT_SYSTEM_PROMPT constitution base.
|
|
453
|
+
* TRUSTED run-scoped channel (NOT a {@link TaskSpec} field), mirroring `insideFork`.
|
|
454
|
+
*/
|
|
455
|
+
defaultSystemPrompt?: string;
|
|
456
|
+
/**
|
|
457
|
+
* design/96 §C (S2) — GOAL MODE flag, a TRUSTED internal channel set ONLY by `runGoal` (a core caller),
|
|
458
|
+
* NEVER a {@link TaskSpec} field. It drives `featureFlags.goalEnabled` → injects `GOAL_COMPLETION_GUIDANCE`.
|
|
459
|
+
* Why internal (not a public `TaskSpec.goalMode`): the guidance promises "declaring done STOPS iteration and
|
|
460
|
+
* surfaces" — a promise only `runGoal`'s loop makes real. A public field would let a caller inject that
|
|
461
|
+
* prompt with no loop behind it (§6.3 honesty violation). `runGoal` injects the `declare_done` tool itself;
|
|
462
|
+
* this flag only governs the PROMPT (codex r2 — injection-ownership split).
|
|
463
|
+
*/
|
|
464
|
+
goalMode?: boolean;
|
|
465
|
+
/**
|
|
466
|
+
* 🔴 design/77 §3 / §7 (ON-前必关) — skill→subagent manifest-scope PROPAGATION. The parent task's
|
|
467
|
+
* ACTIVE skill-manifest frames, snapshotted at the moment a subagent was spawned WHILE a manifest scope
|
|
468
|
+
* was live on the parent. The child's {@link prepareTask} seeds its own {@link ActiveSkillScope} from
|
|
469
|
+
* these so the child inherits the parent skill's deny-narrowing — fail-closed and MONOTONIC: a child of
|
|
470
|
+
* a manifested skill is AT MOST as capable as the manifest (its own manifests can only narrow further,
|
|
471
|
+
* never re-grant a tool/path the parent removed).
|
|
472
|
+
*
|
|
473
|
+
* This is a TRUSTED, run-scoped channel filled ONLY by `createSubagentTool`'s `execute` (a core caller),
|
|
474
|
+
* NEVER a {@link TaskSpec} field (TaskSpec is the untrusted-caller surface — design/44 §7 Q4). It mirrors
|
|
475
|
+
* how `repairBundle`/`resume.seed` thread live per-task state the Runner cannot see from `spec`.
|
|
476
|
+
*
|
|
477
|
+
* Fail-closed: when the parent HAD an active manifest at spawn but the precise frames cannot be
|
|
478
|
+
* snapshotted, the subagent tool threads a single DENY-ALL `unresolved` frame here rather than letting the
|
|
479
|
+
* child run unmanifested — the safe path is the default. An empty/absent value = no inheritance (a
|
|
480
|
+
* subagent spawned with no active parent manifest behaves exactly as before, backward-compatible).
|
|
481
|
+
*/
|
|
482
|
+
inheritedManifestScope?: readonly ActiveSkillFrame[];
|
|
483
|
+
/**
|
|
484
|
+
* design/99 §E2 (service [241]/[242]) — when this task runs as a SUB-AGENT spawned under a parent task's
|
|
485
|
+
* tool call, the spawning tool's `ToolExecuteContext.toolCallId`. The Runner stamps it onto this task's
|
|
486
|
+
* stream content events as {@link TaskEvent.parentToolCallId} so a consumer can attribute the child's live
|
|
487
|
+
* content to the delegation subtree WITHOUT core merging the child stream into the parent (lightweight
|
|
488
|
+
* message-identity, not stream-merge). A TRUSTED, run-scoped channel filled by a core caller
|
|
489
|
+
* (`createSubagentTool`'s `execute`) — NEVER a {@link TaskSpec} field (the untrusted-caller surface),
|
|
490
|
+
* mirroring `inheritedManifestScope`/`workflowDepth`. Absent for a top-level (non-delegated) task.
|
|
491
|
+
*/
|
|
492
|
+
parentToolCallId?: string;
|
|
493
|
+
/**
|
|
494
|
+
* design/99 MF-10 / BC-2 (Service AI [§I 1.5.1]) — a SUBAGENT's human display NAME, threaded at spawn so the
|
|
495
|
+
* child's `task_progress` ticks carry a readable label (a Fleet child row otherwise shows the raw `taskId`).
|
|
496
|
+
* Filled by `createSubagentTool`'s `execute` = the explicit `taskName`, else the selected agent-type
|
|
497
|
+
* (`AgentDefinition.name`). TRUSTED run-scoped channel (NOT a {@link TaskSpec} field), mirroring
|
|
498
|
+
* `parentToolCallId`. Absent for a top-level run / a bare delegation with neither label — the child's
|
|
499
|
+
* `task_progress` then carries NO `name` (it keeps its taskId; it deliberately does NOT fall back to the raw
|
|
500
|
+
* objective, which could leak a delegated secret — dual-review Q2). Untrusted (`taskName` is model-chosen) →
|
|
501
|
+
* the consumer sanitizes via `inlineUntrusted` at emit.
|
|
502
|
+
*/
|
|
503
|
+
agentName?: string;
|
|
504
|
+
/**
|
|
505
|
+
* design/99 (nested-subagent live tree) — the SPAWNING run's taskId, threaded at spawn (from the parent's
|
|
506
|
+
* `ToolExecuteContext.taskId`) so this child's `task_progress` ticks carry `parentTaskId`. Lets a UI build the
|
|
507
|
+
* live nested-agent tree directly (child.parentTaskId === parent.taskId) at any depth. TRUSTED run-scoped
|
|
508
|
+
* channel (NOT a {@link TaskSpec} field), mirroring `parentToolCallId`. Absent for a top-level run.
|
|
509
|
+
*/
|
|
510
|
+
parentTaskId?: string;
|
|
511
|
+
/**
|
|
512
|
+
* design/99 (nested-subagent live tree) — an OPT-IN, DISPLAY-ONLY event sink a deployment sets on the TOP run to
|
|
513
|
+
* receive a subagent's live `task_progress` ticks (which otherwise stay in the child's ISOLATED stream). Threaded
|
|
514
|
+
* recursively down the delegation tree (via `ctx.forwardEvent`), so every nested subagent's ticks bubble to the
|
|
515
|
+
* SAME sink. The Runner forwards ONLY `task_progress` through it; the child stream is NEVER merged into the
|
|
516
|
+
* parent's MODEL context (this is purely a render channel). Absent unless the deployment opted in.
|
|
517
|
+
*/
|
|
518
|
+
onForwardEvent?: (event: TaskEvent) => void;
|
|
519
|
+
/**
|
|
520
|
+
* design/115 P2 core slice — trusted run-local system-injection sink. `Runner.runLocked` wires this to the
|
|
521
|
+
* live TaskStream queue plus the current harness follow-up lane; it is not a public TaskSpec field.
|
|
522
|
+
*/
|
|
523
|
+
/** design/116 detach(飞轮 [C]): the run-local per-tool-call detach hub. runtask creates it and exposes
|
|
524
|
+
* `TaskStream.detach(toolCallId)`; the hands Bash tool threads `signalFor(toolCallId)` into env.exec. */
|
|
525
|
+
detachHub?: import("../tool-detach.js").ToolDetachHub;
|
|
526
|
+
onTaskNotification?: (notification: TaskNotificationPayload,
|
|
527
|
+
/** CC injection priority (design/116 §7): "next" = boundary interrupt (finished shell), "later"
|
|
528
|
+
* (default) = deliver when the agent would otherwise stop (agent/workflow completions). */
|
|
529
|
+
opts?: {
|
|
530
|
+
priority?: import("../task-notification.js").SystemInjectionPriority;
|
|
531
|
+
}) => void;
|
|
532
|
+
/**
|
|
533
|
+
* design/97 CORE-6 — per-task ISOLATION hint, a TRUSTED run-scoped channel filled ONLY by a core caller
|
|
534
|
+
* (the workflow's `ctx.agent` when the SCRIPT passed `{ isolation: "worktree" }` as an OPTION) — NEVER a
|
|
535
|
+
* {@link TaskSpec} field (the untrusted-caller surface, design/44 §7 Q4). Forwarded to
|
|
536
|
+
* {@link ExecutionEnvFactory} via {@link ExecutionEnvFactoryContext.isolation} so the trusted control-plane
|
|
537
|
+
* factory mints a git-worktree-rooted env for this agent; and it makes root resolution use the worktree
|
|
538
|
+
* env's own cwd (the worktree dir), bypassing `deps.rootPath`. Isolate-ONLY: the runtime never merges
|
|
539
|
+
* (clay) — the orchestrator script reads each worktree's result and decides verify/merge in userland.
|
|
540
|
+
*/
|
|
541
|
+
isolation?: "worktree";
|
|
542
|
+
/**
|
|
543
|
+
* Blackboard 2026-07-03 (sub-agent cwd inheritance, CC parity): the PARENT task's effective working root,
|
|
544
|
+
* filled ONLY by core delegation callers (the workflow's `ctx.agent` / `createSubagentTool`'s execute —
|
|
545
|
+
* NEVER a {@link TaskSpec} field). Forwarded to {@link ExecutionEnvFactory} via
|
|
546
|
+
* {@link ExecutionEnvFactoryContext.parentCwd} so a single-user/TOC factory can root the child env at the
|
|
547
|
+
* parent's cwd instead of an empty per-task sandbox. `isolation: "worktree"` wins over this when both set.
|
|
548
|
+
*/
|
|
549
|
+
parentCwd?: string;
|
|
550
|
+
/**
|
|
551
|
+
* Blackboard 2026-07-03 (subagent steer verb, clay dogfood "中途插话"): the host run's opt-in
|
|
552
|
+
* SUBAGENT-STEER-HANDLE sink. When set, `createSubagentTool` runs each child via `runTaskStream`
|
|
553
|
+
* and emits a steer handle here (the model never sees the handle — same host-context-isolation
|
|
554
|
+
* posture as `onWorkflowAgentSpawn`). A deployment registers it by `taskId` to route a human steer
|
|
555
|
+
* into the running child (fenced-marker semantics matching the workflow agent handle). Threaded to
|
|
556
|
+
* the tool ctx as {@link ToolExecuteContext.onSubagentSpawn} and recursively down the delegation
|
|
557
|
+
* tree. Absent ⇒ children run non-steerable (prior behavior, zero overhead).
|
|
558
|
+
* SCOPE (fable impl-review F3, recorded): only SYNC delegations emit a handle — a
|
|
559
|
+
* `run_in_background` child does not (poll/stop it via TaskOutput/TaskStop); wiring the background
|
|
560
|
+
* lane is a recorded follow-up, not an oversight a deployment should discover at runtime.
|
|
561
|
+
*/
|
|
562
|
+
onSubagentSpawn?: (handle: import("../../agents/subagent.js").SubagentSteerHandle) => void;
|
|
563
|
+
/**
|
|
564
|
+
* design/97 CORE-8 (③) — a TRUSTED run-scoped tool-ACTIVITY sink, filled ONLY by a core caller (the workflow's
|
|
565
|
+
* `ctx.agent`, to render a per-agent "last N tool calls" drill-down). Called synchronously at each tool start +
|
|
566
|
+
* end with structural data (name/phase/ids) — NEVER args/output (those carry untrusted/host data). NEVER a
|
|
567
|
+
* {@link TaskSpec} field. Absent ⇒ no activity capture (default).
|
|
568
|
+
*
|
|
569
|
+
* **v1 scope (audit MINOR)**: reaches activity on a FRESH run only — the durable-resume entry (`resumeStream`)
|
|
570
|
+
* does not thread `internals`, so a resumed leg emits no activity. The workflow display is unaffected (its
|
|
571
|
+
* agents fail-on-suspend rather than durably resume).
|
|
572
|
+
*/
|
|
573
|
+
onActivity?: (activity: ToolActivity) => void;
|
|
574
|
+
}
|
|
575
|
+
export declare function prepareTask(spec: TaskSpec, deps: RunnerDeps, sessions: SessionStore, resume?: PrepareResume,
|
|
576
|
+
/** @deprecated design/138 S4 — served only the legacy selective/dynamic recall paths (retired);
|
|
577
|
+
* ignored. Positional slot kept one major so the runtask call site compiles unchanged. */
|
|
578
|
+
_memorySelector?: import("../memory-recall.js").MemorySelector, internals?: RunInternals,
|
|
579
|
+
/** design/98 §3.1 (S8c): a TRUSTED self-reference to the Runner, passed by the Runner itself (never a
|
|
580
|
+
* TaskSpec field) so the `run_workflow` tool can execute child tasks via `runner.runTask`. Undefined when
|
|
581
|
+
* prepareTask is exercised standalone (then run_workflow is simply not mounted). */
|
|
582
|
+
runnerSelf?: Runner): Promise<Prepared>;
|
|
583
|
+
//# sourceMappingURL=prepare-task.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prepare-task.d.ts","source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