@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,1136 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Config-driven multi-server LSP manager.
|
|
3
|
+
*
|
|
4
|
+
* Routes files to language servers by extension, lazily spawns one client per
|
|
5
|
+
* (server, project root), and formats post-mutation diagnostics for tool
|
|
6
|
+
* results. Server start failures are reported once and then suppressed.
|
|
7
|
+
*/
|
|
8
|
+
import { spawn } from "node:child_process";
|
|
9
|
+
import { randomUUID } from "node:crypto";
|
|
10
|
+
import { existsSync } from "node:fs";
|
|
11
|
+
import { rename as fsRename, mkdir, readFile, rm, writeFile } from "node:fs/promises";
|
|
12
|
+
import { dirname, extname, isAbsolute, join, relative } from "node:path";
|
|
13
|
+
import { fileURLToPath } from "node:url";
|
|
14
|
+
import { withFileMutationQueue } from "../tools/file-mutation-queue.js";
|
|
15
|
+
import { LspClient } from "./client.js";
|
|
16
|
+
import { SEVERITY_NAMES, } from "./config.js";
|
|
17
|
+
import { LspTracer } from "./trace.js";
|
|
18
|
+
import { applyTextEdits, normalizeWorkspaceEdit, } from "./workspace-edit.js";
|
|
19
|
+
const MAX_START_ATTEMPTS = 3;
|
|
20
|
+
const MAX_REFERENCES = 50;
|
|
21
|
+
const MAX_SYMBOL_LINES = 200;
|
|
22
|
+
const MAX_CROSS_FILE_REPORTS = 5;
|
|
23
|
+
const LSP_INSTALL_REQUEST_TIMEOUT_MS = 10 * 60_000;
|
|
24
|
+
const MAX_INSTALL_OUTPUT_CHARS = 12000;
|
|
25
|
+
function uriToPath(uri) {
|
|
26
|
+
try {
|
|
27
|
+
return fileURLToPath(uri);
|
|
28
|
+
}
|
|
29
|
+
catch {
|
|
30
|
+
return uri;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
function isPathInsideRoot(rootDir, absolutePath) {
|
|
34
|
+
if (!isAbsolute(absolutePath)) {
|
|
35
|
+
return false;
|
|
36
|
+
}
|
|
37
|
+
const rel = relative(rootDir, absolutePath);
|
|
38
|
+
return rel === "" || (rel !== "" && !rel.startsWith("..") && !isAbsolute(rel));
|
|
39
|
+
}
|
|
40
|
+
const SYMBOL_KIND_NAMES = {
|
|
41
|
+
1: "file",
|
|
42
|
+
2: "module",
|
|
43
|
+
3: "namespace",
|
|
44
|
+
4: "package",
|
|
45
|
+
5: "class",
|
|
46
|
+
6: "method",
|
|
47
|
+
7: "property",
|
|
48
|
+
8: "field",
|
|
49
|
+
9: "constructor",
|
|
50
|
+
10: "enum",
|
|
51
|
+
11: "interface",
|
|
52
|
+
12: "function",
|
|
53
|
+
13: "variable",
|
|
54
|
+
14: "constant",
|
|
55
|
+
15: "string",
|
|
56
|
+
16: "number",
|
|
57
|
+
17: "boolean",
|
|
58
|
+
18: "array",
|
|
59
|
+
19: "object",
|
|
60
|
+
20: "key",
|
|
61
|
+
21: "null",
|
|
62
|
+
22: "enum member",
|
|
63
|
+
23: "struct",
|
|
64
|
+
24: "event",
|
|
65
|
+
25: "operator",
|
|
66
|
+
26: "type parameter",
|
|
67
|
+
};
|
|
68
|
+
function positionLeq(a, b) {
|
|
69
|
+
return a.line < b.line || (a.line === b.line && a.character <= b.character);
|
|
70
|
+
}
|
|
71
|
+
function rangesOverlap(a, b) {
|
|
72
|
+
return positionLeq(a.start, b.end) && positionLeq(b.start, a.end);
|
|
73
|
+
}
|
|
74
|
+
function quoteWindowsArg(arg) {
|
|
75
|
+
return /\s/.test(arg) ? `"${arg.replace(/"/g, '\\"')}"` : arg;
|
|
76
|
+
}
|
|
77
|
+
function appendBoundedOutput(current, chunk) {
|
|
78
|
+
const next = current + chunk;
|
|
79
|
+
if (next.length <= MAX_INSTALL_OUTPUT_CHARS) {
|
|
80
|
+
return next;
|
|
81
|
+
}
|
|
82
|
+
return next.slice(next.length - MAX_INSTALL_OUTPUT_CHARS);
|
|
83
|
+
}
|
|
84
|
+
function commandToDisplay(command) {
|
|
85
|
+
return command.map((arg) => (/\s/.test(arg) ? JSON.stringify(arg) : arg)).join(" ");
|
|
86
|
+
}
|
|
87
|
+
export function runDefaultLspInstallCommand(command, options) {
|
|
88
|
+
if (command.length === 0) {
|
|
89
|
+
return Promise.reject(new Error("LSP install command cannot be empty"));
|
|
90
|
+
}
|
|
91
|
+
if (options.signal?.aborted) {
|
|
92
|
+
return Promise.reject(new Error("LSP server install aborted"));
|
|
93
|
+
}
|
|
94
|
+
return new Promise((resolve, reject) => {
|
|
95
|
+
let output = "";
|
|
96
|
+
let settled = false;
|
|
97
|
+
const child = process.platform === "win32"
|
|
98
|
+
? spawn(command.map(quoteWindowsArg).join(" "), {
|
|
99
|
+
cwd: options.cwd,
|
|
100
|
+
shell: true,
|
|
101
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
102
|
+
windowsHide: true,
|
|
103
|
+
})
|
|
104
|
+
: spawn(command[0], command.slice(1), {
|
|
105
|
+
cwd: options.cwd,
|
|
106
|
+
stdio: ["ignore", "pipe", "pipe"],
|
|
107
|
+
});
|
|
108
|
+
const cleanup = () => {
|
|
109
|
+
options.signal?.removeEventListener("abort", onAbort);
|
|
110
|
+
};
|
|
111
|
+
const finish = (result) => {
|
|
112
|
+
if (settled) {
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
settled = true;
|
|
116
|
+
cleanup();
|
|
117
|
+
resolve(result);
|
|
118
|
+
};
|
|
119
|
+
const fail = (error) => {
|
|
120
|
+
if (settled) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
settled = true;
|
|
124
|
+
cleanup();
|
|
125
|
+
reject(error);
|
|
126
|
+
};
|
|
127
|
+
function onAbort() {
|
|
128
|
+
try {
|
|
129
|
+
child.kill();
|
|
130
|
+
}
|
|
131
|
+
catch {
|
|
132
|
+
// Process already exited.
|
|
133
|
+
}
|
|
134
|
+
fail(new Error("LSP server install aborted"));
|
|
135
|
+
}
|
|
136
|
+
child.stdout?.on("data", (chunk) => {
|
|
137
|
+
const text = chunk.toString("utf-8");
|
|
138
|
+
output = appendBoundedOutput(output, text);
|
|
139
|
+
options.onChunk?.(text);
|
|
140
|
+
});
|
|
141
|
+
child.stderr?.on("data", (chunk) => {
|
|
142
|
+
const text = chunk.toString("utf-8");
|
|
143
|
+
output = appendBoundedOutput(output, text);
|
|
144
|
+
options.onChunk?.(text);
|
|
145
|
+
});
|
|
146
|
+
child.once("error", (error) => {
|
|
147
|
+
fail(new Error(`Failed to run LSP install command "${commandToDisplay(command)}": ${error.message}`));
|
|
148
|
+
});
|
|
149
|
+
child.once("close", (code) => {
|
|
150
|
+
finish({ exitCode: code, output });
|
|
151
|
+
});
|
|
152
|
+
options.signal?.addEventListener("abort", onAbort, { once: true });
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
/** Normalize codeAction results: bare Commands and CodeAction literals. */
|
|
156
|
+
function normalizeCodeActions(result) {
|
|
157
|
+
if (!Array.isArray(result)) {
|
|
158
|
+
return [];
|
|
159
|
+
}
|
|
160
|
+
const actions = [];
|
|
161
|
+
for (const item of result) {
|
|
162
|
+
if (!item || typeof item !== "object" || typeof item.title !== "string") {
|
|
163
|
+
continue;
|
|
164
|
+
}
|
|
165
|
+
const entry = item;
|
|
166
|
+
if (typeof entry.command === "string") {
|
|
167
|
+
// Bare Command shape.
|
|
168
|
+
actions.push({ title: entry.title, command: entry, raw: item });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
actions.push({ title: entry.title, kind: entry.kind, edit: entry.edit, command: entry.command, raw: item });
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return actions;
|
|
175
|
+
}
|
|
176
|
+
/** Normalize definition results: Location | Location[] | LocationLink[] | null. */
|
|
177
|
+
function normalizeLocations(result) {
|
|
178
|
+
if (!result) {
|
|
179
|
+
return [];
|
|
180
|
+
}
|
|
181
|
+
const items = Array.isArray(result) ? result : [result];
|
|
182
|
+
const locations = [];
|
|
183
|
+
for (const item of items) {
|
|
184
|
+
const location = item;
|
|
185
|
+
if (typeof location.uri === "string" && location.range) {
|
|
186
|
+
locations.push({ uri: location.uri, range: location.range });
|
|
187
|
+
}
|
|
188
|
+
else if (typeof location.targetUri === "string") {
|
|
189
|
+
const range = location.targetSelectionRange ?? location.targetRange;
|
|
190
|
+
if (range) {
|
|
191
|
+
locations.push({ uri: location.targetUri, range });
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
return locations;
|
|
196
|
+
}
|
|
197
|
+
/** Extract plain text from LSP hover contents (string | MarkedString[] | MarkupContent). */
|
|
198
|
+
function hoverContentsToText(contents) {
|
|
199
|
+
if (typeof contents === "string") {
|
|
200
|
+
return contents;
|
|
201
|
+
}
|
|
202
|
+
if (Array.isArray(contents)) {
|
|
203
|
+
return contents
|
|
204
|
+
.map((entry) => hoverContentsToText(entry))
|
|
205
|
+
.filter((text) => text.length > 0)
|
|
206
|
+
.join("\n\n");
|
|
207
|
+
}
|
|
208
|
+
if (contents && typeof contents === "object" && "value" in contents) {
|
|
209
|
+
const value = contents.value;
|
|
210
|
+
return typeof value === "string" ? value : "";
|
|
211
|
+
}
|
|
212
|
+
return "";
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* Locate a symbol occurrence in document text.
|
|
216
|
+
*
|
|
217
|
+
* Prefers a word-boundary match on the hinted line, then a word-boundary match
|
|
218
|
+
* anywhere in the file, then plain substring matches.
|
|
219
|
+
*/
|
|
220
|
+
function findSymbolPosition(content, symbol, line) {
|
|
221
|
+
const lines = content.split("\n");
|
|
222
|
+
const escaped = symbol.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
223
|
+
const wordPattern = new RegExp(`(?<![\\w$])${escaped}(?![\\w$])`);
|
|
224
|
+
const searchLine = (index) => {
|
|
225
|
+
const text = lines[index];
|
|
226
|
+
if (text === undefined) {
|
|
227
|
+
return undefined;
|
|
228
|
+
}
|
|
229
|
+
const wordMatch = wordPattern.exec(text);
|
|
230
|
+
if (wordMatch) {
|
|
231
|
+
return { line: index, character: wordMatch.index };
|
|
232
|
+
}
|
|
233
|
+
const plainIndex = text.indexOf(symbol);
|
|
234
|
+
return plainIndex === -1 ? undefined : { line: index, character: plainIndex };
|
|
235
|
+
};
|
|
236
|
+
if (line !== undefined && line >= 1 && line <= lines.length) {
|
|
237
|
+
const position = searchLine(line - 1);
|
|
238
|
+
if (position) {
|
|
239
|
+
return position;
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
for (let index = 0; index < lines.length; index++) {
|
|
243
|
+
const text = lines[index];
|
|
244
|
+
const wordMatch = wordPattern.exec(text);
|
|
245
|
+
if (wordMatch) {
|
|
246
|
+
return { line: index, character: wordMatch.index };
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
for (let index = 0; index < lines.length; index++) {
|
|
250
|
+
const plainIndex = lines[index].indexOf(symbol);
|
|
251
|
+
if (plainIndex !== -1) {
|
|
252
|
+
return { line: index, character: plainIndex };
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
return undefined;
|
|
256
|
+
}
|
|
257
|
+
export class LspManager {
|
|
258
|
+
cwd;
|
|
259
|
+
config;
|
|
260
|
+
clients = new Map();
|
|
261
|
+
startFailures = new Map();
|
|
262
|
+
hostInteraction;
|
|
263
|
+
installRunner;
|
|
264
|
+
installPromptsUsed = new Set();
|
|
265
|
+
installAttempts = new Map();
|
|
266
|
+
disposed = false;
|
|
267
|
+
/** Summaries of WorkspaceEdits applied via server-initiated workspace/applyEdit */
|
|
268
|
+
serverApplyEditSummaries = [];
|
|
269
|
+
lastUsedAt = new Map();
|
|
270
|
+
idleTimer;
|
|
271
|
+
tracer;
|
|
272
|
+
constructor(options) {
|
|
273
|
+
this.cwd = options.cwd;
|
|
274
|
+
this.config = options.config;
|
|
275
|
+
this.hostInteraction = options.hostInteraction;
|
|
276
|
+
this.installRunner = options.installRunner ?? runDefaultLspInstallCommand;
|
|
277
|
+
if (this.config.traceFile) {
|
|
278
|
+
this.tracer = new LspTracer(this.config.traceFile);
|
|
279
|
+
}
|
|
280
|
+
if (this.config.idleShutdownMs > 0) {
|
|
281
|
+
const checkIntervalMs = Math.max(250, Math.min(this.config.idleShutdownMs / 2, 60000));
|
|
282
|
+
this.idleTimer = setInterval(() => this.shutdownIdleClients(), checkIntervalMs);
|
|
283
|
+
this.idleTimer.unref();
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
setHostInteraction(hostInteraction) {
|
|
287
|
+
this.hostInteraction = hostInteraction;
|
|
288
|
+
}
|
|
289
|
+
/** Status of all spawned language servers. */
|
|
290
|
+
getStatus() {
|
|
291
|
+
const now = Date.now();
|
|
292
|
+
return [...this.clients.entries()].map(([key, client]) => {
|
|
293
|
+
const [name, root] = key.split("\u0000");
|
|
294
|
+
return {
|
|
295
|
+
name,
|
|
296
|
+
root,
|
|
297
|
+
alive: client.isAlive,
|
|
298
|
+
openDocuments: client.openDocumentCount,
|
|
299
|
+
idleMs: now - (this.lastUsedAt.get(key) ?? now),
|
|
300
|
+
};
|
|
301
|
+
});
|
|
302
|
+
}
|
|
303
|
+
/** Path of the active trace file, if tracing is enabled. */
|
|
304
|
+
getTraceFile() {
|
|
305
|
+
return this.tracer?.filePath;
|
|
306
|
+
}
|
|
307
|
+
/** Enable or disable protocol tracing for current and future servers. */
|
|
308
|
+
async setTraceFile(filePath) {
|
|
309
|
+
const previousTracer = this.tracer;
|
|
310
|
+
this.tracer = filePath ? new LspTracer(filePath) : undefined;
|
|
311
|
+
for (const client of this.clients.values()) {
|
|
312
|
+
client.setTracer(this.tracer);
|
|
313
|
+
}
|
|
314
|
+
await previousTracer?.dispose();
|
|
315
|
+
}
|
|
316
|
+
/** Synchronously stop tracing during non-awaitable process teardown. */
|
|
317
|
+
closeTraceSync() {
|
|
318
|
+
const previousTracer = this.tracer;
|
|
319
|
+
this.tracer = undefined;
|
|
320
|
+
for (const client of this.clients.values()) {
|
|
321
|
+
client.setTracer(undefined);
|
|
322
|
+
}
|
|
323
|
+
previousTracer?.disposeSync();
|
|
324
|
+
}
|
|
325
|
+
/** Dispose all running servers. They respawn lazily on next use. Returns the number stopped. */
|
|
326
|
+
restart() {
|
|
327
|
+
const count = this.clients.size;
|
|
328
|
+
for (const client of this.clients.values()) {
|
|
329
|
+
client.dispose();
|
|
330
|
+
}
|
|
331
|
+
this.clients.clear();
|
|
332
|
+
this.lastUsedAt.clear();
|
|
333
|
+
this.startFailures.clear();
|
|
334
|
+
this.installPromptsUsed.clear();
|
|
335
|
+
this.installAttempts.clear();
|
|
336
|
+
return count;
|
|
337
|
+
}
|
|
338
|
+
shutdownIdleClients() {
|
|
339
|
+
if (this.disposed) {
|
|
340
|
+
return;
|
|
341
|
+
}
|
|
342
|
+
const now = Date.now();
|
|
343
|
+
for (const [key, client] of [...this.clients.entries()]) {
|
|
344
|
+
const lastUsed = this.lastUsedAt.get(key) ?? now;
|
|
345
|
+
if (now - lastUsed >= this.config.idleShutdownMs) {
|
|
346
|
+
client.dispose();
|
|
347
|
+
this.clients.delete(key);
|
|
348
|
+
this.lastUsedAt.delete(key);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* Collect diagnostics for a file that was just written.
|
|
354
|
+
*
|
|
355
|
+
* Also reports other open files that went from clean to failing as a result
|
|
356
|
+
* of this change (best-effort: depends on the server republishing for open
|
|
357
|
+
* documents within the settle window).
|
|
358
|
+
*
|
|
359
|
+
* Returns formatted diagnostics text, or undefined when no matching server
|
|
360
|
+
* is configured, the server is unavailable, or there is nothing to report.
|
|
361
|
+
*/
|
|
362
|
+
async getDiagnostics(absolutePath, content, signal) {
|
|
363
|
+
if (this.disposed) {
|
|
364
|
+
return undefined;
|
|
365
|
+
}
|
|
366
|
+
const server = this.findServer(absolutePath);
|
|
367
|
+
if (!server) {
|
|
368
|
+
return undefined;
|
|
369
|
+
}
|
|
370
|
+
while (!this.disposed) {
|
|
371
|
+
const failure = this.startFailures.get(server.name);
|
|
372
|
+
if (failure && failure.count >= MAX_START_ATTEMPTS) {
|
|
373
|
+
return undefined;
|
|
374
|
+
}
|
|
375
|
+
const client = this.getClient(server, absolutePath);
|
|
376
|
+
const cleanBefore = this.collectCleanOpenDocuments(client, absolutePath);
|
|
377
|
+
let diagnostics;
|
|
378
|
+
try {
|
|
379
|
+
diagnostics = await client.getDiagnostics(absolutePath, content, this.config.settleMs, this.config.firstSettleMs, signal);
|
|
380
|
+
}
|
|
381
|
+
catch (error) {
|
|
382
|
+
const result = await this.handleClientError(server, client, error, signal);
|
|
383
|
+
if (result.retry) {
|
|
384
|
+
continue;
|
|
385
|
+
}
|
|
386
|
+
return result.message;
|
|
387
|
+
}
|
|
388
|
+
if (this.disposed) {
|
|
389
|
+
return undefined;
|
|
390
|
+
}
|
|
391
|
+
this.startFailures.delete(server.name);
|
|
392
|
+
const ownDiagnostics = this.formatDiagnostics(absolutePath, diagnostics);
|
|
393
|
+
const crossFile = this.formatNewlyFailing(client, absolutePath, cleanBefore);
|
|
394
|
+
if (ownDiagnostics && crossFile) {
|
|
395
|
+
return `${ownDiagnostics}\n${crossFile}`;
|
|
396
|
+
}
|
|
397
|
+
return ownDiagnostics ?? crossFile;
|
|
398
|
+
}
|
|
399
|
+
return undefined;
|
|
400
|
+
}
|
|
401
|
+
/** Paths of other open documents that currently have no reportable diagnostics. */
|
|
402
|
+
collectCleanOpenDocuments(client, excludePath) {
|
|
403
|
+
const clean = new Set();
|
|
404
|
+
for (const path of client.getOpenDocumentPaths()) {
|
|
405
|
+
if (path === excludePath) {
|
|
406
|
+
continue;
|
|
407
|
+
}
|
|
408
|
+
const reportable = client
|
|
409
|
+
.getPublishedDiagnostics(path)
|
|
410
|
+
.filter((diagnostic) => (diagnostic.severity ?? 1) <= this.config.maxSeverity);
|
|
411
|
+
if (reportable.length === 0) {
|
|
412
|
+
clean.add(path);
|
|
413
|
+
}
|
|
414
|
+
}
|
|
415
|
+
return clean;
|
|
416
|
+
}
|
|
417
|
+
/** Report open documents that went from clean to failing since the snapshot. */
|
|
418
|
+
formatNewlyFailing(client, excludePath, cleanBefore) {
|
|
419
|
+
const sections = [];
|
|
420
|
+
for (const path of client.getOpenDocumentPaths()) {
|
|
421
|
+
if (path === excludePath || !cleanBefore.has(path)) {
|
|
422
|
+
continue;
|
|
423
|
+
}
|
|
424
|
+
const formatted = this.formatDiagnostics(path, client.getPublishedDiagnostics(path));
|
|
425
|
+
if (formatted) {
|
|
426
|
+
sections.push(formatted);
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
if (sections.length === 0) {
|
|
430
|
+
return undefined;
|
|
431
|
+
}
|
|
432
|
+
const shown = sections.slice(0, MAX_CROSS_FILE_REPORTS);
|
|
433
|
+
if (sections.length > shown.length) {
|
|
434
|
+
shown.push(`... and ${sections.length - shown.length} more file${sections.length - shown.length === 1 ? "" : "s"}`);
|
|
435
|
+
}
|
|
436
|
+
return `Newly failing in other open files:\n${shown.join("\n")}`;
|
|
437
|
+
}
|
|
438
|
+
dispose() {
|
|
439
|
+
this.disposed = true;
|
|
440
|
+
if (this.idleTimer) {
|
|
441
|
+
clearInterval(this.idleTimer);
|
|
442
|
+
this.idleTimer = undefined;
|
|
443
|
+
}
|
|
444
|
+
for (const client of this.clients.values()) {
|
|
445
|
+
client.dispose();
|
|
446
|
+
}
|
|
447
|
+
this.clients.clear();
|
|
448
|
+
this.lastUsedAt.clear();
|
|
449
|
+
this.installAttempts.clear();
|
|
450
|
+
void this.tracer?.dispose();
|
|
451
|
+
this.tracer = undefined;
|
|
452
|
+
}
|
|
453
|
+
// =========================================================================
|
|
454
|
+
// Navigation (LspNavigationProvider)
|
|
455
|
+
// =========================================================================
|
|
456
|
+
async definition(absolutePath, symbol, line, signal) {
|
|
457
|
+
return this.locationQuery("textDocument/definition", "definition", absolutePath, symbol, line, signal);
|
|
458
|
+
}
|
|
459
|
+
async references(absolutePath, symbol, line, signal) {
|
|
460
|
+
return this.locationQuery("textDocument/references", "references", absolutePath, symbol, line, signal);
|
|
461
|
+
}
|
|
462
|
+
async implementations(absolutePath, symbol, line, signal) {
|
|
463
|
+
return this.locationQuery("textDocument/implementation", "implementations", absolutePath, symbol, line, signal);
|
|
464
|
+
}
|
|
465
|
+
async typeDefinition(absolutePath, symbol, line, signal) {
|
|
466
|
+
return this.locationQuery("textDocument/typeDefinition", "type definition", absolutePath, symbol, line, signal);
|
|
467
|
+
}
|
|
468
|
+
async hover(absolutePath, symbol, line, signal) {
|
|
469
|
+
const session = await this.openSession(absolutePath, signal);
|
|
470
|
+
if ("error" in session) {
|
|
471
|
+
return session.error;
|
|
472
|
+
}
|
|
473
|
+
const position = findSymbolPosition(session.content, symbol, line);
|
|
474
|
+
if (!position) {
|
|
475
|
+
return `Symbol "${symbol}" not found in ${this.displayPath(absolutePath)}.`;
|
|
476
|
+
}
|
|
477
|
+
try {
|
|
478
|
+
const result = (await session.client.sendRequest("textDocument/hover", { textDocument: { uri: session.uri }, position }, signal));
|
|
479
|
+
const text = result ? hoverContentsToText(result.contents).trim() : "";
|
|
480
|
+
return text.length > 0 ? text : `No hover information for "${symbol}".`;
|
|
481
|
+
}
|
|
482
|
+
catch (error) {
|
|
483
|
+
return this.describeRequestError(absolutePath, error);
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
async documentSymbols(absolutePath, signal) {
|
|
487
|
+
const session = await this.openSession(absolutePath, signal);
|
|
488
|
+
if ("error" in session) {
|
|
489
|
+
return session.error;
|
|
490
|
+
}
|
|
491
|
+
try {
|
|
492
|
+
const result = (await session.client.sendRequest("textDocument/documentSymbol", { textDocument: { uri: session.uri } }, signal));
|
|
493
|
+
if (!result || result.length === 0) {
|
|
494
|
+
return `No symbols found in ${this.displayPath(absolutePath)}.`;
|
|
495
|
+
}
|
|
496
|
+
const lines = [];
|
|
497
|
+
this.appendSymbolLines(result, 0, lines);
|
|
498
|
+
if (lines.length > MAX_SYMBOL_LINES) {
|
|
499
|
+
const extra = lines.length - MAX_SYMBOL_LINES;
|
|
500
|
+
return [...lines.slice(0, MAX_SYMBOL_LINES), `... and ${extra} more`].join("\n");
|
|
501
|
+
}
|
|
502
|
+
return lines.join("\n");
|
|
503
|
+
}
|
|
504
|
+
catch (error) {
|
|
505
|
+
return this.describeRequestError(absolutePath, error);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
async callHierarchy(absolutePath, symbol, direction, line, signal) {
|
|
509
|
+
const session = await this.openSession(absolutePath, signal);
|
|
510
|
+
if ("error" in session) {
|
|
511
|
+
return session.error;
|
|
512
|
+
}
|
|
513
|
+
const position = findSymbolPosition(session.content, symbol, line);
|
|
514
|
+
if (!position) {
|
|
515
|
+
return `Symbol "${symbol}" not found in ${this.displayPath(absolutePath)}.`;
|
|
516
|
+
}
|
|
517
|
+
try {
|
|
518
|
+
const items = (await session.client.sendRequest("textDocument/prepareCallHierarchy", { textDocument: { uri: session.uri }, position }, signal));
|
|
519
|
+
if (!items || items.length === 0) {
|
|
520
|
+
return `No call hierarchy available for "${symbol}" (it may not be a callable symbol).`;
|
|
521
|
+
}
|
|
522
|
+
const item = items[0];
|
|
523
|
+
const label = direction === "incoming" ? "callers of" : "calls made by";
|
|
524
|
+
const method = direction === "incoming" ? "callHierarchy/incomingCalls" : "callHierarchy/outgoingCalls";
|
|
525
|
+
const calls = (await session.client.sendRequest(method, { item }, signal));
|
|
526
|
+
if (!calls || calls.length === 0) {
|
|
527
|
+
return `No ${label} "${item.name}" found.`;
|
|
528
|
+
}
|
|
529
|
+
const shown = calls.slice(0, MAX_REFERENCES);
|
|
530
|
+
const lines = [`${direction === "incoming" ? "Callers of" : "Calls made by"} "${item.name}":`];
|
|
531
|
+
for (const call of shown) {
|
|
532
|
+
const target = direction === "incoming" ? call.from : call.to;
|
|
533
|
+
if (!target) {
|
|
534
|
+
continue;
|
|
535
|
+
}
|
|
536
|
+
const kind = SYMBOL_KIND_NAMES[target.kind] ?? "symbol";
|
|
537
|
+
const path = this.displayPath(uriToPath(target.uri));
|
|
538
|
+
const targetLine = (target.selectionRange ?? target.range).start.line + 1;
|
|
539
|
+
lines.push(`${target.name} (${kind}) ${path}:${targetLine}`);
|
|
540
|
+
}
|
|
541
|
+
if (calls.length > shown.length) {
|
|
542
|
+
lines.push(`... and ${calls.length - shown.length} more`);
|
|
543
|
+
}
|
|
544
|
+
return lines.join("\n");
|
|
545
|
+
}
|
|
546
|
+
catch (error) {
|
|
547
|
+
return this.describeRequestError(absolutePath, error);
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
async workspaceSymbols(absolutePath, query, signal) {
|
|
551
|
+
const session = await this.openSession(absolutePath, signal);
|
|
552
|
+
if ("error" in session) {
|
|
553
|
+
return session.error;
|
|
554
|
+
}
|
|
555
|
+
try {
|
|
556
|
+
const result = (await session.client.sendRequest("workspace/symbol", { query }, signal));
|
|
557
|
+
if (!result || result.length === 0) {
|
|
558
|
+
return `No workspace symbols matching "${query}".`;
|
|
559
|
+
}
|
|
560
|
+
const shown = result.slice(0, MAX_REFERENCES);
|
|
561
|
+
const lines = shown.map((symbol) => {
|
|
562
|
+
const kind = SYMBOL_KIND_NAMES[symbol.kind] ?? "symbol";
|
|
563
|
+
const container = symbol.containerName ? ` in ${symbol.containerName}` : "";
|
|
564
|
+
let location = "";
|
|
565
|
+
if (symbol.location?.uri) {
|
|
566
|
+
const path = this.displayPath(uriToPath(symbol.location.uri));
|
|
567
|
+
const line = symbol.location.range ? `:${symbol.location.range.start.line + 1}` : "";
|
|
568
|
+
location = ` ${path}${line}`;
|
|
569
|
+
}
|
|
570
|
+
return `${symbol.name} (${kind})${container}${location}`;
|
|
571
|
+
});
|
|
572
|
+
if (result.length > shown.length) {
|
|
573
|
+
lines.push(`... and ${result.length - shown.length} more`);
|
|
574
|
+
}
|
|
575
|
+
return lines.join("\n");
|
|
576
|
+
}
|
|
577
|
+
catch (error) {
|
|
578
|
+
return this.describeRequestError(absolutePath, error);
|
|
579
|
+
}
|
|
580
|
+
}
|
|
581
|
+
async fileDiagnostics(absolutePath, signal) {
|
|
582
|
+
// openSession applies the start-failure breaker and failure accounting,
|
|
583
|
+
// so a broken server is not respawned on every diagnostics request.
|
|
584
|
+
const session = await this.openSession(absolutePath, signal);
|
|
585
|
+
if ("error" in session) {
|
|
586
|
+
return session.error;
|
|
587
|
+
}
|
|
588
|
+
try {
|
|
589
|
+
const diagnostics = await session.client.getDiagnostics(absolutePath, session.content, this.config.settleMs, this.config.firstSettleMs, signal);
|
|
590
|
+
return (this.formatDiagnostics(absolutePath, diagnostics) ?? `No diagnostics in ${this.displayPath(absolutePath)}.`);
|
|
591
|
+
}
|
|
592
|
+
catch (error) {
|
|
593
|
+
return this.describeRequestError(absolutePath, error);
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
async locationQuery(method, label, absolutePath, symbol, line, signal) {
|
|
597
|
+
const session = await this.openSession(absolutePath, signal);
|
|
598
|
+
if ("error" in session) {
|
|
599
|
+
return session.error;
|
|
600
|
+
}
|
|
601
|
+
const position = findSymbolPosition(session.content, symbol, line);
|
|
602
|
+
if (!position) {
|
|
603
|
+
return `Symbol "${symbol}" not found in ${this.displayPath(absolutePath)}.`;
|
|
604
|
+
}
|
|
605
|
+
try {
|
|
606
|
+
const result = await session.client.sendRequest(method, {
|
|
607
|
+
textDocument: { uri: session.uri },
|
|
608
|
+
position,
|
|
609
|
+
...(method === "textDocument/references" ? { context: { includeDeclaration: true } } : {}),
|
|
610
|
+
}, signal);
|
|
611
|
+
const locations = normalizeLocations(result);
|
|
612
|
+
if (locations.length === 0) {
|
|
613
|
+
return `No ${label} found for "${symbol}".`;
|
|
614
|
+
}
|
|
615
|
+
const shown = locations.slice(0, MAX_REFERENCES);
|
|
616
|
+
const lines = await Promise.all(shown.map((location) => this.formatLocation(location)));
|
|
617
|
+
if (locations.length > shown.length) {
|
|
618
|
+
lines.push(`... and ${locations.length - shown.length} more`);
|
|
619
|
+
}
|
|
620
|
+
return lines.join("\n");
|
|
621
|
+
}
|
|
622
|
+
catch (error) {
|
|
623
|
+
return this.describeRequestError(absolutePath, error);
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
/** Route a file to its server, read it from disk, and sync it. Returns an error message on failure. */
|
|
627
|
+
async openSession(absolutePath, signal) {
|
|
628
|
+
const server = this.findServer(absolutePath);
|
|
629
|
+
if (!server) {
|
|
630
|
+
return { error: this.noServerMessage(absolutePath) };
|
|
631
|
+
}
|
|
632
|
+
let content;
|
|
633
|
+
try {
|
|
634
|
+
content = await readFile(absolutePath, "utf-8");
|
|
635
|
+
}
|
|
636
|
+
catch (error) {
|
|
637
|
+
return {
|
|
638
|
+
error: `Could not read ${this.displayPath(absolutePath)}: ${error instanceof Error ? error.message : String(error)}`,
|
|
639
|
+
};
|
|
640
|
+
}
|
|
641
|
+
while (!this.disposed) {
|
|
642
|
+
const failure = this.startFailures.get(server.name);
|
|
643
|
+
if (failure && failure.count >= MAX_START_ATTEMPTS) {
|
|
644
|
+
return { error: `lsp(${server.name}): server unavailable after ${failure.count} failed starts.` };
|
|
645
|
+
}
|
|
646
|
+
const client = this.getClient(server, absolutePath);
|
|
647
|
+
try {
|
|
648
|
+
const uri = await client.openDocument(absolutePath, content);
|
|
649
|
+
await this.refreshStale(client, absolutePath);
|
|
650
|
+
this.startFailures.delete(server.name);
|
|
651
|
+
return { client, uri, content };
|
|
652
|
+
}
|
|
653
|
+
catch (error) {
|
|
654
|
+
const result = await this.handleClientError(server, client, error, signal);
|
|
655
|
+
if (result.retry) {
|
|
656
|
+
continue;
|
|
657
|
+
}
|
|
658
|
+
return {
|
|
659
|
+
error: result.message ?? `lsp(${server.name}): ${error instanceof Error ? error.message : String(error)}`,
|
|
660
|
+
};
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
return { error: `lsp(${server.name}): LSP manager disposed.` };
|
|
664
|
+
}
|
|
665
|
+
async rename(absolutePath, symbol, newName, line, signal) {
|
|
666
|
+
const session = await this.openSession(absolutePath, signal);
|
|
667
|
+
if ("error" in session) {
|
|
668
|
+
return session.error;
|
|
669
|
+
}
|
|
670
|
+
const position = findSymbolPosition(session.content, symbol, line);
|
|
671
|
+
if (!position) {
|
|
672
|
+
return `Symbol "${symbol}" not found in ${this.displayPath(absolutePath)}.`;
|
|
673
|
+
}
|
|
674
|
+
try {
|
|
675
|
+
const result = (await session.client.sendRequest("textDocument/rename", { textDocument: { uri: session.uri }, position, newName }, signal));
|
|
676
|
+
if (!result || normalizeWorkspaceEdit(result).length === 0) {
|
|
677
|
+
return `Rename of "${symbol}" is not available at this position.`;
|
|
678
|
+
}
|
|
679
|
+
const { summary } = await this.applyWorkspaceEdit(session.client, result);
|
|
680
|
+
return `Renamed "${symbol}" to "${newName}":\n${summary}`;
|
|
681
|
+
}
|
|
682
|
+
catch (error) {
|
|
683
|
+
return this.describeRequestError(absolutePath, error);
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
async codeFix(absolutePath, options, signal) {
|
|
687
|
+
const session = await this.openSession(absolutePath, signal);
|
|
688
|
+
if ("error" in session) {
|
|
689
|
+
return session.error;
|
|
690
|
+
}
|
|
691
|
+
const contentLines = session.content.split("\n");
|
|
692
|
+
let range;
|
|
693
|
+
if (options.symbol) {
|
|
694
|
+
const position = findSymbolPosition(session.content, options.symbol, options.line);
|
|
695
|
+
if (!position) {
|
|
696
|
+
return `Symbol "${options.symbol}" not found in ${this.displayPath(absolutePath)}.`;
|
|
697
|
+
}
|
|
698
|
+
range = {
|
|
699
|
+
start: position,
|
|
700
|
+
end: { line: position.line, character: position.character + options.symbol.length },
|
|
701
|
+
};
|
|
702
|
+
}
|
|
703
|
+
else if (options.line !== undefined && options.line >= 1 && options.line <= contentLines.length) {
|
|
704
|
+
const lineIndex = options.line - 1;
|
|
705
|
+
range = {
|
|
706
|
+
start: { line: lineIndex, character: 0 },
|
|
707
|
+
end: { line: lineIndex, character: contentLines[lineIndex].length },
|
|
708
|
+
};
|
|
709
|
+
}
|
|
710
|
+
else {
|
|
711
|
+
range = {
|
|
712
|
+
start: { line: 0, character: 0 },
|
|
713
|
+
end: {
|
|
714
|
+
line: Math.max(0, contentLines.length - 1),
|
|
715
|
+
character: contentLines[contentLines.length - 1]?.length ?? 0,
|
|
716
|
+
},
|
|
717
|
+
};
|
|
718
|
+
}
|
|
719
|
+
// Servers derive quick fixes from the diagnostics passed in the context,
|
|
720
|
+
// so make sure we have them before asking for code actions.
|
|
721
|
+
let published = session.client.getPublishedDiagnostics(absolutePath);
|
|
722
|
+
if (published.length === 0) {
|
|
723
|
+
try {
|
|
724
|
+
published = await session.client.getDiagnostics(absolutePath, session.content, this.config.settleMs, this.config.firstSettleMs, signal);
|
|
725
|
+
}
|
|
726
|
+
catch {
|
|
727
|
+
// Code actions may still be available without diagnostics context.
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
const diagnostics = published.filter((diagnostic) => rangesOverlap(diagnostic.range, range));
|
|
731
|
+
try {
|
|
732
|
+
const result = await session.client.sendRequest("textDocument/codeAction", {
|
|
733
|
+
textDocument: { uri: session.uri },
|
|
734
|
+
range,
|
|
735
|
+
context: { diagnostics, ...(options.kind ? { only: [options.kind] } : {}) },
|
|
736
|
+
}, signal);
|
|
737
|
+
const actions = normalizeCodeActions(result);
|
|
738
|
+
if (actions.length === 0) {
|
|
739
|
+
return "No code actions available at this position.";
|
|
740
|
+
}
|
|
741
|
+
const describe = (action) => `- ${action.title}${action.kind ? ` (${action.kind})` : ""}`;
|
|
742
|
+
let chosen;
|
|
743
|
+
if (options.title) {
|
|
744
|
+
const wanted = options.title.toLowerCase();
|
|
745
|
+
chosen =
|
|
746
|
+
actions.find((action) => action.title.toLowerCase() === wanted) ??
|
|
747
|
+
actions.find((action) => action.title.toLowerCase().includes(wanted));
|
|
748
|
+
if (!chosen) {
|
|
749
|
+
return `No code action matching "${options.title}". Available:\n${actions.map(describe).join("\n")}`;
|
|
750
|
+
}
|
|
751
|
+
}
|
|
752
|
+
else if (actions.length === 1) {
|
|
753
|
+
chosen = actions[0];
|
|
754
|
+
}
|
|
755
|
+
else {
|
|
756
|
+
return `Multiple code actions available; rerun with a title to apply one:\n${actions.map(describe).join("\n")}`;
|
|
757
|
+
}
|
|
758
|
+
return await this.applyCodeAction(session.client, chosen, signal);
|
|
759
|
+
}
|
|
760
|
+
catch (error) {
|
|
761
|
+
return this.describeRequestError(absolutePath, error);
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
async applyCodeAction(client, action, signal) {
|
|
765
|
+
let edit = action.edit;
|
|
766
|
+
if (!edit) {
|
|
767
|
+
// Servers may defer the edit to codeAction/resolve.
|
|
768
|
+
try {
|
|
769
|
+
const resolved = (await client.sendRequest("codeAction/resolve", action.raw, signal));
|
|
770
|
+
edit = resolved?.edit;
|
|
771
|
+
}
|
|
772
|
+
catch {
|
|
773
|
+
// Fall back to the command below.
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
if (edit && normalizeWorkspaceEdit(edit).length > 0) {
|
|
777
|
+
const { summary } = await this.applyWorkspaceEdit(client, edit);
|
|
778
|
+
return `Applied "${action.title}":\n${summary}`;
|
|
779
|
+
}
|
|
780
|
+
if (action.command) {
|
|
781
|
+
// Command-based actions apply their edits via workspace/applyEdit.
|
|
782
|
+
this.serverApplyEditSummaries = [];
|
|
783
|
+
await client.sendRequest("workspace/executeCommand", { command: action.command.command, arguments: action.command.arguments ?? [] }, signal);
|
|
784
|
+
const summaries = this.serverApplyEditSummaries;
|
|
785
|
+
this.serverApplyEditSummaries = [];
|
|
786
|
+
if (summaries.length > 0) {
|
|
787
|
+
return `Applied "${action.title}":\n${summaries.join("\n")}`;
|
|
788
|
+
}
|
|
789
|
+
return `Executed "${action.title}" (no workspace edits reported).`;
|
|
790
|
+
}
|
|
791
|
+
return `Code action "${action.title}" produced no edits.`;
|
|
792
|
+
}
|
|
793
|
+
/**
|
|
794
|
+
* Apply a WorkspaceEdit to disk, re-sync open documents, and notify the
|
|
795
|
+
* server about files it does not have open.
|
|
796
|
+
*/
|
|
797
|
+
async applyWorkspaceEdit(client, edit) {
|
|
798
|
+
const operations = normalizeWorkspaceEdit(edit);
|
|
799
|
+
for (const operation of operations) {
|
|
800
|
+
this.assertWorkspaceEditOperationInRoot(client, operation);
|
|
801
|
+
}
|
|
802
|
+
const lines = [];
|
|
803
|
+
const changedPaths = [];
|
|
804
|
+
for (const operation of operations) {
|
|
805
|
+
if (operation.kind === "edit") {
|
|
806
|
+
const path = uriToPath(operation.uri);
|
|
807
|
+
await withFileMutationQueue(path, async () => {
|
|
808
|
+
const content = await readFile(path, "utf-8").catch(() => "");
|
|
809
|
+
await writeFile(path, applyTextEdits(content, operation.edits), "utf-8");
|
|
810
|
+
});
|
|
811
|
+
changedPaths.push(path);
|
|
812
|
+
lines.push(`${this.displayPath(path)} (${operation.edits.length} edit${operation.edits.length === 1 ? "" : "s"})`);
|
|
813
|
+
}
|
|
814
|
+
else if (operation.kind === "create") {
|
|
815
|
+
const path = uriToPath(operation.uri);
|
|
816
|
+
await mkdir(dirname(path), { recursive: true });
|
|
817
|
+
await writeFile(path, "", { flag: "a" });
|
|
818
|
+
changedPaths.push(path);
|
|
819
|
+
lines.push(`created ${this.displayPath(path)}`);
|
|
820
|
+
}
|
|
821
|
+
else if (operation.kind === "rename") {
|
|
822
|
+
const oldPath = uriToPath(operation.oldUri);
|
|
823
|
+
const newPath = uriToPath(operation.newUri);
|
|
824
|
+
await mkdir(dirname(newPath), { recursive: true });
|
|
825
|
+
await fsRename(oldPath, newPath);
|
|
826
|
+
changedPaths.push(newPath);
|
|
827
|
+
lines.push(`renamed ${this.displayPath(oldPath)} -> ${this.displayPath(newPath)}`);
|
|
828
|
+
}
|
|
829
|
+
else {
|
|
830
|
+
const path = uriToPath(operation.uri);
|
|
831
|
+
await rm(path, { force: true });
|
|
832
|
+
lines.push(`deleted ${this.displayPath(path)}`);
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
const unopenedPaths = [];
|
|
836
|
+
for (const path of changedPaths) {
|
|
837
|
+
if (client.isDocumentOpen(path)) {
|
|
838
|
+
const content = await readFile(path, "utf-8").catch(() => undefined);
|
|
839
|
+
if (content !== undefined) {
|
|
840
|
+
await client.openDocument(path, content);
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
else {
|
|
844
|
+
unopenedPaths.push(path);
|
|
845
|
+
}
|
|
846
|
+
}
|
|
847
|
+
client.notifyFilesChanged(unopenedPaths);
|
|
848
|
+
return { summary: lines.join("\n"), changedPaths };
|
|
849
|
+
}
|
|
850
|
+
assertWorkspaceEditOperationInRoot(client, operation) {
|
|
851
|
+
if (operation.kind === "rename") {
|
|
852
|
+
this.assertWorkspaceEditPathInRoot(client, uriToPath(operation.oldUri));
|
|
853
|
+
this.assertWorkspaceEditPathInRoot(client, uriToPath(operation.newUri));
|
|
854
|
+
return;
|
|
855
|
+
}
|
|
856
|
+
this.assertWorkspaceEditPathInRoot(client, uriToPath(operation.uri));
|
|
857
|
+
}
|
|
858
|
+
assertWorkspaceEditPathInRoot(client, absolutePath) {
|
|
859
|
+
if (!isPathInsideRoot(client.rootDir, absolutePath)) {
|
|
860
|
+
throw new Error(`Refusing to apply LSP workspace edit outside workspace root: ${this.displayPath(absolutePath)}`);
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
/** Re-sync open documents that changed on disk outside edit/write (best-effort). */
|
|
864
|
+
async refreshStale(client, excludePath) {
|
|
865
|
+
try {
|
|
866
|
+
await client.refreshStaleDocuments(excludePath);
|
|
867
|
+
}
|
|
868
|
+
catch {
|
|
869
|
+
// Staleness refresh must never fail the operation that triggered it.
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
appendSymbolLines(symbols, depth, lines) {
|
|
873
|
+
for (const symbol of symbols) {
|
|
874
|
+
const range = symbol.selectionRange ?? symbol.location?.range;
|
|
875
|
+
const line = range ? `:${range.start.line + 1}` : "";
|
|
876
|
+
const kind = SYMBOL_KIND_NAMES[symbol.kind] ?? "symbol";
|
|
877
|
+
lines.push(`${" ".repeat(depth)}${symbol.name} (${kind})${line}`);
|
|
878
|
+
if (symbol.children && symbol.children.length > 0) {
|
|
879
|
+
this.appendSymbolLines(symbol.children, depth + 1, lines);
|
|
880
|
+
}
|
|
881
|
+
}
|
|
882
|
+
}
|
|
883
|
+
async formatLocation(location) {
|
|
884
|
+
const path = uriToPath(location.uri);
|
|
885
|
+
const line = location.range.start.line + 1;
|
|
886
|
+
const column = location.range.start.character + 1;
|
|
887
|
+
let snippet = "";
|
|
888
|
+
try {
|
|
889
|
+
const content = await readFile(path, "utf-8");
|
|
890
|
+
const text = content.split("\n")[location.range.start.line]?.trim();
|
|
891
|
+
if (text) {
|
|
892
|
+
snippet = ` ${text}`;
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
catch {
|
|
896
|
+
// Snippets are best-effort.
|
|
897
|
+
}
|
|
898
|
+
return `${this.displayPath(path)}:${line}:${column}${snippet}`;
|
|
899
|
+
}
|
|
900
|
+
noServerMessage(absolutePath) {
|
|
901
|
+
const ext = extname(absolutePath) || "(no extension)";
|
|
902
|
+
return `No language server configured for ${ext} files. Configure one under lsp.servers in settings.`;
|
|
903
|
+
}
|
|
904
|
+
describeRequestError(absolutePath, error) {
|
|
905
|
+
const server = this.findServer(absolutePath);
|
|
906
|
+
const name = server?.name ?? "unknown";
|
|
907
|
+
return `lsp(${name}): ${error instanceof Error ? error.message : String(error)}`;
|
|
908
|
+
}
|
|
909
|
+
displayPath(absolutePath) {
|
|
910
|
+
const rel = relative(this.cwd, absolutePath);
|
|
911
|
+
return rel && !rel.startsWith("..") && !isAbsolute(rel) ? rel : absolutePath;
|
|
912
|
+
}
|
|
913
|
+
findServer(absolutePath) {
|
|
914
|
+
const ext = extname(absolutePath).toLowerCase();
|
|
915
|
+
if (!ext) {
|
|
916
|
+
return undefined;
|
|
917
|
+
}
|
|
918
|
+
return this.config.servers.find((server) => server.fileExtensions.includes(ext));
|
|
919
|
+
}
|
|
920
|
+
findRoot(absolutePath, rootMarkers) {
|
|
921
|
+
// Markers are priority-ordered: a tsconfig.json anywhere up the tree beats
|
|
922
|
+
// a closer package.json. This keeps monorepo subpackages rooted at the
|
|
923
|
+
// directory that actually carries the language configuration.
|
|
924
|
+
for (const marker of rootMarkers) {
|
|
925
|
+
let dir = dirname(absolutePath);
|
|
926
|
+
while (true) {
|
|
927
|
+
if (existsSync(join(dir, marker))) {
|
|
928
|
+
return dir;
|
|
929
|
+
}
|
|
930
|
+
const parent = dirname(dir);
|
|
931
|
+
if (parent === dir) {
|
|
932
|
+
break;
|
|
933
|
+
}
|
|
934
|
+
dir = parent;
|
|
935
|
+
}
|
|
936
|
+
}
|
|
937
|
+
const rel = relative(this.cwd, absolutePath);
|
|
938
|
+
const isUnderCwd = rel !== "" && !rel.startsWith("..") && !rel.includes(":");
|
|
939
|
+
return isUnderCwd ? this.cwd : dirname(absolutePath);
|
|
940
|
+
}
|
|
941
|
+
getClient(server, absolutePath) {
|
|
942
|
+
const root = this.findRoot(absolutePath, server.rootMarkers);
|
|
943
|
+
const key = `${server.name}\u0000${root}`;
|
|
944
|
+
this.lastUsedAt.set(key, Date.now());
|
|
945
|
+
const existing = this.clients.get(key);
|
|
946
|
+
if (existing?.isAlive) {
|
|
947
|
+
return existing;
|
|
948
|
+
}
|
|
949
|
+
existing?.dispose();
|
|
950
|
+
let clientRef;
|
|
951
|
+
const client = new LspClient({
|
|
952
|
+
serverName: server.name,
|
|
953
|
+
command: server.command,
|
|
954
|
+
rootDir: root,
|
|
955
|
+
initializationOptions: server.initializationOptions,
|
|
956
|
+
settings: server.settings,
|
|
957
|
+
tracer: this.tracer,
|
|
958
|
+
onApplyEdit: async (edit) => {
|
|
959
|
+
const { summary } = await this.applyWorkspaceEdit(clientRef, edit);
|
|
960
|
+
this.serverApplyEditSummaries.push(summary);
|
|
961
|
+
return true;
|
|
962
|
+
},
|
|
963
|
+
});
|
|
964
|
+
clientRef = client;
|
|
965
|
+
this.clients.set(key, client);
|
|
966
|
+
return client;
|
|
967
|
+
}
|
|
968
|
+
async handleClientError(server, client, error, signal) {
|
|
969
|
+
const message = error instanceof Error ? error.message : String(error);
|
|
970
|
+
if (client.isAlive && !client.startFailed) {
|
|
971
|
+
// Request-level failure on a started, healthy server: report it without
|
|
972
|
+
// counting toward the start-failure breaker.
|
|
973
|
+
return { retry: false, message: `lsp(${server.name}): ${message}` };
|
|
974
|
+
}
|
|
975
|
+
this.removeFailedClient(client);
|
|
976
|
+
const existingFailure = this.startFailures.get(server.name);
|
|
977
|
+
if (!this.disposed && !existingFailure?.reported && message.includes("ENOENT")) {
|
|
978
|
+
const installResult = await this.tryInstallMissingServer(server, signal);
|
|
979
|
+
if (installResult.retry) {
|
|
980
|
+
return { retry: true };
|
|
981
|
+
}
|
|
982
|
+
return { retry: false, message: this.recordStartFailure(server, message, installResult.message) };
|
|
983
|
+
}
|
|
984
|
+
return { retry: false, message: this.recordStartFailure(server, message) };
|
|
985
|
+
}
|
|
986
|
+
removeFailedClient(client) {
|
|
987
|
+
// Remove and dispose the failed client (this also kills a process stuck
|
|
988
|
+
// in the handshake) so the next call attempts a genuinely fresh start
|
|
989
|
+
// instead of replaying the memoized failure.
|
|
990
|
+
for (const [key, value] of this.clients) {
|
|
991
|
+
if (value === client) {
|
|
992
|
+
this.clients.delete(key);
|
|
993
|
+
this.lastUsedAt.delete(key);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
client.dispose();
|
|
997
|
+
}
|
|
998
|
+
recordStartFailure(server, message, extraMessage) {
|
|
999
|
+
const failure = this.startFailures.get(server.name) ?? { count: 0, reported: false };
|
|
1000
|
+
failure.count++;
|
|
1001
|
+
this.startFailures.set(server.name, failure);
|
|
1002
|
+
if (this.disposed || failure.reported) {
|
|
1003
|
+
return undefined;
|
|
1004
|
+
}
|
|
1005
|
+
failure.reported = true;
|
|
1006
|
+
const hint = message.includes("ENOENT") ? server.installHint : undefined;
|
|
1007
|
+
const extra = extraMessage ? `. ${extraMessage}` : "";
|
|
1008
|
+
return `lsp(${server.name}): ${message}${hint ? `. ${hint}` : ""}${extra} (further failures for this server will be silent)`;
|
|
1009
|
+
}
|
|
1010
|
+
async tryInstallMissingServer(server, signal) {
|
|
1011
|
+
const recipe = server.installRecipe;
|
|
1012
|
+
const interaction = this.hostInteraction;
|
|
1013
|
+
const existing = this.installAttempts.get(server.name);
|
|
1014
|
+
if (existing) {
|
|
1015
|
+
return existing.catch((error) => this.createInstallAttemptFailure(error));
|
|
1016
|
+
}
|
|
1017
|
+
if (!recipe || !interaction || this.installPromptsUsed.has(server.name)) {
|
|
1018
|
+
return { retry: false };
|
|
1019
|
+
}
|
|
1020
|
+
const attempt = this.runInstallPrompt(server, recipe, interaction, signal).finally(() => {
|
|
1021
|
+
this.installAttempts.delete(server.name);
|
|
1022
|
+
});
|
|
1023
|
+
this.installAttempts.set(server.name, attempt);
|
|
1024
|
+
return attempt.catch((error) => this.createInstallAttemptFailure(error));
|
|
1025
|
+
}
|
|
1026
|
+
createInstallAttemptFailure(error) {
|
|
1027
|
+
return {
|
|
1028
|
+
retry: false,
|
|
1029
|
+
message: `LSP install prompt failed: ${error instanceof Error ? error.message : String(error)}`,
|
|
1030
|
+
};
|
|
1031
|
+
}
|
|
1032
|
+
async runInstallPrompt(server, recipe, interaction, signal) {
|
|
1033
|
+
this.installPromptsUsed.add(server.name);
|
|
1034
|
+
const requestId = `lsp-install-${randomUUID()}`;
|
|
1035
|
+
const decision = await interaction.requestAction({
|
|
1036
|
+
id: requestId,
|
|
1037
|
+
action: "lsp.install_server",
|
|
1038
|
+
title: `Install ${server.name} language server?`,
|
|
1039
|
+
message: `Volt tried to use LSP for ${server.name}, but ${recipe.binary} is not installed. Install it now and retry diagnostics?`,
|
|
1040
|
+
confirmLabel: "Install",
|
|
1041
|
+
cancelLabel: "Skip",
|
|
1042
|
+
commandPreview: recipe.displayCommand,
|
|
1043
|
+
blocking: true,
|
|
1044
|
+
destructive: false,
|
|
1045
|
+
metadata: {
|
|
1046
|
+
server: server.name,
|
|
1047
|
+
binary: recipe.binary,
|
|
1048
|
+
},
|
|
1049
|
+
timeoutMs: LSP_INSTALL_REQUEST_TIMEOUT_MS,
|
|
1050
|
+
}, { signal });
|
|
1051
|
+
if (decision.decision !== "approved") {
|
|
1052
|
+
return { retry: false, message: decision.message };
|
|
1053
|
+
}
|
|
1054
|
+
if (signal?.aborted) {
|
|
1055
|
+
return { retry: false, message: "LSP install cancelled." };
|
|
1056
|
+
}
|
|
1057
|
+
await this.emitHostActionUpdate({
|
|
1058
|
+
id: requestId,
|
|
1059
|
+
action: "lsp.install_server",
|
|
1060
|
+
status: "running",
|
|
1061
|
+
message: `Running ${recipe.displayCommand}`,
|
|
1062
|
+
});
|
|
1063
|
+
let result;
|
|
1064
|
+
try {
|
|
1065
|
+
result = await this.installRunner(recipe.command, { cwd: this.cwd, signal });
|
|
1066
|
+
}
|
|
1067
|
+
catch (error) {
|
|
1068
|
+
const message = `LSP install failed: ${error instanceof Error ? error.message : String(error)}`;
|
|
1069
|
+
await this.emitHostActionUpdate({
|
|
1070
|
+
id: requestId,
|
|
1071
|
+
action: "lsp.install_server",
|
|
1072
|
+
status: signal?.aborted ? "cancelled" : "failed",
|
|
1073
|
+
message,
|
|
1074
|
+
});
|
|
1075
|
+
return { retry: false, message };
|
|
1076
|
+
}
|
|
1077
|
+
if (result.exitCode !== 0) {
|
|
1078
|
+
const message = this.formatInstallFailure(recipe, result);
|
|
1079
|
+
await this.emitHostActionUpdate({
|
|
1080
|
+
id: requestId,
|
|
1081
|
+
action: "lsp.install_server",
|
|
1082
|
+
status: "failed",
|
|
1083
|
+
message,
|
|
1084
|
+
exitCode: result.exitCode,
|
|
1085
|
+
});
|
|
1086
|
+
return { retry: false, message };
|
|
1087
|
+
}
|
|
1088
|
+
this.startFailures.delete(server.name);
|
|
1089
|
+
await this.emitHostActionUpdate({
|
|
1090
|
+
id: requestId,
|
|
1091
|
+
action: "lsp.install_server",
|
|
1092
|
+
status: "completed",
|
|
1093
|
+
message: `${server.name} language server installed. Retrying diagnostics.`,
|
|
1094
|
+
exitCode: result.exitCode,
|
|
1095
|
+
});
|
|
1096
|
+
return { retry: true };
|
|
1097
|
+
}
|
|
1098
|
+
formatInstallFailure(recipe, result) {
|
|
1099
|
+
const output = result.output.trim();
|
|
1100
|
+
const summary = `LSP install command failed (${recipe.displayCommand}) with exit code ${result.exitCode ?? "unknown"}.`;
|
|
1101
|
+
return output ? `${summary} Output:\n${output}` : summary;
|
|
1102
|
+
}
|
|
1103
|
+
async emitHostActionUpdate(update) {
|
|
1104
|
+
try {
|
|
1105
|
+
await this.hostInteraction?.updateAction?.(update);
|
|
1106
|
+
}
|
|
1107
|
+
catch {
|
|
1108
|
+
// Host action updates are advisory; do not fail the underlying LSP operation.
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
formatDiagnostics(absolutePath, diagnostics) {
|
|
1112
|
+
const filtered = diagnostics
|
|
1113
|
+
.filter((diagnostic) => (diagnostic.severity ?? 1) <= this.config.maxSeverity)
|
|
1114
|
+
.sort((a, b) => (a.severity ?? 1) - (b.severity ?? 1) || a.range.start.line - b.range.start.line);
|
|
1115
|
+
if (filtered.length === 0) {
|
|
1116
|
+
return undefined;
|
|
1117
|
+
}
|
|
1118
|
+
const shown = filtered.slice(0, this.config.maxDiagnostics);
|
|
1119
|
+
const displayPath = this.displayPath(absolutePath);
|
|
1120
|
+
const lines = shown.map((diagnostic) => {
|
|
1121
|
+
const severity = SEVERITY_NAMES[diagnostic.severity ?? 1] ?? "error";
|
|
1122
|
+
const line = diagnostic.range.start.line + 1;
|
|
1123
|
+
const column = diagnostic.range.start.character + 1;
|
|
1124
|
+
const code = diagnostic.code !== undefined
|
|
1125
|
+
? ` [${diagnostic.source ? `${diagnostic.source} ` : ""}${diagnostic.code}]`
|
|
1126
|
+
: "";
|
|
1127
|
+
const message = diagnostic.message.replace(/\s+/g, " ").trim();
|
|
1128
|
+
return `${displayPath}(${line},${column}): ${severity}: ${message}${code}`;
|
|
1129
|
+
});
|
|
1130
|
+
if (filtered.length > shown.length) {
|
|
1131
|
+
lines.push(`... and ${filtered.length - shown.length} more`);
|
|
1132
|
+
}
|
|
1133
|
+
return lines.join("\n");
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
//# sourceMappingURL=manager.js.map
|