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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-item.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/response-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,eAAO,MAAM,uBAAuB,2CAAyC,CAAC;AAE9E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;;;;;;EAK7C,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAInC,CAAC;AAEH,eAAO,MAAM,mBAAmB,qEAI9B,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,2BAA2B,GACnC,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,qBAAqB,GAC5B,yBAAyB,CAM3B;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,GAAG,6BAA6B,CAK5F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,GAAG,4BAA4B,CAOlG;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,4BAA4B,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,sBAAsB,CASzB"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { ToolResultSchema } from "../../../tools/types.js";
|
|
3
|
+
export const ResponseItemPhaseSchema = z.enum(["commentary", "final_answer"]);
|
|
4
|
+
export const AssistantTextResponseItemSchema = z.object({
|
|
5
|
+
type: z.literal("assistant_text"),
|
|
6
|
+
id: z.string().optional(),
|
|
7
|
+
content: z.string(),
|
|
8
|
+
phase: ResponseItemPhaseSchema.optional(),
|
|
9
|
+
});
|
|
10
|
+
export const ReasoningProgressResponseItemSchema = z.object({
|
|
11
|
+
type: z.literal("reasoning_progress"),
|
|
12
|
+
id: z.string().optional(),
|
|
13
|
+
content: z.string(),
|
|
14
|
+
});
|
|
15
|
+
export const FunctionToolCallResponseItemSchema = z.object({
|
|
16
|
+
type: z.literal("function_tool_call"),
|
|
17
|
+
id: z.string().min(1),
|
|
18
|
+
name: z.string().min(1),
|
|
19
|
+
arguments: z.unknown(),
|
|
20
|
+
});
|
|
21
|
+
export const ToolExecutionStateSchema = z.object({
|
|
22
|
+
status: z.enum(["executed", "not_executed"]),
|
|
23
|
+
reason: z.enum(["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]).optional(),
|
|
24
|
+
message: z.string().optional(),
|
|
25
|
+
});
|
|
26
|
+
export const ToolErrorCodeSchema = z.enum([
|
|
27
|
+
"invalid_arguments",
|
|
28
|
+
"not_allowed",
|
|
29
|
+
"execution_failed",
|
|
30
|
+
]);
|
|
31
|
+
export const ToolResultResponseItemSchema = z.object({
|
|
32
|
+
type: z.literal("tool_result"),
|
|
33
|
+
id: z.string().optional(),
|
|
34
|
+
callId: z.string().min(1),
|
|
35
|
+
toolName: z.string().min(1),
|
|
36
|
+
arguments: z.unknown(),
|
|
37
|
+
result: ToolResultSchema,
|
|
38
|
+
durationMs: z.number(),
|
|
39
|
+
});
|
|
40
|
+
export const ToolErrorResponseItemSchema = z.object({
|
|
41
|
+
type: z.literal("tool_error"),
|
|
42
|
+
id: z.string().optional(),
|
|
43
|
+
callId: z.string().min(1),
|
|
44
|
+
toolName: z.string().min(1),
|
|
45
|
+
arguments: z.unknown(),
|
|
46
|
+
error: z.object({
|
|
47
|
+
code: ToolErrorCodeSchema,
|
|
48
|
+
message: z.string(),
|
|
49
|
+
details: z.unknown().optional(),
|
|
50
|
+
}),
|
|
51
|
+
result: ToolResultSchema.optional(),
|
|
52
|
+
execution: ToolExecutionStateSchema.optional(),
|
|
53
|
+
durationMs: z.number(),
|
|
54
|
+
});
|
|
55
|
+
export const UnknownToolResponseItemSchema = z.object({
|
|
56
|
+
type: z.literal("unknown_tool"),
|
|
57
|
+
id: z.string().optional(),
|
|
58
|
+
callId: z.string().min(1),
|
|
59
|
+
toolName: z.string().min(1),
|
|
60
|
+
arguments: z.unknown(),
|
|
61
|
+
message: z.string(),
|
|
62
|
+
execution: ToolExecutionStateSchema,
|
|
63
|
+
durationMs: z.number(),
|
|
64
|
+
});
|
|
65
|
+
export const ResponseItemSchema = z.discriminatedUnion("type", [
|
|
66
|
+
AssistantTextResponseItemSchema,
|
|
67
|
+
ReasoningProgressResponseItemSchema,
|
|
68
|
+
FunctionToolCallResponseItemSchema,
|
|
69
|
+
ToolResultResponseItemSchema,
|
|
70
|
+
ToolErrorResponseItemSchema,
|
|
71
|
+
UnknownToolResponseItemSchema,
|
|
72
|
+
]);
|
|
73
|
+
export function assistantTextResponseItem(content, phase) {
|
|
74
|
+
return {
|
|
75
|
+
type: "assistant_text",
|
|
76
|
+
content,
|
|
77
|
+
...(phase ? { phase } : {}),
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export function reasoningProgressResponseItem(content) {
|
|
81
|
+
return {
|
|
82
|
+
type: "reasoning_progress",
|
|
83
|
+
content,
|
|
84
|
+
};
|
|
85
|
+
}
|
|
86
|
+
export function functionToolCallResponseItem(call) {
|
|
87
|
+
return {
|
|
88
|
+
type: "function_tool_call",
|
|
89
|
+
id: call.id,
|
|
90
|
+
name: call.name,
|
|
91
|
+
arguments: call.input,
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
export function toolResultResponseItem(input) {
|
|
95
|
+
return {
|
|
96
|
+
type: "tool_result",
|
|
97
|
+
callId: input.call.id,
|
|
98
|
+
toolName: input.call.name,
|
|
99
|
+
arguments: input.arguments,
|
|
100
|
+
result: input.result,
|
|
101
|
+
durationMs: input.durationMs,
|
|
102
|
+
};
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=response-item.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"response-item.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/response-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,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ACL,IAAI,EAAE,oBAAoB;QAC1B,OAAO;KACR,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAC,IAAuB;IAClE,OAAO;QACL,IAAI,EAAE,oBAAoB;QAC1B,EAAE,EAAE,IAAI,CAAC,EAAE;QACX,IAAI,EAAE,IAAI,CAAC,IAAI;QACf,SAAS,EAAE,IAAI,CAAC,KAAK;KACtB,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,KAKtC;IACC,OAAO;QACL,IAAI,EAAE,aAAa;QACnB,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,EAAE;QACrB,QAAQ,EAAE,KAAK,CAAC,IAAI,CAAC,IAAI;QACzB,SAAS,EAAE,KAAK,CAAC,SAAS;QAC1B,MAAM,EAAE,KAAK,CAAC,MAAM;QACpB,UAAU,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;AACJ,CAAC"}
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
+
import type { Goal } from "../../../base/types/goal.js";
|
|
1
2
|
import type { Task } from "../../../base/types/task.js";
|
|
2
3
|
import type { ToolCallContext } from "../../../tools/types.js";
|
|
3
4
|
import type { AgentLoopBudget } from "./agent-loop-budget.js";
|
|
4
|
-
import type { AgentLoopModelInfo, AgentLoopModelRef } from "./agent-loop-model.js";
|
|
5
|
+
import type { AgentLoopModelInfo, AgentLoopModelRef, AgentLoopReasoningEffort } from "./agent-loop-model.js";
|
|
5
6
|
import type { AgentLoopSession } from "./agent-loop-session.js";
|
|
6
7
|
import type { AgentLoopSessionState } from "./agent-loop-session-state.js";
|
|
7
8
|
import type { AgentLoopToolPolicy, AgentLoopTurnContext } from "./agent-loop-turn-context.js";
|
|
8
9
|
import { type TaskAgentLoopOutput } from "./task-agent-loop-result.js";
|
|
9
|
-
import type { SubagentRole } from "./execution-policy.js";
|
|
10
|
+
import type { ExecutionPolicy, SubagentRole } from "./execution-policy.js";
|
|
10
11
|
export interface TaskAgentLoopContextInput {
|
|
11
12
|
task: Task;
|
|
13
|
+
artifactGoal?: Pick<Goal, "constraints"> | null;
|
|
12
14
|
model: AgentLoopModelRef;
|
|
13
15
|
modelInfo: AgentLoopModelInfo;
|
|
14
16
|
session: AgentLoopSession;
|
|
@@ -23,6 +25,9 @@ export interface TaskAgentLoopContextInput {
|
|
|
23
25
|
resumeState?: AgentLoopSessionState;
|
|
24
26
|
abortSignal?: AbortSignal;
|
|
25
27
|
role?: SubagentRole;
|
|
28
|
+
profileName?: string;
|
|
29
|
+
reasoningEffort?: AgentLoopReasoningEffort;
|
|
30
|
+
executionPolicy?: ExecutionPolicy;
|
|
26
31
|
}
|
|
27
32
|
export declare function buildTaskAgentLoopTurnContext(input: TaskAgentLoopContextInput): AgentLoopTurnContext<TaskAgentLoopOutput>;
|
|
28
33
|
//# sourceMappingURL=task-agent-loop-context.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-context.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC9D,OAAO,KAAK,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"task-agent-loop-context.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;AACxD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EA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ACnC;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,yBAAyB,GAC/B,oBAAoB,CAAC,mBAAmB,CAAC,CAqG3C"}
|
|
@@ -4,12 +4,32 @@ import { withDefaultBudget } from "./agent-loop-turn-context.js";
|
|
|
4
4
|
import { TaskAgentLoopOutputSchema } from "./task-agent-loop-result.js";
|
|
5
5
|
import { buildAgentLoopBaseInstructions } from "./agent-loop-prompts.js";
|
|
6
6
|
import { isTaskRelevantVerificationCommand } from "./task-agent-loop-verification.js";
|
|
7
|
+
import { verifyTaskArtifactContract } from "../task/task-artifact-contract.js";
|
|
8
|
+
function formatArtifactContractSection(task) {
|
|
9
|
+
if (!task.artifact_contract)
|
|
10
|
+
return "";
|
|
11
|
+
return [
|
|
12
|
+
"Artifact contract:",
|
|
13
|
+
JSON.stringify(task.artifact_contract, null, 2),
|
|
14
|
+
"If this task creates a --check-contract mode or equivalent validator, it must validate the exact required_artifacts, required_fields, and field_types above. The metrics writer must emit those exact keys before status=done.",
|
|
15
|
+
"Do not make --check-contract reject otherwise valid artifacts only because they predate the --check-contract process. PulSeed enforces fresh_after_task_start relative to the task start time.",
|
|
16
|
+
].join("\n");
|
|
17
|
+
}
|
|
7
18
|
export function buildTaskAgentLoopTurnContext(input) {
|
|
8
19
|
const cwd = input.cwd ?? processCwd();
|
|
20
|
+
const executionPolicy = input.toolCallContext?.executionPolicy ?? input.executionPolicy;
|
|
21
|
+
const verificationPlan = {
|
|
22
|
+
requiredCommands: input.task.success_criteria
|
|
23
|
+
.filter((criterion) => criterion.is_blocking)
|
|
24
|
+
.map((criterion) => criterion.verification_method.trim())
|
|
25
|
+
.filter(Boolean),
|
|
26
|
+
};
|
|
9
27
|
const baseSystemPrompt = buildAgentLoopBaseInstructions({
|
|
10
28
|
mode: "task",
|
|
11
29
|
extraRules: [
|
|
12
30
|
"When you return status=done, include concrete completionEvidence.",
|
|
31
|
+
"Final JSON status must be one of done, blocked, partial, or failed. Do not use completed.",
|
|
32
|
+
"Final JSON completionEvidence, verificationHints, blockers, and filesChanged must be arrays of strings, not objects.",
|
|
13
33
|
"If files changed or you claim files changed, run at least one focused verification command through tools before the final answer.",
|
|
14
34
|
"Do not return status=done while blockers remain.",
|
|
15
35
|
],
|
|
@@ -19,6 +39,7 @@ export function buildTaskAgentLoopTurnContext(input) {
|
|
|
19
39
|
`Task: ${input.task.work_description}`,
|
|
20
40
|
`Approach: ${input.task.approach}`,
|
|
21
41
|
`Success criteria:\n${input.task.success_criteria.map((c) => `- ${c.description} (verify: ${c.verification_method})`).join("\n")}`,
|
|
42
|
+
formatArtifactContractSection(input.task),
|
|
22
43
|
input.workspaceContext ? `Workspace context:\n${input.workspaceContext}` : "",
|
|
23
44
|
input.knowledgeContext ? `Knowledge context:\n${input.knowledgeContext}` : "",
|
|
24
45
|
"Return final output as JSON matching the required schema.",
|
|
@@ -28,9 +49,12 @@ export function buildTaskAgentLoopTurnContext(input) {
|
|
|
28
49
|
turnId: randomUUID(),
|
|
29
50
|
goalId: input.task.goal_id,
|
|
30
51
|
taskId: input.task.id,
|
|
52
|
+
...(input.profileName ? { profileName: input.profileName } : {}),
|
|
31
53
|
cwd,
|
|
32
54
|
model: input.model,
|
|
33
55
|
modelInfo: input.modelInfo,
|
|
56
|
+
...(input.reasoningEffort ? { reasoningEffort: input.reasoningEffort } : {}),
|
|
57
|
+
...(executionPolicy ? { executionPolicy } : {}),
|
|
34
58
|
messages: [
|
|
35
59
|
{
|
|
36
60
|
role: "system",
|
|
@@ -41,7 +65,8 @@ export function buildTaskAgentLoopTurnContext(input) {
|
|
|
41
65
|
outputSchema: TaskAgentLoopOutputSchema,
|
|
42
66
|
budget: withDefaultBudget(input.budget),
|
|
43
67
|
toolPolicy: input.toolPolicy ?? {},
|
|
44
|
-
|
|
68
|
+
verificationPlan,
|
|
69
|
+
completionValidator: async ({ output, changedFiles, commandResults }) => {
|
|
45
70
|
if (output.status !== "done")
|
|
46
71
|
return { ok: true, reasons: [] };
|
|
47
72
|
const reasons = [];
|
|
@@ -61,6 +86,12 @@ export function buildTaskAgentLoopTurnContext(input) {
|
|
|
61
86
|
if (claimedChangedFiles.length > 0 && runtimeVerifiedCommands.length < 1) {
|
|
62
87
|
reasons.push(`You claimed changed files (${claimedChangedFiles.slice(0, 5).join(", ")}) but no successful runtime verification command was observed.`);
|
|
63
88
|
}
|
|
89
|
+
const artifactVerification = await verifyTaskArtifactContract(input.task, cwd, {
|
|
90
|
+
goal: input.artifactGoal,
|
|
91
|
+
});
|
|
92
|
+
if (artifactVerification.applicable && !artifactVerification.passed) {
|
|
93
|
+
reasons.push(artifactVerification.description);
|
|
94
|
+
}
|
|
64
95
|
return {
|
|
65
96
|
ok: reasons.length === 0,
|
|
66
97
|
reasons,
|
|
@@ -72,6 +103,7 @@ export function buildTaskAgentLoopTurnContext(input) {
|
|
|
72
103
|
trustBalance: 0,
|
|
73
104
|
preApproved: true,
|
|
74
105
|
approvalFn: async () => false,
|
|
106
|
+
...(executionPolicy ? { executionPolicy } : {}),
|
|
75
107
|
agentRole: input.role,
|
|
76
108
|
...input.toolCallContext,
|
|
77
109
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-context.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"task-agent-loop-context.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAUjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAA4B,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,EAAE,CAAC;YAC/C,SAAS,EAAE,KAAK,CAAC,IAAI;YACrB,GAAG,KAAK,CAAC,eAAe;SACzB;QACD,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE,CAAC;AACJ,CAAC"}
|
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import type { AgentResult } from "../adapter-layer.js";
|
|
3
|
-
import type { AgentLoopResult } from "./agent-loop-result.js";
|
|
4
|
-
export declare const TaskAgentLoopOutputSchema: z.ZodObject<{
|
|
3
|
+
import type { AgentLoopResult, AgentLoopWorkspaceInfo } from "./agent-loop-result.js";
|
|
4
|
+
export declare const TaskAgentLoopOutputSchema: z.ZodEffects<z.ZodObject<{
|
|
5
5
|
status: z.ZodEnum<["done", "blocked", "partial", "failed"]>;
|
|
6
6
|
finalAnswer: z.ZodString;
|
|
7
7
|
summary: z.ZodDefault<z.ZodString>;
|
|
8
|
-
filesChanged: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
8
|
+
filesChanged: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
9
9
|
testsRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
10
10
|
command: z.ZodString;
|
|
11
11
|
passed: z.ZodBoolean;
|
|
12
12
|
outputSummary: z.ZodString;
|
|
13
13
|
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
command: string;
|
|
15
14
|
passed: boolean;
|
|
15
|
+
command: string;
|
|
16
16
|
outputSummary: string;
|
|
17
17
|
}, {
|
|
18
|
-
command: string;
|
|
19
18
|
passed: boolean;
|
|
19
|
+
command: string;
|
|
20
20
|
outputSummary: string;
|
|
21
21
|
}>, "many">>;
|
|
22
|
-
completionEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
23
|
-
verificationHints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
24
|
-
blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
22
|
+
completionEvidence: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
23
|
+
verificationHints: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
24
|
+
blockers: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
|
|
25
25
|
}, "strip", z.ZodTypeAny, {
|
|
26
|
-
status: "partial" | "
|
|
26
|
+
status: "partial" | "blocked" | "failed" | "done";
|
|
27
27
|
summary: string;
|
|
28
28
|
filesChanged: string[];
|
|
29
29
|
blockers: string[];
|
|
@@ -31,24 +31,39 @@ export declare const TaskAgentLoopOutputSchema: z.ZodObject<{
|
|
|
31
31
|
verificationHints: string[];
|
|
32
32
|
finalAnswer: string;
|
|
33
33
|
testsRun: {
|
|
34
|
-
command: string;
|
|
35
34
|
passed: boolean;
|
|
35
|
+
command: string;
|
|
36
36
|
outputSummary: string;
|
|
37
37
|
}[];
|
|
38
38
|
}, {
|
|
39
|
-
status: "partial" | "
|
|
39
|
+
status: "partial" | "blocked" | "failed" | "done";
|
|
40
40
|
finalAnswer: string;
|
|
41
41
|
summary?: string | undefined;
|
|
42
|
-
filesChanged?:
|
|
43
|
-
blockers?:
|
|
44
|
-
completionEvidence?:
|
|
45
|
-
verificationHints?:
|
|
42
|
+
filesChanged?: unknown;
|
|
43
|
+
blockers?: unknown;
|
|
44
|
+
completionEvidence?: unknown;
|
|
45
|
+
verificationHints?: unknown;
|
|
46
46
|
testsRun?: {
|
|
47
|
-
command: string;
|
|
48
47
|
passed: boolean;
|
|
48
|
+
command: string;
|
|
49
49
|
outputSummary: string;
|
|
50
50
|
}[] | undefined;
|
|
51
|
-
}
|
|
51
|
+
}>, {
|
|
52
|
+
status: "partial" | "blocked" | "failed" | "done";
|
|
53
|
+
summary: string;
|
|
54
|
+
filesChanged: string[];
|
|
55
|
+
blockers: string[];
|
|
56
|
+
completionEvidence: string[];
|
|
57
|
+
verificationHints: string[];
|
|
58
|
+
finalAnswer: string;
|
|
59
|
+
testsRun: {
|
|
60
|
+
passed: boolean;
|
|
61
|
+
command: string;
|
|
62
|
+
outputSummary: string;
|
|
63
|
+
}[];
|
|
64
|
+
}, unknown>;
|
|
52
65
|
export type TaskAgentLoopOutput = z.infer<typeof TaskAgentLoopOutputSchema>;
|
|
66
|
+
export declare function requiresIsolatedWorkspaceHandoff(workspace: Pick<AgentLoopWorkspaceInfo, "isolated" | "disposition"> | undefined): boolean;
|
|
67
|
+
export declare function collectTaskAgentLoopNotExecutedBlockers(result: AgentLoopResult<TaskAgentLoopOutput>): string[];
|
|
53
68
|
export declare function taskAgentLoopResultToAgentResult(result: AgentLoopResult<TaskAgentLoopOutput>): AgentResult;
|
|
54
69
|
//# sourceMappingURL=task-agent-loop-result.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-result.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"task-agent-loop-result.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAoDtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAanC,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AA4C5E,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,GAAG,SAAS,GAC9E,OAAO,CAET;AAUD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAC3C,MAAM,EAAE,CAgDV;AASD,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAC3C,WAAW,CAmFb"}
|
|
@@ -1,41 +1,193 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
|
|
2
|
+
import * as path from "node:path";
|
|
3
|
+
function isRecord(value) {
|
|
4
|
+
return Boolean(value) && typeof value === "object" && !Array.isArray(value);
|
|
5
|
+
}
|
|
6
|
+
function normalizeStatus(value) {
|
|
7
|
+
return value === "completed" ? "done" : value;
|
|
8
|
+
}
|
|
9
|
+
function normalizeStringArray(value) {
|
|
10
|
+
if (!Array.isArray(value))
|
|
11
|
+
return value;
|
|
12
|
+
return value.map((item) => {
|
|
13
|
+
if (typeof item === "string")
|
|
14
|
+
return item;
|
|
15
|
+
if (item === null || item === undefined)
|
|
16
|
+
return "";
|
|
17
|
+
if (isRecord(item)) {
|
|
18
|
+
const parts = [
|
|
19
|
+
typeof item.type === "string" ? item.type : "",
|
|
20
|
+
typeof item.command === "string" ? item.command : "",
|
|
21
|
+
typeof item.status === "string" ? item.status : "",
|
|
22
|
+
typeof item.summary === "string" ? item.summary : "",
|
|
23
|
+
typeof item.output === "string" ? item.output : "",
|
|
24
|
+
].filter((part) => part.trim().length > 0);
|
|
25
|
+
if (parts.length > 0)
|
|
26
|
+
return parts.join("; ");
|
|
27
|
+
}
|
|
28
|
+
try {
|
|
29
|
+
return JSON.stringify(item);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
return String(item);
|
|
33
|
+
}
|
|
34
|
+
}).filter((item) => item.trim().length > 0);
|
|
35
|
+
}
|
|
36
|
+
function normalizeTaskAgentLoopOutput(value) {
|
|
37
|
+
if (!isRecord(value))
|
|
38
|
+
return value;
|
|
39
|
+
const normalized = { ...value };
|
|
40
|
+
normalized.status = normalizeStatus(normalized.status);
|
|
41
|
+
normalized.finalAnswer ??= normalized.final_answer ?? normalized.summary;
|
|
42
|
+
normalized.filesChanged ??= normalized.files_changed ?? normalized.changed_files;
|
|
43
|
+
normalized.testsRun ??= normalized.tests_run;
|
|
44
|
+
normalized.completionEvidence ??= normalized.completion_evidence;
|
|
45
|
+
normalized.verificationHints ??= normalized.verification_hints;
|
|
46
|
+
normalized.completionEvidence = normalizeStringArray(normalized.completionEvidence);
|
|
47
|
+
normalized.verificationHints = normalizeStringArray(normalized.verificationHints);
|
|
48
|
+
normalized.blockers = normalizeStringArray(normalized.blockers);
|
|
49
|
+
normalized.filesChanged = normalizeStringArray(normalized.filesChanged);
|
|
50
|
+
return normalized;
|
|
51
|
+
}
|
|
52
|
+
const StringArraySchema = z.preprocess(normalizeStringArray, z.array(z.string())).default([]);
|
|
53
|
+
export const TaskAgentLoopOutputSchema = z.preprocess(normalizeTaskAgentLoopOutput, z.object({
|
|
3
54
|
status: z.enum(["done", "blocked", "partial", "failed"]),
|
|
4
55
|
finalAnswer: z.string(),
|
|
5
56
|
summary: z.string().default(""),
|
|
6
|
-
filesChanged:
|
|
57
|
+
filesChanged: StringArraySchema,
|
|
7
58
|
testsRun: z.array(z.object({
|
|
8
59
|
command: z.string(),
|
|
9
60
|
passed: z.boolean(),
|
|
10
61
|
outputSummary: z.string(),
|
|
11
62
|
})).default([]),
|
|
12
|
-
completionEvidence:
|
|
13
|
-
verificationHints:
|
|
14
|
-
blockers:
|
|
15
|
-
});
|
|
63
|
+
completionEvidence: StringArraySchema,
|
|
64
|
+
verificationHints: StringArraySchema,
|
|
65
|
+
blockers: StringArraySchema,
|
|
66
|
+
}));
|
|
67
|
+
function isSafeRelativeArtifact(filePath) {
|
|
68
|
+
const trimmed = filePath.trim();
|
|
69
|
+
if (!trimmed || trimmed.includes("\0") || path.isAbsolute(trimmed))
|
|
70
|
+
return false;
|
|
71
|
+
const segments = trimmed.replace(/\\/g, "/").split("/");
|
|
72
|
+
return !segments.includes("..");
|
|
73
|
+
}
|
|
74
|
+
function collectAgentLoopChangedPaths(result) {
|
|
75
|
+
const applyPatchArtifactPaths = (result.toolResults ?? []).flatMap((entry) => {
|
|
76
|
+
if (!entry.success || entry.toolName !== "apply_patch" || entry.checkOnly === true)
|
|
77
|
+
return [];
|
|
78
|
+
return (entry.artifacts ?? []).map((artifact) => artifact.trim()).filter(isSafeRelativeArtifact);
|
|
79
|
+
});
|
|
80
|
+
return [
|
|
81
|
+
...new Set([
|
|
82
|
+
...(result.output?.filesChanged ?? []),
|
|
83
|
+
...result.changedFiles,
|
|
84
|
+
...applyPatchArtifactPaths,
|
|
85
|
+
]),
|
|
86
|
+
];
|
|
87
|
+
}
|
|
88
|
+
function isBlockingNotExecutedReason(reason) {
|
|
89
|
+
return reason !== "dry_run";
|
|
90
|
+
}
|
|
91
|
+
function formatNotExecutedDetail(input) {
|
|
92
|
+
const reason = input.reason ? ` (${input.reason})` : "";
|
|
93
|
+
const command = input.command ? `: ${input.command}` : "";
|
|
94
|
+
const cwd = input.cwd ? ` in ${input.cwd}` : "";
|
|
95
|
+
const message = input.message?.trim() ? `. ${input.message.trim()}` : "";
|
|
96
|
+
return `${input.kind} ${input.name} was not executed${reason}${cwd}${command}${message}`;
|
|
97
|
+
}
|
|
98
|
+
export function requiresIsolatedWorkspaceHandoff(workspace) {
|
|
99
|
+
return workspace?.isolated === true && workspace.disposition === "handoff_required";
|
|
100
|
+
}
|
|
101
|
+
function formatIsolatedWorkspaceHandoffBlocker(workspace) {
|
|
102
|
+
return `Isolated agent loop worktree has unintegrated changes; completion requires operator handoff: ${workspace.executionCwd}`;
|
|
103
|
+
}
|
|
104
|
+
function entrySequence(entry, fallbackIndex) {
|
|
105
|
+
return entry.sequence ?? fallbackIndex;
|
|
106
|
+
}
|
|
107
|
+
export function collectTaskAgentLoopNotExecutedBlockers(result) {
|
|
108
|
+
const toolResults = result.toolResults ?? [];
|
|
109
|
+
const lastSuccessfulSequence = Math.max(-1, ...result.commandResults
|
|
110
|
+
.map((entry, index) => ({ entry, index }))
|
|
111
|
+
.filter(({ entry }) => entry.success)
|
|
112
|
+
.map(({ entry, index }) => entrySequence(entry, index)), ...toolResults
|
|
113
|
+
.map((entry, index) => ({ entry, index }))
|
|
114
|
+
.filter(({ entry }) => entry.success)
|
|
115
|
+
.map(({ entry, index }) => entrySequence(entry, index)));
|
|
116
|
+
const commandBlockers = result.commandResults
|
|
117
|
+
.map((entry, index) => ({ entry, index }))
|
|
118
|
+
.filter(({ entry, index }) => entrySequence(entry, index) > lastSuccessfulSequence
|
|
119
|
+
&& entry.execution?.status === "not_executed"
|
|
120
|
+
&& isBlockingNotExecutedReason(entry.execution.reason))
|
|
121
|
+
.map(({ entry }) => formatNotExecutedDetail({
|
|
122
|
+
kind: "Command",
|
|
123
|
+
name: entry.toolName,
|
|
124
|
+
reason: entry.execution?.reason,
|
|
125
|
+
message: entry.execution?.message || entry.outputSummary,
|
|
126
|
+
command: entry.command,
|
|
127
|
+
cwd: entry.cwd,
|
|
128
|
+
}));
|
|
129
|
+
const commandToolNames = new Set(result.commandResults
|
|
130
|
+
.filter((entry) => entry.execution?.status === "not_executed")
|
|
131
|
+
.map((entry) => entry.toolName));
|
|
132
|
+
const toolBlockers = toolResults
|
|
133
|
+
.map((entry, index) => ({ entry, index }))
|
|
134
|
+
.filter(({ entry, index }) => entrySequence(entry, index) > lastSuccessfulSequence
|
|
135
|
+
&& entry.execution?.status === "not_executed"
|
|
136
|
+
&& isBlockingNotExecutedReason(entry.execution.reason)
|
|
137
|
+
&& !commandToolNames.has(entry.toolName))
|
|
138
|
+
.map(({ entry }) => formatNotExecutedDetail({
|
|
139
|
+
kind: "Tool",
|
|
140
|
+
name: entry.toolName,
|
|
141
|
+
reason: entry.execution?.reason,
|
|
142
|
+
message: entry.execution?.message || entry.outputSummary,
|
|
143
|
+
}));
|
|
144
|
+
return [...new Set([...commandBlockers, ...toolBlockers])];
|
|
145
|
+
}
|
|
146
|
+
function collectTaskAgentLoopPolicyBlockedBlockers(result) {
|
|
147
|
+
return collectTaskAgentLoopNotExecutedBlockers(result)
|
|
148
|
+
.filter((blocker) => blocker.includes("(policy_blocked)"));
|
|
149
|
+
}
|
|
16
150
|
export function taskAgentLoopResultToAgentResult(result) {
|
|
17
|
-
const
|
|
151
|
+
const notExecutedBlockers = collectTaskAgentLoopNotExecutedBlockers(result);
|
|
152
|
+
const policyBlockedBlockers = collectTaskAgentLoopPolicyBlockedBlockers(result);
|
|
153
|
+
const workspaceHandoffBlockers = requiresIsolatedWorkspaceHandoff(result.workspace)
|
|
154
|
+
? [formatIsolatedWorkspaceHandoffBlocker(result.workspace)]
|
|
155
|
+
: [];
|
|
156
|
+
const blockers = [
|
|
157
|
+
...(result.output?.blockers ?? []),
|
|
158
|
+
...notExecutedBlockers,
|
|
159
|
+
...workspaceHandoffBlockers,
|
|
160
|
+
];
|
|
161
|
+
const done = result.success && result.output?.status === "done" && blockers.length === 0;
|
|
162
|
+
const blocked = result.success && result.output?.status === "blocked";
|
|
18
163
|
const runtimeVerificationCommands = result.commandResults.filter((command) => command.evidenceEligible && command.relevantToTask !== false);
|
|
19
|
-
const
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
164
|
+
const filesChangedPaths = collectAgentLoopChangedPaths(result);
|
|
165
|
+
const blockerOutput = blockers.join("; ");
|
|
166
|
+
const policyBlocked = policyBlockedBlockers.length > 0;
|
|
167
|
+
const fallbackOutput = done
|
|
168
|
+
? result.output?.finalAnswer ?? result.finalText ?? result.stopReason
|
|
169
|
+
: blockerOutput || result.output?.finalAnswer || result.finalText || result.stopReason;
|
|
23
170
|
return {
|
|
24
171
|
success: done,
|
|
25
172
|
output: fallbackOutput,
|
|
26
|
-
error: done ? null :
|
|
173
|
+
error: done ? null : blockerOutput || result.finalText || result.stopReason,
|
|
174
|
+
structuredOutput: result.output ?? undefined,
|
|
27
175
|
exit_code: null,
|
|
28
176
|
elapsed_ms: result.elapsedMs,
|
|
29
177
|
stopped_reason: result.stopReason === "timeout" ? "timeout" :
|
|
30
178
|
result.stopReason === "cancelled" ? "cancelled" :
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
179
|
+
policyBlocked ? "policy_blocked" :
|
|
180
|
+
blocked ? "blocked" :
|
|
181
|
+
done ? "completed" : "error",
|
|
182
|
+
filesChanged: filesChangedPaths.length > 0 || Boolean(result.filesChanged),
|
|
183
|
+
filesChangedPaths,
|
|
34
184
|
agentLoop: {
|
|
35
185
|
traceId: result.traceId,
|
|
36
186
|
sessionId: result.sessionId,
|
|
37
187
|
turnId: result.turnId,
|
|
38
188
|
stopReason: result.stopReason,
|
|
189
|
+
...(result.failureReason ? { failureReason: result.failureReason } : {}),
|
|
190
|
+
...(result.failureDetail ? { failureDetail: result.failureDetail } : {}),
|
|
39
191
|
modelTurns: result.modelTurns,
|
|
40
192
|
toolCalls: result.toolCalls,
|
|
41
193
|
usage: result.usage,
|
|
@@ -49,8 +201,10 @@ export function taskAgentLoopResultToAgentResult(result) {
|
|
|
49
201
|
verificationHints: [
|
|
50
202
|
...(result.output?.verificationHints ?? []),
|
|
51
203
|
...runtimeVerificationCommands.filter((command) => !command.success).map((command) => `failed command: ${command.command}`),
|
|
204
|
+
...notExecutedBlockers,
|
|
205
|
+
...workspaceHandoffBlockers,
|
|
52
206
|
],
|
|
53
|
-
filesChangedPaths
|
|
207
|
+
filesChangedPaths,
|
|
54
208
|
...(result.workspace
|
|
55
209
|
? {
|
|
56
210
|
requestedCwd: result.workspace.requestedCwd,
|
|
@@ -58,6 +212,8 @@ export function taskAgentLoopResultToAgentResult(result) {
|
|
|
58
212
|
isolatedWorkspace: result.workspace.isolated,
|
|
59
213
|
workspaceCleanupStatus: result.workspace.cleanupStatus,
|
|
60
214
|
workspaceCleanupReason: result.workspace.cleanupReason,
|
|
215
|
+
workspaceDirty: result.workspace.dirty,
|
|
216
|
+
workspaceDisposition: result.workspace.disposition,
|
|
61
217
|
}
|
|
62
218
|
: {}),
|
|
63
219
|
...(result.executionPolicy
|
|
@@ -67,6 +223,8 @@ export function taskAgentLoopResultToAgentResult(result) {
|
|
|
67
223
|
networkAccess: result.executionPolicy.networkAccess,
|
|
68
224
|
}
|
|
69
225
|
: {}),
|
|
226
|
+
...(typeof result.activeBudgetMs === "number" ? { activeBudgetMs: result.activeBudgetMs } : {}),
|
|
227
|
+
...(typeof result.generatedEstimateMs === "number" ? { generatedEstimateMs: result.generatedEstimateMs } : {}),
|
|
70
228
|
},
|
|
71
229
|
};
|
|
72
230
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-agent-loop-result.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACxD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CA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C,eAAe,CAAC,aAAa;iBACpD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC;AACJ,CAAC"}
|
|
1
|
+
{"version":3,"file":"task-agent-loop-result.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,CAAC,KAAK,CAAC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;AAC9E,CAAC;AAED,SAAS,eAAe,CAAC,KAAc;IACrC,OAAO,KAAK,KAAK,WAAW,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,KAAK,CAAC;AAChD,CAAC;AAED,SAAS,oBAAoB,CAAC,KAAc;IAC1C,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACxC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;QACxB,IAAI,OAAO,IAAI,KAAK,QAAQ;YAAE,OAAO,IAAI,CAAC;QAC1C,IAAI,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,SAAS;YAAE,OAAO,EAAE,CAAC;QACnD,IAAI,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;YACnB,MAAM,KAAK,GAAG;gBACZ,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;gBAC9C,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBACpD,OAAO,IAAI,CAAC,MAAM,KAAK,QAAQ,CAAC,CAAC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