pulseed 0.6.2 → 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/agents/claude-api.d.ts +2 -2
- package/dist/adapters/agents/claude-api.d.ts.map +1 -1
- package/dist/adapters/agents/claude-api.js +3 -2
- package/dist/adapters/agents/claude-api.js.map +1 -1
- package/dist/adapters/agents/openai-codex.d.ts +3 -0
- package/dist/adapters/agents/openai-codex.d.ts.map +1 -1
- package/dist/adapters/agents/openai-codex.js +5 -0
- package/dist/adapters/agents/openai-codex.js.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts +13 -0
- package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
- package/dist/adapters/datasources/artifact-metric-datasource.js +257 -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/llm/codex-llm-client.d.ts +3 -0
- package/dist/base/llm/codex-llm-client.d.ts.map +1 -1
- package/dist/base/llm/codex-llm-client.js +71 -7
- package/dist/base/llm/codex-llm-client.js.map +1 -1
- package/dist/base/llm/llm-client.d.ts +2 -0
- package/dist/base/llm/llm-client.d.ts.map +1 -1
- package/dist/base/llm/llm-client.js +2 -2
- package/dist/base/llm/llm-client.js.map +1 -1
- package/dist/base/llm/ollama-client.d.ts.map +1 -1
- package/dist/base/llm/ollama-client.js +12 -0
- package/dist/base/llm/ollama-client.js.map +1 -1
- package/dist/base/llm/openai-client.d.ts +4 -0
- package/dist/base/llm/openai-client.d.ts.map +1 -1
- package/dist/base/llm/openai-client.js +29 -15
- package/dist/base/llm/openai-client.js.map +1 -1
- package/dist/base/llm/provider-config.d.ts +12 -2
- package/dist/base/llm/provider-config.d.ts.map +1 -1
- package/dist/base/llm/provider-config.js +46 -5
- package/dist/base/llm/provider-config.js.map +1 -1
- package/dist/base/llm/provider-factory.d.ts +1 -1
- package/dist/base/llm/provider-factory.d.ts.map +1 -1
- package/dist/base/llm/provider-factory.js +7 -2
- package/dist/base/llm/provider-factory.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 +2 -0
- package/dist/base/types/core.js.map +1 -1
- package/dist/base/utils/execFileNoThrow.d.ts +4 -0
- package/dist/base/utils/execFileNoThrow.d.ts.map +1 -1
- package/dist/base/utils/execFileNoThrow.js +81 -2
- package/dist/base/utils/execFileNoThrow.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-command-helpers.d.ts +1 -0
- package/dist/interface/chat/chat-runner-command-helpers.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-command-helpers.js +1 -0
- package/dist/interface/chat/chat-runner-command-helpers.js.map +1 -1
- package/dist/interface/chat/chat-runner-commands.d.ts +3 -1
- package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner-commands.js +175 -22
- package/dist/interface/chat/chat-runner-commands.js.map +1 -1
- package/dist/interface/chat/chat-runner-contracts.d.ts +6 -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 +8 -1
- package/dist/interface/chat/chat-runner.d.ts.map +1 -1
- package/dist/interface/chat/chat-runner.js +172 -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/chat-state-service.d.ts +1 -0
- package/dist/interface/chat/chat-state-service.d.ts.map +1 -1
- package/dist/interface/chat/chat-state-service.js +1 -0
- package/dist/interface/chat/chat-state-service.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/config.d.ts.map +1 -1
- package/dist/interface/cli/commands/config.js +12 -1
- package/dist/interface/cli/commands/config.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 +64 -2
- package/dist/interface/cli/commands/daemon.js.map +1 -1
- package/dist/interface/cli/commands/doctor.d.ts +1 -0
- package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
- package/dist/interface/cli/commands/doctor.js +83 -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 +19 -7
- package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
- package/dist/interface/cli/commands/goal-raw.d.ts +1 -0
- package/dist/interface/cli/commands/goal-raw.d.ts.map +1 -1
- package/dist/interface/cli/commands/goal-raw.js +34 -2
- package/dist/interface/cli/commands/goal-raw.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/commands/setup/import/flow.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/flow.js +2 -0
- package/dist/interface/cli/commands/setup/import/flow.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/provider.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup/import/provider.js +5 -1
- package/dist/interface/cli/commands/setup/import/provider.js.map +1 -1
- package/dist/interface/cli/commands/setup/import/types.d.ts +1 -0
- package/dist/interface/cli/commands/setup/import/types.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-shared.d.ts +2 -0
- package/dist/interface/cli/commands/setup-shared.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-shared.js +4 -1
- package/dist/interface/cli/commands/setup-shared.js.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.d.ts +2 -0
- package/dist/interface/cli/commands/setup-wizard.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup-wizard.js +36 -4
- package/dist/interface/cli/commands/setup-wizard.js.map +1 -1
- package/dist/interface/cli/commands/setup.d.ts.map +1 -1
- package/dist/interface/cli/commands/setup.js +13 -1
- package/dist/interface/cli/commands/setup.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/suggestions.js +1 -1
- package/dist/interface/tui/chat/suggestions.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-context-assembler.d.ts.map +1 -1
- package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +12 -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 +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 +11 -2
- 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 +8 -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 +39 -1
- 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 +13 -4
- 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 +404 -79
- 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 +56 -11
- 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 +110 -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 +4 -3
- package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js +32 -5
- package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts +5 -4
- package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-lifecycle.js +61 -11
- 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 +5 -2
- package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
- package/dist/orchestrator/execution/task/task-verifier-rules.js +346 -104
- 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 +237 -22
- package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
- package/dist/orchestrator/execution/task/task-workspace.d.ts +13 -0
- package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -0
- package/dist/orchestrator/execution/task/task-workspace.js +32 -0
- package/dist/orchestrator/execution/task/task-workspace.js.map +1 -0
- 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/goal/types/goal.d.ts +6 -6
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts +1 -0
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.js +2 -2
- package/dist/orchestrator/loop/durable-loop/iteration-kernel.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/orchestrator/loop/durable-loop/task-cycle.d.ts +2 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop/task-cycle.js +2 -2
- package/dist/orchestrator/loop/durable-loop/task-cycle.js.map +1 -1
- package/dist/orchestrator/loop/durable-loop.d.ts +3 -2
- package/dist/orchestrator/loop/durable-loop.d.ts.map +1 -1
- package/dist/orchestrator/loop/durable-loop.js +26 -6
- package/dist/orchestrator/loop/durable-loop.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/memory/memory-selection.d.ts.map +1 -1
- package/dist/platform/knowledge/memory/memory-selection.js +24 -18
- package/dist/platform/knowledge/memory/memory-selection.js.map +1 -1
- 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 +154 -67
- 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 +60 -0
- package/dist/platform/observation/types/data-source.d.ts.map +1 -1
- package/dist/platform/observation/types/data-source.js +5 -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 +74 -74
- 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/executor/goal-worker.d.ts +6 -1
- package/dist/runtime/executor/goal-worker.d.ts.map +1 -1
- package/dist/runtime/executor/goal-worker.js +18 -1
- package/dist/runtime/executor/goal-worker.js.map +1 -1
- package/dist/runtime/executor/loop-supervisor.d.ts +1 -0
- package/dist/runtime/executor/loop-supervisor.d.ts.map +1 -1
- package/dist/runtime/executor/loop-supervisor.js +58 -6
- package/dist/runtime/executor/loop-supervisor.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/postmortem-report.d.ts +2 -2
- 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/ConfigTool/ConfigTool.d.ts.map +1 -1
- package/dist/tools/query/ConfigTool/ConfigTool.js +1 -0
- package/dist/tools/query/ConfigTool/ConfigTool.js.map +1 -1
- 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 +25 -11
- 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 +153 -9
- 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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-runner-runtime.js","sourceRoot":"","sources":["../../../src/interface/chat/chat-runner-runtime.ts"],"names":[],"mappings":"AACA,OAAO,EACL,6BAA6B,GAI9B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,4BAA4B,EAAE,MAAM,yCAAyC,CAAC;AAyBvF,MAAM,UAAU,0BAA0B,CAAC,OAA0B;IACnE,OAAO;QACL,EAAE,EAAE,OAAO,CAAC,EAAE;QACd,GAAG,EAAE,OAAO,CAAC,GAAG;QAChB,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,SAAS,EAAE,OAAO,CAAC,SAAS;QAC5B,QAAQ,EAAE,CAAC,GAAG,OAAO,CAAC,QAAQ,CAAC;QAC/B,GAAG,CAAC,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,eAAe,EAAE,OAAO,CAAC,eAAe,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChF,GAAG,CAAC,OAAO,CAAC,kBAAkB,CAAC,CAAC,CAAC,EAAE,kBAAkB,EAAE,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzF,GAAG,CAAC,OAAO,CAAC,yBAAyB,CAAC,CAAC,CAAC,EAAE,yBAAyB,EAAE,OA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CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC;IAED,IAAI,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QAC1B,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,KAAK,CAAC,IAAI,CAAC,oDAAoD,CAAC,CAAC;QACjE,KAAK,CAAC,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9D,CAAC;IAED,MAAM,WAAW,GAAG,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC1D,IAAI,WAAW,EAAE,CAAC;QAChB,IAAI,KAAK,CAAC,MAAM,GAAG,CAAC;YAAE,KAAK,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACrC,KAAK,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;IAC1B,CAAC;IAED,OAAO,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,0EAA0E,CAAC;AAC1H,CAAC"}
|
|
@@ -4,6 +4,7 @@ import type { ChatEventHandler } from "./chat-events.js";
|
|
|
4
4
|
import type { ExecutionPolicy } from "../../orchestrator/execution/agent-loop/execution-policy.js";
|
|
5
5
|
import { type ChatIngressMessage, type SelectedChatRoute } from "./ingress-router.js";
|
|
6
6
|
import type { ChatRunResult, ChatRunnerDeps, ChatRunnerExecutionOptions, RuntimeControlChatContext } from "./chat-runner-contracts.js";
|
|
7
|
+
import { type UserInput } from "./user-input.js";
|
|
7
8
|
export type { ChatRunResult, ChatRunnerDeps, ChatRunnerExecutionOptions, RuntimeControlChatContext, } from "./chat-runner-contracts.js";
|
|
8
9
|
export declare class ChatRunner {
|
|
9
10
|
private readonly deps;
|
|
@@ -26,13 +27,17 @@ export declare class ChatRunner {
|
|
|
26
27
|
private setupSecretIntake;
|
|
27
28
|
private turnLanguageHint;
|
|
28
29
|
private pendingSetupDialogue;
|
|
30
|
+
private eventJournalHistory;
|
|
31
|
+
private eventJournalDirty;
|
|
29
32
|
constructor(deps: ChatRunnerDeps);
|
|
30
33
|
startSession(cwd: string): void;
|
|
31
34
|
startSessionFromLoadedSession(session: LoadedChatSession): void;
|
|
32
35
|
getSessionId(): string | null;
|
|
33
36
|
getCurrentSessionMessages(): ChatSession["messages"];
|
|
34
37
|
hasActiveTurn(): boolean;
|
|
35
|
-
interruptAndRedirect(input: string, cwd: string, timeoutMs?: number
|
|
38
|
+
interruptAndRedirect(input: string, cwd: string, timeoutMs?: number, options?: {
|
|
39
|
+
userInput?: UserInput;
|
|
40
|
+
}): Promise<ChatRunResult>;
|
|
36
41
|
setRuntimeControlContext(context: RuntimeControlChatContext | null): void;
|
|
37
42
|
executeIngressMessage(ingress: ChatIngressMessage, cwd: string, timeoutMs: number | undefined, selectedRoute: SelectedChatRoute): Promise<ChatRunResult>;
|
|
38
43
|
execute(input: string, cwd: string, timeoutMs?: number, options?: ChatRunnerExecutionOptions): Promise<ChatRunResult>;
|
|
@@ -45,9 +50,11 @@ export declare class ChatRunner {
|
|
|
45
50
|
private loadedSessionToChatSession;
|
|
46
51
|
private routeHost;
|
|
47
52
|
private providerConfigBaseDir;
|
|
53
|
+
private reloadProviderRuntime;
|
|
48
54
|
private handlePendingRunSpecConfirmation;
|
|
49
55
|
private startConfirmedRunSpec;
|
|
50
56
|
private handlePendingSetupConfirmation;
|
|
57
|
+
private flushAndReturn;
|
|
51
58
|
private finalizeNonPersistentResult;
|
|
52
59
|
}
|
|
53
60
|
//# sourceMappingURL=chat-runner.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chat-runner.d.ts","sourceRoot":"","sources":["../../../src/interface/chat/chat-runner.ts"],"names":[],"mappings":"AAOA,OAAO,EAAe,KAAK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,EAC9B,aAAa,EAAE,iBAAiB,GAC/B,OAAO,CAAC,aAAa,CAAC;IAenB,OAAO,CACX,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,SAAS,SAAqB,EAC9B,OAAO,GAAE,0BAA+B,GACvC,OAAO,CAAC,aAAa,CAAC;IAkXzB,aAAa,IAAI,MAAM,GAAG,IAAI;IAI9B,2BAA2B,IAAI,MAAM,GAAG,IAAI;IAI5C,yBAAyB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI;IAIlD,yBAAyB,IAAI,OAAO,CAAC,eAAe,CAAC;YAM7C,uBAAuB;YA6EvB,qBAAqB;IASnC,OAAO,CAAC,0BAA0B;IAIlC,OAAO,CAAC,SAAS;IA2BjB,OAAO,CAAC,qBAAqB;YAKf,qBAAqB;YA6CrB,gCAAgC;YAmGhC,qBAAqB;YAoBrB,8BAA8B;YAsH9B,cAAc;YAUd,2BAA2B;CAa1C"}
|
|
@@ -21,6 +21,9 @@ import { buildRuntimeControlContextFromIngress, buildStandaloneIngressMessageFro
|
|
|
21
21
|
import { executeAdapterRoute, executeAssistRoute, executeClarifyRoute, executeConfigureRoute, executeRunSpecDraftRoute, executeAgentLoopRoute, formatBlockedRuntimeControlRoute, executeRuntimeControlRoute, executeToolLoopRoute, resolveSessionExecutionPolicy, } from "./chat-runner-routes.js";
|
|
22
22
|
import { classifyFreeformRouteIntent } from "./freeform-route-classifier.js";
|
|
23
23
|
import { deriveRunSpecFromText } from "../../runtime/run-spec/index.js";
|
|
24
|
+
import { createTextUserInput, normalizeUserInput, replaceUserInputText } from "./user-input.js";
|
|
25
|
+
import { createTurnStartOperation, createTurnSteerOperation } from "./turn-protocol.js";
|
|
26
|
+
import { buildChatTurnContext, renderSystemPromptWithTurnContext, toTurnContextSnapshot, } from "./turn-context.js";
|
|
24
27
|
import { createRunSpecStore, formatRunSpecSetupProposal, arbitrateRunSpecPendingDialogue, handleRunSpecConfirmationInput, RunSpecHandoffService, validateRunSpecStartSafety, } from "../../runtime/run-spec/index.js";
|
|
25
28
|
const DEFAULT_TIMEOUT_MS = 120_000;
|
|
26
29
|
function normalizePinnedReplyTarget(replyTarget) {
|
|
@@ -96,6 +99,8 @@ export class ChatRunner {
|
|
|
96
99
|
setupSecretIntake = null;
|
|
97
100
|
turnLanguageHint = UNKNOWN_TURN_LANGUAGE_HINT;
|
|
98
101
|
pendingSetupDialogue = null;
|
|
102
|
+
eventJournalHistory = null;
|
|
103
|
+
eventJournalDirty = false;
|
|
99
104
|
constructor(deps) {
|
|
100
105
|
this.deps = deps;
|
|
101
106
|
this.groundingGateway = createChatGroundingGateway({
|
|
@@ -118,6 +123,7 @@ export class ChatRunner {
|
|
|
118
123
|
setPendingTend: (value) => { this.pendingTend = value; },
|
|
119
124
|
getLastSelectedRoute: () => this.lastSelectedRoute,
|
|
120
125
|
getSessionExecutionPolicy: () => this.getSessionExecutionPolicy(),
|
|
126
|
+
reloadProviderRuntime: () => this.reloadProviderRuntime(),
|
|
121
127
|
emitEvent: (event) => this.eventBridge.emitEvent(event),
|
|
122
128
|
getActiveSubscribers: () => this.activeSubscribers,
|
|
123
129
|
setSessionExecutionPolicy: (policy) => { this.sessionExecutionPolicy = policy; },
|
|
@@ -152,12 +158,24 @@ export class ChatRunner {
|
|
|
152
158
|
hasActiveTurn() {
|
|
153
159
|
return this.eventBridge.hasActiveTurn();
|
|
154
160
|
}
|
|
155
|
-
async interruptAndRedirect(input, cwd, timeoutMs = DEFAULT_TIMEOUT_MS) {
|
|
161
|
+
async interruptAndRedirect(input, cwd, timeoutMs = DEFAULT_TIMEOUT_MS, options = {}) {
|
|
162
|
+
const steerUserInput = normalizeUserInput(options.userInput, input);
|
|
156
163
|
const activeTurn = this.eventBridge.getActiveTurn();
|
|
157
164
|
if (!activeTurn) {
|
|
158
|
-
return this.execute(input, cwd, timeoutMs);
|
|
165
|
+
return this.execute(input, cwd, timeoutMs, { userInput: steerUserInput });
|
|
159
166
|
}
|
|
160
167
|
const start = Date.now();
|
|
168
|
+
const steerOperation = createTurnSteerOperation({
|
|
169
|
+
activeTurn,
|
|
170
|
+
userInput: steerUserInput,
|
|
171
|
+
});
|
|
172
|
+
this.eventBridge.emitEvent({
|
|
173
|
+
type: "turn_steer",
|
|
174
|
+
input,
|
|
175
|
+
userInput: steerUserInput,
|
|
176
|
+
operation: steerOperation,
|
|
177
|
+
...this.eventBridge.eventBase(activeTurn.context),
|
|
178
|
+
});
|
|
161
179
|
const redirect = await classifyInterruptRedirect(input, {
|
|
162
180
|
llmClient: this.deps.llmClient,
|
|
163
181
|
cwd: activeTurn.cwd,
|
|
@@ -166,7 +184,7 @@ export class ChatRunner {
|
|
|
166
184
|
sessionId: this.getSessionId(),
|
|
167
185
|
});
|
|
168
186
|
if (this.eventBridge.getActiveTurn() !== activeTurn) {
|
|
169
|
-
return this.execute(input, cwd, timeoutMs);
|
|
187
|
+
return this.execute(input, cwd, timeoutMs, { userInput: steerUserInput });
|
|
170
188
|
}
|
|
171
189
|
if (redirect === "background") {
|
|
172
190
|
return this.eventBridge.emitEphemeralAssistantResult(input, [
|
|
@@ -174,7 +192,11 @@ export class ChatRunner {
|
|
|
174
192
|
"",
|
|
175
193
|
"The active turn is still running in the foreground.",
|
|
176
194
|
"Use /tend for daemon-backed work, or send a narrower follow-up request.",
|
|
177
|
-
].join("\n"), true, start
|
|
195
|
+
].join("\n"), true, start, {
|
|
196
|
+
context: activeTurn.context,
|
|
197
|
+
operation: steerOperation,
|
|
198
|
+
userInput: steerUserInput,
|
|
199
|
+
});
|
|
178
200
|
}
|
|
179
201
|
activeTurn.interruptRequested = true;
|
|
180
202
|
if (!activeTurn.abortController.signal.aborted) {
|
|
@@ -183,7 +205,11 @@ export class ChatRunner {
|
|
|
183
205
|
this.eventBridge.emitCheckpoint("Interrupt requested", `Redirect: ${previewActivityText(input, 120)}`, activeTurn.context, "interrupt");
|
|
184
206
|
const stopped = await this.eventBridge.waitForActiveTurn(activeTurn, 2_000);
|
|
185
207
|
if (!stopped) {
|
|
186
|
-
return this.eventBridge.emitEphemeralAssistantResult(input, "Interrupt requested. The active turn will stop at the next safe point.", false, start
|
|
208
|
+
return this.eventBridge.emitEphemeralAssistantResult(input, "Interrupt requested. The active turn will stop at the next safe point.", false, start, {
|
|
209
|
+
context: activeTurn.context,
|
|
210
|
+
operation: steerOperation,
|
|
211
|
+
userInput: steerUserInput,
|
|
212
|
+
});
|
|
187
213
|
}
|
|
188
214
|
let output;
|
|
189
215
|
if (redirect === "diff") {
|
|
@@ -215,7 +241,11 @@ export class ChatRunner {
|
|
|
215
241
|
"- Ask to show diff or switch to review if files may have changed.",
|
|
216
242
|
].join("\n");
|
|
217
243
|
}
|
|
218
|
-
return this.eventBridge.emitEphemeralAssistantResult(input, output, true, start
|
|
244
|
+
return this.eventBridge.emitEphemeralAssistantResult(input, output, true, start, {
|
|
245
|
+
context: activeTurn.context,
|
|
246
|
+
operation: steerOperation,
|
|
247
|
+
userInput: steerUserInput,
|
|
248
|
+
});
|
|
219
249
|
}
|
|
220
250
|
setRuntimeControlContext(context) {
|
|
221
251
|
this.runtimeControlContext = context;
|
|
@@ -229,17 +259,24 @@ export class ChatRunner {
|
|
|
229
259
|
selectedRoute,
|
|
230
260
|
runtimeControlContext,
|
|
231
261
|
goalId: ingress.goal_id,
|
|
262
|
+
userInput: ingress.userInput,
|
|
232
263
|
});
|
|
233
264
|
}
|
|
234
265
|
async execute(input, cwd, timeoutMs = DEFAULT_TIMEOUT_MS, options = {}) {
|
|
235
266
|
const eventContext = this.eventBridge.createEventContext();
|
|
236
267
|
const resolvedCwd = resolveGitRoot(cwd);
|
|
237
268
|
const activeTurn = this.eventBridge.beginActiveTurn(eventContext, resolvedCwd);
|
|
269
|
+
this.eventBridge.setEventRecorder(null);
|
|
270
|
+
this.eventJournalHistory = null;
|
|
271
|
+
this.eventJournalDirty = false;
|
|
238
272
|
const resumeCommand = this.commandHandler.parseResumeCommand(input);
|
|
239
273
|
const resumeOnly = resumeCommand !== null;
|
|
240
274
|
const setupSecretIntake = intakeSetupSecrets(input);
|
|
241
275
|
this.setupSecretIntake = setupSecretIntake;
|
|
242
276
|
const safeInput = setupSecretIntake.redactedText;
|
|
277
|
+
const safeUserInput = options.userInput
|
|
278
|
+
? replaceUserInputText(options.userInput, safeInput)
|
|
279
|
+
: createTextUserInput(safeInput);
|
|
243
280
|
this.turnLanguageHint = detectTurnLanguageHint(safeInput);
|
|
244
281
|
eventContext.languageHint = this.turnLanguageHint;
|
|
245
282
|
const persistedSecretIntake = setupSecretIntake.suppliedSecrets.map(({ value: _value, ...metadata }) => metadata);
|
|
@@ -297,6 +334,11 @@ export class ChatRunner {
|
|
|
297
334
|
const gitRoot = this.sessionCwd ?? resolvedCwd;
|
|
298
335
|
activeTurn.cwd = gitRoot;
|
|
299
336
|
const history = this.history;
|
|
337
|
+
this.eventJournalHistory = history;
|
|
338
|
+
this.eventBridge.setEventRecorder((event) => {
|
|
339
|
+
this.eventJournalDirty = true;
|
|
340
|
+
return history.recordChatEvent(event, { persist: false });
|
|
341
|
+
});
|
|
300
342
|
const pinnedReplyTarget = normalizePinnedReplyTarget(runtimeControlContext?.replyTarget ?? this.deps.runtimeReplyTarget ?? null);
|
|
301
343
|
if (pinnedReplyTarget) {
|
|
302
344
|
history.setNotificationReplyTarget(pinnedReplyTarget);
|
|
@@ -304,10 +346,20 @@ export class ChatRunner {
|
|
|
304
346
|
this.eventBridge.emitEvent({
|
|
305
347
|
type: "lifecycle_start",
|
|
306
348
|
input: safeInput,
|
|
349
|
+
userInput: safeUserInput,
|
|
350
|
+
operation: createTurnStartOperation({
|
|
351
|
+
context: eventContext,
|
|
352
|
+
cwd: gitRoot,
|
|
353
|
+
userInput: safeUserInput,
|
|
354
|
+
}),
|
|
307
355
|
...this.eventBridge.eventBase(eventContext),
|
|
308
356
|
});
|
|
309
357
|
if (!resumeOnly) {
|
|
310
|
-
await history.appendUserMessage(safeInput, {
|
|
358
|
+
await history.appendUserMessage(safeInput, {
|
|
359
|
+
setupSecretIntake: persistedSecretIntake,
|
|
360
|
+
eventContext,
|
|
361
|
+
userInput: safeUserInput,
|
|
362
|
+
});
|
|
311
363
|
}
|
|
312
364
|
if (this.cachedStaticSystemPrompt === null) {
|
|
313
365
|
try {
|
|
@@ -317,8 +369,10 @@ export class ChatRunner {
|
|
|
317
369
|
this.cachedStaticSystemPrompt = "";
|
|
318
370
|
}
|
|
319
371
|
}
|
|
320
|
-
const messages = history.
|
|
321
|
-
const
|
|
372
|
+
const messages = history.getModelVisibleMessages();
|
|
373
|
+
const sessionData = history.getSessionData();
|
|
374
|
+
const compactionSummary = sessionData.compactionSummary;
|
|
375
|
+
const compactionRecords = sessionData.compactionRecords ?? [];
|
|
322
376
|
const priorTurns = resumeOnly ? messages.slice(-10) : messages.slice(0, -1).slice(-10);
|
|
323
377
|
const historySections = [];
|
|
324
378
|
if (compactionSummary) {
|
|
@@ -342,7 +396,7 @@ export class ChatRunner {
|
|
|
342
396
|
this.eventBridge.emitCheckpoint("Runtime control selected", `${selectedRoute.intent.kind} request recognized.`, eventContext, "route");
|
|
343
397
|
const runtimeControlResult = await executeRuntimeControlRoute(this.routeHost(), selectedRoute, runtimeControlContext, executionCwd, start);
|
|
344
398
|
if (runtimeControlResult.success) {
|
|
345
|
-
await history.appendAssistantMessage(runtimeControlResult.output);
|
|
399
|
+
await history.appendAssistantMessage(runtimeControlResult.output, { eventContext });
|
|
346
400
|
this.eventBridge.emitCheckpoint("Runtime control completed", "The runtime-control operation produced a result.", eventContext, "complete");
|
|
347
401
|
this.eventBridge.emitActivity("lifecycle", "Finalizing response...", eventContext, "lifecycle:finalizing");
|
|
348
402
|
this.eventBridge.emitEvent({
|
|
@@ -363,12 +417,12 @@ export class ChatRunner {
|
|
|
363
417
|
}, this.deps.llmClient);
|
|
364
418
|
this.eventBridge.emitLifecycleEndEvent("error", runtimeControlResult.elapsed_ms, eventContext, false);
|
|
365
419
|
}
|
|
366
|
-
return runtimeControlResult;
|
|
420
|
+
return this.flushAndReturn(runtimeControlResult);
|
|
367
421
|
}
|
|
368
422
|
if (selectedRoute?.kind === "runtime_control_blocked") {
|
|
369
423
|
const output = formatBlockedRuntimeControlRoute(selectedRoute);
|
|
370
424
|
this.eventBridge.pushAssistantDelta(output, assistantBuffer, eventContext);
|
|
371
|
-
await history.appendAssistantMessage(output);
|
|
425
|
+
await history.appendAssistantMessage(output, { eventContext });
|
|
372
426
|
this.eventBridge.emitEvent({
|
|
373
427
|
type: "assistant_final",
|
|
374
428
|
text: output,
|
|
@@ -377,36 +431,26 @@ export class ChatRunner {
|
|
|
377
431
|
});
|
|
378
432
|
const elapsed_ms = Date.now() - start;
|
|
379
433
|
this.eventBridge.emitLifecycleEndEvent("error", elapsed_ms, eventContext, true);
|
|
380
|
-
return {
|
|
434
|
+
return this.flushAndReturn({
|
|
381
435
|
success: false,
|
|
382
436
|
output,
|
|
383
437
|
elapsed_ms,
|
|
384
|
-
};
|
|
438
|
+
});
|
|
385
439
|
}
|
|
386
440
|
if (selectedRoute?.kind === "run_spec_draft") {
|
|
387
441
|
const result = await executeRunSpecDraftRoute(this.routeHost(), selectedRoute, eventContext, assistantBuffer, history, start);
|
|
388
|
-
return result;
|
|
442
|
+
return this.flushAndReturn(result);
|
|
389
443
|
}
|
|
390
444
|
if (selectedRoute?.kind === "configure") {
|
|
391
445
|
const result = await executeConfigureRoute(this.routeHost(), selectedRoute, eventContext, assistantBuffer, history, start);
|
|
392
|
-
return result;
|
|
446
|
+
return this.flushAndReturn(result);
|
|
393
447
|
}
|
|
394
448
|
if (selectedRoute?.kind === "clarify") {
|
|
395
449
|
const result = await executeClarifyRoute(this.routeHost(), selectedRoute, eventContext, assistantBuffer, history, start);
|
|
396
|
-
return result;
|
|
397
|
-
}
|
|
398
|
-
if (selectedRoute?.kind === "assist") {
|
|
399
|
-
const result = await executeAssistRoute(this.routeHost(), {
|
|
400
|
-
input: safeInput,
|
|
401
|
-
priorTurns,
|
|
402
|
-
eventContext,
|
|
403
|
-
assistantBuffer,
|
|
404
|
-
history,
|
|
405
|
-
start,
|
|
406
|
-
});
|
|
407
|
-
return result;
|
|
450
|
+
return this.flushAndReturn(result);
|
|
408
451
|
}
|
|
409
452
|
const usesNativeAgentLoop = resumeOnly || selectedRoute?.kind === "agent_loop";
|
|
453
|
+
const executionPolicy = await this.getSessionExecutionPolicy();
|
|
410
454
|
const groundingWorkspaceContext = !resumeOnly && usesNativeAgentLoop
|
|
411
455
|
? await buildChatContext(safeInput, executionCwd)
|
|
412
456
|
: undefined;
|
|
@@ -421,7 +465,7 @@ export class ChatRunner {
|
|
|
421
465
|
workspaceRoot: executionCwd,
|
|
422
466
|
goalId: executionGoalId,
|
|
423
467
|
userMessage: safeInput,
|
|
424
|
-
trustProjectInstructions:
|
|
468
|
+
trustProjectInstructions: executionPolicy.trustProjectInstructions,
|
|
425
469
|
workspaceContext: groundingWorkspaceContext,
|
|
426
470
|
});
|
|
427
471
|
}
|
|
@@ -433,7 +477,7 @@ export class ChatRunner {
|
|
|
433
477
|
goalId: executionGoalId,
|
|
434
478
|
userMessage: safeInput,
|
|
435
479
|
query: safeInput,
|
|
436
|
-
trustProjectInstructions:
|
|
480
|
+
trustProjectInstructions: executionPolicy.trustProjectInstructions,
|
|
437
481
|
});
|
|
438
482
|
systemPrompt = String(groundingBundle.render("prompt"));
|
|
439
483
|
}
|
|
@@ -456,6 +500,35 @@ export class ChatRunner {
|
|
|
456
500
|
const context = resumeOnly || usesNativeAgentLoop ? "" : await buildChatContext(safeInput, gitRoot);
|
|
457
501
|
const basePrompt = resumeOnly ? "" : (context ? `${context}\n\n${safeInput}` : safeInput);
|
|
458
502
|
const prompt = historyBlock ? `${historyBlock}${basePrompt}` : basePrompt;
|
|
503
|
+
const turnContext = buildChatTurnContext({
|
|
504
|
+
eventContext,
|
|
505
|
+
startedAt: new Date(start),
|
|
506
|
+
sessionId: history.getSessionId(),
|
|
507
|
+
cwd,
|
|
508
|
+
gitRoot,
|
|
509
|
+
executionCwd,
|
|
510
|
+
nativeAgentLoopStatePath: this.nativeAgentLoopStatePath,
|
|
511
|
+
selectedRoute,
|
|
512
|
+
input: safeInput,
|
|
513
|
+
userInput: safeUserInput,
|
|
514
|
+
compactionSummary,
|
|
515
|
+
compactionRecords,
|
|
516
|
+
priorTurns,
|
|
517
|
+
basePrompt,
|
|
518
|
+
prompt,
|
|
519
|
+
systemPrompt,
|
|
520
|
+
agentLoopSystemPrompt,
|
|
521
|
+
runtimeControlContext,
|
|
522
|
+
...(this.deps.runtimeReplyTarget ? { fallbackReplyTarget: this.deps.runtimeReplyTarget } : {}),
|
|
523
|
+
...(this.deps.runtimeControlActor ? { fallbackActor: this.deps.runtimeControlActor } : {}),
|
|
524
|
+
...(executionGoalId ? { executionGoalId } : {}),
|
|
525
|
+
executionPolicy,
|
|
526
|
+
setupDialogue: history.getSetupDialogue(),
|
|
527
|
+
runSpecConfirmation: history.getRunSpecConfirmation(),
|
|
528
|
+
setupSecretIntake,
|
|
529
|
+
activatedTools: this.activatedTools,
|
|
530
|
+
});
|
|
531
|
+
await history.recordTurnContext(toTurnContextSnapshot(turnContext));
|
|
459
532
|
if (resumeOnly && !this.deps.chatAgentLoopRunner) {
|
|
460
533
|
const elapsed_ms = Date.now() - start;
|
|
461
534
|
const output = await this.eventBridge.emitLifecycleErrorEventWithFallback("Resume requires the native chat agentloop runtime.", assistantBuffer.text, eventContext, {
|
|
@@ -463,28 +536,33 @@ export class ChatRunner {
|
|
|
463
536
|
stoppedReason: "resume_state_missing",
|
|
464
537
|
}, this.deps.llmClient);
|
|
465
538
|
this.eventBridge.emitLifecycleEndEvent("error", elapsed_ms, eventContext, false);
|
|
466
|
-
return { success: false, output, elapsed_ms };
|
|
539
|
+
return this.flushAndReturn({ success: false, output, elapsed_ms });
|
|
540
|
+
}
|
|
541
|
+
if (selectedRoute?.kind === "assist") {
|
|
542
|
+
const result = await executeAssistRoute(this.routeHost(), {
|
|
543
|
+
turnContext,
|
|
544
|
+
eventContext,
|
|
545
|
+
assistantBuffer,
|
|
546
|
+
history,
|
|
547
|
+
start,
|
|
548
|
+
});
|
|
549
|
+
return this.flushAndReturn(result);
|
|
467
550
|
}
|
|
468
551
|
if (resumeOnly || selectedRoute?.kind === "agent_loop") {
|
|
469
|
-
return executeAgentLoopRoute(this.routeHost(), {
|
|
552
|
+
return this.flushAndReturn(executeAgentLoopRoute(this.routeHost(), {
|
|
553
|
+
turnContext,
|
|
470
554
|
resumeOnly,
|
|
471
|
-
executionCwd,
|
|
472
|
-
executionGoalId,
|
|
473
|
-
basePrompt,
|
|
474
|
-
priorTurns,
|
|
475
|
-
agentLoopSystemPrompt,
|
|
476
555
|
assistantBuffer,
|
|
477
556
|
eventContext,
|
|
478
557
|
history,
|
|
479
558
|
gitRoot,
|
|
480
|
-
runtimeControlContext,
|
|
481
559
|
activeAbortSignal: activeTurn.abortController.signal,
|
|
482
560
|
start,
|
|
483
|
-
});
|
|
561
|
+
}));
|
|
484
562
|
}
|
|
485
563
|
if (selectedRoute?.kind === "tool_loop") {
|
|
486
|
-
return executeToolLoopRoute(this.routeHost(), {
|
|
487
|
-
|
|
564
|
+
return this.flushAndReturn(executeToolLoopRoute(this.routeHost(), {
|
|
565
|
+
turnContext,
|
|
488
566
|
eventContext,
|
|
489
567
|
assistantBuffer,
|
|
490
568
|
systemPrompt: systemPrompt || undefined,
|
|
@@ -493,25 +571,24 @@ export class ChatRunner {
|
|
|
493
571
|
gitRoot,
|
|
494
572
|
runtimeControlContext,
|
|
495
573
|
start,
|
|
496
|
-
});
|
|
574
|
+
}));
|
|
497
575
|
}
|
|
498
576
|
if (!resumeOnly && selectedRoute && selectedRoute.kind !== "adapter") {
|
|
499
577
|
const elapsed_ms = Date.now() - start;
|
|
500
578
|
const output = await this.eventBridge.emitLifecycleErrorEventWithFallback(`Unsupported chat route: ${selectedRoute.kind}`, assistantBuffer.text, eventContext, {}, this.deps.llmClient);
|
|
501
579
|
this.eventBridge.emitLifecycleEndEvent("error", elapsed_ms, eventContext, false);
|
|
502
|
-
return { success: false, output, elapsed_ms };
|
|
580
|
+
return this.flushAndReturn({ success: false, output, elapsed_ms });
|
|
503
581
|
}
|
|
504
|
-
return executeAdapterRoute(this.routeHost(), {
|
|
505
|
-
|
|
506
|
-
cwd,
|
|
582
|
+
return this.flushAndReturn(executeAdapterRoute(this.routeHost(), {
|
|
583
|
+
turnContext,
|
|
507
584
|
timeoutMs,
|
|
508
|
-
systemPrompt: systemPrompt || undefined,
|
|
585
|
+
systemPrompt: renderSystemPromptWithTurnContext(systemPrompt || undefined, turnContext.modelVisible),
|
|
509
586
|
eventContext,
|
|
510
587
|
assistantBuffer,
|
|
511
588
|
gitRoot,
|
|
512
589
|
start,
|
|
513
590
|
history,
|
|
514
|
-
});
|
|
591
|
+
}));
|
|
515
592
|
}
|
|
516
593
|
getSessionCwd() {
|
|
517
594
|
return this.sessionCwd;
|
|
@@ -630,6 +707,42 @@ export class ChatRunner {
|
|
|
630
707
|
const stateManager = this.deps.stateManager;
|
|
631
708
|
return typeof stateManager.getBaseDir === "function" ? stateManager.getBaseDir() : getPulseedDirPath();
|
|
632
709
|
}
|
|
710
|
+
async reloadProviderRuntime() {
|
|
711
|
+
const [{ buildAdapterRegistry, buildLLMClient }, { loadProviderConfig }, { createNativeChatAgentLoopRunner, createNativeReviewAgentLoopRunner, shouldUseNativeTaskAgentLoop, },] = await Promise.all([
|
|
712
|
+
import("../../base/llm/provider-factory.js"),
|
|
713
|
+
import("../../base/llm/provider-config.js"),
|
|
714
|
+
import("../../orchestrator/execution/agent-loop/index.js"),
|
|
715
|
+
]);
|
|
716
|
+
const providerConfig = await loadProviderConfig({
|
|
717
|
+
baseDir: this.providerConfigBaseDir(),
|
|
718
|
+
saveMigration: false,
|
|
719
|
+
});
|
|
720
|
+
const llmClient = await buildLLMClient(providerConfig);
|
|
721
|
+
const adapterRegistry = await buildAdapterRegistry(llmClient, providerConfig);
|
|
722
|
+
this.deps.llmClient = llmClient;
|
|
723
|
+
this.deps.adapter = adapterRegistry.getAdapter(providerConfig.adapter);
|
|
724
|
+
this.deps.chatAgentLoopRunner = this.deps.registry && this.deps.toolExecutor && shouldUseNativeTaskAgentLoop(providerConfig, llmClient)
|
|
725
|
+
? createNativeChatAgentLoopRunner({
|
|
726
|
+
llmClient,
|
|
727
|
+
providerConfig,
|
|
728
|
+
toolRegistry: this.deps.registry,
|
|
729
|
+
toolExecutor: this.deps.toolExecutor,
|
|
730
|
+
cwd: this.sessionCwd ?? process.cwd(),
|
|
731
|
+
traceBaseDir: this.providerConfigBaseDir(),
|
|
732
|
+
})
|
|
733
|
+
: undefined;
|
|
734
|
+
this.deps.reviewAgentLoopRunner = this.deps.registry && this.deps.toolExecutor && shouldUseNativeTaskAgentLoop(providerConfig, llmClient)
|
|
735
|
+
? createNativeReviewAgentLoopRunner({
|
|
736
|
+
llmClient,
|
|
737
|
+
providerConfig,
|
|
738
|
+
toolRegistry: this.deps.registry,
|
|
739
|
+
toolExecutor: this.deps.toolExecutor,
|
|
740
|
+
cwd: this.sessionCwd ?? process.cwd(),
|
|
741
|
+
traceBaseDir: this.providerConfigBaseDir(),
|
|
742
|
+
})
|
|
743
|
+
: undefined;
|
|
744
|
+
this.cachedStaticSystemPrompt = null;
|
|
745
|
+
}
|
|
633
746
|
async handlePendingRunSpecConfirmation(input) {
|
|
634
747
|
const pending = this.history?.getRunSpecConfirmation() ?? null;
|
|
635
748
|
if (!pending || pending.state !== "pending")
|
|
@@ -859,7 +972,16 @@ export class ChatRunner {
|
|
|
859
972
|
elapsed_ms: 0,
|
|
860
973
|
};
|
|
861
974
|
}
|
|
862
|
-
|
|
975
|
+
async flushAndReturn(result) {
|
|
976
|
+
const resolved = await result;
|
|
977
|
+
await this.eventBridge.flushEventRecorder();
|
|
978
|
+
if (this.eventJournalDirty && this.eventJournalHistory) {
|
|
979
|
+
this.eventJournalDirty = false;
|
|
980
|
+
await this.eventJournalHistory.persist();
|
|
981
|
+
}
|
|
982
|
+
return resolved;
|
|
983
|
+
}
|
|
984
|
+
async finalizeNonPersistentResult(result, eventContext) {
|
|
863
985
|
if (result.output) {
|
|
864
986
|
this.eventBridge.emitEvent({
|
|
865
987
|
type: "assistant_final",
|
|
@@ -869,6 +991,7 @@ export class ChatRunner {
|
|
|
869
991
|
});
|
|
870
992
|
}
|
|
871
993
|
this.eventBridge.emitLifecycleEndEvent(result.success ? "completed" : "error", result.elapsed_ms, eventContext, false);
|
|
994
|
+
await this.eventBridge.flushEventRecorder();
|
|
872
995
|
return result;
|
|
873
996
|
}
|
|
874
997
|
}
|