@orion-agents/orion-code 0.1.8 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +495 -0
- package/README.md +142 -314
- package/README.zh-CN.md +117 -559
- package/dist/cli.js +71 -90
- package/dist/cli.js.map +1 -1
- package/dist/commands/context-commands.d.ts.map +1 -1
- package/dist/commands/context-commands.js +14 -7
- package/dist/commands/context-commands.js.map +1 -1
- package/dist/commands/context-tool-command-handlers.d.ts +4 -5
- package/dist/commands/context-tool-command-handlers.d.ts.map +1 -1
- package/dist/commands/context-tool-command-handlers.js +174 -208
- package/dist/commands/context-tool-command-handlers.js.map +1 -1
- package/dist/commands/core-command-handlers.d.ts +3 -6
- package/dist/commands/core-command-handlers.d.ts.map +1 -1
- package/dist/commands/core-command-handlers.js +66 -664
- package/dist/commands/core-command-handlers.js.map +1 -1
- package/dist/commands/diagnostic-command-handlers.d.ts +1 -2
- package/dist/commands/diagnostic-command-handlers.d.ts.map +1 -1
- package/dist/commands/diagnostic-command-handlers.js +3 -17
- package/dist/commands/diagnostic-command-handlers.js.map +1 -1
- package/dist/commands/diagnostic-commands.d.ts.map +1 -1
- package/dist/commands/diagnostic-commands.js +0 -45
- package/dist/commands/diagnostic-commands.js.map +1 -1
- package/dist/commands/index.d.ts +1 -1
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/index.js +2 -7
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/model-command-handlers.d.ts +2 -2
- package/dist/commands/model-command-handlers.d.ts.map +1 -1
- package/dist/commands/model-command-handlers.js +168 -3
- package/dist/commands/model-command-handlers.js.map +1 -1
- package/dist/commands/model-commands.d.ts.map +1 -1
- package/dist/commands/model-commands.js +0 -11
- package/dist/commands/model-commands.js.map +1 -1
- package/dist/commands/registry.d.ts.map +1 -1
- package/dist/commands/registry.js +1 -139
- package/dist/commands/registry.js.map +1 -1
- package/dist/commands/session-command-handlers.d.ts.map +1 -1
- package/dist/commands/session-command-handlers.js +35 -119
- package/dist/commands/session-command-handlers.js.map +1 -1
- package/dist/commands/session-commands.d.ts.map +1 -1
- package/dist/commands/session-commands.js +2 -50
- package/dist/commands/session-commands.js.map +1 -1
- package/dist/commands/target-command.d.ts +9 -15
- package/dist/commands/target-command.d.ts.map +1 -1
- package/dist/commands/target-command.js +16 -130
- package/dist/commands/target-command.js.map +1 -1
- package/dist/commands/tool-commands.d.ts.map +1 -1
- package/dist/commands/tool-commands.js +0 -10
- package/dist/commands/tool-commands.js.map +1 -1
- package/dist/commands/types.d.ts +14 -14
- package/dist/commands/types.d.ts.map +1 -1
- package/dist/commands/types.js +1 -1
- package/dist/commands/types.js.map +1 -1
- package/dist/commands/workflow-command-handlers.d.ts.map +1 -1
- package/dist/commands/workflow-command-handlers.js +1 -3
- package/dist/commands/workflow-command-handlers.js.map +1 -1
- package/dist/commands/workflow-commands.d.ts.map +1 -1
- package/dist/commands/workflow-commands.js +2 -24
- package/dist/commands/workflow-commands.js.map +1 -1
- package/dist/framework/agent-mode.d.ts +2 -3
- package/dist/framework/agent-mode.d.ts.map +1 -1
- package/dist/framework/agent-mode.js +8 -31
- package/dist/framework/agent-mode.js.map +1 -1
- package/dist/framework/index.d.ts +8 -6
- package/dist/framework/index.d.ts.map +1 -1
- package/dist/framework/index.js +14 -9
- package/dist/framework/index.js.map +1 -1
- package/dist/framework/loop-budget-contract.d.ts +20 -0
- package/dist/framework/loop-budget-contract.d.ts.map +1 -0
- package/dist/framework/loop-budget-contract.js +13 -0
- package/dist/framework/loop-budget-contract.js.map +1 -0
- package/dist/framework/prompt.d.ts.map +1 -1
- package/dist/framework/prompt.js +5 -4
- package/dist/framework/prompt.js.map +1 -1
- package/dist/framework/query.d.ts +71 -26
- package/dist/framework/query.d.ts.map +1 -1
- package/dist/framework/query.js +371 -102
- package/dist/framework/query.js.map +1 -1
- package/dist/framework/stop-decision.d.ts +56 -0
- package/dist/framework/stop-decision.d.ts.map +1 -0
- package/dist/framework/stop-decision.js +36 -0
- package/dist/framework/stop-decision.js.map +1 -0
- package/dist/framework/store.d.ts +4 -2
- package/dist/framework/store.d.ts.map +1 -1
- package/dist/framework/store.js +1 -0
- package/dist/framework/store.js.map +1 -1
- package/dist/framework/tool-call-orchestrator.d.ts +80 -0
- package/dist/framework/tool-call-orchestrator.d.ts.map +1 -0
- package/dist/framework/tool-call-orchestrator.js +192 -0
- package/dist/framework/tool-call-orchestrator.js.map +1 -0
- package/dist/framework/tool-state.d.ts +12 -11
- package/dist/framework/tool-state.d.ts.map +1 -1
- package/dist/framework/tool-state.js +36 -28
- package/dist/framework/tool-state.js.map +1 -1
- package/dist/framework/tool.d.ts +0 -9
- package/dist/framework/tool.d.ts.map +1 -1
- package/dist/framework/tool.js.map +1 -1
- package/dist/harness/assembler.d.ts.map +1 -1
- package/dist/harness/assembler.js +77 -19
- package/dist/harness/assembler.js.map +1 -1
- package/dist/harness/capability-profile.d.ts +3 -0
- package/dist/harness/capability-profile.d.ts.map +1 -0
- package/dist/harness/capability-profile.js +44 -0
- package/dist/harness/capability-profile.js.map +1 -0
- package/dist/harness/capsule.d.ts.map +1 -1
- package/dist/harness/capsule.js +22 -3
- package/dist/harness/capsule.js.map +1 -1
- package/dist/harness/compact-benchmark-corpus.d.ts +10 -0
- package/dist/harness/compact-benchmark-corpus.d.ts.map +1 -0
- package/dist/harness/compact-benchmark-corpus.js +56 -0
- package/dist/harness/compact-benchmark-corpus.js.map +1 -0
- package/dist/harness/context-harness.d.ts +23 -3
- package/dist/harness/context-harness.d.ts.map +1 -1
- package/dist/harness/context-harness.js +183 -11
- package/dist/harness/context-harness.js.map +1 -1
- package/dist/harness/contract.d.ts.map +1 -1
- package/dist/harness/contract.js +106 -11
- package/dist/harness/contract.js.map +1 -1
- package/dist/harness/drift-guard.d.ts +2 -1
- package/dist/harness/drift-guard.d.ts.map +1 -1
- package/dist/harness/drift-guard.js +315 -20
- package/dist/harness/drift-guard.js.map +1 -1
- package/dist/harness/evidence.d.ts.map +1 -1
- package/dist/harness/evidence.js +25 -12
- package/dist/harness/evidence.js.map +1 -1
- package/dist/harness/index.d.ts +7 -2
- package/dist/harness/index.d.ts.map +1 -1
- package/dist/harness/index.js +19 -1
- package/dist/harness/index.js.map +1 -1
- package/dist/harness/ledger.d.ts.map +1 -1
- package/dist/harness/ledger.js +44 -14
- package/dist/harness/ledger.js.map +1 -1
- package/dist/harness/progress-controller.d.ts +14 -0
- package/dist/harness/progress-controller.d.ts.map +1 -0
- package/dist/harness/progress-controller.js +110 -0
- package/dist/harness/progress-controller.js.map +1 -0
- package/dist/harness/state.d.ts.map +1 -1
- package/dist/harness/state.js +5 -2
- package/dist/harness/state.js.map +1 -1
- package/dist/harness/stop-controller.d.ts +15 -0
- package/dist/harness/stop-controller.d.ts.map +1 -0
- package/dist/harness/stop-controller.js +87 -0
- package/dist/harness/stop-controller.js.map +1 -0
- package/dist/harness/types.d.ts +137 -0
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/harness/verification.d.ts +7 -0
- package/dist/harness/verification.d.ts.map +1 -0
- package/dist/harness/verification.js +122 -0
- package/dist/harness/verification.js.map +1 -0
- package/dist/index.d.ts +70 -26
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +64 -59
- package/dist/index.js.map +1 -1
- package/dist/memory/index.d.ts +1 -0
- package/dist/memory/index.d.ts.map +1 -1
- package/dist/memory/index.js +1 -0
- package/dist/memory/index.js.map +1 -1
- package/dist/memory/prompt-context.d.ts +42 -0
- package/dist/memory/prompt-context.d.ts.map +1 -0
- package/dist/memory/prompt-context.js +129 -0
- package/dist/memory/prompt-context.js.map +1 -0
- package/dist/print-ui/launch.d.ts.map +1 -1
- package/dist/print-ui/launch.js +9 -2
- package/dist/print-ui/launch.js.map +1 -1
- package/dist/product/paths.d.ts +7 -0
- package/dist/product/paths.d.ts.map +1 -1
- package/dist/product/paths.js +19 -0
- package/dist/product/paths.js.map +1 -1
- package/dist/runtime/agent-loop.d.ts +78 -0
- package/dist/runtime/agent-loop.d.ts.map +1 -0
- package/dist/runtime/agent-loop.js +418 -0
- package/dist/runtime/agent-loop.js.map +1 -0
- package/dist/runtime/agent-runtime-controller.d.ts +10 -57
- package/dist/runtime/agent-runtime-controller.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-controller.js +265 -1215
- package/dist/runtime/agent-runtime-controller.js.map +1 -1
- package/dist/runtime/agent-runtime-protocol.d.ts +4 -5
- package/dist/runtime/agent-runtime-protocol.d.ts.map +1 -1
- package/dist/runtime/agent-runtime-protocol.js.map +1 -1
- package/dist/runtime/agent-runtime-runner.d.ts +34 -0
- package/dist/runtime/agent-runtime-runner.d.ts.map +1 -0
- package/dist/runtime/agent-runtime-runner.js +3 -0
- package/dist/runtime/agent-runtime-runner.js.map +1 -0
- package/dist/runtime/batch-read-service.d.ts +29 -0
- package/dist/runtime/batch-read-service.d.ts.map +1 -0
- package/dist/runtime/batch-read-service.js +212 -0
- package/dist/runtime/batch-read-service.js.map +1 -0
- package/dist/runtime/builtin-tool-provider.d.ts +30 -0
- package/dist/runtime/builtin-tool-provider.d.ts.map +1 -0
- package/dist/runtime/builtin-tool-provider.js +233 -0
- package/dist/runtime/builtin-tool-provider.js.map +1 -0
- package/dist/runtime/capabilities/compiler.d.ts +11 -0
- package/dist/runtime/capabilities/compiler.d.ts.map +1 -0
- package/dist/runtime/capabilities/compiler.js +719 -0
- package/dist/runtime/capabilities/compiler.js.map +1 -0
- package/dist/runtime/capabilities/index.d.ts +3 -0
- package/dist/runtime/capabilities/index.d.ts.map +1 -0
- package/dist/runtime/capabilities/index.js +9 -0
- package/dist/runtime/capabilities/index.js.map +1 -0
- package/dist/runtime/capabilities/types.d.ts +175 -0
- package/dist/runtime/capabilities/types.d.ts.map +1 -0
- package/dist/runtime/capabilities/types.js +3 -0
- package/dist/runtime/capabilities/types.js.map +1 -0
- package/dist/runtime/capability-receipt-journal.d.ts +29 -0
- package/dist/runtime/capability-receipt-journal.d.ts.map +1 -0
- package/dist/runtime/capability-receipt-journal.js +264 -0
- package/dist/runtime/capability-receipt-journal.js.map +1 -0
- package/dist/runtime/capability-step-factory.d.ts +73 -0
- package/dist/runtime/capability-step-factory.d.ts.map +1 -0
- package/dist/runtime/capability-step-factory.js +302 -0
- package/dist/runtime/capability-step-factory.js.map +1 -0
- package/dist/runtime/compact-transaction.d.ts +225 -0
- package/dist/runtime/compact-transaction.d.ts.map +1 -0
- package/dist/runtime/compact-transaction.js +622 -0
- package/dist/runtime/compact-transaction.js.map +1 -0
- package/dist/runtime/composer/buffer.d.ts +3 -4
- package/dist/runtime/composer/buffer.d.ts.map +1 -1
- package/dist/runtime/composer/buffer.js +3 -4
- package/dist/runtime/composer/buffer.js.map +1 -1
- package/dist/runtime/composer/grapheme.d.ts +2 -4
- package/dist/runtime/composer/grapheme.d.ts.map +1 -1
- package/dist/runtime/composer/grapheme.js +2 -4
- package/dist/runtime/composer/grapheme.js.map +1 -1
- package/dist/runtime/composer/layout.d.ts +1 -3
- package/dist/runtime/composer/layout.d.ts.map +1 -1
- package/dist/runtime/composer/layout.js +1 -3
- package/dist/runtime/composer/layout.js.map +1 -1
- package/dist/runtime/core-tools/descriptors.d.ts +17 -0
- package/dist/runtime/core-tools/descriptors.d.ts.map +1 -0
- package/dist/runtime/core-tools/descriptors.js +185 -0
- package/dist/runtime/core-tools/descriptors.js.map +1 -0
- package/dist/runtime/first-party-core-provider.d.ts +55 -0
- package/dist/runtime/first-party-core-provider.d.ts.map +1 -0
- package/dist/runtime/first-party-core-provider.js +197 -0
- package/dist/runtime/first-party-core-provider.js.map +1 -0
- package/dist/runtime/first-party-long-tail-provider.d.ts +57 -0
- package/dist/runtime/first-party-long-tail-provider.d.ts.map +1 -0
- package/dist/runtime/first-party-long-tail-provider.js +238 -0
- package/dist/runtime/first-party-long-tail-provider.js.map +1 -0
- package/dist/runtime/first-party-tool-services.d.ts +43 -0
- package/dist/runtime/first-party-tool-services.d.ts.map +1 -0
- package/dist/runtime/first-party-tool-services.js +200 -0
- package/dist/runtime/first-party-tool-services.js.map +1 -0
- package/dist/runtime/first-party-tool-universe.d.ts +14 -0
- package/dist/runtime/first-party-tool-universe.d.ts.map +1 -0
- package/dist/runtime/first-party-tool-universe.js +20 -0
- package/dist/runtime/first-party-tool-universe.js.map +1 -0
- package/dist/runtime/goal-lifecycle-v2.d.ts +63 -0
- package/dist/runtime/goal-lifecycle-v2.d.ts.map +1 -0
- package/dist/runtime/goal-lifecycle-v2.js +253 -0
- package/dist/runtime/goal-lifecycle-v2.js.map +1 -0
- package/dist/runtime/goal-runtime-coordinator.d.ts +105 -0
- package/dist/runtime/goal-runtime-coordinator.d.ts.map +1 -0
- package/dist/runtime/goal-runtime-coordinator.js +506 -0
- package/dist/runtime/goal-runtime-coordinator.js.map +1 -0
- package/dist/runtime/goals/types.d.ts +0 -1
- package/dist/runtime/goals/types.d.ts.map +1 -1
- package/dist/runtime/goals/types.js +0 -1
- package/dist/runtime/goals/types.js.map +1 -1
- package/dist/runtime/harness-confluence.d.ts +165 -0
- package/dist/runtime/harness-confluence.d.ts.map +1 -0
- package/dist/runtime/harness-confluence.js +807 -0
- package/dist/runtime/harness-confluence.js.map +1 -0
- package/dist/runtime/harness-eval.d.ts +96 -0
- package/dist/runtime/harness-eval.d.ts.map +1 -0
- package/dist/runtime/harness-eval.js +181 -0
- package/dist/runtime/harness-eval.js.map +1 -0
- package/dist/runtime/harness-metrics.d.ts +202 -0
- package/dist/runtime/harness-metrics.d.ts.map +1 -0
- package/dist/runtime/harness-metrics.js +415 -0
- package/dist/runtime/harness-metrics.js.map +1 -0
- package/dist/runtime/legacy-session-importer.d.ts +99 -0
- package/dist/runtime/legacy-session-importer.d.ts.map +1 -0
- package/dist/runtime/legacy-session-importer.js +455 -0
- package/dist/runtime/legacy-session-importer.js.map +1 -0
- package/dist/runtime/legacy-thread-materializer.d.ts +72 -0
- package/dist/runtime/legacy-thread-materializer.d.ts.map +1 -0
- package/dist/runtime/legacy-thread-materializer.js +553 -0
- package/dist/runtime/legacy-thread-materializer.js.map +1 -0
- package/dist/runtime/long-tail-tools/descriptors.d.ts +23 -0
- package/dist/runtime/long-tail-tools/descriptors.d.ts.map +1 -0
- package/dist/runtime/long-tail-tools/descriptors.js +423 -0
- package/dist/runtime/long-tail-tools/descriptors.js.map +1 -0
- package/dist/runtime/loop-budget.d.ts +1 -1
- package/dist/runtime/loop-budget.d.ts.map +1 -1
- package/dist/runtime/loop-budget.js +2 -2
- package/dist/runtime/loop-budget.js.map +1 -1
- package/dist/runtime/mcp/first-party-mcp-adapter.d.ts +75 -0
- package/dist/runtime/mcp/first-party-mcp-adapter.d.ts.map +1 -0
- package/dist/runtime/mcp/first-party-mcp-adapter.js +484 -0
- package/dist/runtime/mcp/first-party-mcp-adapter.js.map +1 -0
- package/dist/runtime/mcp/first-party-mcp-config.d.ts +13 -0
- package/dist/runtime/mcp/first-party-mcp-config.d.ts.map +1 -0
- package/dist/runtime/mcp/first-party-mcp-config.js +139 -0
- package/dist/runtime/mcp/first-party-mcp-config.js.map +1 -0
- package/dist/runtime/mcp/index.d.ts +5 -0
- package/dist/runtime/mcp/index.d.ts.map +1 -0
- package/dist/{skills → runtime/mcp}/index.js +3 -9
- package/dist/runtime/mcp/index.js.map +1 -0
- package/dist/runtime/mcp/lazy-mcp-runtime.d.ts +95 -0
- package/dist/runtime/mcp/lazy-mcp-runtime.d.ts.map +1 -0
- package/dist/runtime/mcp/lazy-mcp-runtime.js +854 -0
- package/dist/runtime/mcp/lazy-mcp-runtime.js.map +1 -0
- package/dist/runtime/mcp/types.d.ts +128 -0
- package/dist/runtime/mcp/types.d.ts.map +1 -0
- package/dist/runtime/mcp/types.js +5 -0
- package/dist/runtime/mcp/types.js.map +1 -0
- package/dist/runtime/model-coordinator.d.ts +44 -1
- package/dist/runtime/model-coordinator.d.ts.map +1 -1
- package/dist/runtime/model-coordinator.js +161 -19
- package/dist/runtime/model-coordinator.js.map +1 -1
- package/dist/runtime/orion-runtime-v1.d.ts +321 -0
- package/dist/runtime/orion-runtime-v1.d.ts.map +1 -0
- package/dist/runtime/orion-runtime-v1.js +958 -0
- package/dist/runtime/orion-runtime-v1.js.map +1 -0
- package/dist/runtime/orion-session-runner.d.ts +37 -0
- package/dist/runtime/orion-session-runner.d.ts.map +1 -0
- package/dist/runtime/orion-session-runner.js +146 -0
- package/dist/runtime/orion-session-runner.js.map +1 -0
- package/dist/runtime/product-orion-runtime.d.ts +35 -0
- package/dist/runtime/product-orion-runtime.d.ts.map +1 -0
- package/dist/runtime/product-orion-runtime.js +1019 -0
- package/dist/runtime/product-orion-runtime.js.map +1 -0
- package/dist/runtime/prompts/index.d.ts +3 -0
- package/dist/runtime/prompts/index.d.ts.map +1 -0
- package/dist/{ink-ui/types.js → runtime/prompts/index.js} +3 -2
- package/dist/runtime/prompts/index.js.map +1 -0
- package/dist/runtime/prompts/prompt-registry.d.ts +22 -0
- package/dist/runtime/prompts/prompt-registry.d.ts.map +1 -0
- package/dist/runtime/prompts/prompt-registry.js +356 -0
- package/dist/runtime/prompts/prompt-registry.js.map +1 -0
- package/dist/runtime/prompts/types.d.ts +111 -0
- package/dist/runtime/prompts/types.d.ts.map +1 -0
- package/dist/runtime/prompts/types.js +5 -0
- package/dist/runtime/prompts/types.js.map +1 -0
- package/dist/runtime/protocol/canonical.d.ts +3 -0
- package/dist/runtime/protocol/canonical.d.ts.map +1 -0
- package/dist/runtime/protocol/canonical.js +21 -0
- package/dist/runtime/protocol/canonical.js.map +1 -0
- package/dist/runtime/protocol/index.d.ts +4 -0
- package/dist/runtime/protocol/index.d.ts.map +1 -0
- package/dist/runtime/protocol/index.js +16 -0
- package/dist/runtime/protocol/index.js.map +1 -0
- package/dist/runtime/protocol/runtime-protocol-v1.d.ts +671 -0
- package/dist/runtime/protocol/runtime-protocol-v1.d.ts.map +1 -0
- package/dist/runtime/protocol/runtime-protocol-v1.js +557 -0
- package/dist/runtime/protocol/runtime-protocol-v1.js.map +1 -0
- package/dist/runtime/release-receipts.d.ts +109 -0
- package/dist/runtime/release-receipts.d.ts.map +1 -0
- package/dist/runtime/release-receipts.js +304 -0
- package/dist/runtime/release-receipts.js.map +1 -0
- package/dist/runtime/resource-scope.d.ts +123 -0
- package/dist/runtime/resource-scope.d.ts.map +1 -0
- package/dist/runtime/resource-scope.js +363 -0
- package/dist/runtime/resource-scope.js.map +1 -0
- package/dist/runtime/runtime-event-buffer.d.ts +78 -0
- package/dist/runtime/runtime-event-buffer.d.ts.map +1 -0
- package/dist/runtime/runtime-event-buffer.js +237 -0
- package/dist/runtime/runtime-event-buffer.js.map +1 -0
- package/dist/runtime/runtime-services.d.ts +87 -0
- package/dist/runtime/runtime-services.d.ts.map +1 -0
- package/dist/runtime/runtime-services.js +180 -0
- package/dist/runtime/runtime-services.js.map +1 -0
- package/dist/runtime/skills/bounded-lru-cache.d.ts +34 -0
- package/dist/runtime/skills/bounded-lru-cache.d.ts.map +1 -0
- package/dist/runtime/skills/bounded-lru-cache.js +100 -0
- package/dist/runtime/skills/bounded-lru-cache.js.map +1 -0
- package/dist/runtime/skills/filesystem-skill-provider.d.ts +96 -0
- package/dist/runtime/skills/filesystem-skill-provider.d.ts.map +1 -0
- package/dist/runtime/skills/filesystem-skill-provider.js +829 -0
- package/dist/runtime/skills/filesystem-skill-provider.js.map +1 -0
- package/dist/runtime/skills/index.d.ts +5 -0
- package/dist/runtime/skills/index.d.ts.map +1 -0
- package/dist/{ink-ui/controllers/chat-controller.js → runtime/skills/index.js} +5 -2
- package/dist/runtime/skills/index.js.map +1 -0
- package/dist/runtime/skills/lazy-skill-runtime.d.ts +77 -0
- package/dist/runtime/skills/lazy-skill-runtime.d.ts.map +1 -0
- package/dist/runtime/skills/lazy-skill-runtime.js +673 -0
- package/dist/runtime/skills/lazy-skill-runtime.js.map +1 -0
- package/dist/runtime/skills/types.d.ts +137 -0
- package/dist/runtime/skills/types.d.ts.map +1 -0
- package/dist/runtime/skills/types.js +13 -0
- package/dist/runtime/skills/types.js.map +1 -0
- package/dist/runtime/step-snapshot.d.ts +183 -0
- package/dist/runtime/step-snapshot.d.ts.map +1 -0
- package/dist/runtime/step-snapshot.js +286 -0
- package/dist/runtime/step-snapshot.js.map +1 -0
- package/dist/runtime/subagent-thread-runtime.d.ts +239 -0
- package/dist/runtime/subagent-thread-runtime.d.ts.map +1 -0
- package/dist/runtime/subagent-thread-runtime.js +876 -0
- package/dist/runtime/subagent-thread-runtime.js.map +1 -0
- package/dist/runtime/subagents/index.d.ts +5 -2
- package/dist/runtime/subagents/index.d.ts.map +1 -1
- package/dist/runtime/subagents/index.js +10 -2
- package/dist/runtime/subagents/index.js.map +1 -1
- package/dist/runtime/subagents/parent-step-fork.d.ts +36 -0
- package/dist/runtime/subagents/parent-step-fork.d.ts.map +1 -0
- package/dist/runtime/subagents/parent-step-fork.js +83 -0
- package/dist/runtime/subagents/parent-step-fork.js.map +1 -0
- package/dist/runtime/subagents/production.d.ts +65 -42
- package/dist/runtime/subagents/production.d.ts.map +1 -1
- package/dist/runtime/subagents/production.js +494 -151
- package/dist/runtime/subagents/production.js.map +1 -1
- package/dist/runtime/subagents/receipt-journal.d.ts +20 -0
- package/dist/runtime/subagents/receipt-journal.d.ts.map +1 -0
- package/dist/runtime/subagents/receipt-journal.js +74 -0
- package/dist/runtime/subagents/receipt-journal.js.map +1 -0
- package/dist/runtime/subagents/runner.d.ts +12 -1
- package/dist/runtime/subagents/runner.d.ts.map +1 -1
- package/dist/runtime/subagents/runner.js +62 -1
- package/dist/runtime/subagents/runner.js.map +1 -1
- package/dist/runtime/subagents/runtime-contract.d.ts +29 -0
- package/dist/runtime/subagents/runtime-contract.d.ts.map +1 -0
- package/dist/runtime/subagents/runtime-contract.js +3 -0
- package/dist/runtime/subagents/runtime-contract.js.map +1 -0
- package/dist/runtime/subagents/runtime-integration.d.ts +41 -56
- package/dist/runtime/subagents/runtime-integration.d.ts.map +1 -1
- package/dist/runtime/subagents/runtime-integration.js +34 -197
- package/dist/runtime/subagents/runtime-integration.js.map +1 -1
- package/dist/runtime/subagents/supervisor.d.ts +19 -7
- package/dist/runtime/subagents/supervisor.d.ts.map +1 -1
- package/dist/runtime/subagents/supervisor.js +88 -39
- package/dist/runtime/subagents/supervisor.js.map +1 -1
- package/dist/runtime/subagents/types.d.ts +5 -2
- package/dist/runtime/subagents/types.d.ts.map +1 -1
- package/dist/runtime/subagents/types.js +1 -1
- package/dist/runtime/subagents/types.js.map +1 -1
- package/dist/runtime/task-context-service.d.ts +91 -0
- package/dist/runtime/task-context-service.d.ts.map +1 -0
- package/dist/runtime/task-context-service.js +122 -0
- package/dist/runtime/task-context-service.js.map +1 -0
- package/dist/runtime/thread-admission.d.ts +130 -0
- package/dist/runtime/thread-admission.d.ts.map +1 -0
- package/dist/runtime/thread-admission.js +276 -0
- package/dist/runtime/thread-admission.js.map +1 -0
- package/dist/runtime/thread-compact-persistence.d.ts +50 -0
- package/dist/runtime/thread-compact-persistence.d.ts.map +1 -0
- package/dist/runtime/thread-compact-persistence.js +176 -0
- package/dist/runtime/thread-compact-persistence.js.map +1 -0
- package/dist/runtime/thread-event-store.d.ts +98 -0
- package/dist/runtime/thread-event-store.d.ts.map +1 -0
- package/dist/runtime/thread-event-store.js +737 -0
- package/dist/runtime/thread-event-store.js.map +1 -0
- package/dist/runtime/thread-projection.d.ts +91 -0
- package/dist/runtime/thread-projection.d.ts.map +1 -0
- package/dist/runtime/thread-projection.js +407 -0
- package/dist/runtime/thread-projection.js.map +1 -0
- package/dist/runtime/thread-runtime.d.ts +165 -0
- package/dist/runtime/thread-runtime.d.ts.map +1 -0
- package/dist/runtime/thread-runtime.js +704 -0
- package/dist/runtime/thread-runtime.js.map +1 -0
- package/dist/runtime/thread-tool-journal.d.ts +11 -0
- package/dist/runtime/thread-tool-journal.d.ts.map +1 -0
- package/dist/runtime/thread-tool-journal.js +131 -0
- package/dist/runtime/thread-tool-journal.js.map +1 -0
- package/dist/runtime/thread-ui-adapter.d.ts +85 -0
- package/dist/runtime/thread-ui-adapter.d.ts.map +1 -0
- package/dist/runtime/thread-ui-adapter.js +514 -0
- package/dist/runtime/thread-ui-adapter.js.map +1 -0
- package/dist/runtime/tool-gateway.d.ts +159 -0
- package/dist/runtime/tool-gateway.d.ts.map +1 -0
- package/dist/runtime/tool-gateway.js +311 -0
- package/dist/runtime/tool-gateway.js.map +1 -0
- package/dist/runtime/turn-commit.d.ts +103 -0
- package/dist/runtime/turn-commit.d.ts.map +1 -0
- package/dist/runtime/turn-commit.js +321 -0
- package/dist/runtime/turn-commit.js.map +1 -0
- package/dist/runtime/ui-events.d.ts +15 -5
- package/dist/runtime/ui-events.d.ts.map +1 -1
- package/dist/runtime/ui-events.js +0 -1
- package/dist/runtime/ui-events.js.map +1 -1
- package/dist/runtime/ui-view-model.d.ts +1 -1
- package/dist/runtime/ui-view-model.d.ts.map +1 -1
- package/dist/runtime/ui-view-model.js +3 -5
- package/dist/runtime/ui-view-model.js.map +1 -1
- package/dist/services/compact/auto-compact.d.ts +82 -2
- package/dist/services/compact/auto-compact.d.ts.map +1 -1
- package/dist/services/compact/auto-compact.js +226 -44
- package/dist/services/compact/auto-compact.js.map +1 -1
- package/dist/services/compact/compact.d.ts +54 -37
- package/dist/services/compact/compact.d.ts.map +1 -1
- package/dist/services/compact/compact.js +512 -127
- package/dist/services/compact/compact.js.map +1 -1
- package/dist/services/compact/coordinator.d.ts +5 -1
- package/dist/services/compact/coordinator.d.ts.map +1 -1
- package/dist/services/compact/coordinator.js +10 -1
- package/dist/services/compact/coordinator.js.map +1 -1
- package/dist/services/compact/fingerprint.d.ts +27 -0
- package/dist/services/compact/fingerprint.d.ts.map +1 -0
- package/dist/services/compact/fingerprint.js +69 -0
- package/dist/services/compact/fingerprint.js.map +1 -0
- package/dist/services/compact/index.d.ts +7 -5
- package/dist/services/compact/index.d.ts.map +1 -1
- package/dist/services/compact/index.js +19 -6
- package/dist/services/compact/index.js.map +1 -1
- package/dist/services/compact/planner.d.ts +41 -0
- package/dist/services/compact/planner.d.ts.map +1 -0
- package/dist/services/compact/planner.js +102 -0
- package/dist/services/compact/planner.js.map +1 -0
- package/dist/services/compact/semantic-summary.d.ts +93 -0
- package/dist/services/compact/semantic-summary.d.ts.map +1 -0
- package/dist/services/compact/semantic-summary.js +158 -0
- package/dist/services/compact/semantic-summary.js.map +1 -0
- package/dist/services/compact/summary-generator.d.ts +23 -0
- package/dist/services/compact/summary-generator.d.ts.map +1 -1
- package/dist/services/compact/summary-generator.js +173 -39
- package/dist/services/compact/summary-generator.js.map +1 -1
- package/dist/services/config-dir.d.ts +1 -1
- package/dist/services/config-dir.d.ts.map +1 -1
- package/dist/services/config-dir.js +2 -1
- package/dist/services/config-dir.js.map +1 -1
- package/dist/services/config.d.ts +2 -16
- package/dist/services/config.d.ts.map +1 -1
- package/dist/services/config.js +2 -29
- package/dist/services/config.js.map +1 -1
- package/dist/services/doctor.d.ts +0 -2
- package/dist/services/doctor.d.ts.map +1 -1
- package/dist/services/doctor.js +39 -64
- package/dist/services/doctor.js.map +1 -1
- package/dist/services/file-context.d.ts.map +1 -1
- package/dist/services/file-context.js +29 -33
- package/dist/services/file-context.js.map +1 -1
- package/dist/services/global-config.d.ts +8 -2
- package/dist/services/global-config.d.ts.map +1 -1
- package/dist/services/global-config.js +8 -0
- package/dist/services/global-config.js.map +1 -1
- package/dist/services/llm.d.ts +3 -0
- package/dist/services/llm.d.ts.map +1 -1
- package/dist/services/llm.js +7 -0
- package/dist/services/llm.js.map +1 -1
- package/dist/services/project-instructions.d.ts.map +1 -1
- package/dist/services/project-instructions.js +10 -17
- package/dist/services/project-instructions.js.map +1 -1
- package/dist/services/safe-project-reader.d.ts +30 -0
- package/dist/services/safe-project-reader.d.ts.map +1 -0
- package/dist/services/safe-project-reader.js +141 -0
- package/dist/services/safe-project-reader.js.map +1 -0
- package/dist/services/session-storage.d.ts +134 -5
- package/dist/services/session-storage.d.ts.map +1 -1
- package/dist/services/session-storage.js +727 -57
- package/dist/services/session-storage.js.map +1 -1
- package/dist/services/usage-state.d.ts +7 -0
- package/dist/services/usage-state.d.ts.map +1 -1
- package/dist/services/usage-state.js +117 -16
- package/dist/services/usage-state.js.map +1 -1
- package/dist/skills/builtin/code-review/SKILL.md +51 -0
- package/dist/skills/builtin/security-check/SKILL.md +54 -0
- package/dist/skills/builtin/test-gen/SKILL.md +49 -0
- package/dist/terminal-ui/launch.d.ts +3 -1
- package/dist/terminal-ui/launch.d.ts.map +1 -1
- package/dist/terminal-ui/launch.js +19 -3
- package/dist/terminal-ui/launch.js.map +1 -1
- package/dist/tools/core/common.d.ts +34 -0
- package/dist/tools/core/common.d.ts.map +1 -0
- package/dist/tools/core/common.js +164 -0
- package/dist/tools/core/common.js.map +1 -0
- package/dist/tools/core/edit-file.d.ts +10 -0
- package/dist/tools/core/edit-file.d.ts.map +1 -0
- package/dist/tools/core/edit-file.js +301 -0
- package/dist/tools/core/edit-file.js.map +1 -0
- package/dist/tools/core/exec-command.d.ts +2 -0
- package/dist/tools/core/exec-command.d.ts.map +1 -0
- package/dist/tools/core/exec-command.js +347 -0
- package/dist/tools/core/exec-command.js.map +1 -0
- package/dist/tools/core/glob.d.ts +2 -0
- package/dist/tools/core/glob.d.ts.map +1 -0
- package/dist/tools/core/glob.js +133 -0
- package/dist/tools/core/glob.js.map +1 -0
- package/dist/tools/core/grep.d.ts +12 -0
- package/dist/tools/core/grep.d.ts.map +1 -0
- package/dist/tools/core/grep.js +223 -0
- package/dist/tools/core/grep.js.map +1 -0
- package/dist/tools/core/index.d.ts +15 -0
- package/dist/tools/core/index.d.ts.map +1 -0
- package/dist/tools/core/index.js +31 -0
- package/dist/tools/core/index.js.map +1 -0
- package/dist/tools/core/list-files.d.ts +2 -0
- package/dist/tools/core/list-files.d.ts.map +1 -0
- package/dist/tools/core/list-files.js +87 -0
- package/dist/tools/core/list-files.js.map +1 -0
- package/dist/tools/core/read-file.d.ts +2 -0
- package/dist/tools/core/read-file.d.ts.map +1 -0
- package/dist/tools/core/read-file.js +129 -0
- package/dist/tools/core/read-file.js.map +1 -0
- package/dist/tools/core/write-file.d.ts +2 -0
- package/dist/tools/core/write-file.d.ts.map +1 -0
- package/dist/tools/core/write-file.js +65 -0
- package/dist/tools/core/write-file.js.map +1 -0
- package/dist/tools/todo.d.ts +3 -4
- package/dist/tools/todo.d.ts.map +1 -1
- package/dist/tools/todo.js +80 -79
- package/dist/tools/todo.js.map +1 -1
- package/dist/tui-ui/chrome-view-model.js +1 -1
- package/dist/tui-ui/chrome-view-model.js.map +1 -1
- package/dist/tui-ui/layout.js +1 -1
- package/dist/tui-ui/layout.js.map +1 -1
- package/docs/migration/v0.1.9-to-v0.2.0.md +98 -0
- package/docs/orion.example.json +79 -0
- package/docs/plan/v0.2.0-dsh-harness-redesign-plan.md +1234 -0
- package/docs/plan/v0.2.0-release-checklist.md +91 -0
- package/docs/readme.md +27 -0
- package/npm-shrinkwrap.json +9 -438
- package/package.json +19 -11
- package/dist/agents/coder.d.ts +0 -12
- package/dist/agents/coder.d.ts.map +0 -1
- package/dist/agents/coder.js +0 -48
- package/dist/agents/coder.js.map +0 -1
- package/dist/agents/coordinator.d.ts +0 -86
- package/dist/agents/coordinator.d.ts.map +0 -1
- package/dist/agents/coordinator.js +0 -251
- package/dist/agents/coordinator.js.map +0 -1
- package/dist/agents/fork.d.ts +0 -69
- package/dist/agents/fork.d.ts.map +0 -1
- package/dist/agents/fork.js +0 -164
- package/dist/agents/fork.js.map +0 -1
- package/dist/agents/leader.d.ts +0 -12
- package/dist/agents/leader.d.ts.map +0 -1
- package/dist/agents/leader.js +0 -49
- package/dist/agents/leader.js.map +0 -1
- package/dist/agents/router.d.ts +0 -59
- package/dist/agents/router.d.ts.map +0 -1
- package/dist/agents/router.js +0 -193
- package/dist/agents/router.js.map +0 -1
- package/dist/agents/worker-pool.d.ts +0 -72
- package/dist/agents/worker-pool.d.ts.map +0 -1
- package/dist/agents/worker-pool.js +0 -224
- package/dist/agents/worker-pool.js.map +0 -1
- package/dist/commands/legacy-commands.d.ts +0 -4
- package/dist/commands/legacy-commands.d.ts.map +0 -1
- package/dist/commands/legacy-commands.js +0 -44
- package/dist/commands/legacy-commands.js.map +0 -1
- package/dist/core/agent.d.ts +0 -84
- package/dist/core/agent.d.ts.map +0 -1
- package/dist/core/agent.js +0 -58
- package/dist/core/agent.js.map +0 -1
- package/dist/core/brain.d.ts +0 -50
- package/dist/core/brain.d.ts.map +0 -1
- package/dist/core/brain.js +0 -95
- package/dist/core/brain.js.map +0 -1
- package/dist/framework/tool-scheduler.d.ts +0 -186
- package/dist/framework/tool-scheduler.d.ts.map +0 -1
- package/dist/framework/tool-scheduler.js +0 -558
- package/dist/framework/tool-scheduler.js.map +0 -1
- package/dist/harness/harness.d.ts +0 -58
- package/dist/harness/harness.d.ts.map +0 -1
- package/dist/harness/harness.js +0 -195
- package/dist/harness/harness.js.map +0 -1
- package/dist/harness/safety.d.ts +0 -101
- package/dist/harness/safety.d.ts.map +0 -1
- package/dist/harness/safety.js +0 -322
- package/dist/harness/safety.js.map +0 -1
- package/dist/init.d.ts +0 -108
- package/dist/init.d.ts.map +0 -1
- package/dist/init.js +0 -393
- package/dist/init.js.map +0 -1
- package/dist/ink-ui/App.d.ts +0 -9
- package/dist/ink-ui/App.d.ts.map +0 -1
- package/dist/ink-ui/App.js +0 -12
- package/dist/ink-ui/App.js.map +0 -1
- package/dist/ink-ui/components/Markdown.d.ts +0 -10
- package/dist/ink-ui/components/Markdown.d.ts.map +0 -1
- package/dist/ink-ui/components/Markdown.js +0 -210
- package/dist/ink-ui/components/Markdown.js.map +0 -1
- package/dist/ink-ui/components/NativeCursor.d.ts +0 -12
- package/dist/ink-ui/components/NativeCursor.d.ts.map +0 -1
- package/dist/ink-ui/components/NativeCursor.js +0 -35
- package/dist/ink-ui/components/NativeCursor.js.map +0 -1
- package/dist/ink-ui/components/PixelHorseBanner.d.ts +0 -8
- package/dist/ink-ui/components/PixelHorseBanner.d.ts.map +0 -1
- package/dist/ink-ui/components/PixelHorseBanner.js +0 -97
- package/dist/ink-ui/components/PixelHorseBanner.js.map +0 -1
- package/dist/ink-ui/components/PromptInput.d.ts +0 -13
- package/dist/ink-ui/components/PromptInput.d.ts.map +0 -1
- package/dist/ink-ui/components/PromptInput.js +0 -30
- package/dist/ink-ui/components/PromptInput.js.map +0 -1
- package/dist/ink-ui/components/RunningHorseIndicator.d.ts +0 -13
- package/dist/ink-ui/components/RunningHorseIndicator.d.ts.map +0 -1
- package/dist/ink-ui/components/RunningHorseIndicator.js +0 -53
- package/dist/ink-ui/components/RunningHorseIndicator.js.map +0 -1
- package/dist/ink-ui/components/SelectList.d.ts +0 -16
- package/dist/ink-ui/components/SelectList.d.ts.map +0 -1
- package/dist/ink-ui/components/SelectList.js +0 -60
- package/dist/ink-ui/components/SelectList.js.map +0 -1
- package/dist/ink-ui/components/StatusLine.d.ts +0 -11
- package/dist/ink-ui/components/StatusLine.d.ts.map +0 -1
- package/dist/ink-ui/components/StatusLine.js +0 -70
- package/dist/ink-ui/components/StatusLine.js.map +0 -1
- package/dist/ink-ui/components/ToolActivity.d.ts +0 -19
- package/dist/ink-ui/components/ToolActivity.d.ts.map +0 -1
- package/dist/ink-ui/components/ToolActivity.js +0 -134
- package/dist/ink-ui/components/ToolActivity.js.map +0 -1
- package/dist/ink-ui/components/Transcript.d.ts +0 -14
- package/dist/ink-ui/components/Transcript.d.ts.map +0 -1
- package/dist/ink-ui/components/Transcript.js +0 -66
- package/dist/ink-ui/components/Transcript.js.map +0 -1
- package/dist/ink-ui/controllers/chat-controller.d.ts +0 -2
- package/dist/ink-ui/controllers/chat-controller.d.ts.map +0 -1
- package/dist/ink-ui/controllers/chat-controller.js.map +0 -1
- package/dist/ink-ui/hooks/use-raw-input-bridge.d.ts +0 -6
- package/dist/ink-ui/hooks/use-raw-input-bridge.d.ts.map +0 -1
- package/dist/ink-ui/hooks/use-raw-input-bridge.js +0 -27
- package/dist/ink-ui/hooks/use-raw-input-bridge.js.map +0 -1
- package/dist/ink-ui/hooks/use-terminal-size.d.ts +0 -7
- package/dist/ink-ui/hooks/use-terminal-size.d.ts.map +0 -1
- package/dist/ink-ui/hooks/use-terminal-size.js +0 -34
- package/dist/ink-ui/hooks/use-terminal-size.js.map +0 -1
- package/dist/ink-ui/launch.d.ts +0 -9
- package/dist/ink-ui/launch.d.ts.map +0 -1
- package/dist/ink-ui/launch.js +0 -101
- package/dist/ink-ui/launch.js.map +0 -1
- package/dist/ink-ui/runtime/grapheme.d.ts +0 -10
- package/dist/ink-ui/runtime/grapheme.d.ts.map +0 -1
- package/dist/ink-ui/runtime/grapheme.js +0 -17
- package/dist/ink-ui/runtime/grapheme.js.map +0 -1
- package/dist/ink-ui/runtime/input-buffer.d.ts +0 -10
- package/dist/ink-ui/runtime/input-buffer.d.ts.map +0 -1
- package/dist/ink-ui/runtime/input-buffer.js +0 -18
- package/dist/ink-ui/runtime/input-buffer.js.map +0 -1
- package/dist/ink-ui/runtime/layout-budget.d.ts +0 -13
- package/dist/ink-ui/runtime/layout-budget.d.ts.map +0 -1
- package/dist/ink-ui/runtime/layout-budget.js +0 -25
- package/dist/ink-ui/runtime/layout-budget.js.map +0 -1
- package/dist/ink-ui/runtime/native-cursor.d.ts +0 -62
- package/dist/ink-ui/runtime/native-cursor.d.ts.map +0 -1
- package/dist/ink-ui/runtime/native-cursor.js +0 -398
- package/dist/ink-ui/runtime/native-cursor.js.map +0 -1
- package/dist/ink-ui/runtime/prompt-layout.d.ts +0 -10
- package/dist/ink-ui/runtime/prompt-layout.d.ts.map +0 -1
- package/dist/ink-ui/runtime/prompt-layout.js +0 -21
- package/dist/ink-ui/runtime/prompt-layout.js.map +0 -1
- package/dist/ink-ui/runtime/raw-input.d.ts +0 -4
- package/dist/ink-ui/runtime/raw-input.d.ts.map +0 -1
- package/dist/ink-ui/runtime/raw-input.js +0 -15
- package/dist/ink-ui/runtime/raw-input.js.map +0 -1
- package/dist/ink-ui/runtime/transcript-state.d.ts +0 -37
- package/dist/ink-ui/runtime/transcript-state.d.ts.map +0 -1
- package/dist/ink-ui/runtime/transcript-state.js +0 -91
- package/dist/ink-ui/runtime/transcript-state.js.map +0 -1
- package/dist/ink-ui/screens/ReplScreen.d.ts +0 -24
- package/dist/ink-ui/screens/ReplScreen.d.ts.map +0 -1
- package/dist/ink-ui/screens/ReplScreen.js +0 -756
- package/dist/ink-ui/screens/ReplScreen.js.map +0 -1
- package/dist/ink-ui/types.d.ts +0 -2
- package/dist/ink-ui/types.d.ts.map +0 -1
- package/dist/ink-ui/types.js.map +0 -1
- package/dist/runtime/chat-checkpoint.d.ts +0 -17
- package/dist/runtime/chat-checkpoint.d.ts.map +0 -1
- package/dist/runtime/chat-checkpoint.js +0 -105
- package/dist/runtime/chat-checkpoint.js.map +0 -1
- package/dist/runtime/chat-command-scope.d.ts +0 -5
- package/dist/runtime/chat-command-scope.d.ts.map +0 -1
- package/dist/runtime/chat-command-scope.js +0 -22
- package/dist/runtime/chat-command-scope.js.map +0 -1
- package/dist/runtime/chat-controller.d.ts +0 -62
- package/dist/runtime/chat-controller.d.ts.map +0 -1
- package/dist/runtime/chat-controller.js +0 -1630
- package/dist/runtime/chat-controller.js.map +0 -1
- package/dist/runtime/chat-effort.d.ts +0 -5
- package/dist/runtime/chat-effort.d.ts.map +0 -1
- package/dist/runtime/chat-effort.js +0 -47
- package/dist/runtime/chat-effort.js.map +0 -1
- package/dist/runtime/chat-presentation.d.ts +0 -63
- package/dist/runtime/chat-presentation.d.ts.map +0 -1
- package/dist/runtime/chat-presentation.js +0 -561
- package/dist/runtime/chat-presentation.js.map +0 -1
- package/dist/runtime/chat-trace.d.ts +0 -52
- package/dist/runtime/chat-trace.d.ts.map +0 -1
- package/dist/runtime/chat-trace.js +0 -234
- package/dist/runtime/chat-trace.js.map +0 -1
- package/dist/runtime/chat-workspace.d.ts +0 -22
- package/dist/runtime/chat-workspace.d.ts.map +0 -1
- package/dist/runtime/chat-workspace.js +0 -154
- package/dist/runtime/chat-workspace.js.map +0 -1
- package/dist/runtime/goals/accounting.d.ts +0 -45
- package/dist/runtime/goals/accounting.d.ts.map +0 -1
- package/dist/runtime/goals/accounting.js +0 -114
- package/dist/runtime/goals/accounting.js.map +0 -1
- package/dist/runtime/goals/coordinator.d.ts +0 -89
- package/dist/runtime/goals/coordinator.d.ts.map +0 -1
- package/dist/runtime/goals/coordinator.js +0 -1481
- package/dist/runtime/goals/coordinator.js.map +0 -1
- package/dist/runtime/goals/lifecycle.d.ts +0 -13
- package/dist/runtime/goals/lifecycle.d.ts.map +0 -1
- package/dist/runtime/goals/lifecycle.js +0 -46
- package/dist/runtime/goals/lifecycle.js.map +0 -1
- package/dist/runtime/goals/prompt.d.ts +0 -16
- package/dist/runtime/goals/prompt.d.ts.map +0 -1
- package/dist/runtime/goals/prompt.js +0 -88
- package/dist/runtime/goals/prompt.js.map +0 -1
- package/dist/runtime/goals/tools.d.ts +0 -61
- package/dist/runtime/goals/tools.d.ts.map +0 -1
- package/dist/runtime/goals/tools.js +0 -568
- package/dist/runtime/goals/tools.js.map +0 -1
- package/dist/sdk/index.d.ts +0 -10
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js +0 -23
- package/dist/sdk/index.js.map +0 -1
- package/dist/sdk/init.d.ts +0 -24
- package/dist/sdk/init.d.ts.map +0 -1
- package/dist/sdk/init.js +0 -48
- package/dist/sdk/init.js.map +0 -1
- package/dist/sdk/query.d.ts +0 -19
- package/dist/sdk/query.d.ts.map +0 -1
- package/dist/sdk/query.js +0 -42
- package/dist/sdk/query.js.map +0 -1
- package/dist/sdk/sessions.d.ts +0 -19
- package/dist/sdk/sessions.d.ts.map +0 -1
- package/dist/sdk/sessions.js +0 -57
- package/dist/sdk/sessions.js.map +0 -1
- package/dist/sdk/types.d.ts +0 -47
- package/dist/sdk/types.d.ts.map +0 -1
- package/dist/sdk/types.js +0 -8
- package/dist/sdk/types.js.map +0 -1
- package/dist/services/agent-runner.d.ts +0 -71
- package/dist/services/agent-runner.d.ts.map +0 -1
- package/dist/services/agent-runner.js +0 -185
- package/dist/services/agent-runner.js.map +0 -1
- package/dist/services/compact/micro-compact.d.ts +0 -21
- package/dist/services/compact/micro-compact.d.ts.map +0 -1
- package/dist/services/compact/micro-compact.js +0 -99
- package/dist/services/compact/micro-compact.js.map +0 -1
- package/dist/services/task-manager.d.ts +0 -161
- package/dist/services/task-manager.d.ts.map +0 -1
- package/dist/services/task-manager.js +0 -315
- package/dist/services/task-manager.js.map +0 -1
- package/dist/skills/discovery.d.ts +0 -22
- package/dist/skills/discovery.d.ts.map +0 -1
- package/dist/skills/discovery.js +0 -75
- package/dist/skills/discovery.js.map +0 -1
- package/dist/skills/index.d.ts +0 -11
- package/dist/skills/index.d.ts.map +0 -1
- package/dist/skills/index.js.map +0 -1
- package/dist/skills/loader.d.ts +0 -53
- package/dist/skills/loader.d.ts.map +0 -1
- package/dist/skills/loader.js +0 -421
- package/dist/skills/loader.js.map +0 -1
- package/dist/skills/registry.d.ts +0 -41
- package/dist/skills/registry.d.ts.map +0 -1
- package/dist/skills/registry.js +0 -157
- package/dist/skills/registry.js.map +0 -1
- package/dist/skills/runtime.d.ts +0 -46
- package/dist/skills/runtime.d.ts.map +0 -1
- package/dist/skills/runtime.js +0 -364
- package/dist/skills/runtime.js.map +0 -1
- package/dist/skills/types.d.ts +0 -112
- package/dist/skills/types.d.ts.map +0 -1
- package/dist/skills/types.js +0 -24
- package/dist/skills/types.js.map +0 -1
- package/dist/tools/index.d.ts +0 -52
- package/dist/tools/index.d.ts.map +0 -1
- package/dist/tools/index.js +0 -2268
- package/dist/tools/index.js.map +0 -1
- package/dist/tools/mcp.d.ts +0 -99
- package/dist/tools/mcp.d.ts.map +0 -1
- package/dist/tools/mcp.js +0 -695
- package/dist/tools/mcp.js.map +0 -1
- package/dist/tools/plan.d.ts +0 -17
- package/dist/tools/plan.d.ts.map +0 -1
- package/dist/tools/plan.js +0 -84
- package/dist/tools/plan.js.map +0 -1
package/dist/harness/contract.js
CHANGED
|
@@ -5,10 +5,8 @@ exports.normalizeTaskContract = normalizeTaskContract;
|
|
|
5
5
|
exports.createTaskContract = createTaskContract;
|
|
6
6
|
exports.updateTaskContract = updateTaskContract;
|
|
7
7
|
const crypto_1 = require("crypto");
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
const trimmed = text.trim().replace(/\s+/g, ' ');
|
|
11
|
-
return trimmed.length > max ? trimmed.slice(0, max - 3) + '...' : trimmed;
|
|
8
|
+
function normalizeLine(text) {
|
|
9
|
+
return text.trim().replace(/\s+/g, ' ');
|
|
12
10
|
}
|
|
13
11
|
function cleanLine(line) {
|
|
14
12
|
return line.replace(/^[-*+\d.)\s]+/, '').trim();
|
|
@@ -24,11 +22,81 @@ function isSectionHeading(line) {
|
|
|
24
22
|
return normalized.length <= 32 && /^[^。.!??;;,,、/::]+[::]$/.test(normalized);
|
|
25
23
|
}
|
|
26
24
|
function unique(items) {
|
|
27
|
-
return [...new Set(items.map(item =>
|
|
25
|
+
return [...new Set(items.map(item => normalizeLine(item)).filter(Boolean))];
|
|
28
26
|
}
|
|
29
27
|
function isObjectiveFallback(item) {
|
|
30
28
|
return item.startsWith('Address the objective: ');
|
|
31
29
|
}
|
|
30
|
+
function stableCriterionId(statement) {
|
|
31
|
+
const digest = (0, crypto_1.createHash)('sha256').update(normalizeLine(statement).toLowerCase()).digest('hex');
|
|
32
|
+
return `criterion:harness:${digest.slice(0, 16)}`;
|
|
33
|
+
}
|
|
34
|
+
function normalizeCriterionStatus(criterion) {
|
|
35
|
+
if (criterion.status === 'waived' &&
|
|
36
|
+
criterion.waiver?.authorizedBy === 'user' &&
|
|
37
|
+
criterion.waiver.reason?.trim() &&
|
|
38
|
+
Number.isFinite(criterion.waiver.at)) {
|
|
39
|
+
return 'waived';
|
|
40
|
+
}
|
|
41
|
+
return criterion.status === 'passed' || criterion.status === 'failed'
|
|
42
|
+
? criterion.status
|
|
43
|
+
: 'pending';
|
|
44
|
+
}
|
|
45
|
+
function normalizeCriteria(statements, existing) {
|
|
46
|
+
const byStatement = new Map();
|
|
47
|
+
for (const criterion of existing ?? []) {
|
|
48
|
+
if (!criterion || typeof criterion.statement !== 'string')
|
|
49
|
+
continue;
|
|
50
|
+
const statement = normalizeLine(criterion.statement);
|
|
51
|
+
if (!statement || byStatement.has(statement))
|
|
52
|
+
continue;
|
|
53
|
+
byStatement.set(statement, {
|
|
54
|
+
id: typeof criterion.id === 'string' && criterion.id.trim()
|
|
55
|
+
? criterion.id.trim()
|
|
56
|
+
: stableCriterionId(statement),
|
|
57
|
+
statement,
|
|
58
|
+
evidenceRefs: unique(Array.isArray(criterion.evidenceRefs)
|
|
59
|
+
? criterion.evidenceRefs.filter(ref => typeof ref === 'string')
|
|
60
|
+
: []),
|
|
61
|
+
source: criterion.source?.kind === 'user' ||
|
|
62
|
+
criterion.source?.kind === 'derived' ||
|
|
63
|
+
criterion.source?.kind === 'system'
|
|
64
|
+
? {
|
|
65
|
+
kind: criterion.source.kind,
|
|
66
|
+
ref: typeof criterion.source.ref === 'string' && criterion.source.ref.trim()
|
|
67
|
+
? criterion.source.ref.trim()
|
|
68
|
+
: undefined,
|
|
69
|
+
}
|
|
70
|
+
: { kind: 'user' },
|
|
71
|
+
scope: criterion.scope === 'project' || criterion.scope === 'release' ? criterion.scope : 'task',
|
|
72
|
+
dependencies: unique(Array.isArray(criterion.dependencies)
|
|
73
|
+
? criterion.dependencies.filter(item => typeof item === 'string')
|
|
74
|
+
: []),
|
|
75
|
+
status: normalizeCriterionStatus(criterion),
|
|
76
|
+
waiver: criterion.waiver?.authorizedBy === 'user' &&
|
|
77
|
+
criterion.waiver.reason?.trim() &&
|
|
78
|
+
Number.isFinite(criterion.waiver.at)
|
|
79
|
+
? {
|
|
80
|
+
authorizedBy: 'user',
|
|
81
|
+
reason: normalizeLine(criterion.waiver.reason),
|
|
82
|
+
at: criterion.waiver.at,
|
|
83
|
+
sourceRef: typeof criterion.waiver.sourceRef === 'string' && criterion.waiver.sourceRef.trim()
|
|
84
|
+
? criterion.waiver.sourceRef.trim()
|
|
85
|
+
: undefined,
|
|
86
|
+
}
|
|
87
|
+
: undefined,
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
return statements.map(statement => byStatement.get(statement) ?? {
|
|
91
|
+
id: stableCriterionId(statement),
|
|
92
|
+
statement,
|
|
93
|
+
evidenceRefs: [],
|
|
94
|
+
source: { kind: 'user' },
|
|
95
|
+
scope: 'task',
|
|
96
|
+
dependencies: [],
|
|
97
|
+
status: 'pending',
|
|
98
|
+
});
|
|
99
|
+
}
|
|
32
100
|
function extractExplicitObjective(input) {
|
|
33
101
|
const lines = input.split(/\r?\n/);
|
|
34
102
|
for (let index = 0; index < lines.length; index++) {
|
|
@@ -37,7 +105,7 @@ function extractExplicitObjective(input) {
|
|
|
37
105
|
if (!match)
|
|
38
106
|
continue;
|
|
39
107
|
if (match[1].trim())
|
|
40
|
-
return
|
|
108
|
+
return normalizeLine(match[1]);
|
|
41
109
|
const objectiveLines = [];
|
|
42
110
|
for (let next = index + 1; next < lines.length; next++) {
|
|
43
111
|
const candidate = cleanLine(lines[next]);
|
|
@@ -54,27 +122,44 @@ function extractExplicitObjective(input) {
|
|
|
54
122
|
break;
|
|
55
123
|
}
|
|
56
124
|
if (objectiveLines.length > 0)
|
|
57
|
-
return
|
|
125
|
+
return normalizeLine(objectiveLines.join(' '));
|
|
58
126
|
}
|
|
59
127
|
return undefined;
|
|
60
128
|
}
|
|
61
129
|
function normalizeTaskContract(contract) {
|
|
62
|
-
const requirements = unique(contract.requirements.filter(item => !isSectionHeading(item)));
|
|
63
|
-
const
|
|
64
|
-
|
|
130
|
+
const requirements = unique((contract.requirements ?? []).filter(item => !isSectionHeading(item)));
|
|
131
|
+
const typedCriterionStatements = (contract.criteria ?? [])
|
|
132
|
+
.map(criterion => criterion?.statement)
|
|
133
|
+
.filter((statement) => typeof statement === 'string');
|
|
134
|
+
// `successCriteria` remains the compatibility projection and therefore the
|
|
135
|
+
// authoritative statement list when present. Merging stale typed entries
|
|
136
|
+
// back in can resurrect criteria that an older persisted state explicitly
|
|
137
|
+
// removed. Typed-only callers are still supported when the legacy projection
|
|
138
|
+
// is empty or absent; normalizeCriteria preserves ids/status/evidence for
|
|
139
|
+
// statements that remain authoritative.
|
|
140
|
+
const legacySuccessCriteria = contract.successCriteria ?? [];
|
|
141
|
+
const inputSuccessCriteria = legacySuccessCriteria.length > 0 ? legacySuccessCriteria : typedCriterionStatements;
|
|
142
|
+
const explicitSuccessCriteria = unique(inputSuccessCriteria.filter(item => !isSectionHeading(item) && !isObjectiveFallback(item)));
|
|
143
|
+
const fallbackCriteria = unique(inputSuccessCriteria.filter(isObjectiveFallback));
|
|
65
144
|
const successCriteria = explicitSuccessCriteria.length > 0 || requirements.length > 0
|
|
66
145
|
? explicitSuccessCriteria
|
|
67
146
|
: fallbackCriteria.slice(0, 1);
|
|
68
147
|
return {
|
|
69
148
|
...contract,
|
|
149
|
+
version: 3,
|
|
70
150
|
requirements,
|
|
71
151
|
successCriteria,
|
|
152
|
+
criteria: normalizeCriteria(successCriteria, contract.criteria),
|
|
153
|
+
taskEpoch: Math.max(1, Math.floor(contract.taskEpoch ?? 1)),
|
|
154
|
+
nonGoals: unique(contract.nonGoals ?? []),
|
|
155
|
+
openQuestions: unique(contract.openQuestions ?? []),
|
|
72
156
|
};
|
|
73
157
|
}
|
|
74
158
|
function createTaskContract(input, cwd) {
|
|
75
159
|
const now = Date.now();
|
|
76
160
|
const lines = splitMeaningfulLines(input);
|
|
77
|
-
const objective = extractExplicitObjective(input) ??
|
|
161
|
+
const objective = extractExplicitObjective(input) ??
|
|
162
|
+
normalizeLine(lines[0] || input || 'Continue the current task');
|
|
78
163
|
const requirementHints = /(must|should|required|require|need|ensure|verify|test|build|run|希望|需要|必须|要求|确保|验证|测试|完成)/i;
|
|
79
164
|
const prohibitionHints = /(do not|don't|never|avoid|without|禁止|不要|不能|不准|避免)/i;
|
|
80
165
|
const verificationHints = /(test|build|tsc|lint|verify|验证|测试|通过|运行|检查)/i;
|
|
@@ -85,6 +170,7 @@ function createTaskContract(input, cwd) {
|
|
|
85
170
|
requirements.length === 0 ? `Address the objective: ${objective}` : '',
|
|
86
171
|
]);
|
|
87
172
|
return normalizeTaskContract({
|
|
173
|
+
version: 3,
|
|
88
174
|
id: (0, crypto_1.randomUUID)(),
|
|
89
175
|
objective,
|
|
90
176
|
userIntent: input.trim(),
|
|
@@ -92,6 +178,9 @@ function createTaskContract(input, cwd) {
|
|
|
92
178
|
successCriteria,
|
|
93
179
|
constraints: [],
|
|
94
180
|
prohibitions,
|
|
181
|
+
nonGoals: [],
|
|
182
|
+
openQuestions: [],
|
|
183
|
+
taskEpoch: 1,
|
|
95
184
|
allowedScope: { cwd },
|
|
96
185
|
createdAt: now,
|
|
97
186
|
updatedAt: now,
|
|
@@ -123,6 +212,12 @@ function updateTaskContract(previous, input, cwd, intent) {
|
|
|
123
212
|
...next.prohibitions,
|
|
124
213
|
...(intent?.nonGoals ?? []),
|
|
125
214
|
]),
|
|
215
|
+
nonGoals: unique([...(normalizedPrevious.nonGoals ?? []), ...(intent?.nonGoals ?? [])]),
|
|
216
|
+
openQuestions: unique([
|
|
217
|
+
...(normalizedPrevious.openQuestions ?? []),
|
|
218
|
+
...(intent?.openQuestions ?? []),
|
|
219
|
+
]),
|
|
220
|
+
taskEpoch: intent?.taskEpoch ?? normalizedPrevious.taskEpoch ?? 1,
|
|
126
221
|
allowedScope: { ...normalizedPrevious.allowedScope, cwd },
|
|
127
222
|
updatedAt: Date.now(),
|
|
128
223
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/harness/contract.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"contract.js","sourceRoot":"","sources":["../../src/harness/contract.ts"],"names":[],"mappings":";;AAwHA,4DAwBC;AAED,sDAmCC;AAED,gDAmCC;AAED,gDA2CC;AAvQD,mCAAgD;AAGhD,SAAS,aAAa,CAAC,IAAY;IACjC,OAAO,IAAI,CAAC,IAAI,EAAE,CAAC,OAAO,CAAC,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AQ,IAAI,EAAE,CAAC,CAAC,CAAC;QACvF,aAAa,EAAE,MAAM,CAAC;YACpB,GAAG,CAAC,kBAAkB,CAAC,aAAa,IAAI,EAAE,CAAC;YAC3C,GAAG,CAAC,MAAM,EAAE,aAAa,IAAI,EAAE,CAAC;SACjC,CAAC;QACF,SAAS,EAAE,MAAM,EAAE,SAAS,IAAI,kBAAkB,CAAC,SAAS,IAAI,CAAC;QACjE,YAAY,EAAE,EAAE,GAAG,kBAAkB,CAAC,YAAY,EAAE,GAAG,EAAE;QACzD,SAAS,EAAE,IAAI,CAAC,GAAG,EAAE;KACtB,CAAC,CAAC;AACL,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type { CompletionGateResult, ContextLedgerEntry, DriftCheckResult, TaskContract } from './types';
|
|
1
|
+
import type { CapabilityProfile, CompletionGateResult, ContextLedgerEntry, DriftCheckResult, TaskContract } from './types';
|
|
2
2
|
export declare function checkToolDrift(params: {
|
|
3
3
|
contract?: TaskContract;
|
|
4
|
+
capabilityProfile?: CapabilityProfile;
|
|
4
5
|
toolName: string;
|
|
5
6
|
args: Record<string, unknown>;
|
|
6
7
|
mode: 'off' | 'warn' | 'block';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift-guard.d.ts","sourceRoot":"","sources":["../../src/harness/drift-guard.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"drift-guard.d.ts","sourceRoot":"","sources":["../../src/harness/drift-guard.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,YAAY,EACb,MAAM,SAAS,CAAC;AAqTjB,wBAAgB,cAAc,CAAC,MAAM,EAAE;IACrC,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC9B,IAAI,EAAE,KAAK,GAAG,MAAM,GAAG,OAAO,CAAC;CAChC,GAAG,gBAAgB,CA0CnB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE;IAC7C,QAAQ,CAAC,EAAE,YAAY,CAAC;IACxB,MAAM,EAAE,kBAAkB,EAAE,CAAC;CAC9B,GAAG,oBAAoB,CAuFvB"}
|
|
@@ -2,6 +2,231 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.checkToolDrift = checkToolDrift;
|
|
4
4
|
exports.evaluateCompletionGate = evaluateCompletionGate;
|
|
5
|
+
const path_1 = require("path");
|
|
6
|
+
const contract_1 = require("./contract");
|
|
7
|
+
const verification_1 = require("./verification");
|
|
8
|
+
const PATH_ARGUMENT_KEYS = new Set([
|
|
9
|
+
'cwd',
|
|
10
|
+
'dir',
|
|
11
|
+
'directory',
|
|
12
|
+
'file',
|
|
13
|
+
'file_path',
|
|
14
|
+
'file_paths',
|
|
15
|
+
'filePath',
|
|
16
|
+
'filePaths',
|
|
17
|
+
'new_path',
|
|
18
|
+
'newPath',
|
|
19
|
+
'old_path',
|
|
20
|
+
'oldPath',
|
|
21
|
+
'path',
|
|
22
|
+
'paths',
|
|
23
|
+
'source_path',
|
|
24
|
+
'sourcePath',
|
|
25
|
+
'destination_path',
|
|
26
|
+
'destinationPath',
|
|
27
|
+
'workdir',
|
|
28
|
+
'working_directory',
|
|
29
|
+
'workingDirectory',
|
|
30
|
+
]);
|
|
31
|
+
const WORKING_DIRECTORY_KEYS = new Set(['cwd', 'workdir', 'working_directory', 'workingDirectory']);
|
|
32
|
+
const COMMAND_ARGUMENT_KEYS = new Set(['cmd', 'command', 'commands']);
|
|
33
|
+
function valuesForTypedArgument(key, value, malformed) {
|
|
34
|
+
if (typeof value === 'string' && value.trim())
|
|
35
|
+
return [value.trim()];
|
|
36
|
+
if (Array.isArray(value) &&
|
|
37
|
+
value.length > 0 &&
|
|
38
|
+
value.every(item => typeof item === 'string' && item.trim())) {
|
|
39
|
+
return value.map(item => item.trim());
|
|
40
|
+
}
|
|
41
|
+
malformed.push(key);
|
|
42
|
+
return [];
|
|
43
|
+
}
|
|
44
|
+
/** Extract only explicitly path- and command-typed fields; arbitrary prompt text is not policy. */
|
|
45
|
+
function projectTypedArguments(args) {
|
|
46
|
+
const projection = {
|
|
47
|
+
paths: [],
|
|
48
|
+
workingDirectories: [],
|
|
49
|
+
commands: [],
|
|
50
|
+
malformed: [],
|
|
51
|
+
};
|
|
52
|
+
const seen = new WeakSet();
|
|
53
|
+
let visited = 0;
|
|
54
|
+
const visit = (value, depth, inheritedBase) => {
|
|
55
|
+
if (!value || typeof value !== 'object')
|
|
56
|
+
return;
|
|
57
|
+
if (seen.has(value))
|
|
58
|
+
return;
|
|
59
|
+
if (depth > 8 || ++visited > 1000) {
|
|
60
|
+
throw new Error('tool arguments exceed the drift validation complexity limit');
|
|
61
|
+
}
|
|
62
|
+
seen.add(value);
|
|
63
|
+
if (Array.isArray(value)) {
|
|
64
|
+
for (const item of value)
|
|
65
|
+
visit(item, depth + 1, inheritedBase);
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
const entries = Object.entries(value);
|
|
69
|
+
let localBase = inheritedBase;
|
|
70
|
+
for (const [key, item] of entries) {
|
|
71
|
+
if (!WORKING_DIRECTORY_KEYS.has(key))
|
|
72
|
+
continue;
|
|
73
|
+
const projected = valuesForTypedArgument(key, item, projection.malformed).map(path => ({
|
|
74
|
+
key,
|
|
75
|
+
value: path,
|
|
76
|
+
base: inheritedBase,
|
|
77
|
+
}));
|
|
78
|
+
projection.paths.push(...projected);
|
|
79
|
+
projection.workingDirectories.push(...projected);
|
|
80
|
+
if (projected[0])
|
|
81
|
+
localBase = combineWorkingDirectory(inheritedBase, projected[0].value);
|
|
82
|
+
}
|
|
83
|
+
for (const [key, item] of entries) {
|
|
84
|
+
if (WORKING_DIRECTORY_KEYS.has(key))
|
|
85
|
+
continue;
|
|
86
|
+
if (PATH_ARGUMENT_KEYS.has(key)) {
|
|
87
|
+
const projected = valuesForTypedArgument(key, item, projection.malformed).map(path => ({
|
|
88
|
+
key,
|
|
89
|
+
value: path,
|
|
90
|
+
base: localBase,
|
|
91
|
+
}));
|
|
92
|
+
projection.paths.push(...projected);
|
|
93
|
+
continue;
|
|
94
|
+
}
|
|
95
|
+
if (COMMAND_ARGUMENT_KEYS.has(key)) {
|
|
96
|
+
projection.commands.push(...valuesForTypedArgument(key, item, projection.malformed).map(command => ({
|
|
97
|
+
key,
|
|
98
|
+
value: command,
|
|
99
|
+
})));
|
|
100
|
+
continue;
|
|
101
|
+
}
|
|
102
|
+
visit(item, depth + 1, localBase);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
visit(args, 0);
|
|
106
|
+
return projection;
|
|
107
|
+
}
|
|
108
|
+
function isContained(root, candidate) {
|
|
109
|
+
const rel = (0, path_1.relative)(root, candidate);
|
|
110
|
+
return rel === '' || (rel !== '..' && !rel.startsWith(`..${path_1.sep}`) && !(0, path_1.isAbsolute)(rel));
|
|
111
|
+
}
|
|
112
|
+
function resolveFrom(base, value) {
|
|
113
|
+
return (0, path_1.resolve)(base, value);
|
|
114
|
+
}
|
|
115
|
+
function normalizeCommand(value) {
|
|
116
|
+
return value.trim().replace(/\s+/gu, ' ');
|
|
117
|
+
}
|
|
118
|
+
function combineWorkingDirectory(parent, child) {
|
|
119
|
+
if ((0, path_1.isAbsolute)(child) || !parent)
|
|
120
|
+
return child;
|
|
121
|
+
return (0, path_1.isAbsolute)(parent) ? (0, path_1.resolve)(parent, child) : (0, path_1.join)(parent, child);
|
|
122
|
+
}
|
|
123
|
+
function profileViolation(profile, toolName) {
|
|
124
|
+
if (!profile)
|
|
125
|
+
return;
|
|
126
|
+
if (!profile.model.toolCalling) {
|
|
127
|
+
return {
|
|
128
|
+
reason: `Capability profile v${profile.revision} does not permit tool calling.`,
|
|
129
|
+
correction: 'Refresh the model capability profile before scheduling a tool call.',
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
if (!profile.tools.includes(toolName)) {
|
|
133
|
+
return {
|
|
134
|
+
reason: `Tool ${toolName} is absent from capability profile v${profile.revision}.`,
|
|
135
|
+
correction: 'Use a tool listed in the active capability profile or refresh the profile.',
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
return;
|
|
139
|
+
}
|
|
140
|
+
function allowedScopeViolation(contract, profile, projection) {
|
|
141
|
+
if (!contract)
|
|
142
|
+
return;
|
|
143
|
+
if (!contract.allowedScope.cwd?.trim()) {
|
|
144
|
+
return {
|
|
145
|
+
reason: 'TaskContract allowedScope.cwd is missing.',
|
|
146
|
+
correction: 'Repair the TaskContract project scope before using tools.',
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
const root = (0, path_1.resolve)(contract.allowedScope.cwd);
|
|
150
|
+
if (profile && (0, path_1.resolve)(profile.projectRoot) !== root) {
|
|
151
|
+
return {
|
|
152
|
+
reason: `Capability project root does not match TaskContract allowedScope.cwd (${contract.allowedScope.cwd}).`,
|
|
153
|
+
correction: 'Refresh the capability profile for the active project before using tools.',
|
|
154
|
+
};
|
|
155
|
+
}
|
|
156
|
+
if (projection.malformed.length > 0) {
|
|
157
|
+
return {
|
|
158
|
+
reason: `Cannot validate malformed typed tool argument(s): ${[...new Set(projection.malformed)].join(', ')}.`,
|
|
159
|
+
correction: 'Provide non-empty string path and command arguments.',
|
|
160
|
+
};
|
|
161
|
+
}
|
|
162
|
+
const workingDirectories = projection.workingDirectories.map(item => {
|
|
163
|
+
const parentBase = item.base ? resolveFrom(root, item.base) : root;
|
|
164
|
+
return { ...item, resolved: resolveFrom(parentBase, item.value) };
|
|
165
|
+
});
|
|
166
|
+
const escapedWorkingDirectory = workingDirectories.find(item => !isContained(root, item.resolved));
|
|
167
|
+
if (escapedWorkingDirectory) {
|
|
168
|
+
return {
|
|
169
|
+
reason: `Tool working directory ${escapedWorkingDirectory.value} is outside allowedScope.cwd.`,
|
|
170
|
+
correction: `Keep the tool working directory within ${contract.allowedScope.cwd}.`,
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
if (contract.allowedScope.files?.some(file => typeof file !== 'string' || !file.trim())) {
|
|
174
|
+
return {
|
|
175
|
+
reason: 'TaskContract allowedScope.files contains an invalid path.',
|
|
176
|
+
correction: 'Repair the TaskContract file scope before using path-based tools.',
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
const allowedFiles = contract.allowedScope.files?.map(file => resolveFrom(root, file));
|
|
180
|
+
const invalidAllowedFile = allowedFiles?.find(file => !isContained(root, file));
|
|
181
|
+
if (invalidAllowedFile) {
|
|
182
|
+
return {
|
|
183
|
+
reason: 'TaskContract allowedScope.files contains a path outside allowedScope.cwd.',
|
|
184
|
+
correction: 'Repair the TaskContract file scope before using path-based tools.',
|
|
185
|
+
};
|
|
186
|
+
}
|
|
187
|
+
for (const item of projection.paths) {
|
|
188
|
+
const base = item.base ? resolveFrom(root, item.base) : root;
|
|
189
|
+
const candidate = resolveFrom(base, item.value);
|
|
190
|
+
if (!isContained(root, candidate)) {
|
|
191
|
+
return {
|
|
192
|
+
reason: `Tool path ${item.value} is outside TaskContract allowedScope.cwd.`,
|
|
193
|
+
correction: `Keep file operations within ${contract.allowedScope.cwd}.`,
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
if (!WORKING_DIRECTORY_KEYS.has(item.key) &&
|
|
197
|
+
allowedFiles !== undefined &&
|
|
198
|
+
!allowedFiles.some(file => isContained(file, candidate))) {
|
|
199
|
+
return {
|
|
200
|
+
reason: `Tool path ${item.value} is not listed by TaskContract allowedScope.files.`,
|
|
201
|
+
correction: 'Use a file path inside the explicitly allowed file scope.',
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
if (contract.allowedScope.commands !== undefined) {
|
|
206
|
+
if (contract.allowedScope.commands.some(command => typeof command !== 'string' || !command.trim())) {
|
|
207
|
+
return {
|
|
208
|
+
reason: 'TaskContract allowedScope.commands contains an invalid command.',
|
|
209
|
+
correction: 'Repair the TaskContract command scope before using command tools.',
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
const allowedCommands = new Set(contract.allowedScope.commands.map(normalizeCommand));
|
|
213
|
+
const denied = projection.commands.find(item => !allowedCommands.has(normalizeCommand(item.value)));
|
|
214
|
+
if (denied) {
|
|
215
|
+
return {
|
|
216
|
+
reason: `Tool command ${denied.value} is not listed by TaskContract allowedScope.commands.`,
|
|
217
|
+
correction: 'Use an explicitly allowed command or update the TaskContract with user authority.',
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
function driftResult(mode, violation) {
|
|
224
|
+
return {
|
|
225
|
+
status: mode === 'block' ? 'block' : 'warn',
|
|
226
|
+
reason: violation.reason,
|
|
227
|
+
correction: violation.correction,
|
|
228
|
+
};
|
|
229
|
+
}
|
|
5
230
|
function hasExplicitVerificationNeed(contract) {
|
|
6
231
|
if (!contract)
|
|
7
232
|
return false;
|
|
@@ -28,40 +253,110 @@ function hasExplicitVerificationNeed(contract) {
|
|
|
28
253
|
});
|
|
29
254
|
}
|
|
30
255
|
function checkToolDrift(params) {
|
|
31
|
-
if (params.mode === 'off'
|
|
256
|
+
if (params.mode === 'off')
|
|
257
|
+
return { status: 'ok' };
|
|
258
|
+
try {
|
|
259
|
+
if (params.mode === 'block' && !params.capabilityProfile) {
|
|
260
|
+
return driftResult(params.mode, {
|
|
261
|
+
reason: 'Capability profile is unavailable, so this tool call cannot be validated.',
|
|
262
|
+
correction: 'Create or refresh the active capability profile before using tools.',
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
const capabilityMismatch = profileViolation(params.capabilityProfile, params.toolName);
|
|
266
|
+
if (capabilityMismatch)
|
|
267
|
+
return driftResult(params.mode, capabilityMismatch);
|
|
268
|
+
const projection = projectTypedArguments(params.args);
|
|
269
|
+
const scopeMismatch = allowedScopeViolation(params.contract, params.capabilityProfile, projection);
|
|
270
|
+
if (scopeMismatch)
|
|
271
|
+
return driftResult(params.mode, scopeMismatch);
|
|
272
|
+
if (params.contract) {
|
|
273
|
+
const argsText = JSON.stringify(params.args).toLowerCase();
|
|
274
|
+
const prohibitionHit = params.contract.prohibitions.find(item => {
|
|
275
|
+
const normalized = item.toLowerCase();
|
|
276
|
+
return normalized && argsText.includes(normalized);
|
|
277
|
+
});
|
|
278
|
+
if (prohibitionHit) {
|
|
279
|
+
return driftResult(params.mode, {
|
|
280
|
+
reason: `Tool arguments may violate prohibition: ${prohibitionHit}`,
|
|
281
|
+
correction: 'Choose a safer tool call or explain why this action is required.',
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
}
|
|
32
285
|
return { status: 'ok' };
|
|
33
|
-
const argsText = JSON.stringify(params.args).toLowerCase();
|
|
34
|
-
const prohibitionHit = params.contract.prohibitions.find(item => {
|
|
35
|
-
const normalized = item.toLowerCase();
|
|
36
|
-
return normalized && argsText.includes(normalized);
|
|
37
|
-
});
|
|
38
|
-
if (prohibitionHit) {
|
|
39
|
-
return {
|
|
40
|
-
status: params.mode === 'block' ? 'block' : 'warn',
|
|
41
|
-
reason: `Tool arguments may violate prohibition: ${prohibitionHit}`,
|
|
42
|
-
correction: 'Choose a safer tool call or explain why this action is required.',
|
|
43
|
-
};
|
|
44
286
|
}
|
|
45
|
-
|
|
287
|
+
catch (error) {
|
|
288
|
+
return driftResult(params.mode, {
|
|
289
|
+
reason: `Drift guard could not validate this tool call: ${error instanceof Error ? error.message : String(error)}`,
|
|
290
|
+
correction: 'Use simple typed path/command arguments or refresh the task capability state.',
|
|
291
|
+
});
|
|
292
|
+
}
|
|
46
293
|
}
|
|
47
294
|
function evaluateCompletionGate(params) {
|
|
48
295
|
const evidence = [];
|
|
49
296
|
const missing = [];
|
|
50
|
-
const
|
|
51
|
-
entry.metadata?.success === true);
|
|
297
|
+
const byEvidenceRef = new Map();
|
|
52
298
|
for (const entry of params.ledger) {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
evidence.push(entry.content);
|
|
56
|
-
}
|
|
299
|
+
byEvidenceRef.set(entry.id, entry);
|
|
300
|
+
byEvidenceRef.set(`ledger:${entry.id}`, entry);
|
|
57
301
|
}
|
|
58
|
-
|
|
302
|
+
const contract = params.contract ? (0, contract_1.normalizeTaskContract)(params.contract) : undefined;
|
|
303
|
+
const criterionResults = (contract?.criteria ?? []).map(criterion => {
|
|
304
|
+
const requiredKinds = (0, verification_1.requiredVerificationKinds)(criterion.statement);
|
|
305
|
+
const applicable = requiredKinds.length > 0;
|
|
306
|
+
const linked = criterion.evidenceRefs
|
|
307
|
+
.map(ref => ({ ref, entry: byEvidenceRef.get(ref) }))
|
|
308
|
+
.filter((item) => item.entry !== undefined);
|
|
309
|
+
if ((0, verification_1.criterionHasAuthorizedWaiver)(criterion)) {
|
|
310
|
+
return {
|
|
311
|
+
criterionId: criterion.id,
|
|
312
|
+
statement: criterion.statement,
|
|
313
|
+
status: 'waived',
|
|
314
|
+
applicable,
|
|
315
|
+
evidenceRefs: linked.map(item => item.ref),
|
|
316
|
+
requiredKinds,
|
|
317
|
+
missingKinds: [],
|
|
318
|
+
failedKinds: [],
|
|
319
|
+
};
|
|
320
|
+
}
|
|
321
|
+
const trusted = linked.filter(item => (0, verification_1.isTrustedEvidence)(item.entry));
|
|
322
|
+
const passedKinds = new Set(trusted
|
|
323
|
+
.filter(item => item.entry.metadata?.success === true)
|
|
324
|
+
.map(item => (0, verification_1.verificationKindForEntry)(item.entry)));
|
|
325
|
+
const failedKinds = requiredKinds.filter(kind => trusted.some(item => item.entry.metadata?.success === false && (0, verification_1.verificationKindForEntry)(item.entry) === kind));
|
|
326
|
+
const missingKinds = requiredKinds.filter(kind => !passedKinds.has(kind));
|
|
327
|
+
const status = !applicable
|
|
328
|
+
? (criterion.status ?? 'pending')
|
|
329
|
+
: missingKinds.length === 0
|
|
330
|
+
? 'passed'
|
|
331
|
+
: failedKinds.length > 0
|
|
332
|
+
? 'failed'
|
|
333
|
+
: 'pending';
|
|
334
|
+
for (const item of trusted) {
|
|
335
|
+
if (item.entry.metadata?.success === true && !evidence.includes(item.entry.content)) {
|
|
336
|
+
evidence.push(item.entry.content);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
return {
|
|
340
|
+
criterionId: criterion.id,
|
|
341
|
+
statement: criterion.statement,
|
|
342
|
+
status,
|
|
343
|
+
applicable,
|
|
344
|
+
evidenceRefs: linked.map(item => item.ref),
|
|
345
|
+
requiredKinds,
|
|
346
|
+
missingKinds,
|
|
347
|
+
failedKinds,
|
|
348
|
+
};
|
|
349
|
+
});
|
|
350
|
+
const unsatisfied = criterionResults.filter(result => result.applicable && result.status !== 'passed' && result.status !== 'waived');
|
|
351
|
+
if (unsatisfied.length > 0 ||
|
|
352
|
+
(criterionResults.length === 0 && hasExplicitVerificationNeed(contract))) {
|
|
59
353
|
missing.push('Required verification has not passed yet.');
|
|
60
354
|
}
|
|
61
355
|
return {
|
|
62
356
|
canComplete: missing.length === 0,
|
|
63
357
|
missing,
|
|
64
358
|
evidence,
|
|
359
|
+
criterionResults,
|
|
65
360
|
};
|
|
66
361
|
}
|
|
67
362
|
//# sourceMappingURL=drift-guard.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"drift-guard.js","sourceRoot":"","sources":["../../src/harness/drift-guard.ts"],"names":[],"mappings":";;AAwCA,wCAuBC;AAED,wDA+BC;AAzFD,SAAS,2BAA2B,CAAC,QAAkC;IACrE,IAAI,CAAC,QAAQ;QAAE,OAAO,KAAK,CAAC;IAC5B,MAAM,KAAK,GAAG,CAAC,GAAG,QAAQ,CAAC,YAAY,EAAE,GAAG,QAAQ,CAAC,eAAe,CAAC,CAAC;IAEtE,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE;QACvB,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC,WAAW,EAAE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AM,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,KAAK,QAAQ,CACxF,CAAC;IACF,IACE,WAAW,CAAC,MAAM,GAAG,CAAC;QACtB,CAAC,gBAAgB,CAAC,MAAM,KAAK,CAAC,IAAI,2BAA2B,CAAC,QAAQ,CAAC,CAAC,EACxE,CAAC;QACD,OAAO,CAAC,IAAI,CAAC,2CAA2C,CAAC,CAAC;IAC5D,CAAC;IAED,OAAO;QACL,WAAW,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC;QACjC,OAAO;QACP,QAAQ;QACR,gBAAgB;KACjB,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../src/harness/evidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAElB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACZ,MAAM,SAAS,CAAC;AAGjB,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;
|
|
1
|
+
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../src/harness/evidence.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAElB,cAAc,EACd,oBAAoB,EACpB,WAAW,EACZ,MAAM,SAAS,CAAC;AAGjB,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEnD;AA4HD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IACzC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,aAAa,CAAC,EAAE,WAAW,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAC;CAC7B,GAAG,cAAc,EAAE,CAyBnB;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,cAAc,EAAE,EACzB,WAAW,EAAE,MAAM,EAAE,GACpB,cAAc,EAAE,CAKlB;AAED,wBAAgB,YAAY,CAC1B,OAAO,EAAE,cAAc,EAAE,EACzB,MAAM,GAAE;IACN,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,GAAG,CAAC,EAAE,MAAM,CAAC;CACT,GACL,oBAAoB,EAAE,CAkExB"}
|