@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
package/dist/web/protocol.d.ts
CHANGED
|
@@ -10,6 +10,7 @@ import type { ToolConfirmationPolicy } from '../services/global-config';
|
|
|
10
10
|
import type { WebFileContentPageV1, WebFileNodeV1, WebFileTreePageV1 } from './file-read-service';
|
|
11
11
|
import type { WebGitCommitV1, WebGitDiffPageV1, WebGitFileV1, WebGitLogPageV1, WebGitStatusV1 } from './git-read-model-service';
|
|
12
12
|
import type { WebReviewSnapshotV1, WebReviewVerificationV1 } from './review-service';
|
|
13
|
+
import type { WebSessionRuntimeSummaryV1 } from './session-runtime-registry';
|
|
13
14
|
import type { WebTerminalCreateResultV1, WebTerminalExitV1, WebTerminalGapV1, WebTerminalMetadataV1, WebTerminalOutputFrameV1, WebTerminalStateV1 } from './terminal-manager';
|
|
14
15
|
export declare const WEB_API_VERSION: 1;
|
|
15
16
|
export declare const WEB_NONCE_HEADER = "x-orion-web-nonce";
|
|
@@ -26,6 +27,7 @@ export type WebSettingsAppliesV1 = 'live' | 'next-logical-request' | 'new-sessio
|
|
|
26
27
|
export type WebSettingsStateV1 = 'ready' | 'invalid' | 'read-only' | 'unavailable';
|
|
27
28
|
export type WebThemePreferenceV1 = 'system' | 'light' | 'dark';
|
|
28
29
|
export type WebMotionPreferenceV1 = 'system' | 'reduced';
|
|
30
|
+
export type WebUiStylePreferenceV1 = 'classic' | 'orion-blocksmith';
|
|
29
31
|
export type WebEffortPreferenceV1 = 'auto' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
30
32
|
export interface WebSettingsFieldViewV1<T> {
|
|
31
33
|
readonly effectiveValue: T;
|
|
@@ -45,7 +47,7 @@ export interface WebCredentialSlotViewV1 {
|
|
|
45
47
|
readonly writable: false;
|
|
46
48
|
}
|
|
47
49
|
export interface WebSettingsDocumentV1 {
|
|
48
|
-
readonly schemaVersion:
|
|
50
|
+
readonly schemaVersion: 2;
|
|
49
51
|
readonly revision: string;
|
|
50
52
|
readonly state: WebSettingsStateV1;
|
|
51
53
|
readonly writable: boolean;
|
|
@@ -53,6 +55,7 @@ export interface WebSettingsDocumentV1 {
|
|
|
53
55
|
readonly workspace: string;
|
|
54
56
|
readonly sections: {
|
|
55
57
|
readonly appearance: {
|
|
58
|
+
readonly style: WebSettingsFieldViewV1<WebUiStylePreferenceV1>;
|
|
56
59
|
readonly theme: WebSettingsFieldViewV1<WebThemePreferenceV1>;
|
|
57
60
|
readonly motion: WebSettingsFieldViewV1<WebMotionPreferenceV1>;
|
|
58
61
|
};
|
|
@@ -78,8 +81,15 @@ export interface WebSettingsDocumentV1 {
|
|
|
78
81
|
}
|
|
79
82
|
/** Compatibility name retained inside the unreleased v0.3 Web implementation. */
|
|
80
83
|
export type WebSettingsSnapshotV1 = WebSettingsDocumentV1;
|
|
81
|
-
export type WebSettingsKeyV1 = 'appearance.theme' | 'appearance.motion' | 'defaults.model' | 'defaults.effort' | 'permissions.toolConfirmation';
|
|
84
|
+
export type WebSettingsKeyV1 = 'appearance.style' | 'appearance.theme' | 'appearance.motion' | 'defaults.model' | 'defaults.effort' | 'permissions.toolConfirmation';
|
|
82
85
|
export type WebSettingsOperationV1 = {
|
|
86
|
+
readonly op: 'set';
|
|
87
|
+
readonly key: 'appearance.style';
|
|
88
|
+
readonly value: WebUiStylePreferenceV1;
|
|
89
|
+
} | {
|
|
90
|
+
readonly op: 'unset';
|
|
91
|
+
readonly key: 'appearance.style';
|
|
92
|
+
} | {
|
|
83
93
|
readonly op: 'set';
|
|
84
94
|
readonly key: 'appearance.theme';
|
|
85
95
|
readonly value: WebThemePreferenceV1;
|
|
@@ -117,6 +127,8 @@ export type WebSettingsOperationV1 = {
|
|
|
117
127
|
};
|
|
118
128
|
export interface WebSettingsUpdateRequestV1 {
|
|
119
129
|
readonly requestId: string;
|
|
130
|
+
readonly workspaceId: string;
|
|
131
|
+
readonly expectedContextRevision: string;
|
|
120
132
|
readonly expectedRevision: string;
|
|
121
133
|
readonly operations: readonly WebSettingsOperationV1[];
|
|
122
134
|
}
|
|
@@ -195,6 +207,7 @@ export interface WebComposerControlStateV1 {
|
|
|
195
207
|
readonly sessionId: string;
|
|
196
208
|
readonly contextRevision: string;
|
|
197
209
|
readonly controlRevision: string;
|
|
210
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
198
211
|
readonly processing: boolean;
|
|
199
212
|
readonly mode: {
|
|
200
213
|
readonly baseMode: 'interactive' | 'plan' | 'auto';
|
|
@@ -229,6 +242,7 @@ interface WebComposerActionBaseV1 {
|
|
|
229
242
|
readonly workspaceId: string;
|
|
230
243
|
readonly expectedContextRevision: string;
|
|
231
244
|
readonly expectedSessionId: string;
|
|
245
|
+
readonly expectedSessionRuntimeRevision: string;
|
|
232
246
|
readonly expectedControlRevision: string;
|
|
233
247
|
}
|
|
234
248
|
export type WebComposerActionV1 = WebComposerActionBaseV1 & ({
|
|
@@ -278,6 +292,7 @@ export interface WebComposerActionResultV1 {
|
|
|
278
292
|
export interface WebSessionSnapshotV1 {
|
|
279
293
|
readonly apiVersion: 1;
|
|
280
294
|
readonly session: WebSessionSummaryV1;
|
|
295
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
281
296
|
readonly threadId: string | null;
|
|
282
297
|
readonly threadCursor: number;
|
|
283
298
|
readonly eventCursor: number;
|
|
@@ -397,6 +412,8 @@ export interface WebSessionSummaryV1 {
|
|
|
397
412
|
readonly id: string;
|
|
398
413
|
readonly projectPath: string;
|
|
399
414
|
readonly name?: string;
|
|
415
|
+
/** v0.3.7 — User-assigned tags (optional, sorted as stored). */
|
|
416
|
+
readonly tags?: readonly string[];
|
|
400
417
|
readonly model: string;
|
|
401
418
|
readonly createdAt: string;
|
|
402
419
|
readonly updatedAt: string;
|
|
@@ -406,12 +423,16 @@ export interface WebSessionSummaryV1 {
|
|
|
406
423
|
readonly activeGoalId?: string;
|
|
407
424
|
readonly activeGoalObjective?: string;
|
|
408
425
|
}
|
|
409
|
-
export type WebCommandTypeV1 = 'submit' | 'queue_followup' | 'remove_followup' | 'clear_followups' | 'interrupt' | 'permission_decision' | 'goal_control' | 'permission_mode_change' | 'cycle_agent_mode' | 'set_agent_mode';
|
|
426
|
+
export type WebCommandTypeV1 = 'submit' | 'cancel_queued_turn' | 'queue_followup' | 'remove_followup' | 'clear_followups' | 'interrupt' | 'permission_decision' | 'goal_control' | 'permission_mode_change' | 'cycle_agent_mode' | 'set_agent_mode';
|
|
410
427
|
export interface WebCommandV1 {
|
|
411
428
|
readonly requestId: string;
|
|
429
|
+
readonly workspaceId: string;
|
|
430
|
+
readonly expectedContextRevision: string;
|
|
412
431
|
readonly expectedSessionId: string;
|
|
432
|
+
readonly expectedSessionRuntimeRevision: string;
|
|
413
433
|
readonly type: WebCommandTypeV1;
|
|
414
434
|
readonly text?: string;
|
|
435
|
+
readonly queueId?: string;
|
|
415
436
|
readonly itemId?: string;
|
|
416
437
|
readonly requestPermissionId?: string;
|
|
417
438
|
readonly approved?: boolean;
|
|
@@ -425,6 +446,9 @@ export interface WebCommandV1 {
|
|
|
425
446
|
export interface WebCommandResultV1 {
|
|
426
447
|
readonly requestId: string;
|
|
427
448
|
readonly result: string;
|
|
449
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
450
|
+
readonly queueId?: string;
|
|
451
|
+
readonly queuePosition?: number;
|
|
428
452
|
readonly detail?: string;
|
|
429
453
|
readonly contextReceipt?: {
|
|
430
454
|
readonly manifestDigest: string;
|
|
@@ -442,6 +466,12 @@ export interface WebSettingsMutationResultV1 {
|
|
|
442
466
|
readonly appliedKeys: readonly WebSettingsKeyV1[];
|
|
443
467
|
readonly settings: WebSettingsDocumentV1;
|
|
444
468
|
}
|
|
469
|
+
export type WebWorkspaceMutationPhaseV1 = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
470
|
+
export interface WebWorkspaceMutationStateV1 {
|
|
471
|
+
readonly callId: string;
|
|
472
|
+
readonly phase: WebWorkspaceMutationPhaseV1;
|
|
473
|
+
readonly queuePosition?: number;
|
|
474
|
+
}
|
|
445
475
|
export type WebWorkbenchEventV1 = {
|
|
446
476
|
readonly type: 'runtime_event';
|
|
447
477
|
readonly value: AgentRuntimeEvent;
|
|
@@ -467,6 +497,12 @@ export type WebWorkbenchEventV1 = {
|
|
|
467
497
|
} | {
|
|
468
498
|
readonly type: 'composer_state_changed';
|
|
469
499
|
readonly state: WebComposerControlStateV1;
|
|
500
|
+
} | {
|
|
501
|
+
readonly type: 'session_runtime_changed';
|
|
502
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
503
|
+
} | {
|
|
504
|
+
readonly type: 'workspace_mutation_changed';
|
|
505
|
+
readonly state: WebWorkspaceMutationStateV1;
|
|
470
506
|
} | {
|
|
471
507
|
readonly type: 'replay_reset';
|
|
472
508
|
readonly reason: string;
|
|
@@ -527,6 +563,20 @@ export type WebEventEnvelopeV1 = WebEventEnvelopeBaseV1 & ({
|
|
|
527
563
|
readonly payload: {
|
|
528
564
|
readonly state: WebComposerControlStateV1;
|
|
529
565
|
};
|
|
566
|
+
} | {
|
|
567
|
+
readonly type: 'session_runtime_changed';
|
|
568
|
+
readonly sessionId: string;
|
|
569
|
+
readonly durable: true;
|
|
570
|
+
readonly payload: {
|
|
571
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
572
|
+
};
|
|
573
|
+
} | {
|
|
574
|
+
readonly type: 'workspace_mutation_changed';
|
|
575
|
+
readonly sessionId: string;
|
|
576
|
+
readonly durable: false;
|
|
577
|
+
readonly payload: {
|
|
578
|
+
readonly state: WebWorkspaceMutationStateV1;
|
|
579
|
+
};
|
|
530
580
|
} | {
|
|
531
581
|
readonly type: 'replay_reset';
|
|
532
582
|
readonly durable: true;
|
package/dist/web/protocol.js
CHANGED
|
@@ -79,6 +79,7 @@ function parseWebComposerAction(value) {
|
|
|
79
79
|
'workspaceId',
|
|
80
80
|
'expectedContextRevision',
|
|
81
81
|
'expectedSessionId',
|
|
82
|
+
'expectedSessionRuntimeRevision',
|
|
82
83
|
'expectedControlRevision',
|
|
83
84
|
'type',
|
|
84
85
|
];
|
|
@@ -98,12 +99,14 @@ function parseWebComposerAction(value) {
|
|
|
98
99
|
const workspaceId = requireUuidString(row.workspaceId, 'workspaceId');
|
|
99
100
|
const expectedContextRevision = requireUuidString(row.expectedContextRevision, 'expectedContextRevision');
|
|
100
101
|
const expectedSessionId = requireUuidString(row.expectedSessionId, 'expectedSessionId');
|
|
102
|
+
const expectedSessionRuntimeRevision = requireUuidString(row.expectedSessionRuntimeRevision, 'expectedSessionRuntimeRevision');
|
|
101
103
|
const expectedControlRevision = requireUuidString(row.expectedControlRevision, 'expectedControlRevision');
|
|
102
104
|
const base = {
|
|
103
105
|
requestId,
|
|
104
106
|
workspaceId,
|
|
105
107
|
expectedContextRevision,
|
|
106
108
|
expectedSessionId,
|
|
109
|
+
expectedSessionRuntimeRevision,
|
|
107
110
|
expectedControlRevision,
|
|
108
111
|
};
|
|
109
112
|
switch (type) {
|
|
@@ -188,13 +191,15 @@ function parseWebComposerAction(value) {
|
|
|
188
191
|
}
|
|
189
192
|
function parseWebSettingsUpdateValue(value) {
|
|
190
193
|
const row = requireRecord(value, 'Settings request');
|
|
191
|
-
assertOnlyKeys(row, ['requestId', 'expectedRevision', 'operations'], 'settings');
|
|
194
|
+
assertOnlyKeys(row, ['requestId', 'workspaceId', 'expectedContextRevision', 'expectedRevision', 'operations'], 'settings');
|
|
192
195
|
if (Buffer.byteLength(JSON.stringify(row), 'utf8') > SETTINGS_MAX_BODY_BYTES) {
|
|
193
196
|
throw new WebProtocolError(`Settings request exceeds ${SETTINGS_MAX_BODY_BYTES} bytes`);
|
|
194
197
|
}
|
|
195
198
|
const requestId = requireBoundedString(row.requestId, 'requestId', 128);
|
|
196
199
|
if (!UUID_PATTERN.test(requestId))
|
|
197
200
|
throw new WebProtocolError('requestId must be a UUID');
|
|
201
|
+
const workspaceId = requireUuidString(row.workspaceId, 'workspaceId');
|
|
202
|
+
const expectedContextRevision = requireUuidString(row.expectedContextRevision, 'expectedContextRevision');
|
|
198
203
|
const expectedRevision = requireBoundedString(row.expectedRevision, 'expectedRevision', 128);
|
|
199
204
|
if (!SETTINGS_REVISION_PATTERN.test(expectedRevision)) {
|
|
200
205
|
throw new WebProtocolError('expectedRevision is not a valid Settings revision');
|
|
@@ -215,6 +220,8 @@ function parseWebSettingsUpdateValue(value) {
|
|
|
215
220
|
});
|
|
216
221
|
return Object.freeze({
|
|
217
222
|
requestId,
|
|
223
|
+
workspaceId,
|
|
224
|
+
expectedContextRevision,
|
|
218
225
|
expectedRevision,
|
|
219
226
|
operations: Object.freeze(operations),
|
|
220
227
|
});
|
|
@@ -223,6 +230,7 @@ function parseSettingsOperation(value, index) {
|
|
|
223
230
|
const row = requireRecord(value, `operations[${index}]`);
|
|
224
231
|
const op = requireEnum(row.op, `operations[${index}].op`, ['set', 'unset']);
|
|
225
232
|
const key = requireEnum(row.key, `operations[${index}].key`, [
|
|
233
|
+
'appearance.style',
|
|
226
234
|
'appearance.theme',
|
|
227
235
|
'appearance.motion',
|
|
228
236
|
'defaults.model',
|
|
@@ -236,6 +244,15 @@ function parseSettingsOperation(value, index) {
|
|
|
236
244
|
throw new WebProtocolError(`operations[${index}].value is required for set`);
|
|
237
245
|
}
|
|
238
246
|
switch (key) {
|
|
247
|
+
case 'appearance.style':
|
|
248
|
+
return {
|
|
249
|
+
op,
|
|
250
|
+
key,
|
|
251
|
+
value: requireEnum(row.value, `operations[${index}].value`, [
|
|
252
|
+
'classic',
|
|
253
|
+
'orion-blocksmith',
|
|
254
|
+
]),
|
|
255
|
+
};
|
|
239
256
|
case 'appearance.theme':
|
|
240
257
|
return {
|
|
241
258
|
op,
|
|
@@ -285,9 +302,13 @@ function parseWebCommand(value) {
|
|
|
285
302
|
const row = requireRecord(value, 'Command body');
|
|
286
303
|
assertOnlyKeys(row, [
|
|
287
304
|
'requestId',
|
|
305
|
+
'workspaceId',
|
|
306
|
+
'expectedContextRevision',
|
|
288
307
|
'expectedSessionId',
|
|
308
|
+
'expectedSessionRuntimeRevision',
|
|
289
309
|
'type',
|
|
290
310
|
'text',
|
|
311
|
+
'queueId',
|
|
291
312
|
'itemId',
|
|
292
313
|
'requestPermissionId',
|
|
293
314
|
'approved',
|
|
@@ -299,9 +320,15 @@ function parseWebCommand(value) {
|
|
|
299
320
|
'contextReferences',
|
|
300
321
|
]);
|
|
301
322
|
const requestId = requireBoundedString(row.requestId, 'requestId', 128);
|
|
302
|
-
|
|
323
|
+
if (!UUID_PATTERN.test(requestId))
|
|
324
|
+
throw new WebProtocolError('requestId must be a UUID');
|
|
325
|
+
const workspaceId = requireUuidString(row.workspaceId, 'workspaceId');
|
|
326
|
+
const expectedContextRevision = requireUuidString(row.expectedContextRevision, 'expectedContextRevision');
|
|
327
|
+
const expectedSessionId = requireUuidString(row.expectedSessionId, 'expectedSessionId');
|
|
328
|
+
const expectedSessionRuntimeRevision = requireUuidString(row.expectedSessionRuntimeRevision, 'expectedSessionRuntimeRevision');
|
|
303
329
|
const type = requireEnum(row.type, 'type', [
|
|
304
330
|
'submit',
|
|
331
|
+
'cancel_queued_turn',
|
|
305
332
|
'queue_followup',
|
|
306
333
|
'remove_followup',
|
|
307
334
|
'clear_followups',
|
|
@@ -314,11 +341,15 @@ function parseWebCommand(value) {
|
|
|
314
341
|
]);
|
|
315
342
|
const command = {
|
|
316
343
|
requestId,
|
|
344
|
+
workspaceId,
|
|
345
|
+
expectedContextRevision,
|
|
317
346
|
expectedSessionId,
|
|
347
|
+
expectedSessionRuntimeRevision,
|
|
318
348
|
type,
|
|
319
349
|
...(row.text === undefined
|
|
320
350
|
? {}
|
|
321
351
|
: { text: requireBoundedString(row.text, 'text', exports.WEB_MAX_BODY_BYTES) }),
|
|
352
|
+
...(row.queueId === undefined ? {} : { queueId: requireUuidString(row.queueId, 'queueId') }),
|
|
322
353
|
...(row.itemId === undefined
|
|
323
354
|
? {}
|
|
324
355
|
: { itemId: requireBoundedString(row.itemId, 'itemId', 256) }),
|
|
@@ -374,6 +405,8 @@ function toAgentRuntimeInput(command) {
|
|
|
374
405
|
switch (command.type) {
|
|
375
406
|
case 'submit':
|
|
376
407
|
return { type: 'submit', text: command.text, source: 'programmatic' };
|
|
408
|
+
case 'cancel_queued_turn':
|
|
409
|
+
throw new WebProtocolError('cancel_queued_turn is handled by the Web Session registry');
|
|
377
410
|
case 'queue_followup':
|
|
378
411
|
return { type: 'queue_followup', text: command.text, source: 'programmatic' };
|
|
379
412
|
case 'remove_followup':
|
|
@@ -431,6 +464,7 @@ function projectSessionSummary(session) {
|
|
|
431
464
|
messageCount: session.messageCount ?? 0,
|
|
432
465
|
}),
|
|
433
466
|
...(session.taskSummary ? { taskSummary: session.taskSummary } : {}),
|
|
467
|
+
...(session.tags && session.tags.length > 0 ? { tags: Object.freeze([...session.tags]) } : {}),
|
|
434
468
|
...(session.activeGoalId ? { activeGoalId: session.activeGoalId } : {}),
|
|
435
469
|
...(session.activeGoalObjective ? { activeGoalObjective: session.activeGoalObjective } : {}),
|
|
436
470
|
});
|
|
@@ -456,6 +490,9 @@ function validateCommandFields(command) {
|
|
|
456
490
|
if ((command.type === 'submit' || command.type === 'queue_followup') && !command.text?.trim()) {
|
|
457
491
|
throw new WebProtocolError(`${command.type} requires non-empty text`);
|
|
458
492
|
}
|
|
493
|
+
if (command.type === 'cancel_queued_turn' && !command.queueId) {
|
|
494
|
+
throw new WebProtocolError('cancel_queued_turn requires queueId');
|
|
495
|
+
}
|
|
459
496
|
if (command.type === 'remove_followup' && !command.itemId) {
|
|
460
497
|
throw new WebProtocolError('remove_followup requires itemId');
|
|
461
498
|
}
|
|
@@ -20,6 +20,7 @@ export interface WebReviewSnapshotV1 {
|
|
|
20
20
|
readonly isRepository: boolean;
|
|
21
21
|
readonly clean: boolean;
|
|
22
22
|
readonly changedFiles: readonly WebGitFileV1[];
|
|
23
|
+
readonly totalChangedFiles: number;
|
|
23
24
|
readonly stagedCount: number;
|
|
24
25
|
readonly unstagedCount: number;
|
|
25
26
|
readonly untrackedCount: number;
|
|
@@ -45,6 +45,7 @@ class ReviewServiceV1 {
|
|
|
45
45
|
isRepository: status.isRepository,
|
|
46
46
|
clean: status.clean,
|
|
47
47
|
changedFiles: Object.freeze(changedFiles),
|
|
48
|
+
totalChangedFiles: status.totalFiles,
|
|
48
49
|
stagedCount: status.staged.length,
|
|
49
50
|
unstagedCount: status.unstaged.length,
|
|
50
51
|
untrackedCount: status.untracked.length,
|
package/dist/web/server.js
CHANGED
|
@@ -55,14 +55,28 @@ async function startOrionWebServer(options) {
|
|
|
55
55
|
return closing;
|
|
56
56
|
closing = (async () => {
|
|
57
57
|
clearInterval(heartbeat);
|
|
58
|
-
|
|
59
|
-
await
|
|
60
|
-
await
|
|
58
|
+
const failures = [];
|
|
59
|
+
await captureCloseFailure(failures, () => terminalSockets.close());
|
|
60
|
+
await captureCloseFailure(failures, () => workbench.shutdown());
|
|
61
|
+
await captureCloseFailure(failures, () => closeServer(server));
|
|
62
|
+
if (failures.length > 0) {
|
|
63
|
+
const error = new Error('Orion Web Host shutdown was incomplete.');
|
|
64
|
+
Object.defineProperty(error, 'failures', { value: Object.freeze([...failures]) });
|
|
65
|
+
throw error;
|
|
66
|
+
}
|
|
61
67
|
})();
|
|
62
68
|
return closing;
|
|
63
69
|
};
|
|
64
70
|
return Object.freeze({ host: HOST, port, url: origin, nonce, workbench, server, close });
|
|
65
71
|
}
|
|
72
|
+
async function captureCloseFailure(failures, operation) {
|
|
73
|
+
try {
|
|
74
|
+
await operation();
|
|
75
|
+
}
|
|
76
|
+
catch (error) {
|
|
77
|
+
failures.push(error);
|
|
78
|
+
}
|
|
79
|
+
}
|
|
66
80
|
async function handleRequest(context) {
|
|
67
81
|
const { request, response } = context;
|
|
68
82
|
applySecurityHeaders(response, context.nonce);
|
|
@@ -98,6 +112,13 @@ async function handleRequest(context) {
|
|
|
98
112
|
sendJson(response, 200, collectionPage(url, `workspace-sessions-${workspaceId}`, context.workbench.listWorkspaceSessions(workspaceId, contextGuard), session => session.id));
|
|
99
113
|
return;
|
|
100
114
|
}
|
|
115
|
+
const archivedSessionsMatch = path.match(/^\/workspaces\/([^/]+)\/sessions\/archived$/);
|
|
116
|
+
if (method === 'GET' && archivedSessionsMatch) {
|
|
117
|
+
const workspaceId = safeDecodePathSegment(archivedSessionsMatch[1]);
|
|
118
|
+
const contextGuard = requireContextGuardQuery(url);
|
|
119
|
+
sendJson(response, 200, collectionPage(url, `workspace-sessions-archived-${workspaceId}`, context.workbench.listArchivedWorkspaceSessions(workspaceId, contextGuard), session => session.id));
|
|
120
|
+
return;
|
|
121
|
+
}
|
|
101
122
|
const workspaceSummaryMatch = path.match(/^\/workspaces\/([^/]+)\/summary$/);
|
|
102
123
|
if (method === 'GET' && workspaceSummaryMatch) {
|
|
103
124
|
const workspaceId = requireUuid(safeDecodePathSegment(workspaceSummaryMatch[1]), 'workspaceId');
|
|
@@ -210,7 +231,12 @@ async function handleRequest(context) {
|
|
|
210
231
|
const snapshotMatch = path.match(/^\/sessions\/([^/]+)\/snapshot$/);
|
|
211
232
|
if (method === 'GET' && snapshotMatch) {
|
|
212
233
|
const contextGuard = requireContextGuardQuery(url);
|
|
213
|
-
sendJson(response, 200, context.workbench.sessionSnapshot(safeDecodePathSegment(snapshotMatch[1]), url.searchParams.get('cursor') ?? undefined, pageSize(url),
|
|
234
|
+
sendJson(response, 200, context.workbench.sessionSnapshot(safeDecodePathSegment(snapshotMatch[1]), url.searchParams.get('cursor') ?? undefined, pageSize(url),
|
|
235
|
+
// A recovery snapshot starts at the latest bounded transcript page and
|
|
236
|
+
// pages backward. Older clients did not send the internal `tail=1`
|
|
237
|
+
// hint, so absence must still use the indexed tail path rather than
|
|
238
|
+
// reopening and replaying the complete Thread.
|
|
239
|
+
url.searchParams.get('tail') !== '0', contextGuard));
|
|
214
240
|
return;
|
|
215
241
|
}
|
|
216
242
|
const composerStateMatch = path.match(/^\/sessions\/([^/]+)\/composer-state$/);
|
|
@@ -251,7 +277,7 @@ async function handleRequest(context) {
|
|
|
251
277
|
assertOnlyKeys(body, ['requestId', 'name', 'expectedContextRevision', 'workspaceId']);
|
|
252
278
|
const requestId = requireUuid(body.requestId, 'requestId');
|
|
253
279
|
const contextGuard = requireContextGuardRecord(body);
|
|
254
|
-
const name =
|
|
280
|
+
const name = requireText(body.name, 'name', 120);
|
|
255
281
|
const sessionId = safeDecodePathSegment(sessionMatch[1]);
|
|
256
282
|
const result = await context.workbench.executeMutation(requestId, 'session.rename', { sessionId, name, ...contextGuard }, () => ({
|
|
257
283
|
requestId,
|
|
@@ -260,6 +286,68 @@ async function handleRequest(context) {
|
|
|
260
286
|
sendJson(response, 200, result);
|
|
261
287
|
return;
|
|
262
288
|
}
|
|
289
|
+
// v0.3.7 — Session tags / archive / restore / delete. One mutation family:
|
|
290
|
+
// every body carries a requestId so the idempotency ledger dedupes retries.
|
|
291
|
+
const sessionTagsMatch = path.match(/^\/sessions\/([^/]+)\/tags$/);
|
|
292
|
+
if (method === 'POST' && sessionTagsMatch) {
|
|
293
|
+
assertMutation(request, context.nonce, context.origin);
|
|
294
|
+
const body = requireRecord(await readJson(request), 'Session tags request');
|
|
295
|
+
assertOnlyKeys(body, ['requestId', 'tags', 'expectedContextRevision', 'workspaceId']);
|
|
296
|
+
const requestId = requireUuid(body.requestId, 'requestId');
|
|
297
|
+
const contextGuard = requireContextGuardRecord(body);
|
|
298
|
+
const sessionId = safeDecodePathSegment(sessionTagsMatch[1]);
|
|
299
|
+
const result = await context.workbench.executeMutation(requestId, 'session.tags', { sessionId, tags: body.tags, ...contextGuard }, () => ({
|
|
300
|
+
requestId,
|
|
301
|
+
session: context.workbench.setSessionTags(sessionId, body.tags, contextGuard),
|
|
302
|
+
}));
|
|
303
|
+
sendJson(response, 200, result);
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
const sessionArchiveMatch = path.match(/^\/sessions\/([^/]+)\/archive$/);
|
|
307
|
+
if (method === 'POST' && sessionArchiveMatch) {
|
|
308
|
+
assertMutation(request, context.nonce, context.origin);
|
|
309
|
+
const body = requireRecord(await readJson(request), 'Session archive request');
|
|
310
|
+
assertOnlyKeys(body, ['requestId', 'expectedContextRevision', 'workspaceId']);
|
|
311
|
+
const requestId = requireUuid(body.requestId, 'requestId');
|
|
312
|
+
const contextGuard = requireContextGuardRecord(body);
|
|
313
|
+
const sessionId = safeDecodePathSegment(sessionArchiveMatch[1]);
|
|
314
|
+
const result = await context.workbench.executeMutation(requestId, 'session.archive', { sessionId, ...contextGuard }, () => ({
|
|
315
|
+
requestId,
|
|
316
|
+
session: context.workbench.archiveSession(sessionId, contextGuard),
|
|
317
|
+
}));
|
|
318
|
+
sendJson(response, 200, result);
|
|
319
|
+
return;
|
|
320
|
+
}
|
|
321
|
+
const sessionRestoreMatch = path.match(/^\/sessions\/([^/]+)\/restore$/);
|
|
322
|
+
if (method === 'POST' && sessionRestoreMatch) {
|
|
323
|
+
assertMutation(request, context.nonce, context.origin);
|
|
324
|
+
const body = requireRecord(await readJson(request), 'Session restore request');
|
|
325
|
+
assertOnlyKeys(body, ['requestId', 'expectedContextRevision', 'workspaceId']);
|
|
326
|
+
const requestId = requireUuid(body.requestId, 'requestId');
|
|
327
|
+
const contextGuard = requireContextGuardRecord(body);
|
|
328
|
+
const sessionId = safeDecodePathSegment(sessionRestoreMatch[1]);
|
|
329
|
+
const result = await context.workbench.executeMutation(requestId, 'session.restore', { sessionId, ...contextGuard }, () => ({
|
|
330
|
+
requestId,
|
|
331
|
+
session: context.workbench.restoreSession(sessionId, contextGuard),
|
|
332
|
+
}));
|
|
333
|
+
sendJson(response, 200, result);
|
|
334
|
+
return;
|
|
335
|
+
}
|
|
336
|
+
const sessionDeleteMatch = path.match(/^\/sessions\/([^/]+)$/);
|
|
337
|
+
if (method === 'DELETE' && sessionDeleteMatch) {
|
|
338
|
+
assertMutation(request, context.nonce, context.origin);
|
|
339
|
+
const body = requireRecord(await readJson(request), 'Session delete request');
|
|
340
|
+
assertOnlyKeys(body, ['requestId', 'expectedContextRevision', 'workspaceId']);
|
|
341
|
+
const requestId = requireUuid(body.requestId, 'requestId');
|
|
342
|
+
const contextGuard = requireContextGuardRecord(body);
|
|
343
|
+
const sessionId = safeDecodePathSegment(sessionDeleteMatch[1]);
|
|
344
|
+
const result = await context.workbench.executeMutation(requestId, 'session.delete', { sessionId, ...contextGuard }, () => ({
|
|
345
|
+
requestId,
|
|
346
|
+
deleted: context.workbench.deleteSession(sessionId, contextGuard).deleted,
|
|
347
|
+
}));
|
|
348
|
+
sendJson(response, 200, result);
|
|
349
|
+
return;
|
|
350
|
+
}
|
|
263
351
|
if (method === 'POST' && path === '/commands') {
|
|
264
352
|
assertMutation(request, context.nonce, context.origin);
|
|
265
353
|
sendJson(response, 202, await context.workbench.dispatch(await readJson(request)));
|
|
@@ -272,7 +360,12 @@ async function handleRequest(context) {
|
|
|
272
360
|
if (method === 'PATCH' && path === '/settings') {
|
|
273
361
|
assertMutation(request, context.nonce, context.origin, 'settings_write_forbidden');
|
|
274
362
|
const body = (0, protocol_1.parseWebSettingsUpdate)(await readJson(request));
|
|
275
|
-
const result = await context.workbench.executeMutation(body.requestId, 'settings.update', {
|
|
363
|
+
const result = await context.workbench.executeMutation(body.requestId, 'settings.update', {
|
|
364
|
+
workspaceId: body.workspaceId,
|
|
365
|
+
expectedContextRevision: body.expectedContextRevision,
|
|
366
|
+
expectedRevision: body.expectedRevision,
|
|
367
|
+
operations: body.operations,
|
|
368
|
+
}, async () => ({ requestId: body.requestId, ...(await context.workbench.updateSettings(body)) }));
|
|
276
369
|
sendJson(response, 200, result);
|
|
277
370
|
return;
|
|
278
371
|
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
export interface WebSessionActorKeyV1 {
|
|
2
|
+
readonly workspaceId: string;
|
|
3
|
+
readonly sessionId: string;
|
|
4
|
+
}
|
|
5
|
+
export type WebSessionActorPhaseV1 = 'cold' | 'starting' | 'idle' | 'queued' | 'running' | 'waiting_approval' | 'stopping' | 'interrupted' | 'failed';
|
|
6
|
+
export interface WebSessionRuntimeSummaryV1 extends WebSessionActorKeyV1 {
|
|
7
|
+
readonly runtimeRevision: string;
|
|
8
|
+
readonly phase: WebSessionActorPhaseV1;
|
|
9
|
+
readonly queueId?: string;
|
|
10
|
+
readonly queuePosition?: number;
|
|
11
|
+
readonly pendingApprovalCount: number;
|
|
12
|
+
readonly resident: boolean;
|
|
13
|
+
readonly estimatedBytes: number;
|
|
14
|
+
readonly updatedAt: string;
|
|
15
|
+
}
|
|
16
|
+
export interface WebSessionTurnStartV1<T> {
|
|
17
|
+
/** Synchronous command admission returned to the HTTP caller. */
|
|
18
|
+
readonly accepted: T;
|
|
19
|
+
/** Resolves only after the logical turn, including approval waits, is terminal. */
|
|
20
|
+
readonly settled: Promise<void>;
|
|
21
|
+
}
|
|
22
|
+
export type WebSessionTurnAdmissionV1<T> = {
|
|
23
|
+
readonly status: 'started';
|
|
24
|
+
readonly accepted: T;
|
|
25
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
26
|
+
} | {
|
|
27
|
+
readonly status: 'queued';
|
|
28
|
+
readonly queueId: string;
|
|
29
|
+
readonly queuePosition: number;
|
|
30
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
31
|
+
};
|
|
32
|
+
export interface WebSessionRuntimeRegistryOptionsV1<TActor extends object> {
|
|
33
|
+
readonly createActor: (key: WebSessionActorKeyV1) => Promise<TActor>;
|
|
34
|
+
/**
|
|
35
|
+
* Finish actor startup only after the registry owns the returned resource.
|
|
36
|
+
* This lets the registry quarantine and retry cleanup when initialization
|
|
37
|
+
* fails instead of losing the only handle to a partially started actor.
|
|
38
|
+
*/
|
|
39
|
+
readonly initializeActor?: (actor: TActor, key: WebSessionActorKeyV1) => Promise<void>;
|
|
40
|
+
readonly closeActor: (actor: TActor, reason: string) => Promise<void>;
|
|
41
|
+
readonly estimateActorBytes?: (actor: TActor) => number;
|
|
42
|
+
readonly maxRunningSessions?: number;
|
|
43
|
+
readonly maxResidentSessionActors?: number;
|
|
44
|
+
readonly now?: () => number;
|
|
45
|
+
readonly createRevision?: () => string;
|
|
46
|
+
readonly onSummaryChanged?: (summary: WebSessionRuntimeSummaryV1) => void;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Bounded Web-only Session actor pool.
|
|
50
|
+
*
|
|
51
|
+
* It owns concurrency admission and actor lifetime, but deliberately knows
|
|
52
|
+
* nothing about React, HTTP, OrionRuntime, or TUI semantics. Callers provide a
|
|
53
|
+
* Session-scoped actor and a logical-turn terminal promise. This keeps Web
|
|
54
|
+
* parallelism out of the single-session CLI/TUI runner.
|
|
55
|
+
*/
|
|
56
|
+
export declare class WebSessionRuntimeRegistryV1<TActor extends object> {
|
|
57
|
+
private readonly options;
|
|
58
|
+
private readonly records;
|
|
59
|
+
private readonly queue;
|
|
60
|
+
private readonly maxRunningSessions;
|
|
61
|
+
private readonly maxResidentSessionActors;
|
|
62
|
+
private readonly now;
|
|
63
|
+
private readonly createRevision;
|
|
64
|
+
private capacityQueue;
|
|
65
|
+
private ordinal;
|
|
66
|
+
private runningCountValue;
|
|
67
|
+
private closed;
|
|
68
|
+
private actorsCreatedCount;
|
|
69
|
+
private actorsClosedCount;
|
|
70
|
+
private actorsEvictedCount;
|
|
71
|
+
constructor(options: WebSessionRuntimeRegistryOptionsV1<TActor>);
|
|
72
|
+
get runningCount(): number;
|
|
73
|
+
get residentCount(): number;
|
|
74
|
+
/**
|
|
75
|
+
* Cumulative actor pool counters since the registry was created. E2E and
|
|
76
|
+
* diagnostics compare two reads to prove a pure Session selection allocated
|
|
77
|
+
* no Session actor (actorsCreated delta 0) and performed no capacity
|
|
78
|
+
* eviction (actorsEvicted delta 0) while the pool keeps actors alive.
|
|
79
|
+
*/
|
|
80
|
+
stats(): {
|
|
81
|
+
readonly actorsCreated: number;
|
|
82
|
+
readonly actorsClosed: number;
|
|
83
|
+
readonly actorsEvicted: number;
|
|
84
|
+
};
|
|
85
|
+
summary(key: WebSessionActorKeyV1): WebSessionRuntimeSummaryV1;
|
|
86
|
+
summaries(): readonly WebSessionRuntimeSummaryV1[];
|
|
87
|
+
/**
|
|
88
|
+
* Return the current resident actor without starting a cold Session.
|
|
89
|
+
*
|
|
90
|
+
* Snapshot/read paths use this to project live state while preserving the
|
|
91
|
+
* cold-read invariant: merely selecting or inspecting a Session must not
|
|
92
|
+
* allocate a Runtime or consume a running slot.
|
|
93
|
+
*/
|
|
94
|
+
residentActor(key: WebSessionActorKeyV1): {
|
|
95
|
+
readonly actor: TActor;
|
|
96
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
97
|
+
} | undefined;
|
|
98
|
+
ensureResident(key: WebSessionActorKeyV1, expectedRuntimeRevision?: string): Promise<{
|
|
99
|
+
readonly actor: TActor;
|
|
100
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
101
|
+
}>;
|
|
102
|
+
withActor<T>(key: WebSessionActorKeyV1, expectedRuntimeRevision: string, action: (actor: TActor) => T | Promise<T>): Promise<{
|
|
103
|
+
readonly result: T;
|
|
104
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
105
|
+
}>;
|
|
106
|
+
admitTurn<T>(input: {
|
|
107
|
+
readonly key: WebSessionActorKeyV1;
|
|
108
|
+
readonly expectedRuntimeRevision: string;
|
|
109
|
+
readonly start: (actor: TActor) => Promise<WebSessionTurnStartV1<T>>;
|
|
110
|
+
}): Promise<WebSessionTurnAdmissionV1<T>>;
|
|
111
|
+
cancelQueued(key: WebSessionActorKeyV1, queueId: string, expectedRuntimeRevision: string): WebSessionRuntimeSummaryV1;
|
|
112
|
+
setPendingApprovalCount(key: WebSessionActorKeyV1, count: number): WebSessionRuntimeSummaryV1;
|
|
113
|
+
evict(key: WebSessionActorKeyV1, reason?: string): Promise<void>;
|
|
114
|
+
shutdown(reason?: string): Promise<void>;
|
|
115
|
+
private record;
|
|
116
|
+
private ensureResidentLocked;
|
|
117
|
+
private makeCapacityLocked;
|
|
118
|
+
private isEvictable;
|
|
119
|
+
private closeResidentLocked;
|
|
120
|
+
private startTurn;
|
|
121
|
+
private finishTurn;
|
|
122
|
+
private drainQueue;
|
|
123
|
+
private publishQueuePositions;
|
|
124
|
+
private snapshot;
|
|
125
|
+
private assertRevision;
|
|
126
|
+
private transition;
|
|
127
|
+
private touch;
|
|
128
|
+
private bump;
|
|
129
|
+
private publish;
|
|
130
|
+
private withCapacityLock;
|
|
131
|
+
private assertOpen;
|
|
132
|
+
}
|
|
133
|
+
export declare class WebSessionRuntimeRegistryError extends Error {
|
|
134
|
+
readonly status: number;
|
|
135
|
+
readonly code: string;
|
|
136
|
+
constructor(status: number, code: string, message: string);
|
|
137
|
+
}
|
|
138
|
+
//# sourceMappingURL=session-runtime-registry.d.ts.map
|