@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
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ThreadEventStore = exports.ThreadEventStoreError = void 0;
|
|
4
|
+
exports.threadEventStorePerformanceCountersV1 = threadEventStorePerformanceCountersV1;
|
|
4
5
|
const fs_1 = require("fs");
|
|
5
6
|
const path_1 = require("path");
|
|
6
7
|
const atomic_write_1 = require("../services/atomic-write");
|
|
@@ -21,6 +22,19 @@ exports.ThreadEventStoreError = ThreadEventStoreError;
|
|
|
21
22
|
const DEFAULT_MAX_LOG_BYTES = 128 * 1024 * 1024;
|
|
22
23
|
const DEFAULT_MAX_REPLAY_EVENTS = 10000;
|
|
23
24
|
const DEFAULT_LOCK_WAIT_MS = 10000;
|
|
25
|
+
const threadEventStorePerformance = {
|
|
26
|
+
logScans: 0,
|
|
27
|
+
bytesScanned: 0,
|
|
28
|
+
eventsScanned: 0,
|
|
29
|
+
scanReasons: {},
|
|
30
|
+
};
|
|
31
|
+
/** Process-local monotonic read counters for diagnostics and switch budgets. */
|
|
32
|
+
function threadEventStorePerformanceCountersV1() {
|
|
33
|
+
return Object.freeze({
|
|
34
|
+
...threadEventStorePerformance,
|
|
35
|
+
scanReasons: Object.freeze({ ...threadEventStorePerformance.scanReasons }),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
24
38
|
/**
|
|
25
39
|
* Append-only durable fact store for a single Thread.
|
|
26
40
|
*
|
|
@@ -57,7 +71,12 @@ class ThreadEventStore {
|
|
|
57
71
|
}
|
|
58
72
|
const commit = this.withLogLock(() => {
|
|
59
73
|
ensurePrivateDirectory(this.rootDir);
|
|
60
|
-
|
|
74
|
+
let head = this.loadVerifiedHead();
|
|
75
|
+
if (!(0, thread_projection_1.hasCurrentThreadProjectionShapeV1)(head.projection)) {
|
|
76
|
+
// An older projection cannot be incrementally advanced because it did
|
|
77
|
+
// not retain all diagnostic/compact history. Rebuild from facts once.
|
|
78
|
+
head = this.loadVerifiedHead(true, 'projection_schema_upgrade');
|
|
79
|
+
}
|
|
61
80
|
if (head.discardedTailBytes > 0)
|
|
62
81
|
(0, fs_1.truncateSync)(this.logPath, head.safeByteLength);
|
|
63
82
|
let seq = head.projection.cursor;
|
|
@@ -172,7 +191,7 @@ class ThreadEventStore {
|
|
|
172
191
|
(0, runtime_protocol_v1_1.assertRuntimeEventEnvelopeV1)(event);
|
|
173
192
|
return deepFreeze(event);
|
|
174
193
|
}
|
|
175
|
-
replay(cursor = 0, limit = this.maxReplayEvents) {
|
|
194
|
+
replay(cursor = 0, limit = this.maxReplayEvents, reason = 'direct') {
|
|
176
195
|
if (!Number.isSafeInteger(cursor) || cursor < 0) {
|
|
177
196
|
throw new ThreadEventStoreError('ORION_THREAD_EVENT_CURSOR', 'Replay cursor must be a non-negative safe integer');
|
|
178
197
|
}
|
|
@@ -181,7 +200,7 @@ class ThreadEventStore {
|
|
|
181
200
|
throw new ThreadEventStoreError('ORION_THREAD_EVENT_LIMIT', `Replay limit ${safeLimit} exceeds ${this.maxReplayEvents}`);
|
|
182
201
|
}
|
|
183
202
|
return this.withLogLock(() => {
|
|
184
|
-
const scan = requireVerifiedScan(this.loadVerifiedHead(true));
|
|
203
|
+
const scan = requireVerifiedScan(this.loadVerifiedHead(true, `replay:${reason}`));
|
|
185
204
|
const lastSeq = scan.events.length;
|
|
186
205
|
if (cursor > lastSeq) {
|
|
187
206
|
throw new ThreadEventStoreError('ORION_THREAD_EVENT_CURSOR', `Replay cursor ${cursor} is ahead of durable cursor ${lastSeq}`);
|
|
@@ -202,7 +221,7 @@ class ThreadEventStore {
|
|
|
202
221
|
* exact log identity/projection checkpoint remains current. Internal append
|
|
203
222
|
* carries the proof forward because the hash-chained prefix cannot change.
|
|
204
223
|
*/
|
|
205
|
-
verifyDurablePrefix(cursor, eventDigest, projectionDigest) {
|
|
224
|
+
verifyDurablePrefix(cursor, eventDigest, projectionDigest, projectionDigestVersion) {
|
|
206
225
|
if (!Number.isSafeInteger(cursor) ||
|
|
207
226
|
cursor <= 0 ||
|
|
208
227
|
!isSha256(eventDigest) ||
|
|
@@ -213,21 +232,31 @@ class ThreadEventStore {
|
|
|
213
232
|
let head = this.loadVerifiedHead();
|
|
214
233
|
if (cursor > head.projection.cursor)
|
|
215
234
|
return false;
|
|
216
|
-
const expected = { cursor, eventDigest, projectionDigest };
|
|
235
|
+
const expected = { cursor, eventDigest, projectionDigest, projectionDigestVersion };
|
|
217
236
|
if (head.verifiedPrefixes.some(prefix => sameVerifiedPrefix(prefix, expected)))
|
|
218
237
|
return true;
|
|
219
|
-
head = this.loadVerifiedHead(true);
|
|
238
|
+
head = this.loadVerifiedHead(true, 'verify_durable_prefix');
|
|
220
239
|
const scan = requireVerifiedScan(head);
|
|
221
240
|
const events = scan.events.slice(0, cursor);
|
|
241
|
+
const resolvedProjectionDigestVersion = (0, thread_projection_1.resolveThreadProjectionDigestVersionV1)((0, thread_projection_1.projectThreadEvents)(this.threadId, events), projectionDigest, projectionDigestVersion);
|
|
222
242
|
if (events.length !== cursor ||
|
|
223
243
|
(0, canonical_1.digestRuntimeValue)(events) !== eventDigest ||
|
|
224
|
-
|
|
244
|
+
resolvedProjectionDigestVersion === undefined) {
|
|
225
245
|
return false;
|
|
226
246
|
}
|
|
247
|
+
const verified = {
|
|
248
|
+
cursor,
|
|
249
|
+
eventDigest,
|
|
250
|
+
projectionDigest,
|
|
251
|
+
projectionDigestVersion: resolvedProjectionDigestVersion,
|
|
252
|
+
};
|
|
227
253
|
const next = {
|
|
228
254
|
...head,
|
|
229
255
|
generation: head.generation + 1,
|
|
230
|
-
verifiedPrefixes: [
|
|
256
|
+
verifiedPrefixes: [
|
|
257
|
+
...head.verifiedPrefixes.filter(prefix => prefix.cursor !== cursor),
|
|
258
|
+
verified,
|
|
259
|
+
].sort((left, right) => left.cursor - right.cursor),
|
|
231
260
|
};
|
|
232
261
|
this.cachedHead = next;
|
|
233
262
|
this.tryPersistVerifiedHead(next);
|
|
@@ -333,14 +362,14 @@ class ThreadEventStore {
|
|
|
333
362
|
*/
|
|
334
363
|
loadAuthoritativeModelHistory() {
|
|
335
364
|
return this.withLogLock(() => {
|
|
336
|
-
const
|
|
365
|
+
const head = this.loadVerifiedHead();
|
|
337
366
|
const state = readCompactState(this.compactStatePath, this.threadId);
|
|
338
367
|
if (state)
|
|
339
368
|
this.assertCompactCheckpoint(state);
|
|
340
|
-
const turnState =
|
|
369
|
+
const turnState = readLatestDurableTurnStateFromProjection(head.projection);
|
|
341
370
|
if (!state && !turnState)
|
|
342
371
|
return undefined;
|
|
343
|
-
return
|
|
372
|
+
return resolveCompactAuthorityState(turnState, state).history;
|
|
344
373
|
});
|
|
345
374
|
}
|
|
346
375
|
/**
|
|
@@ -350,7 +379,7 @@ class ThreadEventStore {
|
|
|
350
379
|
captureCompactSource(turnId) {
|
|
351
380
|
return this.withLogLock(() => {
|
|
352
381
|
ensurePrivateDirectory(this.rootDir);
|
|
353
|
-
const head = this.loadVerifiedHead(true);
|
|
382
|
+
const head = this.loadVerifiedHead(true, 'capture_compact_source');
|
|
354
383
|
const scan = requireVerifiedScan(head);
|
|
355
384
|
const { projection } = head;
|
|
356
385
|
assertActiveMaintenanceTurn(projection, turnId);
|
|
@@ -387,7 +416,7 @@ class ThreadEventStore {
|
|
|
387
416
|
ensurePrivateDirectory(this.compactCheckpointsDir);
|
|
388
417
|
validateCompactCommitInput(input, this.threadId);
|
|
389
418
|
input.onBoundary('before_cas_recheck');
|
|
390
|
-
const head = this.loadVerifiedHead(true);
|
|
419
|
+
const head = this.loadVerifiedHead(true, 'compact_cas');
|
|
391
420
|
const scan = requireVerifiedScan(head);
|
|
392
421
|
const { projection } = head;
|
|
393
422
|
const eventsAfterAnchor = scan.events.slice(input.expectedEventAnchor.cursor);
|
|
@@ -454,7 +483,10 @@ class ThreadEventStore {
|
|
|
454
483
|
}
|
|
455
484
|
listCompactEvents() {
|
|
456
485
|
return this.withLogLock(() => {
|
|
457
|
-
const
|
|
486
|
+
const projection = this.loadVerifiedHead().projection;
|
|
487
|
+
if (projection.compactEvents)
|
|
488
|
+
return projection.compactEvents;
|
|
489
|
+
const scan = requireVerifiedScan(this.loadVerifiedHead(true, 'legacy_compact_projection'));
|
|
458
490
|
return deepFreeze(scan.events.filter((event) => event.payload.type === 'compact.started' ||
|
|
459
491
|
event.payload.type === 'compact.completed' ||
|
|
460
492
|
event.payload.type === 'compact.failed'));
|
|
@@ -511,7 +543,7 @@ class ThreadEventStore {
|
|
|
511
543
|
* projection still match. Callers that need historical events explicitly
|
|
512
544
|
* request a scan; cursor/projection/append paths stay O(head + projection).
|
|
513
545
|
*/
|
|
514
|
-
loadVerifiedHead(requireScan = false) {
|
|
546
|
+
loadVerifiedHead(requireScan = false, scanReason = 'unspecified') {
|
|
515
547
|
ensurePrivateDirectory(this.rootDir);
|
|
516
548
|
const logIdentity = readFileIdentity(this.logPath);
|
|
517
549
|
if (this.cachedHead?.logFingerprint === logIdentity.fingerprint &&
|
|
@@ -528,6 +560,11 @@ class ThreadEventStore {
|
|
|
528
560
|
}
|
|
529
561
|
}
|
|
530
562
|
const scan = scanThreadEventLog(this.logPath, this.threadId, this.maxLogBytes);
|
|
563
|
+
threadEventStorePerformance.logScans += 1;
|
|
564
|
+
threadEventStorePerformance.bytesScanned += scan.safeByteLength + scan.discardedTailBytes;
|
|
565
|
+
threadEventStorePerformance.eventsScanned += scan.events.length;
|
|
566
|
+
threadEventStorePerformance.scanReasons[scanReason] =
|
|
567
|
+
(threadEventStorePerformance.scanReasons[scanReason] ?? 0) + 1;
|
|
531
568
|
this.onLogScan?.({
|
|
532
569
|
threadId: this.threadId,
|
|
533
570
|
bytes: scan.safeByteLength + scan.discardedTailBytes,
|
|
@@ -836,7 +873,7 @@ function retainVerifiedPrefixes(prefixes, scan, threadId) {
|
|
|
836
873
|
return false;
|
|
837
874
|
const events = scan.events.slice(0, prefix.cursor);
|
|
838
875
|
return ((0, canonical_1.digestRuntimeValue)(events) === prefix.eventDigest &&
|
|
839
|
-
(0, thread_projection_1.projectThreadEvents)(threadId, events).
|
|
876
|
+
(0, thread_projection_1.resolveThreadProjectionDigestVersionV1)((0, thread_projection_1.projectThreadEvents)(threadId, events), prefix.projectionDigest, prefix.projectionDigestVersion) !== undefined);
|
|
840
877
|
});
|
|
841
878
|
}
|
|
842
879
|
function requireVerifiedScan(head) {
|
|
@@ -869,12 +906,18 @@ function isStoredVerifiedPrefix(value, headCursor) {
|
|
|
869
906
|
value.cursor > 0 &&
|
|
870
907
|
value.cursor <= headCursor &&
|
|
871
908
|
isSha256(value.eventDigest) &&
|
|
872
|
-
isSha256(value.projectionDigest)
|
|
909
|
+
isSha256(value.projectionDigest) &&
|
|
910
|
+
(value.projectionDigestVersion === undefined ||
|
|
911
|
+
value.projectionDigestVersion === 1 ||
|
|
912
|
+
value.projectionDigestVersion === thread_projection_1.CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1));
|
|
873
913
|
}
|
|
874
914
|
function sameVerifiedPrefix(left, right) {
|
|
875
915
|
return (left.cursor === right.cursor &&
|
|
876
916
|
left.eventDigest === right.eventDigest &&
|
|
877
|
-
left.projectionDigest === right.projectionDigest
|
|
917
|
+
left.projectionDigest === right.projectionDigest &&
|
|
918
|
+
(left.projectionDigestVersion === right.projectionDigestVersion ||
|
|
919
|
+
left.projectionDigestVersion === undefined ||
|
|
920
|
+
right.projectionDigestVersion === undefined));
|
|
878
921
|
}
|
|
879
922
|
function isStoredLogIdentity(value) {
|
|
880
923
|
return (isRecord(value) &&
|
|
@@ -961,6 +1004,9 @@ function assertActiveMaintenanceTurn(projection, turnId) {
|
|
|
961
1004
|
}
|
|
962
1005
|
function resolveCompactAuthority(events, compactState, threadId) {
|
|
963
1006
|
const turnState = readLatestDurableTurnState(events, threadId);
|
|
1007
|
+
return resolveCompactAuthorityState(turnState, compactState);
|
|
1008
|
+
}
|
|
1009
|
+
function resolveCompactAuthorityState(turnState, compactState) {
|
|
964
1010
|
if (!turnState && !compactState) {
|
|
965
1011
|
throw new ThreadEventStoreError('ORION_THREAD_COMPACT_INVALID', 'Compact requires a durable TurnCommitV1 source');
|
|
966
1012
|
}
|
|
@@ -981,15 +1027,26 @@ function resolveCompactAuthority(events, compactState, threadId) {
|
|
|
981
1027
|
taskContextRevision: taskContextOwner.taskContextRevision,
|
|
982
1028
|
});
|
|
983
1029
|
}
|
|
1030
|
+
function readLatestDurableTurnStateFromProjection(projection) {
|
|
1031
|
+
const commit = Object.values(projection.turns)
|
|
1032
|
+
.map(turn => turn.commit)
|
|
1033
|
+
.filter((value) => Boolean(value))
|
|
1034
|
+
.sort((left, right) => left.seq - right.seq)
|
|
1035
|
+
.at(-1);
|
|
1036
|
+
return commit ? parseDurableTurnState(commit.receipt, commit.seq, projection.threadId) : null;
|
|
1037
|
+
}
|
|
984
1038
|
function readLatestDurableTurnState(events, threadId) {
|
|
985
1039
|
const event = [...events]
|
|
986
1040
|
.reverse()
|
|
987
1041
|
.find(candidate => candidate.payload.type === 'turn.committed');
|
|
988
1042
|
if (!event || event.payload.type !== 'turn.committed')
|
|
989
1043
|
return null;
|
|
1044
|
+
return parseDurableTurnState(event.payload.data.receipt, event.seq, threadId);
|
|
1045
|
+
}
|
|
1046
|
+
function parseDurableTurnState(serializedReceipt, eventSeq, threadId) {
|
|
990
1047
|
let receipt;
|
|
991
1048
|
try {
|
|
992
|
-
receipt = JSON.parse(
|
|
1049
|
+
receipt = JSON.parse(serializedReceipt);
|
|
993
1050
|
}
|
|
994
1051
|
catch {
|
|
995
1052
|
throw compactCorrupt('TurnCommitV1 receipt is not valid JSON');
|
|
@@ -1022,7 +1079,7 @@ function readLatestDurableTurnState(events, threadId) {
|
|
|
1022
1079
|
throw compactCorrupt('TurnCommitV1 history or TaskContext digest changed');
|
|
1023
1080
|
}
|
|
1024
1081
|
return deepFreeze({
|
|
1025
|
-
eventSeq
|
|
1082
|
+
eventSeq,
|
|
1026
1083
|
history: structuredClone(history),
|
|
1027
1084
|
historyDigest: receipt.historyDigest,
|
|
1028
1085
|
taskContext: structuredClone(taskContext),
|
|
@@ -1,6 +1,15 @@
|
|
|
1
1
|
import type { RuntimeEventEnvelopeV1, RuntimeEventTypeV1 } from './protocol/runtime-protocol-v1';
|
|
2
|
+
import type { CompactRuntimeEventV1 } from './compact-transaction';
|
|
2
3
|
export type ThreadProjectionStatusV1 = 'new' | 'active' | 'idle';
|
|
3
4
|
export type TurnProjectionStatusV1 = 'active' | 'completed' | 'failed' | 'interrupted';
|
|
5
|
+
/**
|
|
6
|
+
* Version of the canonical content included in a Thread projection digest.
|
|
7
|
+
*
|
|
8
|
+
* Version 1 predates head-only diagnostic and compact lifecycle fields.
|
|
9
|
+
* Version 2 covers the complete current projection shape.
|
|
10
|
+
*/
|
|
11
|
+
export type ThreadProjectionDigestVersionV1 = 1 | 2;
|
|
12
|
+
export declare const CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1: ThreadProjectionDigestVersionV1;
|
|
4
13
|
export type ItemProjectionStatusV1 = 'started' | 'completed' | 'failed' | 'interrupted' | 'indeterminate';
|
|
5
14
|
export interface ItemProjectionV1 {
|
|
6
15
|
readonly itemId: string;
|
|
@@ -66,6 +75,10 @@ export interface PlanReviewProjectionV1 {
|
|
|
66
75
|
readonly feedback?: string;
|
|
67
76
|
readonly feedbackDigest?: string;
|
|
68
77
|
}
|
|
78
|
+
export interface ThreadDiagnosticEventsV1 {
|
|
79
|
+
readonly latestCapability?: RuntimeEventEnvelopeV1;
|
|
80
|
+
readonly latestStepSnapshot?: RuntimeEventEnvelopeV1;
|
|
81
|
+
}
|
|
69
82
|
export interface ThreadProjectionV1 {
|
|
70
83
|
readonly version: 1;
|
|
71
84
|
readonly threadId: string;
|
|
@@ -76,6 +89,15 @@ export interface ThreadProjectionV1 {
|
|
|
76
89
|
readonly items: Readonly<Record<string, ItemProjectionV1>>;
|
|
77
90
|
readonly queue: readonly QueuedTurnProjectionV1[];
|
|
78
91
|
readonly planReview?: PlanReviewProjectionV1;
|
|
92
|
+
/** Missing only on projections written before diagnostics became head-only. */
|
|
93
|
+
readonly diagnosticEvents?: ThreadDiagnosticEventsV1;
|
|
94
|
+
/**
|
|
95
|
+
* Compact lifecycle facts retained by new projections so fresh-process
|
|
96
|
+
* orphan recovery does not have to replay the full authoritative JSONL.
|
|
97
|
+
* Missing means a projection written by an older Orion version and forces
|
|
98
|
+
* the store to take the verified scan fallback.
|
|
99
|
+
*/
|
|
100
|
+
readonly compactEvents?: readonly RuntimeEventEnvelopeV1<CompactRuntimeEventV1>[];
|
|
79
101
|
readonly stepSnapshotDigests: readonly string[];
|
|
80
102
|
readonly capabilityReceiptDigests: readonly string[];
|
|
81
103
|
readonly toolInvocationIds: readonly string[];
|
|
@@ -91,6 +113,11 @@ interface MutableThreadProjectionV1 {
|
|
|
91
113
|
items: Record<string, ItemProjectionV1>;
|
|
92
114
|
queue: QueuedTurnProjectionV1[];
|
|
93
115
|
planReview?: PlanReviewProjectionV1;
|
|
116
|
+
diagnosticEvents: {
|
|
117
|
+
latestCapability?: RuntimeEventEnvelopeV1;
|
|
118
|
+
latestStepSnapshot?: RuntimeEventEnvelopeV1;
|
|
119
|
+
};
|
|
120
|
+
compactEvents: RuntimeEventEnvelopeV1<CompactRuntimeEventV1>[];
|
|
94
121
|
stepSnapshotDigests: string[];
|
|
95
122
|
capabilityReceiptDigests: string[];
|
|
96
123
|
toolInvocationIds: string[];
|
|
@@ -114,5 +141,14 @@ export declare function projectThreadEvents(threadId: string, events: readonly R
|
|
|
114
141
|
export declare function advanceThreadProjection(projection: ThreadProjectionV1, events: readonly RuntimeEventEnvelopeV1[]): ThreadProjectionV1;
|
|
115
142
|
export declare function applyThreadEvent(state: MutableThreadProjectionV1, event: RuntimeEventEnvelopeV1): void;
|
|
116
143
|
export declare function verifyThreadProjectionDigest(projection: ThreadProjectionV1): boolean;
|
|
144
|
+
/**
|
|
145
|
+
* Compute one explicitly versioned digest without weakening projection-file
|
|
146
|
+
* integrity. This is used only for immutable cutover-prefix compatibility.
|
|
147
|
+
*/
|
|
148
|
+
export declare function threadProjectionDigestForVersionV1(projection: ThreadProjectionV1, version: ThreadProjectionDigestVersionV1): string;
|
|
149
|
+
/** Resolve an exact known digest scheme; missing metadata is inferred safely. */
|
|
150
|
+
export declare function resolveThreadProjectionDigestVersionV1(projection: ThreadProjectionV1, digest: string, requestedVersion?: ThreadProjectionDigestVersionV1): ThreadProjectionDigestVersionV1 | undefined;
|
|
151
|
+
/** Older persisted projections must be rebuilt before incremental advance. */
|
|
152
|
+
export declare function hasCurrentThreadProjectionShapeV1(projection: ThreadProjectionV1): boolean;
|
|
117
153
|
export {};
|
|
118
154
|
//# sourceMappingURL=thread-projection.d.ts.map
|
|
@@ -1,11 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ThreadProjectionInvariantError = void 0;
|
|
3
|
+
exports.ThreadProjectionInvariantError = exports.CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1 = void 0;
|
|
4
4
|
exports.projectThreadEvents = projectThreadEvents;
|
|
5
5
|
exports.advanceThreadProjection = advanceThreadProjection;
|
|
6
6
|
exports.applyThreadEvent = applyThreadEvent;
|
|
7
7
|
exports.verifyThreadProjectionDigest = verifyThreadProjectionDigest;
|
|
8
|
+
exports.threadProjectionDigestForVersionV1 = threadProjectionDigestForVersionV1;
|
|
9
|
+
exports.resolveThreadProjectionDigestVersionV1 = resolveThreadProjectionDigestVersionV1;
|
|
10
|
+
exports.hasCurrentThreadProjectionShapeV1 = hasCurrentThreadProjectionShapeV1;
|
|
8
11
|
const canonical_1 = require("./protocol/canonical");
|
|
12
|
+
exports.CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1 = 2;
|
|
9
13
|
class ThreadProjectionInvariantError extends Error {
|
|
10
14
|
constructor(message, seq, eventType) {
|
|
11
15
|
super(`Thread projection invariant failed at seq ${seq} (${eventType}): ${message}`);
|
|
@@ -25,6 +29,8 @@ function projectThreadEvents(threadId, events) {
|
|
|
25
29
|
turns: {},
|
|
26
30
|
items: {},
|
|
27
31
|
queue: [],
|
|
32
|
+
diagnosticEvents: {},
|
|
33
|
+
compactEvents: [],
|
|
28
34
|
stepSnapshotDigests: [],
|
|
29
35
|
capabilityReceiptDigests: [],
|
|
30
36
|
toolInvocationIds: [],
|
|
@@ -65,6 +71,10 @@ function advanceThreadProjection(projection, events) {
|
|
|
65
71
|
items: Object.fromEntries(Object.entries(projection.items).map(([id, item]) => [id, { ...item }])),
|
|
66
72
|
queue: projection.queue.map(item => ({ ...item })),
|
|
67
73
|
...(projection.planReview ? { planReview: { ...projection.planReview } } : {}),
|
|
74
|
+
diagnosticEvents: projection.diagnosticEvents
|
|
75
|
+
? structuredClone(projection.diagnosticEvents)
|
|
76
|
+
: {},
|
|
77
|
+
compactEvents: (projection.compactEvents ?? []).map(event => structuredClone(event)),
|
|
68
78
|
stepSnapshotDigests: [...projection.stepSnapshotDigests],
|
|
69
79
|
capabilityReceiptDigests: [...projection.capabilityReceiptDigests],
|
|
70
80
|
toolInvocationIds: [...projection.toolInvocationIds],
|
|
@@ -148,6 +158,7 @@ function applyThreadEvent(state, event) {
|
|
|
148
158
|
throw invariant('step snapshot already exists', event);
|
|
149
159
|
}
|
|
150
160
|
state.stepSnapshotDigests.push(event.payload.data.digest);
|
|
161
|
+
state.diagnosticEvents.latestStepSnapshot = structuredClone(event);
|
|
151
162
|
break;
|
|
152
163
|
case 'capability.receipt':
|
|
153
164
|
validateCapabilityReceipt(event);
|
|
@@ -155,6 +166,7 @@ function applyThreadEvent(state, event) {
|
|
|
155
166
|
throw invariant('capability receipt already exists', event);
|
|
156
167
|
}
|
|
157
168
|
state.capabilityReceiptDigests.push(event.payload.data.digest);
|
|
169
|
+
state.diagnosticEvents.latestCapability = structuredClone(event);
|
|
158
170
|
break;
|
|
159
171
|
case 'tool.receipt':
|
|
160
172
|
if (state.toolInvocationIds.includes(event.payload.data.invocationId)) {
|
|
@@ -165,6 +177,8 @@ function applyThreadEvent(state, event) {
|
|
|
165
177
|
case 'compact.started':
|
|
166
178
|
case 'compact.completed':
|
|
167
179
|
case 'compact.failed':
|
|
180
|
+
state.compactEvents.push(structuredClone(event));
|
|
181
|
+
break;
|
|
168
182
|
case 'approval.requested':
|
|
169
183
|
break;
|
|
170
184
|
case 'item.delta':
|
|
@@ -177,6 +191,43 @@ function verifyThreadProjectionDigest(projection) {
|
|
|
177
191
|
void _digest;
|
|
178
192
|
return (0, canonical_1.digestRuntimeValue)(content) === projection.digest;
|
|
179
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Compute one explicitly versioned digest without weakening projection-file
|
|
196
|
+
* integrity. This is used only for immutable cutover-prefix compatibility.
|
|
197
|
+
*/
|
|
198
|
+
function threadProjectionDigestForVersionV1(projection, version) {
|
|
199
|
+
const { digest: _digest, diagnosticEvents: _diagnosticEvents, compactEvents: _compactEvents, ...legacyContent } = projection;
|
|
200
|
+
void _digest;
|
|
201
|
+
void _diagnosticEvents;
|
|
202
|
+
void _compactEvents;
|
|
203
|
+
if (version === 1)
|
|
204
|
+
return (0, canonical_1.digestRuntimeValue)(legacyContent);
|
|
205
|
+
const content = {
|
|
206
|
+
...legacyContent,
|
|
207
|
+
diagnosticEvents: projection.diagnosticEvents ?? {},
|
|
208
|
+
compactEvents: projection.compactEvents ?? [],
|
|
209
|
+
};
|
|
210
|
+
return (0, canonical_1.digestRuntimeValue)(content);
|
|
211
|
+
}
|
|
212
|
+
/** Resolve an exact known digest scheme; missing metadata is inferred safely. */
|
|
213
|
+
function resolveThreadProjectionDigestVersionV1(projection, digest, requestedVersion) {
|
|
214
|
+
if (requestedVersion !== undefined) {
|
|
215
|
+
if (requestedVersion !== 1 && requestedVersion !== 2)
|
|
216
|
+
return undefined;
|
|
217
|
+
return threadProjectionDigestForVersionV1(projection, requestedVersion) === digest
|
|
218
|
+
? requestedVersion
|
|
219
|
+
: undefined;
|
|
220
|
+
}
|
|
221
|
+
for (const version of [exports.CURRENT_THREAD_PROJECTION_DIGEST_VERSION_V1, 1]) {
|
|
222
|
+
if (threadProjectionDigestForVersionV1(projection, version) === digest)
|
|
223
|
+
return version;
|
|
224
|
+
}
|
|
225
|
+
return undefined;
|
|
226
|
+
}
|
|
227
|
+
/** Older persisted projections must be rebuilt before incremental advance. */
|
|
228
|
+
function hasCurrentThreadProjectionShapeV1(projection) {
|
|
229
|
+
return projection.diagnosticEvents !== undefined && projection.compactEvents !== undefined;
|
|
230
|
+
}
|
|
180
231
|
function startTurn(state, event) {
|
|
181
232
|
const turnId = requiredIdentity(event.turnId, 'turnId', event);
|
|
182
233
|
if (state.activeTurnId)
|
|
@@ -517,6 +568,8 @@ function freezeProjection(state) {
|
|
|
517
568
|
])),
|
|
518
569
|
items: Object.fromEntries(Object.entries(state.items).map(([id, item]) => [id, { ...item }])),
|
|
519
570
|
queue: state.queue.map(item => ({ ...item })),
|
|
571
|
+
diagnosticEvents: structuredClone(state.diagnosticEvents),
|
|
572
|
+
compactEvents: state.compactEvents.map(event => structuredClone(event)),
|
|
520
573
|
stepSnapshotDigests: [...state.stepSnapshotDigests],
|
|
521
574
|
capabilityReceiptDigests: [...state.capabilityReceiptDigests],
|
|
522
575
|
toolInvocationIds: [...state.toolInvocationIds],
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { RuntimeEventBufferV1, type RuntimeEventBufferOptionsV1 } from './runtime-event-buffer';
|
|
2
2
|
import { type ThreadAdmissionOptionsV1, type ThreadCommandAdmissionV1, type ThreadTurnRequestV1 } from './thread-admission';
|
|
3
|
-
import { ThreadEventStore } from './thread-event-store';
|
|
3
|
+
import { ThreadEventStore, type ThreadEventReplayReasonV1 } from './thread-event-store';
|
|
4
4
|
import { type AgentRuntimeCommandV1, type RuntimeEventEnvelopeV1 } from './protocol/runtime-protocol-v1';
|
|
5
5
|
import type { CompactPrepareSourceReceiptV1 } from './compact-transaction';
|
|
6
6
|
export interface ThreadCompactCandidateDraftV1 {
|
|
@@ -143,7 +143,7 @@ export declare class ThreadRuntimeV1 {
|
|
|
143
143
|
unsubscribe(consumerId: string): void;
|
|
144
144
|
/** Observe committed durable facts without acquiring ownership of the Thread lifecycle. */
|
|
145
145
|
observeCommittedEvents(listener: (events: readonly RuntimeEventEnvelopeV1[]) => void): () => void;
|
|
146
|
-
replay(cursor?: number, limit?: number): import("./thread-event-store").ThreadEventReplayV1;
|
|
146
|
+
replay(cursor?: number, limit?: number, reason?: ThreadEventReplayReasonV1): import("./thread-event-store").ThreadEventReplayV1;
|
|
147
147
|
getProjection(): import("./thread-projection").ThreadProjectionV1;
|
|
148
148
|
getAdmissionSnapshot(): import("./thread-admission").ThreadAdmissionSnapshotV1;
|
|
149
149
|
waitForIdle(): Promise<void>;
|
|
@@ -252,8 +252,8 @@ class ThreadRuntimeV1 {
|
|
|
252
252
|
throw new Error('Closed Thread runtime cannot be observed');
|
|
253
253
|
return this.store.subscribeCommitted(listener);
|
|
254
254
|
}
|
|
255
|
-
replay(cursor = 0, limit) {
|
|
256
|
-
return this.store.replay(cursor, limit);
|
|
255
|
+
replay(cursor = 0, limit, reason) {
|
|
256
|
+
return this.store.replay(cursor, limit, reason);
|
|
257
257
|
}
|
|
258
258
|
getProjection() {
|
|
259
259
|
return this.store.loadProjection();
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import type { Message } from '../services/llm';
|
|
2
2
|
import type { RuntimeEventEnvelopeV1 } from './protocol/runtime-protocol-v1';
|
|
3
3
|
import type { ThreadLogIdentityV1 } from './thread-event-store';
|
|
4
|
-
import type { ItemProjectionV1, ThreadProjectionV1 } from './thread-projection';
|
|
4
|
+
import type { ItemProjectionV1, PlanReviewProjectionV1, ThreadProjectionV1, TurnProjectionStatusV1 } from './thread-projection';
|
|
5
|
+
export interface ThreadSessionIndexPerformanceCountersV1 {
|
|
6
|
+
readonly indexBuilds: number;
|
|
7
|
+
readonly manifestReads: number;
|
|
8
|
+
readonly pageReads: number;
|
|
9
|
+
readonly bytesRead: number;
|
|
10
|
+
}
|
|
11
|
+
/** Process-local monotonic derived-index counters for Web performance evidence. */
|
|
12
|
+
export declare function threadSessionIndexPerformanceCountersV1(): ThreadSessionIndexPerformanceCountersV1;
|
|
5
13
|
export interface ThreadSessionTranscriptMessageV1 {
|
|
6
14
|
readonly role: Message['role'];
|
|
7
15
|
readonly content: string;
|
|
@@ -15,6 +23,12 @@ export interface ThreadSessionTurnCommitV1 {
|
|
|
15
23
|
readonly seq: number;
|
|
16
24
|
readonly receipt: string;
|
|
17
25
|
}
|
|
26
|
+
export interface ThreadSessionLatestTurnV1 {
|
|
27
|
+
readonly turnId: string;
|
|
28
|
+
readonly status: TurnProjectionStatusV1;
|
|
29
|
+
readonly startedSeq: number;
|
|
30
|
+
readonly terminalSeq?: number;
|
|
31
|
+
}
|
|
18
32
|
export interface ThreadSessionIndexHeadV1 {
|
|
19
33
|
readonly cursor: number;
|
|
20
34
|
readonly projectionDigest: string;
|
|
@@ -41,8 +55,10 @@ export interface ThreadSessionIndexManifestV1 {
|
|
|
41
55
|
readonly updatedAt: number;
|
|
42
56
|
readonly messageCount: number;
|
|
43
57
|
readonly pages: readonly StoredTranscriptPagePointerV1[];
|
|
58
|
+
readonly latestTurn?: ThreadSessionLatestTurnV1;
|
|
44
59
|
readonly latestTurnCommit?: ThreadSessionTurnCommitV1;
|
|
45
60
|
readonly latestPlanTurnCommit?: ThreadSessionTurnCommitV1;
|
|
61
|
+
readonly planReview?: PlanReviewProjectionV1;
|
|
46
62
|
readonly digest: string;
|
|
47
63
|
}
|
|
48
64
|
export interface ThreadSessionIndexedPageV1 {
|