@orion-agents/orion-code 0.3.1 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +126 -0
- package/README.md +71 -32
- package/README.zh-CN.md +56 -29
- package/dist/commands/model-command-handlers.js +59 -14
- package/dist/commands/types.d.ts +6 -0
- package/dist/commands/workflow-command-handlers.d.ts +1 -1
- package/dist/commands/workflow-command-handlers.js +42 -3
- package/dist/commands/workflow-commands.js +2 -2
- package/dist/runtime/agent-runtime-controller.d.ts +17 -2
- package/dist/runtime/agent-runtime-controller.js +207 -47
- package/dist/runtime/agent-runtime-protocol.d.ts +3 -0
- package/dist/runtime/agent-runtime-runner.d.ts +8 -0
- package/dist/runtime/capability-receipt-journal.js +1 -1
- package/dist/runtime/durable-tool-receipt-reader.js +1 -1
- package/dist/runtime/legacy-thread-materializer.js +2 -2
- 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 +6 -0
- package/dist/runtime/orion-session-runner.js +27 -4
- package/dist/runtime/plan-review.d.ts +38 -0
- package/dist/runtime/plan-review.js +173 -0
- package/dist/runtime/product-bootstrap.d.ts +6 -0
- package/dist/runtime/product-bootstrap.js +388 -314
- package/dist/runtime/product-orion-runtime.d.ts +5 -0
- package/dist/runtime/product-orion-runtime.js +16 -35
- package/dist/runtime/protocol/runtime-protocol-v1.d.ts +73 -0
- package/dist/runtime/protocol/runtime-protocol-v1.js +37 -0
- package/dist/runtime/release-receipts.d.ts +9 -3
- package/dist/runtime/release-receipts.js +120 -1
- package/dist/runtime/session-composer-control.d.ts +136 -0
- package/dist/runtime/session-composer-control.js +532 -0
- 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/thread-event-store.d.ts +10 -1
- package/dist/runtime/thread-event-store.js +48 -12
- package/dist/runtime/thread-projection.d.ts +36 -0
- package/dist/runtime/thread-projection.js +99 -0
- 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/turn-commit.js +1 -1
- package/dist/runtime/ui-events.d.ts +9 -1
- package/dist/runtime/workspace-runtime-kernel.d.ts +67 -0
- package/dist/runtime/workspace-runtime-kernel.js +148 -0
- package/dist/services/global-config.d.ts +2 -0
- package/dist/services/global-config.js +7 -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/redaction.js +19 -2
- package/dist/services/session-storage.d.ts +36 -0
- package/dist/services/session-storage.js +77 -1
- 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/tui-ui/transcript-inspector-layout.js +13 -6
- package/dist/web/event-hub.d.ts +2 -0
- package/dist/web/event-hub.js +53 -6
- package/dist/web/file-read-service.d.ts +11 -0
- package/dist/web/file-read-service.js +56 -19
- package/dist/web/git-read-model-service.d.ts +8 -0
- package/dist/web/git-read-model-service.js +35 -2
- package/dist/web/protocol.d.ts +193 -3
- package/dist/web/protocol.js +245 -2
- package/dist/web/review-service.d.ts +1 -0
- package/dist/web/review-service.js +1 -0
- package/dist/web/server.js +75 -14
- package/dist/web/session-runtime-registry.d.ts +124 -0
- package/dist/web/session-runtime-registry.js +448 -0
- package/dist/web/terminal-manager.d.ts +1 -0
- package/dist/web/terminal-manager.js +60 -9
- package/dist/web/terminal-server.js +35 -6
- package/dist/web/workbench-controller.d.ts +52 -11
- package/dist/web/workbench-controller.js +1049 -110
- 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-DpKoD07C.js → DiffViewer-D6mG729y.js} +1 -1
- package/dist/web-client/assets/FilesPanel-CCDoAZ1J.js +2 -0
- package/dist/web-client/assets/{GitPanel-D20StcdG.js → GitPanel-DtNgiH7A.js} +1 -1
- package/dist/web-client/assets/ReviewPanel-CKEBSt6P.js +1 -0
- package/dist/web-client/assets/{TerminalPanel-BLQ592Fb.js → TerminalPanel-CNxMaBLp.js} +15 -13
- package/dist/web-client/assets/index-BBvNg3By.css +1 -0
- package/dist/web-client/assets/index-C6TDJwMC.js +17 -0
- package/dist/web-client/index.html +4 -4
- package/docs/architecture/agent-mode-permission-contract.md +87 -0
- package/docs/architecture/v0.3.1-web-api.yaml +53 -5
- package/docs/architecture/v0.3.2-web-api.yaml +3029 -0
- 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.1-to-v0.3.2.md +94 -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.1-web-workbench-professional-shell-plan.md +1 -1
- package/docs/plan/v0.3.2-web-workbench-layout-and-composer-plan.md +869 -0
- package/docs/plan/v0.3.3-plan.md +1113 -0
- package/docs/plan/v0.3.4-stabilization-plan.md +89 -0
- package/docs/readme.md +12 -2
- package/docs/test/v0.3.1-web-workbench-e2e-plan.md +1 -1
- package/docs/test/v0.3.2-web-workbench-e2e-plan.md +100 -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 +25 -25
- package/package.json +15 -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/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-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-BkoLmgjR.js +0 -2
- package/dist/web-client/assets/ReviewPanel-3MVWbMQV.js +0 -1
- package/dist/web-client/assets/index-BkIDl_xk.js +0 -16
- package/dist/web-client/assets/index-DXMpnWE8.css +0 -1
|
@@ -32,17 +32,22 @@ class FileReadServiceV1 {
|
|
|
32
32
|
this.secret = (0, crypto_1.randomBytes)(32);
|
|
33
33
|
this.pathById = new Map([[ROOT_NODE_ID, '']]);
|
|
34
34
|
this.idByPath = new Map([['', ROOT_NODE_ID]]);
|
|
35
|
+
this.performance = { readOperations: 0, bytesRead: 0, itemsParsed: 0 };
|
|
35
36
|
this.root = canonicalDirectory(workspace);
|
|
36
37
|
}
|
|
37
38
|
get rootId() {
|
|
38
39
|
return ROOT_NODE_ID;
|
|
39
40
|
}
|
|
41
|
+
performanceCounters() {
|
|
42
|
+
return Object.freeze({ ...this.performance });
|
|
43
|
+
}
|
|
40
44
|
identifyRelativePath(relativePath) {
|
|
41
45
|
const normalized = normalizeRelativePath(relativePath);
|
|
42
46
|
this.resolveRelative(normalized);
|
|
43
47
|
return this.remember(normalized);
|
|
44
48
|
}
|
|
45
49
|
list(input = {}) {
|
|
50
|
+
this.performance.readOperations += 1;
|
|
46
51
|
const parentId = input.parentId ?? ROOT_NODE_ID;
|
|
47
52
|
const pageSize = boundedPageSize(input.pageSize ?? DEFAULT_PAGE_SIZE);
|
|
48
53
|
const parent = this.resolveNode(parentId);
|
|
@@ -62,6 +67,7 @@ class FileReadServiceV1 {
|
|
|
62
67
|
const entry = directory.readSync();
|
|
63
68
|
if (!entry)
|
|
64
69
|
break;
|
|
70
|
+
this.performance.itemsParsed += 1;
|
|
65
71
|
if (IGNORED_NAMES.has(entry.name))
|
|
66
72
|
continue;
|
|
67
73
|
if (visibleIndex < offset) {
|
|
@@ -102,12 +108,13 @@ class FileReadServiceV1 {
|
|
|
102
108
|
});
|
|
103
109
|
}
|
|
104
110
|
readContent(input) {
|
|
111
|
+
this.performance.readOperations += 1;
|
|
105
112
|
const limitBytes = boundedContentBytes(input.limitBytes ?? DEFAULT_CONTENT_BYTES);
|
|
106
113
|
const node = this.resolveNode(input.fileId);
|
|
107
114
|
if (!node.stat.isFile()) {
|
|
108
115
|
throw new errors_1.WebWorkbenchError(409, 'File node is not a regular file.', 'file_not_regular');
|
|
109
116
|
}
|
|
110
|
-
const sensitive = (
|
|
117
|
+
const sensitive = isSensitiveResolvedPath(this.root, node.relativePath, node.canonicalPath);
|
|
111
118
|
if (sensitive) {
|
|
112
119
|
throw new errors_1.WebWorkbenchError(403, 'Sensitive file content is not available in the Web Workbench.', 'sensitive_file_blocked');
|
|
113
120
|
}
|
|
@@ -125,8 +132,9 @@ class FileReadServiceV1 {
|
|
|
125
132
|
throw new errors_1.WebWorkbenchError(409, 'File changed before it was read.', 'file_revision_conflict');
|
|
126
133
|
}
|
|
127
134
|
const sample = Buffer.alloc(Math.min(8192, Number(before.size)));
|
|
128
|
-
if (sample.length > 0)
|
|
129
|
-
(0, fs_1.readSync)(descriptor, sample, 0, sample.length, 0);
|
|
135
|
+
if (sample.length > 0) {
|
|
136
|
+
this.performance.bytesRead += (0, fs_1.readSync)(descriptor, sample, 0, sample.length, 0);
|
|
137
|
+
}
|
|
130
138
|
const binary = isBinary(sample);
|
|
131
139
|
if (binary) {
|
|
132
140
|
return Object.freeze({
|
|
@@ -143,6 +151,20 @@ class FileReadServiceV1 {
|
|
|
143
151
|
}
|
|
144
152
|
const remaining = Math.max(0, Number(before.size) - offset);
|
|
145
153
|
const page = readLineSafePage(descriptor, offset, remaining, limitBytes);
|
|
154
|
+
this.performance.bytesRead += page.bytesRead;
|
|
155
|
+
if (isBinary(page.content)) {
|
|
156
|
+
return Object.freeze({
|
|
157
|
+
fileId: input.fileId,
|
|
158
|
+
name: (0, path_1.basename)(node.relativePath),
|
|
159
|
+
revision,
|
|
160
|
+
sizeBytes: Number(before.size),
|
|
161
|
+
binary: true,
|
|
162
|
+
sensitive: false,
|
|
163
|
+
mediaType: 'application/octet-stream',
|
|
164
|
+
offsetBytes: offset,
|
|
165
|
+
nextCursor: null,
|
|
166
|
+
});
|
|
167
|
+
}
|
|
146
168
|
const contentBuffer = validUtf8Prefix(page.content);
|
|
147
169
|
if (page.consumedBytes > 0 && contentBuffer.length === 0) {
|
|
148
170
|
throw new errors_1.WebWorkbenchError(415, 'File is not valid UTF-8 text.', 'file_binary');
|
|
@@ -183,24 +205,32 @@ class FileReadServiceV1 {
|
|
|
183
205
|
const symlink = lexicalStat.isSymbolicLink();
|
|
184
206
|
let readable = true;
|
|
185
207
|
let effectiveStat = lexicalStat;
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
}
|
|
193
|
-
catch {
|
|
194
|
-
readable = false;
|
|
195
|
-
}
|
|
208
|
+
let canonicalPath;
|
|
209
|
+
try {
|
|
210
|
+
canonicalPath = (0, fs_1.realpathSync)(lexicalPath);
|
|
211
|
+
readable = isWithinRoot(canonicalPath, this.root);
|
|
212
|
+
if (readable)
|
|
213
|
+
effectiveStat = (0, fs_1.statSync)(canonicalPath, { bigint: true });
|
|
196
214
|
}
|
|
215
|
+
catch {
|
|
216
|
+
readable = false;
|
|
217
|
+
}
|
|
218
|
+
const targetKind = readable
|
|
219
|
+
? effectiveStat.isDirectory()
|
|
220
|
+
? 'directory'
|
|
221
|
+
: effectiveStat.isFile()
|
|
222
|
+
? 'file'
|
|
223
|
+
: undefined
|
|
224
|
+
: undefined;
|
|
197
225
|
return Object.freeze({
|
|
198
226
|
id: this.remember(relativePath),
|
|
199
227
|
name: (0, path_1.basename)(relativePath),
|
|
228
|
+
displayPath: normalizeRelativePath(relativePath),
|
|
200
229
|
kind: symlink ? 'symlink' : effectiveStat.isDirectory() ? 'directory' : 'file',
|
|
230
|
+
...(symlink && targetKind ? { targetKind } : {}),
|
|
201
231
|
...(effectiveStat.isFile() ? { sizeBytes: Number(effectiveStat.size) } : {}),
|
|
202
232
|
modifiedAt: new Date(Number(effectiveStat.mtimeMs)).toISOString(),
|
|
203
|
-
sensitive: (
|
|
233
|
+
sensitive: isSensitiveResolvedPath(this.root, relativePath, canonicalPath),
|
|
204
234
|
readable,
|
|
205
235
|
});
|
|
206
236
|
}
|
|
@@ -299,7 +329,7 @@ class FileReadServiceV1 {
|
|
|
299
329
|
exports.FileReadServiceV1 = FileReadServiceV1;
|
|
300
330
|
function readLineSafePage(descriptor, offset, remaining, requestedBytes) {
|
|
301
331
|
if (remaining === 0)
|
|
302
|
-
return { content: Buffer.alloc(0), consumedBytes: 0 };
|
|
332
|
+
return { content: Buffer.alloc(0), consumedBytes: 0, bytesRead: 0 };
|
|
303
333
|
// Redaction rules are label-aware. Never split a logical line across pages or a caller could
|
|
304
334
|
// request `token=` and its value in separate pages. A line larger than the bounded service
|
|
305
335
|
// budget fails closed instead of returning an unsafe fragment.
|
|
@@ -310,19 +340,19 @@ function readLineSafePage(descriptor, offset, remaining, requestedBytes) {
|
|
|
310
340
|
const target = Math.min(requestedBytes, bytesRead);
|
|
311
341
|
const atEnd = offset + bytesRead >= offset + remaining;
|
|
312
342
|
if (target === bytesRead && atEnd)
|
|
313
|
-
return { content, consumedBytes: bytesRead };
|
|
343
|
+
return { content, consumedBytes: bytesRead, bytesRead };
|
|
314
344
|
const lastNewline = content.lastIndexOf(0x0a, Math.max(0, target - 1));
|
|
315
345
|
if (lastNewline >= 0) {
|
|
316
346
|
const consumedBytes = lastNewline + 1;
|
|
317
|
-
return { content: content.subarray(0, consumedBytes), consumedBytes };
|
|
347
|
+
return { content: content.subarray(0, consumedBytes), consumedBytes, bytesRead };
|
|
318
348
|
}
|
|
319
349
|
const nextNewline = content.indexOf(0x0a, target);
|
|
320
350
|
if (nextNewline >= 0) {
|
|
321
351
|
const consumedBytes = nextNewline + 1;
|
|
322
|
-
return { content: content.subarray(0, consumedBytes), consumedBytes };
|
|
352
|
+
return { content: content.subarray(0, consumedBytes), consumedBytes, bytesRead };
|
|
323
353
|
}
|
|
324
354
|
if (atEnd)
|
|
325
|
-
return { content, consumedBytes: bytesRead };
|
|
355
|
+
return { content, consumedBytes: bytesRead, bytesRead };
|
|
326
356
|
throw new errors_1.WebWorkbenchError(413, 'A text line exceeds the safe Web preview limit.', 'file_line_too_long');
|
|
327
357
|
}
|
|
328
358
|
function canonicalDirectory(path) {
|
|
@@ -350,6 +380,13 @@ function isWithinRoot(candidate, root) {
|
|
|
350
380
|
const rel = (0, path_1.relative)(root, candidate);
|
|
351
381
|
return rel === '' || (!rel.startsWith(`..${path_1.sep}`) && rel !== '..' && !(0, path_1.isAbsolute)(rel));
|
|
352
382
|
}
|
|
383
|
+
function isSensitiveResolvedPath(root, aliasRelativePath, canonicalPath) {
|
|
384
|
+
if ((0, redaction_1.isSensitiveFilePath)(aliasRelativePath))
|
|
385
|
+
return true;
|
|
386
|
+
if (!canonicalPath || !isWithinRoot(canonicalPath, root))
|
|
387
|
+
return false;
|
|
388
|
+
return (0, redaction_1.isSensitiveFilePath)((0, path_1.relative)(root, canonicalPath));
|
|
389
|
+
}
|
|
353
390
|
function fingerprintStat(stat) {
|
|
354
391
|
return (0, crypto_1.createHash)('sha256')
|
|
355
392
|
.update([stat.dev, stat.ino, stat.mode, stat.size, stat.mtimeNs, stat.ctimeNs]
|
|
@@ -45,13 +45,21 @@ export interface WebGitDiffPageV1 {
|
|
|
45
45
|
readonly nextCursor: string | null;
|
|
46
46
|
readonly truncated: boolean;
|
|
47
47
|
}
|
|
48
|
+
export interface WebGitPerformanceCountersV1 {
|
|
49
|
+
readonly processCount: number;
|
|
50
|
+
readonly bytesRead: number;
|
|
51
|
+
readonly itemsParsed: number;
|
|
52
|
+
}
|
|
48
53
|
/** Bounded argv-only Git status/log/diff projection for one active Workspace. */
|
|
49
54
|
export declare class GitReadModelServiceV1 {
|
|
50
55
|
private readonly workspace;
|
|
51
56
|
private readonly secret;
|
|
52
57
|
private readonly pathById;
|
|
53
58
|
private readonly idByPath;
|
|
59
|
+
private repositoryRoot?;
|
|
60
|
+
private readonly performance;
|
|
54
61
|
constructor(workspace: string);
|
|
62
|
+
performanceCounters(): WebGitPerformanceCountersV1;
|
|
55
63
|
status(input?: {
|
|
56
64
|
readonly cursor?: string;
|
|
57
65
|
readonly pageSize?: number;
|
|
@@ -24,8 +24,12 @@ class GitReadModelServiceV1 {
|
|
|
24
24
|
this.secret = (0, crypto_1.randomBytes)(32);
|
|
25
25
|
this.pathById = new Map();
|
|
26
26
|
this.idByPath = new Map();
|
|
27
|
+
this.performance = { processCount: 0, bytesRead: 0, itemsParsed: 0 };
|
|
27
28
|
this.workspace = canonicalDirectory(workspace);
|
|
28
29
|
}
|
|
30
|
+
performanceCounters() {
|
|
31
|
+
return Object.freeze({ ...this.performance });
|
|
32
|
+
}
|
|
29
33
|
async status(input = {}) {
|
|
30
34
|
const snapshot = await this.capture();
|
|
31
35
|
const pageSize = boundedInteger(input.pageSize ?? DEFAULT_STATUS_PAGE_SIZE, 1, MAX_STATUS_PAGE_SIZE, 'pageSize');
|
|
@@ -90,6 +94,7 @@ class GitReadModelServiceV1 {
|
|
|
90
94
|
.map(record => record.replace(/^\s+/u, '').replace(/\s+$/u, ''))
|
|
91
95
|
.filter(Boolean)
|
|
92
96
|
.map(parseCommit);
|
|
97
|
+
this.performance.itemsParsed += commits.length;
|
|
93
98
|
const hasMore = commits.length > pageSize;
|
|
94
99
|
const items = commits.slice(0, pageSize);
|
|
95
100
|
return Object.freeze({
|
|
@@ -117,6 +122,9 @@ class GitReadModelServiceV1 {
|
|
|
117
122
|
if (!record) {
|
|
118
123
|
throw new errors_1.WebWorkbenchError(409, 'Git file changed before diff.', 'git_revision_conflict');
|
|
119
124
|
}
|
|
125
|
+
if (isSensitiveGitRecord(record)) {
|
|
126
|
+
throw new errors_1.WebWorkbenchError(403, 'Sensitive file content is not available in the Web Workbench.', 'sensitive_file_blocked');
|
|
127
|
+
}
|
|
120
128
|
const lineLimit = boundedInteger(input.lineLimit ?? DEFAULT_DIFF_LINES, 1, MAX_DIFF_LINES, 'lineLimit');
|
|
121
129
|
const byteLimit = boundedInteger(input.byteLimit ?? DEFAULT_DIFF_BYTES, 1024, MAX_DIFF_BYTES, 'byteLimit');
|
|
122
130
|
const offset = input.cursor
|
|
@@ -129,7 +137,14 @@ class GitReadModelServiceV1 {
|
|
|
129
137
|
offset,
|
|
130
138
|
lineLimit,
|
|
131
139
|
byteLimit,
|
|
140
|
+
onProcess: () => {
|
|
141
|
+
this.performance.processCount += 1;
|
|
142
|
+
},
|
|
143
|
+
onBytes: bytes => {
|
|
144
|
+
this.performance.bytesRead += bytes;
|
|
145
|
+
},
|
|
132
146
|
});
|
|
147
|
+
this.performance.itemsParsed += page.linesParsed;
|
|
133
148
|
if (page.hasMore && page.returnedLines === 0) {
|
|
134
149
|
throw new errors_1.WebWorkbenchError(500, 'Git diff pagination could not advance.', 'git_pagination_stalled');
|
|
135
150
|
}
|
|
@@ -160,9 +175,12 @@ class GitReadModelServiceV1 {
|
|
|
160
175
|
async capture() {
|
|
161
176
|
let root;
|
|
162
177
|
try {
|
|
163
|
-
root =
|
|
178
|
+
root =
|
|
179
|
+
this.repositoryRoot ??
|
|
180
|
+
(0, fs_1.realpathSync)((await this.runGit(['rev-parse', '--show-toplevel'], this.workspace)).trim());
|
|
164
181
|
if (!isWithinRoot(root, this.workspace))
|
|
165
182
|
throw new Error('repository root escaped workspace');
|
|
183
|
+
this.repositoryRoot = root;
|
|
166
184
|
}
|
|
167
185
|
catch {
|
|
168
186
|
const revision = (0, crypto_1.createHash)('sha256').update(`not-git:${this.workspace}`).digest('hex');
|
|
@@ -196,6 +214,7 @@ class GitReadModelServiceV1 {
|
|
|
196
214
|
behind = Number.isSafeInteger(behindValue) ? behindValue : 0;
|
|
197
215
|
}
|
|
198
216
|
const records = parsePorcelainV1(rawStatus);
|
|
217
|
+
this.performance.itemsParsed += records.length;
|
|
199
218
|
const fileFingerprints = records.map(record => fingerprintWorktreePath(root, record.path));
|
|
200
219
|
const revision = (0, crypto_1.createHash)('sha256')
|
|
201
220
|
.update(JSON.stringify({
|
|
@@ -245,6 +264,7 @@ class GitReadModelServiceV1 {
|
|
|
245
264
|
}
|
|
246
265
|
runGit(args, cwd) {
|
|
247
266
|
return new Promise((resolvePromise, reject) => {
|
|
267
|
+
this.performance.processCount += 1;
|
|
248
268
|
(0, child_process_1.execFile)('git', [...hardenedGitPrefix(), ...args], {
|
|
249
269
|
cwd,
|
|
250
270
|
encoding: 'utf8',
|
|
@@ -252,6 +272,8 @@ class GitReadModelServiceV1 {
|
|
|
252
272
|
maxBuffer: GIT_MAX_BUFFER,
|
|
253
273
|
env: gitEnvironment(),
|
|
254
274
|
}, (error, stdout, stderr) => {
|
|
275
|
+
this.performance.bytesRead +=
|
|
276
|
+
Buffer.byteLength(stdout, 'utf8') + Buffer.byteLength(stderr, 'utf8');
|
|
255
277
|
if (error) {
|
|
256
278
|
const processError = error;
|
|
257
279
|
const timedOut = processError.code === 'ETIMEDOUT' ||
|
|
@@ -421,13 +443,19 @@ function isConflictRecord(record) {
|
|
|
421
443
|
`${record.indexStatus}${record.worktreeStatus}` === 'AA' ||
|
|
422
444
|
`${record.indexStatus}${record.worktreeStatus}` === 'DD');
|
|
423
445
|
}
|
|
446
|
+
function isSensitiveGitRecord(record) {
|
|
447
|
+
return ((0, redaction_1.isSensitiveFilePath)(record.path) ||
|
|
448
|
+
(record.renamedFrom !== undefined && (0, redaction_1.isSensitiveFilePath)(record.renamedFrom)));
|
|
449
|
+
}
|
|
424
450
|
async function streamDiffPage(input) {
|
|
425
451
|
const lines = [];
|
|
426
452
|
let virtualLine = 0;
|
|
427
453
|
let bytes = 0;
|
|
428
454
|
let hasMore = false;
|
|
429
455
|
let oversizedLine = false;
|
|
456
|
+
let linesParsed = 0;
|
|
430
457
|
const acceptLine = (raw) => {
|
|
458
|
+
linesParsed += 1;
|
|
431
459
|
const line = (0, redaction_1.redactTraceText)(raw.split(input.cwd).join('[WORKSPACE]'));
|
|
432
460
|
const lineBytes = Buffer.byteLength(line, 'utf8') + 1;
|
|
433
461
|
if (lineBytes > input.byteLimit) {
|
|
@@ -455,6 +483,8 @@ async function streamDiffPage(input) {
|
|
|
455
483
|
args: command.args,
|
|
456
484
|
acceptedExitCodes: command.acceptedExitCodes ?? [0],
|
|
457
485
|
onLine: acceptLine,
|
|
486
|
+
onProcess: input.onProcess,
|
|
487
|
+
onBytes: input.onBytes,
|
|
458
488
|
});
|
|
459
489
|
if (!completed) {
|
|
460
490
|
hasMore = true;
|
|
@@ -464,10 +494,11 @@ async function streamDiffPage(input) {
|
|
|
464
494
|
if (oversizedLine) {
|
|
465
495
|
throw new errors_1.WebWorkbenchError(413, 'A Git diff line exceeds the bounded page size.', 'git_line_too_long');
|
|
466
496
|
}
|
|
467
|
-
return Object.freeze({ lines, returnedLines: lines.length, hasMore });
|
|
497
|
+
return Object.freeze({ lines, returnedLines: lines.length, hasMore, linesParsed });
|
|
468
498
|
}
|
|
469
499
|
function streamGitLines(input) {
|
|
470
500
|
return new Promise((resolvePromise, reject) => {
|
|
501
|
+
input.onProcess();
|
|
471
502
|
const child = (0, child_process_1.spawn)('git', [...hardenedGitPrefix(), ...input.args], {
|
|
472
503
|
cwd: input.cwd,
|
|
473
504
|
env: gitEnvironment(),
|
|
@@ -487,6 +518,7 @@ function streamGitLines(input) {
|
|
|
487
518
|
timer.unref();
|
|
488
519
|
child.stdout.setEncoding('utf8');
|
|
489
520
|
child.stdout.on('data', (chunk) => {
|
|
521
|
+
input.onBytes(Buffer.byteLength(chunk, 'utf8'));
|
|
490
522
|
if (paginationStopped || timedOut || outputTooLarge)
|
|
491
523
|
return;
|
|
492
524
|
outputBytes += Buffer.byteLength(chunk, 'utf8');
|
|
@@ -514,6 +546,7 @@ function streamGitLines(input) {
|
|
|
514
546
|
});
|
|
515
547
|
child.stderr.setEncoding('utf8');
|
|
516
548
|
child.stderr.on('data', (chunk) => {
|
|
549
|
+
input.onBytes(Buffer.byteLength(chunk, 'utf8'));
|
|
517
550
|
outputBytes += Buffer.byteLength(chunk, 'utf8');
|
|
518
551
|
if (outputBytes > GIT_MAX_BUFFER && !outputTooLarge) {
|
|
519
552
|
outputTooLarge = true;
|
package/dist/web/protocol.d.ts
CHANGED
|
@@ -2,12 +2,15 @@ import type { AgentRuntimeEvent } from '../runtime/agent-runtime-protocol';
|
|
|
2
2
|
import type { AgentRuntimeControllerInput } from '../runtime/agent-runtime-controller';
|
|
3
3
|
import type { GoalRuntimeControlV2 } from '../runtime/goal-runtime-coordinator';
|
|
4
4
|
import type { RuntimeEventEnvelopeV1 } from '../runtime/protocol/runtime-protocol-v1';
|
|
5
|
+
import type { PlanReviewResolutionReceiptV1 } from '../runtime/plan-review';
|
|
6
|
+
import type { SessionComposerRuntimeStateV1, SessionModelCatalogEntryV1, SessionModelSwitchReceiptV1, SessionPermissionReceiptV1 } from '../runtime/session-composer-control';
|
|
5
7
|
import type { ToolDetailPage, ToolDetailSummary } from '../runtime/tool-detail-repository';
|
|
6
8
|
import type { SessionMeta } from '../services/session-storage';
|
|
7
9
|
import type { ToolConfirmationPolicy } from '../services/global-config';
|
|
8
10
|
import type { WebFileContentPageV1, WebFileNodeV1, WebFileTreePageV1 } from './file-read-service';
|
|
9
11
|
import type { WebGitCommitV1, WebGitDiffPageV1, WebGitFileV1, WebGitLogPageV1, WebGitStatusV1 } from './git-read-model-service';
|
|
10
12
|
import type { WebReviewSnapshotV1, WebReviewVerificationV1 } from './review-service';
|
|
13
|
+
import type { WebSessionRuntimeSummaryV1 } from './session-runtime-registry';
|
|
11
14
|
import type { WebTerminalCreateResultV1, WebTerminalExitV1, WebTerminalGapV1, WebTerminalMetadataV1, WebTerminalOutputFrameV1, WebTerminalStateV1 } from './terminal-manager';
|
|
12
15
|
export declare const WEB_API_VERSION: 1;
|
|
13
16
|
export declare const WEB_NONCE_HEADER = "x-orion-web-nonce";
|
|
@@ -24,6 +27,7 @@ export type WebSettingsAppliesV1 = 'live' | 'next-logical-request' | 'new-sessio
|
|
|
24
27
|
export type WebSettingsStateV1 = 'ready' | 'invalid' | 'read-only' | 'unavailable';
|
|
25
28
|
export type WebThemePreferenceV1 = 'system' | 'light' | 'dark';
|
|
26
29
|
export type WebMotionPreferenceV1 = 'system' | 'reduced';
|
|
30
|
+
export type WebUiStylePreferenceV1 = 'classic' | 'orion-blocksmith';
|
|
27
31
|
export type WebEffortPreferenceV1 = 'auto' | 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
28
32
|
export interface WebSettingsFieldViewV1<T> {
|
|
29
33
|
readonly effectiveValue: T;
|
|
@@ -43,7 +47,7 @@ export interface WebCredentialSlotViewV1 {
|
|
|
43
47
|
readonly writable: false;
|
|
44
48
|
}
|
|
45
49
|
export interface WebSettingsDocumentV1 {
|
|
46
|
-
readonly schemaVersion:
|
|
50
|
+
readonly schemaVersion: 2;
|
|
47
51
|
readonly revision: string;
|
|
48
52
|
readonly state: WebSettingsStateV1;
|
|
49
53
|
readonly writable: boolean;
|
|
@@ -51,6 +55,7 @@ export interface WebSettingsDocumentV1 {
|
|
|
51
55
|
readonly workspace: string;
|
|
52
56
|
readonly sections: {
|
|
53
57
|
readonly appearance: {
|
|
58
|
+
readonly style: WebSettingsFieldViewV1<WebUiStylePreferenceV1>;
|
|
54
59
|
readonly theme: WebSettingsFieldViewV1<WebThemePreferenceV1>;
|
|
55
60
|
readonly motion: WebSettingsFieldViewV1<WebMotionPreferenceV1>;
|
|
56
61
|
};
|
|
@@ -76,8 +81,15 @@ export interface WebSettingsDocumentV1 {
|
|
|
76
81
|
}
|
|
77
82
|
/** Compatibility name retained inside the unreleased v0.3 Web implementation. */
|
|
78
83
|
export type WebSettingsSnapshotV1 = WebSettingsDocumentV1;
|
|
79
|
-
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';
|
|
80
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
|
+
} | {
|
|
81
93
|
readonly op: 'set';
|
|
82
94
|
readonly key: 'appearance.theme';
|
|
83
95
|
readonly value: WebThemePreferenceV1;
|
|
@@ -115,6 +127,8 @@ export type WebSettingsOperationV1 = {
|
|
|
115
127
|
};
|
|
116
128
|
export interface WebSettingsUpdateRequestV1 {
|
|
117
129
|
readonly requestId: string;
|
|
130
|
+
readonly workspaceId: string;
|
|
131
|
+
readonly expectedContextRevision: string;
|
|
118
132
|
readonly expectedRevision: string;
|
|
119
133
|
readonly operations: readonly WebSettingsOperationV1[];
|
|
120
134
|
}
|
|
@@ -152,9 +166,133 @@ export interface WebPlanViewV1 {
|
|
|
152
166
|
readonly returnMode: 'build' | 'auto';
|
|
153
167
|
readonly digest: string;
|
|
154
168
|
}
|
|
169
|
+
export type WebContextReferenceV1 = {
|
|
170
|
+
readonly kind: 'file';
|
|
171
|
+
readonly id: string;
|
|
172
|
+
readonly label: string;
|
|
173
|
+
readonly revision: string;
|
|
174
|
+
} | {
|
|
175
|
+
readonly kind: 'folder';
|
|
176
|
+
readonly id: string;
|
|
177
|
+
readonly label: string;
|
|
178
|
+
readonly revision: string;
|
|
179
|
+
} | {
|
|
180
|
+
readonly kind: 'review';
|
|
181
|
+
readonly id: string;
|
|
182
|
+
readonly label: string;
|
|
183
|
+
readonly gitRevision: string;
|
|
184
|
+
} | {
|
|
185
|
+
readonly kind: 'session';
|
|
186
|
+
readonly id: string;
|
|
187
|
+
readonly label: string;
|
|
188
|
+
readonly digest: string;
|
|
189
|
+
} | {
|
|
190
|
+
readonly kind: 'skill';
|
|
191
|
+
readonly id: string;
|
|
192
|
+
readonly label: string;
|
|
193
|
+
readonly digest: string;
|
|
194
|
+
};
|
|
195
|
+
export interface WebPlanReviewViewV1 {
|
|
196
|
+
readonly planDigest: string;
|
|
197
|
+
readonly revision: string;
|
|
198
|
+
readonly status: 'awaiting_review' | 'approved' | 'continued' | 'cancelled';
|
|
199
|
+
readonly createdAt: number;
|
|
200
|
+
readonly createdModel: string;
|
|
201
|
+
readonly returnMode: 'build' | 'auto';
|
|
202
|
+
readonly resolvedAt?: number;
|
|
203
|
+
}
|
|
204
|
+
export interface WebComposerControlStateV1 {
|
|
205
|
+
readonly apiVersion: 1;
|
|
206
|
+
readonly workspaceId: string;
|
|
207
|
+
readonly sessionId: string;
|
|
208
|
+
readonly contextRevision: string;
|
|
209
|
+
readonly controlRevision: string;
|
|
210
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
211
|
+
readonly processing: boolean;
|
|
212
|
+
readonly mode: {
|
|
213
|
+
readonly baseMode: 'interactive' | 'plan' | 'auto';
|
|
214
|
+
readonly pendingBaseMode: 'interactive' | 'plan' | 'auto' | null;
|
|
215
|
+
};
|
|
216
|
+
readonly model: SessionComposerRuntimeStateV1['model'];
|
|
217
|
+
readonly permission: SessionComposerRuntimeStateV1['permission'];
|
|
218
|
+
readonly contextUsage: SessionComposerRuntimeStateV1['contextUsage'];
|
|
219
|
+
readonly compactAvailable: boolean;
|
|
220
|
+
readonly pending: SessionComposerRuntimeStateV1['pending'];
|
|
221
|
+
readonly lastError: SessionComposerRuntimeStateV1['lastError'];
|
|
222
|
+
readonly planReview: WebPlanReviewViewV1 | null;
|
|
223
|
+
readonly queue: {
|
|
224
|
+
readonly items: readonly {
|
|
225
|
+
readonly id: string;
|
|
226
|
+
readonly text: string;
|
|
227
|
+
readonly queuedAt: number;
|
|
228
|
+
readonly revision: number;
|
|
229
|
+
}[];
|
|
230
|
+
readonly limit: number;
|
|
231
|
+
};
|
|
232
|
+
}
|
|
233
|
+
export interface WebModelCatalogPageV1 extends WebPageV1<SessionModelCatalogEntryV1> {
|
|
234
|
+
readonly revision: string;
|
|
235
|
+
readonly unavailableProviders: readonly {
|
|
236
|
+
readonly id: string;
|
|
237
|
+
readonly reason: string;
|
|
238
|
+
}[];
|
|
239
|
+
}
|
|
240
|
+
interface WebComposerActionBaseV1 {
|
|
241
|
+
readonly requestId: string;
|
|
242
|
+
readonly workspaceId: string;
|
|
243
|
+
readonly expectedContextRevision: string;
|
|
244
|
+
readonly expectedSessionId: string;
|
|
245
|
+
readonly expectedSessionRuntimeRevision: string;
|
|
246
|
+
readonly expectedControlRevision: string;
|
|
247
|
+
}
|
|
248
|
+
export type WebComposerActionV1 = WebComposerActionBaseV1 & ({
|
|
249
|
+
readonly type: 'set_agent_mode';
|
|
250
|
+
readonly mode: 'interactive' | 'plan' | 'auto';
|
|
251
|
+
} | {
|
|
252
|
+
readonly type: 'set_permission_override';
|
|
253
|
+
readonly value: ToolConfirmationPolicy;
|
|
254
|
+
} | {
|
|
255
|
+
readonly type: 'clear_permission_override';
|
|
256
|
+
} | {
|
|
257
|
+
readonly type: 'select_model';
|
|
258
|
+
readonly modelId: string;
|
|
259
|
+
readonly effort?: WebEffortPreferenceV1;
|
|
260
|
+
} | {
|
|
261
|
+
readonly type: 'compact_context';
|
|
262
|
+
} | {
|
|
263
|
+
readonly type: 'review_plan';
|
|
264
|
+
readonly planDigest: string;
|
|
265
|
+
readonly action: 'approve' | 'continue' | 'cancel';
|
|
266
|
+
readonly feedback?: string;
|
|
267
|
+
} | {
|
|
268
|
+
readonly type: 'edit_queue_item';
|
|
269
|
+
readonly itemId: string;
|
|
270
|
+
readonly expectedItemRevision: number;
|
|
271
|
+
readonly text: string;
|
|
272
|
+
} | {
|
|
273
|
+
readonly type: 'move_queue_item';
|
|
274
|
+
readonly itemId: string;
|
|
275
|
+
readonly expectedItemRevision: number;
|
|
276
|
+
readonly targetIndex: number;
|
|
277
|
+
} | {
|
|
278
|
+
readonly type: 'remove_queue_item';
|
|
279
|
+
readonly itemId: string;
|
|
280
|
+
readonly expectedItemRevision: number;
|
|
281
|
+
});
|
|
282
|
+
export interface WebComposerActionResultV1 {
|
|
283
|
+
readonly requestId: string;
|
|
284
|
+
readonly outcome: 'applied' | 'deferred';
|
|
285
|
+
readonly controlRevision: string;
|
|
286
|
+
readonly state: WebComposerControlStateV1;
|
|
287
|
+
readonly modelReceipt?: SessionModelSwitchReceiptV1;
|
|
288
|
+
readonly permissionReceipt?: SessionPermissionReceiptV1;
|
|
289
|
+
readonly planReviewReceipt?: PlanReviewResolutionReceiptV1;
|
|
290
|
+
readonly detail?: string;
|
|
291
|
+
}
|
|
155
292
|
export interface WebSessionSnapshotV1 {
|
|
156
293
|
readonly apiVersion: 1;
|
|
157
294
|
readonly session: WebSessionSummaryV1;
|
|
295
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
158
296
|
readonly threadId: string | null;
|
|
159
297
|
readonly threadCursor: number;
|
|
160
298
|
readonly eventCursor: number;
|
|
@@ -180,6 +318,7 @@ export interface WebSessionSnapshotV1 {
|
|
|
180
318
|
readonly pendingApprovals: readonly WebPendingPermissionV1[];
|
|
181
319
|
readonly goal: WebGoalViewV1 | null;
|
|
182
320
|
readonly plan: WebPlanViewV1 | null;
|
|
321
|
+
readonly composer: WebComposerControlStateV1;
|
|
183
322
|
readonly recoveryDiagnostics: readonly unknown[];
|
|
184
323
|
}
|
|
185
324
|
export interface WebSkillSummaryV1 {
|
|
@@ -277,16 +416,21 @@ export interface WebSessionSummaryV1 {
|
|
|
277
416
|
readonly createdAt: string;
|
|
278
417
|
readonly updatedAt: string;
|
|
279
418
|
readonly messageCount: number;
|
|
419
|
+
readonly contextDigest: string;
|
|
280
420
|
readonly taskSummary?: string;
|
|
281
421
|
readonly activeGoalId?: string;
|
|
282
422
|
readonly activeGoalObjective?: string;
|
|
283
423
|
}
|
|
284
|
-
export type WebCommandTypeV1 = 'submit' | 'queue_followup' | 'remove_followup' | 'clear_followups' | 'interrupt' | 'permission_decision' | 'goal_control' | 'permission_mode_change' | 'cycle_agent_mode' | 'set_agent_mode';
|
|
424
|
+
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';
|
|
285
425
|
export interface WebCommandV1 {
|
|
286
426
|
readonly requestId: string;
|
|
427
|
+
readonly workspaceId: string;
|
|
428
|
+
readonly expectedContextRevision: string;
|
|
287
429
|
readonly expectedSessionId: string;
|
|
430
|
+
readonly expectedSessionRuntimeRevision: string;
|
|
288
431
|
readonly type: WebCommandTypeV1;
|
|
289
432
|
readonly text?: string;
|
|
433
|
+
readonly queueId?: string;
|
|
290
434
|
readonly itemId?: string;
|
|
291
435
|
readonly requestPermissionId?: string;
|
|
292
436
|
readonly approved?: boolean;
|
|
@@ -295,11 +439,20 @@ export interface WebCommandV1 {
|
|
|
295
439
|
readonly objective?: string;
|
|
296
440
|
readonly toolConfirmation?: ToolConfirmationPolicy;
|
|
297
441
|
readonly agentMode?: 'interactive' | 'plan' | 'auto';
|
|
442
|
+
readonly contextReferences?: readonly WebContextReferenceV1[];
|
|
298
443
|
}
|
|
299
444
|
export interface WebCommandResultV1 {
|
|
300
445
|
readonly requestId: string;
|
|
301
446
|
readonly result: string;
|
|
447
|
+
readonly sessionRuntime: WebSessionRuntimeSummaryV1;
|
|
448
|
+
readonly queueId?: string;
|
|
449
|
+
readonly queuePosition?: number;
|
|
302
450
|
readonly detail?: string;
|
|
451
|
+
readonly contextReceipt?: {
|
|
452
|
+
readonly manifestDigest: string;
|
|
453
|
+
readonly referenceCount: number;
|
|
454
|
+
readonly totalBytes: number;
|
|
455
|
+
};
|
|
303
456
|
}
|
|
304
457
|
export interface WebSessionMutationResultV1 {
|
|
305
458
|
readonly requestId: string;
|
|
@@ -311,6 +464,12 @@ export interface WebSettingsMutationResultV1 {
|
|
|
311
464
|
readonly appliedKeys: readonly WebSettingsKeyV1[];
|
|
312
465
|
readonly settings: WebSettingsDocumentV1;
|
|
313
466
|
}
|
|
467
|
+
export type WebWorkspaceMutationPhaseV1 = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
468
|
+
export interface WebWorkspaceMutationStateV1 {
|
|
469
|
+
readonly callId: string;
|
|
470
|
+
readonly phase: WebWorkspaceMutationPhaseV1;
|
|
471
|
+
readonly queuePosition?: number;
|
|
472
|
+
}
|
|
314
473
|
export type WebWorkbenchEventV1 = {
|
|
315
474
|
readonly type: 'runtime_event';
|
|
316
475
|
readonly value: AgentRuntimeEvent;
|
|
@@ -333,6 +492,15 @@ export type WebWorkbenchEventV1 = {
|
|
|
333
492
|
readonly workspaceId: string;
|
|
334
493
|
readonly resources: readonly WebWorkspaceResourceV1[];
|
|
335
494
|
readonly reason: WebWorkspaceInvalidationReasonV1;
|
|
495
|
+
} | {
|
|
496
|
+
readonly type: 'composer_state_changed';
|
|
497
|
+
readonly state: WebComposerControlStateV1;
|
|
498
|
+
} | {
|
|
499
|
+
readonly type: 'session_runtime_changed';
|
|
500
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
501
|
+
} | {
|
|
502
|
+
readonly type: 'workspace_mutation_changed';
|
|
503
|
+
readonly state: WebWorkspaceMutationStateV1;
|
|
336
504
|
} | {
|
|
337
505
|
readonly type: 'replay_reset';
|
|
338
506
|
readonly reason: string;
|
|
@@ -386,6 +554,27 @@ export type WebEventEnvelopeV1 = WebEventEnvelopeBaseV1 & ({
|
|
|
386
554
|
readonly resources: readonly WebWorkspaceResourceV1[];
|
|
387
555
|
readonly reason: WebWorkspaceInvalidationReasonV1;
|
|
388
556
|
};
|
|
557
|
+
} | {
|
|
558
|
+
readonly type: 'composer_state_changed';
|
|
559
|
+
readonly sessionId: string;
|
|
560
|
+
readonly durable: true;
|
|
561
|
+
readonly payload: {
|
|
562
|
+
readonly state: WebComposerControlStateV1;
|
|
563
|
+
};
|
|
564
|
+
} | {
|
|
565
|
+
readonly type: 'session_runtime_changed';
|
|
566
|
+
readonly sessionId: string;
|
|
567
|
+
readonly durable: true;
|
|
568
|
+
readonly payload: {
|
|
569
|
+
readonly runtime: WebSessionRuntimeSummaryV1;
|
|
570
|
+
};
|
|
571
|
+
} | {
|
|
572
|
+
readonly type: 'workspace_mutation_changed';
|
|
573
|
+
readonly sessionId: string;
|
|
574
|
+
readonly durable: false;
|
|
575
|
+
readonly payload: {
|
|
576
|
+
readonly state: WebWorkspaceMutationStateV1;
|
|
577
|
+
};
|
|
389
578
|
} | {
|
|
390
579
|
readonly type: 'replay_reset';
|
|
391
580
|
readonly durable: true;
|
|
@@ -402,6 +591,7 @@ export declare class WebProtocolError extends Error {
|
|
|
402
591
|
export declare function parseWebSettingsUpdate(value: unknown): WebSettingsUpdateRequestV1;
|
|
403
592
|
export declare function parseWebOpenSettingsDocument(value: unknown): WebOpenSettingsDocumentRequestV1;
|
|
404
593
|
export declare function parseWebContextActivate(value: unknown): WebContextActivateRequestV1;
|
|
594
|
+
export declare function parseWebComposerAction(value: unknown): WebComposerActionV1;
|
|
405
595
|
export declare function parseWebCommand(value: unknown): WebCommandV1;
|
|
406
596
|
export declare function toAgentRuntimeInput(command: WebCommandV1): AgentRuntimeControllerInput;
|
|
407
597
|
export declare function projectSessionSummary(session: SessionMeta): WebSessionSummaryV1;
|