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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Preparation and scoring steps for a single CoreLoop iteration.
|
|
3
3
|
*/
|
|
4
|
+
import { extractWorkspacePathConstraint, resolveWorkspacePath } from "../../../base/utils/workspace-path.js";
|
|
4
5
|
import { buildDriveContext, } from "./contracts.js";
|
|
5
6
|
import { logRewardComputation } from "../../../platform/drive/reward-log.js";
|
|
6
7
|
import { hasValidatedDimensions } from "../../goal/goal-refiner.js";
|
|
@@ -115,6 +116,10 @@ export async function buildLoopToolContext(ctx, goalId) {
|
|
|
115
116
|
approvalFn: async () => false,
|
|
116
117
|
};
|
|
117
118
|
}
|
|
119
|
+
function resolveGoalMeasurementCwd(goal, fallbackCwd = process.cwd()) {
|
|
120
|
+
const workspacePath = extractWorkspacePathConstraint(goal.constraints);
|
|
121
|
+
return workspacePath ? resolveWorkspacePath(workspacePath, fallbackCwd) : fallbackCwd;
|
|
122
|
+
}
|
|
118
123
|
// ─── Phase 2 ───
|
|
119
124
|
/** Run observation engine, reload goal after observation.
|
|
120
125
|
* Observation failure is non-fatal — returns current goal state.
|
|
@@ -172,12 +177,13 @@ export async function calculateGapOrComplete(ctx, goalId, goal, loopIndex, resul
|
|
|
172
177
|
// Refresh stale dimensions via tool measurement before gap calculation
|
|
173
178
|
if (ctx.toolExecutor && goal.dimensions) {
|
|
174
179
|
const { needsDirectMeasurement, measureDirectly } = await import("../../../platform/drive/gap-calculator-tools.js");
|
|
180
|
+
const measurementCwd = resolveGoalMeasurementCwd(goal);
|
|
175
181
|
let anyRefreshed = false;
|
|
176
182
|
for (const dim of goal.dimensions) {
|
|
177
183
|
if (needsDirectMeasurement(dim)) {
|
|
178
184
|
try {
|
|
179
185
|
const refreshed = await measureDirectly(dim, ctx.toolExecutor, {
|
|
180
|
-
cwd:
|
|
186
|
+
cwd: measurementCwd,
|
|
181
187
|
goalId,
|
|
182
188
|
trustBalance: 0,
|
|
183
189
|
preApproved: true,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"preparation.js","sourceRoot":"","sources":["../../../../src/orchestrator/loop/durable-loop/preparation.ts"],"names":[],"mappings":"AAAA;;GAEG;AAOH,OAAO,EACL,iBAAiB,GAIlB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,uCAAuC,CAAC;AAC7E,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AAYpE,kBAAkB;AAElB;gFACgF;AAChF,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAC3C,GAAa,EACb,MAAc,EACd,MAA2B,EAC3B,SAAiB;IAEjB,IAAI,IAAU,CAAC;IACf,IAAI,CAAC;QACH,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC;QAC5D,IAAI,CAAC,MAAM,EAAE,CAAC;YACZ,MAAM,CAAC,KAAK,GAAG,SAAS,MAAM,aAAa,CAAC;YAC5C,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;YAC1C,OAAO,IAAI,CAAC;QACd,CAAC;QACD,IAAI,GAAG,MAAM,CAAC;IAChB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC;QACb,MAAM,CAAC,KAAK,GAAG,wBAAwB,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC;QAC1F,GAAG,CA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ACpB,CAAC;gBACF,iBAAiB,CAAC,MAAM,EAAE,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;gBACnD,MAAM,CAAC,SAAS,GAAG,IAAI,CAAC,GAAG,EAAE,GAAG,SAAS,CAAC;gBAC1C,OAAO,IAAI,CAAC;YACd,CAAC;QACH,CAAC;QAAC,MAAM,CAAC;YACP,+CAA+C;QACjD,CAAC;IACH,CAAC;IAED,OAAO,EAAE,WAAW,EAAE,6BAA6B,EAAE,CAAC;AACxD,CAAC"}
|
|
@@ -184,6 +184,11 @@ export declare const MemoryCorrectionEntrySchema: z.ZodObject<{
|
|
|
184
184
|
created_at: string;
|
|
185
185
|
reason: string;
|
|
186
186
|
schema_version: "memory-correction-entry-v1";
|
|
187
|
+
audit: {
|
|
188
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
189
|
+
retained_for_audit: boolean;
|
|
190
|
+
destructive_delete_approved_at: string | null;
|
|
191
|
+
};
|
|
187
192
|
provenance: {
|
|
188
193
|
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
189
194
|
confidence: number | null;
|
|
@@ -212,11 +217,6 @@ export declare const MemoryCorrectionEntrySchema: z.ZodObject<{
|
|
|
212
217
|
} | undefined;
|
|
213
218
|
} | null;
|
|
214
219
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
215
|
-
audit: {
|
|
216
|
-
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
217
|
-
retained_for_audit: boolean;
|
|
218
|
-
destructive_delete_approved_at: string | null;
|
|
219
|
-
};
|
|
220
220
|
}, {
|
|
221
221
|
created_at: string;
|
|
222
222
|
reason: string;
|
|
@@ -240,6 +240,11 @@ export declare const MemoryCorrectionEntrySchema: z.ZodObject<{
|
|
|
240
240
|
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
241
241
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
242
242
|
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
243
|
+
audit?: {
|
|
244
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
245
|
+
retained_for_audit?: boolean | undefined;
|
|
246
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
247
|
+
} | undefined;
|
|
243
248
|
replacement_ref?: {
|
|
244
249
|
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
245
250
|
id: string;
|
|
@@ -249,11 +254,6 @@ export declare const MemoryCorrectionEntrySchema: z.ZodObject<{
|
|
|
249
254
|
run_id?: string | undefined;
|
|
250
255
|
} | undefined;
|
|
251
256
|
} | null | undefined;
|
|
252
|
-
audit?: {
|
|
253
|
-
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
254
|
-
retained_for_audit?: boolean | undefined;
|
|
255
|
-
destructive_delete_approved_at?: string | null | undefined;
|
|
256
|
-
} | undefined;
|
|
257
257
|
}>;
|
|
258
258
|
export type MemoryCorrectionEntry = z.infer<typeof MemoryCorrectionEntrySchema>;
|
|
259
259
|
export type MemoryCorrectionEntryInput = z.input<typeof MemoryCorrectionEntrySchema>;
|
|
@@ -369,6 +369,11 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
369
369
|
created_at: string;
|
|
370
370
|
reason: string;
|
|
371
371
|
schema_version: "memory-correction-entry-v1";
|
|
372
|
+
audit: {
|
|
373
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
374
|
+
retained_for_audit: boolean;
|
|
375
|
+
destructive_delete_approved_at: string | null;
|
|
376
|
+
};
|
|
372
377
|
provenance: {
|
|
373
378
|
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
374
379
|
confidence: number | null;
|
|
@@ -397,11 +402,6 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
397
402
|
} | undefined;
|
|
398
403
|
} | null;
|
|
399
404
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
400
|
-
audit: {
|
|
401
|
-
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
402
|
-
retained_for_audit: boolean;
|
|
403
|
-
destructive_delete_approved_at: string | null;
|
|
404
|
-
};
|
|
405
405
|
}, {
|
|
406
406
|
created_at: string;
|
|
407
407
|
reason: string;
|
|
@@ -425,6 +425,11 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
425
425
|
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
426
426
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
427
427
|
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
428
|
+
audit?: {
|
|
429
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
430
|
+
retained_for_audit?: boolean | undefined;
|
|
431
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
432
|
+
} | undefined;
|
|
428
433
|
replacement_ref?: {
|
|
429
434
|
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
430
435
|
id: string;
|
|
@@ -434,17 +439,17 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
434
439
|
run_id?: string | undefined;
|
|
435
440
|
} | undefined;
|
|
436
441
|
} | null | undefined;
|
|
437
|
-
audit?: {
|
|
438
|
-
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
439
|
-
retained_for_audit?: boolean | undefined;
|
|
440
|
-
destructive_delete_approved_at?: string | null | undefined;
|
|
441
|
-
} | undefined;
|
|
442
442
|
}>, "many">>;
|
|
443
443
|
}, "strict", z.ZodTypeAny, {
|
|
444
444
|
entries: {
|
|
445
445
|
created_at: string;
|
|
446
446
|
reason: string;
|
|
447
447
|
schema_version: "memory-correction-entry-v1";
|
|
448
|
+
audit: {
|
|
449
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
450
|
+
retained_for_audit: boolean;
|
|
451
|
+
destructive_delete_approved_at: string | null;
|
|
452
|
+
};
|
|
448
453
|
provenance: {
|
|
449
454
|
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
450
455
|
confidence: number | null;
|
|
@@ -473,11 +478,6 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
473
478
|
} | undefined;
|
|
474
479
|
} | null;
|
|
475
480
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
476
|
-
audit: {
|
|
477
|
-
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
478
|
-
retained_for_audit: boolean;
|
|
479
|
-
destructive_delete_approved_at: string | null;
|
|
480
|
-
};
|
|
481
481
|
}[];
|
|
482
482
|
generated_at: string;
|
|
483
483
|
schema_version: "memory-correction-ledger-v1";
|
|
@@ -506,6 +506,11 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
506
506
|
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
507
507
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
508
508
|
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
509
|
+
audit?: {
|
|
510
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
511
|
+
retained_for_audit?: boolean | undefined;
|
|
512
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
513
|
+
} | undefined;
|
|
509
514
|
replacement_ref?: {
|
|
510
515
|
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
511
516
|
id: string;
|
|
@@ -515,11 +520,6 @@ export declare const MemoryCorrectionLedgerFileSchema: z.ZodObject<{
|
|
|
515
520
|
run_id?: string | undefined;
|
|
516
521
|
} | undefined;
|
|
517
522
|
} | null | undefined;
|
|
518
|
-
audit?: {
|
|
519
|
-
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
520
|
-
retained_for_audit?: boolean | undefined;
|
|
521
|
-
destructive_delete_approved_at?: string | null | undefined;
|
|
522
|
-
} | undefined;
|
|
523
523
|
}[] | undefined;
|
|
524
524
|
schema_version?: "memory-correction-ledger-v1" | undefined;
|
|
525
525
|
}>;
|
|
@@ -78,7 +78,7 @@ export declare const MemoryGovernanceSchema: z.ZodObject<{
|
|
|
78
78
|
export_visibility: z.ZodDefault<z.ZodEnum<["listed", "redacted", "hidden"]>>;
|
|
79
79
|
owner_ref: z.ZodDefault<z.ZodString>;
|
|
80
80
|
}, "strict", z.ZodTypeAny, {
|
|
81
|
-
sensitivity: "
|
|
81
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
82
82
|
consent: {
|
|
83
83
|
scope_id: string;
|
|
84
84
|
allowed_contexts: string[];
|
|
@@ -95,7 +95,7 @@ export declare const MemoryGovernanceSchema: z.ZodObject<{
|
|
|
95
95
|
export_visibility: "listed" | "redacted" | "hidden";
|
|
96
96
|
owner_ref: string;
|
|
97
97
|
}, {
|
|
98
|
-
sensitivity?: "
|
|
98
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
99
99
|
consent?: {
|
|
100
100
|
scope_id?: string | undefined;
|
|
101
101
|
allowed_contexts?: string[] | undefined;
|
|
@@ -224,7 +224,7 @@ export declare const AgentMemoryEntrySchema: z.ZodObject<{
|
|
|
224
224
|
export_visibility: z.ZodDefault<z.ZodEnum<["listed", "redacted", "hidden"]>>;
|
|
225
225
|
owner_ref: z.ZodDefault<z.ZodString>;
|
|
226
226
|
}, "strict", z.ZodTypeAny, {
|
|
227
|
-
sensitivity: "
|
|
227
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
228
228
|
consent: {
|
|
229
229
|
scope_id: string;
|
|
230
230
|
allowed_contexts: string[];
|
|
@@ -241,7 +241,7 @@ export declare const AgentMemoryEntrySchema: z.ZodObject<{
|
|
|
241
241
|
export_visibility: "listed" | "redacted" | "hidden";
|
|
242
242
|
owner_ref: string;
|
|
243
243
|
}, {
|
|
244
|
-
sensitivity?: "
|
|
244
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
245
245
|
consent?: {
|
|
246
246
|
scope_id?: string | undefined;
|
|
247
247
|
allowed_contexts?: string[] | undefined;
|
|
@@ -272,7 +272,7 @@ export declare const AgentMemoryEntrySchema: z.ZodObject<{
|
|
|
272
272
|
key: string;
|
|
273
273
|
memory_type: "observation" | "preference" | "fact" | "procedure";
|
|
274
274
|
governance: {
|
|
275
|
-
sensitivity: "
|
|
275
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
276
276
|
consent: {
|
|
277
277
|
scope_id: string;
|
|
278
278
|
allowed_contexts: string[];
|
|
@@ -393,7 +393,7 @@ export declare const AgentMemoryEntrySchema: z.ZodObject<{
|
|
|
393
393
|
} | undefined;
|
|
394
394
|
memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
|
|
395
395
|
governance?: {
|
|
396
|
-
sensitivity?: "
|
|
396
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
397
397
|
consent?: {
|
|
398
398
|
scope_id?: string | undefined;
|
|
399
399
|
allowed_contexts?: string[] | undefined;
|
|
@@ -636,7 +636,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
636
636
|
export_visibility: z.ZodDefault<z.ZodEnum<["listed", "redacted", "hidden"]>>;
|
|
637
637
|
owner_ref: z.ZodDefault<z.ZodString>;
|
|
638
638
|
}, "strict", z.ZodTypeAny, {
|
|
639
|
-
sensitivity: "
|
|
639
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
640
640
|
consent: {
|
|
641
641
|
scope_id: string;
|
|
642
642
|
allowed_contexts: string[];
|
|
@@ -653,7 +653,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
653
653
|
export_visibility: "listed" | "redacted" | "hidden";
|
|
654
654
|
owner_ref: string;
|
|
655
655
|
}, {
|
|
656
|
-
sensitivity?: "
|
|
656
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
657
657
|
consent?: {
|
|
658
658
|
scope_id?: string | undefined;
|
|
659
659
|
allowed_contexts?: string[] | undefined;
|
|
@@ -684,7 +684,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
684
684
|
key: string;
|
|
685
685
|
memory_type: "observation" | "preference" | "fact" | "procedure";
|
|
686
686
|
governance: {
|
|
687
|
-
sensitivity: "
|
|
687
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
688
688
|
consent: {
|
|
689
689
|
scope_id: string;
|
|
690
690
|
allowed_contexts: string[];
|
|
@@ -805,7 +805,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
805
805
|
} | undefined;
|
|
806
806
|
memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
|
|
807
807
|
governance?: {
|
|
808
|
-
sensitivity?: "
|
|
808
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
809
809
|
consent?: {
|
|
810
810
|
scope_id?: string | undefined;
|
|
811
811
|
allowed_contexts?: string[] | undefined;
|
|
@@ -934,6 +934,11 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
934
934
|
created_at: string;
|
|
935
935
|
reason: string;
|
|
936
936
|
schema_version: "memory-correction-entry-v1";
|
|
937
|
+
audit: {
|
|
938
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
939
|
+
retained_for_audit: boolean;
|
|
940
|
+
destructive_delete_approved_at: string | null;
|
|
941
|
+
};
|
|
937
942
|
provenance: {
|
|
938
943
|
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
939
944
|
confidence: number | null;
|
|
@@ -962,11 +967,6 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
962
967
|
} | undefined;
|
|
963
968
|
} | null;
|
|
964
969
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
965
|
-
audit: {
|
|
966
|
-
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
967
|
-
retained_for_audit: boolean;
|
|
968
|
-
destructive_delete_approved_at: string | null;
|
|
969
|
-
};
|
|
970
970
|
}, {
|
|
971
971
|
created_at: string;
|
|
972
972
|
reason: string;
|
|
@@ -990,6 +990,11 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
990
990
|
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
991
991
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
992
992
|
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
993
|
+
audit?: {
|
|
994
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
995
|
+
retained_for_audit?: boolean | undefined;
|
|
996
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
997
|
+
} | undefined;
|
|
993
998
|
replacement_ref?: {
|
|
994
999
|
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
995
1000
|
id: string;
|
|
@@ -999,11 +1004,6 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
999
1004
|
run_id?: string | undefined;
|
|
1000
1005
|
} | undefined;
|
|
1001
1006
|
} | null | undefined;
|
|
1002
|
-
audit?: {
|
|
1003
|
-
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
1004
|
-
retained_for_audit?: boolean | undefined;
|
|
1005
|
-
destructive_delete_approved_at?: string | null | undefined;
|
|
1006
|
-
} | undefined;
|
|
1007
1007
|
}>, "many">>;
|
|
1008
1008
|
last_consolidated_at: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
1009
1009
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -1017,7 +1017,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1017
1017
|
key: string;
|
|
1018
1018
|
memory_type: "observation" | "preference" | "fact" | "procedure";
|
|
1019
1019
|
governance: {
|
|
1020
|
-
sensitivity: "
|
|
1020
|
+
sensitivity: "secret" | "local" | "public" | "private";
|
|
1021
1021
|
consent: {
|
|
1022
1022
|
scope_id: string;
|
|
1023
1023
|
allowed_contexts: string[];
|
|
@@ -1087,6 +1087,11 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1087
1087
|
created_at: string;
|
|
1088
1088
|
reason: string;
|
|
1089
1089
|
schema_version: "memory-correction-entry-v1";
|
|
1090
|
+
audit: {
|
|
1091
|
+
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
1092
|
+
retained_for_audit: boolean;
|
|
1093
|
+
destructive_delete_approved_at: string | null;
|
|
1094
|
+
};
|
|
1090
1095
|
provenance: {
|
|
1091
1096
|
source: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
1092
1097
|
confidence: number | null;
|
|
@@ -1115,11 +1120,6 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1115
1120
|
} | undefined;
|
|
1116
1121
|
} | null;
|
|
1117
1122
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
1118
|
-
audit: {
|
|
1119
|
-
status: "active" | "superseded" | "disputed" | "destructive_delete_requested";
|
|
1120
|
-
retained_for_audit: boolean;
|
|
1121
|
-
destructive_delete_approved_at: string | null;
|
|
1122
|
-
};
|
|
1123
1123
|
}[];
|
|
1124
1124
|
last_consolidated_at: string | null;
|
|
1125
1125
|
}, {
|
|
@@ -1179,7 +1179,7 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1179
1179
|
} | undefined;
|
|
1180
1180
|
memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
|
|
1181
1181
|
governance?: {
|
|
1182
|
-
sensitivity?: "
|
|
1182
|
+
sensitivity?: "secret" | "local" | "public" | "private" | undefined;
|
|
1183
1183
|
consent?: {
|
|
1184
1184
|
scope_id?: string | undefined;
|
|
1185
1185
|
allowed_contexts?: string[] | undefined;
|
|
@@ -1222,6 +1222,11 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1222
1222
|
correction_kind: "superseded" | "corrected" | "retracted" | "forgotten" | "quarantined";
|
|
1223
1223
|
actor: "user" | "dream_lint" | "runtime_verification" | "manual_tool";
|
|
1224
1224
|
schema_version?: "memory-correction-entry-v1" | undefined;
|
|
1225
|
+
audit?: {
|
|
1226
|
+
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
1227
|
+
retained_for_audit?: boolean | undefined;
|
|
1228
|
+
destructive_delete_approved_at?: string | null | undefined;
|
|
1229
|
+
} | undefined;
|
|
1225
1230
|
replacement_ref?: {
|
|
1226
1231
|
kind: "runtime_evidence" | "agent_memory" | "soil_record" | "dream_checkpoint";
|
|
1227
1232
|
id: string;
|
|
@@ -1231,11 +1236,6 @@ export declare const AgentMemoryStoreSchema: z.ZodObject<{
|
|
|
1231
1236
|
run_id?: string | undefined;
|
|
1232
1237
|
} | undefined;
|
|
1233
1238
|
} | null | undefined;
|
|
1234
|
-
audit?: {
|
|
1235
|
-
status?: "active" | "superseded" | "disputed" | "destructive_delete_requested" | undefined;
|
|
1236
|
-
retained_for_audit?: boolean | undefined;
|
|
1237
|
-
destructive_delete_approved_at?: string | null | undefined;
|
|
1238
|
-
} | undefined;
|
|
1239
1239
|
}[] | undefined;
|
|
1240
1240
|
last_consolidated_at?: string | null | undefined;
|
|
1241
1241
|
}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../../src/platform/observation/context-provider/collector.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"collector.d.ts","sourceRoot":"","sources":["../../../../src/platform/observation/context-provider/collector.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAwB/C,MAAM,MAAM,gBAAgB,GAAG;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;CACxC,CAAC;AA6aF,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,EACd,aAAa,EAAE,MAAM,EACrB,OAAO,CAAC,EAAE,gBAAgB,GACzB,OAAO,CAAC,WAAW,EAAE,CAAC,CAwDxB;AAED,wBAAsB,uBAAuB,CAC3C,eAAe,EAAE,MAAM,EACvB,GAAG,EAAE,MAAM,EACX,OAAO,CAAC,EAAE,IAAI,CAAC,gBAAgB,EAAE,cAAc,GAAG,aAAa,CAAC,GAC/D,OAAO,CAAC,MAAM,EAAE,CAAC,CAgBnB"}
|
|
@@ -2,6 +2,9 @@ import { execFile } from "node:child_process";
|
|
|
2
2
|
import * as path from "node:path";
|
|
3
3
|
import { promisify } from "node:util";
|
|
4
4
|
import { readFile } from "fs/promises";
|
|
5
|
+
import { getCodeSearchIndexes } from "../../code-search/indexes/index-store.js";
|
|
6
|
+
import { SearchOrchestrator } from "../../code-search/orchestrator.js";
|
|
7
|
+
import { ProgressiveReader } from "../../code-search/progressive-reader.js";
|
|
5
8
|
import { classifyTier, sanitizeNumberedContent, tailLines, toRelativePath, } from "./shared.js";
|
|
6
9
|
import { dimensionNameToSearchTerms } from "./search-terms.js";
|
|
7
10
|
const execFileAsync = promisify(execFile);
|
|
@@ -9,7 +12,9 @@ const DEFAULT_FILE_CONTENT_LINES = 100;
|
|
|
9
12
|
const REDUCED_FILE_CONTENT_LINES = 50;
|
|
10
13
|
const MAX_GREP_MATCHES = 5;
|
|
11
14
|
const MAX_FILE_READS_PER_TERM = 3;
|
|
12
|
-
const
|
|
15
|
+
const MAX_CHAT_CODE_SEARCH_CANDIDATES = 5;
|
|
16
|
+
const MAX_CHAT_CODE_READ_RANGES = 3;
|
|
17
|
+
const MAX_CHAT_CODE_READ_TOKENS = 4000;
|
|
13
18
|
const TEST_STATUS_LABEL = "[Test status]";
|
|
14
19
|
const TEST_FAILURE_STATUS_LABEL = "[Test status (failures detected)]";
|
|
15
20
|
const WORKSPACE_GIT_LABEL = "[Recent changes: git diff HEAD~1 --stat]";
|
|
@@ -90,6 +95,85 @@ async function loadCodeSearchParts(collector, dimensionName, term) {
|
|
|
90
95
|
sanitizeNumberedContent(range.content),
|
|
91
96
|
]);
|
|
92
97
|
}
|
|
98
|
+
function buildChatContextQueryPlan(taskDescription) {
|
|
99
|
+
return {
|
|
100
|
+
task: taskDescription.trim() || "Collect workspace context for the current chat turn",
|
|
101
|
+
intent: "unknown",
|
|
102
|
+
budget: { maxRerankCandidates: 8, maxCandidatesPerRetriever: 20 },
|
|
103
|
+
maxReadRanges: MAX_CHAT_CODE_READ_RANGES,
|
|
104
|
+
maxReadTokens: MAX_CHAT_CODE_READ_TOKENS,
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function formatCodeSearchBundleParts(bundle) {
|
|
108
|
+
return (bundle.ranges ?? []).flatMap((range) => [
|
|
109
|
+
`[CodeSearch: ${range.file}]`,
|
|
110
|
+
sanitizeNumberedContent(range.content),
|
|
111
|
+
]);
|
|
112
|
+
}
|
|
113
|
+
async function loadToolChatCodeSearchParts(collector, plan) {
|
|
114
|
+
if (!collector.toolExecutor) {
|
|
115
|
+
return [];
|
|
116
|
+
}
|
|
117
|
+
const searchResult = await collector.toolExecutor.execute("code_search", {
|
|
118
|
+
task: plan.task,
|
|
119
|
+
intent: plan.intent,
|
|
120
|
+
budget: plan.budget,
|
|
121
|
+
outputLimit: MAX_CHAT_CODE_SEARCH_CANDIDATES,
|
|
122
|
+
}, collector.ctx).catch(() => null);
|
|
123
|
+
const searchData = searchResult?.success && searchResult.data && typeof searchResult.data === "object"
|
|
124
|
+
? searchResult.data
|
|
125
|
+
: null;
|
|
126
|
+
const candidates = searchData?.candidates?.slice(0, MAX_CHAT_CODE_SEARCH_CANDIDATES) ?? [];
|
|
127
|
+
const candidateIds = (searchData?.candidateIds ?? candidates.map((candidate) => candidate.id))
|
|
128
|
+
.slice(0, MAX_CHAT_CODE_SEARCH_CANDIDATES);
|
|
129
|
+
const queryId = searchData?.queryId;
|
|
130
|
+
if (!queryId && candidates.length === 0) {
|
|
131
|
+
return [];
|
|
132
|
+
}
|
|
133
|
+
const readResult = await collector.toolExecutor.execute("code_read_context", {
|
|
134
|
+
queryId,
|
|
135
|
+
candidates: queryId ? undefined : candidates,
|
|
136
|
+
candidateIds,
|
|
137
|
+
phase: "locate",
|
|
138
|
+
maxReadRanges: plan.maxReadRanges,
|
|
139
|
+
maxReadTokens: plan.maxReadTokens,
|
|
140
|
+
}, collector.ctx).catch(() => null);
|
|
141
|
+
const bundle = readResult?.success && readResult.data && typeof readResult.data === "object"
|
|
142
|
+
? readResult.data
|
|
143
|
+
: null;
|
|
144
|
+
return bundle ? formatCodeSearchBundleParts(bundle) : [];
|
|
145
|
+
}
|
|
146
|
+
async function loadDirectChatCodeSearchParts(collector, plan) {
|
|
147
|
+
const session = await new SearchOrchestrator(collector.cwd).searchWithState({
|
|
148
|
+
task: plan.task,
|
|
149
|
+
intent: plan.intent,
|
|
150
|
+
cwd: collector.cwd,
|
|
151
|
+
budget: plan.budget,
|
|
152
|
+
});
|
|
153
|
+
const candidates = session.candidates.slice(0, MAX_CHAT_CODE_SEARCH_CANDIDATES);
|
|
154
|
+
if (candidates.length === 0) {
|
|
155
|
+
return [];
|
|
156
|
+
}
|
|
157
|
+
const indexes = await getCodeSearchIndexes(collector.cwd);
|
|
158
|
+
const bundle = await new ProgressiveReader(collector.cwd, indexes).read(candidates, {
|
|
159
|
+
queryId: session.queryId,
|
|
160
|
+
candidateIds: candidates.map((candidate) => candidate.id),
|
|
161
|
+
phase: "locate",
|
|
162
|
+
maxReadRanges: plan.maxReadRanges,
|
|
163
|
+
maxReadTokens: plan.maxReadTokens,
|
|
164
|
+
});
|
|
165
|
+
return formatCodeSearchBundleParts(bundle);
|
|
166
|
+
}
|
|
167
|
+
async function loadChatCodeSearchParts(collector, plan) {
|
|
168
|
+
try {
|
|
169
|
+
return collector.toolExecutor
|
|
170
|
+
? await loadToolChatCodeSearchParts(collector, plan)
|
|
171
|
+
: await loadDirectChatCodeSearchParts(collector, plan);
|
|
172
|
+
}
|
|
173
|
+
catch {
|
|
174
|
+
return [];
|
|
175
|
+
}
|
|
176
|
+
}
|
|
93
177
|
async function collectRecentChangesContent(collector, cwd) {
|
|
94
178
|
if (collector.toolExecutor) {
|
|
95
179
|
const result = await collector.toolExecutor.execute("git_log", { maxCount: 10, format: "oneline", cwd }, collector.ctx);
|
|
@@ -250,34 +334,15 @@ export async function collectContextItems(goalId, dimensionName, options) {
|
|
|
250
334
|
}
|
|
251
335
|
export async function collectChatContextParts(taskDescription, cwd, options) {
|
|
252
336
|
const collector = createCollector("context-provider", { cwd, ...options });
|
|
253
|
-
const
|
|
254
|
-
.split(/\s+/)
|
|
255
|
-
.filter((word) => word.length >= 4)
|
|
256
|
-
.slice(0, MAX_CHAT_KEYWORDS);
|
|
337
|
+
const queryPlan = buildChatContextQueryPlan(taskDescription);
|
|
257
338
|
const parts = [];
|
|
258
339
|
const recentChanges = await collectRecentChangesContent(collector, cwd);
|
|
259
340
|
if (recentChanges) {
|
|
260
341
|
parts.push(`${recentChanges.label}\n${recentChanges.content}`);
|
|
261
342
|
}
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
for (const filePath of files.slice(0, MAX_FILE_READS_PER_TERM)) {
|
|
266
|
-
try {
|
|
267
|
-
const lines = await readFileExcerpt(collector, filePath, REDUCED_FILE_CONTENT_LINES);
|
|
268
|
-
if (lines.length === 0) {
|
|
269
|
-
continue;
|
|
270
|
-
}
|
|
271
|
-
parts.push(`[File: ${toRelativePath(cwd, filePath)} (keyword: ${keyword})]\n${lines.join("\n")}`);
|
|
272
|
-
}
|
|
273
|
-
catch {
|
|
274
|
-
// skip unreadable files
|
|
275
|
-
}
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
catch {
|
|
279
|
-
// grep no match — ignore
|
|
280
|
-
}
|
|
343
|
+
const codeSearchParts = await loadChatCodeSearchParts(collector, queryPlan);
|
|
344
|
+
if (codeSearchParts.length > 0) {
|
|
345
|
+
parts.push(`[context_query "chat" — code_search]\n${codeSearchParts.join("\n\n")}`);
|
|
281
346
|
}
|
|
282
347
|
return parts;
|
|
283
348
|
}
|