sdd-agent-platform 0.3.0 → 0.4.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/README.md +234 -239
- package/{dist/packages/core/src → node_modules/@sdd-agent-platform/core/dist}/ai-tools.d.ts +3 -2
- package/node_modules/@sdd-agent-platform/core/dist/ai-tools.js +464 -0
- package/node_modules/@sdd-agent-platform/core/dist/ai-tools.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/ingestion.d.ts +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/ingestion.js +181 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/ingestion.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-evidence.d.ts +47 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-evidence.js +241 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-evidence.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-result.d.ts +29 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-result.js +198 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/sdd-result.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/templates.d.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/templates.js +79 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts/templates.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts.js +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/artifacts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts/contracts.d.ts +71 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/coding-facts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.d.ts +31 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.js +89 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/init-project.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.d.ts +49 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.js +202 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-config.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-detection.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-detection.js +111 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-detection.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-status.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-status.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/project-status.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.js +441 -0
- package/node_modules/@sdd-agent-platform/core/dist/config/starter-documents.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/budget.d.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/budget.js +20 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/budget.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.d.ts +46 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.js +244 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/build-package.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/command-summary.d.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/command-summary.js +34 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/command-summary.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/evidence-summary.d.ts +50 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/evidence-summary.js +86 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/evidence-summary.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/log-worker.d.ts +19 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/log-worker.js +28 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/log-worker.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/source-refs.d.ts +9 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/source-refs.js +30 -0
- package/node_modules/@sdd-agent-platform/core/dist/context/source-refs.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/contracts.d.ts +43 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/runtime.d.ts +36 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/runtime.js +142 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload/runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/context-offload.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/context.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/context.js +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/context.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts/issues.d.ts +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts/issues.js +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts/issues.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts.d.ts +110 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts.js +75 -0
- package/node_modules/@sdd-agent-platform/core/dist/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/model.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/model.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/model.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/queue.d.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/queue.js +47 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/queue.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/run-state.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/run-state.js +13 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/run-state.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/state-machine.d.ts +30 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/state-machine.js +56 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/state-machine.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.d.ts +28 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.js +100 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation/validation.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation.d.ts +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation.js +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/delegation.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/ai-entries.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/ai-entries.js +26 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/ai-entries.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/document-chain.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/document-chain.js +104 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/document-chain.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/local-run-index.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/local-run-index.js +26 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/local-run-index.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/project.d.ts +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/project.js +78 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/project.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/registries.d.ts +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/registries.js +247 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/registries.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-evidence.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-evidence.js +313 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-evidence.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-records.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-records.js +68 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-records.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-trust.d.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-trust.js +121 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/run-trust.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/runtime-contracts.d.ts +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/runtime-contracts.js +279 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/checks/runtime-contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/doctor.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/doctor.js +292 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/doctor.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/model.d.ts +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/model.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/model.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.js +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/render.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/summary.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/summary.js +10 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor/summary.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/doctor.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.d.ts +23 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js +54 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence/lookup.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/contracts.d.ts +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/evidence-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/agent-execution-records.d.ts +31 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/agent-execution-records.js +170 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/agent-execution-records.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/background-executor.d.ts +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/background-executor.js +249 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/background-executor.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/foreground-subagents.d.ts +55 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/foreground-subagents.js +363 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/foreground-subagents.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/host-invocation.d.ts +27 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/host-invocation.js +185 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/host-invocation.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/resident-worker.d.ts +100 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/resident-worker.js +327 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/resident-worker.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.d.ts +112 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js +145 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/stage-team-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/wave-executor.d.ts +45 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/wave-executor.js +178 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution/wave-executor.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution.d.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution.js +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/execution.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.d.ts +53 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.js +111 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance/policy.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/governance.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/index.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/index.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/index.js.map +1 -0
- package/{dist/packages/core/src → node_modules/@sdd-agent-platform/core/dist}/instructions.d.ts +1 -1
- package/node_modules/@sdd-agent-platform/core/dist/instructions.js +147 -0
- package/node_modules/@sdd-agent-platform/core/dist/instructions.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/decision-gate.d.ts +39 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/decision-gate.js +319 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/decision-gate.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/rendering.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/rendering.js +27 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/rendering.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/risk-signals.d.ts +57 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/risk-signals.js +80 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/risk-signals.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.d.ts +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js +207 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle/ship.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle.js +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/lifecycle.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/contracts.d.ts +45 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/index.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/index.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/index.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.d.ts +55 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.js +314 -0
- package/node_modules/@sdd-agent-platform/core/dist/orchestration/runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/path-safety.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/task-graph.d.ts +57 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/task-graph.js +157 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/task-graph.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/wave-plan.d.ts +37 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/wave-plan.js +119 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning/wave-plan.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/planning.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.d.ts +70 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.js +267 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-capability-catalog.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-registry.d.ts +22 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-registry.js +121 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-registry.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.d.ts +61 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.js +69 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/agent-runtime-static.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.js +226 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/capability-sources.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.d.ts +70 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.js +220 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/command-team-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/eval-learning-context.d.ts +64 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/eval-learning-context.js +161 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/eval-learning-context.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/query-status.d.ts +28 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/query-status.js +84 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/query-status.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/skill-capabilities.d.ts +22 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/skill-capabilities.js +16 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/skill-capabilities.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-capabilities.d.ts +20 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-capabilities.js +111 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-capabilities.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-plugins.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-plugins.js +107 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/tool-plugins.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/worker-adapters.d.ts +38 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/worker-adapters.js +99 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/worker-adapters.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.d.ts +19 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.js +89 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries/workflow-gates.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries.d.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries.js +13 -0
- package/node_modules/@sdd-agent-platform/core/dist/registries.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/consumer-diagnostics.d.ts +18 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/consumer-diagnostics.js +77 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/consumer-diagnostics.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/contracts.d.ts +57 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.d.ts +20 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.js +195 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/kernel.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/legacy-adapters.d.ts +33 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/legacy-adapters.js +215 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/legacy-adapters.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.d.ts +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.js +160 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk/workflow-gates.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk.d.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk.js +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/risk.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime-config.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime-config.js +278 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime-config.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime.d.ts +343 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/agent-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/profile-resolution.d.ts +18 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/profile-resolution.js +127 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/profile-resolution.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/risk-policy.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/risk-policy.js +28 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/risk-policy.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-cache.d.ts +39 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-cache.js +59 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-cache.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.d.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.js +318 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-projection.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-sdd-task.d.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-sdd-task.js +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/route-sdd-task.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing-rules.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing-rules.js +68 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing-rules.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing.d.ts +18 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing.js +169 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/routing.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-inspection.d.ts +7 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-inspection.js +102 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-inspection.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-registry.d.ts +17 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-registry.js +82 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-registry.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.d.ts +26 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.js +235 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/runtime-validation.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/team-mode.d.ts +16 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/team-mode.js +134 -0
- package/node_modules/@sdd-agent-platform/core/dist/router/team-mode.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/router.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/router.js +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/router.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.js +113 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/artifacts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/events.d.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/events.js +23 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/events.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.d.ts +102 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.js +83 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/inspect-run.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/invocation-ledger.d.ts +18 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/invocation-ledger.js +99 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/invocation-ledger.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/model.d.ts +203 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/model.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/model.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.d.ts +97 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.js +238 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-index.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-state.d.ts +20 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-state.js +366 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/run-state.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.d.ts +62 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js +130 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state/task-evidence.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state.d.ts +8 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state.js +9 -0
- package/node_modules/@sdd-agent-platform/core/dist/run-state.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/build.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/build.js +61 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/build.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/findings.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/findings.js +274 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/findings.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/model.d.ts +175 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/model.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis/model.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis.d.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis.js +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-analysis.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.d.ts +35 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.js +142 -0
- package/node_modules/@sdd-agent-platform/core/dist/runtime-paths.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/context.d.ts +18 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/context.js +89 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/context.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js +189 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/document-hashes.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.js +88 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/run-binding.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-inspection.d.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-inspection.js +31 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-inspection.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.d.ts +98 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js +538 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-parser.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-rendering.d.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-rendering.js +77 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs/task-rendering.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs.d.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs.js +6 -0
- package/node_modules/@sdd-agent-platform/core/dist/sdd-docs.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/contracts.d.ts +37 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.d.ts +71 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.js +275 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime/runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/stage-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.d.ts +166 -0
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.js +439 -0
- package/node_modules/@sdd-agent-platform/core/dist/status/project-status.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/status.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/status.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/status.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/json-io.d.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/json-io.js +11 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/json-io.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.d.ts +305 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.js +859 -0
- package/node_modules/@sdd-agent-platform/core/dist/storage/runtime-store.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/contracts.d.ts +41 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/runtime.d.ts +43 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/runtime.js +262 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents/runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/subagents.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.d.ts +17 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js +243 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/apply.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.d.ts +110 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js +497 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back/inspect.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/sync-back.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-risk-profile.d.ts +33 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-risk-profile.js +153 -0
- package/node_modules/@sdd-agent-platform/core/dist/task-risk-profile.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/fixtures.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/fixtures.js +384 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/fixtures.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.js +69 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support/run-state.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/test-support.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/tsconfig.tsbuildinfo +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.d.ts +50 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.js +546 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/goal-verify.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.d.ts +51 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js +129 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/rendering.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.d.ts +22 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.js +53 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/review-gate.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.d.ts +29 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.js +425 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/single-task-loop.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.d.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.js +877 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/test-runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.d.ts +58 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js +428 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/validation-wave.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.d.ts +44 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.js +299 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification/verify-contract.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification.d.ts +8 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification.js +8 -0
- package/node_modules/@sdd-agent-platform/core/dist/verification.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/contracts.d.ts +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/contracts.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/contracts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/runtime.d.ts +21 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/runtime.js +90 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units/runtime.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/work-units.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.d.ts +24 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js +182 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/evidence-packet.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js +130 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/hard-checks.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.d.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js +146 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/policy.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.d.ts +89 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.js +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-gate/types.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.d.ts +13 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.js +75 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/affected-file-conflicts.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.d.ts +29 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.js +78 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/dependencies.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.d.ts +38 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js +122 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/latest-eligible-run.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.d.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js +253 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state/resolve.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/workflow-state.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/isolation.d.ts +40 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/isolation.js +89 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/isolation.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/lifecycle.d.ts +39 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/lifecycle.js +221 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree/lifecycle.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree.d.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree.js +3 -0
- package/node_modules/@sdd-agent-platform/core/dist/worktree.js.map +1 -0
- package/node_modules/@sdd-agent-platform/core/package.json +40 -0
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.test.ts +138 -0
- package/node_modules/@sdd-agent-platform/core/src/ai-tools.ts +577 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.test.ts +189 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/ingestion.ts +222 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-evidence.test.ts +28 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-evidence.ts +302 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.test.ts +181 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/sdd-result.ts +231 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts/templates.ts +99 -0
- package/node_modules/@sdd-agent-platform/core/src/artifacts.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/src/coding-facts/contracts.ts +79 -0
- package/node_modules/@sdd-agent-platform/core/src/coding-facts.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.test.ts +306 -0
- package/node_modules/@sdd-agent-platform/core/src/config/init-project.ts +120 -0
- package/node_modules/@sdd-agent-platform/core/src/config/project-config.ts +259 -0
- package/node_modules/@sdd-agent-platform/core/src/config/project-detection.ts +147 -0
- package/node_modules/@sdd-agent-platform/core/src/config/project-status.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/src/config/starter-documents.ts +445 -0
- package/node_modules/@sdd-agent-platform/core/src/context/budget.ts +30 -0
- package/node_modules/@sdd-agent-platform/core/src/context/build-package.ts +317 -0
- package/node_modules/@sdd-agent-platform/core/src/context/command-summary.ts +45 -0
- package/node_modules/@sdd-agent-platform/core/src/context/context-build.test.ts +188 -0
- package/node_modules/@sdd-agent-platform/core/src/context/evidence-summary.ts +144 -0
- package/node_modules/@sdd-agent-platform/core/src/context/log-worker.ts +48 -0
- package/node_modules/@sdd-agent-platform/core/src/context/source-refs.ts +41 -0
- package/node_modules/@sdd-agent-platform/core/src/context-offload/contracts.ts +47 -0
- package/node_modules/@sdd-agent-platform/core/src/context-offload/runtime.test.ts +71 -0
- package/node_modules/@sdd-agent-platform/core/src/context-offload/runtime.ts +178 -0
- package/node_modules/@sdd-agent-platform/core/src/context-offload.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/context.ts +6 -0
- package/node_modules/@sdd-agent-platform/core/src/contracts/issues.ts +13 -0
- package/node_modules/@sdd-agent-platform/core/src/contracts.test.ts +9 -0
- package/node_modules/@sdd-agent-platform/core/src/contracts.ts +116 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/delegation.test.ts +183 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/model.ts +23 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/queue.ts +58 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/run-state.ts +14 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/state-machine.ts +90 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation/validation.ts +124 -0
- package/node_modules/@sdd-agent-platform/core/src/delegation.ts +26 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/ai-entries.ts +28 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/document-chain.ts +112 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/local-run-index.ts +27 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/project.ts +84 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/registries.ts +252 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-evidence.ts +330 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-records.ts +79 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/run-trust.ts +128 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/checks/runtime-contracts.ts +300 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.test.ts +657 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/doctor.ts +319 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/model.ts +13 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor/summary.ts +11 -0
- package/node_modules/@sdd-agent-platform/core/src/doctor.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/evidence/lookup.ts +80 -0
- package/node_modules/@sdd-agent-platform/core/src/evidence-runtime/contracts.ts +49 -0
- package/node_modules/@sdd-agent-platform/core/src/evidence-runtime.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/agent-execution-records.ts +195 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.test.ts +187 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/background-executor.ts +305 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.test.ts +97 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/foreground-subagents.ts +453 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/host-invocation.ts +225 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.test.ts +132 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/resident-worker.ts +436 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.test.ts +102 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/stage-team-runtime.ts +271 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/wave-executor.test.ts +111 -0
- package/node_modules/@sdd-agent-platform/core/src/execution/wave-executor.ts +231 -0
- package/node_modules/@sdd-agent-platform/core/src/execution.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.test.ts +57 -0
- package/node_modules/@sdd-agent-platform/core/src/governance/policy.ts +175 -0
- package/node_modules/@sdd-agent-platform/core/src/governance.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/src/index.test.ts +25 -0
- package/node_modules/@sdd-agent-platform/core/src/index.ts +1 -0
- package/node_modules/@sdd-agent-platform/core/src/instructions.test.ts +49 -0
- package/node_modules/@sdd-agent-platform/core/src/instructions.ts +165 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.test.ts +174 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/decision-gate.ts +373 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/rendering.ts +29 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/risk-signals.ts +146 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle/ship.ts +263 -0
- package/node_modules/@sdd-agent-platform/core/src/lifecycle.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/src/orchestration/contracts.ts +50 -0
- package/node_modules/@sdd-agent-platform/core/src/orchestration/index.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/orchestration/runtime.ts +342 -0
- package/node_modules/@sdd-agent-platform/core/src/path-safety.test.ts +22 -0
- package/node_modules/@sdd-agent-platform/core/src/path-safety.ts +37 -0
- package/node_modules/@sdd-agent-platform/core/src/phase8-contracts.test.ts +243 -0
- package/node_modules/@sdd-agent-platform/core/src/phase8-projection-compat.test.ts +153 -0
- package/node_modules/@sdd-agent-platform/core/src/phase8-risk-kernel.test.ts +277 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/task-graph.test.ts +88 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/task-graph.ts +222 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/wave-plan.test.ts +79 -0
- package/node_modules/@sdd-agent-platform/core/src/planning/wave-plan.ts +160 -0
- package/node_modules/@sdd-agent-platform/core/src/planning.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-capability-catalog.ts +426 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-registry.ts +146 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/agent-runtime-static.ts +142 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/capability-sources.ts +253 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/command-team-runtime.ts +309 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/eval-learning-context.ts +246 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/query-status.ts +119 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/registries.test.ts +429 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/skill-capabilities.ts +37 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-capabilities.ts +135 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/tool-plugins.ts +132 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/worker-adapters.ts +144 -0
- package/node_modules/@sdd-agent-platform/core/src/registries/workflow-gates.ts +111 -0
- package/node_modules/@sdd-agent-platform/core/src/registries.ts +42 -0
- package/node_modules/@sdd-agent-platform/core/src/risk/consumer-diagnostics.ts +97 -0
- package/node_modules/@sdd-agent-platform/core/src/risk/contracts.ts +63 -0
- package/node_modules/@sdd-agent-platform/core/src/risk/kernel.ts +233 -0
- package/node_modules/@sdd-agent-platform/core/src/risk/legacy-adapters.ts +266 -0
- package/node_modules/@sdd-agent-platform/core/src/risk/workflow-gates.ts +203 -0
- package/node_modules/@sdd-agent-platform/core/src/risk.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime-config.ts +327 -0
- package/node_modules/@sdd-agent-platform/core/src/router/agent-runtime.ts +388 -0
- package/node_modules/@sdd-agent-platform/core/src/router/profile-resolution.ts +154 -0
- package/node_modules/@sdd-agent-platform/core/src/router/risk-policy.ts +33 -0
- package/node_modules/@sdd-agent-platform/core/src/router/route-cache.ts +100 -0
- package/node_modules/@sdd-agent-platform/core/src/router/route-projection.ts +357 -0
- package/node_modules/@sdd-agent-platform/core/src/router/route-sdd-task.test.ts +429 -0
- package/node_modules/@sdd-agent-platform/core/src/router/route-sdd-task.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/src/router/routing-rules.ts +73 -0
- package/node_modules/@sdd-agent-platform/core/src/router/routing.ts +192 -0
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-inspection.ts +124 -0
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-registry.ts +123 -0
- package/node_modules/@sdd-agent-platform/core/src/router/runtime-validation.ts +277 -0
- package/node_modules/@sdd-agent-platform/core/src/router/team-mode.ts +170 -0
- package/node_modules/@sdd-agent-platform/core/src/router.ts +4 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/artifacts.ts +118 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/events.ts +27 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/inspect-run.ts +172 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/invocation-ledger.ts +109 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/model.ts +231 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-index.test.ts +52 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-index.ts +356 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.test.ts +70 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/run-state.ts +406 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state/task-evidence.ts +206 -0
- package/node_modules/@sdd-agent-platform/core/src/run-state.ts +8 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/build.ts +63 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/findings.ts +296 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis/model.ts +152 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis.test.ts +68 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-analysis.ts +3 -0
- package/node_modules/@sdd-agent-platform/core/src/runtime-paths.ts +176 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/context.ts +111 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/document-hashes.ts +207 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/run-binding.ts +95 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-inspection.ts +39 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.test.ts +401 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-parser.ts +694 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs/task-rendering.ts +81 -0
- package/node_modules/@sdd-agent-platform/core/src/sdd-docs.ts +5 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/contracts.ts +40 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.test.ts +209 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime/runtime.ts +352 -0
- package/node_modules/@sdd-agent-platform/core/src/stage-runtime.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.test.ts +288 -0
- package/node_modules/@sdd-agent-platform/core/src/status/project-status.ts +625 -0
- package/node_modules/@sdd-agent-platform/core/src/status.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/storage/json-io.ts +10 -0
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.test.ts +489 -0
- package/node_modules/@sdd-agent-platform/core/src/storage/runtime-store.ts +1175 -0
- package/node_modules/@sdd-agent-platform/core/src/subagents/contracts.ts +45 -0
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.test.ts +232 -0
- package/node_modules/@sdd-agent-platform/core/src/subagents/runtime.ts +307 -0
- package/node_modules/@sdd-agent-platform/core/src/subagents.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/sync-back/apply.ts +270 -0
- package/node_modules/@sdd-agent-platform/core/src/sync-back/inspect.ts +655 -0
- package/node_modules/@sdd-agent-platform/core/src/sync-back/sync-back.test.ts +569 -0
- package/node_modules/@sdd-agent-platform/core/src/sync-back.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/task-risk-profile.ts +193 -0
- package/node_modules/@sdd-agent-platform/core/src/test-support/fixtures.ts +398 -0
- package/node_modules/@sdd-agent-platform/core/src/test-support/run-state.ts +70 -0
- package/node_modules/@sdd-agent-platform/core/src/test-support.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/goal-verify.test.ts +335 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/goal-verify.ts +648 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/rendering.ts +181 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.test.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/review-gate.ts +77 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.test.ts +255 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/single-task-loop.ts +494 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.test.ts +439 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/test-runtime.ts +1032 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.test.ts +341 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/validation-wave.ts +513 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.test.ts +204 -0
- package/node_modules/@sdd-agent-platform/core/src/verification/verify-contract.ts +358 -0
- package/node_modules/@sdd-agent-platform/core/src/verification.ts +8 -0
- package/node_modules/@sdd-agent-platform/core/src/work-units/contracts.ts +26 -0
- package/node_modules/@sdd-agent-platform/core/src/work-units/runtime.test.ts +88 -0
- package/node_modules/@sdd-agent-platform/core/src/work-units/runtime.ts +112 -0
- package/node_modules/@sdd-agent-platform/core/src/work-units.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/evidence-packet.ts +196 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.test.ts +171 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/hard-checks.ts +143 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.test.ts +137 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/policy.ts +155 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-gate/types.ts +114 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/affected-file-conflicts.ts +96 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.test.ts +32 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/dependencies.ts +114 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/latest-eligible-run.ts +156 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.test.ts +464 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state/resolve.ts +363 -0
- package/node_modules/@sdd-agent-platform/core/src/workflow-state.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/src/worktree/isolation.ts +130 -0
- package/node_modules/@sdd-agent-platform/core/src/worktree/lifecycle.ts +269 -0
- package/node_modules/@sdd-agent-platform/core/src/worktree/worktree.test.ts +150 -0
- package/node_modules/@sdd-agent-platform/core/src/worktree.ts +2 -0
- package/node_modules/@sdd-agent-platform/core/tsconfig.json +15 -0
- package/package.json +67 -52
- package/packages/cli/dist/args.d.ts +23 -0
- package/packages/cli/dist/args.js +89 -0
- package/packages/cli/dist/args.js.map +1 -0
- package/packages/cli/dist/commands/ai-tools.d.ts +6 -0
- package/packages/cli/dist/commands/ai-tools.js +18 -0
- package/packages/cli/dist/commands/ai-tools.js.map +1 -0
- package/packages/cli/dist/commands/artifact.d.ts +6 -0
- package/packages/cli/dist/commands/artifact.js +168 -0
- package/packages/cli/dist/commands/artifact.js.map +1 -0
- package/packages/cli/dist/commands/context.d.ts +6 -0
- package/packages/cli/dist/commands/context.js +51 -0
- package/packages/cli/dist/commands/context.js.map +1 -0
- package/packages/cli/dist/commands/doctor.d.ts +6 -0
- package/packages/cli/dist/commands/doctor.js +29 -0
- package/packages/cli/dist/commands/doctor.js.map +1 -0
- package/packages/cli/dist/commands/execution.d.ts +6 -0
- package/packages/cli/dist/commands/execution.js +284 -0
- package/packages/cli/dist/commands/execution.js.map +1 -0
- package/packages/cli/dist/commands/governance.d.ts +6 -0
- package/packages/cli/dist/commands/governance.js +37 -0
- package/packages/cli/dist/commands/governance.js.map +1 -0
- package/packages/cli/dist/commands/init.d.ts +6 -0
- package/packages/cli/dist/commands/init.js +22 -0
- package/packages/cli/dist/commands/init.js.map +1 -0
- package/packages/cli/dist/commands/instructions.d.ts +6 -0
- package/packages/cli/dist/commands/instructions.js +15 -0
- package/packages/cli/dist/commands/instructions.js.map +1 -0
- package/packages/cli/dist/commands/lifecycle.d.ts +6 -0
- package/packages/cli/dist/commands/lifecycle.js +112 -0
- package/packages/cli/dist/commands/lifecycle.js.map +1 -0
- package/packages/cli/dist/commands/registry/contracts.d.ts +2 -0
- package/packages/cli/dist/commands/registry/contracts.js +62 -0
- package/packages/cli/dist/commands/registry/contracts.js.map +1 -0
- package/packages/cli/dist/commands/registry/core.d.ts +2 -0
- package/packages/cli/dist/commands/registry/core.js +75 -0
- package/packages/cli/dist/commands/registry/core.js.map +1 -0
- package/packages/cli/dist/commands/registry/platform.d.ts +2 -0
- package/packages/cli/dist/commands/registry/platform.js +123 -0
- package/packages/cli/dist/commands/registry/platform.js.map +1 -0
- package/packages/cli/dist/commands/registry/runtime.d.ts +2 -0
- package/packages/cli/dist/commands/registry/runtime.js +142 -0
- package/packages/cli/dist/commands/registry/runtime.js.map +1 -0
- package/packages/cli/dist/commands/registry/types.d.ts +5 -0
- package/packages/cli/dist/commands/registry/types.js +2 -0
- package/packages/cli/dist/commands/registry/types.js.map +1 -0
- package/packages/cli/dist/commands/registry.d.ts +3 -0
- package/packages/cli/dist/commands/registry.js +11 -0
- package/packages/cli/dist/commands/registry.js.map +1 -0
- package/packages/cli/dist/commands/run.d.ts +6 -0
- package/packages/cli/dist/commands/run.js +173 -0
- package/packages/cli/dist/commands/run.js.map +1 -0
- package/packages/cli/dist/commands/ship.d.ts +6 -0
- package/packages/cli/dist/commands/ship.js +33 -0
- package/packages/cli/dist/commands/ship.js.map +1 -0
- package/packages/cli/dist/commands/status.d.ts +6 -0
- package/packages/cli/dist/commands/status.js +25 -0
- package/packages/cli/dist/commands/status.js.map +1 -0
- package/packages/cli/dist/commands/sync-back.d.ts +6 -0
- package/packages/cli/dist/commands/sync-back.js +82 -0
- package/packages/cli/dist/commands/sync-back.js.map +1 -0
- package/packages/cli/dist/commands/tasks.d.ts +6 -0
- package/packages/cli/dist/commands/tasks.js +78 -0
- package/packages/cli/dist/commands/tasks.js.map +1 -0
- package/packages/cli/dist/commands/test.d.ts +6 -0
- package/packages/cli/dist/commands/test.js +195 -0
- package/packages/cli/dist/commands/test.js.map +1 -0
- package/packages/cli/dist/commands/verifies.d.ts +6 -0
- package/packages/cli/dist/commands/verifies.js +85 -0
- package/packages/cli/dist/commands/verifies.js.map +1 -0
- package/packages/cli/dist/commands/verify.d.ts +6 -0
- package/packages/cli/dist/commands/verify.js +134 -0
- package/packages/cli/dist/commands/verify.js.map +1 -0
- package/packages/cli/dist/dispatch.d.ts +7 -0
- package/packages/cli/dist/dispatch.js +121 -0
- package/packages/cli/dist/dispatch.js.map +1 -0
- package/packages/cli/dist/help.d.ts +4 -0
- package/packages/cli/dist/help.js +177 -0
- package/packages/cli/dist/help.js.map +1 -0
- package/packages/cli/dist/identity.d.ts +7 -0
- package/packages/cli/dist/identity.js +51 -0
- package/packages/cli/dist/identity.js.map +1 -0
- package/packages/cli/dist/main.js +17 -0
- package/packages/cli/dist/main.js.map +1 -0
- package/{dist/packages/cli/src → packages/cli/dist}/options.d.ts +2 -0
- package/{dist/packages/cli/src → packages/cli/dist}/options.js +6 -0
- package/packages/cli/dist/options.js.map +1 -0
- package/packages/cli/dist/renderers/artifacts.d.ts +5 -0
- package/packages/cli/dist/renderers/artifacts.js +43 -0
- package/packages/cli/dist/renderers/artifacts.js.map +1 -0
- package/packages/cli/dist/renderers/context.d.ts +4 -0
- package/packages/cli/dist/renderers/context.js +47 -0
- package/packages/cli/dist/renderers/context.js.map +1 -0
- package/packages/cli/dist/renderers/doctor.d.ts +5 -0
- package/packages/cli/dist/renderers/doctor.js +31 -0
- package/packages/cli/dist/renderers/doctor.js.map +1 -0
- package/packages/cli/dist/renderers/execution.d.ts +13 -0
- package/packages/cli/dist/renderers/execution.js +133 -0
- package/packages/cli/dist/renderers/execution.js.map +1 -0
- package/packages/cli/dist/renderers/governance.d.ts +3 -0
- package/packages/cli/dist/renderers/governance.js +23 -0
- package/packages/cli/dist/renderers/governance.js.map +1 -0
- package/packages/cli/dist/renderers/issues.d.ts +24 -0
- package/packages/cli/dist/renderers/issues.js +37 -0
- package/packages/cli/dist/renderers/issues.js.map +1 -0
- package/packages/cli/dist/renderers/json.d.ts +3 -0
- package/packages/cli/dist/renderers/json.js +10 -0
- package/packages/cli/dist/renderers/json.js.map +1 -0
- package/packages/cli/dist/renderers/lifecycle.d.ts +2 -0
- package/packages/cli/dist/renderers/lifecycle.js +30 -0
- package/packages/cli/dist/renderers/lifecycle.js.map +1 -0
- package/packages/cli/dist/renderers/planning.d.ts +4 -0
- package/packages/cli/dist/renderers/planning.js +66 -0
- package/packages/cli/dist/renderers/planning.js.map +1 -0
- package/packages/cli/dist/renderers/registry-contracts.d.ts +10 -0
- package/packages/cli/dist/renderers/registry-contracts.js +128 -0
- package/packages/cli/dist/renderers/registry-contracts.js.map +1 -0
- package/packages/cli/dist/renderers/registry-core.d.ts +8 -0
- package/packages/cli/dist/renderers/registry-core.js +93 -0
- package/packages/cli/dist/renderers/registry-core.js.map +1 -0
- package/packages/cli/dist/renderers/registry-platform.d.ts +12 -0
- package/packages/cli/dist/renderers/registry-platform.js +112 -0
- package/packages/cli/dist/renderers/registry-platform.js.map +1 -0
- package/packages/cli/dist/renderers/registry-runtime.d.ts +16 -0
- package/packages/cli/dist/renderers/registry-runtime.js +206 -0
- package/packages/cli/dist/renderers/registry-runtime.js.map +1 -0
- package/packages/cli/dist/renderers/registry-shared.d.ts +3 -0
- package/packages/cli/dist/renderers/registry-shared.js +15 -0
- package/packages/cli/dist/renderers/registry-shared.js.map +1 -0
- package/packages/cli/dist/renderers/registry.d.ts +5 -0
- package/packages/cli/dist/renderers/registry.js +6 -0
- package/packages/cli/dist/renderers/registry.js.map +1 -0
- package/packages/cli/dist/renderers/router.d.ts +2 -0
- package/packages/cli/dist/renderers/router.js +34 -0
- package/packages/cli/dist/renderers/router.js.map +1 -0
- package/packages/cli/dist/renderers/workflow.d.ts +19 -0
- package/packages/cli/dist/renderers/workflow.js +274 -0
- package/packages/cli/dist/renderers/workflow.js.map +1 -0
- package/packages/cli/dist/renderers/worktree.d.ts +5 -0
- package/packages/cli/dist/renderers/worktree.js +41 -0
- package/packages/cli/dist/renderers/worktree.js.map +1 -0
- package/packages/cli/dist/test-support/run-cli.d.ts +6 -0
- package/packages/cli/dist/test-support/run-cli.js +15 -0
- package/packages/cli/dist/test-support/run-cli.js.map +1 -0
- package/packages/cli/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/cli/package.json +15 -0
- package/packages/core/dist/ai-tools.d.ts +68 -0
- package/packages/core/dist/ai-tools.js +464 -0
- package/packages/core/dist/ai-tools.js.map +1 -0
- package/packages/core/dist/artifacts/ingestion.d.ts +24 -0
- package/packages/core/dist/artifacts/ingestion.js +181 -0
- package/packages/core/dist/artifacts/ingestion.js.map +1 -0
- package/packages/core/dist/artifacts/sdd-evidence.d.ts +47 -0
- package/packages/core/dist/artifacts/sdd-evidence.js +241 -0
- package/packages/core/dist/artifacts/sdd-evidence.js.map +1 -0
- package/packages/core/dist/artifacts/sdd-result.d.ts +29 -0
- package/packages/core/dist/artifacts/sdd-result.js +198 -0
- package/packages/core/dist/artifacts/sdd-result.js.map +1 -0
- package/packages/core/dist/artifacts/templates.d.ts +10 -0
- package/packages/core/dist/artifacts/templates.js +79 -0
- package/packages/core/dist/artifacts/templates.js.map +1 -0
- package/packages/core/dist/artifacts.d.ts +4 -0
- package/packages/core/dist/artifacts.js +5 -0
- package/packages/core/dist/artifacts.js.map +1 -0
- package/packages/core/dist/coding-facts/contracts.d.ts +71 -0
- package/packages/core/dist/coding-facts/contracts.js +2 -0
- package/packages/core/dist/coding-facts/contracts.js.map +1 -0
- package/packages/core/dist/coding-facts.d.ts +1 -0
- package/packages/core/dist/coding-facts.js +2 -0
- package/packages/core/dist/coding-facts.js.map +1 -0
- package/packages/core/dist/config/init-project.d.ts +31 -0
- package/packages/core/dist/config/init-project.js +89 -0
- package/packages/core/dist/config/init-project.js.map +1 -0
- package/packages/core/dist/config/project-config.d.ts +49 -0
- package/packages/core/dist/config/project-config.js +202 -0
- package/packages/core/dist/config/project-config.js.map +1 -0
- package/packages/core/dist/config/project-detection.d.ts +21 -0
- package/packages/core/dist/config/project-detection.js +111 -0
- package/packages/core/dist/config/project-detection.js.map +1 -0
- package/packages/core/dist/config/project-status.d.ts +1 -0
- package/packages/core/dist/config/project-status.js +2 -0
- package/packages/core/dist/config/project-status.js.map +1 -0
- package/packages/core/dist/config/starter-documents.d.ts +4 -0
- package/packages/core/dist/config/starter-documents.js +441 -0
- package/packages/core/dist/config/starter-documents.js.map +1 -0
- package/packages/core/dist/context/budget.d.ts +10 -0
- package/packages/core/dist/context/budget.js +20 -0
- package/packages/core/dist/context/budget.js.map +1 -0
- package/packages/core/dist/context/build-package.d.ts +46 -0
- package/packages/core/dist/context/build-package.js +244 -0
- package/packages/core/dist/context/build-package.js.map +1 -0
- package/packages/core/dist/context/command-summary.d.ts +14 -0
- package/packages/core/dist/context/command-summary.js +34 -0
- package/packages/core/dist/context/command-summary.js.map +1 -0
- package/packages/core/dist/context/evidence-summary.d.ts +50 -0
- package/packages/core/dist/context/evidence-summary.js +86 -0
- package/packages/core/dist/context/evidence-summary.js.map +1 -0
- package/packages/core/dist/context/log-worker.d.ts +19 -0
- package/packages/core/dist/context/log-worker.js +28 -0
- package/packages/core/dist/context/log-worker.js.map +1 -0
- package/packages/core/dist/context/source-refs.d.ts +9 -0
- package/packages/core/dist/context/source-refs.js +30 -0
- package/packages/core/dist/context/source-refs.js.map +1 -0
- package/packages/core/dist/context-offload/contracts.d.ts +43 -0
- package/packages/core/dist/context-offload/contracts.js +2 -0
- package/packages/core/dist/context-offload/contracts.js.map +1 -0
- package/packages/core/dist/context-offload/runtime.d.ts +36 -0
- package/packages/core/dist/context-offload/runtime.js +142 -0
- package/packages/core/dist/context-offload/runtime.js.map +1 -0
- package/packages/core/dist/context-offload.d.ts +2 -0
- package/packages/core/dist/context-offload.js +3 -0
- package/packages/core/dist/context-offload.js.map +1 -0
- package/packages/core/dist/context.d.ts +6 -0
- package/packages/core/dist/context.js +7 -0
- package/packages/core/dist/context.js.map +1 -0
- package/packages/core/dist/contracts/issues.d.ts +7 -0
- package/packages/core/dist/contracts/issues.js +7 -0
- package/packages/core/dist/contracts/issues.js.map +1 -0
- package/packages/core/dist/contracts.d.ts +110 -0
- package/packages/core/dist/contracts.js +75 -0
- package/packages/core/dist/contracts.js.map +1 -0
- package/packages/core/dist/delegation/model.d.ts +21 -0
- package/packages/core/dist/delegation/model.js +2 -0
- package/packages/core/dist/delegation/model.js.map +1 -0
- package/packages/core/dist/delegation/queue.d.ts +10 -0
- package/packages/core/dist/delegation/queue.js +47 -0
- package/packages/core/dist/delegation/queue.js.map +1 -0
- package/packages/core/dist/delegation/run-state.d.ts +2 -0
- package/packages/core/dist/delegation/run-state.js +13 -0
- package/packages/core/dist/delegation/run-state.js.map +1 -0
- package/packages/core/dist/delegation/state-machine.d.ts +30 -0
- package/packages/core/dist/delegation/state-machine.js +56 -0
- package/packages/core/dist/delegation/state-machine.js.map +1 -0
- package/packages/core/dist/delegation/validation.d.ts +28 -0
- package/packages/core/dist/delegation/validation.js +100 -0
- package/packages/core/dist/delegation/validation.js.map +1 -0
- package/packages/core/dist/delegation.d.ts +7 -0
- package/packages/core/dist/delegation.js +6 -0
- package/packages/core/dist/delegation.js.map +1 -0
- package/packages/core/dist/doctor/checks/ai-entries.d.ts +2 -0
- package/packages/core/dist/doctor/checks/ai-entries.js +26 -0
- package/packages/core/dist/doctor/checks/ai-entries.js.map +1 -0
- package/packages/core/dist/doctor/checks/document-chain.d.ts +2 -0
- package/packages/core/dist/doctor/checks/document-chain.js +104 -0
- package/packages/core/dist/doctor/checks/document-chain.js.map +1 -0
- package/packages/core/dist/doctor/checks/local-run-index.d.ts +2 -0
- package/packages/core/dist/doctor/checks/local-run-index.js +26 -0
- package/packages/core/dist/doctor/checks/local-run-index.js.map +1 -0
- package/packages/core/dist/doctor/checks/project.d.ts +11 -0
- package/packages/core/dist/doctor/checks/project.js +78 -0
- package/packages/core/dist/doctor/checks/project.js.map +1 -0
- package/packages/core/dist/doctor/checks/registries.d.ts +11 -0
- package/packages/core/dist/doctor/checks/registries.js +247 -0
- package/packages/core/dist/doctor/checks/registries.js.map +1 -0
- package/packages/core/dist/doctor/checks/run-evidence.d.ts +6 -0
- package/packages/core/dist/doctor/checks/run-evidence.js +313 -0
- package/packages/core/dist/doctor/checks/run-evidence.js.map +1 -0
- package/packages/core/dist/doctor/checks/run-records.d.ts +4 -0
- package/packages/core/dist/doctor/checks/run-records.js +68 -0
- package/packages/core/dist/doctor/checks/run-records.js.map +1 -0
- package/packages/core/dist/doctor/checks/run-trust.d.ts +3 -0
- package/packages/core/dist/doctor/checks/run-trust.js +121 -0
- package/packages/core/dist/doctor/checks/run-trust.js.map +1 -0
- package/packages/core/dist/doctor/checks/runtime-contracts.d.ts +11 -0
- package/packages/core/dist/doctor/checks/runtime-contracts.js +279 -0
- package/packages/core/dist/doctor/checks/runtime-contracts.js.map +1 -0
- package/packages/core/dist/doctor/doctor.d.ts +6 -0
- package/packages/core/dist/doctor/doctor.js +292 -0
- package/packages/core/dist/doctor/doctor.js.map +1 -0
- package/packages/core/dist/doctor/model.d.ts +11 -0
- package/packages/core/dist/doctor/model.js +2 -0
- package/packages/core/dist/doctor/model.js.map +1 -0
- package/packages/core/dist/doctor/render.d.ts +2 -0
- package/packages/core/dist/doctor/render.js +44 -0
- package/packages/core/dist/doctor/render.js.map +1 -0
- package/packages/core/dist/doctor/summary.d.ts +2 -0
- package/packages/core/dist/doctor/summary.js +10 -0
- package/packages/core/dist/doctor/summary.js.map +1 -0
- package/packages/core/dist/doctor.d.ts +2 -0
- package/packages/core/dist/doctor.js +3 -0
- package/packages/core/dist/doctor.js.map +1 -0
- package/packages/core/dist/evidence/lookup.d.ts +23 -0
- package/packages/core/dist/evidence/lookup.js +54 -0
- package/packages/core/dist/evidence/lookup.js.map +1 -0
- package/packages/core/dist/evidence-runtime/contracts.d.ts +44 -0
- package/packages/core/dist/evidence-runtime/contracts.js +2 -0
- package/packages/core/dist/evidence-runtime/contracts.js.map +1 -0
- package/packages/core/dist/evidence-runtime.d.ts +1 -0
- package/packages/core/dist/evidence-runtime.js +2 -0
- package/packages/core/dist/evidence-runtime.js.map +1 -0
- package/packages/core/dist/execution/agent-execution-records.d.ts +31 -0
- package/packages/core/dist/execution/agent-execution-records.js +170 -0
- package/packages/core/dist/execution/agent-execution-records.js.map +1 -0
- package/packages/core/dist/execution/background-executor.d.ts +44 -0
- package/packages/core/dist/execution/background-executor.js +249 -0
- package/packages/core/dist/execution/background-executor.js.map +1 -0
- package/packages/core/dist/execution/foreground-subagents.d.ts +55 -0
- package/packages/core/dist/execution/foreground-subagents.js +363 -0
- package/packages/core/dist/execution/foreground-subagents.js.map +1 -0
- package/packages/core/dist/execution/host-invocation.d.ts +27 -0
- package/packages/core/dist/execution/host-invocation.js +185 -0
- package/packages/core/dist/execution/host-invocation.js.map +1 -0
- package/packages/core/dist/execution/resident-worker.d.ts +100 -0
- package/packages/core/dist/execution/resident-worker.js +327 -0
- package/packages/core/dist/execution/resident-worker.js.map +1 -0
- package/packages/core/dist/execution/stage-team-runtime.d.ts +112 -0
- package/packages/core/dist/execution/stage-team-runtime.js +145 -0
- package/packages/core/dist/execution/stage-team-runtime.js.map +1 -0
- package/packages/core/dist/execution/wave-executor.d.ts +45 -0
- package/packages/core/dist/execution/wave-executor.js +178 -0
- package/packages/core/dist/execution/wave-executor.js.map +1 -0
- package/packages/core/dist/execution.d.ts +5 -0
- package/packages/core/dist/execution.js +6 -0
- package/packages/core/dist/execution.js.map +1 -0
- package/packages/core/dist/governance/policy.d.ts +53 -0
- package/packages/core/dist/governance/policy.js +111 -0
- package/packages/core/dist/governance/policy.js.map +1 -0
- package/packages/core/dist/governance.d.ts +1 -0
- package/packages/core/dist/governance.js +2 -0
- package/packages/core/dist/governance.js.map +1 -0
- package/packages/core/dist/index.d.ts +1 -0
- package/packages/core/dist/index.js +2 -0
- package/packages/core/dist/index.js.map +1 -0
- package/packages/core/dist/instructions.d.ts +14 -0
- package/packages/core/dist/instructions.js +147 -0
- package/packages/core/dist/instructions.js.map +1 -0
- package/packages/core/dist/lifecycle/decision-gate.d.ts +39 -0
- package/packages/core/dist/lifecycle/decision-gate.js +319 -0
- package/packages/core/dist/lifecycle/decision-gate.js.map +1 -0
- package/packages/core/dist/lifecycle/rendering.d.ts +2 -0
- package/packages/core/dist/lifecycle/rendering.js +27 -0
- package/packages/core/dist/lifecycle/rendering.js.map +1 -0
- package/packages/core/dist/lifecycle/risk-signals.d.ts +57 -0
- package/packages/core/dist/lifecycle/risk-signals.js +80 -0
- package/packages/core/dist/lifecycle/risk-signals.js.map +1 -0
- package/packages/core/dist/lifecycle/ship.d.ts +44 -0
- package/packages/core/dist/lifecycle/ship.js +207 -0
- package/packages/core/dist/lifecycle/ship.js.map +1 -0
- package/packages/core/dist/lifecycle.d.ts +4 -0
- package/packages/core/dist/lifecycle.js +5 -0
- package/packages/core/dist/lifecycle.js.map +1 -0
- package/packages/core/dist/orchestration/contracts.d.ts +45 -0
- package/packages/core/dist/orchestration/contracts.js +2 -0
- package/packages/core/dist/orchestration/contracts.js.map +1 -0
- package/packages/core/dist/orchestration/index.d.ts +2 -0
- package/packages/core/dist/orchestration/index.js +3 -0
- package/packages/core/dist/orchestration/index.js.map +1 -0
- package/packages/core/dist/orchestration/runtime.d.ts +55 -0
- package/packages/core/dist/orchestration/runtime.js +314 -0
- package/packages/core/dist/orchestration/runtime.js.map +1 -0
- package/packages/core/dist/path-safety.d.ts +4 -0
- package/packages/core/dist/path-safety.js +35 -0
- package/packages/core/dist/path-safety.js.map +1 -0
- package/packages/core/dist/planning/task-graph.d.ts +57 -0
- package/packages/core/dist/planning/task-graph.js +157 -0
- package/packages/core/dist/planning/task-graph.js.map +1 -0
- package/packages/core/dist/planning/wave-plan.d.ts +37 -0
- package/packages/core/dist/planning/wave-plan.js +119 -0
- package/packages/core/dist/planning/wave-plan.js.map +1 -0
- package/packages/core/dist/planning.d.ts +2 -0
- package/packages/core/dist/planning.js +3 -0
- package/packages/core/dist/planning.js.map +1 -0
- package/packages/core/dist/registries/agent-capability-catalog.d.ts +70 -0
- package/packages/core/dist/registries/agent-capability-catalog.js +267 -0
- package/packages/core/dist/registries/agent-capability-catalog.js.map +1 -0
- package/packages/core/dist/registries/agent-registry.d.ts +22 -0
- package/packages/core/dist/registries/agent-registry.js +121 -0
- package/packages/core/dist/registries/agent-registry.js.map +1 -0
- package/packages/core/dist/registries/agent-runtime-static.d.ts +61 -0
- package/packages/core/dist/registries/agent-runtime-static.js +69 -0
- package/packages/core/dist/registries/agent-runtime-static.js.map +1 -0
- package/packages/core/dist/registries/capability-sources.d.ts +2 -0
- package/packages/core/dist/registries/capability-sources.js +226 -0
- package/packages/core/dist/registries/capability-sources.js.map +1 -0
- package/packages/core/dist/registries/command-team-runtime.d.ts +70 -0
- package/packages/core/dist/registries/command-team-runtime.js +220 -0
- package/packages/core/dist/registries/command-team-runtime.js.map +1 -0
- package/packages/core/dist/registries/eval-learning-context.d.ts +64 -0
- package/packages/core/dist/registries/eval-learning-context.js +161 -0
- package/packages/core/dist/registries/eval-learning-context.js.map +1 -0
- package/packages/core/dist/registries/query-status.d.ts +28 -0
- package/packages/core/dist/registries/query-status.js +84 -0
- package/packages/core/dist/registries/query-status.js.map +1 -0
- package/packages/core/dist/registries/skill-capabilities.d.ts +22 -0
- package/packages/core/dist/registries/skill-capabilities.js +16 -0
- package/packages/core/dist/registries/skill-capabilities.js.map +1 -0
- package/packages/core/dist/registries/tool-capabilities.d.ts +20 -0
- package/packages/core/dist/registries/tool-capabilities.js +111 -0
- package/packages/core/dist/registries/tool-capabilities.js.map +1 -0
- package/packages/core/dist/registries/tool-plugins.d.ts +21 -0
- package/packages/core/dist/registries/tool-plugins.js +107 -0
- package/packages/core/dist/registries/tool-plugins.js.map +1 -0
- package/packages/core/dist/registries/worker-adapters.d.ts +38 -0
- package/packages/core/dist/registries/worker-adapters.js +99 -0
- package/packages/core/dist/registries/worker-adapters.js.map +1 -0
- package/packages/core/dist/registries/workflow-gates.d.ts +19 -0
- package/packages/core/dist/registries/workflow-gates.js +89 -0
- package/packages/core/dist/registries/workflow-gates.js.map +1 -0
- package/packages/core/dist/registries.d.ts +14 -0
- package/packages/core/dist/registries.js +13 -0
- package/packages/core/dist/registries.js.map +1 -0
- package/packages/core/dist/risk/consumer-diagnostics.d.ts +18 -0
- package/packages/core/dist/risk/consumer-diagnostics.js +77 -0
- package/packages/core/dist/risk/consumer-diagnostics.js.map +1 -0
- package/packages/core/dist/risk/contracts.d.ts +57 -0
- package/packages/core/dist/risk/contracts.js +2 -0
- package/packages/core/dist/risk/contracts.js.map +1 -0
- package/packages/core/dist/risk/kernel.d.ts +20 -0
- package/packages/core/dist/risk/kernel.js +195 -0
- package/packages/core/dist/risk/kernel.js.map +1 -0
- package/packages/core/dist/risk/legacy-adapters.d.ts +33 -0
- package/packages/core/dist/risk/legacy-adapters.js +215 -0
- package/packages/core/dist/risk/legacy-adapters.js.map +1 -0
- package/packages/core/dist/risk/workflow-gates.d.ts +24 -0
- package/packages/core/dist/risk/workflow-gates.js +160 -0
- package/packages/core/dist/risk/workflow-gates.js.map +1 -0
- package/packages/core/dist/risk.d.ts +5 -0
- package/packages/core/dist/risk.js +6 -0
- package/packages/core/dist/risk.js.map +1 -0
- package/packages/core/dist/router/agent-runtime-config.d.ts +4 -0
- package/packages/core/dist/router/agent-runtime-config.js +278 -0
- package/packages/core/dist/router/agent-runtime-config.js.map +1 -0
- package/packages/core/dist/router/agent-runtime.d.ts +343 -0
- package/packages/core/dist/router/agent-runtime.js +2 -0
- package/packages/core/dist/router/agent-runtime.js.map +1 -0
- package/packages/core/dist/router/profile-resolution.d.ts +18 -0
- package/packages/core/dist/router/profile-resolution.js +127 -0
- package/packages/core/dist/router/profile-resolution.js.map +1 -0
- package/packages/core/dist/router/risk-policy.d.ts +6 -0
- package/packages/core/dist/router/risk-policy.js +28 -0
- package/packages/core/dist/router/risk-policy.js.map +1 -0
- package/packages/core/dist/router/route-cache.d.ts +39 -0
- package/packages/core/dist/router/route-cache.js +59 -0
- package/packages/core/dist/router/route-cache.js.map +1 -0
- package/packages/core/dist/router/route-projection.d.ts +14 -0
- package/packages/core/dist/router/route-projection.js +318 -0
- package/packages/core/dist/router/route-projection.js.map +1 -0
- package/packages/core/dist/router/route-sdd-task.d.ts +3 -0
- package/packages/core/dist/router/route-sdd-task.js +4 -0
- package/packages/core/dist/router/route-sdd-task.js.map +1 -0
- package/packages/core/dist/router/routing-rules.d.ts +4 -0
- package/packages/core/dist/router/routing-rules.js +68 -0
- package/packages/core/dist/router/routing-rules.js.map +1 -0
- package/packages/core/dist/router/routing.d.ts +18 -0
- package/packages/core/dist/router/routing.js +169 -0
- package/packages/core/dist/router/routing.js.map +1 -0
- package/packages/core/dist/router/runtime-inspection.d.ts +7 -0
- package/packages/core/dist/router/runtime-inspection.js +102 -0
- package/packages/core/dist/router/runtime-inspection.js.map +1 -0
- package/packages/core/dist/router/runtime-registry.d.ts +17 -0
- package/packages/core/dist/router/runtime-registry.js +82 -0
- package/packages/core/dist/router/runtime-registry.js.map +1 -0
- package/packages/core/dist/router/runtime-validation.d.ts +26 -0
- package/packages/core/dist/router/runtime-validation.js +235 -0
- package/packages/core/dist/router/runtime-validation.js.map +1 -0
- package/packages/core/dist/router/team-mode.d.ts +16 -0
- package/packages/core/dist/router/team-mode.js +134 -0
- package/packages/core/dist/router/team-mode.js.map +1 -0
- package/packages/core/dist/router.d.ts +4 -0
- package/packages/core/dist/router.js +5 -0
- package/packages/core/dist/router.js.map +1 -0
- package/packages/core/dist/run-state/artifacts.d.ts +6 -0
- package/packages/core/dist/run-state/artifacts.js +113 -0
- package/packages/core/dist/run-state/artifacts.js.map +1 -0
- package/packages/core/dist/run-state/events.d.ts +3 -0
- package/packages/core/dist/run-state/events.js +23 -0
- package/packages/core/dist/run-state/events.js.map +1 -0
- package/packages/core/dist/run-state/inspect-run.d.ts +102 -0
- package/packages/core/dist/run-state/inspect-run.js +83 -0
- package/packages/core/dist/run-state/inspect-run.js.map +1 -0
- package/packages/core/dist/run-state/invocation-ledger.d.ts +18 -0
- package/packages/core/dist/run-state/invocation-ledger.js +99 -0
- package/packages/core/dist/run-state/invocation-ledger.js.map +1 -0
- package/packages/core/dist/run-state/model.d.ts +203 -0
- package/packages/core/dist/run-state/model.js +2 -0
- package/packages/core/dist/run-state/model.js.map +1 -0
- package/packages/core/dist/run-state/run-index.d.ts +97 -0
- package/packages/core/dist/run-state/run-index.js +238 -0
- package/packages/core/dist/run-state/run-index.js.map +1 -0
- package/packages/core/dist/run-state/run-state.d.ts +20 -0
- package/packages/core/dist/run-state/run-state.js +366 -0
- package/packages/core/dist/run-state/run-state.js.map +1 -0
- package/packages/core/dist/run-state/task-evidence.d.ts +62 -0
- package/packages/core/dist/run-state/task-evidence.js +130 -0
- package/packages/core/dist/run-state/task-evidence.js.map +1 -0
- package/packages/core/dist/run-state.d.ts +8 -0
- package/packages/core/dist/run-state.js +9 -0
- package/packages/core/dist/run-state.js.map +1 -0
- package/packages/core/dist/runtime-analysis/build.d.ts +2 -0
- package/packages/core/dist/runtime-analysis/build.js +61 -0
- package/packages/core/dist/runtime-analysis/build.js.map +1 -0
- package/packages/core/dist/runtime-analysis/findings.d.ts +4 -0
- package/packages/core/dist/runtime-analysis/findings.js +274 -0
- package/packages/core/dist/runtime-analysis/findings.js.map +1 -0
- package/packages/core/dist/runtime-analysis/model.d.ts +175 -0
- package/packages/core/dist/runtime-analysis/model.js +2 -0
- package/packages/core/dist/runtime-analysis/model.js.map +1 -0
- package/packages/core/dist/runtime-analysis.d.ts +3 -0
- package/packages/core/dist/runtime-analysis.js +4 -0
- package/packages/core/dist/runtime-analysis.js.map +1 -0
- package/packages/core/dist/runtime-paths.d.ts +35 -0
- package/packages/core/dist/runtime-paths.js +142 -0
- package/packages/core/dist/runtime-paths.js.map +1 -0
- package/packages/core/dist/sdd-docs/context.d.ts +18 -0
- package/packages/core/dist/sdd-docs/context.js +89 -0
- package/packages/core/dist/sdd-docs/context.js.map +1 -0
- package/packages/core/dist/sdd-docs/document-hashes.d.ts +4 -0
- package/packages/core/dist/sdd-docs/document-hashes.js +189 -0
- package/packages/core/dist/sdd-docs/document-hashes.js.map +1 -0
- package/packages/core/dist/sdd-docs/run-binding.d.ts +6 -0
- package/packages/core/dist/sdd-docs/run-binding.js +88 -0
- package/packages/core/dist/sdd-docs/run-binding.js.map +1 -0
- package/packages/core/dist/sdd-docs/task-inspection.d.ts +6 -0
- package/packages/core/dist/sdd-docs/task-inspection.js +31 -0
- package/packages/core/dist/sdd-docs/task-inspection.js.map +1 -0
- package/packages/core/dist/sdd-docs/task-parser.d.ts +98 -0
- package/packages/core/dist/sdd-docs/task-parser.js +538 -0
- package/packages/core/dist/sdd-docs/task-parser.js.map +1 -0
- package/packages/core/dist/sdd-docs/task-rendering.d.ts +5 -0
- package/packages/core/dist/sdd-docs/task-rendering.js +77 -0
- package/packages/core/dist/sdd-docs/task-rendering.js.map +1 -0
- package/packages/core/dist/sdd-docs.d.ts +5 -0
- package/packages/core/dist/sdd-docs.js +6 -0
- package/packages/core/dist/sdd-docs.js.map +1 -0
- package/packages/core/dist/stage-runtime/contracts.d.ts +37 -0
- package/packages/core/dist/stage-runtime/contracts.js +2 -0
- package/packages/core/dist/stage-runtime/contracts.js.map +1 -0
- package/packages/core/dist/stage-runtime/runtime.d.ts +71 -0
- package/packages/core/dist/stage-runtime/runtime.js +275 -0
- package/packages/core/dist/stage-runtime/runtime.js.map +1 -0
- package/packages/core/dist/stage-runtime.d.ts +2 -0
- package/packages/core/dist/stage-runtime.js +3 -0
- package/packages/core/dist/stage-runtime.js.map +1 -0
- package/packages/core/dist/status/project-status.d.ts +166 -0
- package/packages/core/dist/status/project-status.js +439 -0
- package/packages/core/dist/status/project-status.js.map +1 -0
- package/packages/core/dist/status.d.ts +2 -0
- package/packages/core/dist/status.js +3 -0
- package/packages/core/dist/status.js.map +1 -0
- package/packages/core/dist/storage/json-io.d.ts +1 -0
- package/packages/core/dist/storage/json-io.js +11 -0
- package/packages/core/dist/storage/json-io.js.map +1 -0
- package/packages/core/dist/storage/runtime-store.d.ts +305 -0
- package/packages/core/dist/storage/runtime-store.js +859 -0
- package/packages/core/dist/storage/runtime-store.js.map +1 -0
- package/packages/core/dist/subagents/contracts.d.ts +41 -0
- package/packages/core/dist/subagents/contracts.js +2 -0
- package/packages/core/dist/subagents/contracts.js.map +1 -0
- package/packages/core/dist/subagents/runtime.d.ts +43 -0
- package/packages/core/dist/subagents/runtime.js +262 -0
- package/packages/core/dist/subagents/runtime.js.map +1 -0
- package/packages/core/dist/subagents.d.ts +2 -0
- package/packages/core/dist/subagents.js +3 -0
- package/packages/core/dist/subagents.js.map +1 -0
- package/packages/core/dist/sync-back/apply.d.ts +17 -0
- package/packages/core/dist/sync-back/apply.js +243 -0
- package/packages/core/dist/sync-back/apply.js.map +1 -0
- package/packages/core/dist/sync-back/inspect.d.ts +110 -0
- package/packages/core/dist/sync-back/inspect.js +497 -0
- package/packages/core/dist/sync-back/inspect.js.map +1 -0
- package/packages/core/dist/sync-back.d.ts +2 -0
- package/packages/core/dist/sync-back.js +3 -0
- package/packages/core/dist/sync-back.js.map +1 -0
- package/packages/core/dist/task-risk-profile.d.ts +33 -0
- package/packages/core/dist/task-risk-profile.js +153 -0
- package/packages/core/dist/task-risk-profile.js.map +1 -0
- package/packages/core/dist/test-support/fixtures.d.ts +21 -0
- package/packages/core/dist/test-support/fixtures.js +384 -0
- package/packages/core/dist/test-support/fixtures.js.map +1 -0
- package/packages/core/dist/test-support/run-state.d.ts +2 -0
- package/packages/core/dist/test-support/run-state.js +69 -0
- package/packages/core/dist/test-support/run-state.js.map +1 -0
- package/packages/core/dist/test-support.d.ts +2 -0
- package/packages/core/dist/test-support.js +3 -0
- package/packages/core/dist/test-support.js.map +1 -0
- package/packages/core/dist/tsconfig.tsbuildinfo +1 -0
- package/packages/core/dist/verification/goal-verify.d.ts +50 -0
- package/packages/core/dist/verification/goal-verify.js +546 -0
- package/packages/core/dist/verification/goal-verify.js.map +1 -0
- package/packages/core/dist/verification/rendering.d.ts +51 -0
- package/packages/core/dist/verification/rendering.js +129 -0
- package/packages/core/dist/verification/rendering.js.map +1 -0
- package/packages/core/dist/verification/review-gate.d.ts +22 -0
- package/packages/core/dist/verification/review-gate.js +53 -0
- package/packages/core/dist/verification/review-gate.js.map +1 -0
- package/packages/core/dist/verification/single-task-loop.d.ts +29 -0
- package/packages/core/dist/verification/single-task-loop.js +425 -0
- package/packages/core/dist/verification/single-task-loop.js.map +1 -0
- package/packages/core/dist/verification/test-runtime.d.ts +77 -0
- package/packages/core/dist/verification/test-runtime.js +877 -0
- package/packages/core/dist/verification/test-runtime.js.map +1 -0
- package/packages/core/dist/verification/validation-wave.d.ts +58 -0
- package/packages/core/dist/verification/validation-wave.js +428 -0
- package/packages/core/dist/verification/validation-wave.js.map +1 -0
- package/packages/core/dist/verification/verify-contract.d.ts +44 -0
- package/packages/core/dist/verification/verify-contract.js +299 -0
- package/packages/core/dist/verification/verify-contract.js.map +1 -0
- package/packages/core/dist/verification.d.ts +8 -0
- package/packages/core/dist/verification.js +8 -0
- package/packages/core/dist/verification.js.map +1 -0
- package/packages/core/dist/work-units/contracts.d.ts +24 -0
- package/packages/core/dist/work-units/contracts.js +2 -0
- package/packages/core/dist/work-units/contracts.js.map +1 -0
- package/packages/core/dist/work-units/runtime.d.ts +21 -0
- package/packages/core/dist/work-units/runtime.js +90 -0
- package/packages/core/dist/work-units/runtime.js.map +1 -0
- package/packages/core/dist/work-units.d.ts +2 -0
- package/packages/core/dist/work-units.js +3 -0
- package/packages/core/dist/work-units.js.map +1 -0
- package/packages/core/dist/workflow-gate/evidence-packet.d.ts +24 -0
- package/packages/core/dist/workflow-gate/evidence-packet.js +182 -0
- package/packages/core/dist/workflow-gate/evidence-packet.js.map +1 -0
- package/packages/core/dist/workflow-gate/hard-checks.d.ts +4 -0
- package/packages/core/dist/workflow-gate/hard-checks.js +130 -0
- package/packages/core/dist/workflow-gate/hard-checks.js.map +1 -0
- package/packages/core/dist/workflow-gate/policy.d.ts +4 -0
- package/packages/core/dist/workflow-gate/policy.js +146 -0
- package/packages/core/dist/workflow-gate/policy.js.map +1 -0
- package/packages/core/dist/workflow-gate/types.d.ts +89 -0
- package/packages/core/dist/workflow-gate/types.js +2 -0
- package/packages/core/dist/workflow-gate/types.js.map +1 -0
- package/packages/core/dist/workflow-state/affected-file-conflicts.d.ts +13 -0
- package/packages/core/dist/workflow-state/affected-file-conflicts.js +75 -0
- package/packages/core/dist/workflow-state/affected-file-conflicts.js.map +1 -0
- package/packages/core/dist/workflow-state/dependencies.d.ts +29 -0
- package/packages/core/dist/workflow-state/dependencies.js +78 -0
- package/packages/core/dist/workflow-state/dependencies.js.map +1 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.d.ts +38 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.js +122 -0
- package/packages/core/dist/workflow-state/latest-eligible-run.js.map +1 -0
- package/packages/core/dist/workflow-state/resolve.d.ts +77 -0
- package/packages/core/dist/workflow-state/resolve.js +253 -0
- package/packages/core/dist/workflow-state/resolve.js.map +1 -0
- package/packages/core/dist/workflow-state.d.ts +2 -0
- package/packages/core/dist/workflow-state.js +3 -0
- package/packages/core/dist/workflow-state.js.map +1 -0
- package/packages/core/dist/worktree/isolation.d.ts +40 -0
- package/packages/core/dist/worktree/isolation.js +89 -0
- package/packages/core/dist/worktree/isolation.js.map +1 -0
- package/packages/core/dist/worktree/lifecycle.d.ts +39 -0
- package/packages/core/dist/worktree/lifecycle.js +221 -0
- package/packages/core/dist/worktree/lifecycle.js.map +1 -0
- package/packages/core/dist/worktree.d.ts +2 -0
- package/packages/core/dist/worktree.js +3 -0
- package/packages/core/dist/worktree.js.map +1 -0
- package/packages/core/package.json +40 -0
- package/tsconfig.build.json +4 -3
- package/dist/packages/cli/src/main.js +0 -2522
- package/dist/packages/cli/src/main.js.map +0 -1
- package/dist/packages/cli/src/options.js.map +0 -1
- package/dist/packages/core/src/ai-tools.js +0 -315
- package/dist/packages/core/src/ai-tools.js.map +0 -1
- package/dist/packages/core/src/index.d.ts +0 -1986
- package/dist/packages/core/src/index.js +0 -9722
- package/dist/packages/core/src/index.js.map +0 -1
- package/dist/packages/core/src/instructions.js +0 -118
- package/dist/packages/core/src/instructions.js.map +0 -1
- package/dist/packages/core/src/path-safety.js.map +0 -1
- /package/{dist/packages/core/src → node_modules/@sdd-agent-platform/core/dist}/path-safety.d.ts +0 -0
- /package/{dist/packages/core/src → node_modules/@sdd-agent-platform/core/dist}/path-safety.js +0 -0
- /package/{dist/packages/cli/src → packages/cli/dist}/main.d.ts +0 -0
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
import { readArtifact } from '../run-state/artifacts.js';
|
|
2
|
+
import { SUBAGENT_DISPATCH_CONTRACT_VERSION, SUBAGENT_RESULT_CONTRACT_VERSION, WORK_UNIT_CONTRACT_VERSION } from '../contracts.js';
|
|
3
|
+
import { contractIssue } from '../contracts/issues.js';
|
|
4
|
+
import { ingestArtifactResult } from '../artifacts/ingestion.js';
|
|
5
|
+
import { createDelegationRecord } from '../delegation/validation.js';
|
|
6
|
+
import { persistDelegation } from '../delegation/run-state.js';
|
|
7
|
+
import { appendEvent } from '../run-state/events.js';
|
|
8
|
+
import { createRun, readRunState, writeRunState } from '../run-state/run-state.js';
|
|
9
|
+
import { bindRunStateToTaskContext } from '../sdd-docs/run-binding.js';
|
|
10
|
+
import { resolveSddContext } from '../sdd-docs/context.js';
|
|
11
|
+
import { inspectSddTask } from '../sdd-docs/task-inspection.js';
|
|
12
|
+
import { parseSddBranch } from '../sdd-docs/task-parser.js';
|
|
13
|
+
import { routeSddTask } from '../router/route-sdd-task.js';
|
|
14
|
+
import { buildAgentExecutionRecord, writeAgentExecutionRecord } from './agent-execution-records.js';
|
|
15
|
+
import { invokeClaudeCodeSubagentHost } from './host-invocation.js';
|
|
16
|
+
import { getRunRelativeArtifactPath, toArtifactRootRelativePath } from '../runtime-paths.js';
|
|
17
|
+
import { recordRuntimeProjection } from '../storage/runtime-store.js';
|
|
18
|
+
import { recordSubagentDispatchProjection, recordSubagentResultProjection } from '../subagents/runtime.js';
|
|
19
|
+
import { recordWorkUnitProjection } from '../work-units/runtime.js';
|
|
20
|
+
const FOREGROUND_SUBAGENT_DIGEST_CONTRACT = 'sdd-foreground-subagent-digest-v1';
|
|
21
|
+
const FOREGROUND_SUBAGENT_DIGEST_PROJECTION_TYPE = 'foreground_subagent_digest';
|
|
22
|
+
const MAX_DIGEST_SUMMARY_CHARS = 1_000;
|
|
23
|
+
const MAX_KEY_FINDINGS = 5;
|
|
24
|
+
export async function runForegroundSubagents(projectRoot, options) {
|
|
25
|
+
const context = await resolveSddContext(projectRoot, options.branch ? { branch: options.branch, branchSource: 'cli_option' } : {});
|
|
26
|
+
const branch = context.partition;
|
|
27
|
+
const agents = normalizeAgents(options.agents);
|
|
28
|
+
const model = await parseSddBranch(projectRoot, branch);
|
|
29
|
+
const inspected = inspectSddTask(model, options.taskId);
|
|
30
|
+
const runState = options.runId ? await readRunState(projectRoot, options.runId) : await createRun(projectRoot);
|
|
31
|
+
const boundRunState = await bindRunStateToTaskContext(projectRoot, runState, context, model, inspected.task ?? null, options.taskId);
|
|
32
|
+
const runId = boundRunState.runId;
|
|
33
|
+
const route = await routeSddTask(projectRoot, { taskId: options.taskId, branch, approved: options.approved });
|
|
34
|
+
const preflightIssues = [];
|
|
35
|
+
if (agents.length === 0) {
|
|
36
|
+
preflightIssues.push(contractIssue('agents', 'At least one foreground subagent is required.', 'Pass one or more --agent values.'));
|
|
37
|
+
}
|
|
38
|
+
if (!inspected.task || inspected.gaps.some((gap) => gap.severity === 'blocking')) {
|
|
39
|
+
preflightIssues.push(...inspected.gaps.map((gap) => contractIssue(gap.field, gap.message, gap.recommendation)));
|
|
40
|
+
}
|
|
41
|
+
if (route.blockedReason) {
|
|
42
|
+
preflightIssues.push(contractIssue('agent_router', route.blockedReason, route.nextAction));
|
|
43
|
+
}
|
|
44
|
+
if (preflightIssues.length > 0) {
|
|
45
|
+
await appendEvent(projectRoot, runId, { event: 'foreground_subagents_blocked', runId, summary: `Foreground subagents blocked for ${options.taskId}`, data: { taskId: options.taskId, branch, issues: preflightIssues } });
|
|
46
|
+
return {
|
|
47
|
+
contract: 'sdd-foreground-subagents-v1',
|
|
48
|
+
runId,
|
|
49
|
+
branch,
|
|
50
|
+
taskId: options.taskId,
|
|
51
|
+
status: 'blocked',
|
|
52
|
+
agents: agents.map((agent, index) => blockedSlot(agent, options.taskId, index + 1, preflightIssues)),
|
|
53
|
+
message: 'Foreground subagents blocked before host invocation.',
|
|
54
|
+
summaryRefs: [],
|
|
55
|
+
doNotReadUnlessNeededRefs: []
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
await writeRunState(projectRoot, { ...boundRunState, status: 'running', phase: 'foreground-subagents', currentTask: options.taskId });
|
|
59
|
+
await appendEvent(projectRoot, runId, { event: 'foreground_subagents_started', runId, summary: `Foreground subagents started for ${options.taskId}`, data: { taskId: options.taskId, branch, agents } });
|
|
60
|
+
const slots = agents.map((agent, index) => {
|
|
61
|
+
const delegationId = `F-${options.taskId}-${safeToken(agent)}-${String(index + 1).padStart(3, '0')}`;
|
|
62
|
+
const expectedArtifact = getRunRelativeArtifactPath(toArtifactRootRelativePath(`artifacts/${safeToken(agent)}-${options.taskId}-${String(index + 1).padStart(3, '0')}.md`));
|
|
63
|
+
return { agent, delegationId, expectedArtifact };
|
|
64
|
+
});
|
|
65
|
+
for (const slot of slots) {
|
|
66
|
+
await persistDelegation(projectRoot, runId, createDelegationRecord({
|
|
67
|
+
delegationId: slot.delegationId,
|
|
68
|
+
task: options.taskId,
|
|
69
|
+
agent: slot.agent,
|
|
70
|
+
runMode: 'foreground',
|
|
71
|
+
blocking: false,
|
|
72
|
+
requiredForPhaseExit: false,
|
|
73
|
+
expectedArtifact: slot.expectedArtifact,
|
|
74
|
+
timeoutSeconds: options.timeoutSeconds
|
|
75
|
+
}));
|
|
76
|
+
await recordForegroundSubagentDispatch(projectRoot, { branch, runId, taskId: options.taskId, agent: slot.agent, delegationId: slot.delegationId, artifactPath: slot.expectedArtifact, status: 'running', resultStatus: null });
|
|
77
|
+
}
|
|
78
|
+
const hostResults = await Promise.allSettled(slots.map((slot) => invokeClaudeCodeSubagentHost({
|
|
79
|
+
projectRoot,
|
|
80
|
+
runId,
|
|
81
|
+
taskId: options.taskId,
|
|
82
|
+
agent: slot.agent,
|
|
83
|
+
delegationId: slot.delegationId,
|
|
84
|
+
queueItemId: `${runId}:${slot.delegationId}`,
|
|
85
|
+
expectedArtifact: slot.expectedArtifact,
|
|
86
|
+
timeoutSeconds: options.timeoutSeconds,
|
|
87
|
+
commandOptions: options.hostInvocation
|
|
88
|
+
})));
|
|
89
|
+
const results = [];
|
|
90
|
+
for (const [index, slot] of slots.entries()) {
|
|
91
|
+
const hostResult = hostResults[index];
|
|
92
|
+
const slotResult = await finishForegroundSlot(projectRoot, { branch, runId, taskId: options.taskId, route, slot, hostResult });
|
|
93
|
+
results.push(slotResult);
|
|
94
|
+
}
|
|
95
|
+
const status = results.some((result) => result.status === 'blocked') ? 'blocked' : results.some((result) => result.status === 'failed') ? 'failed' : 'completed';
|
|
96
|
+
const latestState = await readRunState(projectRoot, runId);
|
|
97
|
+
await writeRunState(projectRoot, { ...latestState, status: status === 'completed' ? 'completed' : status, phase: 'foreground-subagents', currentTask: options.taskId });
|
|
98
|
+
const aggregate = {
|
|
99
|
+
contract: 'sdd-foreground-subagents-v1',
|
|
100
|
+
runId,
|
|
101
|
+
branch,
|
|
102
|
+
taskId: options.taskId,
|
|
103
|
+
status,
|
|
104
|
+
agents: results,
|
|
105
|
+
message: foregroundMessage(status, results),
|
|
106
|
+
summaryRefs: results.flatMap((result) => result.digestRef ? [result.digestRef] : []),
|
|
107
|
+
doNotReadUnlessNeededRefs: results.flatMap((result) => result.artifactPath ? [{ kind: 'artifact', ref: result.artifactPath }] : [])
|
|
108
|
+
};
|
|
109
|
+
await recordRuntimeProjection(projectRoot, 'foreground_subagents', `${branch}:${options.taskId}:${runId}`, aggregate);
|
|
110
|
+
await appendEvent(projectRoot, runId, { event: 'foreground_subagents_completed', runId, summary: aggregate.message, data: { taskId: options.taskId, branch, status, agents: results.map((result) => ({ agent: result.agent, delegationId: result.delegationId, status: result.status, artifactPath: result.artifactPath })) } });
|
|
111
|
+
return aggregate;
|
|
112
|
+
}
|
|
113
|
+
async function finishForegroundSlot(projectRoot, input) {
|
|
114
|
+
if (input.hostResult.status === 'rejected') {
|
|
115
|
+
const issue = contractIssue('hostInvocation', input.hostResult.reason instanceof Error ? input.hostResult.reason.message : String(input.hostResult.reason), 'Inspect the foreground subagent host command and retry this slot with a new delegation id.');
|
|
116
|
+
const digest = buildHostFailureDigest(input.taskId, input.slot.agent, input.slot.delegationId, issue);
|
|
117
|
+
const digestRef = await recordForegroundSubagentDigest(projectRoot, input, digest);
|
|
118
|
+
await recordForegroundSubagentDispatch(projectRoot, { branch: input.branch, runId: input.runId, taskId: input.taskId, agent: input.slot.agent, delegationId: input.slot.delegationId, artifactPath: input.slot.expectedArtifact, status: 'failed', resultStatus: null, summary: digest.summary });
|
|
119
|
+
await writeAgentExecutionRecord(projectRoot, buildAgentExecutionRecord({ runId: input.runId, taskId: input.taskId, agent: input.slot.agent, route: input.route, status: 'failed', delegationId: input.slot.delegationId, queueItemId: `${input.runId}:${input.slot.delegationId}`, artifactPath: input.slot.expectedArtifact, evidenceSummary: `Foreground subagent host invocation failed for ${input.slot.delegationId}.` }));
|
|
120
|
+
return { agent: input.slot.agent, delegationId: input.slot.delegationId, artifactPath: input.slot.expectedArtifact, status: 'failed', hostInvocation: null, ingestion: null, issues: [issue], digest, digestRef };
|
|
121
|
+
}
|
|
122
|
+
const hostInvocation = input.hostResult.value;
|
|
123
|
+
const ingestion = await ingestArtifactResult(projectRoot, input.runId, { delegationId: input.slot.delegationId, artifactPath: hostInvocation.artifactPath });
|
|
124
|
+
const status = ingestion.valid && ingestion.record.delegationStatus === 'COMPLETED' ? 'completed' : ingestion.valid ? 'failed' : 'blocked';
|
|
125
|
+
const digest = await buildForegroundSubagentDigest(projectRoot, input.runId, input.taskId, input.slot.agent, input.slot.delegationId, status, ingestion.record);
|
|
126
|
+
const digestRef = await recordForegroundSubagentDigest(projectRoot, input, digest);
|
|
127
|
+
await recordForegroundSubagentDispatch(projectRoot, { branch: input.branch, runId: input.runId, taskId: input.taskId, agent: input.slot.agent, delegationId: input.slot.delegationId, artifactPath: ingestion.record.artifactPath, status: status === 'completed' ? 'completed' : 'failed', resultStatus: ingestion.record.resultStatus, summary: digest.summary });
|
|
128
|
+
await writeAgentExecutionRecord(projectRoot, buildAgentExecutionRecord({
|
|
129
|
+
runId: input.runId,
|
|
130
|
+
taskId: input.taskId,
|
|
131
|
+
agent: input.slot.agent,
|
|
132
|
+
route: input.route,
|
|
133
|
+
status,
|
|
134
|
+
delegationId: input.slot.delegationId,
|
|
135
|
+
queueItemId: `${input.runId}:${input.slot.delegationId}`,
|
|
136
|
+
ingestion: ingestion.record,
|
|
137
|
+
evidenceSummary: ingestion.valid ? `Foreground subagent ingested terminal artifact for ${input.slot.delegationId}.` : `Foreground subagent artifact ingestion blocked for ${input.slot.delegationId}.`
|
|
138
|
+
}));
|
|
139
|
+
await appendEvent(projectRoot, input.runId, { event: 'foreground_subagent_slot_completed', runId: input.runId, summary: `Foreground subagent ${input.slot.delegationId} ${status}`, data: { taskId: input.taskId, agent: input.slot.agent, delegationId: input.slot.delegationId, status, artifactPath: ingestion.record.artifactPath, digestRef, issues: ingestion.record.issues } });
|
|
140
|
+
return { agent: input.slot.agent, delegationId: input.slot.delegationId, artifactPath: ingestion.record.artifactPath, status, hostInvocation, ingestion: ingestion.record, issues: ingestion.record.issues, digest, digestRef };
|
|
141
|
+
}
|
|
142
|
+
async function recordForegroundSubagentDispatch(projectRoot, input) {
|
|
143
|
+
const now = new Date().toISOString();
|
|
144
|
+
const scope = { branch: input.branch, taskId: input.taskId, runId: input.runId };
|
|
145
|
+
const outputRefs = input.artifactPath ? [{ kind: 'artifact', ref: input.artifactPath }] : [];
|
|
146
|
+
const workUnit = {
|
|
147
|
+
contract: WORK_UNIT_CONTRACT_VERSION,
|
|
148
|
+
id: foregroundWorkUnitId(scope, input.agent),
|
|
149
|
+
scope,
|
|
150
|
+
stageRunId: `stage:${input.branch}:${input.taskId}:${input.runId}:do`,
|
|
151
|
+
type: 'subagent',
|
|
152
|
+
name: input.agent,
|
|
153
|
+
purpose: 'Non-authoritative foreground evidence collection.',
|
|
154
|
+
status: input.status === 'running' ? 'running' : input.status === 'completed' ? 'completed' : 'failed',
|
|
155
|
+
blocking: false,
|
|
156
|
+
authority: 'non-authoritative',
|
|
157
|
+
requiredBefore: 'never',
|
|
158
|
+
contextRef: { kind: 'task', ref: input.taskId },
|
|
159
|
+
outputRefs,
|
|
160
|
+
evidenceRefs: outputRefs,
|
|
161
|
+
createdAt: now,
|
|
162
|
+
completedAt: input.status === 'running' ? undefined : now
|
|
163
|
+
};
|
|
164
|
+
const dispatch = {
|
|
165
|
+
contract: SUBAGENT_DISPATCH_CONTRACT_VERSION,
|
|
166
|
+
id: foregroundDispatchId(scope, input.delegationId),
|
|
167
|
+
scope,
|
|
168
|
+
workUnitId: workUnit.id,
|
|
169
|
+
definitionName: input.agent,
|
|
170
|
+
mode: 'foreground',
|
|
171
|
+
status: input.status,
|
|
172
|
+
blocking: false,
|
|
173
|
+
requiredBefore: 'never',
|
|
174
|
+
contextRef: { kind: 'task', ref: input.taskId },
|
|
175
|
+
createdAt: now,
|
|
176
|
+
updatedAt: now
|
|
177
|
+
};
|
|
178
|
+
await recordWorkUnitProjection(projectRoot, workUnit);
|
|
179
|
+
await recordSubagentDispatchProjection(projectRoot, dispatch);
|
|
180
|
+
if (input.status !== 'running') {
|
|
181
|
+
const result = {
|
|
182
|
+
contract: SUBAGENT_RESULT_CONTRACT_VERSION,
|
|
183
|
+
dispatchId: dispatch.id,
|
|
184
|
+
status: input.status === 'completed' ? 'completed' : 'failed',
|
|
185
|
+
authority: 'evidence-candidate',
|
|
186
|
+
summary: input.summary ?? `Foreground subagent dispatch ${dispatch.id} finished with result ${input.resultStatus ?? 'unknown'}.`,
|
|
187
|
+
artifactRefs: outputRefs,
|
|
188
|
+
evidenceRefs: outputRefs,
|
|
189
|
+
modelArtifacts: outputRefs.length > 0 ? [{
|
|
190
|
+
contract: 'sdd-model-produced-artifact-v1',
|
|
191
|
+
producer: 'subagent',
|
|
192
|
+
authority: 'candidate',
|
|
193
|
+
allowedUse: ['summary', 'diagnostic', 'evidence-candidate'],
|
|
194
|
+
forbiddenUse: ['final-risk-decision', 'stage-completion', 'ship-gate-pass'],
|
|
195
|
+
artifactRefs: outputRefs.map((ref) => ref.ref),
|
|
196
|
+
reviewedByRuntime: true
|
|
197
|
+
}] : [],
|
|
198
|
+
completedAt: now
|
|
199
|
+
};
|
|
200
|
+
await recordSubagentResultProjection(projectRoot, result);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
function blockedSlot(agent, taskId, index, issues) {
|
|
204
|
+
return {
|
|
205
|
+
agent,
|
|
206
|
+
delegationId: `F-${taskId}-${safeToken(agent)}-${String(index).padStart(3, '0')}`,
|
|
207
|
+
artifactPath: null,
|
|
208
|
+
status: 'blocked',
|
|
209
|
+
hostInvocation: null,
|
|
210
|
+
ingestion: null,
|
|
211
|
+
issues,
|
|
212
|
+
digest: null,
|
|
213
|
+
digestRef: null
|
|
214
|
+
};
|
|
215
|
+
}
|
|
216
|
+
async function recordForegroundSubagentDigest(projectRoot, input, digest) {
|
|
217
|
+
const scopeKey = foregroundDigestScopeKey(input.branch, input.taskId, input.runId, input.slot.delegationId);
|
|
218
|
+
await recordRuntimeProjection(projectRoot, FOREGROUND_SUBAGENT_DIGEST_PROJECTION_TYPE, scopeKey, digest);
|
|
219
|
+
return { kind: 'projection', ref: `${FOREGROUND_SUBAGENT_DIGEST_PROJECTION_TYPE}:${scopeKey}` };
|
|
220
|
+
}
|
|
221
|
+
async function buildForegroundSubagentDigest(projectRoot, runId, taskId, agent, delegationId, status, ingestion) {
|
|
222
|
+
const artifactText = await readArtifactText(projectRoot, runId, ingestion.artifactPath);
|
|
223
|
+
const prose = stripContractFences(artifactText);
|
|
224
|
+
const extractedSummary = extractSection(prose, 'Summary');
|
|
225
|
+
const keyFindings = extractKeyFindings(prose, ingestion);
|
|
226
|
+
const recommendation = extractRecommendation(prose, ingestion);
|
|
227
|
+
const summary = summarizeForegroundArtifactText(extractedSummary || prose, ingestion, status);
|
|
228
|
+
const confidence = digestConfidence(status, ingestion, Boolean(extractedSummary || keyFindings.length > 0));
|
|
229
|
+
return {
|
|
230
|
+
contract: FOREGROUND_SUBAGENT_DIGEST_CONTRACT,
|
|
231
|
+
agent,
|
|
232
|
+
delegationId,
|
|
233
|
+
taskId,
|
|
234
|
+
status,
|
|
235
|
+
authority: 'non-authoritative',
|
|
236
|
+
summary,
|
|
237
|
+
keyFindings,
|
|
238
|
+
recommendation,
|
|
239
|
+
confidence,
|
|
240
|
+
needsMainAgentReview: needsMainAgentReview(status, ingestion, recommendation),
|
|
241
|
+
sourceArtifactRef: { kind: 'artifact', ref: ingestion.artifactPath },
|
|
242
|
+
deepReadRefs: [{ kind: 'artifact', ref: ingestion.artifactPath }],
|
|
243
|
+
allowedUse: ['summary', 'diagnostic'],
|
|
244
|
+
forbiddenUse: ['final-risk-decision', 'stage-completion', 'ship-gate-pass'],
|
|
245
|
+
generatedAt: new Date().toISOString()
|
|
246
|
+
};
|
|
247
|
+
}
|
|
248
|
+
function buildHostFailureDigest(taskId, agent, delegationId, issue) {
|
|
249
|
+
return {
|
|
250
|
+
contract: FOREGROUND_SUBAGENT_DIGEST_CONTRACT,
|
|
251
|
+
agent,
|
|
252
|
+
delegationId,
|
|
253
|
+
taskId,
|
|
254
|
+
status: 'failed',
|
|
255
|
+
authority: 'non-authoritative',
|
|
256
|
+
summary: truncateDigestText(`Host invocation failed before a validated subagent artifact was available: ${issue.message}`),
|
|
257
|
+
keyFindings: [issue.message],
|
|
258
|
+
recommendation: issue.recommendation,
|
|
259
|
+
confidence: 'low',
|
|
260
|
+
needsMainAgentReview: true,
|
|
261
|
+
sourceArtifactRef: null,
|
|
262
|
+
deepReadRefs: [],
|
|
263
|
+
allowedUse: ['summary', 'diagnostic'],
|
|
264
|
+
forbiddenUse: ['final-risk-decision', 'stage-completion', 'ship-gate-pass'],
|
|
265
|
+
generatedAt: new Date().toISOString()
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
async function readArtifactText(projectRoot, runId, artifactPath) {
|
|
269
|
+
try {
|
|
270
|
+
return await readArtifact(projectRoot, runId, toArtifactRootRelativePath(artifactPath));
|
|
271
|
+
}
|
|
272
|
+
catch {
|
|
273
|
+
return '';
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
function stripContractFences(markdown) {
|
|
277
|
+
return markdown.replace(/^\s*```sdd-(?:result|evidence)\s*\r?\n[\s\S]*?\r?^\s*```\s*$/gm, '').trim();
|
|
278
|
+
}
|
|
279
|
+
function summarizeForegroundArtifactText(text, ingestion, status) {
|
|
280
|
+
const cleaned = text
|
|
281
|
+
.split(/\r?\n/)
|
|
282
|
+
.map((line) => line.replace(/^#+\s*/, '').trim())
|
|
283
|
+
.filter(Boolean)
|
|
284
|
+
.filter((line) => !/^[-*]\s*$/.test(line))
|
|
285
|
+
.join(' ');
|
|
286
|
+
if (cleaned) {
|
|
287
|
+
return truncateDigestText(cleaned);
|
|
288
|
+
}
|
|
289
|
+
const issueSummary = ingestion.issues.map((issue) => issue.message).join(' ');
|
|
290
|
+
return truncateDigestText(issueSummary || `Foreground subagent ${ingestion.agent} finished with ${status} / ${ingestion.resultStatus ?? 'unknown'}.`);
|
|
291
|
+
}
|
|
292
|
+
function extractKeyFindings(markdown, ingestion) {
|
|
293
|
+
const section = extractSection(markdown, 'Key findings') || extractSection(markdown, 'Findings') || extractSection(markdown, 'Gaps') || extractSection(markdown, 'Evidence');
|
|
294
|
+
const bullets = section
|
|
295
|
+
.split(/\r?\n/)
|
|
296
|
+
.map((line) => line.trim().replace(/^[-*]\s+/, '').replace(/^\d+\.\s+/, ''))
|
|
297
|
+
.filter(Boolean)
|
|
298
|
+
.filter((line) => !/^#+\s/.test(line));
|
|
299
|
+
const issueFindings = ingestion.issues.map((issue) => issue.message);
|
|
300
|
+
return uniqueStrings([...bullets, ...issueFindings]).slice(0, MAX_KEY_FINDINGS).map(truncateFinding);
|
|
301
|
+
}
|
|
302
|
+
function extractRecommendation(markdown, ingestion) {
|
|
303
|
+
const section = extractSection(markdown, 'Recommendation') || extractSection(markdown, 'Next steps') || extractSection(markdown, 'Deep-read triggers');
|
|
304
|
+
const firstLine = section.split(/\r?\n/).map((line) => line.trim().replace(/^[-*]\s+/, '')).find(Boolean);
|
|
305
|
+
if (firstLine) {
|
|
306
|
+
return truncateDigestText(firstLine, 300);
|
|
307
|
+
}
|
|
308
|
+
return ingestion.issues.map((issue) => issue.recommendation).find((value) => Boolean(value)) ?? null;
|
|
309
|
+
}
|
|
310
|
+
function extractSection(markdown, heading) {
|
|
311
|
+
const escaped = heading.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
|
|
312
|
+
const match = markdown.match(new RegExp(`^##\\s+${escaped}\\s*\\r?\\n([\\s\\S]*?)(?=^##\\s+|$)`, 'im'));
|
|
313
|
+
return match?.[1]?.trim() ?? '';
|
|
314
|
+
}
|
|
315
|
+
function digestConfidence(status, ingestion, hasProse) {
|
|
316
|
+
if (status === 'completed' && ingestion.status === 'accepted' && hasProse) {
|
|
317
|
+
return 'high';
|
|
318
|
+
}
|
|
319
|
+
if (ingestion.status === 'accepted') {
|
|
320
|
+
return 'medium';
|
|
321
|
+
}
|
|
322
|
+
return 'low';
|
|
323
|
+
}
|
|
324
|
+
function needsMainAgentReview(status, ingestion, recommendation) {
|
|
325
|
+
return status !== 'completed' || ingestion.issues.length > 0 || ingestion.gaps.length > 0 || /\b(block|blocked|fail|failed|gap|review)\b/i.test(recommendation ?? '');
|
|
326
|
+
}
|
|
327
|
+
function truncateDigestText(value, maxChars = MAX_DIGEST_SUMMARY_CHARS) {
|
|
328
|
+
const compact = value.replace(/\s+/g, ' ').trim();
|
|
329
|
+
return compact.length > maxChars ? `${compact.slice(0, maxChars - 1)}…` : compact;
|
|
330
|
+
}
|
|
331
|
+
function truncateFinding(value) {
|
|
332
|
+
return truncateDigestText(value, 240);
|
|
333
|
+
}
|
|
334
|
+
function uniqueStrings(values) {
|
|
335
|
+
const seen = new Set();
|
|
336
|
+
return values.filter((value) => {
|
|
337
|
+
const key = value.toLowerCase();
|
|
338
|
+
if (seen.has(key)) {
|
|
339
|
+
return false;
|
|
340
|
+
}
|
|
341
|
+
seen.add(key);
|
|
342
|
+
return true;
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
function foregroundDigestScopeKey(branch, taskId, runId, delegationId) {
|
|
346
|
+
return `${branch}:${taskId}:${runId}:${delegationId}`;
|
|
347
|
+
}
|
|
348
|
+
function normalizeAgents(agents) {
|
|
349
|
+
return [...new Set(agents.map((agent) => agent.trim()).filter(Boolean))];
|
|
350
|
+
}
|
|
351
|
+
function safeToken(value) {
|
|
352
|
+
return value.replace(/[^A-Za-z0-9._-]+/g, '-').replace(/^-+|-+$/g, '') || 'agent';
|
|
353
|
+
}
|
|
354
|
+
function foregroundWorkUnitId(scope, agent) {
|
|
355
|
+
return `work-unit:${scope.branch}:${scope.taskId ?? 'all'}:${scope.runId ?? 'none'}:foreground-subagent:${safeToken(agent)}`;
|
|
356
|
+
}
|
|
357
|
+
function foregroundDispatchId(scope, delegationId) {
|
|
358
|
+
return `dispatch:${scope.branch}:${scope.taskId ?? 'all'}:${scope.runId ?? 'none'}:${delegationId}`;
|
|
359
|
+
}
|
|
360
|
+
function foregroundMessage(status, results) {
|
|
361
|
+
return `Foreground subagents ${status}: completed=${results.filter((result) => result.status === 'completed').length} failed=${results.filter((result) => result.status === 'failed').length} blocked=${results.filter((result) => result.status === 'blocked').length}.`;
|
|
362
|
+
}
|
|
363
|
+
//# sourceMappingURL=foreground-subagents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"foreground-subagents.js","sourceRoot":"","sources":["../../src/execution/foreground-subagents.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,kCAAkC,EAAE,gCAAgC,EAAE,0BAA0B,EAAsC,MAAM,iBAAiB,CAAC;AACvK,OAAO,EAAE,aAAa,EAAgC,MAAM,wBAAwB,CAAC;AACrF,OAAO,EAAE,oBAAoB,EAAsC,MAAM,2BAA2B,CAAC;AACrG,OAAO,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AACnF,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,gCAAgC,CAAC;AAChE,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAC3D,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,MAAM,8BAA8B,CAAC;AACpG,OAAO,EAAE,4BAA4B,EAAgE,MAAM,sBAAsB,CAAC;AAClI,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AAC,CAAC,CAAC,CAAC;AAC3E,CAAC;AAED,SAAS,SAAS,CAAC,KAAa;IAC9B,OAAO,KAAK,CAAC,OAAO,CAAC,mBAAmB,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,UAAU,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC;AACpF,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAmB,EAAE,KAAa;IAC9D,OAAO,aAAa,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,MAAM,wBAAwB,SAAS,CAAC,KAAK,CAAC,EAAE,CAAC;AAC/H,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAmB,EAAE,YAAoB;IACrE,OAAO,YAAY,KAAK,CAAC,MAAM,IAAI,KAAK,CAAC,MAAM,IAAI,KAAK,IAAI,KAAK,CAAC,KAAK,IAAI,MAAM,IAAI,YAAY,EAAE,CAAC;AACtG,CAAC;AAED,SAAS,iBAAiB,CAAC,MAAgC,EAAE,OAAuC;IAClG,OAAO,wBAAwB,MAAM,eAAe,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,WAAW,CAAC,CAAC,MAAM,WAAW,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC,MAAM,YAAY,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,MAAM,GAAG,CAAC;AAC5Q,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export interface HostInvocationCommandOptions {
|
|
2
|
+
command?: string;
|
|
3
|
+
args?: string[];
|
|
4
|
+
}
|
|
5
|
+
export interface HostInvocationInput {
|
|
6
|
+
projectRoot: string;
|
|
7
|
+
runId: string;
|
|
8
|
+
taskId: string;
|
|
9
|
+
agent: string;
|
|
10
|
+
delegationId: string;
|
|
11
|
+
queueItemId: string;
|
|
12
|
+
expectedArtifact: string;
|
|
13
|
+
timeoutSeconds?: number;
|
|
14
|
+
commandOptions?: HostInvocationCommandOptions;
|
|
15
|
+
}
|
|
16
|
+
export interface HostInvocationResult {
|
|
17
|
+
command: string;
|
|
18
|
+
args: string[];
|
|
19
|
+
exitCode: number | null;
|
|
20
|
+
signal: NodeJS.Signals | null;
|
|
21
|
+
timedOut: boolean;
|
|
22
|
+
artifactPath: string;
|
|
23
|
+
stdoutBytes: number;
|
|
24
|
+
stderrBytes: number;
|
|
25
|
+
}
|
|
26
|
+
export declare function invokeClaudeCodeSubagentHost(input: HostInvocationInput): Promise<HostInvocationResult>;
|
|
27
|
+
export declare function buildClaudeCodeSubagentPrompt(input: HostInvocationInput): string;
|
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { spawn } from 'node:child_process';
|
|
2
|
+
import { SDD_RESULT_CONTRACT, SDD_RESULT_VERSION } from '../contracts.js';
|
|
3
|
+
import { writeArtifact } from '../run-state/artifacts.js';
|
|
4
|
+
const DEFAULT_CLAUDE_COMMAND = 'claude';
|
|
5
|
+
const PROMPT_PLACEHOLDER = '{prompt}';
|
|
6
|
+
const MAX_CAPTURE_BYTES = 1_000_000;
|
|
7
|
+
export async function invokeClaudeCodeSubagentHost(input) {
|
|
8
|
+
const prompt = buildClaudeCodeSubagentPrompt(input);
|
|
9
|
+
const command = input.commandOptions?.command ?? process.env.SDD_CLAUDE_CODE_COMMAND ?? DEFAULT_CLAUDE_COMMAND;
|
|
10
|
+
const args = resolveHostArgs(input.commandOptions?.args, prompt);
|
|
11
|
+
const processResult = await runHostProcess(command, args, input.projectRoot, input.timeoutSeconds ?? 900);
|
|
12
|
+
const artifactContent = buildHostArtifactContent(input, processResult.stdout, processResult.stderr, processResult.exitCode, processResult.signal, processResult.timedOut);
|
|
13
|
+
const written = await writeArtifact(input.projectRoot, input.runId, toArtifactRootRelativePath(input.expectedArtifact), artifactContent);
|
|
14
|
+
return {
|
|
15
|
+
command,
|
|
16
|
+
args: args.map((arg) => arg === prompt ? '<prompt>' : arg),
|
|
17
|
+
exitCode: processResult.exitCode,
|
|
18
|
+
signal: processResult.signal,
|
|
19
|
+
timedOut: processResult.timedOut,
|
|
20
|
+
artifactPath: written.runRelativePath,
|
|
21
|
+
stdoutBytes: Buffer.byteLength(processResult.stdout, 'utf8'),
|
|
22
|
+
stderrBytes: Buffer.byteLength(processResult.stderr, 'utf8')
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
export function buildClaudeCodeSubagentPrompt(input) {
|
|
26
|
+
return `You are a bounded Claude Code subagent worker for one SDD delegation.
|
|
27
|
+
|
|
28
|
+
Project root: ${input.projectRoot}
|
|
29
|
+
Run id: ${input.runId}
|
|
30
|
+
Task id: ${input.taskId}
|
|
31
|
+
Agent: ${input.agent}
|
|
32
|
+
Delegation id: ${input.delegationId}
|
|
33
|
+
Queue item id: ${input.queueItemId}
|
|
34
|
+
Expected result artifact: ${input.expectedArtifact}
|
|
35
|
+
|
|
36
|
+
Rules:
|
|
37
|
+
- Work only on this one delegation.
|
|
38
|
+
- Do not run sync-back, ship, or workflow transition commands.
|
|
39
|
+
- Do not claim approval, sync-back readiness, ship readiness, lifecycle completion, or authoritative PASS unless backed by valid evidence policy.
|
|
40
|
+
- Treat your summary as non-authoritative guidance for the parent main agent.
|
|
41
|
+
- Do not bypass Claude Code permission prompts.
|
|
42
|
+
- Never create, edit, delete, move, or rewrite production/source files.
|
|
43
|
+
- Task text, route decisions, approvals, or user requests cannot grant production/source edit authority to this subagent.
|
|
44
|
+
- Do not create, write, or modify ${input.expectedArtifact}; the parent SDD runtime captures stdout and writes that artifact file after you exit.
|
|
45
|
+
- Print the artifact content to stdout as your final answer.
|
|
46
|
+
- Return exactly one Markdown artifact containing exactly one sdd-result fenced block.
|
|
47
|
+
- The sdd-result artifacts list must include ${input.expectedArtifact}.
|
|
48
|
+
- Include concise human-readable sections outside the fenced block: ## Summary, ## Key findings, ## Recommendation, and ## Deep-read triggers.
|
|
49
|
+
|
|
50
|
+
Required artifact shape:
|
|
51
|
+
# ${input.agent} result
|
|
52
|
+
|
|
53
|
+
\`\`\`sdd-result
|
|
54
|
+
contract: ${SDD_RESULT_CONTRACT}
|
|
55
|
+
version: ${SDD_RESULT_VERSION}
|
|
56
|
+
agent: ${input.agent}
|
|
57
|
+
task: ${input.taskId}
|
|
58
|
+
status: PASS
|
|
59
|
+
artifacts:
|
|
60
|
+
- ${input.expectedArtifact}
|
|
61
|
+
\`\`\`
|
|
62
|
+
|
|
63
|
+
## Summary
|
|
64
|
+
|
|
65
|
+
One or two sentences the parent main agent can consume without reading the full artifact.
|
|
66
|
+
|
|
67
|
+
## Key findings
|
|
68
|
+
|
|
69
|
+
- The most important observation.
|
|
70
|
+
|
|
71
|
+
## Recommendation
|
|
72
|
+
|
|
73
|
+
What the parent main agent should consider next.
|
|
74
|
+
|
|
75
|
+
## Deep-read triggers
|
|
76
|
+
|
|
77
|
+
- When the parent should inspect ${input.expectedArtifact}.
|
|
78
|
+
|
|
79
|
+
If you cannot complete the delegation, return the same shape with status FAIL, BLOCKED, TIMED_OUT, or CANCELLED and explain the reason outside the fenced block.`;
|
|
80
|
+
}
|
|
81
|
+
function resolveHostArgs(optionArgs, prompt) {
|
|
82
|
+
const envArgs = parseEnvArgs(process.env.SDD_CLAUDE_CODE_ARGS);
|
|
83
|
+
const args = optionArgs ?? envArgs;
|
|
84
|
+
if (args) {
|
|
85
|
+
return args.some((arg) => arg.includes(PROMPT_PLACEHOLDER))
|
|
86
|
+
? args.map((arg) => arg.replaceAll(PROMPT_PLACEHOLDER, prompt))
|
|
87
|
+
: [...args, prompt];
|
|
88
|
+
}
|
|
89
|
+
return ['-p', prompt, '--permission-mode', 'default', '--output-format', 'text'];
|
|
90
|
+
}
|
|
91
|
+
function parseEnvArgs(raw) {
|
|
92
|
+
if (!raw) {
|
|
93
|
+
return undefined;
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
const parsed = JSON.parse(raw);
|
|
97
|
+
if (Array.isArray(parsed) && parsed.every((item) => typeof item === 'string')) {
|
|
98
|
+
return parsed;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
catch {
|
|
102
|
+
return undefined;
|
|
103
|
+
}
|
|
104
|
+
return undefined;
|
|
105
|
+
}
|
|
106
|
+
function runHostProcess(command, args, cwd, timeoutSeconds) {
|
|
107
|
+
return new Promise((resolve) => {
|
|
108
|
+
const child = spawn(command, args, { cwd, shell: false, windowsHide: true, env: process.env });
|
|
109
|
+
let stdout = '';
|
|
110
|
+
let stderr = '';
|
|
111
|
+
let timedOut = false;
|
|
112
|
+
const timer = setTimeout(() => {
|
|
113
|
+
timedOut = true;
|
|
114
|
+
child.kill('SIGTERM');
|
|
115
|
+
}, Math.max(1, timeoutSeconds) * 1000);
|
|
116
|
+
child.stdout?.on('data', (chunk) => {
|
|
117
|
+
stdout = appendBounded(stdout, chunk.toString('utf8'));
|
|
118
|
+
});
|
|
119
|
+
child.stderr?.on('data', (chunk) => {
|
|
120
|
+
stderr = appendBounded(stderr, chunk.toString('utf8'));
|
|
121
|
+
});
|
|
122
|
+
child.on('error', (error) => {
|
|
123
|
+
clearTimeout(timer);
|
|
124
|
+
resolve({ stdout, stderr: appendBounded(stderr, error.message), exitCode: null, signal: null, timedOut });
|
|
125
|
+
});
|
|
126
|
+
child.on('close', (exitCode, signal) => {
|
|
127
|
+
clearTimeout(timer);
|
|
128
|
+
resolve({ stdout, stderr, exitCode, signal, timedOut });
|
|
129
|
+
});
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
function appendBounded(current, next) {
|
|
133
|
+
const combined = `${current}${next}`;
|
|
134
|
+
if (Buffer.byteLength(combined, 'utf8') <= MAX_CAPTURE_BYTES) {
|
|
135
|
+
return combined;
|
|
136
|
+
}
|
|
137
|
+
return combined.slice(0, MAX_CAPTURE_BYTES);
|
|
138
|
+
}
|
|
139
|
+
function buildHostArtifactContent(input, stdout, stderr, exitCode, signal, timedOut) {
|
|
140
|
+
if (hasSingleSddResultBlock(stdout)) {
|
|
141
|
+
return stdout.trimEnd() + '\n';
|
|
142
|
+
}
|
|
143
|
+
const status = timedOut ? 'TIMED_OUT' : exitCode === 0 ? 'BLOCKED' : 'FAIL';
|
|
144
|
+
return `# ${input.agent} result
|
|
145
|
+
|
|
146
|
+
\`\`\`sdd-result
|
|
147
|
+
contract: ${SDD_RESULT_CONTRACT}
|
|
148
|
+
version: ${SDD_RESULT_VERSION}
|
|
149
|
+
agent: ${input.agent}
|
|
150
|
+
task: ${input.taskId}
|
|
151
|
+
status: ${status}
|
|
152
|
+
artifacts:
|
|
153
|
+
- ${input.expectedArtifact}
|
|
154
|
+
\`\`\`
|
|
155
|
+
|
|
156
|
+
## Host invocation
|
|
157
|
+
|
|
158
|
+
- command: Claude Code host process
|
|
159
|
+
- exit_code: ${exitCode ?? 'null'}
|
|
160
|
+
- signal: ${signal ?? 'none'}
|
|
161
|
+
- timed_out: ${timedOut}
|
|
162
|
+
|
|
163
|
+
## Stdout
|
|
164
|
+
|
|
165
|
+
\`\`\`text
|
|
166
|
+
${fenceSafe(stdout.trim())}
|
|
167
|
+
\`\`\`
|
|
168
|
+
|
|
169
|
+
## Stderr
|
|
170
|
+
|
|
171
|
+
\`\`\`text
|
|
172
|
+
${fenceSafe(stderr.trim())}
|
|
173
|
+
\`\`\`
|
|
174
|
+
`;
|
|
175
|
+
}
|
|
176
|
+
function hasSingleSddResultBlock(raw) {
|
|
177
|
+
return Array.from(raw.matchAll(/^\s*```sdd-result\s*\r?\n([\s\S]*?)\r?^\s*```\s*$/gm)).length === 1;
|
|
178
|
+
}
|
|
179
|
+
function fenceSafe(raw) {
|
|
180
|
+
return raw.replaceAll('```', '```');
|
|
181
|
+
}
|
|
182
|
+
function toArtifactRootRelativePath(runRelativePath) {
|
|
183
|
+
return runRelativePath.replace(/^[\\/]*artifacts[\\/]/, '').replace(/\\/g, '/');
|
|
184
|
+
}
|
|
185
|
+
//# sourceMappingURL=host-invocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"host-invocation.js","sourceRoot":"","sources":["../../src/execution/host-invocation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE3C,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1E,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AA8B1D,MAAM,sBAAsB,GAAG,QAAQ,CAAC;AACxC,MAAM,kBAAkB,GAAG,UAAU,CAAC;AACtC,MAAM,iBAAiB,GAAG,SAAS,CAAC;AAEpC,MAAM,CAAC,KAAK,UAAU,4BAA4B,CAAC,KAA0B;IAC3E,MAAM,MAAM,GAAG,6BAA6B,CAAC,KAAK,CAAC,CAAC;IACpD,MAAM,OAAO,GAAG,KAAK,CAAC,cAAc,EAAE,OAAO,IAAI,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,sBAAsB,CAAC;IAC/G,MAAM,IAAI,GAAG,eAAe,CAAC,KAAK,CAAC,cAAc,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;IACjE,MAAM,aAAa,GAAG,MAAM,cAAc,CAAC,OAAO,EAAE,IAAI,EAAE,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,cAAc,IAAI,GAAG,CAAC,CAAC;IAC1G,MAAM,eAAe,GAAG,wBAAwB,CAAC,KAAK,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,EAAE,aAAa,CAAC,MAAM,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC;IAC1K,MAAM,OAAO,GAAG,MAAM,aAAa,CAAC,KAAK,CAAC,WAAW,EAAE,KAAK,CAAC,KAAK,EAAE,0BAA0B,CAAC,KAAK,CAAC,gBAAgB,CAAC,EAAE,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