@hansjm10/volt-coding-agent 0.0.0-bootstrap.0 → 0.1.0
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/BINARY-CAPABILITIES.md +28 -0
- package/CHANGELOG.md +4845 -0
- package/LICENSE +1 -1
- package/README.md +716 -3
- package/THIRD-PARTY-NOTICES.md +55 -0
- package/dist/LICENSES/clipboard-image-MIT.txt +9 -0
- package/dist/LICENSES/highlight.js-10.7.3-BSD-3-Clause.txt +29 -0
- package/dist/LICENSES/highlight.js-11.9.0-BSD-3-Clause.txt +29 -0
- package/dist/LICENSES/marked-18.0.5-LICENSE.txt +44 -0
- package/dist/LICENSES/run-jxa-MIT.txt +9 -0
- package/dist/cli/args.d.ts +60 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +414 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/config-selector.d.ts +14 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +85 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +98 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/project-trust.d.ts +10 -0
- package/dist/cli/project-trust.d.ts.map +1 -0
- package/dist/cli/project-trust.js +48 -0
- package/dist/cli/project-trust.js.map +1 -0
- package/dist/cli/session-picker.d.ts +9 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +35 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +17 -0
- package/dist/cli/startup-ui.d.ts.map +1 -0
- package/dist/cli/startup-ui.js +133 -0
- package/dist/cli/startup-ui.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +18 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +85 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +487 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +160 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +397 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +98 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +125 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +739 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +3158 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +21 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +159 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +509 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +32 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +111 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +92 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +257 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +121 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +658 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +56 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +271 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +3 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/experimental.d.ts +2 -0
- package/dist/core/experimental.d.ts.map +1 -0
- package/dist/core/experimental.js +4 -0
- package/dist/core/experimental.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +234 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1864 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +108 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +78 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +25 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +516 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +180 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +938 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1215 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +48 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +22 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +54 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +338 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/host-actions.d.ts +107 -0
- package/dist/core/host-actions.d.ts.map +1 -0
- package/dist/core/host-actions.js +632 -0
- package/dist/core/host-actions.js.map +1 -0
- package/dist/core/host-interaction.d.ts +35 -0
- package/dist/core/host-interaction.d.ts.map +1 -0
- package/dist/core/host-interaction.js +2 -0
- package/dist/core/host-interaction.js.map +1 -0
- package/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -0
- package/dist/core/http-dispatcher.js +64 -0
- package/dist/core/http-dispatcher.js.map +1 -0
- package/dist/core/index.d.ts +18 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +17 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +373 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +303 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/lsp/client.d.ts +119 -0
- package/dist/core/lsp/client.d.ts.map +1 -0
- package/dist/core/lsp/client.js +711 -0
- package/dist/core/lsp/client.js.map +1 -0
- package/dist/core/lsp/config.d.ts +96 -0
- package/dist/core/lsp/config.d.ts.map +1 -0
- package/dist/core/lsp/config.js +206 -0
- package/dist/core/lsp/config.js.map +1 -0
- package/dist/core/lsp/index.d.ts +6 -0
- package/dist/core/lsp/index.d.ts.map +1 -0
- package/dist/core/lsp/index.js +6 -0
- package/dist/core/lsp/index.js.map +1 -0
- package/dist/core/lsp/manager.d.ts +122 -0
- package/dist/core/lsp/manager.d.ts.map +1 -0
- package/dist/core/lsp/manager.js +1136 -0
- package/dist/core/lsp/manager.js.map +1 -0
- package/dist/core/lsp/trace.d.ts +26 -0
- package/dist/core/lsp/trace.d.ts.map +1 -0
- package/dist/core/lsp/trace.js +98 -0
- package/dist/core/lsp/trace.js.map +1 -0
- package/dist/core/lsp/workspace-edit.d.ts +60 -0
- package/dist/core/lsp/workspace-edit.d.ts.map +1 -0
- package/dist/core/lsp/workspace-edit.js +71 -0
- package/dist/core/lsp/workspace-edit.js.map +1 -0
- package/dist/core/mcp/audit.d.ts +39 -0
- package/dist/core/mcp/audit.d.ts.map +1 -0
- package/dist/core/mcp/audit.js +35 -0
- package/dist/core/mcp/audit.js.map +1 -0
- package/dist/core/mcp/auth.d.ts +7 -0
- package/dist/core/mcp/auth.d.ts.map +1 -0
- package/dist/core/mcp/auth.js +56 -0
- package/dist/core/mcp/auth.js.map +1 -0
- package/dist/core/mcp/client-factory.d.ts +20 -0
- package/dist/core/mcp/client-factory.d.ts.map +1 -0
- package/dist/core/mcp/client-factory.js +200 -0
- package/dist/core/mcp/client-factory.js.map +1 -0
- package/dist/core/mcp/config-loader.d.ts +9 -0
- package/dist/core/mcp/config-loader.d.ts.map +1 -0
- package/dist/core/mcp/config-loader.js +104 -0
- package/dist/core/mcp/config-loader.js.map +1 -0
- package/dist/core/mcp/config-writer.d.ts +21 -0
- package/dist/core/mcp/config-writer.d.ts.map +1 -0
- package/dist/core/mcp/config-writer.js +124 -0
- package/dist/core/mcp/config-writer.js.map +1 -0
- package/dist/core/mcp/config.d.ts +32 -0
- package/dist/core/mcp/config.d.ts.map +1 -0
- package/dist/core/mcp/config.js +385 -0
- package/dist/core/mcp/config.js.map +1 -0
- package/dist/core/mcp/direct-tools.d.ts +11 -0
- package/dist/core/mcp/direct-tools.d.ts.map +1 -0
- package/dist/core/mcp/direct-tools.js +47 -0
- package/dist/core/mcp/direct-tools.js.map +1 -0
- package/dist/core/mcp/gateway-tool.d.ts +29 -0
- package/dist/core/mcp/gateway-tool.d.ts.map +1 -0
- package/dist/core/mcp/gateway-tool.js +108 -0
- package/dist/core/mcp/gateway-tool.js.map +1 -0
- package/dist/core/mcp/index.d.ts +19 -0
- package/dist/core/mcp/index.d.ts.map +1 -0
- package/dist/core/mcp/index.js +18 -0
- package/dist/core/mcp/index.js.map +1 -0
- package/dist/core/mcp/manager.d.ts +117 -0
- package/dist/core/mcp/manager.d.ts.map +1 -0
- package/dist/core/mcp/manager.js +819 -0
- package/dist/core/mcp/manager.js.map +1 -0
- package/dist/core/mcp/metadata-cache.d.ts +27 -0
- package/dist/core/mcp/metadata-cache.d.ts.map +1 -0
- package/dist/core/mcp/metadata-cache.js +152 -0
- package/dist/core/mcp/metadata-cache.js.map +1 -0
- package/dist/core/mcp/oauth-flow.d.ts +94 -0
- package/dist/core/mcp/oauth-flow.d.ts.map +1 -0
- package/dist/core/mcp/oauth-flow.js +473 -0
- package/dist/core/mcp/oauth-flow.js.map +1 -0
- package/dist/core/mcp/oauth-provider.d.ts +39 -0
- package/dist/core/mcp/oauth-provider.d.ts.map +1 -0
- package/dist/core/mcp/oauth-provider.js +149 -0
- package/dist/core/mcp/oauth-provider.js.map +1 -0
- package/dist/core/mcp/oauth-store.d.ts +27 -0
- package/dist/core/mcp/oauth-store.d.ts.map +1 -0
- package/dist/core/mcp/oauth-store.js +111 -0
- package/dist/core/mcp/oauth-store.js.map +1 -0
- package/dist/core/mcp/output-store.d.ts +55 -0
- package/dist/core/mcp/output-store.d.ts.map +1 -0
- package/dist/core/mcp/output-store.js +206 -0
- package/dist/core/mcp/output-store.js.map +1 -0
- package/dist/core/mcp/rpc.d.ts +13 -0
- package/dist/core/mcp/rpc.d.ts.map +1 -0
- package/dist/core/mcp/rpc.js +29 -0
- package/dist/core/mcp/rpc.js.map +1 -0
- package/dist/core/mcp/safety.d.ts +6 -0
- package/dist/core/mcp/safety.d.ts.map +1 -0
- package/dist/core/mcp/safety.js +65 -0
- package/dist/core/mcp/safety.js.map +1 -0
- package/dist/core/mcp/search.d.ts +8 -0
- package/dist/core/mcp/search.d.ts.map +1 -0
- package/dist/core/mcp/search.js +85 -0
- package/dist/core/mcp/search.js.map +1 -0
- package/dist/core/mcp/server-supervisor.d.ts +59 -0
- package/dist/core/mcp/server-supervisor.d.ts.map +1 -0
- package/dist/core/mcp/server-supervisor.js +331 -0
- package/dist/core/mcp/server-supervisor.js.map +1 -0
- package/dist/core/mcp/types.d.ts +321 -0
- package/dist/core/mcp/types.d.ts.map +1 -0
- package/dist/core/mcp/types.js +2 -0
- package/dist/core/mcp/types.js.map +1 -0
- package/dist/core/messages.d.ts +78 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +138 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-catalog-watcher.d.ts +36 -0
- package/dist/core/model-catalog-watcher.d.ts.map +1 -0
- package/dist/core/model-catalog-watcher.js +101 -0
- package/dist/core/model-catalog-watcher.js.map +1 -0
- package/dist/core/model-registry.d.ts +160 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +754 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +111 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +534 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/output-guard.d.ts +7 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +89 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +220 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +2217 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/project-trust.d.ts +15 -0
- package/dist/core/project-trust.d.ts.map +1 -0
- package/dist/core/project-trust.js +58 -0
- package/dist/core/project-trust.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +53 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +236 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-attribution.d.ts +4 -0
- package/dist/core/provider-attribution.d.ts.map +1 -0
- package/dist/core/provider-attribution.js +81 -0
- package/dist/core/provider-attribution.js.map +1 -0
- package/dist/core/provider-display-names.d.ts +2 -0
- package/dist/core/provider-display-names.d.ts.map +1 -0
- package/dist/core/provider-display-names.js +36 -0
- package/dist/core/provider-display-names.js.map +1 -0
- package/dist/core/remote/iroh/access-grant.d.ts +40 -0
- package/dist/core/remote/iroh/access-grant.d.ts.map +1 -0
- package/dist/core/remote/iroh/access-grant.js +199 -0
- package/dist/core/remote/iroh/access-grant.js.map +1 -0
- package/dist/core/remote/iroh/active-stream-registry.d.ts +39 -0
- package/dist/core/remote/iroh/active-stream-registry.d.ts.map +1 -0
- package/dist/core/remote/iroh/active-stream-registry.js +109 -0
- package/dist/core/remote/iroh/active-stream-registry.js.map +1 -0
- package/dist/core/remote/iroh/audit.d.ts +67 -0
- package/dist/core/remote/iroh/audit.d.ts.map +1 -0
- package/dist/core/remote/iroh/audit.js +274 -0
- package/dist/core/remote/iroh/audit.js.map +1 -0
- package/dist/core/remote/iroh/authorization.d.ts +46 -0
- package/dist/core/remote/iroh/authorization.d.ts.map +1 -0
- package/dist/core/remote/iroh/authorization.js +327 -0
- package/dist/core/remote/iroh/authorization.js.map +1 -0
- package/dist/core/remote/iroh/control.d.ts +64 -0
- package/dist/core/remote/iroh/control.d.ts.map +1 -0
- package/dist/core/remote/iroh/control.js +326 -0
- package/dist/core/remote/iroh/control.js.map +1 -0
- package/dist/core/remote/iroh/device-log-rpc.d.ts +22 -0
- package/dist/core/remote/iroh/device-log-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/device-log-rpc.js +152 -0
- package/dist/core/remote/iroh/device-log-rpc.js.map +1 -0
- package/dist/core/remote/iroh/engine.d.ts +148 -0
- package/dist/core/remote/iroh/engine.d.ts.map +1 -0
- package/dist/core/remote/iroh/engine.js +499 -0
- package/dist/core/remote/iroh/engine.js.map +1 -0
- package/dist/core/remote/iroh/handshake-reader.d.ts +19 -0
- package/dist/core/remote/iroh/handshake-reader.d.ts.map +1 -0
- package/dist/core/remote/iroh/handshake-reader.js +91 -0
- package/dist/core/remote/iroh/handshake-reader.js.map +1 -0
- package/dist/core/remote/iroh/handshake.d.ts +119 -0
- package/dist/core/remote/iroh/handshake.d.ts.map +1 -0
- package/dist/core/remote/iroh/handshake.js +621 -0
- package/dist/core/remote/iroh/handshake.js.map +1 -0
- package/dist/core/remote/iroh/host-policy.d.ts +13 -0
- package/dist/core/remote/iroh/host-policy.d.ts.map +1 -0
- package/dist/core/remote/iroh/host-policy.js +15 -0
- package/dist/core/remote/iroh/host-policy.js.map +1 -0
- package/dist/core/remote/iroh/index.d.ts +25 -0
- package/dist/core/remote/iroh/index.d.ts.map +1 -0
- package/dist/core/remote/iroh/index.js +25 -0
- package/dist/core/remote/iroh/index.js.map +1 -0
- package/dist/core/remote/iroh/metadata.d.ts +28 -0
- package/dist/core/remote/iroh/metadata.d.ts.map +1 -0
- package/dist/core/remote/iroh/metadata.js +16 -0
- package/dist/core/remote/iroh/metadata.js.map +1 -0
- package/dist/core/remote/iroh/outbound-filter.d.ts +29 -0
- package/dist/core/remote/iroh/outbound-filter.d.ts.map +1 -0
- package/dist/core/remote/iroh/outbound-filter.js +692 -0
- package/dist/core/remote/iroh/outbound-filter.js.map +1 -0
- package/dist/core/remote/iroh/protocol.d.ts +60 -0
- package/dist/core/remote/iroh/protocol.d.ts.map +1 -0
- package/dist/core/remote/iroh/protocol.js +204 -0
- package/dist/core/remote/iroh/protocol.js.map +1 -0
- package/dist/core/remote/iroh/push.d.ts +179 -0
- package/dist/core/remote/iroh/push.d.ts.map +1 -0
- package/dist/core/remote/iroh/push.js +662 -0
- package/dist/core/remote/iroh/push.js.map +1 -0
- package/dist/core/remote/iroh/qr.d.ts +12 -0
- package/dist/core/remote/iroh/qr.d.ts.map +1 -0
- package/dist/core/remote/iroh/qr.js +27 -0
- package/dist/core/remote/iroh/qr.js.map +1 -0
- package/dist/core/remote/iroh/rpc-command-filter.d.ts +47 -0
- package/dist/core/remote/iroh/rpc-command-filter.d.ts.map +1 -0
- package/dist/core/remote/iroh/rpc-command-filter.js +188 -0
- package/dist/core/remote/iroh/rpc-command-filter.js.map +1 -0
- package/dist/core/remote/iroh/rpc-transport.d.ts +21 -0
- package/dist/core/remote/iroh/rpc-transport.d.ts.map +1 -0
- package/dist/core/remote/iroh/rpc-transport.js +106 -0
- package/dist/core/remote/iroh/rpc-transport.js.map +1 -0
- package/dist/core/remote/iroh/state-manager.d.ts +141 -0
- package/dist/core/remote/iroh/state-manager.d.ts.map +1 -0
- package/dist/core/remote/iroh/state-manager.js +744 -0
- package/dist/core/remote/iroh/state-manager.js.map +1 -0
- package/dist/core/remote/iroh/state.d.ts +141 -0
- package/dist/core/remote/iroh/state.d.ts.map +1 -0
- package/dist/core/remote/iroh/state.js +433 -0
- package/dist/core/remote/iroh/state.js.map +1 -0
- package/dist/core/remote/iroh/ticket.d.ts +46 -0
- package/dist/core/remote/iroh/ticket.d.ts.map +1 -0
- package/dist/core/remote/iroh/ticket.js +267 -0
- package/dist/core/remote/iroh/ticket.js.map +1 -0
- package/dist/core/remote/iroh/transcript-text.d.ts +8 -0
- package/dist/core/remote/iroh/transcript-text.d.ts.map +1 -0
- package/dist/core/remote/iroh/transcript-text.js +26 -0
- package/dist/core/remote/iroh/transcript-text.js.map +1 -0
- package/dist/core/remote/iroh/workspace-rpc.d.ts +31 -0
- package/dist/core/remote/iroh/workspace-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/workspace-rpc.js +73 -0
- package/dist/core/remote/iroh/workspace-rpc.js.map +1 -0
- package/dist/core/remote/iroh/workspace.d.ts +16 -0
- package/dist/core/remote/iroh/workspace.d.ts.map +1 -0
- package/dist/core/remote/iroh/workspace.js +104 -0
- package/dist/core/remote/iroh/workspace.js.map +1 -0
- package/dist/core/remote/iroh/worktree-rpc.d.ts +83 -0
- package/dist/core/remote/iroh/worktree-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/worktree-rpc.js +148 -0
- package/dist/core/remote/iroh/worktree-rpc.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +30 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +245 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +214 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +824 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/review.d.ts +318 -0
- package/dist/core/review.d.ts.map +1 -0
- package/dist/core/review.js +1271 -0
- package/dist/core/review.js.map +1 -0
- package/dist/core/rpc/duplex-write-gate.d.ts +29 -0
- package/dist/core/rpc/duplex-write-gate.d.ts.map +1 -0
- package/dist/core/rpc/duplex-write-gate.js +124 -0
- package/dist/core/rpc/duplex-write-gate.js.map +1 -0
- package/dist/core/rpc/index.d.ts +6 -0
- package/dist/core/rpc/index.d.ts.map +1 -0
- package/dist/core/rpc/index.js +5 -0
- package/dist/core/rpc/index.js.map +1 -0
- package/dist/core/rpc/iroh-transport.d.ts +58 -0
- package/dist/core/rpc/iroh-transport.d.ts.map +1 -0
- package/dist/core/rpc/iroh-transport.js +278 -0
- package/dist/core/rpc/iroh-transport.js.map +1 -0
- package/dist/core/rpc/jsonl.d.ts +17 -0
- package/dist/core/rpc/jsonl.d.ts.map +1 -0
- package/dist/core/rpc/jsonl.js +49 -0
- package/dist/core/rpc/jsonl.js.map +1 -0
- package/dist/core/rpc/loopback-transport.d.ts +14 -0
- package/dist/core/rpc/loopback-transport.d.ts.map +1 -0
- package/dist/core/rpc/loopback-transport.js +120 -0
- package/dist/core/rpc/loopback-transport.js.map +1 -0
- package/dist/core/rpc/transcript.d.ts +37 -0
- package/dist/core/rpc/transcript.d.ts.map +1 -0
- package/dist/core/rpc/transcript.js +624 -0
- package/dist/core/rpc/transcript.js.map +1 -0
- package/dist/core/rpc/transport.d.ts +41 -0
- package/dist/core/rpc/transport.d.ts.map +1 -0
- package/dist/core/rpc/transport.js +155 -0
- package/dist/core/rpc/transport.js.map +1 -0
- package/dist/core/rpc/types.d.ts +1254 -0
- package/dist/core/rpc/types.d.ts.map +1 -0
- package/dist/core/rpc/types.js +8 -0
- package/dist/core/rpc/types.js.map +1 -0
- package/dist/core/rpc/ui-action-args.d.ts +3 -0
- package/dist/core/rpc/ui-action-args.d.ts.map +1 -0
- package/dist/core/rpc/ui-action-args.js +66 -0
- package/dist/core/rpc/ui-action-args.js.map +1 -0
- package/dist/core/rpc/ui-actions.d.ts +43 -0
- package/dist/core/rpc/ui-actions.d.ts.map +1 -0
- package/dist/core/rpc/ui-actions.js +362 -0
- package/dist/core/rpc/ui-actions.js.map +1 -0
- package/dist/core/sdk.d.ts +138 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +324 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-manager.d.ts +346 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1280 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +359 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +1277 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +60 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +387 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +14 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +51 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/subagents/delegation-scope.d.ts +47 -0
- package/dist/core/subagents/delegation-scope.d.ts.map +1 -0
- package/dist/core/subagents/delegation-scope.js +134 -0
- package/dist/core/subagents/delegation-scope.js.map +1 -0
- package/dist/core/subagents/index.d.ts +46 -0
- package/dist/core/subagents/index.d.ts.map +1 -0
- package/dist/core/subagents/index.js +369 -0
- package/dist/core/subagents/index.js.map +1 -0
- package/dist/core/subagents/manager.d.ts +183 -0
- package/dist/core/subagents/manager.d.ts.map +1 -0
- package/dist/core/subagents/manager.js +820 -0
- package/dist/core/subagents/manager.js.map +1 -0
- package/dist/core/system-prompt.d.ts +28 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +180 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/telemetry.d.ts +3 -0
- package/dist/core/telemetry.d.ts.map +1 -0
- package/dist/core/telemetry.js +9 -0
- package/dist/core/telemetry.js.map +1 -0
- package/dist/core/theme/dark.json +86 -0
- package/dist/core/theme/discovery.d.ts +48 -0
- package/dist/core/theme/discovery.d.ts.map +1 -0
- package/dist/core/theme/discovery.js +239 -0
- package/dist/core/theme/discovery.js.map +1 -0
- package/dist/core/theme/index.d.ts +6 -0
- package/dist/core/theme/index.d.ts.map +1 -0
- package/dist/core/theme/index.js +5 -0
- package/dist/core/theme/index.js.map +1 -0
- package/dist/core/theme/light.json +85 -0
- package/dist/core/theme/runtime.d.ts +55 -0
- package/dist/core/theme/runtime.d.ts.map +1 -0
- package/dist/core/theme/runtime.js +555 -0
- package/dist/core/theme/runtime.js.map +1 -0
- package/dist/core/theme/theme-schema.json +335 -0
- package/dist/core/theme/theme-service.d.ts +37 -0
- package/dist/core/theme/theme-service.d.ts.map +1 -0
- package/dist/core/theme/theme-service.js +222 -0
- package/dist/core/theme/theme-service.js.map +1 -0
- package/dist/core/theme/theme.d.ts +100 -0
- package/dist/core/theme/theme.d.ts.map +1 -0
- package/dist/core/theme/theme.js +243 -0
- package/dist/core/theme/theme.js.map +1 -0
- package/dist/core/theme/tokens.d.ts +20 -0
- package/dist/core/theme/tokens.d.ts.map +1 -0
- package/dist/core/theme/tokens.js +178 -0
- package/dist/core/theme/tokens.js.map +1 -0
- package/dist/core/theme/types.d.ts +21 -0
- package/dist/core/theme/types.d.ts.map +1 -0
- package/dist/core/theme/types.js +2 -0
- package/dist/core/theme/types.js.map +1 -0
- package/dist/core/timings.d.ts +8 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +31 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +68 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +345 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/diagnostics-provider.d.ts +12 -0
- package/dist/core/tools/diagnostics-provider.d.ts.map +1 -0
- package/dist/core/tools/diagnostics-provider.js +2 -0
- package/dist/core/tools/diagnostics-provider.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +77 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +506 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +56 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +300 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +52 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +35 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +337 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +37 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +305 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +56 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +174 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +37 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +167 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/lsp.d.ts +59 -0
- package/dist/core/tools/lsp.d.ts.map +1 -0
- package/dist/core/tools/lsp.js +157 -0
- package/dist/core/tools/lsp.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +52 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +184 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +99 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/read.d.ts +35 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +292 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +26 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +69 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/subagent.d.ts +219 -0
- package/dist/core/tools/subagent.d.ts.map +1 -0
- package/dist/core/tools/subagent.js +1445 -0
- package/dist/core/tools/subagent.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +34 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +215 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/web-search.d.ts +69 -0
- package/dist/core/tools/web-search.d.ts.map +1 -0
- package/dist/core/tools/web-search.js +634 -0
- package/dist/core/tools/web-search.js.map +1 -0
- package/dist/core/tools/write.d.ts +33 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +210 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/core/trust-manager.d.ts +36 -0
- package/dist/core/trust-manager.d.ts.map +1 -0
- package/dist/core/trust-manager.js +220 -0
- package/dist/core/trust-manager.js.map +1 -0
- package/dist/daemon/cli.d.ts +8 -0
- package/dist/daemon/cli.d.ts.map +1 -0
- package/dist/daemon/cli.js +468 -0
- package/dist/daemon/cli.js.map +1 -0
- package/dist/daemon/control-client.d.ts +60 -0
- package/dist/daemon/control-client.d.ts.map +1 -0
- package/dist/daemon/control-client.js +411 -0
- package/dist/daemon/control-client.js.map +1 -0
- package/dist/daemon/control-protocol.d.ts +507 -0
- package/dist/daemon/control-protocol.d.ts.map +1 -0
- package/dist/daemon/control-protocol.js +395 -0
- package/dist/daemon/control-protocol.js.map +1 -0
- package/dist/daemon/control-server.d.ts +77 -0
- package/dist/daemon/control-server.d.ts.map +1 -0
- package/dist/daemon/control-server.js +327 -0
- package/dist/daemon/control-server.js.map +1 -0
- package/dist/daemon/conversation-commands.d.ts +176 -0
- package/dist/daemon/conversation-commands.d.ts.map +1 -0
- package/dist/daemon/conversation-commands.js +1268 -0
- package/dist/daemon/conversation-commands.js.map +1 -0
- package/dist/daemon/daemon-lock.d.ts +27 -0
- package/dist/daemon/daemon-lock.d.ts.map +1 -0
- package/dist/daemon/daemon-lock.js +238 -0
- package/dist/daemon/daemon-lock.js.map +1 -0
- package/dist/daemon/handshake-responses.d.ts +47 -0
- package/dist/daemon/handshake-responses.d.ts.map +1 -0
- package/dist/daemon/handshake-responses.js +113 -0
- package/dist/daemon/handshake-responses.js.map +1 -0
- package/dist/daemon/integrated-runtimes.d.ts +137 -0
- package/dist/daemon/integrated-runtimes.d.ts.map +1 -0
- package/dist/daemon/integrated-runtimes.js +763 -0
- package/dist/daemon/integrated-runtimes.js.map +1 -0
- package/dist/daemon/iroh-native.d.ts +76 -0
- package/dist/daemon/iroh-native.d.ts.map +1 -0
- package/dist/daemon/iroh-native.js +18 -0
- package/dist/daemon/iroh-native.js.map +1 -0
- package/dist/daemon/iroh-resource-guard.d.ts +57 -0
- package/dist/daemon/iroh-resource-guard.d.ts.map +1 -0
- package/dist/daemon/iroh-resource-guard.js +134 -0
- package/dist/daemon/iroh-resource-guard.js.map +1 -0
- package/dist/daemon/iroh-service.d.ts +51 -0
- package/dist/daemon/iroh-service.d.ts.map +1 -0
- package/dist/daemon/iroh-service.js +2604 -0
- package/dist/daemon/iroh-service.js.map +1 -0
- package/dist/daemon/keep-awake.d.ts +62 -0
- package/dist/daemon/keep-awake.d.ts.map +1 -0
- package/dist/daemon/keep-awake.js +190 -0
- package/dist/daemon/keep-awake.js.map +1 -0
- package/dist/daemon/lease-broker.d.ts +139 -0
- package/dist/daemon/lease-broker.d.ts.map +1 -0
- package/dist/daemon/lease-broker.js +504 -0
- package/dist/daemon/lease-broker.js.map +1 -0
- package/dist/daemon/log.d.ts +16 -0
- package/dist/daemon/log.d.ts.map +1 -0
- package/dist/daemon/log.js +40 -0
- package/dist/daemon/log.js.map +1 -0
- package/dist/daemon/main.d.ts +70 -0
- package/dist/daemon/main.d.ts.map +1 -0
- package/dist/daemon/main.js +781 -0
- package/dist/daemon/main.js.map +1 -0
- package/dist/daemon/paths.d.ts +32 -0
- package/dist/daemon/paths.d.ts.map +1 -0
- package/dist/daemon/paths.js +208 -0
- package/dist/daemon/paths.js.map +1 -0
- package/dist/daemon/process-identity.d.ts +58 -0
- package/dist/daemon/process-identity.d.ts.map +1 -0
- package/dist/daemon/process-identity.js +185 -0
- package/dist/daemon/process-identity.js.map +1 -0
- package/dist/daemon/relay-stream.d.ts +89 -0
- package/dist/daemon/relay-stream.d.ts.map +1 -0
- package/dist/daemon/relay-stream.js +202 -0
- package/dist/daemon/relay-stream.js.map +1 -0
- package/dist/daemon/remote-cli.d.ts +7 -0
- package/dist/daemon/remote-cli.d.ts.map +1 -0
- package/dist/daemon/remote-cli.js +774 -0
- package/dist/daemon/remote-cli.js.map +1 -0
- package/dist/daemon/service-install.d.ts +43 -0
- package/dist/daemon/service-install.d.ts.map +1 -0
- package/dist/daemon/service-install.js +198 -0
- package/dist/daemon/service-install.js.map +1 -0
- package/dist/daemon/session-target.d.ts +62 -0
- package/dist/daemon/session-target.d.ts.map +1 -0
- package/dist/daemon/session-target.js +66 -0
- package/dist/daemon/session-target.js.map +1 -0
- package/dist/daemon/spawn.d.ts +53 -0
- package/dist/daemon/spawn.d.ts.map +1 -0
- package/dist/daemon/spawn.js +205 -0
- package/dist/daemon/spawn.js.map +1 -0
- package/dist/daemon/state.d.ts +145 -0
- package/dist/daemon/state.d.ts.map +1 -0
- package/dist/daemon/state.js +454 -0
- package/dist/daemon/state.js.map +1 -0
- package/dist/daemon/theme-push.d.ts +23 -0
- package/dist/daemon/theme-push.d.ts.map +1 -0
- package/dist/daemon/theme-push.js +30 -0
- package/dist/daemon/theme-push.js.map +1 -0
- package/dist/daemon/viewer-feed.d.ts +42 -0
- package/dist/daemon/viewer-feed.d.ts.map +1 -0
- package/dist/daemon/viewer-feed.js +138 -0
- package/dist/daemon/viewer-feed.js.map +1 -0
- package/dist/daemon/workspace-directory.d.ts +35 -0
- package/dist/daemon/workspace-directory.d.ts.map +1 -0
- package/dist/daemon/workspace-directory.js +105 -0
- package/dist/daemon/workspace-directory.js.map +1 -0
- package/dist/daemon/workspace-streams.d.ts +70 -0
- package/dist/daemon/workspace-streams.d.ts.map +1 -0
- package/dist/daemon/workspace-streams.js +289 -0
- package/dist/daemon/workspace-streams.js.map +1 -0
- package/dist/daemon/worktree-manager.d.ts +219 -0
- package/dist/daemon/worktree-manager.d.ts.map +1 -0
- package/dist/daemon/worktree-manager.js +1204 -0
- package/dist/daemon/worktree-manager.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +773 -0
- package/dist/main.js.map +1 -0
- package/dist/mcp-cli.d.ts +6 -0
- package/dist/mcp-cli.d.ts.map +1 -0
- package/dist/mcp-cli.js +347 -0
- package/dist/mcp-cli.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +281 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +13 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +12 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +22 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +129 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +39 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +212 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +17 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +57 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +510 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +70 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +76 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +116 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +27 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +98 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +27 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +180 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/hotkeys.d.ts +24 -0
- package/dist/modes/interactive/components/hotkeys.d.ts.map +1 -0
- package/dist/modes/interactive/components/hotkeys.js +97 -0
- package/dist/modes/interactive/components/hotkeys.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +35 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +36 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +19 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +48 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +179 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/logo.d.ts +25 -0
- package/dist/modes/interactive/components/logo.d.ts.map +1 -0
- package/dist/modes/interactive/components/logo.js +89 -0
- package/dist/modes/interactive/components/logo.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +278 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +165 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/remote-control-center.d.ts +110 -0
- package/dist/modes/interactive/components/remote-control-center.d.ts.map +1 -0
- package/dist/modes/interactive/components/remote-control-center.js +1217 -0
- package/dist/modes/interactive/components/remote-control-center.js.map +1 -0
- package/dist/modes/interactive/components/review-tools-selector.d.ts +24 -0
- package/dist/modes/interactive/components/review-tools-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/review-tools-selector.js +93 -0
- package/dist/modes/interactive/components/review-tools-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +290 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +856 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +77 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +484 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.d.ts +29 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.d.ts.map +1 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.js +98 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.js.map +1 -0
- package/dist/modes/interactive/components/subagent-inspector.d.ts +32 -0
- package/dist/modes/interactive/components/subagent-inspector.d.ts.map +1 -0
- package/dist/modes/interactive/components/subagent-inspector.js +439 -0
- package/dist/modes/interactive/components/subagent-inspector.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +52 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +83 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +421 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +89 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1208 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/trust-selector.js +91 -0
- package/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +9 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +42 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/components/volt-announcement.d.ts +5 -0
- package/dist/modes/interactive/components/volt-announcement.d.ts.map +1 -0
- package/dist/modes/interactive/components/volt-announcement.js +15 -0
- package/dist/modes/interactive/components/volt-announcement.js.map +1 -0
- package/dist/modes/interactive/daemon-attach.d.ts +154 -0
- package/dist/modes/interactive/daemon-attach.d.ts.map +1 -0
- package/dist/modes/interactive/daemon-attach.js +552 -0
- package/dist/modes/interactive/daemon-attach.js.map +1 -0
- package/dist/modes/interactive/drain-viewer.d.ts +31 -0
- package/dist/modes/interactive/drain-viewer.d.ts.map +1 -0
- package/dist/modes/interactive/drain-viewer.js +166 -0
- package/dist/modes/interactive/drain-viewer.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +502 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +7007 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/prompt-image-attachments.d.ts +34 -0
- package/dist/modes/interactive/prompt-image-attachments.d.ts.map +1 -0
- package/dist/modes/interactive/prompt-image-attachments.js +120 -0
- package/dist/modes/interactive/prompt-image-attachments.js.map +1 -0
- package/dist/modes/interactive/relay-stream-adapter.d.ts +19 -0
- package/dist/modes/interactive/relay-stream-adapter.d.ts.map +1 -0
- package/dist/modes/interactive/relay-stream-adapter.js +107 -0
- package/dist/modes/interactive/relay-stream-adapter.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +132 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/in-process-rpc-client.d.ts +31 -0
- package/dist/modes/rpc/in-process-rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/in-process-rpc-client.js +63 -0
- package/dist/modes/rpc/in-process-rpc-client.js.map +1 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.d.ts +61 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.d.ts.map +1 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.js +155 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.js.map +1 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.d.ts +69 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.js +1223 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +2 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +2 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client-base.d.ts +209 -0
- package/dist/modes/rpc/rpc-client-base.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client-base.js +530 -0
- package/dist/modes/rpc/rpc-client-base.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +50 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +190 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-command-dispatcher.d.ts +43 -0
- package/dist/modes/rpc/rpc-command-dispatcher.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-dispatcher.js +613 -0
- package/dist/modes/rpc/rpc-command-dispatcher.js.map +1 -0
- package/dist/modes/rpc/rpc-command-validation.d.ts +2 -0
- package/dist/modes/rpc/rpc-command-validation.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-validation.js +207 -0
- package/dist/modes/rpc/rpc-command-validation.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +48 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +1089 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-transport-client.d.ts +26 -0
- package/dist/modes/rpc/rpc-transport-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-transport-client.js +76 -0
- package/dist/modes/rpc/rpc-transport-client.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +2 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/package-manager-cli.d.ts +28 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +667 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/remote/integrated-runtime-retention.d.ts +17 -0
- package/dist/remote/integrated-runtime-retention.d.ts.map +1 -0
- package/dist/remote/integrated-runtime-retention.js +62 -0
- package/dist/remote/integrated-runtime-retention.js.map +1 -0
- package/dist/remote/iroh-native-adapter.cjs +19 -0
- package/dist/sea/cli.d.ts +4 -0
- package/dist/sea/cli.d.ts.map +1 -0
- package/dist/sea/cli.js +4 -0
- package/dist/sea/cli.js.map +1 -0
- package/dist/sea/register-bedrock.d.ts +2 -0
- package/dist/sea/register-bedrock.d.ts.map +1 -0
- package/dist/sea/register-bedrock.js +4 -0
- package/dist/sea/register-bedrock.js.map +1 -0
- package/dist/store/catalog.d.ts +57 -0
- package/dist/store/catalog.d.ts.map +1 -0
- package/dist/store/catalog.js +331 -0
- package/dist/store/catalog.js.map +1 -0
- package/dist/store/inspector.d.ts +36 -0
- package/dist/store/inspector.d.ts.map +1 -0
- package/dist/store/inspector.js +578 -0
- package/dist/store/inspector.js.map +1 -0
- package/dist/store/install-plan.d.ts +26 -0
- package/dist/store/install-plan.d.ts.map +1 -0
- package/dist/store/install-plan.js +80 -0
- package/dist/store/install-plan.js.map +1 -0
- package/dist/store/render.d.ts +11 -0
- package/dist/store/render.d.ts.map +1 -0
- package/dist/store/render.js +153 -0
- package/dist/store/render.js.map +1 -0
- package/dist/store/resolver.d.ts +22 -0
- package/dist/store/resolver.d.ts.map +1 -0
- package/dist/store/resolver.js +207 -0
- package/dist/store/resolver.js.map +1 -0
- package/dist/store/store-cli.d.ts +7 -0
- package/dist/store/store-cli.d.ts.map +1 -0
- package/dist/store/store-cli.js +636 -0
- package/dist/store/store-cli.js.map +1 -0
- package/dist/store/targets.d.ts +21 -0
- package/dist/store/targets.d.ts.map +1 -0
- package/dist/store/targets.js +55 -0
- package/dist/store/targets.js.map +1 -0
- package/dist/utils/ansi.d.ts +2 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +52 -0
- package/dist/utils/ansi.js.map +1 -0
- package/dist/utils/changelog.d.ts +22 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +165 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +18 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +106 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +245 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +94 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/deprecation.d.ts +4 -0
- package/dist/utils/deprecation.d.ts.map +1 -0
- package/dist/utils/deprecation.js +13 -0
- package/dist/utils/deprecation.js.map +1 -0
- package/dist/utils/durable-atomic-write.d.ts +46 -0
- package/dist/utils/durable-atomic-write.d.ts.map +1 -0
- package/dist/utils/durable-atomic-write.js +104 -0
- package/dist/utils/durable-atomic-write.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +195 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/ignore-files.d.ts +5 -0
- package/dist/utils/ignore-files.d.ts.map +1 -0
- package/dist/utils/ignore-files.js +58 -0
- package/dist/utils/ignore-files.js.map +1 -0
- package/dist/utils/image-codec.d.ts +22 -0
- package/dist/utils/image-codec.d.ts.map +1 -0
- package/dist/utils/image-codec.js +35 -0
- package/dist/utils/image-codec.js.map +1 -0
- package/dist/utils/image-convert.d.ts +9 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +26 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-resize-core.d.ts +31 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -0
- package/dist/utils/image-resize-core.js +181 -0
- package/dist/utils/image-resize-core.js.map +1 -0
- package/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/utils/image-resize-worker.js +31 -0
- package/dist/utils/image-resize-worker.js.map +1 -0
- package/dist/utils/image-resize.d.ts +15 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +92 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +7 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/mime.d.ts +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +69 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/npm-spec.d.ts +9 -0
- package/dist/utils/npm-spec.d.ts.map +1 -0
- package/dist/utils/npm-spec.js +15 -0
- package/dist/utils/npm-spec.js.map +1 -0
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +22 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/paths.d.ts +31 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +92 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/private-files.d.ts +21 -0
- package/dist/utils/private-files.d.ts.map +1 -0
- package/dist/utils/private-files.js +103 -0
- package/dist/utils/private-files.js.map +1 -0
- package/dist/utils/process-env.d.ts +2 -0
- package/dist/utils/process-env.d.ts.map +1 -0
- package/dist/utils/process-env.js +31 -0
- package/dist/utils/process-env.js.map +1 -0
- package/dist/utils/shell.d.ts +30 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +195 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts +18 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +139 -0
- package/dist/utils/syntax-highlight.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +328 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +15 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +61 -0
- package/dist/utils/version-check.js.map +1 -0
- package/dist/utils/volt-user-agent.d.ts +2 -0
- package/dist/utils/volt-user-agent.d.ts.map +1 -0
- package/dist/utils/volt-user-agent.js +5 -0
- package/dist/utils/volt-user-agent.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -0
- package/dist/utils/windows-self-update.js +77 -0
- package/dist/utils/windows-self-update.js.map +1 -0
- package/docs/compaction.md +394 -0
- package/docs/containerization.md +111 -0
- package/docs/custom-provider.md +737 -0
- package/docs/daemon.md +190 -0
- package/docs/development.md +70 -0
- package/docs/docs.json +176 -0
- package/docs/extensions.md +2692 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +82 -0
- package/docs/iroh-remote-access-design.md +340 -0
- package/docs/iroh-remote-protocol.md +431 -0
- package/docs/json.md +87 -0
- package/docs/keybindings.md +200 -0
- package/docs/live-shared-session-daemon-design.md +1090 -0
- package/docs/lsp.md +143 -0
- package/docs/mcp.md +1044 -0
- package/docs/models.md +495 -0
- package/docs/packages.md +230 -0
- package/docs/prompt-templates.md +108 -0
- package/docs/providers.md +274 -0
- package/docs/quickstart.md +165 -0
- package/docs/rpc.md +2050 -0
- package/docs/sdk.md +1267 -0
- package/docs/security.md +139 -0
- package/docs/session-format.md +412 -0
- package/docs/sessions.md +145 -0
- package/docs/settings.md +371 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +243 -0
- package/docs/subagents-design.md +419 -0
- package/docs/terminal-setup.md +148 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +295 -0
- package/docs/tla/ClientAuth.cfg +16 -0
- package/docs/tla/ClientAuth.tla +205 -0
- package/docs/tla/ClientConn.cfg +16 -0
- package/docs/tla/ClientConn.tla +265 -0
- package/docs/tla/LeaseBroker.cfg +43 -0
- package/docs/tla/LeaseBroker.tla +563 -0
- package/docs/tla/PLAN.md +240 -0
- package/docs/tla/PushOrdering.cfg +17 -0
- package/docs/tla/PushOrdering.tla +183 -0
- package/docs/tla/README.md +205 -0
- package/docs/tla/RelayViewer.cfg +26 -0
- package/docs/tla/RelayViewer.tla +299 -0
- package/docs/tla/SessionTarget.cfg +18 -0
- package/docs/tla/SessionTarget.tla +192 -0
- package/docs/tla/check.sh +34 -0
- package/docs/tmux.md +63 -0
- package/docs/tui.md +949 -0
- package/docs/usage.md +482 -0
- package/docs/windows.md +17 -0
- package/docs/worktrees-design.md +605 -0
- package/examples/README.md +28 -0
- package/examples/extensions/README.md +211 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +127 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +72 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +400 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +185 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/handoff.ts +191 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +55 -0
- package/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/examples/extensions/overlay-test.ts +153 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +65 -0
- package/examples/extensions/plan-mode/index.ts +340 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +97 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +122 -0
- package/examples/extensions/question.ts +277 -0
- package/examples/extensions/questionnaire.ts +440 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +321 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +175 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +126 -0
- package/examples/extensions/subagent/index.ts +1009 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +206 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/remote/firebase-push-relay/README.md +79 -0
- package/examples/remote/firebase-push-relay/firebase.json +12 -0
- package/examples/remote/firebase-push-relay/firestore.indexes.json +11 -0
- package/examples/remote/firebase-push-relay/firestore.rules +9 -0
- package/examples/remote/firebase-push-relay/functions/core.js +511 -0
- package/examples/remote/firebase-push-relay/functions/core.test.js +273 -0
- package/examples/remote/firebase-push-relay/functions/index.js +413 -0
- package/examples/remote/firebase-push-relay/functions/package-lock.json +2974 -0
- package/examples/remote/firebase-push-relay/functions/package.json +18 -0
- package/examples/remote/iroh-sidecar/README.md +211 -0
- package/examples/remote/iroh-sidecar/client.mjs +554 -0
- package/examples/remote/iroh-sidecar/common.mjs +195 -0
- package/examples/remote/iroh-sidecar/host.mjs +4 -0
- package/examples/remote/iroh-sidecar/package-lock.json +213 -0
- package/examples/remote/iroh-sidecar/package.json +13 -0
- package/examples/remote/iroh-sidecar/source-aware-run.mjs +41 -0
- package/examples/rpc-extension-ui.ts +632 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +53 -0
- package/examples/sdk/03-custom-prompt.ts +70 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +94 -0
- package/examples/sdk/07-context-files.ts +42 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +52 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +78 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +147 -0
- package/npm-shrinkwrap.json +3442 -0
- package/package.json +125 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/rpc/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC7E,OAAO,KAAK,EAAE,GAAG,EAAE,YAAY,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AAClE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC1G,OAAO,KAAK,EACX,6BAA6B,EAC7B,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AACxD,OAAO,KAAK,EACX,gBAAgB,EAChB,oBAAoB,EACpB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EAC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;IAAC,MAAM,EAAE,iBAAiB,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAMzF,0CAA0C;AAC1C,MAAM,MAAM,sBAAsB,GAC/B;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,OAAO,CAAA;CAAE,GACjE;IAAE,IAAI,EAAE,uBAAuB,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,IAAI,CAAA;CAAE,CAAC;AAMlE,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,MAAM,CAAC,CAAC","sourcesContent":["/**\n * RPC protocol types for headless operation.\n *\n * Commands are sent as JSON lines to an RPC transport.\n * Responses and events are emitted as JSON lines by the transport.\n */\n\nimport type { AgentMessage, ThinkingLevel } from \"@hansjm10/volt-agent-core\";\nimport type { Api, ImageContent, Model } from \"@hansjm10/volt-ai\";\nimport type { SessionStats } from \"../agent-session.ts\";\nimport type { BashResult } from \"../bash-executor.ts\";\nimport type { CompactionResult } from \"../compaction/index.ts\";\nimport type { HostActionDecisionKind, HostActionRequest, HostActionUpdate } from \"../host-interaction.ts\";\nimport type {\n\tMcpOAuthBrowserCompleteResult,\n\tMcpOAuthBrowserStartResult,\n\tMcpOAuthDevicePollResult,\n\tMcpOAuthDeviceStartResult,\n} from \"../mcp/oauth-flow.ts\";\nimport type { McpRpcCapabilities } from \"../mcp/rpc.ts\";\nimport type {\n\tMcpPromptSummary,\n\tMcpRecentCallSummary,\n\tMcpResourceSummary,\n\tMcpServerSummary,\n\tMcpToolSummary,\n} from \"../mcp/types.ts\";\nimport type { SourceInfo } from \"../source-info.ts\";\n\nexport type RpcModel = Model<Api>;\n/** A model as reported to clients: the raw model plus the thinking levels it supports. */\nexport type RpcCatalogModel = RpcModel & { availableThinkingLevels: ThinkingLevel[] };\nexport type RpcSubagentDefinitionSource = \"built-in\" | \"user\" | \"project\";\n\n// ============================================================================\n// RPC Commands\n// ============================================================================\n\nexport type RpcCommand =\n\t// Prompting\n\t| { id?: string; type: \"prompt\"; message: string; images?: ImageContent[]; streamingBehavior?: \"steer\" | \"followUp\" }\n\t| { id?: string; type: \"steer\"; message: string; images?: ImageContent[] }\n\t| { id?: string; type: \"follow_up\"; message: string; images?: ImageContent[] }\n\t| { id?: string; type: \"abort\" }\n\t| { id?: string; type: \"new_session\"; parentSession?: string }\n\n\t// Client capabilities and host-initiated actions\n\t| { id?: string; type: \"set_client_capabilities\"; features: RpcClientCapabilityFeature[] }\n\t| { id?: string; type: \"get_pending_host_actions\" }\n\n\t// Native UI actions\n\t| { id?: string; type: \"get_ui_capabilities\" }\n\t| { id?: string; type: \"get_ui_actions\"; scope?: UiActionListScope }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"get_ui_action_completions\";\n\t\t\taction: string;\n\t\t\targument: string;\n\t\t\tprefix?: string;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"invoke_ui_action\";\n\t\t\taction: string;\n\t\t\targs?: Record<string, unknown>;\n\t\t\tstreamingBehavior?: UiActionInvocationQueueBehavior;\n\t }\n\n\t// Push notifications\n\t| { id?: string; type: \"register_push_target\"; args: RpcRegisterPushTargetArgs }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"register_live_activity\";\n\t\t\tworkspaceName: string;\n\t\t\tsessionId: string;\n\t\t\tactivityId: string;\n\t\t\ttokenHash: string;\n\t\t\ttokenEnvironment: RpcPushTokenEnvironment;\n\t\t\tplatform: RpcPushPlatform;\n\t }\n\t| { id?: string; type: \"unregister_live_activity\"; workspaceName: string; sessionId: string; activityId: string }\n\n\t// Remote host management\n\t| { id?: string; type: \"unregister_workspace\"; name: string }\n\t| { id?: string; type: \"set_keep_awake\"; enabled: boolean }\n\t| { id?: string; type: \"get_keep_awake\" }\n\t| { id?: string; type: \"set_web_search_key\"; apiKey?: string | null }\n\t| { id?: string; type: \"get_web_search_status\" }\n\n\t// Device diagnostics\n\t| { id?: string; type: \"upload_device_logs\"; fileName?: string; content: string }\n\n\t// MCP management\n\t| { id?: string; type: \"get_mcp_capabilities\" }\n\t| { id?: string; type: \"list_mcp_servers\" }\n\t| { id?: string; type: \"get_mcp_server\"; server: string }\n\t| { id?: string; type: \"connect_mcp_server\"; server: string }\n\t| { id?: string; type: \"disconnect_mcp_server\"; server: string }\n\t| { id?: string; type: \"refresh_mcp_server\"; server: string }\n\t| { id?: string; type: \"start_mcp_server_auth\"; server: string; flow?: \"browser\" | \"device\"; redirectUrl?: string }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"complete_mcp_server_auth\";\n\t\t\tserver: string;\n\t\t\tredirectUrl: string;\n\t\t\tcode: string;\n\t\t\tstate?: string;\n\t }\n\t| { id?: string; type: \"poll_mcp_server_auth\"; server: string }\n\t| { id?: string; type: \"cancel_mcp_server_auth\"; server: string }\n\t| { id?: string; type: \"logout_mcp_server\"; server: string }\n\t| { id?: string; type: \"set_mcp_server_enabled\"; server: string; enabled: boolean }\n\t| { id?: string; type: \"list_mcp_tools\"; server: string }\n\t| { id?: string; type: \"get_mcp_tool\"; server: string; tool: string }\n\t| { id?: string; type: \"list_mcp_resources\"; server: string; cursor?: string }\n\t| { id?: string; type: \"read_mcp_resource\"; server: string; resourceUri: string }\n\t| { id?: string; type: \"list_mcp_prompts\"; server: string; cursor?: string }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"get_mcp_prompt\";\n\t\t\tserver: string;\n\t\t\tprompt: string;\n\t\t\targuments?: Record<string, unknown>;\n\t\t\targumentsJson?: string;\n\t }\n\t| { id?: string; type: \"list_mcp_recent_calls\"; server?: string }\n\n\t// State\n\t| { id?: string; type: \"get_state\" }\n\t| { id?: string; type: \"get_transcript\"; limit?: number; beforeEntryId?: string }\n\t| { id?: string; type: \"get_message_images\"; entryId: string; startImageIndex?: number }\n\n\t// Subagents (local RPC only)\n\t| { id?: string; type: \"list_subagents\" }\n\t| { id?: string; type: \"subagent_start\"; agent: string; prompt: string }\n\t| { id?: string; type: \"subagent_abort\"; subagentId: string }\n\t| { id?: string; type: \"subagent_get_state\"; subagentId: string }\n\t| { id?: string; type: \"subagent_get_transcript\"; subagentId: string; limit?: number; beforeEntryId?: string }\n\t| { id?: string; type: \"subagent_dispose\"; subagentId: string }\n\n\t// Model\n\t| { id?: string; type: \"set_model\"; provider: string; modelId: string; persistDefault?: boolean }\n\t| { id?: string; type: \"cycle_model\" }\n\t| { id?: string; type: \"get_available_models\" }\n\n\t// Thinking\n\t| { id?: string; type: \"set_thinking_level\"; level: ThinkingLevel; persistDefault?: boolean }\n\t| { id?: string; type: \"cycle_thinking_level\" }\n\n\t// Queue modes\n\t| { id?: string; type: \"set_steering_mode\"; mode: \"all\" | \"one-at-a-time\" }\n\t| { id?: string; type: \"set_follow_up_mode\"; mode: \"all\" | \"one-at-a-time\" }\n\n\t// Compaction\n\t| { id?: string; type: \"compact\"; customInstructions?: string }\n\t| { id?: string; type: \"set_auto_compaction\"; enabled: boolean }\n\n\t// Retry\n\t| { id?: string; type: \"set_auto_retry\"; enabled: boolean }\n\t| { id?: string; type: \"abort_retry\" }\n\n\t// Bash\n\t| { id?: string; type: \"bash\"; command: string; excludeFromContext?: boolean }\n\t| { id?: string; type: \"abort_bash\" }\n\n\t// Session\n\t| { id?: string; type: \"get_session_stats\" }\n\t| { id?: string; type: \"list_sessions\" }\n\t| { id?: string; type: \"export_html\"; outputPath?: string }\n\t| { id?: string; type: \"switch_session\"; sessionPath: string }\n\t| { id?: string; type: \"switch_session_by_id\"; sessionId: string }\n\t| { id?: string; type: \"fork\"; entryId: string }\n\t| { id?: string; type: \"clone\" }\n\t| { id?: string; type: \"get_fork_messages\" }\n\t| { id?: string; type: \"get_last_assistant_text\" }\n\t| { id?: string; type: \"set_session_name\"; name: string }\n\n\t// Messages\n\t| { id?: string; type: \"get_messages\" }\n\n\t// Commands (available for invocation via prompt)\n\t| { id?: string; type: \"get_commands\" };\n\n// ============================================================================\n// RPC Native UI Actions\n// ============================================================================\n\nexport type UiActionSource = \"builtin\" | \"extension\" | \"prompt\" | \"skill\" | \"package\";\nexport type UiActionCategory =\n\t| \"review\"\n\t| \"session\"\n\t| \"model\"\n\t| \"context\"\n\t| \"extension\"\n\t| \"prompt\"\n\t| \"skill\"\n\t| \"advanced\";\nexport type UiActionPresentationKind = \"card\" | \"button\" | \"toggle\" | \"picker\" | \"palette\" | \"detail\" | \"hidden\";\nexport type UiActionArgumentType = \"string\" | \"boolean\" | \"enum\" | \"integer\";\nexport type UiActionStateType = \"boolean\" | \"string\" | \"enum\" | \"integer\";\nexport type UiActionStreamingBehavior = \"disabled\" | \"immediate\" | \"queueSteer\" | \"queueFollowUp\";\nexport type UiActionScalar = string | number | boolean | null;\nexport type UiActionListScope = \"primary\" | \"palette\" | \"all\";\nexport type UiActionInvocationQueueBehavior = \"steer\" | \"followUp\";\nexport type UiActionInvocationStatus = \"accepted\" | \"completed\" | \"queued\" | \"handled\" | \"cancelled\";\nexport type UiActionCapabilityFeature =\n\t| \"ui_actions.v1\"\n\t| \"ui_action_invocation.v1\"\n\t| \"ui_action_completions.v1\"\n\t| (string & {});\nexport type RpcClientCapabilityFeature = \"host_action_requests.v1\" | (string & {});\n\nexport interface UiActionOptionDescriptor {\n\tvalue: string;\n\tlabel?: string;\n\tdescription?: string;\n}\n\nexport interface UiActionPresentationHint {\n\tkind: UiActionPresentationKind | (string & {});\n\tgroup?: string;\n\tpriority?: number;\n\ticon?: string;\n}\n\nexport interface UiActionArgumentDescriptor {\n\tname: string;\n\tlabel?: string;\n\tdescription?: string;\n\ttype: UiActionArgumentType | (string & {});\n\trequired?: boolean;\n\tmultiline?: boolean;\n\tplaceholder?: string;\n\thint?: string;\n\tdefaultValue?: UiActionScalar;\n\toptions?: UiActionOptionDescriptor[];\n\tcompletion?: \"commandArguments\" | (string & {});\n}\n\nexport interface UiActionStateDescriptor {\n\ttype: UiActionStateType | (string & {});\n\tvalue: UiActionScalar;\n\tlabel?: string;\n\toptions?: UiActionOptionDescriptor[];\n}\n\nexport interface UiActionSlashAlias {\n\tname: string;\n\texample?: string;\n}\n\nexport interface UiActionDescriptor {\n\tschemaVersion: 1;\n\tid: string;\n\tlabel: string;\n\tdescription?: string;\n\tsource: UiActionSource | (string & {});\n\tsourceScope?: \"user\" | \"project\" | \"temporary\";\n\tsourceOrigin?: \"package\" | \"top-level\";\n\tsourceLabel?: string;\n\tcategory: UiActionCategory | (string & {});\n\tpresentation?: UiActionPresentationHint;\n\targs?: UiActionArgumentDescriptor[];\n\tstate?: UiActionStateDescriptor;\n\tenabled: boolean;\n\tdisabledReason?: string | null;\n\tdestructive?: boolean;\n\trequiresConfirmation?: boolean;\n\tstreamingBehavior?: UiActionStreamingBehavior | UiActionStreamingBehavior[];\n\tremoteSafe: boolean;\n\tslash?: UiActionSlashAlias;\n}\n\nexport interface UiActionCapabilities {\n\tprotocolVersion: 1;\n\tfeatures: UiActionCapabilityFeature[];\n\tmaxActions: number;\n\tmaxDescriptorBytes: number;\n}\n\nexport interface UiActionListResponse {\n\tactions: UiActionDescriptor[];\n}\n\nexport interface UiActionCompletionListResponse {\n\tcompletions: UiActionOptionDescriptor[];\n}\n\nexport interface UiActionInvocationResponse {\n\taction: string;\n\tstatus: UiActionInvocationStatus;\n\tqueuedAs?: UiActionInvocationQueueBehavior;\n\tstate?: UiActionStateDescriptor;\n\tstateChanged?: boolean;\n\tactionsChanged?: boolean;\n\tmessage?: string;\n}\n\n// ============================================================================\n// RPC Workflow Events\n// ============================================================================\n\nexport type RpcWorkflowKind = \"review\" | (string & {});\nexport type RpcWorkflowStatus = \"running\" | \"finalizing\" | \"completed\" | \"cancelled\" | \"failed\" | (string & {});\n\nexport interface RpcWorkflowEvent {\n\ttype: \"workflow_start\" | \"workflow_update\" | \"workflow_end\";\n\tworkflowId: string;\n\tkind: RpcWorkflowKind;\n\taction?: string;\n\ttitle?: string;\n\tmessage?: string;\n\tstatus?: RpcWorkflowStatus;\n}\n\nexport type RpcWorkflowToolEvent =\n\t| {\n\t\t\ttype: \"tool_execution_start\";\n\t\t\tworkflowId: string;\n\t\t\tworkflowKind: RpcWorkflowKind;\n\t\t\tworkflowAction: string;\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\targs?: Record<string, unknown>;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_end\";\n\t\t\tworkflowId: string;\n\t\t\tworkflowKind: RpcWorkflowKind;\n\t\t\tworkflowAction: string;\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tisError: boolean;\n\t };\n\n// ============================================================================\n// RPC Host Actions\n// ============================================================================\n\nexport type RpcHostActionRequest = { type: \"host_action_request\" } & HostActionRequest;\nexport type RpcHostActionUpdate = { type: \"host_action_update\" } & HostActionUpdate;\nexport type RpcHostActionResponse = {\n\ttype: \"host_action_response\";\n\tid: string;\n\tdecision: Exclude<HostActionDecisionKind, \"unavailable\">;\n\tmessage?: string;\n};\n\nexport interface RpcPendingHostActionsResponse {\n\tactions: RpcHostActionRequest[];\n}\n\n// ============================================================================\n// RPC Subagents\n// ============================================================================\n\nexport interface RpcSubagentSourceInfo {\n\tsource: SourceInfo[\"source\"];\n\tscope: SourceInfo[\"scope\"];\n\torigin: SourceInfo[\"origin\"];\n}\n\nexport interface RpcSubagentDefinition {\n\tname: string;\n\tdescription: string;\n\tsource: RpcSubagentDefinitionSource;\n\tsourceInfo: RpcSubagentSourceInfo;\n\ttools?: string[];\n\texcludedTools?: string[];\n\tallowedSubagents?: string[];\n\tmaxSubagentDepth?: number;\n\tmaxChildAgents?: number;\n\tmodel?: string;\n\tthinking?: string;\n}\n\nexport interface RpcListSubagentsResponse {\n\tsubagents: RpcSubagentDefinition[];\n}\n\nexport interface RpcSubagentStartResponse {\n\tsubagentId: string;\n\tsessionId: string;\n}\n\n// ============================================================================\n// RPC Push Notifications\n// ============================================================================\n\nexport type RpcPushProvider = \"fcm\";\nexport type RpcPushPlatform = \"ios\";\nexport type RpcPushTokenEnvironment = \"development\" | \"production\";\n\nexport interface RpcLiveActivityRegistration {\n\tactivityId: string;\n\tpushToken: string;\n\ttokenHash?: string;\n\ttokenEnvironment?: RpcPushTokenEnvironment;\n}\n\nexport interface RpcRegisterPushTargetArgs {\n\tprovider: RpcPushProvider;\n\tplatform: RpcPushPlatform;\n\tpushTargetId: string;\n\tpushTargetAuthToken: string;\n\trelayUrl?: string;\n\ttokenHash?: string;\n\tliveActivity?: RpcLiveActivityRegistration;\n\tenabled: boolean;\n}\n\nexport interface RpcRegisterPushTargetResponse {\n\tstatus: \"registered\";\n\tpushTargetId: string;\n}\n\nexport interface RpcRegisterLiveActivityResponse {\n\tstatus: \"registered\";\n\tactivityId: string;\n}\n\nexport interface RpcUnregisterLiveActivityResponse {\n\tstatus: \"unregistered\";\n\tactivityId: string;\n}\n\n// ============================================================================\n// RPC Slash Command (for get_commands response)\n// ============================================================================\n\n/** A command available for invocation via prompt */\nexport interface RpcMcpCapabilitiesResponse extends McpRpcCapabilities {}\n\nexport interface RpcMcpServersResponse {\n\tservers: McpServerSummary[];\n}\n\nexport interface RpcMcpServerResponse {\n\tserver: McpServerSummary;\n\tpersisted?: { path: string; scope: string };\n}\n\nexport interface RpcMcpToolsResponse {\n\tserver: string;\n\ttools: McpToolSummary[];\n\tmetadataHash?: string;\n\tstale: boolean;\n}\n\nexport interface RpcMcpToolResponse {\n\ttool: McpToolSummary;\n}\n\nexport interface RpcMcpResourcesResponse {\n\tserver: string;\n\tresources: McpResourceSummary[];\n\tnextCursor?: string;\n}\n\nexport interface RpcMcpResourceContentResponse {\n\tresult: unknown;\n}\n\nexport interface RpcMcpPromptsResponse {\n\tserver: string;\n\tprompts: McpPromptSummary[];\n\tnextCursor?: string;\n}\n\nexport interface RpcMcpPromptContentResponse {\n\tresult: unknown;\n}\n\nexport interface RpcMcpRecentCallsResponse {\n\tcalls: McpRecentCallSummary[];\n}\n\nexport type RpcMcpAuthResponse =\n\t| McpOAuthBrowserStartResult\n\t| McpOAuthBrowserCompleteResult\n\t| McpOAuthDeviceStartResult\n\t| McpOAuthDevicePollResult\n\t| {\n\t\t\taction: \"auth\";\n\t\t\tserver: string;\n\t\t\tstatus: \"cancelled\" | \"logged_out\";\n\t\t\tmessage?: string;\n\t\t\tserverSummary?: McpServerSummary;\n\t };\n\nexport interface RpcSlashCommand {\n\t/** Command name (without leading slash) */\n\tname: string;\n\t/** Human-readable description */\n\tdescription?: string;\n\t/** What kind of command this is */\n\tsource: \"extension\" | \"prompt\" | \"skill\";\n\t/** Source metadata for the owning resource */\n\tsourceInfo: SourceInfo;\n}\n\n// ============================================================================\n// RPC State\n// ============================================================================\n\nexport interface RpcSessionListItem {\n\tsessionId: string;\n\tsessionName?: string;\n\tcreatedAt: string;\n\tmodifiedAt: string;\n\tmessageCount: number;\n\tfirstMessage: string;\n\tcurrent: boolean;\n\t/** \"subagent\" when this session was created for a delegated subagent run. */\n\torigin?: \"subagent\";\n}\n\nexport interface RpcActiveToolExecution {\n\ttoolCallId: string;\n\ttoolName: string;\n\tstatus: \"started\";\n\targs?: Record<string, unknown>;\n\t/** Projected details from the newest tool_execution_update, so clients that\n\t * attach mid-turn can restore live tool state (currently `subagent` only). */\n\tdetails?: Record<string, unknown>;\n}\n\nexport interface RpcActiveCompaction {\n\treason: \"manual\" | \"threshold\" | \"overflow\";\n\t/** Unix epoch milliseconds when the active compaction started. */\n\tstartedAt: number;\n}\n\nexport interface RpcSessionState {\n\tmodel?: RpcModel;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\t/** Whether a provider run or session-level continuation is active. */\n\tisStreaming: boolean;\n\t/** Whether any prompt work, including asynchronous preflight, is active. */\n\tisBusy?: boolean;\n\tisCompacting: boolean;\n\tsteeringMode: \"all\" | \"one-at-a-time\";\n\tfollowUpMode: \"all\" | \"one-at-a-time\";\n\tsessionFile?: string;\n\tsessionId: string;\n\tsessionName?: string;\n\tautoCompactionEnabled: boolean;\n\tmessageCount: number;\n\tpendingMessageCount: number;\n\tactiveTools?: RpcActiveToolExecution[];\n\tactiveCompaction?: RpcActiveCompaction;\n}\n\nexport type RpcTranscriptToolStatus = \"started\" | \"completed\" | \"failed\";\n\nexport interface RpcTranscriptBaseItem {\n\tid: string;\n\trole: \"user\" | \"assistant\" | \"tool\" | \"summary\";\n\ttimestamp: string;\n}\n\nexport interface RpcTranscriptTextItem extends RpcTranscriptBaseItem {\n\trole: \"user\" | \"assistant\";\n\ttext: string;\n\t/** Number of inline image blocks on the persisted user message. Transcript\n\t * projections are text-only; clients recover the blocks per entry via\n\t * `get_message_images`. */\n\timageCount?: number;\n}\n\nexport interface RpcTranscriptToolItem extends RpcTranscriptBaseItem {\n\trole: \"tool\";\n\ttoolName: string;\n\tstatus: RpcTranscriptToolStatus;\n\tpath?: string;\n\tsummary: string;\n\t/** Number of inline image blocks on the persisted tool result (for example\n\t * a `read` of an image file). Transcript projections are text-only;\n\t * clients recover the blocks per entry via `get_message_images`. */\n\timageCount?: number;\n\targs?: Record<string, unknown>;\n\tdetails?: Record<string, unknown>;\n\tdiffPreview?: string;\n\tpatchPreview?: string;\n}\n\nexport interface RpcTranscriptSummaryItem extends RpcTranscriptBaseItem {\n\trole: \"summary\";\n\ttitle: \"Conversation compacted\";\n\ttext: string;\n}\n\nexport type RpcTranscriptItem = RpcTranscriptTextItem | RpcTranscriptToolItem | RpcTranscriptSummaryItem;\n\nexport interface RpcTranscriptResponse {\n\tsessionId: string;\n\titems: RpcTranscriptItem[];\n\thasMore: boolean;\n\tnextBeforeEntryId: string | null;\n}\n\n/** One recovered image block. Shaped as an ImageContent record (plus its\n * position on the message) so remote outbound sanitizers pass the base64\n * payload through untouched. */\nexport type RpcMessageImage = ImageContent & { index: number };\n\nexport interface RpcMessageImagesResponse {\n\tsessionId: string;\n\tentryId: string;\n\t/** Total image blocks on the entry, including any not in this page. */\n\ttotalImages: number;\n\timages: RpcMessageImage[];\n\t/** Cursor for the next page, or null when all images have been returned. */\n\tnextImageIndex: number | null;\n}\n\n/**\n * Host keep-awake (prevent sleep) state as reported to phones. Deliberately\n * omits the host-local mechanism (caffeinate etc.); `reason` is generic wording\n * present only when degraded.\n */\nexport interface RpcKeepAwakeStatus {\n\tenabled: boolean;\n\tstate: \"disabled\" | \"active\" | \"degraded\";\n\treason?: string;\n}\n\n/**\n * Host web-search key state as reported to phones. Deliberately omits the key\n * itself; only whether one is stored.\n */\nexport interface RpcWebSearchStatus {\n\tconfigured: boolean;\n}\n\n// ============================================================================\n// RPC Responses\n// ============================================================================\n\n// Success responses with data\nexport type RpcResponse =\n\t// Prompting (async - events follow)\n\t| { id?: string; type: \"response\"; command: \"prompt\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"steer\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"follow_up\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"abort\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"new_session\"; success: true; data: { cancelled: boolean } }\n\n\t// Client capabilities and host-initiated actions\n\t| { id?: string; type: \"response\"; command: \"set_client_capabilities\"; success: true }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_pending_host_actions\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcPendingHostActionsResponse;\n\t }\n\n\t// Native UI actions\n\t| { id?: string; type: \"response\"; command: \"get_ui_capabilities\"; success: true; data: UiActionCapabilities }\n\t| { id?: string; type: \"response\"; command: \"get_ui_actions\"; success: true; data: UiActionListResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_ui_action_completions\";\n\t\t\tsuccess: true;\n\t\t\tdata: UiActionCompletionListResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"invoke_ui_action\";\n\t\t\tsuccess: true;\n\t\t\tdata: UiActionInvocationResponse;\n\t }\n\n\t// Push notifications\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"register_push_target\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcRegisterPushTargetResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"register_live_activity\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcRegisterLiveActivityResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"unregister_live_activity\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcUnregisterLiveActivityResponse;\n\t }\n\n\t// Remote host management\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"unregister_workspace\";\n\t\t\tsuccess: true;\n\t\t\tdata: {\n\t\t\t\tremovedWorkspace: string;\n\t\t\t\tworkspaceNames: string[];\n\t\t\t\tworkspaces: Array<{ name: string; status: string }>;\n\t\t\t};\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_keep_awake\";\n\t\t\tsuccess: true;\n\t\t\tdata: { keepAwake: RpcKeepAwakeStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_keep_awake\";\n\t\t\tsuccess: true;\n\t\t\tdata: { keepAwake: RpcKeepAwakeStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_web_search_key\";\n\t\t\tsuccess: true;\n\t\t\tdata: { webSearch: RpcWebSearchStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_web_search_status\";\n\t\t\tsuccess: true;\n\t\t\tdata: { webSearch: RpcWebSearchStatus };\n\t }\n\n\t// Device diagnostics\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"upload_device_logs\";\n\t\t\tsuccess: true;\n\t\t\tdata: { path: string; byteCount: number };\n\t }\n\n\t// MCP management\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_mcp_capabilities\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpCapabilitiesResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_servers\"; success: true; data: RpcMcpServersResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"connect_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"disconnect_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"refresh_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"start_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"complete_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"poll_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"cancel_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"logout_mcp_server\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"set_mcp_server_enabled\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_tools\"; success: true; data: RpcMcpToolsResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_tool\"; success: true; data: RpcMcpToolResponse }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_resources\"; success: true; data: RpcMcpResourcesResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"read_mcp_resource\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpResourceContentResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_prompts\"; success: true; data: RpcMcpPromptsResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_prompt\"; success: true; data: RpcMcpPromptContentResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"list_mcp_recent_calls\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpRecentCallsResponse;\n\t }\n\n\t// State\n\t| { id?: string; type: \"response\"; command: \"get_state\"; success: true; data: RpcSessionState }\n\t| { id?: string; type: \"response\"; command: \"get_transcript\"; success: true; data: RpcTranscriptResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_message_images\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMessageImagesResponse;\n\t }\n\n\t// Subagents (local RPC only)\n\t| { id?: string; type: \"response\"; command: \"list_subagents\"; success: true; data: RpcListSubagentsResponse }\n\t| { id?: string; type: \"response\"; command: \"subagent_start\"; success: true; data: RpcSubagentStartResponse }\n\t| { id?: string; type: \"response\"; command: \"subagent_abort\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"subagent_get_state\"; success: true; data: RpcSessionState }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"subagent_get_transcript\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcTranscriptResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"subagent_dispose\"; success: true }\n\n\t// Model\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_model\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcCatalogModel;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"cycle_model\";\n\t\t\tsuccess: true;\n\t\t\tdata: { model: RpcModel; thinkingLevel: ThinkingLevel; isScoped: boolean } | null;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_available_models\";\n\t\t\tsuccess: true;\n\t\t\tdata: { models: RpcCatalogModel[] };\n\t }\n\n\t// Thinking\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_thinking_level\";\n\t\t\tsuccess: true;\n\t\t\tdata: { level: ThinkingLevel };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"cycle_thinking_level\";\n\t\t\tsuccess: true;\n\t\t\tdata: { level: ThinkingLevel } | null;\n\t }\n\n\t// Queue modes\n\t| { id?: string; type: \"response\"; command: \"set_steering_mode\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"set_follow_up_mode\"; success: true }\n\n\t// Compaction\n\t| { id?: string; type: \"response\"; command: \"compact\"; success: true; data: CompactionResult }\n\t| { id?: string; type: \"response\"; command: \"set_auto_compaction\"; success: true }\n\n\t// Retry\n\t| { id?: string; type: \"response\"; command: \"set_auto_retry\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"abort_retry\"; success: true }\n\n\t// Bash\n\t| { id?: string; type: \"response\"; command: \"bash\"; success: true; data: BashResult }\n\t| { id?: string; type: \"response\"; command: \"abort_bash\"; success: true }\n\n\t// Session\n\t| { id?: string; type: \"response\"; command: \"get_session_stats\"; success: true; data: SessionStats }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"list_sessions\";\n\t\t\tsuccess: true;\n\t\t\tdata: { sessions: RpcSessionListItem[] };\n\t }\n\t| { id?: string; type: \"response\"; command: \"export_html\"; success: true; data: { path: string } }\n\t| { id?: string; type: \"response\"; command: \"switch_session\"; success: true; data: { cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"switch_session_by_id\"; success: true; data: { cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"fork\"; success: true; data: { text: string; cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"clone\"; success: true; data: { cancelled: boolean } }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_fork_messages\";\n\t\t\tsuccess: true;\n\t\t\tdata: { messages: Array<{ entryId: string; text: string }> };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_last_assistant_text\";\n\t\t\tsuccess: true;\n\t\t\tdata: { text: string | null };\n\t }\n\t| { id?: string; type: \"response\"; command: \"set_session_name\"; success: true }\n\n\t// Messages\n\t| { id?: string; type: \"response\"; command: \"get_messages\"; success: true; data: { messages: AgentMessage[] } }\n\n\t// Commands\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_commands\";\n\t\t\tsuccess: true;\n\t\t\tdata: { commands: RpcSlashCommand[] };\n\t }\n\n\t// Error response (any command can fail)\n\t| { id?: string; type: \"response\"; command: string; success: false; error: string };\n\n// ============================================================================\n// Extension UI Events\n// ============================================================================\n\n/** Emitted when an extension needs user input */\nexport type RpcExtensionUIRequest =\n\t| { type: \"extension_ui_request\"; id: string; method: \"select\"; title: string; options: string[]; timeout?: number }\n\t| { type: \"extension_ui_request\"; id: string; method: \"confirm\"; title: string; message: string; timeout?: number }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"input\";\n\t\t\ttitle: string;\n\t\t\tplaceholder?: string;\n\t\t\ttimeout?: number;\n\t }\n\t| { type: \"extension_ui_request\"; id: string; method: \"editor\"; title: string; prefill?: string }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"notify\";\n\t\t\tmessage: string;\n\t\t\tnotifyType?: \"info\" | \"warning\" | \"error\";\n\t }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"setStatus\";\n\t\t\tstatusKey: string;\n\t\t\tstatusText: string | undefined;\n\t }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"setWidget\";\n\t\t\twidgetKey: string;\n\t\t\twidgetLines: string[] | undefined;\n\t\t\twidgetPlacement?: \"aboveEditor\" | \"belowEditor\";\n\t }\n\t| { type: \"extension_ui_request\"; id: string; method: \"setTitle\"; title: string }\n\t| { type: \"extension_ui_request\"; id: string; method: \"set_editor_text\"; text: string };\n\n// ============================================================================\n// Extension UI Commands\n// ============================================================================\n\n/** Response to an extension UI request */\nexport type RpcExtensionUIResponse =\n\t| { type: \"extension_ui_response\"; id: string; value: string }\n\t| { type: \"extension_ui_response\"; id: string; confirmed: boolean }\n\t| { type: \"extension_ui_response\"; id: string; cancelled: true };\n\n// ============================================================================\n// Helper type for extracting command types\n// ============================================================================\n\nexport type RpcCommandType = RpcCommand[\"type\"];\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/core/rpc/types.ts"],"names":[],"mappings":"AAAA;;;;;GAKG","sourcesContent":["/**\n * RPC protocol types for headless operation.\n *\n * Commands are sent as JSON lines to an RPC transport.\n * Responses and events are emitted as JSON lines by the transport.\n */\n\nimport type { AgentMessage, ThinkingLevel } from \"@hansjm10/volt-agent-core\";\nimport type { Api, ImageContent, Model } from \"@hansjm10/volt-ai\";\nimport type { SessionStats } from \"../agent-session.ts\";\nimport type { BashResult } from \"../bash-executor.ts\";\nimport type { CompactionResult } from \"../compaction/index.ts\";\nimport type { HostActionDecisionKind, HostActionRequest, HostActionUpdate } from \"../host-interaction.ts\";\nimport type {\n\tMcpOAuthBrowserCompleteResult,\n\tMcpOAuthBrowserStartResult,\n\tMcpOAuthDevicePollResult,\n\tMcpOAuthDeviceStartResult,\n} from \"../mcp/oauth-flow.ts\";\nimport type { McpRpcCapabilities } from \"../mcp/rpc.ts\";\nimport type {\n\tMcpPromptSummary,\n\tMcpRecentCallSummary,\n\tMcpResourceSummary,\n\tMcpServerSummary,\n\tMcpToolSummary,\n} from \"../mcp/types.ts\";\nimport type { SourceInfo } from \"../source-info.ts\";\n\nexport type RpcModel = Model<Api>;\n/** A model as reported to clients: the raw model plus the thinking levels it supports. */\nexport type RpcCatalogModel = RpcModel & { availableThinkingLevels: ThinkingLevel[] };\nexport type RpcSubagentDefinitionSource = \"built-in\" | \"user\" | \"project\";\n\n// ============================================================================\n// RPC Commands\n// ============================================================================\n\nexport type RpcCommand =\n\t// Prompting\n\t| { id?: string; type: \"prompt\"; message: string; images?: ImageContent[]; streamingBehavior?: \"steer\" | \"followUp\" }\n\t| { id?: string; type: \"steer\"; message: string; images?: ImageContent[] }\n\t| { id?: string; type: \"follow_up\"; message: string; images?: ImageContent[] }\n\t| { id?: string; type: \"abort\" }\n\t| { id?: string; type: \"new_session\"; parentSession?: string }\n\n\t// Client capabilities and host-initiated actions\n\t| { id?: string; type: \"set_client_capabilities\"; features: RpcClientCapabilityFeature[] }\n\t| { id?: string; type: \"get_pending_host_actions\" }\n\n\t// Native UI actions\n\t| { id?: string; type: \"get_ui_capabilities\" }\n\t| { id?: string; type: \"get_ui_actions\"; scope?: UiActionListScope }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"get_ui_action_completions\";\n\t\t\taction: string;\n\t\t\targument: string;\n\t\t\tprefix?: string;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"invoke_ui_action\";\n\t\t\taction: string;\n\t\t\targs?: Record<string, unknown>;\n\t\t\tstreamingBehavior?: UiActionInvocationQueueBehavior;\n\t }\n\n\t// Push notifications\n\t| { id?: string; type: \"register_push_target\"; args: RpcRegisterPushTargetArgs }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"register_live_activity\";\n\t\t\tworkspaceName: string;\n\t\t\tsessionId: string;\n\t\t\tactivityId: string;\n\t\t\ttokenHash: string;\n\t\t\ttokenEnvironment: RpcPushTokenEnvironment;\n\t\t\tplatform: RpcPushPlatform;\n\t }\n\t| { id?: string; type: \"unregister_live_activity\"; workspaceName: string; sessionId: string; activityId: string }\n\n\t// Remote host management\n\t| { id?: string; type: \"unregister_workspace\"; name: string }\n\t| { id?: string; type: \"set_keep_awake\"; enabled: boolean }\n\t| { id?: string; type: \"get_keep_awake\" }\n\t| { id?: string; type: \"set_web_search_key\"; apiKey?: string | null }\n\t| { id?: string; type: \"get_web_search_status\" }\n\n\t// Device diagnostics\n\t| { id?: string; type: \"upload_device_logs\"; fileName?: string; content: string }\n\n\t// MCP management\n\t| { id?: string; type: \"get_mcp_capabilities\" }\n\t| { id?: string; type: \"list_mcp_servers\" }\n\t| { id?: string; type: \"get_mcp_server\"; server: string }\n\t| { id?: string; type: \"connect_mcp_server\"; server: string }\n\t| { id?: string; type: \"disconnect_mcp_server\"; server: string }\n\t| { id?: string; type: \"refresh_mcp_server\"; server: string }\n\t| { id?: string; type: \"start_mcp_server_auth\"; server: string; flow?: \"browser\" | \"device\"; redirectUrl?: string }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"complete_mcp_server_auth\";\n\t\t\tserver: string;\n\t\t\tredirectUrl: string;\n\t\t\tcode: string;\n\t\t\tstate?: string;\n\t }\n\t| { id?: string; type: \"poll_mcp_server_auth\"; server: string }\n\t| { id?: string; type: \"cancel_mcp_server_auth\"; server: string }\n\t| { id?: string; type: \"logout_mcp_server\"; server: string }\n\t| { id?: string; type: \"set_mcp_server_enabled\"; server: string; enabled: boolean }\n\t| { id?: string; type: \"list_mcp_tools\"; server: string }\n\t| { id?: string; type: \"get_mcp_tool\"; server: string; tool: string }\n\t| { id?: string; type: \"list_mcp_resources\"; server: string; cursor?: string }\n\t| { id?: string; type: \"read_mcp_resource\"; server: string; resourceUri: string }\n\t| { id?: string; type: \"list_mcp_prompts\"; server: string; cursor?: string }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"get_mcp_prompt\";\n\t\t\tserver: string;\n\t\t\tprompt: string;\n\t\t\targuments?: Record<string, unknown>;\n\t\t\targumentsJson?: string;\n\t }\n\t| { id?: string; type: \"list_mcp_recent_calls\"; server?: string }\n\n\t// State\n\t| { id?: string; type: \"get_state\" }\n\t| { id?: string; type: \"get_transcript\"; limit?: number; beforeEntryId?: string }\n\t| { id?: string; type: \"get_message_images\"; entryId: string; startImageIndex?: number }\n\n\t// Subagents (local RPC only)\n\t| { id?: string; type: \"list_subagents\" }\n\t| { id?: string; type: \"subagent_start\"; agent: string; prompt: string }\n\t| { id?: string; type: \"subagent_abort\"; subagentId: string }\n\t| { id?: string; type: \"subagent_get_state\"; subagentId: string }\n\t| { id?: string; type: \"subagent_get_transcript\"; subagentId: string; limit?: number; beforeEntryId?: string }\n\t| { id?: string; type: \"subagent_dispose\"; subagentId: string }\n\n\t// Model\n\t| { id?: string; type: \"set_model\"; provider: string; modelId: string; persistDefault?: boolean }\n\t| { id?: string; type: \"cycle_model\" }\n\t| { id?: string; type: \"get_available_models\" }\n\n\t// Thinking\n\t| { id?: string; type: \"set_thinking_level\"; level: ThinkingLevel; persistDefault?: boolean }\n\t| { id?: string; type: \"cycle_thinking_level\" }\n\n\t// Queue modes\n\t| { id?: string; type: \"set_steering_mode\"; mode: \"all\" | \"one-at-a-time\" }\n\t| { id?: string; type: \"set_follow_up_mode\"; mode: \"all\" | \"one-at-a-time\" }\n\n\t// Compaction\n\t| { id?: string; type: \"compact\"; customInstructions?: string }\n\t| { id?: string; type: \"set_auto_compaction\"; enabled: boolean }\n\n\t// Retry\n\t| { id?: string; type: \"set_auto_retry\"; enabled: boolean }\n\t| { id?: string; type: \"abort_retry\" }\n\n\t// Bash\n\t| { id?: string; type: \"bash\"; command: string; excludeFromContext?: boolean }\n\t| { id?: string; type: \"abort_bash\" }\n\n\t// Session\n\t| { id?: string; type: \"get_session_stats\" }\n\t| { id?: string; type: \"list_sessions\" }\n\t| { id?: string; type: \"export_html\"; outputPath?: string }\n\t| { id?: string; type: \"switch_session\"; sessionPath: string }\n\t| { id?: string; type: \"switch_session_by_id\"; sessionId: string }\n\t| { id?: string; type: \"fork\"; entryId: string }\n\t| { id?: string; type: \"clone\" }\n\t| { id?: string; type: \"get_fork_messages\" }\n\t| { id?: string; type: \"get_last_assistant_text\" }\n\t| { id?: string; type: \"set_session_name\"; name: string }\n\n\t// Messages\n\t| { id?: string; type: \"get_messages\" }\n\n\t// Commands (available for invocation via prompt)\n\t| { id?: string; type: \"get_commands\" };\n\n// ============================================================================\n// RPC Native UI Actions\n// ============================================================================\n\nexport type UiActionSource = \"builtin\" | \"extension\" | \"prompt\" | \"skill\" | \"package\";\nexport type UiActionCategory =\n\t| \"review\"\n\t| \"session\"\n\t| \"model\"\n\t| \"context\"\n\t| \"extension\"\n\t| \"prompt\"\n\t| \"skill\"\n\t| \"advanced\";\nexport type UiActionPresentationKind = \"card\" | \"button\" | \"toggle\" | \"picker\" | \"palette\" | \"detail\" | \"hidden\";\nexport type UiActionArgumentType = \"string\" | \"boolean\" | \"enum\" | \"integer\";\nexport type UiActionStateType = \"boolean\" | \"string\" | \"enum\" | \"integer\";\nexport type UiActionStreamingBehavior = \"disabled\" | \"immediate\" | \"queueSteer\" | \"queueFollowUp\";\nexport type UiActionScalar = string | number | boolean | null;\nexport type UiActionListScope = \"primary\" | \"palette\" | \"all\";\nexport type UiActionInvocationQueueBehavior = \"steer\" | \"followUp\";\nexport type UiActionInvocationStatus = \"accepted\" | \"completed\" | \"queued\" | \"handled\" | \"cancelled\";\nexport type UiActionCapabilityFeature =\n\t| \"ui_actions.v1\"\n\t| \"ui_action_invocation.v1\"\n\t| \"ui_action_completions.v1\"\n\t| (string & {});\nexport type RpcClientCapabilityFeature = \"host_action_requests.v1\" | (string & {});\n\nexport interface UiActionOptionDescriptor {\n\tvalue: string;\n\tlabel?: string;\n\tdescription?: string;\n}\n\nexport interface UiActionPresentationHint {\n\tkind: UiActionPresentationKind | (string & {});\n\tgroup?: string;\n\tpriority?: number;\n\ticon?: string;\n}\n\nexport interface UiActionArgumentDescriptor {\n\tname: string;\n\tlabel?: string;\n\tdescription?: string;\n\ttype: UiActionArgumentType | (string & {});\n\trequired?: boolean;\n\tmultiline?: boolean;\n\tplaceholder?: string;\n\thint?: string;\n\tdefaultValue?: UiActionScalar;\n\toptions?: UiActionOptionDescriptor[];\n\tcompletion?: \"commandArguments\" | (string & {});\n}\n\nexport interface UiActionStateDescriptor {\n\ttype: UiActionStateType | (string & {});\n\tvalue: UiActionScalar;\n\tlabel?: string;\n\toptions?: UiActionOptionDescriptor[];\n}\n\nexport interface UiActionSlashAlias {\n\tname: string;\n\texample?: string;\n}\n\nexport interface UiActionDescriptor {\n\tschemaVersion: 1;\n\tid: string;\n\tlabel: string;\n\tdescription?: string;\n\tsource: UiActionSource | (string & {});\n\tsourceScope?: \"user\" | \"project\" | \"temporary\";\n\tsourceOrigin?: \"package\" | \"top-level\";\n\tsourceLabel?: string;\n\tcategory: UiActionCategory | (string & {});\n\tpresentation?: UiActionPresentationHint;\n\targs?: UiActionArgumentDescriptor[];\n\tstate?: UiActionStateDescriptor;\n\tenabled: boolean;\n\tdisabledReason?: string | null;\n\tdestructive?: boolean;\n\trequiresConfirmation?: boolean;\n\tstreamingBehavior?: UiActionStreamingBehavior | UiActionStreamingBehavior[];\n\tremoteSafe: boolean;\n\tslash?: UiActionSlashAlias;\n}\n\nexport interface UiActionCapabilities {\n\tprotocolVersion: 1;\n\tfeatures: UiActionCapabilityFeature[];\n\tmaxActions: number;\n\tmaxDescriptorBytes: number;\n}\n\nexport interface UiActionListResponse {\n\tactions: UiActionDescriptor[];\n}\n\nexport interface UiActionCompletionListResponse {\n\tcompletions: UiActionOptionDescriptor[];\n}\n\nexport interface UiActionInvocationResponse {\n\taction: string;\n\tstatus: UiActionInvocationStatus;\n\tqueuedAs?: UiActionInvocationQueueBehavior;\n\tstate?: UiActionStateDescriptor;\n\tstateChanged?: boolean;\n\tactionsChanged?: boolean;\n\tmessage?: string;\n}\n\n// ============================================================================\n// RPC Workflow Events\n// ============================================================================\n\nexport type RpcWorkflowKind = \"review\" | (string & {});\nexport type RpcWorkflowStatus = \"running\" | \"finalizing\" | \"completed\" | \"cancelled\" | \"failed\" | (string & {});\n\nexport interface RpcWorkflowEvent {\n\ttype: \"workflow_start\" | \"workflow_update\" | \"workflow_end\";\n\tworkflowId: string;\n\tkind: RpcWorkflowKind;\n\taction?: string;\n\ttitle?: string;\n\tmessage?: string;\n\tstatus?: RpcWorkflowStatus;\n}\n\nexport type RpcWorkflowToolEvent =\n\t| {\n\t\t\ttype: \"tool_execution_start\";\n\t\t\tworkflowId: string;\n\t\t\tworkflowKind: RpcWorkflowKind;\n\t\t\tworkflowAction: string;\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\targs?: Record<string, unknown>;\n\t }\n\t| {\n\t\t\ttype: \"tool_execution_end\";\n\t\t\tworkflowId: string;\n\t\t\tworkflowKind: RpcWorkflowKind;\n\t\t\tworkflowAction: string;\n\t\t\ttoolCallId: string;\n\t\t\ttoolName: string;\n\t\t\tisError: boolean;\n\t };\n\n// ============================================================================\n// RPC Host Actions\n// ============================================================================\n\nexport type RpcHostActionRequest = { type: \"host_action_request\" } & HostActionRequest;\nexport type RpcHostActionUpdate = { type: \"host_action_update\" } & HostActionUpdate;\nexport type RpcHostActionResponse = {\n\ttype: \"host_action_response\";\n\tid: string;\n\tdecision: Exclude<HostActionDecisionKind, \"unavailable\">;\n\tmessage?: string;\n};\n\nexport interface RpcPendingHostActionsResponse {\n\tactions: RpcHostActionRequest[];\n}\n\n// ============================================================================\n// RPC Subagents\n// ============================================================================\n\nexport interface RpcSubagentSourceInfo {\n\tsource: SourceInfo[\"source\"];\n\tscope: SourceInfo[\"scope\"];\n\torigin: SourceInfo[\"origin\"];\n}\n\nexport interface RpcSubagentDefinition {\n\tname: string;\n\tdescription: string;\n\tsource: RpcSubagentDefinitionSource;\n\tsourceInfo: RpcSubagentSourceInfo;\n\ttools?: string[];\n\texcludedTools?: string[];\n\tallowedSubagents?: string[];\n\tmaxSubagentDepth?: number;\n\tmaxChildAgents?: number;\n\tmodel?: string;\n\tthinking?: string;\n}\n\nexport interface RpcListSubagentsResponse {\n\tsubagents: RpcSubagentDefinition[];\n}\n\nexport interface RpcSubagentStartResponse {\n\tsubagentId: string;\n\tsessionId: string;\n}\n\n// ============================================================================\n// RPC Push Notifications\n// ============================================================================\n\nexport type RpcPushProvider = \"fcm\";\nexport type RpcPushPlatform = \"ios\";\nexport type RpcPushTokenEnvironment = \"development\" | \"production\";\n\nexport interface RpcLiveActivityRegistration {\n\tactivityId: string;\n\tpushToken: string;\n\ttokenHash?: string;\n\ttokenEnvironment?: RpcPushTokenEnvironment;\n}\n\nexport interface RpcRegisterPushTargetArgs {\n\tprovider: RpcPushProvider;\n\tplatform: RpcPushPlatform;\n\tpushTargetId: string;\n\tpushTargetAuthToken: string;\n\trelayUrl?: string;\n\ttokenHash?: string;\n\tliveActivity?: RpcLiveActivityRegistration;\n\tenabled: boolean;\n}\n\nexport interface RpcRegisterPushTargetResponse {\n\tstatus: \"registered\";\n\tpushTargetId: string;\n}\n\nexport interface RpcRegisterLiveActivityResponse {\n\tstatus: \"registered\";\n\tactivityId: string;\n}\n\nexport interface RpcUnregisterLiveActivityResponse {\n\tstatus: \"unregistered\";\n\tactivityId: string;\n}\n\n// ============================================================================\n// RPC Slash Command (for get_commands response)\n// ============================================================================\n\n/** A command available for invocation via prompt */\nexport interface RpcMcpCapabilitiesResponse extends McpRpcCapabilities {}\n\nexport interface RpcMcpServersResponse {\n\tservers: McpServerSummary[];\n}\n\nexport interface RpcMcpServerResponse {\n\tserver: McpServerSummary;\n\tpersisted?: { path: string; scope: string };\n}\n\nexport interface RpcMcpToolsResponse {\n\tserver: string;\n\ttools: McpToolSummary[];\n\tmetadataHash?: string;\n\tstale: boolean;\n}\n\nexport interface RpcMcpToolResponse {\n\ttool: McpToolSummary;\n}\n\nexport interface RpcMcpResourcesResponse {\n\tserver: string;\n\tresources: McpResourceSummary[];\n\tnextCursor?: string;\n}\n\nexport interface RpcMcpResourceContentResponse {\n\tresult: unknown;\n}\n\nexport interface RpcMcpPromptsResponse {\n\tserver: string;\n\tprompts: McpPromptSummary[];\n\tnextCursor?: string;\n}\n\nexport interface RpcMcpPromptContentResponse {\n\tresult: unknown;\n}\n\nexport interface RpcMcpRecentCallsResponse {\n\tcalls: McpRecentCallSummary[];\n}\n\nexport type RpcMcpAuthResponse =\n\t| McpOAuthBrowserStartResult\n\t| McpOAuthBrowserCompleteResult\n\t| McpOAuthDeviceStartResult\n\t| McpOAuthDevicePollResult\n\t| {\n\t\t\taction: \"auth\";\n\t\t\tserver: string;\n\t\t\tstatus: \"cancelled\" | \"logged_out\";\n\t\t\tmessage?: string;\n\t\t\tserverSummary?: McpServerSummary;\n\t };\n\nexport interface RpcSlashCommand {\n\t/** Command name (without leading slash) */\n\tname: string;\n\t/** Human-readable description */\n\tdescription?: string;\n\t/** What kind of command this is */\n\tsource: \"extension\" | \"prompt\" | \"skill\";\n\t/** Source metadata for the owning resource */\n\tsourceInfo: SourceInfo;\n}\n\n// ============================================================================\n// RPC State\n// ============================================================================\n\nexport interface RpcSessionListItem {\n\tsessionId: string;\n\tsessionName?: string;\n\tcreatedAt: string;\n\tmodifiedAt: string;\n\tmessageCount: number;\n\tfirstMessage: string;\n\tcurrent: boolean;\n\t/** \"subagent\" when this session was created for a delegated subagent run. */\n\torigin?: \"subagent\";\n}\n\nexport interface RpcActiveToolExecution {\n\ttoolCallId: string;\n\ttoolName: string;\n\tstatus: \"started\";\n\targs?: Record<string, unknown>;\n\t/** Projected details from the newest tool_execution_update, so clients that\n\t * attach mid-turn can restore live tool state (currently `subagent` only). */\n\tdetails?: Record<string, unknown>;\n}\n\nexport interface RpcActiveCompaction {\n\treason: \"manual\" | \"threshold\" | \"overflow\";\n\t/** Unix epoch milliseconds when the active compaction started. */\n\tstartedAt: number;\n}\n\nexport interface RpcSessionState {\n\tmodel?: RpcModel;\n\tthinkingLevel: ThinkingLevel;\n\tavailableThinkingLevels: ThinkingLevel[];\n\t/** Whether a provider run or session-level continuation is active. */\n\tisStreaming: boolean;\n\t/** Whether any prompt work, including asynchronous preflight, is active. */\n\tisBusy?: boolean;\n\tisCompacting: boolean;\n\tsteeringMode: \"all\" | \"one-at-a-time\";\n\tfollowUpMode: \"all\" | \"one-at-a-time\";\n\tsessionFile?: string;\n\tsessionId: string;\n\tsessionName?: string;\n\tautoCompactionEnabled: boolean;\n\tmessageCount: number;\n\tpendingMessageCount: number;\n\tactiveTools?: RpcActiveToolExecution[];\n\tactiveCompaction?: RpcActiveCompaction;\n}\n\nexport type RpcTranscriptToolStatus = \"started\" | \"completed\" | \"failed\";\n\nexport interface RpcTranscriptBaseItem {\n\tid: string;\n\trole: \"user\" | \"assistant\" | \"tool\" | \"summary\";\n\ttimestamp: string;\n}\n\nexport interface RpcTranscriptTextItem extends RpcTranscriptBaseItem {\n\trole: \"user\" | \"assistant\";\n\ttext: string;\n\t/** Number of inline image blocks on the persisted user message. Transcript\n\t * projections are text-only; clients recover the blocks per entry via\n\t * `get_message_images`. */\n\timageCount?: number;\n}\n\nexport interface RpcTranscriptToolItem extends RpcTranscriptBaseItem {\n\trole: \"tool\";\n\ttoolName: string;\n\tstatus: RpcTranscriptToolStatus;\n\tpath?: string;\n\tsummary: string;\n\t/** Number of inline image blocks on the persisted tool result (for example\n\t * a `read` of an image file). Transcript projections are text-only;\n\t * clients recover the blocks per entry via `get_message_images`. */\n\timageCount?: number;\n\targs?: Record<string, unknown>;\n\tdetails?: Record<string, unknown>;\n\tdiffPreview?: string;\n\tpatchPreview?: string;\n}\n\nexport interface RpcTranscriptSummaryItem extends RpcTranscriptBaseItem {\n\trole: \"summary\";\n\ttitle: \"Conversation compacted\";\n\ttext: string;\n}\n\nexport type RpcTranscriptItem = RpcTranscriptTextItem | RpcTranscriptToolItem | RpcTranscriptSummaryItem;\n\nexport interface RpcTranscriptResponse {\n\tsessionId: string;\n\titems: RpcTranscriptItem[];\n\thasMore: boolean;\n\tnextBeforeEntryId: string | null;\n}\n\n/** One recovered image block. Shaped as an ImageContent record (plus its\n * position on the message) so remote outbound sanitizers pass the base64\n * payload through untouched. */\nexport type RpcMessageImage = ImageContent & { index: number };\n\nexport interface RpcMessageImagesResponse {\n\tsessionId: string;\n\tentryId: string;\n\t/** Total image blocks on the entry, including any not in this page. */\n\ttotalImages: number;\n\timages: RpcMessageImage[];\n\t/** Cursor for the next page, or null when all images have been returned. */\n\tnextImageIndex: number | null;\n}\n\n/**\n * Host keep-awake (prevent sleep) state as reported to phones. Deliberately\n * omits the host-local mechanism (caffeinate etc.); `reason` is generic wording\n * present only when degraded.\n */\nexport interface RpcKeepAwakeStatus {\n\tenabled: boolean;\n\tstate: \"disabled\" | \"active\" | \"degraded\";\n\treason?: string;\n}\n\n/**\n * Host web-search key state as reported to phones. Deliberately omits the key\n * itself; only whether one is stored.\n */\nexport interface RpcWebSearchStatus {\n\tconfigured: boolean;\n}\n\n// ============================================================================\n// RPC Responses\n// ============================================================================\n\n// Success responses with data\nexport type RpcResponse =\n\t// Prompting (async - events follow)\n\t| { id?: string; type: \"response\"; command: \"prompt\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"steer\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"follow_up\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"abort\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"new_session\"; success: true; data: { cancelled: boolean } }\n\n\t// Client capabilities and host-initiated actions\n\t| { id?: string; type: \"response\"; command: \"set_client_capabilities\"; success: true }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_pending_host_actions\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcPendingHostActionsResponse;\n\t }\n\n\t// Native UI actions\n\t| { id?: string; type: \"response\"; command: \"get_ui_capabilities\"; success: true; data: UiActionCapabilities }\n\t| { id?: string; type: \"response\"; command: \"get_ui_actions\"; success: true; data: UiActionListResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_ui_action_completions\";\n\t\t\tsuccess: true;\n\t\t\tdata: UiActionCompletionListResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"invoke_ui_action\";\n\t\t\tsuccess: true;\n\t\t\tdata: UiActionInvocationResponse;\n\t }\n\n\t// Push notifications\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"register_push_target\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcRegisterPushTargetResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"register_live_activity\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcRegisterLiveActivityResponse;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"unregister_live_activity\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcUnregisterLiveActivityResponse;\n\t }\n\n\t// Remote host management\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"unregister_workspace\";\n\t\t\tsuccess: true;\n\t\t\tdata: {\n\t\t\t\tremovedWorkspace: string;\n\t\t\t\tworkspaceNames: string[];\n\t\t\t\tworkspaces: Array<{ name: string; status: string }>;\n\t\t\t};\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_keep_awake\";\n\t\t\tsuccess: true;\n\t\t\tdata: { keepAwake: RpcKeepAwakeStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_keep_awake\";\n\t\t\tsuccess: true;\n\t\t\tdata: { keepAwake: RpcKeepAwakeStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_web_search_key\";\n\t\t\tsuccess: true;\n\t\t\tdata: { webSearch: RpcWebSearchStatus };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_web_search_status\";\n\t\t\tsuccess: true;\n\t\t\tdata: { webSearch: RpcWebSearchStatus };\n\t }\n\n\t// Device diagnostics\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"upload_device_logs\";\n\t\t\tsuccess: true;\n\t\t\tdata: { path: string; byteCount: number };\n\t }\n\n\t// MCP management\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_mcp_capabilities\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpCapabilitiesResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_servers\"; success: true; data: RpcMcpServersResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"connect_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"disconnect_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"refresh_mcp_server\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"start_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"complete_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"poll_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"cancel_mcp_server_auth\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"logout_mcp_server\"; success: true; data: RpcMcpAuthResponse }\n\t| { id?: string; type: \"response\"; command: \"set_mcp_server_enabled\"; success: true; data: RpcMcpServerResponse }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_tools\"; success: true; data: RpcMcpToolsResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_tool\"; success: true; data: RpcMcpToolResponse }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_resources\"; success: true; data: RpcMcpResourcesResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"read_mcp_resource\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpResourceContentResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"list_mcp_prompts\"; success: true; data: RpcMcpPromptsResponse }\n\t| { id?: string; type: \"response\"; command: \"get_mcp_prompt\"; success: true; data: RpcMcpPromptContentResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"list_mcp_recent_calls\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMcpRecentCallsResponse;\n\t }\n\n\t// State\n\t| { id?: string; type: \"response\"; command: \"get_state\"; success: true; data: RpcSessionState }\n\t| { id?: string; type: \"response\"; command: \"get_transcript\"; success: true; data: RpcTranscriptResponse }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_message_images\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcMessageImagesResponse;\n\t }\n\n\t// Subagents (local RPC only)\n\t| { id?: string; type: \"response\"; command: \"list_subagents\"; success: true; data: RpcListSubagentsResponse }\n\t| { id?: string; type: \"response\"; command: \"subagent_start\"; success: true; data: RpcSubagentStartResponse }\n\t| { id?: string; type: \"response\"; command: \"subagent_abort\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"subagent_get_state\"; success: true; data: RpcSessionState }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"subagent_get_transcript\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcTranscriptResponse;\n\t }\n\t| { id?: string; type: \"response\"; command: \"subagent_dispose\"; success: true }\n\n\t// Model\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_model\";\n\t\t\tsuccess: true;\n\t\t\tdata: RpcCatalogModel;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"cycle_model\";\n\t\t\tsuccess: true;\n\t\t\tdata: { model: RpcModel; thinkingLevel: ThinkingLevel; isScoped: boolean } | null;\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_available_models\";\n\t\t\tsuccess: true;\n\t\t\tdata: { models: RpcCatalogModel[] };\n\t }\n\n\t// Thinking\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"set_thinking_level\";\n\t\t\tsuccess: true;\n\t\t\tdata: { level: ThinkingLevel };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"cycle_thinking_level\";\n\t\t\tsuccess: true;\n\t\t\tdata: { level: ThinkingLevel } | null;\n\t }\n\n\t// Queue modes\n\t| { id?: string; type: \"response\"; command: \"set_steering_mode\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"set_follow_up_mode\"; success: true }\n\n\t// Compaction\n\t| { id?: string; type: \"response\"; command: \"compact\"; success: true; data: CompactionResult }\n\t| { id?: string; type: \"response\"; command: \"set_auto_compaction\"; success: true }\n\n\t// Retry\n\t| { id?: string; type: \"response\"; command: \"set_auto_retry\"; success: true }\n\t| { id?: string; type: \"response\"; command: \"abort_retry\"; success: true }\n\n\t// Bash\n\t| { id?: string; type: \"response\"; command: \"bash\"; success: true; data: BashResult }\n\t| { id?: string; type: \"response\"; command: \"abort_bash\"; success: true }\n\n\t// Session\n\t| { id?: string; type: \"response\"; command: \"get_session_stats\"; success: true; data: SessionStats }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"list_sessions\";\n\t\t\tsuccess: true;\n\t\t\tdata: { sessions: RpcSessionListItem[] };\n\t }\n\t| { id?: string; type: \"response\"; command: \"export_html\"; success: true; data: { path: string } }\n\t| { id?: string; type: \"response\"; command: \"switch_session\"; success: true; data: { cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"switch_session_by_id\"; success: true; data: { cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"fork\"; success: true; data: { text: string; cancelled: boolean } }\n\t| { id?: string; type: \"response\"; command: \"clone\"; success: true; data: { cancelled: boolean } }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_fork_messages\";\n\t\t\tsuccess: true;\n\t\t\tdata: { messages: Array<{ entryId: string; text: string }> };\n\t }\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_last_assistant_text\";\n\t\t\tsuccess: true;\n\t\t\tdata: { text: string | null };\n\t }\n\t| { id?: string; type: \"response\"; command: \"set_session_name\"; success: true }\n\n\t// Messages\n\t| { id?: string; type: \"response\"; command: \"get_messages\"; success: true; data: { messages: AgentMessage[] } }\n\n\t// Commands\n\t| {\n\t\t\tid?: string;\n\t\t\ttype: \"response\";\n\t\t\tcommand: \"get_commands\";\n\t\t\tsuccess: true;\n\t\t\tdata: { commands: RpcSlashCommand[] };\n\t }\n\n\t// Error response (any command can fail)\n\t| { id?: string; type: \"response\"; command: string; success: false; error: string };\n\n// ============================================================================\n// Extension UI Events\n// ============================================================================\n\n/** Emitted when an extension needs user input */\nexport type RpcExtensionUIRequest =\n\t| { type: \"extension_ui_request\"; id: string; method: \"select\"; title: string; options: string[]; timeout?: number }\n\t| { type: \"extension_ui_request\"; id: string; method: \"confirm\"; title: string; message: string; timeout?: number }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"input\";\n\t\t\ttitle: string;\n\t\t\tplaceholder?: string;\n\t\t\ttimeout?: number;\n\t }\n\t| { type: \"extension_ui_request\"; id: string; method: \"editor\"; title: string; prefill?: string }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"notify\";\n\t\t\tmessage: string;\n\t\t\tnotifyType?: \"info\" | \"warning\" | \"error\";\n\t }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"setStatus\";\n\t\t\tstatusKey: string;\n\t\t\tstatusText: string | undefined;\n\t }\n\t| {\n\t\t\ttype: \"extension_ui_request\";\n\t\t\tid: string;\n\t\t\tmethod: \"setWidget\";\n\t\t\twidgetKey: string;\n\t\t\twidgetLines: string[] | undefined;\n\t\t\twidgetPlacement?: \"aboveEditor\" | \"belowEditor\";\n\t }\n\t| { type: \"extension_ui_request\"; id: string; method: \"setTitle\"; title: string }\n\t| { type: \"extension_ui_request\"; id: string; method: \"set_editor_text\"; text: string };\n\n// ============================================================================\n// Extension UI Commands\n// ============================================================================\n\n/** Response to an extension UI request */\nexport type RpcExtensionUIResponse =\n\t| { type: \"extension_ui_response\"; id: string; value: string }\n\t| { type: \"extension_ui_response\"; id: string; confirmed: boolean }\n\t| { type: \"extension_ui_response\"; id: string; cancelled: true };\n\n// ============================================================================\n// Helper type for extracting command types\n// ============================================================================\n\nexport type RpcCommandType = RpcCommand[\"type\"];\n"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import type { UiActionArgumentDescriptor, UiActionScalar } from "./types.ts";
|
|
2
|
+
export declare function validateUiActionArgs(args: unknown, descriptors?: ReadonlyArray<UiActionArgumentDescriptor>): Record<string, UiActionScalar>;
|
|
3
|
+
//# sourceMappingURL=ui-action-args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-action-args.d.ts","sourceRoot":"","sources":["../../../src/core/rpc/ui-action-args.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE7E,wBAAgB,oBAAoB,CACnC,IAAI,EAAE,OAAO,EACb,WAAW,GAAE,aAAa,CAAC,0BAA0B,CAAM,GACzD,MAAM,CAAC,MAAM,EAAE,cAAc,CAAC,CAoBhC","sourcesContent":["import type { UiActionArgumentDescriptor, UiActionScalar } from \"./types.ts\";\n\nexport function validateUiActionArgs(\n\targs: unknown,\n\tdescriptors: ReadonlyArray<UiActionArgumentDescriptor> = [],\n): Record<string, UiActionScalar> {\n\tconst record = getArgsRecord(args);\n\tconst descriptorByName = new Map(descriptors.map((descriptor) => [descriptor.name, descriptor]));\n\tconst unknownKeys = Object.keys(record).filter((key) => !descriptorByName.has(key));\n\tif (unknownKeys.length > 0) {\n\t\tthrow new Error(`Unsupported UI action argument: ${unknownKeys[0]}`);\n\t}\n\n\tconst normalized: Record<string, UiActionScalar> = {};\n\tfor (const descriptor of descriptors) {\n\t\tconst value = record[descriptor.name];\n\t\tif (value === undefined || value === null) {\n\t\t\tif (descriptor.required === true) {\n\t\t\t\tthrow new Error(`Missing required UI action argument: ${descriptor.name}`);\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tnormalized[descriptor.name] = validateUiActionArgValue(descriptor, value);\n\t}\n\treturn normalized;\n}\n\nfunction getArgsRecord(args: unknown): Record<string, unknown> {\n\tif (args === undefined) {\n\t\treturn {};\n\t}\n\tif (typeof args !== \"object\" || args === null || Array.isArray(args)) {\n\t\tthrow new Error(\"UI action args must be an object\");\n\t}\n\treturn args as Record<string, unknown>;\n}\n\nfunction validateUiActionArgValue(descriptor: UiActionArgumentDescriptor, value: unknown): UiActionScalar {\n\tswitch (descriptor.type) {\n\t\tcase \"string\":\n\t\t\tif (typeof value !== \"string\") {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a string`);\n\t\t\t}\n\t\t\treturn value;\n\t\tcase \"boolean\":\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a boolean`);\n\t\t\t}\n\t\t\treturn value;\n\t\tcase \"enum\":\n\t\t\treturn validateEnumArgValue(descriptor, value);\n\t\tcase \"integer\":\n\t\t\tif (typeof value !== \"number\" || !Number.isInteger(value)) {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be an integer`);\n\t\t\t}\n\t\t\treturn value;\n\t\tdefault:\n\t\t\tthrow new Error(`Unsupported UI action argument type for \"${descriptor.name}\": ${descriptor.type}`);\n\t}\n}\n\nfunction validateEnumArgValue(descriptor: UiActionArgumentDescriptor, value: unknown): UiActionScalar {\n\tif (typeof value !== \"string\") {\n\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a string`);\n\t}\n\tconst allowedValues = (descriptor.options ?? []).map((option) => option.value);\n\tif (allowedValues.length === 0) {\n\t\tthrow new Error(`UI action enum argument \"${descriptor.name}\" has no options`);\n\t}\n\tif (!allowedValues.includes(value)) {\n\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be one of: ${allowedValues.join(\", \")}`);\n\t}\n\treturn value;\n}\n"]}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
export function validateUiActionArgs(args, descriptors = []) {
|
|
2
|
+
const record = getArgsRecord(args);
|
|
3
|
+
const descriptorByName = new Map(descriptors.map((descriptor) => [descriptor.name, descriptor]));
|
|
4
|
+
const unknownKeys = Object.keys(record).filter((key) => !descriptorByName.has(key));
|
|
5
|
+
if (unknownKeys.length > 0) {
|
|
6
|
+
throw new Error(`Unsupported UI action argument: ${unknownKeys[0]}`);
|
|
7
|
+
}
|
|
8
|
+
const normalized = {};
|
|
9
|
+
for (const descriptor of descriptors) {
|
|
10
|
+
const value = record[descriptor.name];
|
|
11
|
+
if (value === undefined || value === null) {
|
|
12
|
+
if (descriptor.required === true) {
|
|
13
|
+
throw new Error(`Missing required UI action argument: ${descriptor.name}`);
|
|
14
|
+
}
|
|
15
|
+
continue;
|
|
16
|
+
}
|
|
17
|
+
normalized[descriptor.name] = validateUiActionArgValue(descriptor, value);
|
|
18
|
+
}
|
|
19
|
+
return normalized;
|
|
20
|
+
}
|
|
21
|
+
function getArgsRecord(args) {
|
|
22
|
+
if (args === undefined) {
|
|
23
|
+
return {};
|
|
24
|
+
}
|
|
25
|
+
if (typeof args !== "object" || args === null || Array.isArray(args)) {
|
|
26
|
+
throw new Error("UI action args must be an object");
|
|
27
|
+
}
|
|
28
|
+
return args;
|
|
29
|
+
}
|
|
30
|
+
function validateUiActionArgValue(descriptor, value) {
|
|
31
|
+
switch (descriptor.type) {
|
|
32
|
+
case "string":
|
|
33
|
+
if (typeof value !== "string") {
|
|
34
|
+
throw new Error(`UI action argument "${descriptor.name}" must be a string`);
|
|
35
|
+
}
|
|
36
|
+
return value;
|
|
37
|
+
case "boolean":
|
|
38
|
+
if (typeof value !== "boolean") {
|
|
39
|
+
throw new Error(`UI action argument "${descriptor.name}" must be a boolean`);
|
|
40
|
+
}
|
|
41
|
+
return value;
|
|
42
|
+
case "enum":
|
|
43
|
+
return validateEnumArgValue(descriptor, value);
|
|
44
|
+
case "integer":
|
|
45
|
+
if (typeof value !== "number" || !Number.isInteger(value)) {
|
|
46
|
+
throw new Error(`UI action argument "${descriptor.name}" must be an integer`);
|
|
47
|
+
}
|
|
48
|
+
return value;
|
|
49
|
+
default:
|
|
50
|
+
throw new Error(`Unsupported UI action argument type for "${descriptor.name}": ${descriptor.type}`);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function validateEnumArgValue(descriptor, value) {
|
|
54
|
+
if (typeof value !== "string") {
|
|
55
|
+
throw new Error(`UI action argument "${descriptor.name}" must be a string`);
|
|
56
|
+
}
|
|
57
|
+
const allowedValues = (descriptor.options ?? []).map((option) => option.value);
|
|
58
|
+
if (allowedValues.length === 0) {
|
|
59
|
+
throw new Error(`UI action enum argument "${descriptor.name}" has no options`);
|
|
60
|
+
}
|
|
61
|
+
if (!allowedValues.includes(value)) {
|
|
62
|
+
throw new Error(`UI action argument "${descriptor.name}" must be one of: ${allowedValues.join(", ")}`);
|
|
63
|
+
}
|
|
64
|
+
return value;
|
|
65
|
+
}
|
|
66
|
+
//# sourceMappingURL=ui-action-args.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-action-args.js","sourceRoot":"","sources":["../../../src/core/rpc/ui-action-args.ts"],"names":[],"mappings":"A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AAuB,UAAU,CAAC,IAAI,oBAAoB,CAAC,CAAC;IAC7E,CAAC;IACD,MAAM,aAAa,GAAG,CAAC,UAAU,CAAC,OAAO,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAC/E,IAAI,aAAa,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CAAC,4BAA4B,UAAU,CAAC,IAAI,kBAAkB,CAAC,CAAC;IAChF,CAAC;IACD,IAAI,CAAC,aAAa,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;QACpC,MAAM,IAAI,KAAK,CAAC,uBAAuB,UAAU,CAAC,IAAI,qBAAqB,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACxG,CAAC;IACD,OAAO,KAAK,CAAC;AAAA,CACb","sourcesContent":["import type { UiActionArgumentDescriptor, UiActionScalar } from \"./types.ts\";\n\nexport function validateUiActionArgs(\n\targs: unknown,\n\tdescriptors: ReadonlyArray<UiActionArgumentDescriptor> = [],\n): Record<string, UiActionScalar> {\n\tconst record = getArgsRecord(args);\n\tconst descriptorByName = new Map(descriptors.map((descriptor) => [descriptor.name, descriptor]));\n\tconst unknownKeys = Object.keys(record).filter((key) => !descriptorByName.has(key));\n\tif (unknownKeys.length > 0) {\n\t\tthrow new Error(`Unsupported UI action argument: ${unknownKeys[0]}`);\n\t}\n\n\tconst normalized: Record<string, UiActionScalar> = {};\n\tfor (const descriptor of descriptors) {\n\t\tconst value = record[descriptor.name];\n\t\tif (value === undefined || value === null) {\n\t\t\tif (descriptor.required === true) {\n\t\t\t\tthrow new Error(`Missing required UI action argument: ${descriptor.name}`);\n\t\t\t}\n\t\t\tcontinue;\n\t\t}\n\t\tnormalized[descriptor.name] = validateUiActionArgValue(descriptor, value);\n\t}\n\treturn normalized;\n}\n\nfunction getArgsRecord(args: unknown): Record<string, unknown> {\n\tif (args === undefined) {\n\t\treturn {};\n\t}\n\tif (typeof args !== \"object\" || args === null || Array.isArray(args)) {\n\t\tthrow new Error(\"UI action args must be an object\");\n\t}\n\treturn args as Record<string, unknown>;\n}\n\nfunction validateUiActionArgValue(descriptor: UiActionArgumentDescriptor, value: unknown): UiActionScalar {\n\tswitch (descriptor.type) {\n\t\tcase \"string\":\n\t\t\tif (typeof value !== \"string\") {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a string`);\n\t\t\t}\n\t\t\treturn value;\n\t\tcase \"boolean\":\n\t\t\tif (typeof value !== \"boolean\") {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a boolean`);\n\t\t\t}\n\t\t\treturn value;\n\t\tcase \"enum\":\n\t\t\treturn validateEnumArgValue(descriptor, value);\n\t\tcase \"integer\":\n\t\t\tif (typeof value !== \"number\" || !Number.isInteger(value)) {\n\t\t\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be an integer`);\n\t\t\t}\n\t\t\treturn value;\n\t\tdefault:\n\t\t\tthrow new Error(`Unsupported UI action argument type for \"${descriptor.name}\": ${descriptor.type}`);\n\t}\n}\n\nfunction validateEnumArgValue(descriptor: UiActionArgumentDescriptor, value: unknown): UiActionScalar {\n\tif (typeof value !== \"string\") {\n\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be a string`);\n\t}\n\tconst allowedValues = (descriptor.options ?? []).map((option) => option.value);\n\tif (allowedValues.length === 0) {\n\t\tthrow new Error(`UI action enum argument \"${descriptor.name}\" has no options`);\n\t}\n\tif (!allowedValues.includes(value)) {\n\t\tthrow new Error(`UI action argument \"${descriptor.name}\" must be one of: ${allowedValues.join(\", \")}`);\n\t}\n\treturn value;\n}\n"]}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import type { ThinkingLevel } from "@hansjm10/volt-agent-core";
|
|
2
|
+
import type { Api, Model } from "@hansjm10/volt-ai";
|
|
3
|
+
import type { ResolvedCommand } from "../extensions/types.ts";
|
|
4
|
+
import type { PromptTemplate } from "../prompt-templates.ts";
|
|
5
|
+
import type { ResourceLoader } from "../resource-loader.ts";
|
|
6
|
+
import type { UiActionDescriptor, UiActionInvocationQueueBehavior, UiActionInvocationResponse, UiActionListScope, UiActionOptionDescriptor } from "./types.ts";
|
|
7
|
+
export interface UiActionDiscoverySession {
|
|
8
|
+
extensionRunner: {
|
|
9
|
+
getRegisteredCommands(): ResolvedCommand[];
|
|
10
|
+
};
|
|
11
|
+
isBusy?: boolean;
|
|
12
|
+
isCompacting?: boolean;
|
|
13
|
+
isStreaming?: boolean;
|
|
14
|
+
model?: Model<Api>;
|
|
15
|
+
thinkingLevel?: ThinkingLevel;
|
|
16
|
+
fastModeRestoreThinkingLevel?: ThinkingLevel;
|
|
17
|
+
promptTemplates: ReadonlyArray<PromptTemplate>;
|
|
18
|
+
resourceLoader: Pick<ResourceLoader, "getSkills">;
|
|
19
|
+
}
|
|
20
|
+
export interface UiActionInvocationPlan {
|
|
21
|
+
promptText: string;
|
|
22
|
+
promptStreamingBehavior?: UiActionInvocationQueueBehavior;
|
|
23
|
+
response: UiActionInvocationResponse;
|
|
24
|
+
}
|
|
25
|
+
export interface UiActionDescriptorOptions {
|
|
26
|
+
remoteSafeOnly?: boolean;
|
|
27
|
+
}
|
|
28
|
+
export declare function getUiActionDescriptors(session: UiActionDiscoverySession, scope?: UiActionListScope, options?: UiActionDescriptorOptions): UiActionDescriptor[];
|
|
29
|
+
export declare function createUiActionInvocationPlan(session: UiActionDiscoverySession & {
|
|
30
|
+
isStreaming: boolean;
|
|
31
|
+
}, options: {
|
|
32
|
+
action: string;
|
|
33
|
+
args?: unknown;
|
|
34
|
+
requireRemoteSafe?: boolean;
|
|
35
|
+
streamingBehavior?: unknown;
|
|
36
|
+
}): UiActionInvocationPlan;
|
|
37
|
+
export declare function getUiActionCompletions(session: UiActionDiscoverySession, options: {
|
|
38
|
+
action: string;
|
|
39
|
+
argument: string;
|
|
40
|
+
prefix?: unknown;
|
|
41
|
+
requireRemoteSafe?: boolean;
|
|
42
|
+
}): Promise<UiActionOptionDescriptor[]>;
|
|
43
|
+
//# sourceMappingURL=ui-actions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ui-actions.d.ts","sourceRoot":"","sources":["../../../src/core/rpc/ui-actions.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC/D,OAAO,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAG5D,OAAO,KAAK,EAEX,kBAAkB,EAClB,+BAA+B,EAC/B,0BAA0B,EAC1B,iBAAiB,EACjB,wBAAwB,EAExB,MAAM,YAAY,CAAC;AAUpB,MAAM,WAAW,wBAAwB;IACxC,eAAe,EAAE;QAChB,qBAAqB,IAAI,eAAe,EAAE,CAAC;KAC3C,CAAC;IACF,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,KAAK,CAAC,EAAE,KAAK,CAAC,GAAG,CAAC,CAAC;IACnB,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,4BAA4B,CAAC,EAAE,aAAa,CAAC;IAC7C,eAAe,EAAE,aAAa,CAAC,cAAc,CAAC,CAAC;IAC/C,cAAc,EAAE,IAAI,CAAC,cAAc,EAAE,WAAW,CAAC,CAAC;CAClD;AAED,MAAM,WAAW,sBAAsB;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,uBAAuB,CAAC,EAAE,+BAA+B,CAAC;IAC1D,QAAQ,EAAE,0BAA0B,CAAC;CACrC;AAED,MAAM,WAAW,yBAAyB;IACzC,cAAc,CAAC,EAAE,OAAO,CAAC;CACzB;AAgBD,wBAAgB,sBAAsB,CACrC,OAAO,EAAE,wBAAwB,EACjC,KAAK,CAAC,EAAE,iBAAiB,EACzB,OAAO,GAAE,yBAA8B,GACrC,kBAAkB,EAAE,CAqBtB;AAoBD,wBAAgB,4BAA4B,CAC3C,OAAO,EAAE,wBAAwB,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,EAC5D,OAAO,EAAE;IACR,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACC,sBAAsB,CAgDxB;AAED,wBAAsB,sBAAsB,CAC3C,OAAO,EAAE,wBAAwB,EACjC,OAAO,EAAE;IACR,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC5B,GACC,OAAO,CAAC,wBAAwB,EAAE,CAAC,CAoCrC","sourcesContent":["import { randomBytes } from \"node:crypto\";\nimport type { ThinkingLevel } from \"@hansjm10/volt-agent-core\";\nimport type { Api, Model } from \"@hansjm10/volt-ai\";\nimport type { ResolvedCommand } from \"../extensions/types.ts\";\nimport { BUILTIN_HOST_ACTION_REGISTRY } from \"../host-actions.ts\";\nimport type { PromptTemplate } from \"../prompt-templates.ts\";\nimport type { ResourceLoader } from \"../resource-loader.ts\";\nimport type { Skill } from \"../skills.ts\";\nimport type { SourceInfo } from \"../source-info.ts\";\nimport type {\n\tUiActionArgumentDescriptor,\n\tUiActionDescriptor,\n\tUiActionInvocationQueueBehavior,\n\tUiActionInvocationResponse,\n\tUiActionListScope,\n\tUiActionOptionDescriptor,\n\tUiActionStreamingBehavior,\n} from \"./types.ts\";\nimport { validateUiActionArgs } from \"./ui-action-args.ts\";\n\nconst MAX_ACTIONS = 200;\nconst MAX_LABEL_LENGTH = 80;\nconst MAX_DESCRIPTION_LENGTH = 240;\nconst MAX_SOURCE_LABEL_LENGTH = 80;\nconst MAX_HINT_LENGTH = 160;\nconst REDACTED_PATH = \"[redacted path]\";\n\nexport interface UiActionDiscoverySession {\n\textensionRunner: {\n\t\tgetRegisteredCommands(): ResolvedCommand[];\n\t};\n\tisBusy?: boolean;\n\tisCompacting?: boolean;\n\tisStreaming?: boolean;\n\tmodel?: Model<Api>;\n\tthinkingLevel?: ThinkingLevel;\n\tfastModeRestoreThinkingLevel?: ThinkingLevel;\n\tpromptTemplates: ReadonlyArray<PromptTemplate>;\n\tresourceLoader: Pick<ResourceLoader, \"getSkills\">;\n}\n\nexport interface UiActionInvocationPlan {\n\tpromptText: string;\n\tpromptStreamingBehavior?: UiActionInvocationQueueBehavior;\n\tresponse: UiActionInvocationResponse;\n}\n\nexport interface UiActionDescriptorOptions {\n\tremoteSafeOnly?: boolean;\n}\n\ninterface UiActionCatalogState {\n\tfingerprint: string;\n\ttoken: string;\n}\n\ninterface UiActionCatalogEntry {\n\tdescriptor: UiActionDescriptor;\n\tpromptName: string;\n\tsource: \"extension\" | \"prompt\" | \"skill\";\n\tcommand?: ResolvedCommand;\n}\n\nconst catalogStates = new WeakMap<UiActionDiscoverySession, UiActionCatalogState>();\n\nexport function getUiActionDescriptors(\n\tsession: UiActionDiscoverySession,\n\tscope?: UiActionListScope,\n\toptions: UiActionDescriptorOptions = {},\n): UiActionDescriptor[] {\n\tconst builtinDescriptors = BUILTIN_HOST_ACTION_REGISTRY.getDescriptors({\n\t\tsession: {\n\t\t\tisBusy: session.isBusy ?? session.isStreaming ?? false,\n\t\t\tisCompacting: session.isCompacting ?? false,\n\t\t\tisStreaming: session.isStreaming ?? false,\n\t\t\tmodel: session.model,\n\t\t\tthinkingLevel: session.thinkingLevel,\n\t\t\tfastModeRestoreThinkingLevel: session.fastModeRestoreThinkingLevel,\n\t\t},\n\t});\n\tconst normalizedScope = normalizeUiActionListScope(scope);\n\tconst descriptors =\n\t\tnormalizedScope === \"primary\"\n\t\t\t? builtinDescriptors\n\t\t\t: [...builtinDescriptors, ...getUiActionCatalog(session).map((entry) => entry.descriptor)];\n\n\treturn descriptors\n\t\t.filter((descriptor) => matchesUiActionScope(descriptor, normalizedScope))\n\t\t.filter((descriptor) => !options.remoteSafeOnly || descriptor.remoteSafe)\n\t\t.slice(0, MAX_ACTIONS);\n}\n\nfunction normalizeUiActionListScope(scope: UiActionListScope | undefined): UiActionListScope {\n\treturn scope === \"primary\" || scope === \"palette\" || scope === \"all\" ? scope : \"all\";\n}\n\nfunction matchesUiActionScope(descriptor: UiActionDescriptor, scope: UiActionListScope): boolean {\n\tconst kind = descriptor.presentation?.kind;\n\tswitch (scope) {\n\t\tcase \"all\":\n\t\t\treturn true;\n\t\tcase \"primary\":\n\t\t\treturn descriptor.source === \"builtin\" && (kind === \"card\" || kind === \"toggle\");\n\t\tcase \"palette\":\n\t\t\treturn kind === \"palette\";\n\t\tdefault:\n\t\t\treturn true;\n\t}\n}\n\nexport function createUiActionInvocationPlan(\n\tsession: UiActionDiscoverySession & { isStreaming: boolean },\n\toptions: {\n\t\taction: string;\n\t\targs?: unknown;\n\t\trequireRemoteSafe?: boolean;\n\t\tstreamingBehavior?: unknown;\n\t},\n): UiActionInvocationPlan {\n\tif (typeof options.action !== \"string\" || options.action.length === 0) {\n\t\tthrow new Error(\"UI action id must be a non-empty string\");\n\t}\n\n\tconst entry = getUiActionCatalog(session).find((candidate) => candidate.descriptor.id === options.action);\n\tif (!entry) {\n\t\tthrow new Error(`UI action not available: ${options.action}`);\n\t}\n\tif (options.requireRemoteSafe && !entry.descriptor.remoteSafe) {\n\t\tthrow new Error(`UI action not available over remote host: ${options.action}`);\n\t}\n\tif (!entry.descriptor.enabled) {\n\t\tthrow new Error(entry.descriptor.disabledReason ?? `UI action is disabled: ${options.action}`);\n\t}\n\n\tconst rawArguments = getRawArguments(options.args, entry.descriptor.args ?? []);\n\tconst promptText = createPromptText(entry.promptName, rawArguments);\n\tif (entry.source === \"extension\") {\n\t\treturn {\n\t\t\tpromptText,\n\t\t\tresponse: {\n\t\t\t\taction: entry.descriptor.id,\n\t\t\t\tstatus: \"handled\",\n\t\t\t},\n\t\t};\n\t}\n\n\tif (!session.isStreaming) {\n\t\treturn {\n\t\t\tpromptText,\n\t\t\tresponse: {\n\t\t\t\taction: entry.descriptor.id,\n\t\t\t\tstatus: \"accepted\",\n\t\t\t},\n\t\t};\n\t}\n\n\tconst streamingBehavior = getQueueBehavior(options.streamingBehavior, entry.descriptor.streamingBehavior);\n\treturn {\n\t\tpromptText,\n\t\tpromptStreamingBehavior: streamingBehavior,\n\t\tresponse: {\n\t\t\taction: entry.descriptor.id,\n\t\t\tstatus: \"queued\",\n\t\t\tqueuedAs: streamingBehavior,\n\t\t},\n\t};\n}\n\nexport async function getUiActionCompletions(\n\tsession: UiActionDiscoverySession,\n\toptions: {\n\t\taction: string;\n\t\targument: string;\n\t\tprefix?: unknown;\n\t\trequireRemoteSafe?: boolean;\n\t},\n): Promise<UiActionOptionDescriptor[]> {\n\tif (typeof options.action !== \"string\" || options.action.length === 0) {\n\t\tthrow new Error(\"UI action id must be a non-empty string\");\n\t}\n\tif (typeof options.argument !== \"string\" || options.argument.length === 0) {\n\t\tthrow new Error(\"UI action argument name must be a non-empty string\");\n\t}\n\tif (options.prefix !== undefined && typeof options.prefix !== \"string\") {\n\t\tthrow new Error(\"UI action completion prefix must be a string\");\n\t}\n\n\tconst entry = getUiActionCatalog(session).find((candidate) => candidate.descriptor.id === options.action);\n\tif (!entry) {\n\t\tthrow new Error(`UI action not available: ${options.action}`);\n\t}\n\tif (options.requireRemoteSafe && !entry.descriptor.remoteSafe) {\n\t\tthrow new Error(`UI action not available over remote host: ${options.action}`);\n\t}\n\n\tconst argument = (entry.descriptor.args ?? []).find((candidate) => candidate.name === options.argument);\n\tif (!argument) {\n\t\tthrow new Error(`UI action argument not available: ${options.argument}`);\n\t}\n\tif (argument.completion !== \"commandArguments\" || !entry.command?.getArgumentCompletions) {\n\t\treturn [];\n\t}\n\n\tconst completions = await entry.command.getArgumentCompletions(options.prefix ?? \"\");\n\treturn (completions ?? [])\n\t\t.map((completion) => ({\n\t\t\tvalue: boundedDisplayString(completion.value, MAX_LABEL_LENGTH) ?? \"\",\n\t\t\tlabel: boundedDisplayString(completion.label, MAX_LABEL_LENGTH),\n\t\t\tdescription: boundedDisplayString(completion.description, MAX_DESCRIPTION_LENGTH),\n\t\t}))\n\t\t.filter((completion) => completion.value.length > 0)\n\t\t.slice(0, 50);\n}\n\nfunction getUiActionCatalog(session: UiActionDiscoverySession): UiActionCatalogEntry[] {\n\tconst token = getCatalogToken(session);\n\tconst extensionActions = session.extensionRunner\n\t\t.getRegisteredCommands()\n\t\t.map((command, index) => createExtensionCommandAction(command, index, token));\n\tconst promptActions = session.promptTemplates.map((template, index) =>\n\t\tcreatePromptTemplateAction(template, index, token),\n\t);\n\tconst skillActions = session.resourceLoader\n\t\t.getSkills()\n\t\t.skills.map((skill, index) => createSkillAction(skill, index, token));\n\n\treturn [...extensionActions, ...promptActions, ...skillActions].slice(0, MAX_ACTIONS);\n}\n\nfunction createExtensionCommandAction(command: ResolvedCommand, index: number, token: string): UiActionCatalogEntry {\n\tconst label = boundedDisplayString(command.invocationName, MAX_LABEL_LENGTH) ?? \"Extension command\";\n\treturn {\n\t\tpromptName: command.invocationName,\n\t\tsource: \"extension\",\n\t\tcommand,\n\t\tdescriptor: {\n\t\t\tschemaVersion: 1,\n\t\t\tid: `extension.command.${opaqueId(\"ec\", token, index)}`,\n\t\t\tlabel,\n\t\t\tdescription: boundedDisplayString(command.description, MAX_DESCRIPTION_LENGTH),\n\t\t\tsource: \"extension\",\n\t\t\t...safeSourceFields(command.sourceInfo),\n\t\t\tcategory: \"extension\",\n\t\t\tpresentation: { kind: \"palette\", group: \"Extensions\" },\n\t\t\targs: [rawArgumentsDescriptor(command.getArgumentCompletions ? \"commandArguments\" : undefined)],\n\t\t\tenabled: true,\n\t\t\tdisabledReason: null,\n\t\t\tdestructive: false,\n\t\t\trequiresConfirmation: false,\n\t\t\tstreamingBehavior: \"immediate\",\n\t\t\tremoteSafe: command.remoteSafe === true,\n\t\t\tslash: {\n\t\t\t\tname: command.invocationName,\n\t\t\t\texample: `/${command.invocationName}`,\n\t\t\t},\n\t\t},\n\t};\n}\n\nfunction createPromptTemplateAction(template: PromptTemplate, index: number, token: string): UiActionCatalogEntry {\n\tconst label = boundedDisplayString(template.name, MAX_LABEL_LENGTH) ?? \"Prompt template\";\n\treturn {\n\t\tpromptName: template.name,\n\t\tsource: \"prompt\",\n\t\tdescriptor: {\n\t\t\tschemaVersion: 1,\n\t\t\tid: `prompt.template.${opaqueId(\"pt\", token, index)}`,\n\t\t\tlabel,\n\t\t\tdescription: boundedDisplayString(template.description, MAX_DESCRIPTION_LENGTH),\n\t\t\tsource: \"prompt\",\n\t\t\t...safeSourceFields(template.sourceInfo),\n\t\t\tcategory: \"prompt\",\n\t\t\tpresentation: { kind: \"palette\", group: \"Prompts\" },\n\t\t\targs: [rawArgumentsDescriptor(undefined, template.argumentHint)],\n\t\t\tenabled: true,\n\t\t\tdisabledReason: null,\n\t\t\tdestructive: false,\n\t\t\trequiresConfirmation: false,\n\t\t\tstreamingBehavior: [\"queueSteer\", \"queueFollowUp\"],\n\t\t\tremoteSafe: true,\n\t\t\tslash: {\n\t\t\t\tname: template.name,\n\t\t\t\texample: `/${template.name}`,\n\t\t\t},\n\t\t},\n\t};\n}\n\nfunction createSkillAction(skill: Skill, index: number, token: string): UiActionCatalogEntry {\n\tconst label = boundedDisplayString(skill.name, MAX_LABEL_LENGTH) ?? \"Skill\";\n\treturn {\n\t\tpromptName: `skill:${skill.name}`,\n\t\tsource: \"skill\",\n\t\tdescriptor: {\n\t\t\tschemaVersion: 1,\n\t\t\tid: `skill.${opaqueId(\"sk\", token, index)}`,\n\t\t\tlabel,\n\t\t\tdescription: boundedDisplayString(skill.description, MAX_DESCRIPTION_LENGTH),\n\t\t\tsource: \"skill\",\n\t\t\t...safeSourceFields(skill.sourceInfo),\n\t\t\tcategory: \"skill\",\n\t\t\tpresentation: { kind: \"palette\", group: \"Skills\" },\n\t\t\targs: [rawArgumentsDescriptor()],\n\t\t\tenabled: true,\n\t\t\tdisabledReason: null,\n\t\t\tdestructive: false,\n\t\t\trequiresConfirmation: false,\n\t\t\tstreamingBehavior: [\"queueSteer\", \"queueFollowUp\"],\n\t\t\tremoteSafe: true,\n\t\t\tslash: {\n\t\t\t\tname: `skill:${skill.name}`,\n\t\t\t\texample: `/skill:${skill.name}`,\n\t\t\t},\n\t\t},\n\t};\n}\n\nfunction getCatalogToken(session: UiActionDiscoverySession): string {\n\tconst fingerprint = getCatalogFingerprint(session);\n\tconst existing = catalogStates.get(session);\n\tif (existing?.fingerprint === fingerprint) {\n\t\treturn existing.token;\n\t}\n\tconst next = {\n\t\tfingerprint,\n\t\ttoken: randomBytes(6).toString(\"hex\"),\n\t};\n\tcatalogStates.set(session, next);\n\treturn next.token;\n}\n\nfunction getCatalogFingerprint(session: UiActionDiscoverySession): string {\n\treturn JSON.stringify({\n\t\tcommands: session.extensionRunner.getRegisteredCommands().map((command) => ({\n\t\t\tdescription: command.description,\n\t\t\tinvocationName: command.invocationName,\n\t\t\tname: command.name,\n\t\t\tremoteSafe: command.remoteSafe === true,\n\t\t\tsourceInfo: sourceFingerprint(command.sourceInfo),\n\t\t})),\n\t\tprompts: session.promptTemplates.map((template) => ({\n\t\t\targumentHint: template.argumentHint,\n\t\t\tcontent: template.content,\n\t\t\tdescription: template.description,\n\t\t\tfilePath: template.filePath,\n\t\t\tname: template.name,\n\t\t\tsourceInfo: sourceFingerprint(template.sourceInfo),\n\t\t})),\n\t\tskills: session.resourceLoader.getSkills().skills.map((skill) => ({\n\t\t\tbaseDir: skill.baseDir,\n\t\t\tdescription: skill.description,\n\t\t\tdisableModelInvocation: skill.disableModelInvocation,\n\t\t\tfilePath: skill.filePath,\n\t\t\tname: skill.name,\n\t\t\tsourceInfo: sourceFingerprint(skill.sourceInfo),\n\t\t})),\n\t});\n}\n\nfunction sourceFingerprint(sourceInfo: SourceInfo): Record<string, string | undefined> {\n\treturn {\n\t\tbaseDir: sourceInfo.baseDir,\n\t\torigin: sourceInfo.origin,\n\t\tpath: sourceInfo.path,\n\t\tscope: sourceInfo.scope,\n\t\tsource: sourceInfo.source,\n\t};\n}\n\nfunction getRawArguments(args: unknown, descriptors: ReadonlyArray<UiActionArgumentDescriptor>): string {\n\tconst record = validateUiActionArgs(args, descriptors);\n\tconst unknownKeys = Object.keys(record).filter((key) => key !== \"arguments\");\n\tif (unknownKeys.length > 0) {\n\t\tthrow new Error(`Unsupported prompt-like UI action argument: ${unknownKeys[0]}`);\n\t}\n\tconst value = record.arguments;\n\tif (value === undefined || value === null) {\n\t\treturn \"\";\n\t}\n\tif (typeof value !== \"string\") {\n\t\tthrow new Error('UI action argument \"arguments\" must be a string');\n\t}\n\treturn value;\n}\n\nfunction createPromptText(promptName: string, rawArguments: string): string {\n\treturn rawArguments.length > 0 ? `/${promptName} ${rawArguments}` : `/${promptName}`;\n}\n\nfunction getQueueBehavior(\n\trequested: unknown,\n\tallowed: UiActionDescriptor[\"streamingBehavior\"],\n): UiActionInvocationQueueBehavior {\n\tif (requested !== \"steer\" && requested !== \"followUp\") {\n\t\tthrow new Error(\"UI action requires streamingBehavior ('steer' or 'followUp') while the agent is streaming\");\n\t}\n\tconst requiredBehavior = requested === \"steer\" ? \"queueSteer\" : \"queueFollowUp\";\n\tif (!streamingBehaviorIncludes(allowed, requiredBehavior)) {\n\t\tthrow new Error(`UI action cannot be queued as ${requested}`);\n\t}\n\treturn requested;\n}\n\nfunction streamingBehaviorIncludes(\n\tallowed: UiActionDescriptor[\"streamingBehavior\"],\n\tbehavior: UiActionStreamingBehavior,\n): boolean {\n\tif (Array.isArray(allowed)) {\n\t\treturn allowed.includes(behavior);\n\t}\n\treturn allowed === behavior;\n}\n\nfunction rawArgumentsDescriptor(\n\tcompletion?: UiActionArgumentDescriptor[\"completion\"],\n\thint?: string,\n): UiActionArgumentDescriptor {\n\tconst boundedHint = boundedDisplayString(hint, MAX_HINT_LENGTH);\n\treturn {\n\t\tname: \"arguments\",\n\t\tlabel: \"Arguments\",\n\t\ttype: \"string\",\n\t\trequired: false,\n\t\t...(boundedHint ? { hint: boundedHint, placeholder: boundedHint } : {}),\n\t\t...(completion ? { completion } : {}),\n\t};\n}\n\nfunction safeSourceFields(\n\tsourceInfo: SourceInfo,\n): Pick<UiActionDescriptor, \"sourceScope\" | \"sourceOrigin\" | \"sourceLabel\"> {\n\treturn {\n\t\tsourceScope: sourceInfo.scope,\n\t\tsourceOrigin: sourceInfo.origin,\n\t\tsourceLabel: boundedDisplayString(getSafeSourceLabel(sourceInfo), MAX_SOURCE_LABEL_LENGTH),\n\t};\n}\n\nfunction getSafeSourceLabel(sourceInfo: SourceInfo): string {\n\tif (sourceInfo.origin === \"package\") {\n\t\treturn \"Package\";\n\t}\n\n\tswitch (sourceInfo.scope) {\n\t\tcase \"project\":\n\t\t\treturn \"Project\";\n\t\tcase \"user\":\n\t\t\treturn \"User\";\n\t\tcase \"temporary\":\n\t\t\treturn \"Temporary\";\n\t}\n}\n\nfunction opaqueId(prefix: string, token: string, index: number): string {\n\treturn `${prefix}_${token}_${(index + 1).toString(36)}`;\n}\n\nfunction boundedDisplayString(value: string | undefined, maxLength: number): string | undefined {\n\tif (value === undefined) {\n\t\treturn undefined;\n\t}\n\tconst normalized = redactPathLikeText(value)\n\t\t.replace(/[\\r\\n\\t]+/g, \" \")\n\t\t.replace(/\\s+/g, \" \")\n\t\t.trim();\n\tif (!normalized) {\n\t\treturn undefined;\n\t}\n\tif (normalized.length <= maxLength) {\n\t\treturn normalized;\n\t}\n\treturn `${normalized.slice(0, Math.max(0, maxLength - 3)).trimEnd()}...`;\n}\n\nfunction redactPathLikeText(value: string): string {\n\treturn value\n\t\t.replace(/(^|[\\s(\"'`<])file:\\/\\/[^\\s\"'`<>]+/g, `$1${REDACTED_PATH}`)\n\t\t.replace(/(^|[\\s(\"'`<])~[^\\s\"'`<>]*\\/[^\\s\"'`<>]+/g, `$1${REDACTED_PATH}`)\n\t\t.replace(/(^|[\\s(\"'`<])[A-Za-z]:[\\\\/][^\\s\"'`<>]+/g, `$1${REDACTED_PATH}`)\n\t\t.replace(/(^|[\\s(\"'`<])\\/(?:[^\\s\"'`<>/]+\\/)+[^\\s\"'`<>]*/g, `$1${REDACTED_PATH}`);\n}\n"]}
|