pulseed 0.6.3 → 0.6.4
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 +238 -8
- package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
- package/dist/base/config/global-config.d.ts +4 -4
- 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/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/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.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +22 -18
- 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 +2 -2
- 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/commands/daemon-shared.d.ts +8 -0
- package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/daemon-shared.js +18 -2
- 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 +5 -1
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +14 -1
- 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 +6 -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-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-result.d.ts +17 -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 +12 -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 +400 -80
- 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 +180 -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 +20 -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 +5 -3
- 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 +109 -10
- 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 +9 -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 +176 -0
- package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts +14 -1
- package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-diff-capture.js +269 -17
- 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-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 +55 -50
- package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts +54 -1
- package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-generation.js +19 -3
- 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 +31 -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 +51 -10
- package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +8 -0
- package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-outcome-ledger.js +59 -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 +23 -12
- 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 +328 -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 +229 -22
- 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 +76 -5
- package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.d.ts +117 -3
- package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
- package/dist/orchestrator/execution/types/task.js +12 -0
- package/dist/orchestrator/execution/types/task.js.map +1 -1
- 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/platform/corrections/memory-correction-ledger.d.ts +30 -30
- package/dist/platform/corrections/memory-governance.d.ts +2 -2
- package/dist/platform/knowledge/types/agent-memory.d.ts +30 -30
- 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 +56 -56
- package/dist/reporting/types/report.d.ts +7 -0
- package/dist/reporting/types/report.d.ts.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 +2 -1
- package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
- package/dist/runtime/control/runtime-control-service.js +9 -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/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 +3 -2
- package/dist/runtime/daemon/runner.js.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts +0 -1
- package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
- package/dist/runtime/daemon/runtime-ownership.js +18 -18
- 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/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/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.js +2 -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 +118 -118
- package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
- package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
- package/dist/runtime/store/runtime-operation-schemas.d.ts +18 -18
- package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-operation-schemas.js +1 -0
- package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
- package/dist/runtime/store/runtime-schemas.d.ts +58 -28
- package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
- package/dist/runtime/store/runtime-schemas.js +1 -0
- package/dist/runtime/store/runtime-schemas.js.map +1 -1
- package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +8 -8
- 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/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 +6 -6
- 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 +60 -42
- 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/GitDiffTool/GitDiffTool.d.ts +4 -4
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
- package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +7 -1
- 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 +24 -10
- package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.d.ts +11 -8
- package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
- package/dist/tools/system/ShellTool/command-policy.js +402 -98
- package/dist/tools/system/ShellTool/command-policy.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 +34 -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 +1 -1
|
@@ -0,0 +1,805 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import type { ToolResult } from "../../../tools/types.js";
|
|
3
|
+
import type { AgentLoopMessagePhase, AgentLoopToolCall } from "./agent-loop-model.js";
|
|
4
|
+
export declare const ResponseItemPhaseSchema: z.ZodEnum<["commentary", "final_answer"]>;
|
|
5
|
+
export declare const AssistantTextResponseItemSchema: z.ZodObject<{
|
|
6
|
+
type: z.ZodLiteral<"assistant_text">;
|
|
7
|
+
id: z.ZodOptional<z.ZodString>;
|
|
8
|
+
content: z.ZodString;
|
|
9
|
+
phase: z.ZodOptional<z.ZodEnum<["commentary", "final_answer"]>>;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
type: "assistant_text";
|
|
12
|
+
content: string;
|
|
13
|
+
id?: string | undefined;
|
|
14
|
+
phase?: "commentary" | "final_answer" | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
type: "assistant_text";
|
|
17
|
+
content: string;
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
phase?: "commentary" | "final_answer" | undefined;
|
|
20
|
+
}>;
|
|
21
|
+
export declare const ReasoningProgressResponseItemSchema: z.ZodObject<{
|
|
22
|
+
type: z.ZodLiteral<"reasoning_progress">;
|
|
23
|
+
id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
content: z.ZodString;
|
|
25
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
|
+
type: "reasoning_progress";
|
|
27
|
+
content: string;
|
|
28
|
+
id?: string | undefined;
|
|
29
|
+
}, {
|
|
30
|
+
type: "reasoning_progress";
|
|
31
|
+
content: string;
|
|
32
|
+
id?: string | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
export declare const FunctionToolCallResponseItemSchema: z.ZodObject<{
|
|
35
|
+
type: z.ZodLiteral<"function_tool_call">;
|
|
36
|
+
id: z.ZodString;
|
|
37
|
+
name: z.ZodString;
|
|
38
|
+
arguments: z.ZodUnknown;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
type: "function_tool_call";
|
|
41
|
+
name: string;
|
|
42
|
+
id: string;
|
|
43
|
+
arguments?: unknown;
|
|
44
|
+
}, {
|
|
45
|
+
type: "function_tool_call";
|
|
46
|
+
name: string;
|
|
47
|
+
id: string;
|
|
48
|
+
arguments?: unknown;
|
|
49
|
+
}>;
|
|
50
|
+
export declare const ToolExecutionStateSchema: z.ZodObject<{
|
|
51
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
52
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
53
|
+
message: z.ZodOptional<z.ZodString>;
|
|
54
|
+
}, "strip", z.ZodTypeAny, {
|
|
55
|
+
status: "executed" | "not_executed";
|
|
56
|
+
message?: string | undefined;
|
|
57
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
58
|
+
}, {
|
|
59
|
+
status: "executed" | "not_executed";
|
|
60
|
+
message?: string | undefined;
|
|
61
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
export declare const ToolErrorCodeSchema: z.ZodEnum<["invalid_arguments", "not_allowed", "execution_failed"]>;
|
|
64
|
+
export declare const ToolResultResponseItemSchema: z.ZodObject<{
|
|
65
|
+
type: z.ZodLiteral<"tool_result">;
|
|
66
|
+
id: z.ZodOptional<z.ZodString>;
|
|
67
|
+
callId: z.ZodString;
|
|
68
|
+
toolName: z.ZodString;
|
|
69
|
+
arguments: z.ZodUnknown;
|
|
70
|
+
result: z.ZodObject<{
|
|
71
|
+
success: z.ZodBoolean;
|
|
72
|
+
data: z.ZodUnknown;
|
|
73
|
+
summary: z.ZodString;
|
|
74
|
+
error: z.ZodOptional<z.ZodString>;
|
|
75
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
76
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
77
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
78
|
+
message: z.ZodOptional<z.ZodString>;
|
|
79
|
+
}, "strip", z.ZodTypeAny, {
|
|
80
|
+
status: "executed" | "not_executed";
|
|
81
|
+
message?: string | undefined;
|
|
82
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
83
|
+
}, {
|
|
84
|
+
status: "executed" | "not_executed";
|
|
85
|
+
message?: string | undefined;
|
|
86
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
87
|
+
}>>;
|
|
88
|
+
durationMs: z.ZodNumber;
|
|
89
|
+
contextModifier: z.ZodOptional<z.ZodString>;
|
|
90
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
91
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
92
|
+
originalChars: z.ZodNumber;
|
|
93
|
+
overflowPath: z.ZodOptional<z.ZodString>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
originalChars: number;
|
|
96
|
+
overflowPath?: string | undefined;
|
|
97
|
+
}, {
|
|
98
|
+
originalChars: number;
|
|
99
|
+
overflowPath?: string | undefined;
|
|
100
|
+
}>>;
|
|
101
|
+
}, "strip", z.ZodTypeAny, {
|
|
102
|
+
summary: string;
|
|
103
|
+
success: boolean;
|
|
104
|
+
durationMs: number;
|
|
105
|
+
error?: string | undefined;
|
|
106
|
+
data?: unknown;
|
|
107
|
+
execution?: {
|
|
108
|
+
status: "executed" | "not_executed";
|
|
109
|
+
message?: string | undefined;
|
|
110
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
111
|
+
} | undefined;
|
|
112
|
+
contextModifier?: string | undefined;
|
|
113
|
+
artifacts?: string[] | undefined;
|
|
114
|
+
truncated?: {
|
|
115
|
+
originalChars: number;
|
|
116
|
+
overflowPath?: string | undefined;
|
|
117
|
+
} | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
summary: string;
|
|
120
|
+
success: boolean;
|
|
121
|
+
durationMs: number;
|
|
122
|
+
error?: string | undefined;
|
|
123
|
+
data?: unknown;
|
|
124
|
+
execution?: {
|
|
125
|
+
status: "executed" | "not_executed";
|
|
126
|
+
message?: string | undefined;
|
|
127
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
contextModifier?: string | undefined;
|
|
130
|
+
artifacts?: string[] | undefined;
|
|
131
|
+
truncated?: {
|
|
132
|
+
originalChars: number;
|
|
133
|
+
overflowPath?: string | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
}>;
|
|
136
|
+
durationMs: z.ZodNumber;
|
|
137
|
+
}, "strip", z.ZodTypeAny, {
|
|
138
|
+
type: "tool_result";
|
|
139
|
+
durationMs: number;
|
|
140
|
+
callId: string;
|
|
141
|
+
toolName: string;
|
|
142
|
+
result: {
|
|
143
|
+
summary: string;
|
|
144
|
+
success: boolean;
|
|
145
|
+
durationMs: number;
|
|
146
|
+
error?: string | undefined;
|
|
147
|
+
data?: unknown;
|
|
148
|
+
execution?: {
|
|
149
|
+
status: "executed" | "not_executed";
|
|
150
|
+
message?: string | undefined;
|
|
151
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
152
|
+
} | undefined;
|
|
153
|
+
contextModifier?: string | undefined;
|
|
154
|
+
artifacts?: string[] | undefined;
|
|
155
|
+
truncated?: {
|
|
156
|
+
originalChars: number;
|
|
157
|
+
overflowPath?: string | undefined;
|
|
158
|
+
} | undefined;
|
|
159
|
+
};
|
|
160
|
+
id?: string | undefined;
|
|
161
|
+
arguments?: unknown;
|
|
162
|
+
}, {
|
|
163
|
+
type: "tool_result";
|
|
164
|
+
durationMs: number;
|
|
165
|
+
callId: string;
|
|
166
|
+
toolName: string;
|
|
167
|
+
result: {
|
|
168
|
+
summary: string;
|
|
169
|
+
success: boolean;
|
|
170
|
+
durationMs: number;
|
|
171
|
+
error?: string | undefined;
|
|
172
|
+
data?: unknown;
|
|
173
|
+
execution?: {
|
|
174
|
+
status: "executed" | "not_executed";
|
|
175
|
+
message?: string | undefined;
|
|
176
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
177
|
+
} | undefined;
|
|
178
|
+
contextModifier?: string | undefined;
|
|
179
|
+
artifacts?: string[] | undefined;
|
|
180
|
+
truncated?: {
|
|
181
|
+
originalChars: number;
|
|
182
|
+
overflowPath?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
};
|
|
185
|
+
id?: string | undefined;
|
|
186
|
+
arguments?: unknown;
|
|
187
|
+
}>;
|
|
188
|
+
export declare const ToolErrorResponseItemSchema: z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"tool_error">;
|
|
190
|
+
id: z.ZodOptional<z.ZodString>;
|
|
191
|
+
callId: z.ZodString;
|
|
192
|
+
toolName: z.ZodString;
|
|
193
|
+
arguments: z.ZodUnknown;
|
|
194
|
+
error: z.ZodObject<{
|
|
195
|
+
code: z.ZodEnum<["invalid_arguments", "not_allowed", "execution_failed"]>;
|
|
196
|
+
message: z.ZodString;
|
|
197
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
198
|
+
}, "strip", z.ZodTypeAny, {
|
|
199
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
200
|
+
message: string;
|
|
201
|
+
details?: unknown;
|
|
202
|
+
}, {
|
|
203
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
204
|
+
message: string;
|
|
205
|
+
details?: unknown;
|
|
206
|
+
}>;
|
|
207
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
208
|
+
success: z.ZodBoolean;
|
|
209
|
+
data: z.ZodUnknown;
|
|
210
|
+
summary: z.ZodString;
|
|
211
|
+
error: z.ZodOptional<z.ZodString>;
|
|
212
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
214
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
215
|
+
message: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, "strip", z.ZodTypeAny, {
|
|
217
|
+
status: "executed" | "not_executed";
|
|
218
|
+
message?: string | undefined;
|
|
219
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
220
|
+
}, {
|
|
221
|
+
status: "executed" | "not_executed";
|
|
222
|
+
message?: string | undefined;
|
|
223
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
224
|
+
}>>;
|
|
225
|
+
durationMs: z.ZodNumber;
|
|
226
|
+
contextModifier: z.ZodOptional<z.ZodString>;
|
|
227
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
228
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
originalChars: z.ZodNumber;
|
|
230
|
+
overflowPath: z.ZodOptional<z.ZodString>;
|
|
231
|
+
}, "strip", z.ZodTypeAny, {
|
|
232
|
+
originalChars: number;
|
|
233
|
+
overflowPath?: string | undefined;
|
|
234
|
+
}, {
|
|
235
|
+
originalChars: number;
|
|
236
|
+
overflowPath?: string | undefined;
|
|
237
|
+
}>>;
|
|
238
|
+
}, "strip", z.ZodTypeAny, {
|
|
239
|
+
summary: string;
|
|
240
|
+
success: boolean;
|
|
241
|
+
durationMs: number;
|
|
242
|
+
error?: string | undefined;
|
|
243
|
+
data?: unknown;
|
|
244
|
+
execution?: {
|
|
245
|
+
status: "executed" | "not_executed";
|
|
246
|
+
message?: string | undefined;
|
|
247
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
contextModifier?: string | undefined;
|
|
250
|
+
artifacts?: string[] | undefined;
|
|
251
|
+
truncated?: {
|
|
252
|
+
originalChars: number;
|
|
253
|
+
overflowPath?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
}, {
|
|
256
|
+
summary: string;
|
|
257
|
+
success: boolean;
|
|
258
|
+
durationMs: number;
|
|
259
|
+
error?: string | undefined;
|
|
260
|
+
data?: unknown;
|
|
261
|
+
execution?: {
|
|
262
|
+
status: "executed" | "not_executed";
|
|
263
|
+
message?: string | undefined;
|
|
264
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
contextModifier?: string | undefined;
|
|
267
|
+
artifacts?: string[] | undefined;
|
|
268
|
+
truncated?: {
|
|
269
|
+
originalChars: number;
|
|
270
|
+
overflowPath?: string | undefined;
|
|
271
|
+
} | undefined;
|
|
272
|
+
}>>;
|
|
273
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
274
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
275
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
276
|
+
message: z.ZodOptional<z.ZodString>;
|
|
277
|
+
}, "strip", z.ZodTypeAny, {
|
|
278
|
+
status: "executed" | "not_executed";
|
|
279
|
+
message?: string | undefined;
|
|
280
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
281
|
+
}, {
|
|
282
|
+
status: "executed" | "not_executed";
|
|
283
|
+
message?: string | undefined;
|
|
284
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
285
|
+
}>>;
|
|
286
|
+
durationMs: z.ZodNumber;
|
|
287
|
+
}, "strip", z.ZodTypeAny, {
|
|
288
|
+
type: "tool_error";
|
|
289
|
+
error: {
|
|
290
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
291
|
+
message: string;
|
|
292
|
+
details?: unknown;
|
|
293
|
+
};
|
|
294
|
+
durationMs: number;
|
|
295
|
+
callId: string;
|
|
296
|
+
toolName: string;
|
|
297
|
+
id?: string | undefined;
|
|
298
|
+
execution?: {
|
|
299
|
+
status: "executed" | "not_executed";
|
|
300
|
+
message?: string | undefined;
|
|
301
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
302
|
+
} | undefined;
|
|
303
|
+
arguments?: unknown;
|
|
304
|
+
result?: {
|
|
305
|
+
summary: string;
|
|
306
|
+
success: boolean;
|
|
307
|
+
durationMs: number;
|
|
308
|
+
error?: string | undefined;
|
|
309
|
+
data?: unknown;
|
|
310
|
+
execution?: {
|
|
311
|
+
status: "executed" | "not_executed";
|
|
312
|
+
message?: string | undefined;
|
|
313
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
contextModifier?: string | undefined;
|
|
316
|
+
artifacts?: string[] | undefined;
|
|
317
|
+
truncated?: {
|
|
318
|
+
originalChars: number;
|
|
319
|
+
overflowPath?: string | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
} | undefined;
|
|
322
|
+
}, {
|
|
323
|
+
type: "tool_error";
|
|
324
|
+
error: {
|
|
325
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
326
|
+
message: string;
|
|
327
|
+
details?: unknown;
|
|
328
|
+
};
|
|
329
|
+
durationMs: number;
|
|
330
|
+
callId: string;
|
|
331
|
+
toolName: string;
|
|
332
|
+
id?: string | undefined;
|
|
333
|
+
execution?: {
|
|
334
|
+
status: "executed" | "not_executed";
|
|
335
|
+
message?: string | undefined;
|
|
336
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
337
|
+
} | undefined;
|
|
338
|
+
arguments?: unknown;
|
|
339
|
+
result?: {
|
|
340
|
+
summary: string;
|
|
341
|
+
success: boolean;
|
|
342
|
+
durationMs: number;
|
|
343
|
+
error?: string | undefined;
|
|
344
|
+
data?: unknown;
|
|
345
|
+
execution?: {
|
|
346
|
+
status: "executed" | "not_executed";
|
|
347
|
+
message?: string | undefined;
|
|
348
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
349
|
+
} | undefined;
|
|
350
|
+
contextModifier?: string | undefined;
|
|
351
|
+
artifacts?: string[] | undefined;
|
|
352
|
+
truncated?: {
|
|
353
|
+
originalChars: number;
|
|
354
|
+
overflowPath?: string | undefined;
|
|
355
|
+
} | undefined;
|
|
356
|
+
} | undefined;
|
|
357
|
+
}>;
|
|
358
|
+
export declare const UnknownToolResponseItemSchema: z.ZodObject<{
|
|
359
|
+
type: z.ZodLiteral<"unknown_tool">;
|
|
360
|
+
id: z.ZodOptional<z.ZodString>;
|
|
361
|
+
callId: z.ZodString;
|
|
362
|
+
toolName: z.ZodString;
|
|
363
|
+
arguments: z.ZodUnknown;
|
|
364
|
+
message: z.ZodString;
|
|
365
|
+
execution: z.ZodObject<{
|
|
366
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
367
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
368
|
+
message: z.ZodOptional<z.ZodString>;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
status: "executed" | "not_executed";
|
|
371
|
+
message?: string | undefined;
|
|
372
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
373
|
+
}, {
|
|
374
|
+
status: "executed" | "not_executed";
|
|
375
|
+
message?: string | undefined;
|
|
376
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
377
|
+
}>;
|
|
378
|
+
durationMs: z.ZodNumber;
|
|
379
|
+
}, "strip", z.ZodTypeAny, {
|
|
380
|
+
message: string;
|
|
381
|
+
type: "unknown_tool";
|
|
382
|
+
execution: {
|
|
383
|
+
status: "executed" | "not_executed";
|
|
384
|
+
message?: string | undefined;
|
|
385
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
386
|
+
};
|
|
387
|
+
durationMs: number;
|
|
388
|
+
callId: string;
|
|
389
|
+
toolName: string;
|
|
390
|
+
id?: string | undefined;
|
|
391
|
+
arguments?: unknown;
|
|
392
|
+
}, {
|
|
393
|
+
message: string;
|
|
394
|
+
type: "unknown_tool";
|
|
395
|
+
execution: {
|
|
396
|
+
status: "executed" | "not_executed";
|
|
397
|
+
message?: string | undefined;
|
|
398
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
399
|
+
};
|
|
400
|
+
durationMs: number;
|
|
401
|
+
callId: string;
|
|
402
|
+
toolName: string;
|
|
403
|
+
id?: string | undefined;
|
|
404
|
+
arguments?: unknown;
|
|
405
|
+
}>;
|
|
406
|
+
export declare const ResponseItemSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
|
|
407
|
+
type: z.ZodLiteral<"assistant_text">;
|
|
408
|
+
id: z.ZodOptional<z.ZodString>;
|
|
409
|
+
content: z.ZodString;
|
|
410
|
+
phase: z.ZodOptional<z.ZodEnum<["commentary", "final_answer"]>>;
|
|
411
|
+
}, "strip", z.ZodTypeAny, {
|
|
412
|
+
type: "assistant_text";
|
|
413
|
+
content: string;
|
|
414
|
+
id?: string | undefined;
|
|
415
|
+
phase?: "commentary" | "final_answer" | undefined;
|
|
416
|
+
}, {
|
|
417
|
+
type: "assistant_text";
|
|
418
|
+
content: string;
|
|
419
|
+
id?: string | undefined;
|
|
420
|
+
phase?: "commentary" | "final_answer" | undefined;
|
|
421
|
+
}>, z.ZodObject<{
|
|
422
|
+
type: z.ZodLiteral<"reasoning_progress">;
|
|
423
|
+
id: z.ZodOptional<z.ZodString>;
|
|
424
|
+
content: z.ZodString;
|
|
425
|
+
}, "strip", z.ZodTypeAny, {
|
|
426
|
+
type: "reasoning_progress";
|
|
427
|
+
content: string;
|
|
428
|
+
id?: string | undefined;
|
|
429
|
+
}, {
|
|
430
|
+
type: "reasoning_progress";
|
|
431
|
+
content: string;
|
|
432
|
+
id?: string | undefined;
|
|
433
|
+
}>, z.ZodObject<{
|
|
434
|
+
type: z.ZodLiteral<"function_tool_call">;
|
|
435
|
+
id: z.ZodString;
|
|
436
|
+
name: z.ZodString;
|
|
437
|
+
arguments: z.ZodUnknown;
|
|
438
|
+
}, "strip", z.ZodTypeAny, {
|
|
439
|
+
type: "function_tool_call";
|
|
440
|
+
name: string;
|
|
441
|
+
id: string;
|
|
442
|
+
arguments?: unknown;
|
|
443
|
+
}, {
|
|
444
|
+
type: "function_tool_call";
|
|
445
|
+
name: string;
|
|
446
|
+
id: string;
|
|
447
|
+
arguments?: unknown;
|
|
448
|
+
}>, z.ZodObject<{
|
|
449
|
+
type: z.ZodLiteral<"tool_result">;
|
|
450
|
+
id: z.ZodOptional<z.ZodString>;
|
|
451
|
+
callId: z.ZodString;
|
|
452
|
+
toolName: z.ZodString;
|
|
453
|
+
arguments: z.ZodUnknown;
|
|
454
|
+
result: z.ZodObject<{
|
|
455
|
+
success: z.ZodBoolean;
|
|
456
|
+
data: z.ZodUnknown;
|
|
457
|
+
summary: z.ZodString;
|
|
458
|
+
error: z.ZodOptional<z.ZodString>;
|
|
459
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
460
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
461
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
462
|
+
message: z.ZodOptional<z.ZodString>;
|
|
463
|
+
}, "strip", z.ZodTypeAny, {
|
|
464
|
+
status: "executed" | "not_executed";
|
|
465
|
+
message?: string | undefined;
|
|
466
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
467
|
+
}, {
|
|
468
|
+
status: "executed" | "not_executed";
|
|
469
|
+
message?: string | undefined;
|
|
470
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
471
|
+
}>>;
|
|
472
|
+
durationMs: z.ZodNumber;
|
|
473
|
+
contextModifier: z.ZodOptional<z.ZodString>;
|
|
474
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
475
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
476
|
+
originalChars: z.ZodNumber;
|
|
477
|
+
overflowPath: z.ZodOptional<z.ZodString>;
|
|
478
|
+
}, "strip", z.ZodTypeAny, {
|
|
479
|
+
originalChars: number;
|
|
480
|
+
overflowPath?: string | undefined;
|
|
481
|
+
}, {
|
|
482
|
+
originalChars: number;
|
|
483
|
+
overflowPath?: string | undefined;
|
|
484
|
+
}>>;
|
|
485
|
+
}, "strip", z.ZodTypeAny, {
|
|
486
|
+
summary: string;
|
|
487
|
+
success: boolean;
|
|
488
|
+
durationMs: number;
|
|
489
|
+
error?: string | undefined;
|
|
490
|
+
data?: unknown;
|
|
491
|
+
execution?: {
|
|
492
|
+
status: "executed" | "not_executed";
|
|
493
|
+
message?: string | undefined;
|
|
494
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
495
|
+
} | undefined;
|
|
496
|
+
contextModifier?: string | undefined;
|
|
497
|
+
artifacts?: string[] | undefined;
|
|
498
|
+
truncated?: {
|
|
499
|
+
originalChars: number;
|
|
500
|
+
overflowPath?: string | undefined;
|
|
501
|
+
} | undefined;
|
|
502
|
+
}, {
|
|
503
|
+
summary: string;
|
|
504
|
+
success: boolean;
|
|
505
|
+
durationMs: number;
|
|
506
|
+
error?: string | undefined;
|
|
507
|
+
data?: unknown;
|
|
508
|
+
execution?: {
|
|
509
|
+
status: "executed" | "not_executed";
|
|
510
|
+
message?: string | undefined;
|
|
511
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
512
|
+
} | undefined;
|
|
513
|
+
contextModifier?: string | undefined;
|
|
514
|
+
artifacts?: string[] | undefined;
|
|
515
|
+
truncated?: {
|
|
516
|
+
originalChars: number;
|
|
517
|
+
overflowPath?: string | undefined;
|
|
518
|
+
} | undefined;
|
|
519
|
+
}>;
|
|
520
|
+
durationMs: z.ZodNumber;
|
|
521
|
+
}, "strip", z.ZodTypeAny, {
|
|
522
|
+
type: "tool_result";
|
|
523
|
+
durationMs: number;
|
|
524
|
+
callId: string;
|
|
525
|
+
toolName: string;
|
|
526
|
+
result: {
|
|
527
|
+
summary: string;
|
|
528
|
+
success: boolean;
|
|
529
|
+
durationMs: number;
|
|
530
|
+
error?: string | undefined;
|
|
531
|
+
data?: unknown;
|
|
532
|
+
execution?: {
|
|
533
|
+
status: "executed" | "not_executed";
|
|
534
|
+
message?: string | undefined;
|
|
535
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
536
|
+
} | undefined;
|
|
537
|
+
contextModifier?: string | undefined;
|
|
538
|
+
artifacts?: string[] | undefined;
|
|
539
|
+
truncated?: {
|
|
540
|
+
originalChars: number;
|
|
541
|
+
overflowPath?: string | undefined;
|
|
542
|
+
} | undefined;
|
|
543
|
+
};
|
|
544
|
+
id?: string | undefined;
|
|
545
|
+
arguments?: unknown;
|
|
546
|
+
}, {
|
|
547
|
+
type: "tool_result";
|
|
548
|
+
durationMs: number;
|
|
549
|
+
callId: string;
|
|
550
|
+
toolName: string;
|
|
551
|
+
result: {
|
|
552
|
+
summary: string;
|
|
553
|
+
success: boolean;
|
|
554
|
+
durationMs: number;
|
|
555
|
+
error?: string | undefined;
|
|
556
|
+
data?: unknown;
|
|
557
|
+
execution?: {
|
|
558
|
+
status: "executed" | "not_executed";
|
|
559
|
+
message?: string | undefined;
|
|
560
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
561
|
+
} | undefined;
|
|
562
|
+
contextModifier?: string | undefined;
|
|
563
|
+
artifacts?: string[] | undefined;
|
|
564
|
+
truncated?: {
|
|
565
|
+
originalChars: number;
|
|
566
|
+
overflowPath?: string | undefined;
|
|
567
|
+
} | undefined;
|
|
568
|
+
};
|
|
569
|
+
id?: string | undefined;
|
|
570
|
+
arguments?: unknown;
|
|
571
|
+
}>, z.ZodObject<{
|
|
572
|
+
type: z.ZodLiteral<"tool_error">;
|
|
573
|
+
id: z.ZodOptional<z.ZodString>;
|
|
574
|
+
callId: z.ZodString;
|
|
575
|
+
toolName: z.ZodString;
|
|
576
|
+
arguments: z.ZodUnknown;
|
|
577
|
+
error: z.ZodObject<{
|
|
578
|
+
code: z.ZodEnum<["invalid_arguments", "not_allowed", "execution_failed"]>;
|
|
579
|
+
message: z.ZodString;
|
|
580
|
+
details: z.ZodOptional<z.ZodUnknown>;
|
|
581
|
+
}, "strip", z.ZodTypeAny, {
|
|
582
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
583
|
+
message: string;
|
|
584
|
+
details?: unknown;
|
|
585
|
+
}, {
|
|
586
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
587
|
+
message: string;
|
|
588
|
+
details?: unknown;
|
|
589
|
+
}>;
|
|
590
|
+
result: z.ZodOptional<z.ZodObject<{
|
|
591
|
+
success: z.ZodBoolean;
|
|
592
|
+
data: z.ZodUnknown;
|
|
593
|
+
summary: z.ZodString;
|
|
594
|
+
error: z.ZodOptional<z.ZodString>;
|
|
595
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
596
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
597
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
598
|
+
message: z.ZodOptional<z.ZodString>;
|
|
599
|
+
}, "strip", z.ZodTypeAny, {
|
|
600
|
+
status: "executed" | "not_executed";
|
|
601
|
+
message?: string | undefined;
|
|
602
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
603
|
+
}, {
|
|
604
|
+
status: "executed" | "not_executed";
|
|
605
|
+
message?: string | undefined;
|
|
606
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
607
|
+
}>>;
|
|
608
|
+
durationMs: z.ZodNumber;
|
|
609
|
+
contextModifier: z.ZodOptional<z.ZodString>;
|
|
610
|
+
artifacts: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
611
|
+
truncated: z.ZodOptional<z.ZodObject<{
|
|
612
|
+
originalChars: z.ZodNumber;
|
|
613
|
+
overflowPath: z.ZodOptional<z.ZodString>;
|
|
614
|
+
}, "strip", z.ZodTypeAny, {
|
|
615
|
+
originalChars: number;
|
|
616
|
+
overflowPath?: string | undefined;
|
|
617
|
+
}, {
|
|
618
|
+
originalChars: number;
|
|
619
|
+
overflowPath?: string | undefined;
|
|
620
|
+
}>>;
|
|
621
|
+
}, "strip", z.ZodTypeAny, {
|
|
622
|
+
summary: string;
|
|
623
|
+
success: boolean;
|
|
624
|
+
durationMs: number;
|
|
625
|
+
error?: string | undefined;
|
|
626
|
+
data?: unknown;
|
|
627
|
+
execution?: {
|
|
628
|
+
status: "executed" | "not_executed";
|
|
629
|
+
message?: string | undefined;
|
|
630
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
631
|
+
} | undefined;
|
|
632
|
+
contextModifier?: string | undefined;
|
|
633
|
+
artifacts?: string[] | undefined;
|
|
634
|
+
truncated?: {
|
|
635
|
+
originalChars: number;
|
|
636
|
+
overflowPath?: string | undefined;
|
|
637
|
+
} | undefined;
|
|
638
|
+
}, {
|
|
639
|
+
summary: string;
|
|
640
|
+
success: boolean;
|
|
641
|
+
durationMs: number;
|
|
642
|
+
error?: string | undefined;
|
|
643
|
+
data?: unknown;
|
|
644
|
+
execution?: {
|
|
645
|
+
status: "executed" | "not_executed";
|
|
646
|
+
message?: string | undefined;
|
|
647
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
648
|
+
} | undefined;
|
|
649
|
+
contextModifier?: string | undefined;
|
|
650
|
+
artifacts?: string[] | undefined;
|
|
651
|
+
truncated?: {
|
|
652
|
+
originalChars: number;
|
|
653
|
+
overflowPath?: string | undefined;
|
|
654
|
+
} | undefined;
|
|
655
|
+
}>>;
|
|
656
|
+
execution: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
658
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
659
|
+
message: z.ZodOptional<z.ZodString>;
|
|
660
|
+
}, "strip", z.ZodTypeAny, {
|
|
661
|
+
status: "executed" | "not_executed";
|
|
662
|
+
message?: string | undefined;
|
|
663
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
664
|
+
}, {
|
|
665
|
+
status: "executed" | "not_executed";
|
|
666
|
+
message?: string | undefined;
|
|
667
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
668
|
+
}>>;
|
|
669
|
+
durationMs: z.ZodNumber;
|
|
670
|
+
}, "strip", z.ZodTypeAny, {
|
|
671
|
+
type: "tool_error";
|
|
672
|
+
error: {
|
|
673
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
674
|
+
message: string;
|
|
675
|
+
details?: unknown;
|
|
676
|
+
};
|
|
677
|
+
durationMs: number;
|
|
678
|
+
callId: string;
|
|
679
|
+
toolName: string;
|
|
680
|
+
id?: string | undefined;
|
|
681
|
+
execution?: {
|
|
682
|
+
status: "executed" | "not_executed";
|
|
683
|
+
message?: string | undefined;
|
|
684
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
685
|
+
} | undefined;
|
|
686
|
+
arguments?: unknown;
|
|
687
|
+
result?: {
|
|
688
|
+
summary: string;
|
|
689
|
+
success: boolean;
|
|
690
|
+
durationMs: number;
|
|
691
|
+
error?: string | undefined;
|
|
692
|
+
data?: unknown;
|
|
693
|
+
execution?: {
|
|
694
|
+
status: "executed" | "not_executed";
|
|
695
|
+
message?: string | undefined;
|
|
696
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
697
|
+
} | undefined;
|
|
698
|
+
contextModifier?: string | undefined;
|
|
699
|
+
artifacts?: string[] | undefined;
|
|
700
|
+
truncated?: {
|
|
701
|
+
originalChars: number;
|
|
702
|
+
overflowPath?: string | undefined;
|
|
703
|
+
} | undefined;
|
|
704
|
+
} | undefined;
|
|
705
|
+
}, {
|
|
706
|
+
type: "tool_error";
|
|
707
|
+
error: {
|
|
708
|
+
code: "invalid_arguments" | "not_allowed" | "execution_failed";
|
|
709
|
+
message: string;
|
|
710
|
+
details?: unknown;
|
|
711
|
+
};
|
|
712
|
+
durationMs: number;
|
|
713
|
+
callId: string;
|
|
714
|
+
toolName: string;
|
|
715
|
+
id?: string | undefined;
|
|
716
|
+
execution?: {
|
|
717
|
+
status: "executed" | "not_executed";
|
|
718
|
+
message?: string | undefined;
|
|
719
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
720
|
+
} | undefined;
|
|
721
|
+
arguments?: unknown;
|
|
722
|
+
result?: {
|
|
723
|
+
summary: string;
|
|
724
|
+
success: boolean;
|
|
725
|
+
durationMs: number;
|
|
726
|
+
error?: string | undefined;
|
|
727
|
+
data?: unknown;
|
|
728
|
+
execution?: {
|
|
729
|
+
status: "executed" | "not_executed";
|
|
730
|
+
message?: string | undefined;
|
|
731
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
732
|
+
} | undefined;
|
|
733
|
+
contextModifier?: string | undefined;
|
|
734
|
+
artifacts?: string[] | undefined;
|
|
735
|
+
truncated?: {
|
|
736
|
+
originalChars: number;
|
|
737
|
+
overflowPath?: string | undefined;
|
|
738
|
+
} | undefined;
|
|
739
|
+
} | undefined;
|
|
740
|
+
}>, z.ZodObject<{
|
|
741
|
+
type: z.ZodLiteral<"unknown_tool">;
|
|
742
|
+
id: z.ZodOptional<z.ZodString>;
|
|
743
|
+
callId: z.ZodString;
|
|
744
|
+
toolName: z.ZodString;
|
|
745
|
+
arguments: z.ZodUnknown;
|
|
746
|
+
message: z.ZodString;
|
|
747
|
+
execution: z.ZodObject<{
|
|
748
|
+
status: z.ZodEnum<["executed", "not_executed"]>;
|
|
749
|
+
reason: z.ZodOptional<z.ZodEnum<["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]>>;
|
|
750
|
+
message: z.ZodOptional<z.ZodString>;
|
|
751
|
+
}, "strip", z.ZodTypeAny, {
|
|
752
|
+
status: "executed" | "not_executed";
|
|
753
|
+
message?: string | undefined;
|
|
754
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
755
|
+
}, {
|
|
756
|
+
status: "executed" | "not_executed";
|
|
757
|
+
message?: string | undefined;
|
|
758
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
759
|
+
}>;
|
|
760
|
+
durationMs: z.ZodNumber;
|
|
761
|
+
}, "strip", z.ZodTypeAny, {
|
|
762
|
+
message: string;
|
|
763
|
+
type: "unknown_tool";
|
|
764
|
+
execution: {
|
|
765
|
+
status: "executed" | "not_executed";
|
|
766
|
+
message?: string | undefined;
|
|
767
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
768
|
+
};
|
|
769
|
+
durationMs: number;
|
|
770
|
+
callId: string;
|
|
771
|
+
toolName: string;
|
|
772
|
+
id?: string | undefined;
|
|
773
|
+
arguments?: unknown;
|
|
774
|
+
}, {
|
|
775
|
+
message: string;
|
|
776
|
+
type: "unknown_tool";
|
|
777
|
+
execution: {
|
|
778
|
+
status: "executed" | "not_executed";
|
|
779
|
+
message?: string | undefined;
|
|
780
|
+
reason?: "timed_out" | "interrupted" | "approval_denied" | "permission_denied" | "policy_blocked" | "dry_run" | "tool_error" | "sandbox_required" | "escalation_required" | "stale_state" | undefined;
|
|
781
|
+
};
|
|
782
|
+
durationMs: number;
|
|
783
|
+
callId: string;
|
|
784
|
+
toolName: string;
|
|
785
|
+
id?: string | undefined;
|
|
786
|
+
arguments?: unknown;
|
|
787
|
+
}>]>;
|
|
788
|
+
export type AssistantTextResponseItem = z.infer<typeof AssistantTextResponseItemSchema>;
|
|
789
|
+
export type ReasoningProgressResponseItem = z.infer<typeof ReasoningProgressResponseItemSchema>;
|
|
790
|
+
export type FunctionToolCallResponseItem = z.infer<typeof FunctionToolCallResponseItemSchema>;
|
|
791
|
+
export type ToolResultResponseItem = z.infer<typeof ToolResultResponseItemSchema>;
|
|
792
|
+
export type ToolErrorResponseItem = z.infer<typeof ToolErrorResponseItemSchema>;
|
|
793
|
+
export type UnknownToolResponseItem = z.infer<typeof UnknownToolResponseItemSchema>;
|
|
794
|
+
export type ResponseItem = z.infer<typeof ResponseItemSchema>;
|
|
795
|
+
export type ToolObservationResponseItem = ToolResultResponseItem | ToolErrorResponseItem | UnknownToolResponseItem;
|
|
796
|
+
export declare function assistantTextResponseItem(content: string, phase?: AgentLoopMessagePhase): AssistantTextResponseItem;
|
|
797
|
+
export declare function reasoningProgressResponseItem(content: string): ReasoningProgressResponseItem;
|
|
798
|
+
export declare function functionToolCallResponseItem(call: AgentLoopToolCall): FunctionToolCallResponseItem;
|
|
799
|
+
export declare function toolResultResponseItem(input: {
|
|
800
|
+
call: FunctionToolCallResponseItem;
|
|
801
|
+
arguments: unknown;
|
|
802
|
+
result: ToolResult;
|
|
803
|
+
durationMs: number;
|
|
804
|
+
}): ToolResultResponseItem;
|
|
805
|
+
//# sourceMappingURL=response-item.d.ts.map
|