pulseed 0.6.3 → 0.6.5
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/dist/adapters/datasources/artifact-metric-datasource.d.ts +11 -1
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.js +256 -9
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
- package/dist/base/config/global-config.d.ts +7 -4
- package/dist/base/config/global-config.d.ts.map +1 -1
- package/dist/base/config/global-config.js +3 -1
- package/dist/base/config/global-config.js.map +1 -1
- package/dist/base/protocol/exact-protocol.d.ts +47 -0
- package/dist/base/protocol/exact-protocol.d.ts.map +1 -0
- package/dist/base/protocol/exact-protocol.js +175 -0
- package/dist/base/protocol/exact-protocol.js.map +1 -0
- package/dist/base/types/core.d.ts +1 -1
- package/dist/base/types/core.d.ts.map +1 -1
- package/dist/base/types/core.js +1 -0
- package/dist/base/types/core.js.map +1 -1
- package/dist/base/utils/paths.d.ts +5 -0
- package/dist/base/utils/paths.d.ts.map +1 -1
- package/dist/base/utils/paths.js +7 -0
- package/dist/base/utils/paths.js.map +1 -1
- package/dist/base/utils/workspace-path.d.ts +6 -0
- package/dist/base/utils/workspace-path.d.ts.map +1 -0
- package/dist/base/utils/workspace-path.js +24 -0
- package/dist/base/utils/workspace-path.js.map +1 -0
- package/dist/base/utils/workspace-root.d.ts +6 -0
- package/dist/base/utils/workspace-root.d.ts.map +1 -0
- package/dist/base/utils/workspace-root.js +87 -0
- package/dist/base/utils/workspace-root.js.map +1 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/interface/chat/chat-event-state.d.ts +2 -0
- package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
- package/dist/interface/chat/chat-event-state.js +22 -41
- package/dist/interface/chat/chat-event-state.js.map +1 -1
- package/dist/interface/chat/chat-events.d.ts +15 -1
- package/dist/interface/chat/chat-events.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.d.ts +3816 -192
- package/dist/interface/chat/chat-history.d.ts.map +1 -1
- package/dist/interface/chat/chat-history.js +529 -5
- package/dist/interface/chat/chat-history.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts +2 -0
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +83 -22
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +5 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts +13 -1
- package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-event-bridge.js +51 -3
- package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
- package/dist/interface/chat/chat-runner-routes.d.ts +5 -17
- package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-routes.js +80 -51
- package/dist/interface/chat/chat-runner-routes.js.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-runtime.js +4 -0
- package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
- package/dist/interface/chat/chat-runner.d.ts +7 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +135 -49
- package/dist/interface/chat/chat-runner.js.map +1 -1
- package/dist/interface/chat/chat-session-store.d.ts +3 -0
- package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
- package/dist/interface/chat/chat-session-store.js +12 -0
- package/dist/interface/chat/chat-session-store.js.map +1 -1
- package/dist/interface/chat/cross-platform-session.d.ts +15 -0
- package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
- package/dist/interface/chat/cross-platform-session.js +260 -42
- package/dist/interface/chat/cross-platform-session.js.map +1 -1
- package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
- package/dist/interface/chat/failure-recovery.js +15 -1
- package/dist/interface/chat/failure-recovery.js.map +1 -1
- package/dist/interface/chat/freeform-route-classifier.d.ts +4 -4
- package/dist/interface/chat/ingress-router.d.ts +3 -0
- package/dist/interface/chat/ingress-router.d.ts.map +1 -1
- package/dist/interface/chat/ingress-router.js +3 -0
- package/dist/interface/chat/ingress-router.js.map +1 -1
- package/dist/interface/chat/model-request-builder.d.ts +37 -0
- package/dist/interface/chat/model-request-builder.d.ts.map +1 -0
- package/dist/interface/chat/model-request-builder.js +76 -0
- package/dist/interface/chat/model-request-builder.js.map +1 -0
- package/dist/interface/chat/turn-context.d.ts +200 -0
- package/dist/interface/chat/turn-context.d.ts.map +1 -0
- package/dist/interface/chat/turn-context.js +249 -0
- package/dist/interface/chat/turn-context.js.map +1 -0
- package/dist/interface/chat/turn-protocol.d.ts +35 -0
- package/dist/interface/chat/turn-protocol.d.ts.map +1 -0
- package/dist/interface/chat/turn-protocol.js +27 -0
- package/dist/interface/chat/turn-protocol.js.map +1 -0
- package/dist/interface/chat/user-input.d.ts +55 -0
- package/dist/interface/chat/user-input.d.ts.map +1 -0
- package/dist/interface/chat/user-input.js +52 -0
- package/dist/interface/chat/user-input.js.map +1 -0
- package/dist/interface/cli/cli-command-registry.d.ts +1 -1
- package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
- package/dist/interface/cli/cli-command-registry.js +12 -16
- package/dist/interface/cli/cli-command-registry.js.map +1 -1
- package/dist/interface/cli/cli-runner.js +0 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts +12 -1
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +26 -4
- package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
- package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon.js +66 -8
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts +1 -1
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +61 -29
- package/dist/interface/cli/commands/doctor.js.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-dispatch.js +10 -6
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-utils.js +3 -5
- package/dist/interface/cli/commands/goal-utils.js.map +1 -1
- package/dist/interface/cli/commands/run.d.ts.map +1 -1
- package/dist/interface/cli/commands/run.js +50 -0
- package/dist/interface/cli/commands/run.js.map +1 -1
- package/dist/interface/cli/setup.d.ts +1 -1
- package/dist/interface/cli/setup.d.ts.map +1 -1
- package/dist/interface/cli/setup.js +4 -3
- package/dist/interface/cli/setup.js.map +1 -1
- package/dist/interface/cli/utils/loop-runner.d.ts +1 -0
- package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
- package/dist/interface/cli/utils/loop-runner.js +12 -3
- package/dist/interface/cli/utils/loop-runner.js.map +1 -1
- package/dist/interface/tui/app.d.ts +6 -1
- package/dist/interface/tui/app.d.ts.map +1 -1
- package/dist/interface/tui/app.js +29 -12
- package/dist/interface/tui/app.js.map +1 -1
- package/dist/interface/tui/bash-mode.d.ts.map +1 -1
- package/dist/interface/tui/bash-mode.js +2 -9
- package/dist/interface/tui/bash-mode.js.map +1 -1
- package/dist/interface/tui/chat/viewport.d.ts.map +1 -1
- package/dist/interface/tui/chat/viewport.js +57 -11
- package/dist/interface/tui/chat/viewport.js.map +1 -1
- package/dist/interface/tui/entry-deps.d.ts +6 -1
- package/dist/interface/tui/entry-deps.d.ts.map +1 -1
- package/dist/interface/tui/entry-deps.js +3 -0
- package/dist/interface/tui/entry-deps.js.map +1 -1
- package/dist/interface/tui/entry.d.ts.map +1 -1
- package/dist/interface/tui/entry.js +6 -2
- package/dist/interface/tui/entry.js.map +1 -1
- package/dist/interface/tui/input-action.d.ts.map +1 -1
- package/dist/interface/tui/input-action.js +3 -2
- package/dist/interface/tui/input-action.js.map +1 -1
- package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
- package/dist/interface/tui/intent-recognizer.js +21 -33
- package/dist/interface/tui/intent-recognizer.js.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts +10 -1
- package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
- package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js +16 -31
- package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts +75 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js +10 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js +185 -22
- package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +18 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +8 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js +12 -3
- package/dist/orchestrator/execution/agent-loop/agent-loop-history.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +7 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +37 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js +21 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +1 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +19 -11
- package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +4 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +135 -0
- package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +3 -2
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +68 -61
- package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +3 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +12 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js +19 -56
- package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +8 -2
- package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +14 -0
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +440 -81
- package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +80 -12
- package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js +3 -1
- package/dist/orchestrator/execution/agent-loop/chat-display-output.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.d.ts +3 -0
- package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/index.js +3 -0
- package/dist/orchestrator/execution/agent-loop/index.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts +1 -0
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js +51 -9
- package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts +20 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +181 -0
- package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts +805 -0
- package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js +104 -0
- package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts +7 -2
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +33 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +32 -17
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +174 -16
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +10 -4
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts +0 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js +7 -87
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +25 -0
- package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +5 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
- package/dist/orchestrator/execution/context/issue-context-fetcher.js +7 -4
- package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +18 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js +199 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +15 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +271 -18
- package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +1 -0
- package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-helpers.js +76 -17
- package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.d.ts +2 -0
- package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts +16 -1
- package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-executor.js +56 -50
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts +62 -2
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +30 -13
- package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +2 -2
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +32 -4
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +3 -3
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +109 -10
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +9 -0
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +64 -3
- package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +3 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-prompt-builder.js +28 -13
- package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +3 -2
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.js +377 -90
- package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts +13 -0
- package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.d.ts +5 -4
- package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier.js +396 -25
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.d.ts +5 -0
- package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.js +20 -10
- package/dist/orchestrator/execution/task/task-workspace.js.map +1 -1
- package/dist/orchestrator/execution/types/task-group.d.ts +85 -5
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +155 -3
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +18 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts +2 -0
- package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +12 -12
- package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js +7 -1
- package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
- package/dist/orchestrator/loop/loop-report-helper.js +2 -0
- package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
- package/dist/platform/corrections/memory-correction-ledger.d.ts +30 -30
- package/dist/platform/corrections/memory-governance.d.ts +2 -2
- package/dist/platform/corrections/memory-quarantine.d.ts +2 -2
- package/dist/platform/dream/playbook-memory.d.ts +4 -4
- package/dist/platform/knowledge/types/agent-memory.d.ts +46 -46
- package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
- package/dist/platform/observation/context-provider/collector.js +89 -24
- package/dist/platform/observation/context-provider/collector.js.map +1 -1
- package/dist/platform/observation/data-source-adapter.d.ts +2 -0
- package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
- package/dist/platform/observation/data-source-adapter.js.map +1 -1
- package/dist/platform/observation/observation-apply.d.ts.map +1 -1
- package/dist/platform/observation/observation-apply.js +8 -2
- package/dist/platform/observation/observation-apply.js.map +1 -1
- package/dist/platform/observation/observation-engine.d.ts.map +1 -1
- package/dist/platform/observation/observation-engine.js +118 -70
- package/dist/platform/observation/observation-engine.js.map +1 -1
- package/dist/platform/observation/observation-helpers.d.ts +2 -0
- package/dist/platform/observation/observation-helpers.d.ts.map +1 -1
- package/dist/platform/observation/observation-helpers.js.map +1 -1
- package/dist/platform/observation/types/data-source.d.ts +48 -0
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +4 -0
- package/dist/platform/observation/types/data-source.js.map +1 -1
- package/dist/platform/observation/workspace-context.d.ts.map +1 -1
- package/dist/platform/observation/workspace-context.js +13 -18
- package/dist/platform/observation/workspace-context.js.map +1 -1
- package/dist/platform/soil/contracts.d.ts +58 -58
- package/dist/prompt/purposes/verification.d.ts +2 -2
- package/dist/reporting/report-formatters.d.ts.map +1 -1
- package/dist/reporting/report-formatters.js +26 -1
- package/dist/reporting/report-formatters.js.map +1 -1
- package/dist/reporting/reporting-engine.d.ts.map +1 -1
- package/dist/reporting/reporting-engine.js +1 -0
- package/dist/reporting/reporting-engine.js.map +1 -1
- package/dist/reporting/reporting-types.d.ts +7 -0
- package/dist/reporting/reporting-types.d.ts.map +1 -1
- package/dist/reporting/types/report.d.ts +12 -0
- package/dist/reporting/types/report.d.ts.map +1 -1
- package/dist/reporting/types/report.js +1 -0
- package/dist/reporting/types/report.js.map +1 -1
- package/dist/runtime/approval-broker.d.ts +12 -0
- package/dist/runtime/approval-broker.d.ts.map +1 -1
- package/dist/runtime/approval-broker.js +27 -7
- package/dist/runtime/approval-broker.js.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
- package/dist/runtime/control/daemon-runtime-control-executor.js +9 -4
- package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
- package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-intent.js +3 -2
- package/dist/runtime/control/runtime-control-intent.js.map +1 -1
- package/dist/runtime/control/runtime-control-service.d.ts +27 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +181 -2
- package/dist/runtime/control/runtime-control-service.js.map +1 -1
- package/dist/runtime/control/runtime-target-resolver.js +2 -0
- package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts +22 -0
- package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js +95 -0
- package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -0
- package/dist/runtime/daemon/client.d.ts +1 -0
- package/dist/runtime/daemon/client.d.ts.map +1 -1
- package/dist/runtime/daemon/client.js.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-goal-cycle.js +1 -2
- package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
- package/dist/runtime/daemon/runner-recovery.d.ts +17 -3
- package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-recovery.js +50 -12
- package/dist/runtime/daemon/runner-recovery.js.map +1 -1
- package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
- package/dist/runtime/daemon/runner-startup.js +18 -1
- package/dist/runtime/daemon/runner-startup.js.map +1 -1
- package/dist/runtime/daemon/runner.d.ts.map +1 -1
- package/dist/runtime/daemon/runner.js +13 -3
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +7 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +171 -25
- package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
- package/dist/runtime/daemon/wait-deadline-resolver.js +2 -0
- package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts +3 -1
- package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
- package/dist/runtime/event/server-snapshot-reader.js +68 -2
- package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
- package/dist/runtime/event/server-types.d.ts +2 -0
- package/dist/runtime/event/server-types.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.d.ts.map +1 -1
- package/dist/runtime/evidence-answer.js +34 -7
- package/dist/runtime/evidence-answer.js.map +1 -1
- package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
- package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/channel-display-policy.d.ts +42 -0
- package/dist/runtime/gateway/channel-display-policy.d.ts.map +1 -0
- package/dist/runtime/gateway/channel-display-policy.js +85 -0
- package/dist/runtime/gateway/channel-display-policy.js.map +1 -0
- package/dist/runtime/gateway/chat-event-rendering.d.ts +2 -1
- package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-event-rendering.js +2 -0
- package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-dispatch.js +4 -9
- package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
- package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
- package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
- package/dist/runtime/gateway/chat-session-port.js.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts +4 -0
- package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/discord-gateway-adapter.js +100 -31
- package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/index.d.ts +4 -0
- package/dist/runtime/gateway/index.d.ts.map +1 -1
- package/dist/runtime/gateway/index.js +2 -0
- package/dist/runtime/gateway/index.js.map +1 -1
- package/dist/runtime/gateway/non-tui-display-projector.d.ts +40 -0
- package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -0
- package/dist/runtime/gateway/non-tui-display-projector.js +166 -0
- package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/signal-gateway-adapter.js +47 -4
- package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
- package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/slack-channel-adapter.js +93 -18
- package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +2 -0
- package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/telegram-gateway-adapter.js +61 -113
- package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -0
- package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js +49 -4
- package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts +26 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js +75 -0
- package/dist/runtime/interactive-automation/browser-session-resolver.js.map +1 -0
- package/dist/runtime/interactive-automation/index.d.ts +2 -0
- package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
- package/dist/runtime/interactive-automation/index.js +2 -0
- package/dist/runtime/interactive-automation/index.js.map +1 -1
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts +35 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +125 -0
- package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -0
- package/dist/runtime/permission-dialogue.d.ts +113 -0
- package/dist/runtime/permission-dialogue.d.ts.map +1 -0
- package/dist/runtime/permission-dialogue.js +82 -0
- package/dist/runtime/permission-dialogue.js.map +1 -0
- package/dist/runtime/run-spec/derive.d.ts +14 -14
- package/dist/runtime/run-spec/handoff.d.ts.map +1 -1
- package/dist/runtime/run-spec/handoff.js +33 -0
- package/dist/runtime/run-spec/handoff.js.map +1 -1
- package/dist/runtime/run-spec/types.d.ts +16 -16
- package/dist/runtime/session-registry/types.d.ts +12 -12
- package/dist/runtime/store/artifact-retention.d.ts +2 -0
- package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
- package/dist/runtime/store/artifact-retention.js +24 -21
- package/dist/runtime/store/artifact-retention.js.map +1 -1
- package/dist/runtime/store/budget-store.d.ts +8 -8
- package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
- package/dist/runtime/store/evidence-ledger.js +39 -1
- package/dist/runtime/store/evidence-ledger.js.map +1 -1
- package/dist/runtime/store/evidence-types.d.ts +204 -204
- package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
- package/dist/runtime/store/index.d.ts +2 -2
- package/dist/runtime/store/index.d.ts.map +1 -1
- package/dist/runtime/store/index.js +1 -1
- package/dist/runtime/store/index.js.map +1 -1
- package/dist/runtime/store/operator-handoff-store.d.ts +3 -3
- package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
- package/dist/runtime/store/runtime-operation-schemas.d.ts +95 -62
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +9 -0
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-paths.d.ts +2 -0
- package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
- package/dist/runtime/store/runtime-paths.js +6 -0
- package/dist/runtime/store/runtime-paths.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +2256 -46
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +85 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/runtime/types/companion.d.ts +52 -52
- package/dist/runtime/types/daemon.d.ts +31 -31
- package/dist/tools/automation/InteractiveAutomationTools.d.ts +22 -2
- package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
- package/dist/tools/automation/InteractiveAutomationTools.js +75 -10
- package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
- package/dist/tools/builtin/factory.d.ts +2 -1
- package/dist/tools/builtin/factory.d.ts.map +1 -1
- package/dist/tools/builtin/factory.js +6 -2
- package/dist/tools/builtin/factory.js.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +20 -20
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +6 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +2 -0
- package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
- package/dist/tools/execution-orchestrator.d.ts +29 -0
- package/dist/tools/execution-orchestrator.d.ts.map +1 -0
- package/dist/tools/execution-orchestrator.js +153 -0
- package/dist/tools/execution-orchestrator.js.map +1 -0
- package/dist/tools/executor.d.ts +6 -0
- package/dist/tools/executor.d.ts.map +1 -1
- package/dist/tools/executor.js +48 -11
- package/dist/tools/executor.js.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +130 -17
- package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
- package/dist/tools/kaggle/KaggleExperimentTools.js +4 -3
- package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleSubmissionTools.js +6 -5
- package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +6 -5
- package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
- package/dist/tools/kaggle/paths.d.ts.map +1 -1
- package/dist/tools/kaggle/paths.js +12 -8
- package/dist/tools/kaggle/paths.js.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +8 -0
- package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +8 -8
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +49 -7
- package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js.map +1 -1
- package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +4 -4
- package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
- package/dist/tools/permission.d.ts +0 -1
- package/dist/tools/permission.d.ts.map +1 -1
- package/dist/tools/permission.js +9 -33
- package/dist/tools/permission.js.map +1 -1
- package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +4 -4
- package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +8 -8
- package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
- package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +4 -4
- package/dist/tools/query/runtime-session-tools.d.ts +73 -5
- package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
- package/dist/tools/query/runtime-session-tools.js +114 -0
- package/dist/tools/query/runtime-session-tools.js.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +72 -54
- package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js +4 -1
- package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
- package/dist/tools/runtime/RunSpecHandoffTools.js +162 -2
- package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -1
- package/dist/tools/runtime/SetupRuntimeControlTools.js +169 -17
- package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
- package/dist/tools/system/EnvTool/EnvTool.d.ts +4 -4
- package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +4 -4
- package/dist/tools/system/GitLogTool/GitLogTool.d.ts +4 -4
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +8 -2
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/ShellTool.js +29 -11
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +12 -8
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +412 -98
- package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts +1 -1
- package/dist/tools/system/ShellTool/prompt.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/prompt.js +1 -1
- package/dist/tools/system/ShellTool/prompt.js.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +152 -8
- package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -1
- package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
- package/dist/tools/types.d.ts +36 -12
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/tools/types.js +26 -3
- package/dist/tools/types.js.map +1 -1
- package/dist/tools/workspace-scope.d.ts +11 -0
- package/dist/tools/workspace-scope.d.ts.map +1 -0
- package/dist/tools/workspace-scope.js +77 -0
- package/dist/tools/workspace-scope.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"factory.js","sourceRoot":"","sources":["../../../src/tools/builtin/factory.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EACL,mBAAmB,EACnB,sBAAsB,EACtB,gBAAgB,EAChB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,6BAA6B,EAC7B,eAAe,GAChB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAC;AACxE,OAAO,EAAE,YAAY,EAAE,MAAM,oCAAoC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,4BAA4B,CAAC;AACtD,OAAO,EAAE,aAAa,EAAE,MAAM,sCAAsC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,mBAAmB,EAAE,MAAM,kDAAkD,CAAC;AACvF,OAAO,EAAE,QAAQ,EAA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A6B,EAAE,2BAA2B,EAAE;YACrF,mBAAmB;YACnB,gBAAgB;YAChB,cAAc,EAAE,qBAAqB;YACrC,YAAY,EAAE,mBAAmB;SAClC,CAAC,EACF,IAAI,gBAAgB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EAChF,IAAI,sBAAsB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EACtF,IAAI,mBAAmB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EACnF,IAAI,mBAAmB,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EACnF,IAAI,6BAA6B,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,EAC7F,IAAI,eAAe,CAAC,6BAA6B,EAAE,2BAA2B,CAAC,CAChF,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,IAAI,CACR,IAAI,mBAAmB,EAAE,EACzB,IAAI,oBAAoB,EAAE,EAC1B,IAAI,YAAY,EAAE,EAClB,IAAI,cAAc,EAAE,EACpB,IAAI,YAAY,EAAE,CACnB,CAAC;IAEF,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -18,7 +18,7 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
18
18
|
}, "strict", z.ZodTypeAny, {
|
|
19
19
|
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
20
20
|
raw_refs: string[];
|
|
21
|
-
verification_status: "unknown" | "
|
|
21
|
+
verification_status: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious";
|
|
22
22
|
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
23
23
|
reliability?: number | undefined;
|
|
24
24
|
source_ref?: string | undefined;
|
|
@@ -27,7 +27,7 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
27
27
|
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
28
28
|
source_ref?: string | undefined;
|
|
29
29
|
raw_refs?: string[] | undefined;
|
|
30
|
-
verification_status?: "unknown" | "
|
|
30
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
31
31
|
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
32
32
|
}>>;
|
|
33
33
|
governance: z.ZodOptional<z.ZodObject<{
|
|
@@ -70,7 +70,7 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
70
70
|
export_visibility: z.ZodDefault<z.ZodEnum<["listed", "redacted", "hidden"]>>;
|
|
71
71
|
owner_ref: z.ZodDefault<z.ZodString>;
|
|
72
72
|
}, "strict", z.ZodTypeAny, {
|
|
73
|
-
sensitivity: "
|
|
73
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
74
74
|
consent: {
|
|
75
75
|
scope_id: string;
|
|
76
76
|
allowed_contexts: string[];
|
|
@@ -87,7 +87,7 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
87
87
|
export_visibility: "listed" | "redacted" | "hidden";
|
|
88
88
|
owner_ref: string;
|
|
89
89
|
}, {
|
|
90
|
-
sensitivity?: "
|
|
90
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
91
91
|
consent?: {
|
|
92
92
|
scope_id?: string | undefined;
|
|
93
93
|
allowed_contexts?: string[] | undefined;
|
|
@@ -113,14 +113,14 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
113
113
|
provenance?: {
|
|
114
114
|
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
115
115
|
raw_refs: string[];
|
|
116
|
-
verification_status: "unknown" | "
|
|
116
|
+
verification_status: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious";
|
|
117
117
|
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
118
118
|
reliability?: number | undefined;
|
|
119
119
|
source_ref?: string | undefined;
|
|
120
120
|
} | undefined;
|
|
121
|
-
verification_status?: "unknown" | "
|
|
121
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
122
122
|
governance?: {
|
|
123
|
-
sensitivity: "
|
|
123
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
124
124
|
consent: {
|
|
125
125
|
scope_id: string;
|
|
126
126
|
allowed_contexts: string[];
|
|
@@ -147,13 +147,13 @@ export declare const MemorySaveInputSchema: z.ZodObject<{
|
|
|
147
147
|
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
148
148
|
source_ref?: string | undefined;
|
|
149
149
|
raw_refs?: string[] | undefined;
|
|
150
|
-
verification_status?: "unknown" | "
|
|
150
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
151
151
|
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
152
152
|
} | undefined;
|
|
153
|
-
verification_status?: "unknown" | "
|
|
153
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
154
154
|
memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
|
|
155
155
|
governance?: {
|
|
156
|
-
sensitivity?: "
|
|
156
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
157
157
|
consent?: {
|
|
158
158
|
scope_id?: string | undefined;
|
|
159
159
|
allowed_contexts?: string[] | undefined;
|
|
@@ -192,7 +192,7 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
192
192
|
}, "strict", z.ZodTypeAny, {
|
|
193
193
|
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
194
194
|
raw_refs: string[];
|
|
195
|
-
verification_status: "unknown" | "
|
|
195
|
+
verification_status: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious";
|
|
196
196
|
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
197
197
|
reliability?: number | undefined;
|
|
198
198
|
source_ref?: string | undefined;
|
|
@@ -201,7 +201,7 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
201
201
|
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
202
202
|
source_ref?: string | undefined;
|
|
203
203
|
raw_refs?: string[] | undefined;
|
|
204
|
-
verification_status?: "unknown" | "
|
|
204
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
205
205
|
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
206
206
|
}>>;
|
|
207
207
|
governance: z.ZodOptional<z.ZodObject<{
|
|
@@ -244,7 +244,7 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
244
244
|
export_visibility: z.ZodDefault<z.ZodEnum<["listed", "redacted", "hidden"]>>;
|
|
245
245
|
owner_ref: z.ZodDefault<z.ZodString>;
|
|
246
246
|
}, "strict", z.ZodTypeAny, {
|
|
247
|
-
sensitivity: "
|
|
247
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
248
248
|
consent: {
|
|
249
249
|
scope_id: string;
|
|
250
250
|
allowed_contexts: string[];
|
|
@@ -261,7 +261,7 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
261
261
|
export_visibility: "listed" | "redacted" | "hidden";
|
|
262
262
|
owner_ref: string;
|
|
263
263
|
}, {
|
|
264
|
-
sensitivity?: "
|
|
264
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
265
265
|
consent?: {
|
|
266
266
|
scope_id?: string | undefined;
|
|
267
267
|
allowed_contexts?: string[] | undefined;
|
|
@@ -287,14 +287,14 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
287
287
|
provenance?: {
|
|
288
288
|
source_type: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported";
|
|
289
289
|
raw_refs: string[];
|
|
290
|
-
verification_status: "unknown" | "
|
|
290
|
+
verification_status: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious";
|
|
291
291
|
risk_signals: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[];
|
|
292
292
|
reliability?: number | undefined;
|
|
293
293
|
source_ref?: string | undefined;
|
|
294
294
|
} | undefined;
|
|
295
|
-
verification_status?: "unknown" | "
|
|
295
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
296
296
|
governance?: {
|
|
297
|
-
sensitivity: "
|
|
297
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
298
298
|
consent: {
|
|
299
299
|
scope_id: string;
|
|
300
300
|
allowed_contexts: string[];
|
|
@@ -321,13 +321,13 @@ export declare class MemorySaveTool implements ITool<MemorySaveInput, unknown> {
|
|
|
321
321
|
source_type?: "unknown" | "external" | "web" | "tool" | "user" | "runtime" | "imported" | undefined;
|
|
322
322
|
source_ref?: string | undefined;
|
|
323
323
|
raw_refs?: string[] | undefined;
|
|
324
|
-
verification_status?: "unknown" | "
|
|
324
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
325
325
|
risk_signals?: ("hallucinated" | "low_provenance" | "contradiction" | "prompt_injection_like" | "unverified_external")[] | undefined;
|
|
326
326
|
} | undefined;
|
|
327
|
-
verification_status?: "unknown" | "
|
|
327
|
+
verification_status?: "unknown" | "verified" | "unverified" | "contradicted" | "suspicious" | undefined;
|
|
328
328
|
memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
|
|
329
329
|
governance?: {
|
|
330
|
-
sensitivity?: "
|
|
330
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
331
331
|
consent?: {
|
|
332
332
|
scope_id?: string | undefined;
|
|
333
333
|
allowed_contexts?: string[] | undefined;
|
|
@@ -5,14 +5,17 @@ export declare const RunAdapterInputSchema: z.ZodObject<{
|
|
|
5
5
|
adapter_id: z.ZodString;
|
|
6
6
|
task_description: z.ZodString;
|
|
7
7
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
8
9
|
}, "strip", z.ZodTypeAny, {
|
|
9
10
|
task_description: string;
|
|
10
11
|
adapter_id: string;
|
|
11
12
|
goal_id?: string | undefined;
|
|
13
|
+
cwd?: string | undefined;
|
|
12
14
|
}, {
|
|
13
15
|
task_description: string;
|
|
14
16
|
adapter_id: string;
|
|
15
17
|
goal_id?: string | undefined;
|
|
18
|
+
cwd?: string | undefined;
|
|
16
19
|
}>;
|
|
17
20
|
export type RunAdapterInput = z.infer<typeof RunAdapterInputSchema>;
|
|
18
21
|
export declare class RunAdapterTool implements ITool<RunAdapterInput, unknown> {
|
|
@@ -22,14 +25,17 @@ export declare class RunAdapterTool implements ITool<RunAdapterInput, unknown> {
|
|
|
22
25
|
adapter_id: z.ZodString;
|
|
23
26
|
task_description: z.ZodString;
|
|
24
27
|
goal_id: z.ZodOptional<z.ZodString>;
|
|
28
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
25
29
|
}, "strip", z.ZodTypeAny, {
|
|
26
30
|
task_description: string;
|
|
27
31
|
adapter_id: string;
|
|
28
32
|
goal_id?: string | undefined;
|
|
33
|
+
cwd?: string | undefined;
|
|
29
34
|
}, {
|
|
30
35
|
task_description: string;
|
|
31
36
|
adapter_id: string;
|
|
32
37
|
goal_id?: string | undefined;
|
|
38
|
+
cwd?: string | undefined;
|
|
33
39
|
}>;
|
|
34
40
|
constructor(adapterRegistry: AdapterRegistry);
|
|
35
41
|
description(_context?: ToolDescriptionContext): string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunAdapterTool.d.ts","sourceRoot":"","sources":["../../../../src/tools/execution/RunAdapterTool/RunAdapterTool.ts"],"names":[],"mappings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,eAAe,GAAG,OAAO;CAGpD"}
|
|
@@ -5,6 +5,7 @@ export const RunAdapterInputSchema = z.object({
|
|
|
5
5
|
adapter_id: z.string().min(1, "adapter_id is required"),
|
|
6
6
|
task_description: z.string().min(1, "task_description is required"),
|
|
7
7
|
goal_id: z.string().optional(),
|
|
8
|
+
cwd: z.string().optional(),
|
|
8
9
|
});
|
|
9
10
|
export class RunAdapterTool {
|
|
10
11
|
adapterRegistry;
|
|
@@ -46,6 +47,7 @@ export class RunAdapterTool {
|
|
|
46
47
|
prompt: input.task_description,
|
|
47
48
|
timeout_ms: 60_000,
|
|
48
49
|
adapter_type: input.adapter_id,
|
|
50
|
+
...(input.cwd !== undefined ? { cwd: input.cwd } : {}),
|
|
49
51
|
};
|
|
50
52
|
const result = await adapter.execute(task);
|
|
51
53
|
if (result.success) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RunAdapterTool.js","sourceRoot":"","sources":["../../../../src/tools/execution/RunAdapterTool/RunAdapterTool.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAyB,SAAS,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAE1F,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IACvD,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,8BAA8B,CAAC;IACnE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;
|
|
1
|
+
{"version":3,"file":"RunAdapterTool.js","sourceRoot":"","sources":["../../../../src/tools/execution/RunAdapterTool/RunAdapterTool.ts"],"names":[],"mappings":"A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AW,KAAK,CAAC,UAAU,YAAY,MAAM,CAAC,KAAK,IAAI,eAAe,EAAE;gBAC5E,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,IAAI,SAAS,CAAC;gBAC/D,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;aACnC,CAAC;QACJ,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,IAAI,0BAA0B,EAAE,CAAC;gBAC/B,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;YACvD,CAAC;YACD,OAAO;gBACL,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,IAAI;gBACV,OAAO,EAAE,yBAAyB,GAAI,GAAa,CAAC,OAAO;gBAC3D,KAAK,EAAG,GAAa,CAAC,OAAO;gBAC7B,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS;aACnC,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,MAAuB,EAAE,QAAyB;QACvE,OAAO,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,EAAE,0EAA0E,EAAE,CAAC;IAC1H,CAAC;IAED,iBAAiB,CAAC,MAAuB;QACvC,OAAO,KAAK,CAAC;IACf,CAAC;CACF"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { ITool, ToolCallContext, ToolResult } from "./types.js";
|
|
2
|
+
export type HostToolExecutionDecisionStatus = "allowed" | "denied" | "needs_permission" | "needs_sandbox" | "needs_escalation" | "fail_closed";
|
|
3
|
+
export interface HostToolExecutionDecision {
|
|
4
|
+
status: HostToolExecutionDecisionStatus;
|
|
5
|
+
reason: string;
|
|
6
|
+
executionReason?: NonNullable<ToolResult["execution"]>["reason"];
|
|
7
|
+
requiredSandboxMode?: "workspace_write" | "danger_full_access";
|
|
8
|
+
requiredApprovalPolicy?: "on_request";
|
|
9
|
+
}
|
|
10
|
+
export interface HostToolExecutionRequest {
|
|
11
|
+
tool: ITool;
|
|
12
|
+
input: unknown;
|
|
13
|
+
context: ToolCallContext;
|
|
14
|
+
}
|
|
15
|
+
export declare function decideHostToolExecution(request: HostToolExecutionRequest): HostToolExecutionDecision;
|
|
16
|
+
export declare function permissionResultFromHostDecision(decision: HostToolExecutionDecision): {
|
|
17
|
+
status: "allowed";
|
|
18
|
+
} | {
|
|
19
|
+
status: "denied";
|
|
20
|
+
reason: string;
|
|
21
|
+
executionReason?: NonNullable<ToolResult["execution"]>["reason"];
|
|
22
|
+
policyDecision: HostToolExecutionDecision;
|
|
23
|
+
} | {
|
|
24
|
+
status: "needs_approval";
|
|
25
|
+
reason: string;
|
|
26
|
+
executionReason?: NonNullable<ToolResult["execution"]>["reason"];
|
|
27
|
+
policyDecision: HostToolExecutionDecision;
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=execution-orchestrator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-orchestrator.d.ts","sourceRoot":"","sources":["../../src/tools/execution-orchestrator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAIrE,MAAM,MAAM,+BAA+B,GACvC,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,eAAe,GACf,kBAAkB,GAClB,aAAa,CAAC;AAElB,MAAM,WAAW,yBAAyB;IACxC,MAAM,EAAE,+BAA+B,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE,mBAAmB,CAAC,EAAE,iBAAiB,GAAG,oBAAoB,CAAC;IAC/D,sBAAsB,CAAC,EAAE,YAAY,CAAC;CACvC;AAED,MAAM,WAAW,wBAAwB;IACvC,IAAI,EAAE,KAAK,CAAC;IACZ,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,wBAAwB,GAChC,yBAAyB,CAkE3B;AAsFD,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,yBAAyB,GAAG;IACrF,MAAM,EAAE,SAAS,CAAC;CACnB,GAAG;IACF,MAAM,EAAE,QAAQ,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE,cAAc,EAAE,yBAAyB,CAAC;CAC3C,GAAG;IACF,MAAM,EAAE,gBAAgB,CAAC;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC;IACjE,cAAc,EAAE,yBAAyB,CAAC;CAC3C,CAgBA"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { assessShellCommand } from "./system/ShellTool/command-policy.js";
|
|
2
|
+
import { resolveWorkspaceCwd } from "./workspace-scope.js";
|
|
3
|
+
export function decideHostToolExecution(request) {
|
|
4
|
+
const staleStateDecision = decideStateFreshness(request.context);
|
|
5
|
+
if (staleStateDecision)
|
|
6
|
+
return staleStateDecision;
|
|
7
|
+
const policy = request.context.executionPolicy;
|
|
8
|
+
if (!policy) {
|
|
9
|
+
return { status: "allowed", reason: "No host execution policy is attached to this call." };
|
|
10
|
+
}
|
|
11
|
+
const cwdDecision = decideWorkspaceCwd(request);
|
|
12
|
+
if (cwdDecision)
|
|
13
|
+
return cwdDecision;
|
|
14
|
+
const shellDecision = decideShellExecution(request);
|
|
15
|
+
if (shellDecision)
|
|
16
|
+
return shellDecision;
|
|
17
|
+
const needsNetwork = request.tool.metadata.permissionLevel === "write_remote"
|
|
18
|
+
|| request.tool.metadata.requiresNetwork === true
|
|
19
|
+
|| request.tool.metadata.tags.includes("network");
|
|
20
|
+
if (needsNetwork && !policy.networkAccess) {
|
|
21
|
+
return {
|
|
22
|
+
status: "needs_sandbox",
|
|
23
|
+
reason: "Network access is disabled for this session.",
|
|
24
|
+
executionReason: "sandbox_required",
|
|
25
|
+
requiredSandboxMode: "danger_full_access",
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
if (policy.sandboxMode === "read_only" && !request.tool.metadata.isReadOnly) {
|
|
29
|
+
return {
|
|
30
|
+
status: "needs_sandbox",
|
|
31
|
+
reason: "Read-only sandbox blocks mutating tools.",
|
|
32
|
+
executionReason: "sandbox_required",
|
|
33
|
+
requiredSandboxMode: "workspace_write",
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
if (policy.approvalPolicy === "untrusted"
|
|
37
|
+
&& (request.tool.metadata.isDestructive
|
|
38
|
+
|| request.tool.metadata.permissionLevel === "execute"
|
|
39
|
+
|| request.tool.metadata.permissionLevel === "write_remote")) {
|
|
40
|
+
return {
|
|
41
|
+
status: "needs_escalation",
|
|
42
|
+
reason: `Host policy requires escalation for ${request.tool.metadata.permissionLevel} tools.`,
|
|
43
|
+
executionReason: "escalation_required",
|
|
44
|
+
requiredApprovalPolicy: "on_request",
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
if (request.tool.metadata.permissionLevel === "write_local"
|
|
48
|
+
|| request.tool.metadata.permissionLevel === "execute"
|
|
49
|
+
|| request.tool.metadata.permissionLevel === "write_remote") {
|
|
50
|
+
if (policy.approvalPolicy !== "never") {
|
|
51
|
+
return {
|
|
52
|
+
status: "needs_permission",
|
|
53
|
+
reason: `Host policy requires permission for ${request.tool.metadata.permissionLevel} tools.`,
|
|
54
|
+
executionReason: "approval_denied",
|
|
55
|
+
requiredApprovalPolicy: "on_request",
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return { status: "allowed", reason: "Host policy allows this typed tool request." };
|
|
60
|
+
}
|
|
61
|
+
function decideStateFreshness(context) {
|
|
62
|
+
const state = context.hostToolState;
|
|
63
|
+
if (!state?.observedEpoch)
|
|
64
|
+
return null;
|
|
65
|
+
if (state.observedEpoch === state.currentEpoch)
|
|
66
|
+
return null;
|
|
67
|
+
return {
|
|
68
|
+
status: "fail_closed",
|
|
69
|
+
reason: `Tool request observed state epoch ${state.observedEpoch}, but host state is now ${state.currentEpoch}.`,
|
|
70
|
+
executionReason: "stale_state",
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function decideWorkspaceCwd(request) {
|
|
74
|
+
if (typeof request.input !== "object" || request.input === null)
|
|
75
|
+
return null;
|
|
76
|
+
const cwd = request.input.cwd;
|
|
77
|
+
if (cwd !== undefined && typeof cwd !== "string") {
|
|
78
|
+
return {
|
|
79
|
+
status: "fail_closed",
|
|
80
|
+
reason: "Tool cwd must be a string when provided.",
|
|
81
|
+
executionReason: "policy_blocked",
|
|
82
|
+
};
|
|
83
|
+
}
|
|
84
|
+
const validation = resolveWorkspaceCwd(cwd, request.context);
|
|
85
|
+
if (validation.valid)
|
|
86
|
+
return null;
|
|
87
|
+
return {
|
|
88
|
+
status: "fail_closed",
|
|
89
|
+
reason: validation.error ?? `Tool cwd escapes workspace root: ${validation.resolved}`,
|
|
90
|
+
executionReason: "policy_blocked",
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
function decideShellExecution(request) {
|
|
94
|
+
if (request.tool.metadata.name !== "shell"
|
|
95
|
+
&& request.tool.metadata.name !== "shell_command") {
|
|
96
|
+
return null;
|
|
97
|
+
}
|
|
98
|
+
if (typeof request.input !== "object" || request.input === null) {
|
|
99
|
+
return null;
|
|
100
|
+
}
|
|
101
|
+
const command = request.input.command;
|
|
102
|
+
if (typeof command !== "string")
|
|
103
|
+
return null;
|
|
104
|
+
const cwdValidation = resolveWorkspaceCwd(request.input.cwd, request.context);
|
|
105
|
+
const assessment = assessShellCommand(command, request.context.executionPolicy, request.context.trusted === true, cwdValidation.resolved);
|
|
106
|
+
if (assessment.status === "allowed") {
|
|
107
|
+
return { status: "allowed", reason: "Shell command is allowed by host policy." };
|
|
108
|
+
}
|
|
109
|
+
if (assessment.status === "needs_approval") {
|
|
110
|
+
return {
|
|
111
|
+
status: "needs_permission",
|
|
112
|
+
reason: assessment.reason ?? "Shell command requires permission.",
|
|
113
|
+
executionReason: "approval_denied",
|
|
114
|
+
requiredApprovalPolicy: "on_request",
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
if ((assessment.capabilities.localWrite && request.context.executionPolicy?.sandboxMode === "read_only")
|
|
118
|
+
|| (assessment.capabilities.network && request.context.executionPolicy?.networkAccess === false)) {
|
|
119
|
+
const reason = assessment.capabilities.network
|
|
120
|
+
? "Network access is disabled for this session."
|
|
121
|
+
: "Read-only sandbox blocks mutating shell commands.";
|
|
122
|
+
return {
|
|
123
|
+
status: "needs_sandbox",
|
|
124
|
+
reason,
|
|
125
|
+
executionReason: "sandbox_required",
|
|
126
|
+
requiredSandboxMode: assessment.capabilities.network ? "danger_full_access" : "workspace_write",
|
|
127
|
+
};
|
|
128
|
+
}
|
|
129
|
+
return {
|
|
130
|
+
status: "denied",
|
|
131
|
+
reason: assessment.reason ?? "Shell command denied by host policy.",
|
|
132
|
+
executionReason: "policy_blocked",
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
export function permissionResultFromHostDecision(decision) {
|
|
136
|
+
if (decision.status === "allowed")
|
|
137
|
+
return { status: "allowed" };
|
|
138
|
+
if (decision.status === "needs_permission") {
|
|
139
|
+
return {
|
|
140
|
+
status: "needs_approval",
|
|
141
|
+
reason: decision.reason,
|
|
142
|
+
...(decision.executionReason ? { executionReason: decision.executionReason } : {}),
|
|
143
|
+
policyDecision: decision,
|
|
144
|
+
};
|
|
145
|
+
}
|
|
146
|
+
return {
|
|
147
|
+
status: "denied",
|
|
148
|
+
reason: decision.reason,
|
|
149
|
+
...(decision.executionReason ? { executionReason: decision.executionReason } : {}),
|
|
150
|
+
policyDecision: decision,
|
|
151
|
+
};
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=execution-orchestrator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"execution-orchestrator.js","sourceRoot":"","sources":["../../src/tools/execution-orchestrator.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,sCAAsC,CAAC;AAC1E,OAAO,EAAE,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAwB3D,MAAM,UAAU,uBAAuB,CACrC,OAAiC;IAEjC,MAAM,kBAAkB,GAAG,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACjE,IAAI,kBAAkB;QAAE,OAAO,kBAAkB,CAAC;IAElD,MAAM,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC;IAC/C,IAAI,CAAC,MAAM,EAAE,CAAC;QACZ,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,oDAAoD,EAAE,CAAC;IAC7F,CAAC;IAED,MAAM,WAAW,GAAG,kBAAkB,CAAC,OAAO,CAAC,CAAC;IAChD,IAAI,WAAW;QAAE,OAAO,WAAW,CAAC;IAEpC,MAAM,aAAa,GAAG,oBAAoB,CAAC,OAAO,CAAC,CAAC;IACpD,IAAI,aAAa;QAAE,OAAO,aAAa,CAAC;IAExC,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,KAAK,cAAc;WACxE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,KAAK,IAAI;WAC9C,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IACpD,IAAI,YAAY,IAAI,CAAC,MAAM,CAAC,aAAa,EAAE,CAAC;QAC1C,OAAO;YACL,MAAM,EAAE,eAAe;YACvB,MAAM,EAAE,8CAA8C;YACtD,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string;
|
|
22
22
|
input: unknown;
|
|
23
23
|
}>, context: ToolCallContext): Promise<ToolResult[]>;
|
|
24
|
+
private checkHostPolicyPreflight;
|
|
24
25
|
private sanitizeInput;
|
|
25
26
|
private withTimeout;
|
|
26
27
|
/**
|
|
@@ -30,6 +31,11 @@ export declare class ToolExecutor {
|
|
|
30
31
|
*/
|
|
31
32
|
private callWithRetry;
|
|
32
33
|
private failResult;
|
|
34
|
+
private executionForFailure;
|
|
35
|
+
}
|
|
36
|
+
export declare class ToolExecutionTimeoutError extends Error {
|
|
37
|
+
readonly timeoutMs: number;
|
|
38
|
+
constructor(timeoutMs: number);
|
|
33
39
|
}
|
|
34
40
|
export interface ToolExecutorDeps {
|
|
35
41
|
registry: ToolRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/tools/executor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,UAAU,EACV,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"executor.d.ts","sourceRoot":"","sources":["../../src/tools/executor.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAEV,UAAU,EACV,eAAe,EAChB,MAAM,YAAY,CAAC;AACpB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAClD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAC7D,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AAO9D;;;;;;;;GAQG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAe;IACxC,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAAwB;IAC1D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAwB;gBAExC,IAAI,EAAE,gBAAgB;IAM5B,OAAO,CACX,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,OAAO,EACjB,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,UAAU,CAAC;IAwJhB,YAAY,CAChB,KAAK,EAAE,KAAK,CAAC;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,CAAC,EAClD,OAAO,EAAE,eAAe,GACvB,OAAO,CAAC,UAAU,EAAE,CAAC;IAkCxB,OAAO,CAAC,wBAAwB;IA2BhC,OAAO,CAAC,aAAa;YAaP,WAAW;IAezB;;;;OAIG;YACW,aAAa;IAsD3B,OAAO,CAAC,UAAU;IAWlB,OAAO,CAAC,mBAAmB;CAU5B;AAED,qBAAa,yBAA0B,SAAQ,KAAK;IACtC,QAAQ,CAAC,SAAS,EAAE,MAAM;gBAAjB,SAAS,EAAE,MAAM;CAIvC;AAED,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,EAAE,YAAY,CAAC;IACvB,iBAAiB,EAAE,qBAAqB,CAAC;IACzC,WAAW,EAAE,qBAAqB,CAAC;CACpC"}
|
package/dist/tools/executor.js
CHANGED
|
@@ -3,6 +3,8 @@ import { mkdirSync, writeFileSync } from "fs";
|
|
|
3
3
|
import { join } from "path";
|
|
4
4
|
import { randomUUID } from "crypto";
|
|
5
5
|
import { getPulseedDirPath } from "../base/utils/paths.js";
|
|
6
|
+
import { decideHostToolExecution, permissionResultFromHostDecision, } from "./execution-orchestrator.js";
|
|
7
|
+
import { assessShellCommand } from "./system/ShellTool/command-policy.js";
|
|
6
8
|
/**
|
|
7
9
|
* 5-gate execution pipeline for tool invocations.
|
|
8
10
|
*
|
|
@@ -40,10 +42,13 @@ export class ToolExecutor {
|
|
|
40
42
|
return this.failResult(`Input validation failed: ${errors}`, Date.now() - startTime);
|
|
41
43
|
}
|
|
42
44
|
const input = parseResult.data;
|
|
45
|
+
const hostPreflightResult = this.checkHostPolicyPreflight(tool, input, context, startTime);
|
|
46
|
+
if (hostPreflightResult)
|
|
47
|
+
return hostPreflightResult;
|
|
43
48
|
// --- Gate 2: Semantic Validation (tool-specific) ---
|
|
44
49
|
const semanticResult = await tool.checkPermissions(input, context);
|
|
45
50
|
if (semanticResult.status === "denied") {
|
|
46
|
-
return this.failResult(`Permission denied: ${semanticResult.reason}`, Date.now() - startTime, { status: "not_executed", reason: "permission_denied", message: semanticResult.reason });
|
|
51
|
+
return this.failResult(`Permission denied: ${semanticResult.reason}`, Date.now() - startTime, { status: "not_executed", reason: semanticResult.executionReason ?? "permission_denied", message: semanticResult.reason });
|
|
47
52
|
}
|
|
48
53
|
if (semanticResult.status === "needs_approval" && tool.metadata.tags.includes("automation")) {
|
|
49
54
|
const approvalRequest = {
|
|
@@ -64,7 +69,7 @@ export class ToolExecutor {
|
|
|
64
69
|
// --- Gate 3: Permission Manager (3-layer) ---
|
|
65
70
|
const permResult = await this.permissionManager.check(tool, input, context);
|
|
66
71
|
if (permResult.status === "denied") {
|
|
67
|
-
return this.failResult(`Permission denied by policy: ${permResult.reason}`, Date.now() - startTime, { status: "not_executed", reason: "policy_blocked", message: permResult.reason });
|
|
72
|
+
return this.failResult(`Permission denied by policy: ${permResult.reason}`, Date.now() - startTime, { status: "not_executed", reason: permResult.executionReason ?? "policy_blocked", message: permResult.reason });
|
|
68
73
|
}
|
|
69
74
|
if (permResult.status === "needs_approval") {
|
|
70
75
|
const approvalRequest = {
|
|
@@ -83,7 +88,7 @@ export class ToolExecutor {
|
|
|
83
88
|
}
|
|
84
89
|
}
|
|
85
90
|
// --- Gate 4: Input Sanitization ---
|
|
86
|
-
const sanitizeError = this.sanitizeInput(tool, input);
|
|
91
|
+
const sanitizeError = this.sanitizeInput(tool, input, context);
|
|
87
92
|
if (sanitizeError) {
|
|
88
93
|
return this.failResult(`Input sanitization failed: ${sanitizeError}`, Date.now() - startTime, { status: "not_executed", reason: "policy_blocked", message: sanitizeError });
|
|
89
94
|
}
|
|
@@ -157,17 +162,29 @@ export class ToolExecutor {
|
|
|
157
162
|
return results;
|
|
158
163
|
}
|
|
159
164
|
// --- Private Helpers ---
|
|
160
|
-
|
|
165
|
+
checkHostPolicyPreflight(tool, input, context, startTime) {
|
|
166
|
+
const decision = decideHostToolExecution({ tool, input, context });
|
|
167
|
+
if (decision.status === "allowed" || decision.status === "needs_permission") {
|
|
168
|
+
return null;
|
|
169
|
+
}
|
|
170
|
+
const policyResult = permissionResultFromHostDecision(decision);
|
|
171
|
+
if (policyResult.status !== "denied") {
|
|
172
|
+
return null;
|
|
173
|
+
}
|
|
174
|
+
return this.failResult(`Permission denied by host policy: ${policyResult.reason}`, Date.now() - startTime, {
|
|
175
|
+
status: "not_executed",
|
|
176
|
+
reason: policyResult.executionReason ?? "policy_blocked",
|
|
177
|
+
message: policyResult.reason,
|
|
178
|
+
});
|
|
179
|
+
}
|
|
180
|
+
sanitizeInput(tool, input, context) {
|
|
161
181
|
if (tool.metadata.name === "shell" && typeof input === "object" && input !== null) {
|
|
162
182
|
const obj = input;
|
|
163
183
|
const cmd = obj["command"];
|
|
164
184
|
if (typeof cmd === "string") {
|
|
165
|
-
const
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
return `Potentially dangerous shell command detected: "${pattern}"`;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
185
|
+
const assessment = assessShellCommand(cmd, context.executionPolicy, context.trusted === true, context.cwd);
|
|
186
|
+
if (assessment.status === "denied")
|
|
187
|
+
return assessment.reason ?? "Shell command denied by policy";
|
|
171
188
|
}
|
|
172
189
|
}
|
|
173
190
|
return null;
|
|
@@ -175,7 +192,7 @@ export class ToolExecutor {
|
|
|
175
192
|
async withTimeout(fn, timeoutMs) {
|
|
176
193
|
return Promise.race([
|
|
177
194
|
fn(),
|
|
178
|
-
new Promise((_, reject) => setTimeout(() => reject(new
|
|
195
|
+
new Promise((_, reject) => setTimeout(() => reject(new ToolExecutionTimeoutError(timeoutMs)), timeoutMs)),
|
|
179
196
|
]);
|
|
180
197
|
}
|
|
181
198
|
/**
|
|
@@ -204,12 +221,14 @@ export class ToolExecutor {
|
|
|
204
221
|
catch (err) {
|
|
205
222
|
if (!isSafe || !isTransient(err) || attempt >= BACKOFFS.length) {
|
|
206
223
|
const errMsg = err instanceof Error ? err.message : String(err);
|
|
224
|
+
const execution = this.executionForFailure(err, context);
|
|
207
225
|
context.logger?.warn("tool.call.failure", { tool: toolName, callId: context.callId, error: errMsg });
|
|
208
226
|
return {
|
|
209
227
|
success: false,
|
|
210
228
|
data: null,
|
|
211
229
|
summary: `Tool ${toolName} failed: ${errMsg}`,
|
|
212
230
|
error: errMsg,
|
|
231
|
+
...(execution ? { execution } : {}),
|
|
213
232
|
durationMs: 0,
|
|
214
233
|
};
|
|
215
234
|
}
|
|
@@ -236,5 +255,23 @@ export class ToolExecutor {
|
|
|
236
255
|
durationMs,
|
|
237
256
|
};
|
|
238
257
|
}
|
|
258
|
+
executionForFailure(error, context) {
|
|
259
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
260
|
+
if (context.abortSignal?.aborted) {
|
|
261
|
+
return { status: "executed", reason: "interrupted", message };
|
|
262
|
+
}
|
|
263
|
+
if (error instanceof ToolExecutionTimeoutError) {
|
|
264
|
+
return { status: "executed", reason: "timed_out", message };
|
|
265
|
+
}
|
|
266
|
+
return undefined;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
export class ToolExecutionTimeoutError extends Error {
|
|
270
|
+
timeoutMs;
|
|
271
|
+
constructor(timeoutMs) {
|
|
272
|
+
super(`Tool call timed out after ${timeoutMs}ms`);
|
|
273
|
+
this.timeoutMs = timeoutMs;
|
|
274
|
+
this.name = "ToolExecutionTimeoutError";
|
|
275
|
+
}
|
|
239
276
|
}
|
|
240
277
|
//# sourceMappingURL=executor.js.map
|