@orion-agents/orion-code 0.3.2 → 0.3.7
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/CHANGELOG.md +207 -0
- package/README.md +102 -18
- package/README.zh-CN.md +40 -16
- package/dist/commands/context-tool-command-handlers.js +1 -5
- package/dist/commands/registry.js +1 -4
- package/dist/harness/intent.js +69 -16
- package/dist/harness/turn-summary.js +3 -1
- package/dist/memory/embeddings.js +2 -3
- package/dist/memory/prompts.js +1 -1
- package/dist/memory/relevant-finder.js +125 -15
- package/dist/memory/vector-store.js +13 -8
- package/dist/migration/migrate.js +8 -12
- package/dist/runtime/agent-runtime-controller.d.ts +1 -0
- package/dist/runtime/agent-runtime-controller.js +92 -41
- package/dist/runtime/capability-receipt-journal.js +1 -1
- package/dist/runtime/composer/history.js +1 -3
- package/dist/runtime/composer/layout.js +7 -4
- package/dist/runtime/durable-tool-receipt-reader.js +1 -1
- package/dist/runtime/legacy-thread-materializer.d.ts +3 -1
- package/dist/runtime/legacy-thread-materializer.js +17 -5
- package/dist/runtime/orion-runtime-v1.d.ts +2 -1
- package/dist/runtime/orion-runtime-v1.js +18 -16
- package/dist/runtime/orion-session-runner.d.ts +2 -0
- package/dist/runtime/orion-session-runner.js +12 -4
- package/dist/runtime/product-bootstrap.d.ts +18 -0
- package/dist/runtime/product-bootstrap.js +402 -335
- package/dist/runtime/product-orion-runtime.d.ts +5 -0
- package/dist/runtime/product-orion-runtime.js +2 -0
- package/dist/runtime/release-receipts.d.ts +7 -3
- package/dist/runtime/release-receipts.js +79 -1
- package/dist/runtime/rich-text/ansi-parser.js +12 -2
- package/dist/runtime/rich-text/layout.js +15 -19
- package/dist/runtime/step-snapshot.d.ts +12 -0
- package/dist/runtime/step-snapshot.js +14 -1
- package/dist/runtime/subagent-thread-runtime.js +1 -1
- package/dist/runtime/subagents/budget.js +4 -1
- package/dist/runtime/subagents/policy.js +11 -4
- package/dist/runtime/subagents/provider-gate.js +6 -4
- package/dist/runtime/subagents/research-quality.js +3 -1
- package/dist/runtime/subagents/research-renderer.js +9 -2
- package/dist/runtime/subagents/result-parser.js +18 -7
- package/dist/runtime/thread-event-store.d.ts +14 -3
- package/dist/runtime/thread-event-store.js +77 -20
- package/dist/runtime/thread-projection.d.ts +36 -0
- package/dist/runtime/thread-projection.js +54 -1
- package/dist/runtime/thread-runtime.d.ts +2 -2
- package/dist/runtime/thread-runtime.js +2 -2
- package/dist/runtime/thread-session-index.d.ts +17 -1
- package/dist/runtime/thread-session-index.js +89 -6
- package/dist/runtime/thread-session-view.d.ts +4 -1
- package/dist/runtime/thread-session-view.js +5 -2
- package/dist/runtime/thread-ui-adapter.js +10 -3
- package/dist/runtime/tool-gateway.js +1 -0
- package/dist/runtime/tool-output-presentation.js +7 -7
- package/dist/runtime/turn-commit.js +1 -1
- package/dist/runtime/turn-controller.js +1 -2
- package/dist/runtime/ui-events.d.ts +3 -0
- package/dist/runtime/workspace-runtime-kernel.d.ts +67 -0
- package/dist/runtime/workspace-runtime-kernel.js +148 -0
- package/dist/services/auth/auth.js +1 -4
- package/dist/services/auth/aws.js +24 -14
- package/dist/services/auto-fix/autoFixRunner.js +1 -1
- package/dist/services/auto-fix/index.d.ts +1 -1
- package/dist/services/diagnostic-tracking/diagnosticTracking.js +4 -2
- package/dist/services/diagnostic-tracking/index.d.ts +1 -1
- package/dist/services/effort.js +1 -9
- package/dist/services/file-glob.js +3 -4
- package/dist/services/global-config.d.ts +2 -0
- package/dist/services/global-config.js +7 -1
- package/dist/services/mcp/transports.js +4 -4
- package/dist/services/model-catalog.js +179 -30
- package/dist/services/model-context.js +1 -1
- package/dist/services/provider-resilience/coordinator.d.ts +3 -1
- package/dist/services/provider-resilience/coordinator.js +23 -1
- package/dist/services/provider-resilience/request-gate.js +7 -2
- package/dist/services/provider-resilience/stream-recovery.js +1 -3
- package/dist/services/redaction.js +19 -2
- package/dist/services/session-storage.d.ts +28 -3
- package/dist/services/session-storage.js +70 -6
- package/dist/services/settings-coordinator.d.ts +3 -1
- package/dist/services/settings-coordinator.js +40 -8
- package/dist/services/settings-document-repository.d.ts +8 -1
- package/dist/services/settings-document-repository.js +22 -1
- package/dist/services/smart-routing.js +19 -11
- package/dist/services/verification-profile.js +17 -22
- package/dist/services/web-search-provider.js +21 -9
- package/dist/services/workspace-diff.js +10 -4
- package/dist/skills/builtin/code-review/SKILL.md +1 -1
- package/dist/skills/builtin/security-check/SKILL.md +1 -1
- package/dist/skills/builtin/test-gen/SKILL.md +1 -1
- package/dist/terminal-ui/editor.js +6 -2
- package/dist/terminal-ui/output-queue.js +9 -3
- package/dist/tools/lsp.js +12 -6
- package/dist/tui-core/frame.js +9 -7
- package/dist/tui-ui/transcript-cache.js +6 -6
- package/dist/tui-ui/transcript-inspector-layout.js +13 -6
- package/dist/tui-ui/transcript-inspector-surface.js +4 -1
- package/dist/tui-ui/transcript-inspector.js +3 -8
- package/dist/ui/box.js +14 -7
- package/dist/ui/markdown.js +4 -2
- package/dist/ui/shared/input-frame.js +12 -8
- package/dist/ui/stream-markdown.js +1 -1
- package/dist/ui/tool-preview.js +11 -3
- package/dist/ui/user-input.js +16 -10
- package/dist/web/event-hub.d.ts +2 -0
- package/dist/web/event-hub.js +43 -6
- package/dist/web/file-read-service.d.ts +2 -0
- package/dist/web/file-read-service.js +39 -12
- package/dist/web/git-read-model-service.js +7 -0
- package/dist/web/protocol.d.ts +53 -3
- package/dist/web/protocol.js +39 -2
- package/dist/web/review-service.d.ts +1 -0
- package/dist/web/review-service.js +1 -0
- package/dist/web/server.js +99 -6
- package/dist/web/session-runtime-registry.d.ts +138 -0
- package/dist/web/session-runtime-registry.js +471 -0
- package/dist/web/terminal-manager.js +23 -4
- package/dist/web/terminal-server.js +35 -6
- package/dist/web/workbench-controller.d.ts +82 -3
- package/dist/web/workbench-controller.js +771 -138
- package/dist/web/workspace-mutation-arbiter.d.ts +54 -0
- package/dist/web/workspace-mutation-arbiter.js +267 -0
- package/dist/web-client/assets/{DiffViewer-eaQNsnCh.js → DiffViewer-DqbZ02RN.js} +1 -1
- package/dist/web-client/assets/FilesPanel-Bu1Ab2kJ.js +2 -0
- package/dist/web-client/assets/{GitPanel-CnU4XVr7.js → GitPanel-BixIWb4k.js} +1 -1
- package/dist/web-client/assets/ReviewPanel-DsqJpku_.js +1 -0
- package/dist/web-client/assets/{TerminalPanel-Q5mSSsoK.js → TerminalPanel-DdjQP2mp.js} +14 -14
- package/dist/web-client/assets/index-30GT9Vnx.js +17 -0
- package/dist/web-client/assets/index-DQfpqPTD.css +1 -0
- package/dist/web-client/index.html +4 -4
- package/docs/architecture/v0.3.3-web-api.yaml +3205 -0
- package/docs/architecture/v0.3.4-stabilization-contract.md +32 -0
- package/docs/migration/v0.3.2-to-v0.3.3.md +62 -0
- package/docs/migration/v0.3.3-to-v0.3.4.md +36 -0
- package/docs/plan/v0.3.3-plan.md +1113 -0
- package/docs/plan/v0.3.4-stabilization-plan.md +89 -0
- package/docs/test/v0.3.3-web-workbench-e2e-plan.md +79 -0
- package/docs/test/v0.3.4-stabilization-e2e-plan.md +54 -0
- package/npm-shrinkwrap.json +379 -143
- package/package.json +12 -1
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js.map +0 -1
- package/dist/commands/context-commands.d.ts.map +0 -1
- package/dist/commands/context-commands.js.map +0 -1
- package/dist/commands/context-tool-command-handlers.d.ts.map +0 -1
- package/dist/commands/context-tool-command-handlers.js.map +0 -1
- package/dist/commands/core-command-handlers.d.ts.map +0 -1
- package/dist/commands/core-command-handlers.js.map +0 -1
- package/dist/commands/diagnostic-command-handlers.d.ts.map +0 -1
- package/dist/commands/diagnostic-command-handlers.js.map +0 -1
- package/dist/commands/diagnostic-commands.d.ts.map +0 -1
- package/dist/commands/diagnostic-commands.js.map +0 -1
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/model-command-handlers.d.ts.map +0 -1
- package/dist/commands/model-command-handlers.js.map +0 -1
- package/dist/commands/model-commands.d.ts.map +0 -1
- package/dist/commands/model-commands.js.map +0 -1
- package/dist/commands/parser.d.ts.map +0 -1
- package/dist/commands/parser.js.map +0 -1
- package/dist/commands/registry.d.ts.map +0 -1
- package/dist/commands/registry.js.map +0 -1
- package/dist/commands/session-command-handlers.d.ts.map +0 -1
- package/dist/commands/session-command-handlers.js.map +0 -1
- package/dist/commands/session-commands.d.ts.map +0 -1
- package/dist/commands/session-commands.js.map +0 -1
- package/dist/commands/system-commands.d.ts.map +0 -1
- package/dist/commands/system-commands.js.map +0 -1
- package/dist/commands/target-command.d.ts.map +0 -1
- package/dist/commands/target-command.js.map +0 -1
- package/dist/commands/tool-commands.d.ts.map +0 -1
- package/dist/commands/tool-commands.js.map +0 -1
- package/dist/commands/types.d.ts.map +0 -1
- package/dist/commands/types.js.map +0 -1
- package/dist/commands/workflow-command-handlers.d.ts.map +0 -1
- package/dist/commands/workflow-command-handlers.js.map +0 -1
- package/dist/commands/workflow-commands.d.ts.map +0 -1
- package/dist/commands/workflow-commands.js.map +0 -1
- package/dist/core/checkpoint.d.ts.map +0 -1
- package/dist/core/checkpoint.js.map +0 -1
- package/dist/core/cost-tracker.d.ts.map +0 -1
- package/dist/core/cost-tracker.js.map +0 -1
- package/dist/core/security-warning.d.ts.map +0 -1
- package/dist/core/security-warning.js.map +0 -1
- package/dist/core/strategy-tracker.d.ts.map +0 -1
- package/dist/core/strategy-tracker.js.map +0 -1
- package/dist/core/tool-artifacts.d.ts.map +0 -1
- package/dist/core/tool-artifacts.js.map +0 -1
- package/dist/core/warn-dedup.d.ts.map +0 -1
- package/dist/core/warn-dedup.js.map +0 -1
- package/dist/framework/agent-mode.d.ts.map +0 -1
- package/dist/framework/agent-mode.js.map +0 -1
- package/dist/framework/external-assertion.d.ts.map +0 -1
- package/dist/framework/external-assertion.js.map +0 -1
- package/dist/framework/index.d.ts.map +0 -1
- package/dist/framework/index.js.map +0 -1
- package/dist/framework/loop-budget-contract.d.ts.map +0 -1
- package/dist/framework/loop-budget-contract.js.map +0 -1
- package/dist/framework/prompt.d.ts.map +0 -1
- package/dist/framework/prompt.js.map +0 -1
- package/dist/framework/query.d.ts.map +0 -1
- package/dist/framework/query.js.map +0 -1
- package/dist/framework/stop-decision.d.ts.map +0 -1
- package/dist/framework/stop-decision.js.map +0 -1
- package/dist/framework/store.d.ts.map +0 -1
- package/dist/framework/store.js.map +0 -1
- package/dist/framework/tool-call-orchestrator.d.ts.map +0 -1
- package/dist/framework/tool-call-orchestrator.js.map +0 -1
- package/dist/framework/tool-serializer.d.ts.map +0 -1
- package/dist/framework/tool-serializer.js.map +0 -1
- package/dist/framework/tool-state.d.ts.map +0 -1
- package/dist/framework/tool-state.js.map +0 -1
- package/dist/framework/tool.d.ts.map +0 -1
- package/dist/framework/tool.js.map +0 -1
- package/dist/harness/assembler.d.ts.map +0 -1
- package/dist/harness/assembler.js.map +0 -1
- package/dist/harness/capability-profile.d.ts.map +0 -1
- package/dist/harness/capability-profile.js.map +0 -1
- package/dist/harness/capsule.d.ts.map +0 -1
- package/dist/harness/capsule.js.map +0 -1
- package/dist/harness/compact-benchmark-corpus.d.ts.map +0 -1
- package/dist/harness/compact-benchmark-corpus.js.map +0 -1
- package/dist/harness/context-harness.d.ts.map +0 -1
- package/dist/harness/context-harness.js.map +0 -1
- package/dist/harness/contract.d.ts.map +0 -1
- package/dist/harness/contract.js.map +0 -1
- package/dist/harness/drift-guard.d.ts.map +0 -1
- package/dist/harness/drift-guard.js.map +0 -1
- package/dist/harness/evidence.d.ts.map +0 -1
- package/dist/harness/evidence.js.map +0 -1
- package/dist/harness/index.d.ts.map +0 -1
- package/dist/harness/index.js.map +0 -1
- package/dist/harness/intent.d.ts.map +0 -1
- package/dist/harness/intent.js.map +0 -1
- package/dist/harness/ledger.d.ts.map +0 -1
- package/dist/harness/ledger.js.map +0 -1
- package/dist/harness/progress-controller.d.ts.map +0 -1
- package/dist/harness/progress-controller.js.map +0 -1
- package/dist/harness/state.d.ts.map +0 -1
- package/dist/harness/state.js.map +0 -1
- package/dist/harness/stop-controller.d.ts.map +0 -1
- package/dist/harness/stop-controller.js.map +0 -1
- package/dist/harness/turn-summary.d.ts.map +0 -1
- package/dist/harness/turn-summary.js.map +0 -1
- package/dist/harness/types.d.ts.map +0 -1
- package/dist/harness/types.js.map +0 -1
- package/dist/harness/verification.d.ts.map +0 -1
- package/dist/harness/verification.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/memory/embeddings.d.ts.map +0 -1
- package/dist/memory/embeddings.js.map +0 -1
- package/dist/memory/entrypoint.d.ts.map +0 -1
- package/dist/memory/entrypoint.js.map +0 -1
- package/dist/memory/index.d.ts.map +0 -1
- package/dist/memory/index.js.map +0 -1
- package/dist/memory/prompt-context.d.ts.map +0 -1
- package/dist/memory/prompt-context.js.map +0 -1
- package/dist/memory/prompts.d.ts.map +0 -1
- package/dist/memory/prompts.js.map +0 -1
- package/dist/memory/relevant-finder.d.ts.map +0 -1
- package/dist/memory/relevant-finder.js.map +0 -1
- package/dist/memory/semantic-config.d.ts.map +0 -1
- package/dist/memory/semantic-config.js.map +0 -1
- package/dist/memory/semantic-search.d.ts.map +0 -1
- package/dist/memory/semantic-search.js.map +0 -1
- package/dist/memory/storage.d.ts.map +0 -1
- package/dist/memory/storage.js.map +0 -1
- package/dist/memory/store.d.ts.map +0 -1
- package/dist/memory/store.js.map +0 -1
- package/dist/memory/team-paths.d.ts.map +0 -1
- package/dist/memory/team-paths.js.map +0 -1
- package/dist/memory/types.d.ts.map +0 -1
- package/dist/memory/types.js.map +0 -1
- package/dist/memory/validation.d.ts.map +0 -1
- package/dist/memory/validation.js.map +0 -1
- package/dist/memory/vector-store.d.ts.map +0 -1
- package/dist/memory/vector-store.js.map +0 -1
- package/dist/migration/command.d.ts.map +0 -1
- package/dist/migration/command.js.map +0 -1
- package/dist/migration/index.d.ts.map +0 -1
- package/dist/migration/index.js.map +0 -1
- package/dist/migration/migrate.d.ts.map +0 -1
- package/dist/migration/migrate.js.map +0 -1
- package/dist/migration/types.d.ts.map +0 -1
- package/dist/migration/types.js.map +0 -1
- package/dist/print-ui/launch.d.ts.map +0 -1
- package/dist/print-ui/launch.js.map +0 -1
- package/dist/product/environment.d.ts.map +0 -1
- package/dist/product/environment.js.map +0 -1
- package/dist/product/identity.d.ts.map +0 -1
- package/dist/product/identity.js.map +0 -1
- package/dist/product/index.d.ts.map +0 -1
- package/dist/product/index.js.map +0 -1
- package/dist/product/paths.d.ts.map +0 -1
- package/dist/product/paths.js.map +0 -1
- package/dist/product/version.d.ts.map +0 -1
- package/dist/product/version.js.map +0 -1
- package/dist/runtime/agent-loop.d.ts.map +0 -1
- package/dist/runtime/agent-loop.js.map +0 -1
- package/dist/runtime/agent-runtime-controller.d.ts.map +0 -1
- package/dist/runtime/agent-runtime-controller.js.map +0 -1
- package/dist/runtime/agent-runtime-protocol.d.ts.map +0 -1
- package/dist/runtime/agent-runtime-protocol.js.map +0 -1
- package/dist/runtime/agent-runtime-runner.d.ts.map +0 -1
- package/dist/runtime/agent-runtime-runner.js.map +0 -1
- package/dist/runtime/agent-status.d.ts.map +0 -1
- package/dist/runtime/agent-status.js.map +0 -1
- package/dist/runtime/aggregate-tool-presenter.d.ts.map +0 -1
- package/dist/runtime/aggregate-tool-presenter.js.map +0 -1
- package/dist/runtime/batch-read-service.d.ts.map +0 -1
- package/dist/runtime/batch-read-service.js.map +0 -1
- package/dist/runtime/builtin-tool-provider.d.ts.map +0 -1
- package/dist/runtime/builtin-tool-provider.js.map +0 -1
- package/dist/runtime/capabilities/compiler.d.ts.map +0 -1
- package/dist/runtime/capabilities/compiler.js.map +0 -1
- package/dist/runtime/capabilities/index.d.ts.map +0 -1
- package/dist/runtime/capabilities/index.js.map +0 -1
- package/dist/runtime/capabilities/types.d.ts.map +0 -1
- package/dist/runtime/capabilities/types.js.map +0 -1
- package/dist/runtime/capability-receipt-journal.d.ts.map +0 -1
- package/dist/runtime/capability-receipt-journal.js.map +0 -1
- package/dist/runtime/capability-step-factory.d.ts.map +0 -1
- package/dist/runtime/capability-step-factory.js.map +0 -1
- package/dist/runtime/compact-transaction.d.ts.map +0 -1
- package/dist/runtime/compact-transaction.js.map +0 -1
- package/dist/runtime/composer/buffer.d.ts.map +0 -1
- package/dist/runtime/composer/buffer.js.map +0 -1
- package/dist/runtime/composer/grapheme.d.ts.map +0 -1
- package/dist/runtime/composer/grapheme.js.map +0 -1
- package/dist/runtime/composer/history.d.ts.map +0 -1
- package/dist/runtime/composer/history.js.map +0 -1
- package/dist/runtime/composer/layout.d.ts.map +0 -1
- package/dist/runtime/composer/layout.js.map +0 -1
- package/dist/runtime/core-tools/descriptors.d.ts.map +0 -1
- package/dist/runtime/core-tools/descriptors.js.map +0 -1
- package/dist/runtime/durable-tool-receipt-reader.d.ts.map +0 -1
- package/dist/runtime/durable-tool-receipt-reader.js.map +0 -1
- package/dist/runtime/first-party-core-provider.d.ts.map +0 -1
- package/dist/runtime/first-party-core-provider.js.map +0 -1
- package/dist/runtime/first-party-long-tail-provider.d.ts.map +0 -1
- package/dist/runtime/first-party-long-tail-provider.js.map +0 -1
- package/dist/runtime/first-party-tool-services.d.ts.map +0 -1
- package/dist/runtime/first-party-tool-services.js.map +0 -1
- package/dist/runtime/first-party-tool-universe.d.ts.map +0 -1
- package/dist/runtime/first-party-tool-universe.js.map +0 -1
- package/dist/runtime/goal-lifecycle-v2.d.ts.map +0 -1
- package/dist/runtime/goal-lifecycle-v2.js.map +0 -1
- package/dist/runtime/goal-runtime-coordinator.d.ts.map +0 -1
- package/dist/runtime/goal-runtime-coordinator.js.map +0 -1
- package/dist/runtime/goals/completion-audit.d.ts.map +0 -1
- package/dist/runtime/goals/completion-audit.js.map +0 -1
- package/dist/runtime/goals/evidence.d.ts.map +0 -1
- package/dist/runtime/goals/evidence.js.map +0 -1
- package/dist/runtime/goals/objective.d.ts.map +0 -1
- package/dist/runtime/goals/objective.js.map +0 -1
- package/dist/runtime/goals/presentation.d.ts.map +0 -1
- package/dist/runtime/goals/presentation.js.map +0 -1
- package/dist/runtime/goals/types.d.ts.map +0 -1
- package/dist/runtime/goals/types.js.map +0 -1
- package/dist/runtime/harness-confluence.d.ts.map +0 -1
- package/dist/runtime/harness-confluence.js.map +0 -1
- package/dist/runtime/harness-eval.d.ts.map +0 -1
- package/dist/runtime/harness-eval.js.map +0 -1
- package/dist/runtime/harness-metrics.d.ts.map +0 -1
- package/dist/runtime/harness-metrics.js.map +0 -1
- package/dist/runtime/legacy-session-importer.d.ts.map +0 -1
- package/dist/runtime/legacy-session-importer.js.map +0 -1
- package/dist/runtime/legacy-thread-materializer.d.ts.map +0 -1
- package/dist/runtime/legacy-thread-materializer.js.map +0 -1
- package/dist/runtime/long-tail-tools/descriptors.d.ts.map +0 -1
- package/dist/runtime/long-tail-tools/descriptors.js.map +0 -1
- package/dist/runtime/loop-budget.d.ts.map +0 -1
- package/dist/runtime/loop-budget.js.map +0 -1
- package/dist/runtime/mcp/first-party-mcp-adapter.d.ts.map +0 -1
- package/dist/runtime/mcp/first-party-mcp-adapter.js.map +0 -1
- package/dist/runtime/mcp/first-party-mcp-config.d.ts.map +0 -1
- package/dist/runtime/mcp/first-party-mcp-config.js.map +0 -1
- package/dist/runtime/mcp/index.d.ts.map +0 -1
- package/dist/runtime/mcp/index.js.map +0 -1
- package/dist/runtime/mcp/lazy-mcp-runtime.d.ts.map +0 -1
- package/dist/runtime/mcp/lazy-mcp-runtime.js.map +0 -1
- package/dist/runtime/mcp/types.d.ts.map +0 -1
- package/dist/runtime/mcp/types.js.map +0 -1
- package/dist/runtime/model-coordinator.d.ts.map +0 -1
- package/dist/runtime/model-coordinator.js.map +0 -1
- package/dist/runtime/orion-runtime-v1.d.ts.map +0 -1
- package/dist/runtime/orion-runtime-v1.js.map +0 -1
- package/dist/runtime/orion-session-runner.d.ts.map +0 -1
- package/dist/runtime/orion-session-runner.js.map +0 -1
- package/dist/runtime/plan-review.d.ts.map +0 -1
- package/dist/runtime/plan-review.js.map +0 -1
- package/dist/runtime/product-bootstrap.d.ts.map +0 -1
- package/dist/runtime/product-bootstrap.js.map +0 -1
- package/dist/runtime/product-orion-runtime.d.ts.map +0 -1
- package/dist/runtime/product-orion-runtime.js.map +0 -1
- package/dist/runtime/prompts/index.d.ts.map +0 -1
- package/dist/runtime/prompts/index.js.map +0 -1
- package/dist/runtime/prompts/prompt-registry.d.ts.map +0 -1
- package/dist/runtime/prompts/prompt-registry.js.map +0 -1
- package/dist/runtime/prompts/types.d.ts.map +0 -1
- package/dist/runtime/prompts/types.js.map +0 -1
- package/dist/runtime/protocol/canonical.d.ts.map +0 -1
- package/dist/runtime/protocol/canonical.js.map +0 -1
- package/dist/runtime/protocol/index.d.ts.map +0 -1
- package/dist/runtime/protocol/index.js.map +0 -1
- package/dist/runtime/protocol/runtime-protocol-v1.d.ts.map +0 -1
- package/dist/runtime/protocol/runtime-protocol-v1.js.map +0 -1
- package/dist/runtime/release-receipts.d.ts.map +0 -1
- package/dist/runtime/release-receipts.js.map +0 -1
- package/dist/runtime/resource-scope.d.ts.map +0 -1
- package/dist/runtime/resource-scope.js.map +0 -1
- package/dist/runtime/rich-text/ansi-parser.d.ts.map +0 -1
- package/dist/runtime/rich-text/ansi-parser.js.map +0 -1
- package/dist/runtime/rich-text/layout.d.ts.map +0 -1
- package/dist/runtime/rich-text/layout.js.map +0 -1
- package/dist/runtime/rich-text/markdown-parser.d.ts.map +0 -1
- package/dist/runtime/rich-text/markdown-parser.js.map +0 -1
- package/dist/runtime/rich-text/sanitizer.d.ts.map +0 -1
- package/dist/runtime/rich-text/sanitizer.js.map +0 -1
- package/dist/runtime/rich-text/types.d.ts.map +0 -1
- package/dist/runtime/rich-text/types.js.map +0 -1
- package/dist/runtime/runtime-event-buffer.d.ts.map +0 -1
- package/dist/runtime/runtime-event-buffer.js.map +0 -1
- package/dist/runtime/runtime-services.d.ts.map +0 -1
- package/dist/runtime/runtime-services.js.map +0 -1
- package/dist/runtime/session-composer-control.d.ts.map +0 -1
- package/dist/runtime/session-composer-control.js.map +0 -1
- package/dist/runtime/session-history-recovery.d.ts.map +0 -1
- package/dist/runtime/session-history-recovery.js.map +0 -1
- package/dist/runtime/skills/bounded-lru-cache.d.ts.map +0 -1
- package/dist/runtime/skills/bounded-lru-cache.js.map +0 -1
- package/dist/runtime/skills/filesystem-skill-provider.d.ts.map +0 -1
- package/dist/runtime/skills/filesystem-skill-provider.js.map +0 -1
- package/dist/runtime/skills/index.d.ts.map +0 -1
- package/dist/runtime/skills/index.js.map +0 -1
- package/dist/runtime/skills/lazy-skill-runtime.d.ts.map +0 -1
- package/dist/runtime/skills/lazy-skill-runtime.js.map +0 -1
- package/dist/runtime/skills/types.d.ts.map +0 -1
- package/dist/runtime/skills/types.js.map +0 -1
- package/dist/runtime/step-snapshot.d.ts.map +0 -1
- package/dist/runtime/step-snapshot.js.map +0 -1
- package/dist/runtime/subagent-thread-runtime.d.ts.map +0 -1
- package/dist/runtime/subagent-thread-runtime.js.map +0 -1
- package/dist/runtime/subagents/budget.d.ts.map +0 -1
- package/dist/runtime/subagents/budget.js.map +0 -1
- package/dist/runtime/subagents/child-executor-guard.d.ts.map +0 -1
- package/dist/runtime/subagents/child-executor-guard.js.map +0 -1
- package/dist/runtime/subagents/context-builder.d.ts.map +0 -1
- package/dist/runtime/subagents/context-builder.js.map +0 -1
- package/dist/runtime/subagents/index.d.ts.map +0 -1
- package/dist/runtime/subagents/index.js.map +0 -1
- package/dist/runtime/subagents/parent-step-fork.d.ts.map +0 -1
- package/dist/runtime/subagents/parent-step-fork.js.map +0 -1
- package/dist/runtime/subagents/policy.d.ts.map +0 -1
- package/dist/runtime/subagents/policy.js.map +0 -1
- package/dist/runtime/subagents/presets.d.ts.map +0 -1
- package/dist/runtime/subagents/presets.js.map +0 -1
- package/dist/runtime/subagents/production.d.ts.map +0 -1
- package/dist/runtime/subagents/production.js.map +0 -1
- package/dist/runtime/subagents/provider-gate.d.ts.map +0 -1
- package/dist/runtime/subagents/provider-gate.js.map +0 -1
- package/dist/runtime/subagents/receipt-journal.d.ts.map +0 -1
- package/dist/runtime/subagents/receipt-journal.js.map +0 -1
- package/dist/runtime/subagents/research-artifact.d.ts.map +0 -1
- package/dist/runtime/subagents/research-artifact.js.map +0 -1
- package/dist/runtime/subagents/research-citation.d.ts.map +0 -1
- package/dist/runtime/subagents/research-citation.js.map +0 -1
- package/dist/runtime/subagents/research-contract.d.ts.map +0 -1
- package/dist/runtime/subagents/research-contract.js.map +0 -1
- package/dist/runtime/subagents/research-quality.d.ts.map +0 -1
- package/dist/runtime/subagents/research-quality.js.map +0 -1
- package/dist/runtime/subagents/research-renderer.d.ts.map +0 -1
- package/dist/runtime/subagents/research-renderer.js.map +0 -1
- package/dist/runtime/subagents/research-types.d.ts.map +0 -1
- package/dist/runtime/subagents/research-types.js.map +0 -1
- package/dist/runtime/subagents/result-parser.d.ts.map +0 -1
- package/dist/runtime/subagents/result-parser.js.map +0 -1
- package/dist/runtime/subagents/runner.d.ts.map +0 -1
- package/dist/runtime/subagents/runner.js.map +0 -1
- package/dist/runtime/subagents/runtime-contract.d.ts.map +0 -1
- package/dist/runtime/subagents/runtime-contract.js.map +0 -1
- package/dist/runtime/subagents/runtime-integration.d.ts.map +0 -1
- package/dist/runtime/subagents/runtime-integration.js.map +0 -1
- package/dist/runtime/subagents/supervisor.d.ts.map +0 -1
- package/dist/runtime/subagents/supervisor.js.map +0 -1
- package/dist/runtime/subagents/tool.d.ts.map +0 -1
- package/dist/runtime/subagents/tool.js.map +0 -1
- package/dist/runtime/subagents/types.d.ts.map +0 -1
- package/dist/runtime/subagents/types.js.map +0 -1
- package/dist/runtime/subagents/web-research-adapter.d.ts.map +0 -1
- package/dist/runtime/subagents/web-research-adapter.js.map +0 -1
- package/dist/runtime/task-context-service.d.ts.map +0 -1
- package/dist/runtime/task-context-service.js.map +0 -1
- package/dist/runtime/thread-admission.d.ts.map +0 -1
- package/dist/runtime/thread-admission.js.map +0 -1
- package/dist/runtime/thread-compact-persistence.d.ts.map +0 -1
- package/dist/runtime/thread-compact-persistence.js.map +0 -1
- package/dist/runtime/thread-event-store.d.ts.map +0 -1
- package/dist/runtime/thread-event-store.js.map +0 -1
- package/dist/runtime/thread-projection.d.ts.map +0 -1
- package/dist/runtime/thread-projection.js.map +0 -1
- package/dist/runtime/thread-runtime.d.ts.map +0 -1
- package/dist/runtime/thread-runtime.js.map +0 -1
- package/dist/runtime/thread-session-index.d.ts.map +0 -1
- package/dist/runtime/thread-session-index.js.map +0 -1
- package/dist/runtime/thread-session-view.d.ts.map +0 -1
- package/dist/runtime/thread-session-view.js.map +0 -1
- package/dist/runtime/thread-tool-journal.d.ts.map +0 -1
- package/dist/runtime/thread-tool-journal.js.map +0 -1
- package/dist/runtime/thread-ui-adapter.d.ts.map +0 -1
- package/dist/runtime/thread-ui-adapter.js.map +0 -1
- package/dist/runtime/tool-detail-repository.d.ts.map +0 -1
- package/dist/runtime/tool-detail-repository.js.map +0 -1
- package/dist/runtime/tool-gateway.d.ts.map +0 -1
- package/dist/runtime/tool-gateway.js.map +0 -1
- package/dist/runtime/tool-output-presentation.d.ts.map +0 -1
- package/dist/runtime/tool-output-presentation.js.map +0 -1
- package/dist/runtime/tool-receipt-validator.d.ts.map +0 -1
- package/dist/runtime/tool-receipt-validator.js.map +0 -1
- package/dist/runtime/turn-commit.d.ts.map +0 -1
- package/dist/runtime/turn-commit.js.map +0 -1
- package/dist/runtime/turn-controller.d.ts.map +0 -1
- package/dist/runtime/turn-controller.js.map +0 -1
- package/dist/runtime/ui-events.d.ts.map +0 -1
- package/dist/runtime/ui-events.js.map +0 -1
- package/dist/runtime/ui-view-model.d.ts.map +0 -1
- package/dist/runtime/ui-view-model.js.map +0 -1
- package/dist/services/atomic-write.d.ts.map +0 -1
- package/dist/services/atomic-write.js.map +0 -1
- package/dist/services/auth/auth.d.ts.map +0 -1
- package/dist/services/auth/auth.js.map +0 -1
- package/dist/services/auth/aws.d.ts.map +0 -1
- package/dist/services/auth/aws.js.map +0 -1
- package/dist/services/auth/index.d.ts.map +0 -1
- package/dist/services/auth/index.js.map +0 -1
- package/dist/services/auto-fix/autoFixConfig.d.ts.map +0 -1
- package/dist/services/auto-fix/autoFixConfig.js.map +0 -1
- package/dist/services/auto-fix/autoFixHook.d.ts.map +0 -1
- package/dist/services/auto-fix/autoFixHook.js.map +0 -1
- package/dist/services/auto-fix/autoFixRunner.d.ts.map +0 -1
- package/dist/services/auto-fix/autoFixRunner.js.map +0 -1
- package/dist/services/auto-fix/index.d.ts.map +0 -1
- package/dist/services/auto-fix/index.js.map +0 -1
- package/dist/services/bounded-response.d.ts.map +0 -1
- package/dist/services/bounded-response.js.map +0 -1
- package/dist/services/commit-plan.d.ts.map +0 -1
- package/dist/services/commit-plan.js.map +0 -1
- package/dist/services/compact/auto-compact.d.ts.map +0 -1
- package/dist/services/compact/auto-compact.js.map +0 -1
- package/dist/services/compact/compact.d.ts.map +0 -1
- package/dist/services/compact/compact.js.map +0 -1
- package/dist/services/compact/coordinator.d.ts.map +0 -1
- package/dist/services/compact/coordinator.js.map +0 -1
- package/dist/services/compact/fingerprint.d.ts.map +0 -1
- package/dist/services/compact/fingerprint.js.map +0 -1
- package/dist/services/compact/index.d.ts.map +0 -1
- package/dist/services/compact/index.js.map +0 -1
- package/dist/services/compact/planner.d.ts.map +0 -1
- package/dist/services/compact/planner.js.map +0 -1
- package/dist/services/compact/semantic-summary.d.ts.map +0 -1
- package/dist/services/compact/semantic-summary.js.map +0 -1
- package/dist/services/compact/summary-generator.d.ts.map +0 -1
- package/dist/services/compact/summary-generator.js.map +0 -1
- package/dist/services/compact/tool-call-groups.d.ts.map +0 -1
- package/dist/services/compact/tool-call-groups.js.map +0 -1
- package/dist/services/concurrent-sessions.d.ts.map +0 -1
- package/dist/services/concurrent-sessions.js.map +0 -1
- package/dist/services/config-dir.d.ts.map +0 -1
- package/dist/services/config-dir.js.map +0 -1
- package/dist/services/config.d.ts.map +0 -1
- package/dist/services/config.js.map +0 -1
- package/dist/services/diagnostic-tracking/diagnosticTracking.d.ts.map +0 -1
- package/dist/services/diagnostic-tracking/diagnosticTracking.js.map +0 -1
- package/dist/services/diagnostic-tracking/formatter.d.ts.map +0 -1
- package/dist/services/diagnostic-tracking/formatter.js.map +0 -1
- package/dist/services/diagnostic-tracking/index.d.ts.map +0 -1
- package/dist/services/diagnostic-tracking/index.js.map +0 -1
- package/dist/services/diagnostic-tracking/types.d.ts.map +0 -1
- package/dist/services/diagnostic-tracking/types.js.map +0 -1
- package/dist/services/doctor.d.ts.map +0 -1
- package/dist/services/doctor.js.map +0 -1
- package/dist/services/effort.d.ts.map +0 -1
- package/dist/services/effort.js.map +0 -1
- package/dist/services/file-context.d.ts.map +0 -1
- package/dist/services/file-context.js.map +0 -1
- package/dist/services/file-glob.d.ts.map +0 -1
- package/dist/services/file-glob.js.map +0 -1
- package/dist/services/file-lock.d.ts.map +0 -1
- package/dist/services/file-lock.js.map +0 -1
- package/dist/services/format.d.ts.map +0 -1
- package/dist/services/format.js.map +0 -1
- package/dist/services/global-config.d.ts.map +0 -1
- package/dist/services/global-config.js.map +0 -1
- package/dist/services/goal-storage.d.ts.map +0 -1
- package/dist/services/goal-storage.js.map +0 -1
- package/dist/services/llm.d.ts.map +0 -1
- package/dist/services/llm.js.map +0 -1
- package/dist/services/mcp/index.d.ts.map +0 -1
- package/dist/services/mcp/index.js.map +0 -1
- package/dist/services/mcp/transports.d.ts.map +0 -1
- package/dist/services/mcp/transports.js.map +0 -1
- package/dist/services/memory.d.ts.map +0 -1
- package/dist/services/memory.js.map +0 -1
- package/dist/services/model-catalog.d.ts.map +0 -1
- package/dist/services/model-catalog.js.map +0 -1
- package/dist/services/model-client-pool.d.ts.map +0 -1
- package/dist/services/model-client-pool.js.map +0 -1
- package/dist/services/model-context.d.ts.map +0 -1
- package/dist/services/model-context.js.map +0 -1
- package/dist/services/model-registry.d.ts.map +0 -1
- package/dist/services/model-registry.js.map +0 -1
- package/dist/services/project-instructions.d.ts.map +0 -1
- package/dist/services/project-instructions.js.map +0 -1
- package/dist/services/prompt-context.d.ts.map +0 -1
- package/dist/services/prompt-context.js.map +0 -1
- package/dist/services/provider-diagnostics.d.ts.map +0 -1
- package/dist/services/provider-diagnostics.js.map +0 -1
- package/dist/services/provider-resilience/circuit-breaker.d.ts.map +0 -1
- package/dist/services/provider-resilience/circuit-breaker.js.map +0 -1
- package/dist/services/provider-resilience/coordinator.d.ts.map +0 -1
- package/dist/services/provider-resilience/coordinator.js.map +0 -1
- package/dist/services/provider-resilience/error-classifier.d.ts.map +0 -1
- package/dist/services/provider-resilience/error-classifier.js.map +0 -1
- package/dist/services/provider-resilience/index.d.ts.map +0 -1
- package/dist/services/provider-resilience/index.js.map +0 -1
- package/dist/services/provider-resilience/request-gate.d.ts.map +0 -1
- package/dist/services/provider-resilience/request-gate.js.map +0 -1
- package/dist/services/provider-resilience/stream-recovery.d.ts.map +0 -1
- package/dist/services/provider-resilience/stream-recovery.js.map +0 -1
- package/dist/services/provider-resilience/types.d.ts.map +0 -1
- package/dist/services/provider-resilience/types.js.map +0 -1
- package/dist/services/redaction.d.ts.map +0 -1
- package/dist/services/redaction.js.map +0 -1
- package/dist/services/safe-project-reader.d.ts.map +0 -1
- package/dist/services/safe-project-reader.js.map +0 -1
- package/dist/services/session-index.d.ts.map +0 -1
- package/dist/services/session-index.js.map +0 -1
- package/dist/services/session-memory/index.d.ts.map +0 -1
- package/dist/services/session-memory/index.js.map +0 -1
- package/dist/services/session-memory/prompts.d.ts.map +0 -1
- package/dist/services/session-memory/prompts.js.map +0 -1
- package/dist/services/session-memory/sessionMemory.d.ts.map +0 -1
- package/dist/services/session-memory/sessionMemory.js.map +0 -1
- package/dist/services/session-storage.d.ts.map +0 -1
- package/dist/services/session-storage.js.map +0 -1
- package/dist/services/settings-coordinator.d.ts.map +0 -1
- package/dist/services/settings-coordinator.js.map +0 -1
- package/dist/services/settings-document-repository.d.ts.map +0 -1
- package/dist/services/settings-document-repository.js.map +0 -1
- package/dist/services/smart-routing.d.ts.map +0 -1
- package/dist/services/smart-routing.js.map +0 -1
- package/dist/services/storage-maintenance.d.ts.map +0 -1
- package/dist/services/storage-maintenance.js.map +0 -1
- package/dist/services/tool-allowlist.d.ts.map +0 -1
- package/dist/services/tool-allowlist.js.map +0 -1
- package/dist/services/usage-state.d.ts.map +0 -1
- package/dist/services/usage-state.js.map +0 -1
- package/dist/services/verification-profile.d.ts.map +0 -1
- package/dist/services/verification-profile.js.map +0 -1
- package/dist/services/web-search-adapters.d.ts.map +0 -1
- package/dist/services/web-search-adapters.js.map +0 -1
- package/dist/services/web-search-mcp.d.ts.map +0 -1
- package/dist/services/web-search-mcp.js.map +0 -1
- package/dist/services/web-search-provider.d.ts.map +0 -1
- package/dist/services/web-search-provider.js.map +0 -1
- package/dist/services/workspace-containment.d.ts.map +0 -1
- package/dist/services/workspace-containment.js.map +0 -1
- package/dist/services/workspace-diff.d.ts.map +0 -1
- package/dist/services/workspace-diff.js.map +0 -1
- package/dist/services/workspace-registry.d.ts.map +0 -1
- package/dist/services/workspace-registry.js.map +0 -1
- package/dist/services/workspace-state.d.ts.map +0 -1
- package/dist/services/workspace-state.js.map +0 -1
- package/dist/services/yaml-config.d.ts.map +0 -1
- package/dist/services/yaml-config.js.map +0 -1
- package/dist/terminal-ui/completion.d.ts.map +0 -1
- package/dist/terminal-ui/completion.js.map +0 -1
- package/dist/terminal-ui/editor.d.ts.map +0 -1
- package/dist/terminal-ui/editor.js.map +0 -1
- package/dist/terminal-ui/launch.d.ts.map +0 -1
- package/dist/terminal-ui/launch.js.map +0 -1
- package/dist/terminal-ui/output-queue.d.ts.map +0 -1
- package/dist/terminal-ui/output-queue.js.map +0 -1
- package/dist/terminal-ui/raw-editor.d.ts.map +0 -1
- package/dist/terminal-ui/raw-editor.js.map +0 -1
- package/dist/tools/_validate.d.ts.map +0 -1
- package/dist/tools/_validate.js.map +0 -1
- package/dist/tools/bash_security.d.ts.map +0 -1
- package/dist/tools/bash_security.js.map +0 -1
- package/dist/tools/core/common.d.ts.map +0 -1
- package/dist/tools/core/common.js.map +0 -1
- package/dist/tools/core/edit-file.d.ts.map +0 -1
- package/dist/tools/core/edit-file.js.map +0 -1
- package/dist/tools/core/exec-command.d.ts.map +0 -1
- package/dist/tools/core/exec-command.js.map +0 -1
- package/dist/tools/core/glob.d.ts.map +0 -1
- package/dist/tools/core/glob.js.map +0 -1
- package/dist/tools/core/grep.d.ts.map +0 -1
- package/dist/tools/core/grep.js.map +0 -1
- package/dist/tools/core/index.d.ts.map +0 -1
- package/dist/tools/core/index.js.map +0 -1
- package/dist/tools/core/list-files.d.ts.map +0 -1
- package/dist/tools/core/list-files.js.map +0 -1
- package/dist/tools/core/read-file.d.ts.map +0 -1
- package/dist/tools/core/read-file.js.map +0 -1
- package/dist/tools/core/write-file.d.ts.map +0 -1
- package/dist/tools/core/write-file.js.map +0 -1
- package/dist/tools/git.d.ts.map +0 -1
- package/dist/tools/git.js.map +0 -1
- package/dist/tools/lsp.d.ts.map +0 -1
- package/dist/tools/lsp.js.map +0 -1
- package/dist/tools/sandbox.d.ts.map +0 -1
- package/dist/tools/sandbox.js.map +0 -1
- package/dist/tools/todo.d.ts.map +0 -1
- package/dist/tools/todo.js.map +0 -1
- package/dist/tools/web.d.ts.map +0 -1
- package/dist/tools/web.js.map +0 -1
- package/dist/tui-core/frame.d.ts.map +0 -1
- package/dist/tui-core/frame.js.map +0 -1
- package/dist/tui-core/input-parser.d.ts.map +0 -1
- package/dist/tui-core/input-parser.js.map +0 -1
- package/dist/tui-core/style.d.ts.map +0 -1
- package/dist/tui-core/style.js.map +0 -1
- package/dist/tui-core/terminal-writer.d.ts.map +0 -1
- package/dist/tui-core/terminal-writer.js.map +0 -1
- package/dist/tui-ui/chrome-view-model.d.ts.map +0 -1
- package/dist/tui-ui/chrome-view-model.js.map +0 -1
- package/dist/tui-ui/inline-surface.d.ts.map +0 -1
- package/dist/tui-ui/inline-surface.js.map +0 -1
- package/dist/tui-ui/input-ownership.d.ts.map +0 -1
- package/dist/tui-ui/input-ownership.js.map +0 -1
- package/dist/tui-ui/launch.d.ts.map +0 -1
- package/dist/tui-ui/launch.js.map +0 -1
- package/dist/tui-ui/layout.d.ts.map +0 -1
- package/dist/tui-ui/layout.js.map +0 -1
- package/dist/tui-ui/pickers.d.ts.map +0 -1
- package/dist/tui-ui/pickers.js.map +0 -1
- package/dist/tui-ui/pixel-mascot.d.ts.map +0 -1
- package/dist/tui-ui/pixel-mascot.js.map +0 -1
- package/dist/tui-ui/render-scheduler.d.ts.map +0 -1
- package/dist/tui-ui/render-scheduler.js.map +0 -1
- package/dist/tui-ui/runner.d.ts.map +0 -1
- package/dist/tui-ui/runner.js.map +0 -1
- package/dist/tui-ui/state.d.ts.map +0 -1
- package/dist/tui-ui/state.js.map +0 -1
- package/dist/tui-ui/terminal-image.d.ts.map +0 -1
- package/dist/tui-ui/terminal-image.js.map +0 -1
- package/dist/tui-ui/theme-profile.d.ts.map +0 -1
- package/dist/tui-ui/theme-profile.js.map +0 -1
- package/dist/tui-ui/theme.d.ts.map +0 -1
- package/dist/tui-ui/theme.js.map +0 -1
- package/dist/tui-ui/transcript-cache.d.ts.map +0 -1
- package/dist/tui-ui/transcript-cache.js.map +0 -1
- package/dist/tui-ui/transcript-inspector-layout.d.ts.map +0 -1
- package/dist/tui-ui/transcript-inspector-layout.js.map +0 -1
- package/dist/tui-ui/transcript-inspector-surface.d.ts.map +0 -1
- package/dist/tui-ui/transcript-inspector-surface.js.map +0 -1
- package/dist/tui-ui/transcript-inspector.d.ts.map +0 -1
- package/dist/tui-ui/transcript-inspector.js.map +0 -1
- package/dist/tui-ui/transcript-layout.d.ts.map +0 -1
- package/dist/tui-ui/transcript-layout.js.map +0 -1
- package/dist/ui/box.d.ts.map +0 -1
- package/dist/ui/box.js.map +0 -1
- package/dist/ui/command-panel.d.ts.map +0 -1
- package/dist/ui/command-panel.js.map +0 -1
- package/dist/ui/file-completion.d.ts.map +0 -1
- package/dist/ui/file-completion.js.map +0 -1
- package/dist/ui/markdown.d.ts.map +0 -1
- package/dist/ui/markdown.js.map +0 -1
- package/dist/ui/multiline-input.d.ts.map +0 -1
- package/dist/ui/multiline-input.js.map +0 -1
- package/dist/ui/progress.d.ts.map +0 -1
- package/dist/ui/progress.js.map +0 -1
- package/dist/ui/shared/command-palette.d.ts.map +0 -1
- package/dist/ui/shared/command-palette.js.map +0 -1
- package/dist/ui/shared/command-suggestions.d.ts.map +0 -1
- package/dist/ui/shared/command-suggestions.js.map +0 -1
- package/dist/ui/shared/input-frame.d.ts.map +0 -1
- package/dist/ui/shared/input-frame.js.map +0 -1
- package/dist/ui/shared/text.d.ts.map +0 -1
- package/dist/ui/shared/text.js.map +0 -1
- package/dist/ui/shared/types.d.ts.map +0 -1
- package/dist/ui/shared/types.js.map +0 -1
- package/dist/ui/status-bar.d.ts.map +0 -1
- package/dist/ui/status-bar.js.map +0 -1
- package/dist/ui/stream-markdown.d.ts.map +0 -1
- package/dist/ui/stream-markdown.js.map +0 -1
- package/dist/ui/suggestions.d.ts.map +0 -1
- package/dist/ui/suggestions.js.map +0 -1
- package/dist/ui/tool-preview.d.ts.map +0 -1
- package/dist/ui/tool-preview.js.map +0 -1
- package/dist/ui/user-input.d.ts.map +0 -1
- package/dist/ui/user-input.js.map +0 -1
- package/dist/utils/debug-log.d.ts.map +0 -1
- package/dist/utils/debug-log.js.map +0 -1
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/json.d.ts.map +0 -1
- package/dist/utils/json.js.map +0 -1
- package/dist/utils/mask.d.ts.map +0 -1
- package/dist/utils/mask.js.map +0 -1
- package/dist/utils/observability.d.ts.map +0 -1
- package/dist/utils/observability.js.map +0 -1
- package/dist/utils/token-estimate.d.ts.map +0 -1
- package/dist/utils/token-estimate.js.map +0 -1
- package/dist/web/errors.d.ts.map +0 -1
- package/dist/web/errors.js.map +0 -1
- package/dist/web/event-hub.d.ts.map +0 -1
- package/dist/web/event-hub.js.map +0 -1
- package/dist/web/file-read-service.d.ts.map +0 -1
- package/dist/web/file-read-service.js.map +0 -1
- package/dist/web/git-read-model-service.d.ts.map +0 -1
- package/dist/web/git-read-model-service.js.map +0 -1
- package/dist/web/index.d.ts.map +0 -1
- package/dist/web/index.js.map +0 -1
- package/dist/web/launch.d.ts.map +0 -1
- package/dist/web/launch.js.map +0 -1
- package/dist/web/protocol.d.ts.map +0 -1
- package/dist/web/protocol.js.map +0 -1
- package/dist/web/review-service.d.ts.map +0 -1
- package/dist/web/review-service.js.map +0 -1
- package/dist/web/server.d.ts.map +0 -1
- package/dist/web/server.js.map +0 -1
- package/dist/web/terminal-manager.d.ts.map +0 -1
- package/dist/web/terminal-manager.js.map +0 -1
- package/dist/web/terminal-server.d.ts.map +0 -1
- package/dist/web/terminal-server.js.map +0 -1
- package/dist/web/workbench-controller.d.ts.map +0 -1
- package/dist/web/workbench-controller.js.map +0 -1
- package/dist/web-client/assets/FilesPanel-DYs1MhoM.js +0 -2
- package/dist/web-client/assets/ReviewPanel-BDxG670T.js +0 -1
- package/dist/web-client/assets/index-BWV5sIvw.css +0 -1
- package/dist/web-client/assets/index-VVUKj6FE.js +0 -17
|
@@ -100,7 +100,7 @@ class EmbeddingService {
|
|
|
100
100
|
input: text,
|
|
101
101
|
}, {
|
|
102
102
|
headers: {
|
|
103
|
-
|
|
103
|
+
Authorization: `Bearer ${apiKey}`,
|
|
104
104
|
'Content-Type': 'application/json',
|
|
105
105
|
},
|
|
106
106
|
timeout: 30000,
|
|
@@ -121,8 +121,7 @@ let defaultService = null;
|
|
|
121
121
|
function getEmbeddingService(config) {
|
|
122
122
|
if (!defaultService) {
|
|
123
123
|
// Auto-detect provider from environment
|
|
124
|
-
const provider = process.env[environment_1.ENV.EMBEDDING_PROVIDER] ||
|
|
125
|
-
(process.env.OLLAMA_BASE_URL ? 'ollama' : 'openai');
|
|
124
|
+
const provider = process.env[environment_1.ENV.EMBEDDING_PROVIDER] || (process.env.OLLAMA_BASE_URL ? 'ollama' : 'openai');
|
|
126
125
|
defaultService = new EmbeddingService({
|
|
127
126
|
provider: provider,
|
|
128
127
|
model: process.env[environment_1.ENV.EMBEDDING_MODEL],
|
package/dist/memory/prompts.js
CHANGED
|
@@ -24,7 +24,7 @@ function buildMemoryPrompt() {
|
|
|
24
24
|
'This directory already exists — write to it directly with the Write tool.',
|
|
25
25
|
'',
|
|
26
26
|
'You should build up this memory system over time so that future conversations',
|
|
27
|
-
|
|
27
|
+
"can have a complete picture of who the user is, how they'd like to collaborate,",
|
|
28
28
|
'what behaviors to avoid or repeat, and the context behind the work.',
|
|
29
29
|
'',
|
|
30
30
|
'If the user explicitly asks you to remember something, save it immediately.',
|
|
@@ -38,20 +38,128 @@ function extractKeywords(text, preserveCase = false) {
|
|
|
38
38
|
.filter(w => w.length >= 2);
|
|
39
39
|
// 去除常见停用词
|
|
40
40
|
const stopWords = new Set([
|
|
41
|
-
'the',
|
|
42
|
-
'
|
|
43
|
-
'
|
|
44
|
-
'
|
|
45
|
-
'
|
|
46
|
-
'
|
|
47
|
-
'
|
|
48
|
-
'
|
|
49
|
-
'
|
|
50
|
-
'
|
|
51
|
-
'
|
|
52
|
-
'
|
|
53
|
-
'
|
|
54
|
-
'
|
|
41
|
+
'the',
|
|
42
|
+
'a',
|
|
43
|
+
'an',
|
|
44
|
+
'and',
|
|
45
|
+
'or',
|
|
46
|
+
'but',
|
|
47
|
+
'in',
|
|
48
|
+
'on',
|
|
49
|
+
'at',
|
|
50
|
+
'to',
|
|
51
|
+
'for',
|
|
52
|
+
'of',
|
|
53
|
+
'with',
|
|
54
|
+
'by',
|
|
55
|
+
'from',
|
|
56
|
+
'as',
|
|
57
|
+
'is',
|
|
58
|
+
'was',
|
|
59
|
+
'are',
|
|
60
|
+
'were',
|
|
61
|
+
'been',
|
|
62
|
+
'be',
|
|
63
|
+
'have',
|
|
64
|
+
'has',
|
|
65
|
+
'had',
|
|
66
|
+
'do',
|
|
67
|
+
'does',
|
|
68
|
+
'did',
|
|
69
|
+
'will',
|
|
70
|
+
'would',
|
|
71
|
+
'could',
|
|
72
|
+
'should',
|
|
73
|
+
'may',
|
|
74
|
+
'might',
|
|
75
|
+
'must',
|
|
76
|
+
'can',
|
|
77
|
+
'this',
|
|
78
|
+
'that',
|
|
79
|
+
'these',
|
|
80
|
+
'those',
|
|
81
|
+
'it',
|
|
82
|
+
'its',
|
|
83
|
+
'they',
|
|
84
|
+
'them',
|
|
85
|
+
'their',
|
|
86
|
+
'we',
|
|
87
|
+
'our',
|
|
88
|
+
'you',
|
|
89
|
+
'your',
|
|
90
|
+
'he',
|
|
91
|
+
'him',
|
|
92
|
+
'his',
|
|
93
|
+
'she',
|
|
94
|
+
'her',
|
|
95
|
+
'i',
|
|
96
|
+
'me',
|
|
97
|
+
'my',
|
|
98
|
+
'not',
|
|
99
|
+
'no',
|
|
100
|
+
'yes',
|
|
101
|
+
'all',
|
|
102
|
+
'any',
|
|
103
|
+
'some',
|
|
104
|
+
'each',
|
|
105
|
+
'every',
|
|
106
|
+
'both',
|
|
107
|
+
'few',
|
|
108
|
+
'many',
|
|
109
|
+
'more',
|
|
110
|
+
'most',
|
|
111
|
+
'other',
|
|
112
|
+
'another',
|
|
113
|
+
'such',
|
|
114
|
+
'only',
|
|
115
|
+
'own',
|
|
116
|
+
'same',
|
|
117
|
+
'so',
|
|
118
|
+
'than',
|
|
119
|
+
'too',
|
|
120
|
+
'very',
|
|
121
|
+
'just',
|
|
122
|
+
'also',
|
|
123
|
+
'now',
|
|
124
|
+
'then',
|
|
125
|
+
'here',
|
|
126
|
+
'there',
|
|
127
|
+
'when',
|
|
128
|
+
'where',
|
|
129
|
+
'why',
|
|
130
|
+
'how',
|
|
131
|
+
'what',
|
|
132
|
+
'which',
|
|
133
|
+
'who',
|
|
134
|
+
'whom',
|
|
135
|
+
'whose',
|
|
136
|
+
'if',
|
|
137
|
+
'else',
|
|
138
|
+
'then',
|
|
139
|
+
'because',
|
|
140
|
+
'since',
|
|
141
|
+
'although',
|
|
142
|
+
'though',
|
|
143
|
+
'while',
|
|
144
|
+
'during',
|
|
145
|
+
'before',
|
|
146
|
+
'after',
|
|
147
|
+
'until',
|
|
148
|
+
'above',
|
|
149
|
+
'below',
|
|
150
|
+
'between',
|
|
151
|
+
'under',
|
|
152
|
+
'over',
|
|
153
|
+
'out',
|
|
154
|
+
'into',
|
|
155
|
+
'onto',
|
|
156
|
+
'about',
|
|
157
|
+
'against',
|
|
158
|
+
'through',
|
|
159
|
+
'across',
|
|
160
|
+
'along',
|
|
161
|
+
'around',
|
|
162
|
+
'again',
|
|
55
163
|
]);
|
|
56
164
|
// 停用词过滤始终大小写不敏感,否则 preserveCase 模式下 "The"/"And" 会漏过。
|
|
57
165
|
return words.filter(w => !stopWords.has(preserveCase ? w.toLowerCase() : w));
|
|
@@ -84,7 +192,9 @@ function calculateKeywordMatch(queryKeywords, memoryEntry, caseSensitive = false
|
|
|
84
192
|
for (const mk of memoryKeywords) {
|
|
85
193
|
const compareMk = caseSensitive ? mk : mk.toLowerCase();
|
|
86
194
|
// 精确匹配或部分匹配(包含关系)
|
|
87
|
-
if (compareMk === compareQk ||
|
|
195
|
+
if (compareMk === compareQk ||
|
|
196
|
+
compareMk.includes(compareQk) ||
|
|
197
|
+
compareQk.includes(compareMk)) {
|
|
88
198
|
matchedKeywords.push(qk);
|
|
89
199
|
matchCount++;
|
|
90
200
|
break;
|
|
@@ -292,11 +292,13 @@ class VectorStore {
|
|
|
292
292
|
const scopedIds = projectKeys.map(projectKey => this.memoryId(projectKey, name));
|
|
293
293
|
const idPlaceholders = scopedIds.map(() => '?').join(', ');
|
|
294
294
|
const projectPlaceholders = projectKeys.map(() => '?').join(', ');
|
|
295
|
-
const rows = this.db
|
|
295
|
+
const rows = this.db
|
|
296
|
+
.prepare(`
|
|
296
297
|
SELECT id FROM memories
|
|
297
298
|
WHERE id IN (${idPlaceholders})
|
|
298
299
|
OR (id = ? AND project IN (${projectPlaceholders}))
|
|
299
|
-
`)
|
|
300
|
+
`)
|
|
301
|
+
.all(...scopedIds, name, ...projectKeys);
|
|
300
302
|
this.deleteMemoryIds(rows.map(row => row.id));
|
|
301
303
|
}
|
|
302
304
|
/** Search by similarity */
|
|
@@ -409,12 +411,14 @@ class VectorStore {
|
|
|
409
411
|
}
|
|
410
412
|
/** Count rows by project key for storage maintenance diagnostics. */
|
|
411
413
|
getProjectStats() {
|
|
412
|
-
const rows = this.db
|
|
414
|
+
const rows = this.db
|
|
415
|
+
.prepare(`
|
|
413
416
|
SELECT COALESCE(project, 'global') as project, COUNT(*) as rows
|
|
414
417
|
FROM memories
|
|
415
418
|
GROUP BY COALESCE(project, 'global')
|
|
416
419
|
ORDER BY rows DESC, project ASC
|
|
417
|
-
`)
|
|
420
|
+
`)
|
|
421
|
+
.all();
|
|
418
422
|
return rows.map(row => ({ project: row.project, rows: row.rows }));
|
|
419
423
|
}
|
|
420
424
|
/** Delete all rows for projects that are not in validProjectKeys. */
|
|
@@ -430,8 +434,7 @@ class VectorStore {
|
|
|
430
434
|
return { orphanProjects, deletedRows };
|
|
431
435
|
}
|
|
432
436
|
deleteProjectRows(project) {
|
|
433
|
-
const ids = this.db.prepare('SELECT id FROM memories WHERE project = ?').all(project)
|
|
434
|
-
.map(row => row.id);
|
|
437
|
+
const ids = this.db.prepare('SELECT id FROM memories WHERE project = ?').all(project).map(row => row.id);
|
|
435
438
|
if (ids.length === 0)
|
|
436
439
|
return 0;
|
|
437
440
|
this.deleteMemoryIds(ids);
|
|
@@ -449,7 +452,9 @@ class VectorStore {
|
|
|
449
452
|
if (!this.hasTable('memory_vectors') || !this.hasTable('vec_memories') || ids.length === 0)
|
|
450
453
|
return;
|
|
451
454
|
const placeholders = ids.map(() => '?').join(', ');
|
|
452
|
-
this.db
|
|
455
|
+
this.db
|
|
456
|
+
.prepare(`DELETE FROM vec_memories WHERE rowid IN (SELECT vector_rowid FROM memory_vectors WHERE memory_id IN (${placeholders}))`)
|
|
457
|
+
.run(...ids);
|
|
453
458
|
this.db.prepare(`DELETE FROM memory_vectors WHERE memory_id IN (${placeholders})`).run(...ids);
|
|
454
459
|
}
|
|
455
460
|
/** Canonical project key used by v0.2.8+ storage. */
|
|
@@ -467,7 +472,7 @@ class VectorStore {
|
|
|
467
472
|
return projectKey === 'global' ? name : `${projectKey}:${name}`;
|
|
468
473
|
}
|
|
469
474
|
hasTable(name) {
|
|
470
|
-
const row = this.db.prepare(
|
|
475
|
+
const row = this.db.prepare('SELECT name FROM sqlite_master WHERE name = ?').get(name);
|
|
471
476
|
return !!row;
|
|
472
477
|
}
|
|
473
478
|
/** Close database */
|
|
@@ -42,14 +42,7 @@ const PROJECT_RENAME_MAP = [
|
|
|
42
42
|
{ from: 'OPENHORSE.local.md', to: 'ORION.local.md' },
|
|
43
43
|
];
|
|
44
44
|
/** Subdirectories whose contents are copied verbatim. */
|
|
45
|
-
const VERBATIM_DIRS = new Set([
|
|
46
|
-
'projects',
|
|
47
|
-
'skills',
|
|
48
|
-
'cost',
|
|
49
|
-
'cache',
|
|
50
|
-
'backups',
|
|
51
|
-
'migration-logs',
|
|
52
|
-
]);
|
|
45
|
+
const VERBATIM_DIRS = new Set(['projects', 'skills', 'cost', 'cache', 'backups', 'migration-logs']);
|
|
53
46
|
/** Directories whose parent is renamed (e.g. backups → backups/openhorse). */
|
|
54
47
|
const NESTED_DIRS = {
|
|
55
48
|
backups: 'openhorse',
|
|
@@ -144,9 +137,7 @@ function verifySqlite(path) {
|
|
|
144
137
|
try {
|
|
145
138
|
db = (0, vector_store_1.openBetterSqlite3)(path, { readonly: true });
|
|
146
139
|
const result = db.pragma('integrity_check');
|
|
147
|
-
return result?.[0]?.integrity_check === 'ok'
|
|
148
|
-
? { status: 'verified' }
|
|
149
|
-
: { status: 'invalid' };
|
|
140
|
+
return result?.[0]?.integrity_check === 'ok' ? { status: 'verified' } : { status: 'invalid' };
|
|
150
141
|
}
|
|
151
142
|
catch (error) {
|
|
152
143
|
// ABI/module failures are environmental and actionable, not evidence that
|
|
@@ -345,7 +336,12 @@ function migrateProjectFiles(projectPath, options = {}) {
|
|
|
345
336
|
const warnings = [];
|
|
346
337
|
const resolved = (0, path_1.resolve)(projectPath);
|
|
347
338
|
if (!(0, fs_1.existsSync)(resolved)) {
|
|
348
|
-
return {
|
|
339
|
+
return {
|
|
340
|
+
success: false,
|
|
341
|
+
renamed,
|
|
342
|
+
conflicts,
|
|
343
|
+
warnings: [`Project path ${resolved} does not exist.`],
|
|
344
|
+
};
|
|
349
345
|
}
|
|
350
346
|
for (const { from, to } of PROJECT_RENAME_MAP) {
|
|
351
347
|
const srcPath = (0, path_1.join)(resolved, from);
|
|
@@ -132,6 +132,7 @@ export declare class AgentRuntimeController {
|
|
|
132
132
|
reviewPlan(input: Parameters<NonNullable<import('./agent-runtime-runner').AgentRuntimeRunnerV1['reviewPlan']>>[0]): Promise<import('./plan-review').PlanReviewResolutionReceiptV1>;
|
|
133
133
|
private runTurn;
|
|
134
134
|
private handleRunLoopError;
|
|
135
|
+
private handleCommandError;
|
|
135
136
|
private synchronizeSettingsAtLogicalBoundary;
|
|
136
137
|
private emitAppend;
|
|
137
138
|
private emitStatus;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AgentRuntimeController = exports.FollowupQueueConflictError = void 0;
|
|
4
|
+
const async_hooks_1 = require("async_hooks");
|
|
4
5
|
const crypto_1 = require("crypto");
|
|
5
6
|
const commands_1 = require("../commands");
|
|
6
7
|
const parser_1 = require("../commands/parser");
|
|
@@ -333,21 +334,7 @@ class AgentRuntimeController {
|
|
|
333
334
|
}
|
|
334
335
|
if (parsedInput.isCommand) {
|
|
335
336
|
const command = (0, commands_1.findCommand)(parsedInput.name);
|
|
336
|
-
|
|
337
|
-
.catch(error => this.handleRunLoopError(error))
|
|
338
|
-
.finally(() => {
|
|
339
|
-
this.activeRun = null;
|
|
340
|
-
});
|
|
341
|
-
return { type: 'command_handled' };
|
|
342
|
-
}
|
|
343
|
-
if (this.turnController.hasActiveTurn()) {
|
|
344
|
-
const parsed = (0, parser_1.parseInput)(submitted);
|
|
345
|
-
if (parsed.isCommand) {
|
|
346
|
-
const command = (0, commands_1.findCommand)(parsed.name);
|
|
347
|
-
if (!command) {
|
|
348
|
-
this.emitStatus(`Unknown command /${parsed.name}; active turn continues.`);
|
|
349
|
-
return { type: 'command_ignored' };
|
|
350
|
-
}
|
|
337
|
+
if (this.turnController.hasActiveTurn()) {
|
|
351
338
|
if (command.busyPolicy === 'reject-busy') {
|
|
352
339
|
this.emitStatus(`/${command.name} rejected: an agent turn is active.`);
|
|
353
340
|
return { type: 'command_rejected_busy', commandId: command.id };
|
|
@@ -365,6 +352,16 @@ class AgentRuntimeController {
|
|
|
365
352
|
this.emitStatus(`Queued /${command.name}; it will apply after the active logical request.`);
|
|
366
353
|
return { type: 'command_queued', commandId: command.id };
|
|
367
354
|
}
|
|
355
|
+
const run = this.runCommand(command, parsedInput.args)
|
|
356
|
+
.catch(error => this.handleCommandError(command, error))
|
|
357
|
+
.finally(() => {
|
|
358
|
+
if (this.activeRun === run)
|
|
359
|
+
this.activeRun = null;
|
|
360
|
+
});
|
|
361
|
+
this.activeRun = run;
|
|
362
|
+
return { type: 'command_handled' };
|
|
363
|
+
}
|
|
364
|
+
if (this.turnController.hasActiveTurn()) {
|
|
368
365
|
this.turnController.clearExitIntent();
|
|
369
366
|
this.turnController.requestRevision(submitted);
|
|
370
367
|
// v0.1.3 (G1): echo the incremental input to the transcript immediately,
|
|
@@ -731,6 +728,17 @@ class AgentRuntimeController {
|
|
|
731
728
|
this.emitStatus(readyStatus);
|
|
732
729
|
this.options.afterTurnLoop?.();
|
|
733
730
|
}
|
|
731
|
+
handleCommandError(command, error) {
|
|
732
|
+
const message = (0, style_1.sanitizeTerminalText)((0, redaction_1.redactTraceText)(error instanceof Error ? error.message : String(error)));
|
|
733
|
+
this.emitAppend({
|
|
734
|
+
role: 'error',
|
|
735
|
+
title: `/${command.name}`,
|
|
736
|
+
content: message,
|
|
737
|
+
errorLayer: 'runtime',
|
|
738
|
+
command: commandIdentity(command, false),
|
|
739
|
+
});
|
|
740
|
+
this.emitStatus(`/${command.name} failed; the active turn state was not changed.`);
|
|
741
|
+
}
|
|
734
742
|
async synchronizeSettingsAtLogicalBoundary() {
|
|
735
743
|
const synchronize = this.options.runtime.synchronizeSettings;
|
|
736
744
|
if (!synchronize)
|
|
@@ -1076,37 +1084,80 @@ function commandIdentity(command, success) {
|
|
|
1076
1084
|
};
|
|
1077
1085
|
}
|
|
1078
1086
|
async function captureCommandOutput(execute) {
|
|
1079
|
-
const
|
|
1080
|
-
|
|
1081
|
-
const originalError = console.error;
|
|
1082
|
-
const originalWarn = console.warn;
|
|
1083
|
-
const capture = (...values) => {
|
|
1084
|
-
const line = values
|
|
1085
|
-
.map(value => {
|
|
1086
|
-
if (typeof value === 'string')
|
|
1087
|
-
return value;
|
|
1088
|
-
try {
|
|
1089
|
-
return JSON.stringify(value);
|
|
1090
|
-
}
|
|
1091
|
-
catch {
|
|
1092
|
-
return String(value);
|
|
1093
|
-
}
|
|
1094
|
-
})
|
|
1095
|
-
.join(' ');
|
|
1096
|
-
lines.push((0, style_1.sanitizeTerminalText)(line));
|
|
1097
|
-
};
|
|
1098
|
-
console.log = capture;
|
|
1099
|
-
console.error = capture;
|
|
1100
|
-
console.warn = capture;
|
|
1087
|
+
const capture = { active: true, lines: [] };
|
|
1088
|
+
acquireCommandConsoleBridge();
|
|
1101
1089
|
try {
|
|
1102
|
-
|
|
1090
|
+
const result = await commandOutputCaptureStorage.run(capture, execute);
|
|
1091
|
+
return { result, output: capture.lines.join('\n').trim() };
|
|
1103
1092
|
}
|
|
1104
1093
|
finally {
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1094
|
+
capture.active = false;
|
|
1095
|
+
releaseCommandConsoleBridge();
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
const commandOutputCaptureStorage = new async_hooks_1.AsyncLocalStorage();
|
|
1099
|
+
let commandConsoleBridgeReferences = 0;
|
|
1100
|
+
let commandConsoleOriginalMethods;
|
|
1101
|
+
const commandConsoleBridge = {
|
|
1102
|
+
log: (...values) => routeCommandConsole('log', values),
|
|
1103
|
+
error: (...values) => routeCommandConsole('error', values),
|
|
1104
|
+
warn: (...values) => routeCommandConsole('warn', values),
|
|
1105
|
+
};
|
|
1106
|
+
function acquireCommandConsoleBridge() {
|
|
1107
|
+
if (commandConsoleBridgeReferences === 0) {
|
|
1108
|
+
commandConsoleOriginalMethods = {
|
|
1109
|
+
log: originalConsoleMethod('log'),
|
|
1110
|
+
error: originalConsoleMethod('error'),
|
|
1111
|
+
warn: originalConsoleMethod('warn'),
|
|
1112
|
+
};
|
|
1113
|
+
console.log = commandConsoleBridge.log;
|
|
1114
|
+
console.error = commandConsoleBridge.error;
|
|
1115
|
+
console.warn = commandConsoleBridge.warn;
|
|
1116
|
+
}
|
|
1117
|
+
commandConsoleBridgeReferences += 1;
|
|
1118
|
+
}
|
|
1119
|
+
function releaseCommandConsoleBridge() {
|
|
1120
|
+
commandConsoleBridgeReferences = Math.max(0, commandConsoleBridgeReferences - 1);
|
|
1121
|
+
if (commandConsoleBridgeReferences !== 0 || !commandConsoleOriginalMethods)
|
|
1122
|
+
return;
|
|
1123
|
+
if (console.log === commandConsoleBridge.log)
|
|
1124
|
+
console.log = commandConsoleOriginalMethods.log;
|
|
1125
|
+
if (console.error === commandConsoleBridge.error)
|
|
1126
|
+
console.error = commandConsoleOriginalMethods.error;
|
|
1127
|
+
if (console.warn === commandConsoleBridge.warn)
|
|
1128
|
+
console.warn = commandConsoleOriginalMethods.warn;
|
|
1129
|
+
}
|
|
1130
|
+
function originalConsoleMethod(method) {
|
|
1131
|
+
const current = console[method];
|
|
1132
|
+
if (current !== commandConsoleBridge[method] || !commandConsoleOriginalMethods)
|
|
1133
|
+
return current;
|
|
1134
|
+
return commandConsoleOriginalMethods[method];
|
|
1135
|
+
}
|
|
1136
|
+
function routeCommandConsole(method, values) {
|
|
1137
|
+
const capture = commandOutputCaptureStorage.getStore();
|
|
1138
|
+
if (capture?.active) {
|
|
1139
|
+
capture.lines.push((0, style_1.sanitizeTerminalText)((0, redaction_1.redactTraceText)(formatConsoleValues(values))));
|
|
1140
|
+
return;
|
|
1141
|
+
}
|
|
1142
|
+
const original = commandConsoleOriginalMethods?.[method];
|
|
1143
|
+
if (original && original !== commandConsoleBridge[method]) {
|
|
1144
|
+
Reflect.apply(original, console, values);
|
|
1108
1145
|
}
|
|
1109
1146
|
}
|
|
1147
|
+
function formatConsoleValues(values) {
|
|
1148
|
+
return values
|
|
1149
|
+
.map(value => {
|
|
1150
|
+
if (typeof value === 'string')
|
|
1151
|
+
return value;
|
|
1152
|
+
try {
|
|
1153
|
+
return JSON.stringify(value) ?? String(value);
|
|
1154
|
+
}
|
|
1155
|
+
catch {
|
|
1156
|
+
return String(value);
|
|
1157
|
+
}
|
|
1158
|
+
})
|
|
1159
|
+
.join(' ');
|
|
1160
|
+
}
|
|
1110
1161
|
function projectFollowupQueueItem(item) {
|
|
1111
1162
|
return Object.freeze({
|
|
1112
1163
|
id: item.id,
|
|
@@ -223,7 +223,7 @@ function replayAll(store) {
|
|
|
223
223
|
const events = [];
|
|
224
224
|
let cursor = 0;
|
|
225
225
|
while (true) {
|
|
226
|
-
const page = store.replay(cursor);
|
|
226
|
+
const page = store.replay(cursor, undefined, 'capability_receipt_journal');
|
|
227
227
|
events.push(...page.events);
|
|
228
228
|
if (!page.hasMore)
|
|
229
229
|
return events;
|
|
@@ -29,9 +29,7 @@ function pushHistoryEntry(state, value) {
|
|
|
29
29
|
if (!value)
|
|
30
30
|
return state;
|
|
31
31
|
// Deduplicate consecutive identical.
|
|
32
|
-
const entries = state.entries[state.entries.length - 1] === value
|
|
33
|
-
? state.entries
|
|
34
|
-
: [...state.entries, value];
|
|
32
|
+
const entries = state.entries[state.entries.length - 1] === value ? state.entries : [...state.entries, value];
|
|
35
33
|
// Bound size.
|
|
36
34
|
const trimmed = entries.length > exports.MAX_HISTORY_ENTRIES
|
|
37
35
|
? entries.slice(entries.length - exports.MAX_HISTORY_ENTRIES)
|
|
@@ -124,7 +124,9 @@ function buildPromptVisualLines(value, width, cursor = value.length) {
|
|
|
124
124
|
chunkStart: chunk.start,
|
|
125
125
|
chunkEnd: chunk.end,
|
|
126
126
|
};
|
|
127
|
-
if (cursorInThisLine &&
|
|
127
|
+
if (cursorInThisLine &&
|
|
128
|
+
clampedCursor - lineStart >= chunk.start &&
|
|
129
|
+
clampedCursor - lineStart <= chunk.end) {
|
|
128
130
|
cursorLineIndex = visualLines.length;
|
|
129
131
|
const cursorInChunk = Math.max(0, clampedCursor - lineStart - chunk.start);
|
|
130
132
|
cursorColumn = 5 + (0, string_width_1.default)(chunk.content.slice(0, cursorInChunk));
|
|
@@ -161,9 +163,10 @@ function formatPromptVisualLine(visualLine, width, options = {}) {
|
|
|
161
163
|
const before = content.slice(0, offset);
|
|
162
164
|
const after = content.slice(offset);
|
|
163
165
|
const beforeWithCursor = `${before}${exports.PROMPT_CURSOR_GLYPH}`;
|
|
164
|
-
content =
|
|
165
|
-
|
|
166
|
-
|
|
166
|
+
content =
|
|
167
|
+
(0, string_width_1.default)(beforeWithCursor) >= maxContentWidth
|
|
168
|
+
? `${takeVisualWidth(before, maxContentWidth - (0, string_width_1.default)(exports.PROMPT_CURSOR_GLYPH))}${exports.PROMPT_CURSOR_GLYPH}`
|
|
169
|
+
: `${beforeWithCursor}${takeVisualWidth(after, maxContentWidth - (0, string_width_1.default)(beforeWithCursor))}`;
|
|
167
170
|
}
|
|
168
171
|
const raw = `${prefix}${content}`;
|
|
169
172
|
const padding = Math.max(0, promptContentWidth(width) - (0, string_width_1.default)(raw));
|
|
@@ -72,7 +72,7 @@ function readItemReceipt(sessionId, store, item) {
|
|
|
72
72
|
if (!terminalSeq || terminalSeq < 2 || !toolName || !item.receipt) {
|
|
73
73
|
throw new tool_receipt_validator_1.DurableToolReceiptValidationError('Terminal tool projection is missing its canonical receipt identity.');
|
|
74
74
|
}
|
|
75
|
-
const pair = store.replay(terminalSeq - 2, 2).events;
|
|
75
|
+
const pair = store.replay(terminalSeq - 2, 2, 'durable_tool_receipt').events;
|
|
76
76
|
const factEvent = pair.find(event => event.seq === terminalSeq - 1);
|
|
77
77
|
const terminalEvent = pair.find(event => event.seq === terminalSeq);
|
|
78
78
|
if (!factEvent || !terminalEvent || terminalEvent.itemId !== item.itemId) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { RuntimeEventEnvelopeV1 } from './protocol/runtime-protocol-v1';
|
|
2
2
|
import { type LegacySessionImportReceiptV1 } from './legacy-session-importer';
|
|
3
3
|
import { ThreadEventStore, type ThreadCheckpointHeadV1 } from './thread-event-store';
|
|
4
|
-
import { type ThreadProjectionV1 } from './thread-projection';
|
|
4
|
+
import { type ThreadProjectionDigestVersionV1, type ThreadProjectionV1 } from './thread-projection';
|
|
5
5
|
export type LegacyThreadMaterializationBoundaryV1 = 'after_dry_run' | 'after_receipt_staged' | 'after_facts_materialized' | 'after_projection_verified' | 'after_source_recheck' | 'before_index_switch' | 'after_index_switch';
|
|
6
6
|
export interface LegacyThreadMaterializerOptionsV1 {
|
|
7
7
|
readonly projectPath: string;
|
|
@@ -26,6 +26,8 @@ export interface ThreadCutoverIndexEntryV1 {
|
|
|
26
26
|
readonly importDigest: string;
|
|
27
27
|
readonly eventDigest: string;
|
|
28
28
|
readonly projectionDigest: string;
|
|
29
|
+
/** Missing on v0.3.2 cutover entries; inferred against exact known schemes. */
|
|
30
|
+
readonly projectionDigestVersion?: ThreadProjectionDigestVersionV1;
|
|
29
31
|
readonly cursor: number;
|
|
30
32
|
readonly eventLogFile: string;
|
|
31
33
|
readonly projectionFile: string;
|
|
@@ -82,7 +82,7 @@ function materializeLegacyThreadV1(options) {
|
|
|
82
82
|
const existing = current.sessions[options.sessionId];
|
|
83
83
|
const entry = createIndexEntry(options.sessionId, store, plan);
|
|
84
84
|
if (existing) {
|
|
85
|
-
if ((
|
|
85
|
+
if (!sameCutoverEntry(existing, entry, plan.projection)) {
|
|
86
86
|
throw new LegacyThreadMaterializationError('ORION_THREAD_CUTOVER_CONFLICT', `Session ${options.sessionId} already points at a different v2 Thread`);
|
|
87
87
|
}
|
|
88
88
|
mode = 'already_cutover';
|
|
@@ -131,7 +131,10 @@ function openSessionCheckpointStorageV1(projectPathInput, sessionId) {
|
|
|
131
131
|
head.cursor < entry.cursor ||
|
|
132
132
|
!head.verifiedPrefixes.some(prefix => prefix.cursor === entry.cursor &&
|
|
133
133
|
prefix.eventDigest === entry.eventDigest &&
|
|
134
|
-
prefix.projectionDigest === entry.projectionDigest
|
|
134
|
+
prefix.projectionDigest === entry.projectionDigest &&
|
|
135
|
+
(entry.projectionDigestVersion === undefined ||
|
|
136
|
+
prefix.projectionDigestVersion === undefined ||
|
|
137
|
+
prefix.projectionDigestVersion === entry.projectionDigestVersion))) {
|
|
135
138
|
return undefined;
|
|
136
139
|
}
|
|
137
140
|
return Object.freeze({
|
|
@@ -179,7 +182,7 @@ function openSessionStorageV1(projectPathInput, sessionId) {
|
|
|
179
182
|
const store = new thread_event_store_1.ThreadEventStore((0, paths_1.getProjectThreadsV2Dir)(projectPath), entry.threadId, {
|
|
180
183
|
maxReplayEvents: Math.max(10000, entry.cursor),
|
|
181
184
|
});
|
|
182
|
-
const prefixVerified = store.verifyDurablePrefix(entry.cursor, entry.eventDigest, entry.projectionDigest);
|
|
185
|
+
const prefixVerified = store.verifyDurablePrefix(entry.cursor, entry.eventDigest, entry.projectionDigest, entry.projectionDigestVersion);
|
|
183
186
|
// The cutover receipt seals the imported prefix, not the forever-changing
|
|
184
187
|
// head of a live Thread. loadProjection() independently verifies/rebuilds the
|
|
185
188
|
// current cache against the complete hash-chained log.
|
|
@@ -477,7 +480,7 @@ function materializeFacts(threadsDir, plan) {
|
|
|
477
480
|
if (cursor > plan.events.length) {
|
|
478
481
|
throw diverged(`Existing Thread has ${cursor} events, expected ${plan.events.length}`);
|
|
479
482
|
}
|
|
480
|
-
const existing = cursor === 0 ? [] : store.replay(0, cursor).events;
|
|
483
|
+
const existing = cursor === 0 ? [] : store.replay(0, cursor, 'legacy_materializer').events;
|
|
481
484
|
for (let index = 0; index < existing.length; index += 1) {
|
|
482
485
|
if ((0, canonical_1.canonicalRuntimeJson)(existing[index]) !== (0, canonical_1.canonicalRuntimeJson)(plan.events[index])) {
|
|
483
486
|
throw diverged(`Existing Thread diverges from import plan at seq ${index + 1}`);
|
|
@@ -490,7 +493,7 @@ function materializeFacts(threadsDir, plan) {
|
|
|
490
493
|
return store;
|
|
491
494
|
}
|
|
492
495
|
function verifyMaterializedStore(store, plan) {
|
|
493
|
-
const replay = store.replay(0, Math.max(1, plan.events.length));
|
|
496
|
+
const replay = store.replay(0, Math.max(1, plan.events.length), 'legacy_materializer');
|
|
494
497
|
if (replay.hasMore ||
|
|
495
498
|
replay.events.length !== plan.events.length ||
|
|
496
499
|
(0, canonical_1.digestRuntimeValue)(replay.events) !== plan.eventDigest) {
|
|
@@ -523,6 +526,7 @@ function createIndexEntry(sessionId, store, plan) {
|
|
|
523
526
|
importDigest: plan.receipt.importDigest,
|
|
524
527
|
eventDigest: plan.eventDigest,
|
|
525
528
|
projectionDigest: plan.projection.digest,
|
|
529
|
+
projectionDigestVersion: thread_projection_1.CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1,
|
|
526
530
|
cursor: plan.events.length,
|
|
527
531
|
eventLogFile: (0, path_1.basename)(store.logPath),
|
|
528
532
|
projectionFile: (0, path_1.basename)(store.projectionPath),
|
|
@@ -530,6 +534,14 @@ function createIndexEntry(sessionId, store, plan) {
|
|
|
530
534
|
cutoverAt: plan.receipt.sourceTimestamp,
|
|
531
535
|
};
|
|
532
536
|
}
|
|
537
|
+
function sameCutoverEntry(existing, next, projection) {
|
|
538
|
+
const { projectionDigest: existingProjectionDigest, projectionDigestVersion: existingProjectionDigestVersion, ...existingIdentity } = existing;
|
|
539
|
+
const { projectionDigest: _nextProjectionDigest, projectionDigestVersion: _nextProjectionDigestVersion, ...nextIdentity } = next;
|
|
540
|
+
void _nextProjectionDigest;
|
|
541
|
+
void _nextProjectionDigestVersion;
|
|
542
|
+
return ((0, canonical_1.canonicalRuntimeJson)(existingIdentity) === (0, canonical_1.canonicalRuntimeJson)(nextIdentity) &&
|
|
543
|
+
(0, thread_projection_1.resolveThreadProjectionDigestVersionV1)(projection, existingProjectionDigest, existingProjectionDigestVersion) !== undefined);
|
|
544
|
+
}
|
|
533
545
|
function assertSourceUnchanged(projectPath, sessionId, expectedImportDigest) {
|
|
534
546
|
const current = (0, legacy_session_importer_1.readLegacySessionMaterializationSnapshotV1)(projectPath, sessionId).receipt;
|
|
535
547
|
if (current.importDigest !== expectedImportDigest) {
|
|
@@ -14,7 +14,7 @@ import { PromptRegistryV1 } from './prompts';
|
|
|
14
14
|
import { ResourceScope, type ResourceScopeCloseReport } from './resource-scope';
|
|
15
15
|
import { type RuntimeContributorSlots, type RuntimeContributors, type RuntimeServicePort, type RuntimeServices, type RuntimeServiceSlots } from './runtime-services';
|
|
16
16
|
import { LazySkillRuntime, type LazySkillRuntimeOptions, type LazySkillRuntimeStatsV1 } from './skills';
|
|
17
|
-
import { ExecutionService, type AuthoritySnapshotV1, type ToolBindingV1 } from './step-snapshot';
|
|
17
|
+
import { ExecutionService, type AuthoritySnapshotV1, type ToolBindingV1, type WorkspaceMutationCoordinatorV1 } from './step-snapshot';
|
|
18
18
|
import { ThreadCompactMaintenanceRunnerV1, ThreadCompactTransactionPersistenceV1, type ThreadCompactMaintenanceRunnerOptionsV1 } from './thread-compact-persistence';
|
|
19
19
|
import { type TaskContextService, type TaskContextServiceOptions } from './task-context-service';
|
|
20
20
|
import { ThreadEventStore, type ThreadEventStoreOptionsV1 } from './thread-event-store';
|
|
@@ -116,6 +116,7 @@ export interface OrionRuntimeV1Options {
|
|
|
116
116
|
readonly mcp: Omit<LazyMcpRuntimeOptions, 'signal'>;
|
|
117
117
|
readonly resolveCapabilityConfiguration: OrionCapabilityConfigurationResolverV1;
|
|
118
118
|
readonly approvalHandler?: FirstPartyApprovalHandlerV1;
|
|
119
|
+
readonly workspaceMutationCoordinator?: WorkspaceMutationCoordinatorV1;
|
|
119
120
|
readonly contributors?: RuntimeContributorSlots;
|
|
120
121
|
readonly subagents?: OrionSubagentCompositionV1;
|
|
121
122
|
readonly thread?: Omit<ThreadRuntimeOptionsV1, 'store' | 'runner' | 'maintenanceRunner' | 'projectPath' | 'requireTurnCommit'>;
|