@hansjm10/volt-coding-agent 0.0.0-bootstrap.0 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BINARY-CAPABILITIES.md +28 -0
- package/CHANGELOG.md +4845 -0
- package/LICENSE +1 -1
- package/README.md +716 -3
- package/THIRD-PARTY-NOTICES.md +55 -0
- package/dist/LICENSES/clipboard-image-MIT.txt +9 -0
- package/dist/LICENSES/highlight.js-10.7.3-BSD-3-Clause.txt +29 -0
- package/dist/LICENSES/highlight.js-11.9.0-BSD-3-Clause.txt +29 -0
- package/dist/LICENSES/marked-18.0.5-LICENSE.txt +44 -0
- package/dist/LICENSES/run-jxa-MIT.txt +9 -0
- package/dist/cli/args.d.ts +60 -0
- package/dist/cli/args.d.ts.map +1 -0
- package/dist/cli/args.js +414 -0
- package/dist/cli/args.js.map +1 -0
- package/dist/cli/config-selector.d.ts +14 -0
- package/dist/cli/config-selector.d.ts.map +1 -0
- package/dist/cli/config-selector.js +31 -0
- package/dist/cli/config-selector.js.map +1 -0
- package/dist/cli/file-processor.d.ts +15 -0
- package/dist/cli/file-processor.d.ts.map +1 -0
- package/dist/cli/file-processor.js +85 -0
- package/dist/cli/file-processor.js.map +1 -0
- package/dist/cli/initial-message.d.ts +18 -0
- package/dist/cli/initial-message.d.ts.map +1 -0
- package/dist/cli/initial-message.js +22 -0
- package/dist/cli/initial-message.js.map +1 -0
- package/dist/cli/list-models.d.ts +9 -0
- package/dist/cli/list-models.d.ts.map +1 -0
- package/dist/cli/list-models.js +98 -0
- package/dist/cli/list-models.js.map +1 -0
- package/dist/cli/project-trust.d.ts +10 -0
- package/dist/cli/project-trust.d.ts.map +1 -0
- package/dist/cli/project-trust.js +48 -0
- package/dist/cli/project-trust.js.map +1 -0
- package/dist/cli/session-picker.d.ts +9 -0
- package/dist/cli/session-picker.d.ts.map +1 -0
- package/dist/cli/session-picker.js +35 -0
- package/dist/cli/session-picker.js.map +1 -0
- package/dist/cli/startup-ui.d.ts +17 -0
- package/dist/cli/startup-ui.d.ts.map +1 -0
- package/dist/cli/startup-ui.js +133 -0
- package/dist/cli/startup-ui.js.map +1 -0
- package/dist/cli.d.ts +3 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +18 -0
- package/dist/cli.js.map +1 -0
- package/dist/config.d.ts +85 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +487 -0
- package/dist/config.js.map +1 -0
- package/dist/core/agent-session-runtime.d.ts +160 -0
- package/dist/core/agent-session-runtime.d.ts.map +1 -0
- package/dist/core/agent-session-runtime.js +397 -0
- package/dist/core/agent-session-runtime.js.map +1 -0
- package/dist/core/agent-session-services.d.ts +98 -0
- package/dist/core/agent-session-services.d.ts.map +1 -0
- package/dist/core/agent-session-services.js +125 -0
- package/dist/core/agent-session-services.js.map +1 -0
- package/dist/core/agent-session.d.ts +739 -0
- package/dist/core/agent-session.d.ts.map +1 -0
- package/dist/core/agent-session.js +3158 -0
- package/dist/core/agent-session.js.map +1 -0
- package/dist/core/auth-guidance.d.ts +5 -0
- package/dist/core/auth-guidance.d.ts.map +1 -0
- package/dist/core/auth-guidance.js +21 -0
- package/dist/core/auth-guidance.js.map +1 -0
- package/dist/core/auth-storage.d.ts +159 -0
- package/dist/core/auth-storage.d.ts.map +1 -0
- package/dist/core/auth-storage.js +509 -0
- package/dist/core/auth-storage.js.map +1 -0
- package/dist/core/bash-executor.d.ts +32 -0
- package/dist/core/bash-executor.d.ts.map +1 -0
- package/dist/core/bash-executor.js +111 -0
- package/dist/core/bash-executor.js.map +1 -0
- package/dist/core/compaction/branch-summarization.d.ts +92 -0
- package/dist/core/compaction/branch-summarization.d.ts.map +1 -0
- package/dist/core/compaction/branch-summarization.js +257 -0
- package/dist/core/compaction/branch-summarization.js.map +1 -0
- package/dist/core/compaction/compaction.d.ts +121 -0
- package/dist/core/compaction/compaction.d.ts.map +1 -0
- package/dist/core/compaction/compaction.js +658 -0
- package/dist/core/compaction/compaction.js.map +1 -0
- package/dist/core/compaction/index.d.ts +7 -0
- package/dist/core/compaction/index.d.ts.map +1 -0
- package/dist/core/compaction/index.js +7 -0
- package/dist/core/compaction/index.js.map +1 -0
- package/dist/core/compaction/utils.d.ts +56 -0
- package/dist/core/compaction/utils.d.ts.map +1 -0
- package/dist/core/compaction/utils.js +271 -0
- package/dist/core/compaction/utils.js.map +1 -0
- package/dist/core/defaults.d.ts +3 -0
- package/dist/core/defaults.d.ts.map +1 -0
- package/dist/core/defaults.js +2 -0
- package/dist/core/defaults.js.map +1 -0
- package/dist/core/diagnostics.d.ts +15 -0
- package/dist/core/diagnostics.d.ts.map +1 -0
- package/dist/core/diagnostics.js +2 -0
- package/dist/core/diagnostics.js.map +1 -0
- package/dist/core/event-bus.d.ts +9 -0
- package/dist/core/event-bus.d.ts.map +1 -0
- package/dist/core/event-bus.js +25 -0
- package/dist/core/event-bus.js.map +1 -0
- package/dist/core/exec.d.ts +29 -0
- package/dist/core/exec.d.ts.map +1 -0
- package/dist/core/exec.js +75 -0
- package/dist/core/exec.js.map +1 -0
- package/dist/core/experimental.d.ts +2 -0
- package/dist/core/experimental.d.ts.map +1 -0
- package/dist/core/experimental.js +4 -0
- package/dist/core/experimental.js.map +1 -0
- package/dist/core/export-html/ansi-to-html.d.ts +22 -0
- package/dist/core/export-html/ansi-to-html.d.ts.map +1 -0
- package/dist/core/export-html/ansi-to-html.js +249 -0
- package/dist/core/export-html/ansi-to-html.js.map +1 -0
- package/dist/core/export-html/index.d.ts +37 -0
- package/dist/core/export-html/index.d.ts.map +1 -0
- package/dist/core/export-html/index.js +234 -0
- package/dist/core/export-html/index.js.map +1 -0
- package/dist/core/export-html/template.css +1066 -0
- package/dist/core/export-html/template.html +55 -0
- package/dist/core/export-html/template.js +1864 -0
- package/dist/core/export-html/tool-renderer.d.ts +34 -0
- package/dist/core/export-html/tool-renderer.d.ts.map +1 -0
- package/dist/core/export-html/tool-renderer.js +108 -0
- package/dist/core/export-html/tool-renderer.js.map +1 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked.min.js +78 -0
- package/dist/core/extensions/index.d.ts +12 -0
- package/dist/core/extensions/index.d.ts.map +1 -0
- package/dist/core/extensions/index.js +9 -0
- package/dist/core/extensions/index.js.map +1 -0
- package/dist/core/extensions/loader.d.ts +25 -0
- package/dist/core/extensions/loader.d.ts.map +1 -0
- package/dist/core/extensions/loader.js +516 -0
- package/dist/core/extensions/loader.js.map +1 -0
- package/dist/core/extensions/runner.d.ts +180 -0
- package/dist/core/extensions/runner.d.ts.map +1 -0
- package/dist/core/extensions/runner.js +938 -0
- package/dist/core/extensions/runner.js.map +1 -0
- package/dist/core/extensions/types.d.ts +1215 -0
- package/dist/core/extensions/types.d.ts.map +1 -0
- package/dist/core/extensions/types.js +48 -0
- package/dist/core/extensions/types.js.map +1 -0
- package/dist/core/extensions/wrapper.d.ts +20 -0
- package/dist/core/extensions/wrapper.d.ts.map +1 -0
- package/dist/core/extensions/wrapper.js +22 -0
- package/dist/core/extensions/wrapper.js.map +1 -0
- package/dist/core/footer-data-provider.d.ts +54 -0
- package/dist/core/footer-data-provider.d.ts.map +1 -0
- package/dist/core/footer-data-provider.js +338 -0
- package/dist/core/footer-data-provider.js.map +1 -0
- package/dist/core/host-actions.d.ts +107 -0
- package/dist/core/host-actions.d.ts.map +1 -0
- package/dist/core/host-actions.js +632 -0
- package/dist/core/host-actions.js.map +1 -0
- package/dist/core/host-interaction.d.ts +35 -0
- package/dist/core/host-interaction.d.ts.map +1 -0
- package/dist/core/host-interaction.js +2 -0
- package/dist/core/host-interaction.js.map +1 -0
- package/dist/core/http-dispatcher.d.ts +22 -0
- package/dist/core/http-dispatcher.d.ts.map +1 -0
- package/dist/core/http-dispatcher.js +64 -0
- package/dist/core/http-dispatcher.js.map +1 -0
- package/dist/core/index.d.ts +18 -0
- package/dist/core/index.d.ts.map +1 -0
- package/dist/core/index.js +17 -0
- package/dist/core/index.js.map +1 -0
- package/dist/core/keybindings.d.ts +373 -0
- package/dist/core/keybindings.d.ts.map +1 -0
- package/dist/core/keybindings.js +303 -0
- package/dist/core/keybindings.js.map +1 -0
- package/dist/core/lsp/client.d.ts +119 -0
- package/dist/core/lsp/client.d.ts.map +1 -0
- package/dist/core/lsp/client.js +711 -0
- package/dist/core/lsp/client.js.map +1 -0
- package/dist/core/lsp/config.d.ts +96 -0
- package/dist/core/lsp/config.d.ts.map +1 -0
- package/dist/core/lsp/config.js +206 -0
- package/dist/core/lsp/config.js.map +1 -0
- package/dist/core/lsp/index.d.ts +6 -0
- package/dist/core/lsp/index.d.ts.map +1 -0
- package/dist/core/lsp/index.js +6 -0
- package/dist/core/lsp/index.js.map +1 -0
- package/dist/core/lsp/manager.d.ts +122 -0
- package/dist/core/lsp/manager.d.ts.map +1 -0
- package/dist/core/lsp/manager.js +1136 -0
- package/dist/core/lsp/manager.js.map +1 -0
- package/dist/core/lsp/trace.d.ts +26 -0
- package/dist/core/lsp/trace.d.ts.map +1 -0
- package/dist/core/lsp/trace.js +98 -0
- package/dist/core/lsp/trace.js.map +1 -0
- package/dist/core/lsp/workspace-edit.d.ts +60 -0
- package/dist/core/lsp/workspace-edit.d.ts.map +1 -0
- package/dist/core/lsp/workspace-edit.js +71 -0
- package/dist/core/lsp/workspace-edit.js.map +1 -0
- package/dist/core/mcp/audit.d.ts +39 -0
- package/dist/core/mcp/audit.d.ts.map +1 -0
- package/dist/core/mcp/audit.js +35 -0
- package/dist/core/mcp/audit.js.map +1 -0
- package/dist/core/mcp/auth.d.ts +7 -0
- package/dist/core/mcp/auth.d.ts.map +1 -0
- package/dist/core/mcp/auth.js +56 -0
- package/dist/core/mcp/auth.js.map +1 -0
- package/dist/core/mcp/client-factory.d.ts +20 -0
- package/dist/core/mcp/client-factory.d.ts.map +1 -0
- package/dist/core/mcp/client-factory.js +200 -0
- package/dist/core/mcp/client-factory.js.map +1 -0
- package/dist/core/mcp/config-loader.d.ts +9 -0
- package/dist/core/mcp/config-loader.d.ts.map +1 -0
- package/dist/core/mcp/config-loader.js +104 -0
- package/dist/core/mcp/config-loader.js.map +1 -0
- package/dist/core/mcp/config-writer.d.ts +21 -0
- package/dist/core/mcp/config-writer.d.ts.map +1 -0
- package/dist/core/mcp/config-writer.js +124 -0
- package/dist/core/mcp/config-writer.js.map +1 -0
- package/dist/core/mcp/config.d.ts +32 -0
- package/dist/core/mcp/config.d.ts.map +1 -0
- package/dist/core/mcp/config.js +385 -0
- package/dist/core/mcp/config.js.map +1 -0
- package/dist/core/mcp/direct-tools.d.ts +11 -0
- package/dist/core/mcp/direct-tools.d.ts.map +1 -0
- package/dist/core/mcp/direct-tools.js +47 -0
- package/dist/core/mcp/direct-tools.js.map +1 -0
- package/dist/core/mcp/gateway-tool.d.ts +29 -0
- package/dist/core/mcp/gateway-tool.d.ts.map +1 -0
- package/dist/core/mcp/gateway-tool.js +108 -0
- package/dist/core/mcp/gateway-tool.js.map +1 -0
- package/dist/core/mcp/index.d.ts +19 -0
- package/dist/core/mcp/index.d.ts.map +1 -0
- package/dist/core/mcp/index.js +18 -0
- package/dist/core/mcp/index.js.map +1 -0
- package/dist/core/mcp/manager.d.ts +117 -0
- package/dist/core/mcp/manager.d.ts.map +1 -0
- package/dist/core/mcp/manager.js +819 -0
- package/dist/core/mcp/manager.js.map +1 -0
- package/dist/core/mcp/metadata-cache.d.ts +27 -0
- package/dist/core/mcp/metadata-cache.d.ts.map +1 -0
- package/dist/core/mcp/metadata-cache.js +152 -0
- package/dist/core/mcp/metadata-cache.js.map +1 -0
- package/dist/core/mcp/oauth-flow.d.ts +94 -0
- package/dist/core/mcp/oauth-flow.d.ts.map +1 -0
- package/dist/core/mcp/oauth-flow.js +473 -0
- package/dist/core/mcp/oauth-flow.js.map +1 -0
- package/dist/core/mcp/oauth-provider.d.ts +39 -0
- package/dist/core/mcp/oauth-provider.d.ts.map +1 -0
- package/dist/core/mcp/oauth-provider.js +149 -0
- package/dist/core/mcp/oauth-provider.js.map +1 -0
- package/dist/core/mcp/oauth-store.d.ts +27 -0
- package/dist/core/mcp/oauth-store.d.ts.map +1 -0
- package/dist/core/mcp/oauth-store.js +111 -0
- package/dist/core/mcp/oauth-store.js.map +1 -0
- package/dist/core/mcp/output-store.d.ts +55 -0
- package/dist/core/mcp/output-store.d.ts.map +1 -0
- package/dist/core/mcp/output-store.js +206 -0
- package/dist/core/mcp/output-store.js.map +1 -0
- package/dist/core/mcp/rpc.d.ts +13 -0
- package/dist/core/mcp/rpc.d.ts.map +1 -0
- package/dist/core/mcp/rpc.js +29 -0
- package/dist/core/mcp/rpc.js.map +1 -0
- package/dist/core/mcp/safety.d.ts +6 -0
- package/dist/core/mcp/safety.d.ts.map +1 -0
- package/dist/core/mcp/safety.js +65 -0
- package/dist/core/mcp/safety.js.map +1 -0
- package/dist/core/mcp/search.d.ts +8 -0
- package/dist/core/mcp/search.d.ts.map +1 -0
- package/dist/core/mcp/search.js +85 -0
- package/dist/core/mcp/search.js.map +1 -0
- package/dist/core/mcp/server-supervisor.d.ts +59 -0
- package/dist/core/mcp/server-supervisor.d.ts.map +1 -0
- package/dist/core/mcp/server-supervisor.js +331 -0
- package/dist/core/mcp/server-supervisor.js.map +1 -0
- package/dist/core/mcp/types.d.ts +321 -0
- package/dist/core/mcp/types.d.ts.map +1 -0
- package/dist/core/mcp/types.js +2 -0
- package/dist/core/mcp/types.js.map +1 -0
- package/dist/core/messages.d.ts +78 -0
- package/dist/core/messages.d.ts.map +1 -0
- package/dist/core/messages.js +138 -0
- package/dist/core/messages.js.map +1 -0
- package/dist/core/model-catalog-watcher.d.ts +36 -0
- package/dist/core/model-catalog-watcher.d.ts.map +1 -0
- package/dist/core/model-catalog-watcher.js +101 -0
- package/dist/core/model-catalog-watcher.js.map +1 -0
- package/dist/core/model-registry.d.ts +160 -0
- package/dist/core/model-registry.d.ts.map +1 -0
- package/dist/core/model-registry.js +754 -0
- package/dist/core/model-registry.js.map +1 -0
- package/dist/core/model-resolver.d.ts +111 -0
- package/dist/core/model-resolver.d.ts.map +1 -0
- package/dist/core/model-resolver.js +534 -0
- package/dist/core/model-resolver.js.map +1 -0
- package/dist/core/output-guard.d.ts +7 -0
- package/dist/core/output-guard.d.ts.map +1 -0
- package/dist/core/output-guard.js +89 -0
- package/dist/core/output-guard.js.map +1 -0
- package/dist/core/package-manager.d.ts +220 -0
- package/dist/core/package-manager.d.ts.map +1 -0
- package/dist/core/package-manager.js +2217 -0
- package/dist/core/package-manager.js.map +1 -0
- package/dist/core/project-trust.d.ts +15 -0
- package/dist/core/project-trust.d.ts.map +1 -0
- package/dist/core/project-trust.js +58 -0
- package/dist/core/project-trust.js.map +1 -0
- package/dist/core/prompt-templates.d.ts +53 -0
- package/dist/core/prompt-templates.d.ts.map +1 -0
- package/dist/core/prompt-templates.js +236 -0
- package/dist/core/prompt-templates.js.map +1 -0
- package/dist/core/provider-attribution.d.ts +4 -0
- package/dist/core/provider-attribution.d.ts.map +1 -0
- package/dist/core/provider-attribution.js +81 -0
- package/dist/core/provider-attribution.js.map +1 -0
- package/dist/core/provider-display-names.d.ts +2 -0
- package/dist/core/provider-display-names.d.ts.map +1 -0
- package/dist/core/provider-display-names.js +36 -0
- package/dist/core/provider-display-names.js.map +1 -0
- package/dist/core/remote/iroh/access-grant.d.ts +40 -0
- package/dist/core/remote/iroh/access-grant.d.ts.map +1 -0
- package/dist/core/remote/iroh/access-grant.js +199 -0
- package/dist/core/remote/iroh/access-grant.js.map +1 -0
- package/dist/core/remote/iroh/active-stream-registry.d.ts +39 -0
- package/dist/core/remote/iroh/active-stream-registry.d.ts.map +1 -0
- package/dist/core/remote/iroh/active-stream-registry.js +109 -0
- package/dist/core/remote/iroh/active-stream-registry.js.map +1 -0
- package/dist/core/remote/iroh/audit.d.ts +67 -0
- package/dist/core/remote/iroh/audit.d.ts.map +1 -0
- package/dist/core/remote/iroh/audit.js +274 -0
- package/dist/core/remote/iroh/audit.js.map +1 -0
- package/dist/core/remote/iroh/authorization.d.ts +46 -0
- package/dist/core/remote/iroh/authorization.d.ts.map +1 -0
- package/dist/core/remote/iroh/authorization.js +327 -0
- package/dist/core/remote/iroh/authorization.js.map +1 -0
- package/dist/core/remote/iroh/control.d.ts +64 -0
- package/dist/core/remote/iroh/control.d.ts.map +1 -0
- package/dist/core/remote/iroh/control.js +326 -0
- package/dist/core/remote/iroh/control.js.map +1 -0
- package/dist/core/remote/iroh/device-log-rpc.d.ts +22 -0
- package/dist/core/remote/iroh/device-log-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/device-log-rpc.js +152 -0
- package/dist/core/remote/iroh/device-log-rpc.js.map +1 -0
- package/dist/core/remote/iroh/engine.d.ts +148 -0
- package/dist/core/remote/iroh/engine.d.ts.map +1 -0
- package/dist/core/remote/iroh/engine.js +499 -0
- package/dist/core/remote/iroh/engine.js.map +1 -0
- package/dist/core/remote/iroh/handshake-reader.d.ts +19 -0
- package/dist/core/remote/iroh/handshake-reader.d.ts.map +1 -0
- package/dist/core/remote/iroh/handshake-reader.js +91 -0
- package/dist/core/remote/iroh/handshake-reader.js.map +1 -0
- package/dist/core/remote/iroh/handshake.d.ts +119 -0
- package/dist/core/remote/iroh/handshake.d.ts.map +1 -0
- package/dist/core/remote/iroh/handshake.js +621 -0
- package/dist/core/remote/iroh/handshake.js.map +1 -0
- package/dist/core/remote/iroh/host-policy.d.ts +13 -0
- package/dist/core/remote/iroh/host-policy.d.ts.map +1 -0
- package/dist/core/remote/iroh/host-policy.js +15 -0
- package/dist/core/remote/iroh/host-policy.js.map +1 -0
- package/dist/core/remote/iroh/index.d.ts +25 -0
- package/dist/core/remote/iroh/index.d.ts.map +1 -0
- package/dist/core/remote/iroh/index.js +25 -0
- package/dist/core/remote/iroh/index.js.map +1 -0
- package/dist/core/remote/iroh/metadata.d.ts +28 -0
- package/dist/core/remote/iroh/metadata.d.ts.map +1 -0
- package/dist/core/remote/iroh/metadata.js +16 -0
- package/dist/core/remote/iroh/metadata.js.map +1 -0
- package/dist/core/remote/iroh/outbound-filter.d.ts +29 -0
- package/dist/core/remote/iroh/outbound-filter.d.ts.map +1 -0
- package/dist/core/remote/iroh/outbound-filter.js +692 -0
- package/dist/core/remote/iroh/outbound-filter.js.map +1 -0
- package/dist/core/remote/iroh/protocol.d.ts +60 -0
- package/dist/core/remote/iroh/protocol.d.ts.map +1 -0
- package/dist/core/remote/iroh/protocol.js +204 -0
- package/dist/core/remote/iroh/protocol.js.map +1 -0
- package/dist/core/remote/iroh/push.d.ts +179 -0
- package/dist/core/remote/iroh/push.d.ts.map +1 -0
- package/dist/core/remote/iroh/push.js +662 -0
- package/dist/core/remote/iroh/push.js.map +1 -0
- package/dist/core/remote/iroh/qr.d.ts +12 -0
- package/dist/core/remote/iroh/qr.d.ts.map +1 -0
- package/dist/core/remote/iroh/qr.js +27 -0
- package/dist/core/remote/iroh/qr.js.map +1 -0
- package/dist/core/remote/iroh/rpc-command-filter.d.ts +47 -0
- package/dist/core/remote/iroh/rpc-command-filter.d.ts.map +1 -0
- package/dist/core/remote/iroh/rpc-command-filter.js +188 -0
- package/dist/core/remote/iroh/rpc-command-filter.js.map +1 -0
- package/dist/core/remote/iroh/rpc-transport.d.ts +21 -0
- package/dist/core/remote/iroh/rpc-transport.d.ts.map +1 -0
- package/dist/core/remote/iroh/rpc-transport.js +106 -0
- package/dist/core/remote/iroh/rpc-transport.js.map +1 -0
- package/dist/core/remote/iroh/state-manager.d.ts +141 -0
- package/dist/core/remote/iroh/state-manager.d.ts.map +1 -0
- package/dist/core/remote/iroh/state-manager.js +744 -0
- package/dist/core/remote/iroh/state-manager.js.map +1 -0
- package/dist/core/remote/iroh/state.d.ts +141 -0
- package/dist/core/remote/iroh/state.d.ts.map +1 -0
- package/dist/core/remote/iroh/state.js +433 -0
- package/dist/core/remote/iroh/state.js.map +1 -0
- package/dist/core/remote/iroh/ticket.d.ts +46 -0
- package/dist/core/remote/iroh/ticket.d.ts.map +1 -0
- package/dist/core/remote/iroh/ticket.js +267 -0
- package/dist/core/remote/iroh/ticket.js.map +1 -0
- package/dist/core/remote/iroh/transcript-text.d.ts +8 -0
- package/dist/core/remote/iroh/transcript-text.d.ts.map +1 -0
- package/dist/core/remote/iroh/transcript-text.js +26 -0
- package/dist/core/remote/iroh/transcript-text.js.map +1 -0
- package/dist/core/remote/iroh/workspace-rpc.d.ts +31 -0
- package/dist/core/remote/iroh/workspace-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/workspace-rpc.js +73 -0
- package/dist/core/remote/iroh/workspace-rpc.js.map +1 -0
- package/dist/core/remote/iroh/workspace.d.ts +16 -0
- package/dist/core/remote/iroh/workspace.d.ts.map +1 -0
- package/dist/core/remote/iroh/workspace.js +104 -0
- package/dist/core/remote/iroh/workspace.js.map +1 -0
- package/dist/core/remote/iroh/worktree-rpc.d.ts +83 -0
- package/dist/core/remote/iroh/worktree-rpc.d.ts.map +1 -0
- package/dist/core/remote/iroh/worktree-rpc.js +148 -0
- package/dist/core/remote/iroh/worktree-rpc.js.map +1 -0
- package/dist/core/resolve-config-value.d.ts +30 -0
- package/dist/core/resolve-config-value.d.ts.map +1 -0
- package/dist/core/resolve-config-value.js +245 -0
- package/dist/core/resolve-config-value.js.map +1 -0
- package/dist/core/resource-loader.d.ts +214 -0
- package/dist/core/resource-loader.d.ts.map +1 -0
- package/dist/core/resource-loader.js +824 -0
- package/dist/core/resource-loader.js.map +1 -0
- package/dist/core/review.d.ts +318 -0
- package/dist/core/review.d.ts.map +1 -0
- package/dist/core/review.js +1271 -0
- package/dist/core/review.js.map +1 -0
- package/dist/core/rpc/duplex-write-gate.d.ts +29 -0
- package/dist/core/rpc/duplex-write-gate.d.ts.map +1 -0
- package/dist/core/rpc/duplex-write-gate.js +124 -0
- package/dist/core/rpc/duplex-write-gate.js.map +1 -0
- package/dist/core/rpc/index.d.ts +6 -0
- package/dist/core/rpc/index.d.ts.map +1 -0
- package/dist/core/rpc/index.js +5 -0
- package/dist/core/rpc/index.js.map +1 -0
- package/dist/core/rpc/iroh-transport.d.ts +58 -0
- package/dist/core/rpc/iroh-transport.d.ts.map +1 -0
- package/dist/core/rpc/iroh-transport.js +278 -0
- package/dist/core/rpc/iroh-transport.js.map +1 -0
- package/dist/core/rpc/jsonl.d.ts +17 -0
- package/dist/core/rpc/jsonl.d.ts.map +1 -0
- package/dist/core/rpc/jsonl.js +49 -0
- package/dist/core/rpc/jsonl.js.map +1 -0
- package/dist/core/rpc/loopback-transport.d.ts +14 -0
- package/dist/core/rpc/loopback-transport.d.ts.map +1 -0
- package/dist/core/rpc/loopback-transport.js +120 -0
- package/dist/core/rpc/loopback-transport.js.map +1 -0
- package/dist/core/rpc/transcript.d.ts +37 -0
- package/dist/core/rpc/transcript.d.ts.map +1 -0
- package/dist/core/rpc/transcript.js +624 -0
- package/dist/core/rpc/transcript.js.map +1 -0
- package/dist/core/rpc/transport.d.ts +41 -0
- package/dist/core/rpc/transport.d.ts.map +1 -0
- package/dist/core/rpc/transport.js +155 -0
- package/dist/core/rpc/transport.js.map +1 -0
- package/dist/core/rpc/types.d.ts +1254 -0
- package/dist/core/rpc/types.d.ts.map +1 -0
- package/dist/core/rpc/types.js +8 -0
- package/dist/core/rpc/types.js.map +1 -0
- package/dist/core/rpc/ui-action-args.d.ts +3 -0
- package/dist/core/rpc/ui-action-args.d.ts.map +1 -0
- package/dist/core/rpc/ui-action-args.js +66 -0
- package/dist/core/rpc/ui-action-args.js.map +1 -0
- package/dist/core/rpc/ui-actions.d.ts +43 -0
- package/dist/core/rpc/ui-actions.d.ts.map +1 -0
- package/dist/core/rpc/ui-actions.js +362 -0
- package/dist/core/rpc/ui-actions.js.map +1 -0
- package/dist/core/sdk.d.ts +138 -0
- package/dist/core/sdk.d.ts.map +1 -0
- package/dist/core/sdk.js +324 -0
- package/dist/core/sdk.js.map +1 -0
- package/dist/core/session-cwd.d.ts +19 -0
- package/dist/core/session-cwd.d.ts.map +1 -0
- package/dist/core/session-cwd.js +38 -0
- package/dist/core/session-cwd.js.map +1 -0
- package/dist/core/session-manager.d.ts +346 -0
- package/dist/core/session-manager.d.ts.map +1 -0
- package/dist/core/session-manager.js +1280 -0
- package/dist/core/session-manager.js.map +1 -0
- package/dist/core/settings-manager.d.ts +359 -0
- package/dist/core/settings-manager.d.ts.map +1 -0
- package/dist/core/settings-manager.js +1277 -0
- package/dist/core/settings-manager.js.map +1 -0
- package/dist/core/skills.d.ts +60 -0
- package/dist/core/skills.d.ts.map +1 -0
- package/dist/core/skills.js +387 -0
- package/dist/core/skills.js.map +1 -0
- package/dist/core/slash-commands.d.ts +14 -0
- package/dist/core/slash-commands.d.ts.map +1 -0
- package/dist/core/slash-commands.js +51 -0
- package/dist/core/slash-commands.js.map +1 -0
- package/dist/core/source-info.d.ts +18 -0
- package/dist/core/source-info.d.ts.map +1 -0
- package/dist/core/source-info.js +19 -0
- package/dist/core/source-info.js.map +1 -0
- package/dist/core/subagents/delegation-scope.d.ts +47 -0
- package/dist/core/subagents/delegation-scope.d.ts.map +1 -0
- package/dist/core/subagents/delegation-scope.js +134 -0
- package/dist/core/subagents/delegation-scope.js.map +1 -0
- package/dist/core/subagents/index.d.ts +46 -0
- package/dist/core/subagents/index.d.ts.map +1 -0
- package/dist/core/subagents/index.js +369 -0
- package/dist/core/subagents/index.js.map +1 -0
- package/dist/core/subagents/manager.d.ts +183 -0
- package/dist/core/subagents/manager.d.ts.map +1 -0
- package/dist/core/subagents/manager.js +820 -0
- package/dist/core/subagents/manager.js.map +1 -0
- package/dist/core/system-prompt.d.ts +28 -0
- package/dist/core/system-prompt.d.ts.map +1 -0
- package/dist/core/system-prompt.js +180 -0
- package/dist/core/system-prompt.js.map +1 -0
- package/dist/core/telemetry.d.ts +3 -0
- package/dist/core/telemetry.d.ts.map +1 -0
- package/dist/core/telemetry.js +9 -0
- package/dist/core/telemetry.js.map +1 -0
- package/dist/core/theme/dark.json +86 -0
- package/dist/core/theme/discovery.d.ts +48 -0
- package/dist/core/theme/discovery.d.ts.map +1 -0
- package/dist/core/theme/discovery.js +239 -0
- package/dist/core/theme/discovery.js.map +1 -0
- package/dist/core/theme/index.d.ts +6 -0
- package/dist/core/theme/index.d.ts.map +1 -0
- package/dist/core/theme/index.js +5 -0
- package/dist/core/theme/index.js.map +1 -0
- package/dist/core/theme/light.json +85 -0
- package/dist/core/theme/runtime.d.ts +55 -0
- package/dist/core/theme/runtime.d.ts.map +1 -0
- package/dist/core/theme/runtime.js +555 -0
- package/dist/core/theme/runtime.js.map +1 -0
- package/dist/core/theme/theme-schema.json +335 -0
- package/dist/core/theme/theme-service.d.ts +37 -0
- package/dist/core/theme/theme-service.d.ts.map +1 -0
- package/dist/core/theme/theme-service.js +222 -0
- package/dist/core/theme/theme-service.js.map +1 -0
- package/dist/core/theme/theme.d.ts +100 -0
- package/dist/core/theme/theme.d.ts.map +1 -0
- package/dist/core/theme/theme.js +243 -0
- package/dist/core/theme/theme.js.map +1 -0
- package/dist/core/theme/tokens.d.ts +20 -0
- package/dist/core/theme/tokens.d.ts.map +1 -0
- package/dist/core/theme/tokens.js +178 -0
- package/dist/core/theme/tokens.js.map +1 -0
- package/dist/core/theme/types.d.ts +21 -0
- package/dist/core/theme/types.d.ts.map +1 -0
- package/dist/core/theme/types.js +2 -0
- package/dist/core/theme/types.js.map +1 -0
- package/dist/core/timings.d.ts +8 -0
- package/dist/core/timings.d.ts.map +1 -0
- package/dist/core/timings.js +31 -0
- package/dist/core/timings.js.map +1 -0
- package/dist/core/tools/bash.d.ts +68 -0
- package/dist/core/tools/bash.d.ts.map +1 -0
- package/dist/core/tools/bash.js +345 -0
- package/dist/core/tools/bash.js.map +1 -0
- package/dist/core/tools/diagnostics-provider.d.ts +12 -0
- package/dist/core/tools/diagnostics-provider.d.ts.map +1 -0
- package/dist/core/tools/diagnostics-provider.js +2 -0
- package/dist/core/tools/diagnostics-provider.js.map +1 -0
- package/dist/core/tools/edit-diff.d.ts +77 -0
- package/dist/core/tools/edit-diff.d.ts.map +1 -0
- package/dist/core/tools/edit-diff.js +506 -0
- package/dist/core/tools/edit-diff.js.map +1 -0
- package/dist/core/tools/edit.d.ts +56 -0
- package/dist/core/tools/edit.d.ts.map +1 -0
- package/dist/core/tools/edit.js +300 -0
- package/dist/core/tools/edit.js.map +1 -0
- package/dist/core/tools/file-mutation-queue.d.ts +6 -0
- package/dist/core/tools/file-mutation-queue.d.ts.map +1 -0
- package/dist/core/tools/file-mutation-queue.js +52 -0
- package/dist/core/tools/file-mutation-queue.js.map +1 -0
- package/dist/core/tools/find.d.ts +35 -0
- package/dist/core/tools/find.d.ts.map +1 -0
- package/dist/core/tools/find.js +337 -0
- package/dist/core/tools/find.js.map +1 -0
- package/dist/core/tools/grep.d.ts +37 -0
- package/dist/core/tools/grep.d.ts.map +1 -0
- package/dist/core/tools/grep.js +305 -0
- package/dist/core/tools/grep.js.map +1 -0
- package/dist/core/tools/index.d.ts +56 -0
- package/dist/core/tools/index.d.ts.map +1 -0
- package/dist/core/tools/index.js +174 -0
- package/dist/core/tools/index.js.map +1 -0
- package/dist/core/tools/ls.d.ts +37 -0
- package/dist/core/tools/ls.d.ts.map +1 -0
- package/dist/core/tools/ls.js +167 -0
- package/dist/core/tools/ls.js.map +1 -0
- package/dist/core/tools/lsp.d.ts +59 -0
- package/dist/core/tools/lsp.d.ts.map +1 -0
- package/dist/core/tools/lsp.js +157 -0
- package/dist/core/tools/lsp.js.map +1 -0
- package/dist/core/tools/output-accumulator.d.ts +52 -0
- package/dist/core/tools/output-accumulator.d.ts.map +1 -0
- package/dist/core/tools/output-accumulator.js +184 -0
- package/dist/core/tools/output-accumulator.js.map +1 -0
- package/dist/core/tools/path-utils.d.ts +10 -0
- package/dist/core/tools/path-utils.d.ts.map +1 -0
- package/dist/core/tools/path-utils.js +99 -0
- package/dist/core/tools/path-utils.js.map +1 -0
- package/dist/core/tools/read.d.ts +35 -0
- package/dist/core/tools/read.d.ts.map +1 -0
- package/dist/core/tools/read.js +292 -0
- package/dist/core/tools/read.js.map +1 -0
- package/dist/core/tools/render-utils.d.ts +26 -0
- package/dist/core/tools/render-utils.d.ts.map +1 -0
- package/dist/core/tools/render-utils.js +69 -0
- package/dist/core/tools/render-utils.js.map +1 -0
- package/dist/core/tools/subagent.d.ts +219 -0
- package/dist/core/tools/subagent.d.ts.map +1 -0
- package/dist/core/tools/subagent.js +1445 -0
- package/dist/core/tools/subagent.js.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts +14 -0
- package/dist/core/tools/tool-definition-wrapper.d.ts.map +1 -0
- package/dist/core/tools/tool-definition-wrapper.js +34 -0
- package/dist/core/tools/tool-definition-wrapper.js.map +1 -0
- package/dist/core/tools/truncate.d.ts +70 -0
- package/dist/core/tools/truncate.d.ts.map +1 -0
- package/dist/core/tools/truncate.js +215 -0
- package/dist/core/tools/truncate.js.map +1 -0
- package/dist/core/tools/web-search.d.ts +69 -0
- package/dist/core/tools/web-search.d.ts.map +1 -0
- package/dist/core/tools/web-search.js +634 -0
- package/dist/core/tools/web-search.js.map +1 -0
- package/dist/core/tools/write.d.ts +33 -0
- package/dist/core/tools/write.d.ts.map +1 -0
- package/dist/core/tools/write.js +210 -0
- package/dist/core/tools/write.js.map +1 -0
- package/dist/core/trust-manager.d.ts +36 -0
- package/dist/core/trust-manager.d.ts.map +1 -0
- package/dist/core/trust-manager.js +220 -0
- package/dist/core/trust-manager.js.map +1 -0
- package/dist/daemon/cli.d.ts +8 -0
- package/dist/daemon/cli.d.ts.map +1 -0
- package/dist/daemon/cli.js +468 -0
- package/dist/daemon/cli.js.map +1 -0
- package/dist/daemon/control-client.d.ts +60 -0
- package/dist/daemon/control-client.d.ts.map +1 -0
- package/dist/daemon/control-client.js +411 -0
- package/dist/daemon/control-client.js.map +1 -0
- package/dist/daemon/control-protocol.d.ts +507 -0
- package/dist/daemon/control-protocol.d.ts.map +1 -0
- package/dist/daemon/control-protocol.js +395 -0
- package/dist/daemon/control-protocol.js.map +1 -0
- package/dist/daemon/control-server.d.ts +77 -0
- package/dist/daemon/control-server.d.ts.map +1 -0
- package/dist/daemon/control-server.js +327 -0
- package/dist/daemon/control-server.js.map +1 -0
- package/dist/daemon/conversation-commands.d.ts +176 -0
- package/dist/daemon/conversation-commands.d.ts.map +1 -0
- package/dist/daemon/conversation-commands.js +1268 -0
- package/dist/daemon/conversation-commands.js.map +1 -0
- package/dist/daemon/daemon-lock.d.ts +27 -0
- package/dist/daemon/daemon-lock.d.ts.map +1 -0
- package/dist/daemon/daemon-lock.js +238 -0
- package/dist/daemon/daemon-lock.js.map +1 -0
- package/dist/daemon/handshake-responses.d.ts +47 -0
- package/dist/daemon/handshake-responses.d.ts.map +1 -0
- package/dist/daemon/handshake-responses.js +113 -0
- package/dist/daemon/handshake-responses.js.map +1 -0
- package/dist/daemon/integrated-runtimes.d.ts +137 -0
- package/dist/daemon/integrated-runtimes.d.ts.map +1 -0
- package/dist/daemon/integrated-runtimes.js +763 -0
- package/dist/daemon/integrated-runtimes.js.map +1 -0
- package/dist/daemon/iroh-native.d.ts +76 -0
- package/dist/daemon/iroh-native.d.ts.map +1 -0
- package/dist/daemon/iroh-native.js +18 -0
- package/dist/daemon/iroh-native.js.map +1 -0
- package/dist/daemon/iroh-resource-guard.d.ts +57 -0
- package/dist/daemon/iroh-resource-guard.d.ts.map +1 -0
- package/dist/daemon/iroh-resource-guard.js +134 -0
- package/dist/daemon/iroh-resource-guard.js.map +1 -0
- package/dist/daemon/iroh-service.d.ts +51 -0
- package/dist/daemon/iroh-service.d.ts.map +1 -0
- package/dist/daemon/iroh-service.js +2604 -0
- package/dist/daemon/iroh-service.js.map +1 -0
- package/dist/daemon/keep-awake.d.ts +62 -0
- package/dist/daemon/keep-awake.d.ts.map +1 -0
- package/dist/daemon/keep-awake.js +190 -0
- package/dist/daemon/keep-awake.js.map +1 -0
- package/dist/daemon/lease-broker.d.ts +139 -0
- package/dist/daemon/lease-broker.d.ts.map +1 -0
- package/dist/daemon/lease-broker.js +504 -0
- package/dist/daemon/lease-broker.js.map +1 -0
- package/dist/daemon/log.d.ts +16 -0
- package/dist/daemon/log.d.ts.map +1 -0
- package/dist/daemon/log.js +40 -0
- package/dist/daemon/log.js.map +1 -0
- package/dist/daemon/main.d.ts +70 -0
- package/dist/daemon/main.d.ts.map +1 -0
- package/dist/daemon/main.js +781 -0
- package/dist/daemon/main.js.map +1 -0
- package/dist/daemon/paths.d.ts +32 -0
- package/dist/daemon/paths.d.ts.map +1 -0
- package/dist/daemon/paths.js +208 -0
- package/dist/daemon/paths.js.map +1 -0
- package/dist/daemon/process-identity.d.ts +58 -0
- package/dist/daemon/process-identity.d.ts.map +1 -0
- package/dist/daemon/process-identity.js +185 -0
- package/dist/daemon/process-identity.js.map +1 -0
- package/dist/daemon/relay-stream.d.ts +89 -0
- package/dist/daemon/relay-stream.d.ts.map +1 -0
- package/dist/daemon/relay-stream.js +202 -0
- package/dist/daemon/relay-stream.js.map +1 -0
- package/dist/daemon/remote-cli.d.ts +7 -0
- package/dist/daemon/remote-cli.d.ts.map +1 -0
- package/dist/daemon/remote-cli.js +774 -0
- package/dist/daemon/remote-cli.js.map +1 -0
- package/dist/daemon/service-install.d.ts +43 -0
- package/dist/daemon/service-install.d.ts.map +1 -0
- package/dist/daemon/service-install.js +198 -0
- package/dist/daemon/service-install.js.map +1 -0
- package/dist/daemon/session-target.d.ts +62 -0
- package/dist/daemon/session-target.d.ts.map +1 -0
- package/dist/daemon/session-target.js +66 -0
- package/dist/daemon/session-target.js.map +1 -0
- package/dist/daemon/spawn.d.ts +53 -0
- package/dist/daemon/spawn.d.ts.map +1 -0
- package/dist/daemon/spawn.js +205 -0
- package/dist/daemon/spawn.js.map +1 -0
- package/dist/daemon/state.d.ts +145 -0
- package/dist/daemon/state.d.ts.map +1 -0
- package/dist/daemon/state.js +454 -0
- package/dist/daemon/state.js.map +1 -0
- package/dist/daemon/theme-push.d.ts +23 -0
- package/dist/daemon/theme-push.d.ts.map +1 -0
- package/dist/daemon/theme-push.js +30 -0
- package/dist/daemon/theme-push.js.map +1 -0
- package/dist/daemon/viewer-feed.d.ts +42 -0
- package/dist/daemon/viewer-feed.d.ts.map +1 -0
- package/dist/daemon/viewer-feed.js +138 -0
- package/dist/daemon/viewer-feed.js.map +1 -0
- package/dist/daemon/workspace-directory.d.ts +35 -0
- package/dist/daemon/workspace-directory.d.ts.map +1 -0
- package/dist/daemon/workspace-directory.js +105 -0
- package/dist/daemon/workspace-directory.js.map +1 -0
- package/dist/daemon/workspace-streams.d.ts +70 -0
- package/dist/daemon/workspace-streams.d.ts.map +1 -0
- package/dist/daemon/workspace-streams.js +289 -0
- package/dist/daemon/workspace-streams.js.map +1 -0
- package/dist/daemon/worktree-manager.d.ts +219 -0
- package/dist/daemon/worktree-manager.d.ts.map +1 -0
- package/dist/daemon/worktree-manager.js +1204 -0
- package/dist/daemon/worktree-manager.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +57 -0
- package/dist/index.js.map +1 -0
- package/dist/main.d.ts +12 -0
- package/dist/main.d.ts.map +1 -0
- package/dist/main.js +773 -0
- package/dist/main.js.map +1 -0
- package/dist/mcp-cli.d.ts +6 -0
- package/dist/mcp-cli.d.ts.map +1 -0
- package/dist/mcp-cli.js +347 -0
- package/dist/mcp-cli.js.map +1 -0
- package/dist/migrations.d.ts +33 -0
- package/dist/migrations.d.ts.map +1 -0
- package/dist/migrations.js +281 -0
- package/dist/migrations.js.map +1 -0
- package/dist/modes/index.d.ts +13 -0
- package/dist/modes/index.d.ts.map +1 -0
- package/dist/modes/index.js +12 -0
- package/dist/modes/index.js.map +1 -0
- package/dist/modes/interactive/components/armin.d.ts +34 -0
- package/dist/modes/interactive/components/armin.d.ts.map +1 -0
- package/dist/modes/interactive/components/armin.js +333 -0
- package/dist/modes/interactive/components/armin.js.map +1 -0
- package/dist/modes/interactive/components/assistant-message.d.ts +22 -0
- package/dist/modes/interactive/components/assistant-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/assistant-message.js +129 -0
- package/dist/modes/interactive/components/assistant-message.js.map +1 -0
- package/dist/modes/interactive/components/bash-execution.d.ts +39 -0
- package/dist/modes/interactive/components/bash-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/bash-execution.js +212 -0
- package/dist/modes/interactive/components/bash-execution.js.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts +17 -0
- package/dist/modes/interactive/components/bordered-loader.d.ts.map +1 -0
- package/dist/modes/interactive/components/bordered-loader.js +57 -0
- package/dist/modes/interactive/components/bordered-loader.js.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/branch-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/branch-summary-message.js +44 -0
- package/dist/modes/interactive/components/branch-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts +16 -0
- package/dist/modes/interactive/components/compaction-summary-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/compaction-summary-message.js +45 -0
- package/dist/modes/interactive/components/compaction-summary-message.js.map +1 -0
- package/dist/modes/interactive/components/config-selector.d.ts +71 -0
- package/dist/modes/interactive/components/config-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/config-selector.js +510 -0
- package/dist/modes/interactive/components/config-selector.js.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts +14 -0
- package/dist/modes/interactive/components/countdown-timer.d.ts.map +1 -0
- package/dist/modes/interactive/components/countdown-timer.js +33 -0
- package/dist/modes/interactive/components/countdown-timer.js.map +1 -0
- package/dist/modes/interactive/components/custom-editor.d.ts +21 -0
- package/dist/modes/interactive/components/custom-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-editor.js +70 -0
- package/dist/modes/interactive/components/custom-editor.js.map +1 -0
- package/dist/modes/interactive/components/custom-message.d.ts +20 -0
- package/dist/modes/interactive/components/custom-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/custom-message.js +76 -0
- package/dist/modes/interactive/components/custom-message.js.map +1 -0
- package/dist/modes/interactive/components/daxnuts.d.ts +23 -0
- package/dist/modes/interactive/components/daxnuts.d.ts.map +1 -0
- package/dist/modes/interactive/components/daxnuts.js +140 -0
- package/dist/modes/interactive/components/daxnuts.js.map +1 -0
- package/dist/modes/interactive/components/diff.d.ts +12 -0
- package/dist/modes/interactive/components/diff.d.ts.map +1 -0
- package/dist/modes/interactive/components/diff.js +133 -0
- package/dist/modes/interactive/components/diff.js.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts +15 -0
- package/dist/modes/interactive/components/dynamic-border.d.ts.map +1 -0
- package/dist/modes/interactive/components/dynamic-border.js +21 -0
- package/dist/modes/interactive/components/dynamic-border.js.map +1 -0
- package/dist/modes/interactive/components/extension-editor.d.ts +20 -0
- package/dist/modes/interactive/components/extension-editor.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-editor.js +116 -0
- package/dist/modes/interactive/components/extension-editor.js.map +1 -0
- package/dist/modes/interactive/components/extension-input.d.ts +23 -0
- package/dist/modes/interactive/components/extension-input.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-input.js +61 -0
- package/dist/modes/interactive/components/extension-input.js.map +1 -0
- package/dist/modes/interactive/components/extension-selector.d.ts +27 -0
- package/dist/modes/interactive/components/extension-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/extension-selector.js +98 -0
- package/dist/modes/interactive/components/extension-selector.js.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts +25 -0
- package/dist/modes/interactive/components/first-time-setup.d.ts.map +1 -0
- package/dist/modes/interactive/components/first-time-setup.js +103 -0
- package/dist/modes/interactive/components/first-time-setup.js.map +1 -0
- package/dist/modes/interactive/components/footer.d.ts +27 -0
- package/dist/modes/interactive/components/footer.d.ts.map +1 -0
- package/dist/modes/interactive/components/footer.js +180 -0
- package/dist/modes/interactive/components/footer.js.map +1 -0
- package/dist/modes/interactive/components/hotkeys.d.ts +24 -0
- package/dist/modes/interactive/components/hotkeys.d.ts.map +1 -0
- package/dist/modes/interactive/components/hotkeys.js +97 -0
- package/dist/modes/interactive/components/hotkeys.js.map +1 -0
- package/dist/modes/interactive/components/index.d.ts +35 -0
- package/dist/modes/interactive/components/index.d.ts.map +1 -0
- package/dist/modes/interactive/components/index.js +36 -0
- package/dist/modes/interactive/components/index.js.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts +19 -0
- package/dist/modes/interactive/components/keybinding-hints.d.ts.map +1 -0
- package/dist/modes/interactive/components/keybinding-hints.js +48 -0
- package/dist/modes/interactive/components/keybinding-hints.js.map +1 -0
- package/dist/modes/interactive/components/login-dialog.d.ts +52 -0
- package/dist/modes/interactive/components/login-dialog.d.ts.map +1 -0
- package/dist/modes/interactive/components/login-dialog.js +179 -0
- package/dist/modes/interactive/components/login-dialog.js.map +1 -0
- package/dist/modes/interactive/components/logo.d.ts +25 -0
- package/dist/modes/interactive/components/logo.d.ts.map +1 -0
- package/dist/modes/interactive/components/logo.js +89 -0
- package/dist/modes/interactive/components/logo.js.map +1 -0
- package/dist/modes/interactive/components/model-selector.d.ts +47 -0
- package/dist/modes/interactive/components/model-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/model-selector.js +278 -0
- package/dist/modes/interactive/components/model-selector.js.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts +31 -0
- package/dist/modes/interactive/components/oauth-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/oauth-selector.js +165 -0
- package/dist/modes/interactive/components/oauth-selector.js.map +1 -0
- package/dist/modes/interactive/components/remote-control-center.d.ts +110 -0
- package/dist/modes/interactive/components/remote-control-center.d.ts.map +1 -0
- package/dist/modes/interactive/components/remote-control-center.js +1217 -0
- package/dist/modes/interactive/components/remote-control-center.js.map +1 -0
- package/dist/modes/interactive/components/review-tools-selector.d.ts +24 -0
- package/dist/modes/interactive/components/review-tools-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/review-tools-selector.js +93 -0
- package/dist/modes/interactive/components/review-tools-selector.js.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts +42 -0
- package/dist/modes/interactive/components/scoped-models-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/scoped-models-selector.js +290 -0
- package/dist/modes/interactive/components/scoped-models-selector.js.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts +23 -0
- package/dist/modes/interactive/components/session-selector-search.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector-search.js +155 -0
- package/dist/modes/interactive/components/session-selector-search.js.map +1 -0
- package/dist/modes/interactive/components/session-selector.d.ts +95 -0
- package/dist/modes/interactive/components/session-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/session-selector.js +856 -0
- package/dist/modes/interactive/components/session-selector.js.map +1 -0
- package/dist/modes/interactive/components/settings-selector.d.ts +77 -0
- package/dist/modes/interactive/components/settings-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/settings-selector.js +484 -0
- package/dist/modes/interactive/components/settings-selector.js.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts +10 -0
- package/dist/modes/interactive/components/show-images-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/show-images-selector.js +39 -0
- package/dist/modes/interactive/components/show-images-selector.js.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts +17 -0
- package/dist/modes/interactive/components/skill-invocation-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/skill-invocation-message.js +47 -0
- package/dist/modes/interactive/components/skill-invocation-message.js.map +1 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.d.ts +29 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.d.ts.map +1 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.js +98 -0
- package/dist/modes/interactive/components/streaming-render-coalescer.js.map +1 -0
- package/dist/modes/interactive/components/subagent-inspector.d.ts +32 -0
- package/dist/modes/interactive/components/subagent-inspector.d.ts.map +1 -0
- package/dist/modes/interactive/components/subagent-inspector.js +439 -0
- package/dist/modes/interactive/components/subagent-inspector.js.map +1 -0
- package/dist/modes/interactive/components/theme-selector.d.ts +11 -0
- package/dist/modes/interactive/components/theme-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/theme-selector.js +50 -0
- package/dist/modes/interactive/components/theme-selector.js.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts +11 -0
- package/dist/modes/interactive/components/thinking-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/thinking-selector.js +52 -0
- package/dist/modes/interactive/components/thinking-selector.js.map +1 -0
- package/dist/modes/interactive/components/tool-execution.d.ts +83 -0
- package/dist/modes/interactive/components/tool-execution.d.ts.map +1 -0
- package/dist/modes/interactive/components/tool-execution.js +421 -0
- package/dist/modes/interactive/components/tool-execution.js.map +1 -0
- package/dist/modes/interactive/components/tree-selector.d.ts +89 -0
- package/dist/modes/interactive/components/tree-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/tree-selector.js +1208 -0
- package/dist/modes/interactive/components/tree-selector.js.map +1 -0
- package/dist/modes/interactive/components/trust-selector.d.ts +23 -0
- package/dist/modes/interactive/components/trust-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/trust-selector.js +91 -0
- package/dist/modes/interactive/components/trust-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts +30 -0
- package/dist/modes/interactive/components/user-message-selector.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message-selector.js +114 -0
- package/dist/modes/interactive/components/user-message-selector.js.map +1 -0
- package/dist/modes/interactive/components/user-message.d.ts +9 -0
- package/dist/modes/interactive/components/user-message.d.ts.map +1 -0
- package/dist/modes/interactive/components/user-message.js +42 -0
- package/dist/modes/interactive/components/user-message.js.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts +24 -0
- package/dist/modes/interactive/components/visual-truncate.d.ts.map +1 -0
- package/dist/modes/interactive/components/visual-truncate.js +33 -0
- package/dist/modes/interactive/components/visual-truncate.js.map +1 -0
- package/dist/modes/interactive/components/volt-announcement.d.ts +5 -0
- package/dist/modes/interactive/components/volt-announcement.d.ts.map +1 -0
- package/dist/modes/interactive/components/volt-announcement.js +15 -0
- package/dist/modes/interactive/components/volt-announcement.js.map +1 -0
- package/dist/modes/interactive/daemon-attach.d.ts +154 -0
- package/dist/modes/interactive/daemon-attach.d.ts.map +1 -0
- package/dist/modes/interactive/daemon-attach.js +552 -0
- package/dist/modes/interactive/daemon-attach.js.map +1 -0
- package/dist/modes/interactive/drain-viewer.d.ts +31 -0
- package/dist/modes/interactive/drain-viewer.d.ts.map +1 -0
- package/dist/modes/interactive/drain-viewer.js +166 -0
- package/dist/modes/interactive/drain-viewer.js.map +1 -0
- package/dist/modes/interactive/interactive-mode.d.ts +502 -0
- package/dist/modes/interactive/interactive-mode.d.ts.map +1 -0
- package/dist/modes/interactive/interactive-mode.js +7007 -0
- package/dist/modes/interactive/interactive-mode.js.map +1 -0
- package/dist/modes/interactive/prompt-image-attachments.d.ts +34 -0
- package/dist/modes/interactive/prompt-image-attachments.d.ts.map +1 -0
- package/dist/modes/interactive/prompt-image-attachments.js +120 -0
- package/dist/modes/interactive/prompt-image-attachments.js.map +1 -0
- package/dist/modes/interactive/relay-stream-adapter.d.ts +19 -0
- package/dist/modes/interactive/relay-stream-adapter.d.ts.map +1 -0
- package/dist/modes/interactive/relay-stream-adapter.js +107 -0
- package/dist/modes/interactive/relay-stream-adapter.js.map +1 -0
- package/dist/modes/print-mode.d.ts +28 -0
- package/dist/modes/print-mode.d.ts.map +1 -0
- package/dist/modes/print-mode.js +132 -0
- package/dist/modes/print-mode.js.map +1 -0
- package/dist/modes/rpc/in-process-rpc-client.d.ts +31 -0
- package/dist/modes/rpc/in-process-rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/in-process-rpc-client.js +63 -0
- package/dist/modes/rpc/in-process-rpc-client.js.map +1 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.d.ts +61 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.d.ts.map +1 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.js +155 -0
- package/dist/modes/rpc/iroh-remote-agent-runtime.js.map +1 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.d.ts +69 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.js +1223 -0
- package/dist/modes/rpc/iroh-remote-rpc-mode.js.map +1 -0
- package/dist/modes/rpc/jsonl.d.ts +2 -0
- package/dist/modes/rpc/jsonl.d.ts.map +1 -0
- package/dist/modes/rpc/jsonl.js +2 -0
- package/dist/modes/rpc/jsonl.js.map +1 -0
- package/dist/modes/rpc/rpc-client-base.d.ts +209 -0
- package/dist/modes/rpc/rpc-client-base.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client-base.js +530 -0
- package/dist/modes/rpc/rpc-client-base.js.map +1 -0
- package/dist/modes/rpc/rpc-client.d.ts +50 -0
- package/dist/modes/rpc/rpc-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-client.js +190 -0
- package/dist/modes/rpc/rpc-client.js.map +1 -0
- package/dist/modes/rpc/rpc-command-dispatcher.d.ts +43 -0
- package/dist/modes/rpc/rpc-command-dispatcher.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-dispatcher.js +613 -0
- package/dist/modes/rpc/rpc-command-dispatcher.js.map +1 -0
- package/dist/modes/rpc/rpc-command-validation.d.ts +2 -0
- package/dist/modes/rpc/rpc-command-validation.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-command-validation.js +207 -0
- package/dist/modes/rpc/rpc-command-validation.js.map +1 -0
- package/dist/modes/rpc/rpc-mode.d.ts +48 -0
- package/dist/modes/rpc/rpc-mode.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-mode.js +1089 -0
- package/dist/modes/rpc/rpc-mode.js.map +1 -0
- package/dist/modes/rpc/rpc-transport-client.d.ts +26 -0
- package/dist/modes/rpc/rpc-transport-client.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-transport-client.js +76 -0
- package/dist/modes/rpc/rpc-transport-client.js.map +1 -0
- package/dist/modes/rpc/rpc-types.d.ts +2 -0
- package/dist/modes/rpc/rpc-types.d.ts.map +1 -0
- package/dist/modes/rpc/rpc-types.js +2 -0
- package/dist/modes/rpc/rpc-types.js.map +1 -0
- package/dist/package-manager-cli.d.ts +28 -0
- package/dist/package-manager-cli.d.ts.map +1 -0
- package/dist/package-manager-cli.js +667 -0
- package/dist/package-manager-cli.js.map +1 -0
- package/dist/remote/integrated-runtime-retention.d.ts +17 -0
- package/dist/remote/integrated-runtime-retention.d.ts.map +1 -0
- package/dist/remote/integrated-runtime-retention.js +62 -0
- package/dist/remote/integrated-runtime-retention.js.map +1 -0
- package/dist/remote/iroh-native-adapter.cjs +19 -0
- package/dist/sea/cli.d.ts +4 -0
- package/dist/sea/cli.d.ts.map +1 -0
- package/dist/sea/cli.js +4 -0
- package/dist/sea/cli.js.map +1 -0
- package/dist/sea/register-bedrock.d.ts +2 -0
- package/dist/sea/register-bedrock.d.ts.map +1 -0
- package/dist/sea/register-bedrock.js +4 -0
- package/dist/sea/register-bedrock.js.map +1 -0
- package/dist/store/catalog.d.ts +57 -0
- package/dist/store/catalog.d.ts.map +1 -0
- package/dist/store/catalog.js +331 -0
- package/dist/store/catalog.js.map +1 -0
- package/dist/store/inspector.d.ts +36 -0
- package/dist/store/inspector.d.ts.map +1 -0
- package/dist/store/inspector.js +578 -0
- package/dist/store/inspector.js.map +1 -0
- package/dist/store/install-plan.d.ts +26 -0
- package/dist/store/install-plan.d.ts.map +1 -0
- package/dist/store/install-plan.js +80 -0
- package/dist/store/install-plan.js.map +1 -0
- package/dist/store/render.d.ts +11 -0
- package/dist/store/render.d.ts.map +1 -0
- package/dist/store/render.js +153 -0
- package/dist/store/render.js.map +1 -0
- package/dist/store/resolver.d.ts +22 -0
- package/dist/store/resolver.d.ts.map +1 -0
- package/dist/store/resolver.js +207 -0
- package/dist/store/resolver.js.map +1 -0
- package/dist/store/store-cli.d.ts +7 -0
- package/dist/store/store-cli.d.ts.map +1 -0
- package/dist/store/store-cli.js +636 -0
- package/dist/store/store-cli.js.map +1 -0
- package/dist/store/targets.d.ts +21 -0
- package/dist/store/targets.d.ts.map +1 -0
- package/dist/store/targets.js +55 -0
- package/dist/store/targets.js.map +1 -0
- package/dist/utils/ansi.d.ts +2 -0
- package/dist/utils/ansi.d.ts.map +1 -0
- package/dist/utils/ansi.js +52 -0
- package/dist/utils/ansi.js.map +1 -0
- package/dist/utils/changelog.d.ts +22 -0
- package/dist/utils/changelog.d.ts.map +1 -0
- package/dist/utils/changelog.js +165 -0
- package/dist/utils/changelog.js.map +1 -0
- package/dist/utils/child-process.d.ts +18 -0
- package/dist/utils/child-process.d.ts.map +1 -0
- package/dist/utils/child-process.js +106 -0
- package/dist/utils/child-process.js.map +1 -0
- package/dist/utils/clipboard-image.d.ts +11 -0
- package/dist/utils/clipboard-image.d.ts.map +1 -0
- package/dist/utils/clipboard-image.js +245 -0
- package/dist/utils/clipboard-image.js.map +1 -0
- package/dist/utils/clipboard.d.ts +2 -0
- package/dist/utils/clipboard.d.ts.map +1 -0
- package/dist/utils/clipboard.js +94 -0
- package/dist/utils/clipboard.js.map +1 -0
- package/dist/utils/deprecation.d.ts +4 -0
- package/dist/utils/deprecation.d.ts.map +1 -0
- package/dist/utils/deprecation.js +13 -0
- package/dist/utils/deprecation.js.map +1 -0
- package/dist/utils/durable-atomic-write.d.ts +46 -0
- package/dist/utils/durable-atomic-write.d.ts.map +1 -0
- package/dist/utils/durable-atomic-write.js +104 -0
- package/dist/utils/durable-atomic-write.js.map +1 -0
- package/dist/utils/frontmatter.d.ts +8 -0
- package/dist/utils/frontmatter.d.ts.map +1 -0
- package/dist/utils/frontmatter.js +26 -0
- package/dist/utils/frontmatter.js.map +1 -0
- package/dist/utils/fs-watch.d.ts +5 -0
- package/dist/utils/fs-watch.d.ts.map +1 -0
- package/dist/utils/fs-watch.js +25 -0
- package/dist/utils/fs-watch.js.map +1 -0
- package/dist/utils/git.d.ts +26 -0
- package/dist/utils/git.d.ts.map +1 -0
- package/dist/utils/git.js +195 -0
- package/dist/utils/git.js.map +1 -0
- package/dist/utils/html.d.ts +7 -0
- package/dist/utils/html.d.ts.map +1 -0
- package/dist/utils/html.js +40 -0
- package/dist/utils/html.js.map +1 -0
- package/dist/utils/ignore-files.d.ts +5 -0
- package/dist/utils/ignore-files.d.ts.map +1 -0
- package/dist/utils/ignore-files.js +58 -0
- package/dist/utils/ignore-files.js.map +1 -0
- package/dist/utils/image-codec.d.ts +22 -0
- package/dist/utils/image-codec.d.ts.map +1 -0
- package/dist/utils/image-codec.js +35 -0
- package/dist/utils/image-codec.js.map +1 -0
- package/dist/utils/image-convert.d.ts +9 -0
- package/dist/utils/image-convert.d.ts.map +1 -0
- package/dist/utils/image-convert.js +26 -0
- package/dist/utils/image-convert.js.map +1 -0
- package/dist/utils/image-resize-core.d.ts +31 -0
- package/dist/utils/image-resize-core.d.ts.map +1 -0
- package/dist/utils/image-resize-core.js +181 -0
- package/dist/utils/image-resize-core.js.map +1 -0
- package/dist/utils/image-resize-worker.d.ts +2 -0
- package/dist/utils/image-resize-worker.d.ts.map +1 -0
- package/dist/utils/image-resize-worker.js +31 -0
- package/dist/utils/image-resize-worker.js.map +1 -0
- package/dist/utils/image-resize.d.ts +15 -0
- package/dist/utils/image-resize.d.ts.map +1 -0
- package/dist/utils/image-resize.js +92 -0
- package/dist/utils/image-resize.js.map +1 -0
- package/dist/utils/json.d.ts +3 -0
- package/dist/utils/json.d.ts.map +1 -0
- package/dist/utils/json.js +7 -0
- package/dist/utils/json.js.map +1 -0
- package/dist/utils/mime.d.ts +3 -0
- package/dist/utils/mime.d.ts.map +1 -0
- package/dist/utils/mime.js +69 -0
- package/dist/utils/mime.js.map +1 -0
- package/dist/utils/npm-spec.d.ts +9 -0
- package/dist/utils/npm-spec.d.ts.map +1 -0
- package/dist/utils/npm-spec.js +15 -0
- package/dist/utils/npm-spec.js.map +1 -0
- package/dist/utils/open-browser.d.ts +9 -0
- package/dist/utils/open-browser.d.ts.map +1 -0
- package/dist/utils/open-browser.js +22 -0
- package/dist/utils/open-browser.js.map +1 -0
- package/dist/utils/paths.d.ts +31 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/utils/paths.js +92 -0
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/private-files.d.ts +21 -0
- package/dist/utils/private-files.d.ts.map +1 -0
- package/dist/utils/private-files.js +103 -0
- package/dist/utils/private-files.js.map +1 -0
- package/dist/utils/process-env.d.ts +2 -0
- package/dist/utils/process-env.d.ts.map +1 -0
- package/dist/utils/process-env.js +31 -0
- package/dist/utils/process-env.js.map +1 -0
- package/dist/utils/shell.d.ts +30 -0
- package/dist/utils/shell.d.ts.map +1 -0
- package/dist/utils/shell.js +195 -0
- package/dist/utils/shell.js.map +1 -0
- package/dist/utils/sleep.d.ts +5 -0
- package/dist/utils/sleep.d.ts.map +1 -0
- package/dist/utils/sleep.js +17 -0
- package/dist/utils/sleep.js.map +1 -0
- package/dist/utils/syntax-highlight.d.ts +18 -0
- package/dist/utils/syntax-highlight.d.ts.map +1 -0
- package/dist/utils/syntax-highlight.js +139 -0
- package/dist/utils/syntax-highlight.js.map +1 -0
- package/dist/utils/tools-manager.d.ts +3 -0
- package/dist/utils/tools-manager.d.ts.map +1 -0
- package/dist/utils/tools-manager.js +328 -0
- package/dist/utils/tools-manager.js.map +1 -0
- package/dist/utils/version-check.d.ts +15 -0
- package/dist/utils/version-check.d.ts.map +1 -0
- package/dist/utils/version-check.js +61 -0
- package/dist/utils/version-check.js.map +1 -0
- package/dist/utils/volt-user-agent.d.ts +2 -0
- package/dist/utils/volt-user-agent.d.ts.map +1 -0
- package/dist/utils/volt-user-agent.js +5 -0
- package/dist/utils/volt-user-agent.js.map +1 -0
- package/dist/utils/windows-self-update.d.ts +3 -0
- package/dist/utils/windows-self-update.d.ts.map +1 -0
- package/dist/utils/windows-self-update.js +77 -0
- package/dist/utils/windows-self-update.js.map +1 -0
- package/docs/compaction.md +394 -0
- package/docs/containerization.md +111 -0
- package/docs/custom-provider.md +737 -0
- package/docs/daemon.md +190 -0
- package/docs/development.md +70 -0
- package/docs/docs.json +176 -0
- package/docs/extensions.md +2692 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +82 -0
- package/docs/iroh-remote-access-design.md +340 -0
- package/docs/iroh-remote-protocol.md +431 -0
- package/docs/json.md +87 -0
- package/docs/keybindings.md +200 -0
- package/docs/live-shared-session-daemon-design.md +1090 -0
- package/docs/lsp.md +143 -0
- package/docs/mcp.md +1044 -0
- package/docs/models.md +495 -0
- package/docs/packages.md +230 -0
- package/docs/prompt-templates.md +108 -0
- package/docs/providers.md +274 -0
- package/docs/quickstart.md +165 -0
- package/docs/rpc.md +2050 -0
- package/docs/sdk.md +1267 -0
- package/docs/security.md +139 -0
- package/docs/session-format.md +412 -0
- package/docs/sessions.md +145 -0
- package/docs/settings.md +371 -0
- package/docs/shell-aliases.md +13 -0
- package/docs/skills.md +243 -0
- package/docs/subagents-design.md +419 -0
- package/docs/terminal-setup.md +148 -0
- package/docs/termux.md +127 -0
- package/docs/themes.md +295 -0
- package/docs/tla/ClientAuth.cfg +16 -0
- package/docs/tla/ClientAuth.tla +205 -0
- package/docs/tla/ClientConn.cfg +16 -0
- package/docs/tla/ClientConn.tla +265 -0
- package/docs/tla/LeaseBroker.cfg +43 -0
- package/docs/tla/LeaseBroker.tla +563 -0
- package/docs/tla/PLAN.md +240 -0
- package/docs/tla/PushOrdering.cfg +17 -0
- package/docs/tla/PushOrdering.tla +183 -0
- package/docs/tla/README.md +205 -0
- package/docs/tla/RelayViewer.cfg +26 -0
- package/docs/tla/RelayViewer.tla +299 -0
- package/docs/tla/SessionTarget.cfg +18 -0
- package/docs/tla/SessionTarget.tla +192 -0
- package/docs/tla/check.sh +34 -0
- package/docs/tmux.md +63 -0
- package/docs/tui.md +949 -0
- package/docs/usage.md +482 -0
- package/docs/windows.md +17 -0
- package/docs/worktrees-design.md +605 -0
- package/examples/README.md +28 -0
- package/examples/extensions/README.md +211 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +249 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +127 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +72 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +604 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +400 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +79 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +185 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/handoff.ts +191 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +426 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +55 -0
- package/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/examples/extensions/overlay-test.ts +153 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +65 -0
- package/examples/extensions/plan-mode/index.ts +340 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +97 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +122 -0
- package/examples/extensions/question.ts +277 -0
- package/examples/extensions/questionnaire.ts +440 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +321 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +175 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +126 -0
- package/examples/extensions/subagent/index.ts +1009 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +206 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/remote/firebase-push-relay/README.md +79 -0
- package/examples/remote/firebase-push-relay/firebase.json +12 -0
- package/examples/remote/firebase-push-relay/firestore.indexes.json +11 -0
- package/examples/remote/firebase-push-relay/firestore.rules +9 -0
- package/examples/remote/firebase-push-relay/functions/core.js +511 -0
- package/examples/remote/firebase-push-relay/functions/core.test.js +273 -0
- package/examples/remote/firebase-push-relay/functions/index.js +413 -0
- package/examples/remote/firebase-push-relay/functions/package-lock.json +2974 -0
- package/examples/remote/firebase-push-relay/functions/package.json +18 -0
- package/examples/remote/iroh-sidecar/README.md +211 -0
- package/examples/remote/iroh-sidecar/client.mjs +554 -0
- package/examples/remote/iroh-sidecar/common.mjs +195 -0
- package/examples/remote/iroh-sidecar/host.mjs +4 -0
- package/examples/remote/iroh-sidecar/package-lock.json +213 -0
- package/examples/remote/iroh-sidecar/package.json +13 -0
- package/examples/remote/iroh-sidecar/source-aware-run.mjs +41 -0
- package/examples/rpc-extension-ui.ts +632 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +53 -0
- package/examples/sdk/03-custom-prompt.ts +70 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +94 -0
- package/examples/sdk/07-context-files.ts +42 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +52 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +78 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/README.md +147 -0
- package/npm-shrinkwrap.json +3442 -0
- package/package.json +125 -19
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"worktree-manager.js","sourceRoot":"","sources":["../../src/daemon/worktree-manager.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACnD,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,WAAW,CAAC;AAE/F,OAAO,EAAE,+BAA+B,EAAE,MAAM,iCAAiC,CAAC;AAElF,OAAO,EAEN,gDAAgD,EAChD,oCAAoC,GACpC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EAAE,YAAY,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAG9E,OAAO,EAAE,yBAAyB,EAAqC,MAAM,0BAA0B,CAAC;AAExG,iFAA+E;AAC/E,MAAM,UAAU,gBAAgB,CAAC,QAAgB,EAAU;IAC1D,OAAO,IAAI,CAAC,OA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CAAC,WAAW,EAAE,CAAC;KACpF,CAAC;AAAA,CACF","sourcesContent":["import { createHash, randomInt } from \"node:crypto\";\nimport { existsSync, readFileSync } from \"node:fs\";\nimport { mkdir, readdir, realpath, rename } from \"node:fs/promises\";\nimport { basename, dirname, isAbsolute, join, posix, relative, resolve, sep } from \"node:path\";\nimport type { IrohRemoteAuditLogger } from \"../core/remote/iroh/audit.ts\";\nimport { IROH_REMOTE_WORKTREE_ID_PATTERN } from \"../core/remote/iroh/protocol.ts\";\nimport type { IrohRemoteWorkspace, IrohRemoteWorkspaceWorktree } from \"../core/remote/iroh/state.ts\";\nimport {\n\ttype IrohRemoteHostStateManager,\n\tisIrohRemoteWorktreeParentWorkspaceNotFoundError,\n\tisIrohRemoteWorktreePersistenceError,\n} from \"../core/remote/iroh/state-manager.ts\";\nimport { spawnProcess, waitForChildProcess } from \"../utils/child-process.ts\";\nimport type { ControlRequest, ControlWorktreeStatus } from \"./control-protocol.ts\";\nimport type { ControlConnection } from \"./control-server.ts\";\nimport { resolveWorkspaceDirectory, type WorkspaceDirectoryResolution } from \"./workspace-directory.ts\";\n\n/** join(agentDir, \"worktrees\") — sibling of sessions/, daemon/, trust.json. */\nexport function getWorktreesRoot(agentDir: string): string {\n\treturn join(resolve(agentDir), \"worktrees\");\n}\n\nexport const WORKTREE_ID_PATTERN = IROH_REMOTE_WORKTREE_ID_PATTERN;\n\n/**\n * Encode a workspace path into the per-workspace worktrees directory segment,\n * reusing the `--<encoded-cwd>--` scheme from the session dirs so the layout\n * survives workspace renames. Long encodings are shortened with a hash suffix\n * to stay clear of Windows MAX_PATH limits.\n */\nfunction getWorkspaceWorktreesSegment(workspacePath: string): string {\n\tconst encoded = resolve(workspacePath)\n\t\t.replace(/^[/\\\\]/, \"\")\n\t\t.replace(/[/\\\\:]/g, \"-\");\n\tif (encoded.length <= 80) {\n\t\treturn `--${encoded}--`;\n\t}\n\tconst digest = createHash(\"sha1\").update(encoded).digest(\"hex\").slice(0, 8);\n\treturn `--${encoded.slice(0, 72)}-${digest}--`;\n}\n\n/** Per-workspace directory holding that workspace's worktree checkouts. */\nexport function getWorkspaceWorktreesDir(agentDir: string, workspacePath: string): string {\n\treturn join(getWorktreesRoot(agentDir), getWorkspaceWorktreesSegment(workspacePath));\n}\n\n/**\n * Deterministic checkout path; the ONLY producer of checkout paths. Validates\n * the id and asserts the resolved path stays under the worktrees root — never\n * accepts a caller-supplied path.\n */\nexport function getWorktreeCheckoutPath(agentDir: string, workspacePath: string, worktreeId: string): string {\n\tif (!WORKTREE_ID_PATTERN.test(worktreeId)) {\n\t\tthrow new Error(`invalid worktree id: ${worktreeId}`);\n\t}\n\tconst root = resolve(getWorktreesRoot(agentDir));\n\tconst checkoutPath = resolve(join(getWorkspaceWorktreesDir(agentDir, workspacePath), worktreeId));\n\tconst rootPrefix = `${root}${sep}`;\n\tconst contained =\n\t\tprocess.platform === \"win32\"\n\t\t\t? checkoutPath.toLowerCase().startsWith(rootPrefix.toLowerCase())\n\t\t\t: checkoutPath.startsWith(rootPrefix);\n\tif (!contained) {\n\t\tthrow new Error(\"worktree checkout path escapes the worktrees root\");\n\t}\n\treturn checkoutPath;\n}\n\n/**\n * Convert a path relative to a daemon-managed worktree checkout back into the\n * registered-workspace-relative path used on the remote protocol. Nested repo\n * worktrees store sourceRootRelativePath (e.g. `Volt`), so a worktree cwd of\n * `packages/coding-agent` displays as `Volt/packages/coding-agent`.\n */\nexport function getRegisteredWorkingDirectoryForWorktree(\n\tworktree: Pick<IrohRemoteWorkspaceWorktree, \"sourceRootRelativePath\">,\n\tworktreeRelativePath?: string,\n): string | undefined {\n\tif (worktree.sourceRootRelativePath === undefined) {\n\t\treturn worktreeRelativePath;\n\t}\n\treturn worktreeRelativePath === undefined\n\t\t? worktree.sourceRootRelativePath\n\t\t: posix.join(worktree.sourceRootRelativePath, worktreeRelativePath);\n}\n\n/** win32-aware \"path is inside root\" prefix check on resolved paths. */\nfunction isPathContained(root: string, path: string): boolean {\n\tconst resolvedRoot = resolve(root);\n\tconst resolvedPath = resolve(path);\n\tconst rootPrefix = `${resolvedRoot}${sep}`;\n\tif (process.platform === \"win32\") {\n\t\tconst lowerPath = resolvedPath.toLowerCase();\n\t\treturn lowerPath === resolvedRoot.toLowerCase() || lowerPath.startsWith(rootPrefix.toLowerCase());\n\t}\n\treturn resolvedPath === resolvedRoot || resolvedPath.startsWith(rootPrefix);\n}\n\n/** True when path is inside the daemon's worktrees root (a daemon-managed checkout or below). */\nexport function isPathUnderWorktreesRoot(agentDir: string, path: string): boolean {\n\tconst root = resolve(getWorktreesRoot(agentDir));\n\tconst resolved = resolve(path);\n\treturn resolved !== root && isPathContained(root, resolved);\n}\n\n/**\n * Resolve the PARENT checkout of a daemon-managed worktree from the checkout's\n * `.git` gitdir pointer (`gitdir: <parent>/.git/worktrees/<id>`), without a\n * daemon round-trip or a git subprocess. Returns undefined when the path is\n * not under the worktrees root or the pointer cannot be parsed. Used by the\n * TUI to pin trust decisions to the parent workspace path — trust entries are\n * never prompted for or persisted on worktree paths (design §5.1.9/§5.2.1).\n */\nexport function resolveWorktreeParentCheckout(agentDir: string, path: string): string | undefined {\n\tif (!isPathUnderWorktreesRoot(agentDir, path)) {\n\t\treturn undefined;\n\t}\n\tconst root = resolve(getWorktreesRoot(agentDir));\n\tconst relativeSegments = resolve(path)\n\t\t.slice(root.length + 1)\n\t\t.split(sep)\n\t\t.filter((segment) => segment.length > 0);\n\tif (relativeSegments.length < 2) {\n\t\treturn undefined;\n\t}\n\t// Layout: <root>/<encoded-workspace-segment>/<worktreeId>/...\n\tconst checkoutPath = join(root, relativeSegments[0] ?? \"\", relativeSegments[1] ?? \"\");\n\tlet gitFileContents: string;\n\ttry {\n\t\tgitFileContents = readFileSync(join(checkoutPath, \".git\"), \"utf8\");\n\t} catch {\n\t\treturn undefined;\n\t}\n\tconst match = gitFileContents.match(/^gitdir:\\s*(.+)\\s*$/m);\n\tif (!match?.[1]) {\n\t\treturn undefined;\n\t}\n\tconst gitDir = match[1].trim();\n\tif (!isAbsolute(gitDir)) {\n\t\treturn undefined;\n\t}\n\t// gitDir is <parent>/.git/worktrees/<name>; the parent checkout is three levels up.\n\tconst worktreesDir = dirname(resolve(gitDir));\n\tconst dotGitDir = dirname(worktreesDir);\n\tif (worktreesDir.split(sep).pop() !== \"worktrees\" || dotGitDir.split(sep).pop() !== \".git\") {\n\t\treturn undefined;\n\t}\n\treturn dirname(dotGitDir);\n}\n\nexport type WorktreeRelayGate = { ok: true } | { ok: false; reason: \"checkout_missing\" | \"tui_not_capable\" };\n\n/**\n * Gate a worktree-bound conversation relay: the checkout must exist and the\n * owning TUI must have advertised the worktrees control capability. Old TUIs\n * (no capability) are never offered worktree-session relays (design §5.2.3).\n */\nexport function evaluateWorktreeRelayGate(\n\tworktree: { path: string } | undefined,\n\ttuiCapabilities: ReadonlySet<string> | undefined,\n\tworktreesCapability: string,\n): WorktreeRelayGate {\n\tif (worktree === undefined) {\n\t\treturn { ok: true };\n\t}\n\tif (!existsSync(worktree.path)) {\n\t\treturn { ok: false, reason: \"checkout_missing\" };\n\t}\n\tif (tuiCapabilities === undefined || !tuiCapabilities.has(worktreesCapability)) {\n\t\treturn { ok: false, reason: \"tui_not_capable\" };\n\t}\n\treturn { ok: true };\n}\n\nexport type WorktreeError =\n\t| \"not_a_git_repository\"\n\t| \"worktree_exists\"\n\t| \"worktree_branch_conflict\"\n\t| \"worktree_not_found\"\n\t| \"worktree_dirty\"\n\t| \"worktree_busy\"\n\t| \"worktree_limit_reached\"\n\t| \"worktree_source_unregistered\"\n\t| \"invalid_worktree_id\"\n\t| \"invalid_working_directory\"\n\t| \"nested_git_repository_unsupported\"\n\t| \"git_failed\";\n\nexport type WorktreeGitRunner = (\n\targs: string[],\n\tcwd: string,\n) => Promise<{ ok: boolean; code: number | null; stdout: string; stderr: string }>;\n\nexport interface WorktreeManagerOptions {\n\tagentDir: string;\n\tstateManager: IrohRemoteHostStateManager;\n\tauditLogger: IrohRemoteAuditLogger;\n\t/** Injectable for tests; defaults to a spawnProcess/waitForChildProcess wrapper. */\n\trunGit?: WorktreeGitRunner;\n\t/** Max worktrees per workspace (default 16). */\n\tmaxWorktreesPerWorkspace?: number;\n\t/** Seam for \"is a runtime using this worktree\" (wired to IntegratedRuntimeRegistry). */\n\thasActiveRuntimeForSession?: (workspaceName: string, sessionId: string) => boolean;\n\t/** Durable-write seam (VoltdStateStore.flush); records must survive a crash the moment they exist. */\n\tflushState?: () => Promise<void>;\n\tnow?: () => number;\n}\n\nexport interface WorktreeStatus extends IrohRemoteWorkspaceWorktree {\n\t/** Checkout directory exists and `git worktree list` still knows it. */\n\tavailable: boolean;\n\t/** `git status --porcelain` non-empty, i.e. has uncommitted work (best-effort; undefined when unavailable). */\n\tdirty?: boolean;\n\t/** Branch commits vs the base ref (`git rev-list --left-right --count`); undefined when unavailable. */\n\taheadBehind?: { ahead: number; behind: number };\n}\n\nexport type WorktreeResult<T> = ({ ok: true } & T) | { ok: false; error: WorktreeError; detail?: string };\n\ninterface WorktreeSourceResolution {\n\t/** Selected directory under the registered workspace, preserving the remote relative path. */\n\tworkspaceDirectory: WorkspaceDirectoryResolution;\n\t/** Git repository root used as `git worktree add` cwd. Host-local; never sent on the wire. */\n\tsourceRootPath: string;\n\t/** Registered-workspace-relative git repository root. Undefined means the registered workspace root. */\n\tsourceRootRelativePath?: string;\n\t/** Selected cwd relative to the git repository root. Undefined means the repo root. */\n\tworkingDirectoryRelativePath?: string;\n}\n\nconst DEFAULT_MAX_WORKTREES_PER_WORKSPACE = 16;\n\nconst SLUG_ADJECTIVES = [\"amber\", \"brisk\", \"calm\", \"dusky\", \"eager\", \"fresh\", \"keen\", \"lucid\", \"quiet\", \"swift\"];\nconst SLUG_NOUNS = [\"basin\", \"cedar\", \"delta\", \"ember\", \"grove\", \"harbor\", \"mesa\", \"ridge\", \"summit\", \"vale\"];\n\nfunction generateWorktreeIdSlug(): string {\n\tconst adjective = SLUG_ADJECTIVES[randomInt(SLUG_ADJECTIVES.length)];\n\tconst noun = SLUG_NOUNS[randomInt(SLUG_NOUNS.length)];\n\treturn `${adjective}-${noun}-${String(randomInt(100)).padStart(2, \"0\")}`;\n}\n\n/** Default runner: no shell, argv only, captured stdio. */\nexport function createDefaultWorktreeGitRunner(): WorktreeGitRunner {\n\treturn async (args, cwd) => {\n\t\ttry {\n\t\t\tconst child = spawnProcess(\"git\", args, { cwd, stdio: [\"ignore\", \"pipe\", \"pipe\"] });\n\t\t\tlet stdout = \"\";\n\t\t\tlet stderr = \"\";\n\t\t\tchild.stdout?.setEncoding(\"utf8\");\n\t\t\tchild.stderr?.setEncoding(\"utf8\");\n\t\t\tchild.stdout?.on(\"data\", (chunk: string) => {\n\t\t\t\tstdout += chunk;\n\t\t\t});\n\t\t\tchild.stderr?.on(\"data\", (chunk: string) => {\n\t\t\t\tstderr += chunk;\n\t\t\t});\n\t\t\tconst code = await waitForChildProcess(child);\n\t\t\treturn { ok: code === 0, code, stdout, stderr };\n\t\t} catch (error) {\n\t\t\tconst message = error instanceof Error ? error.message : String(error);\n\t\t\tconst detail = message.includes(\"ENOENT\") ? \"git not found on daemon PATH; see docs/daemon.md\" : message;\n\t\t\treturn { ok: false, code: null, stdout: \"\", stderr: detail };\n\t\t}\n\t};\n}\n\n/**\n * Basic `git check-ref-format`-equivalent syntax gate for branch/baseRef\n * values. Rejects option injection (leading '-') and git-invalid ref\n * sequences; values are always passed as separate argv entries.\n */\nexport function isValidGitRefSyntax(ref: string): boolean {\n\tif (ref.length === 0 || ref.length > 255 || ref.startsWith(\"-\")) {\n\t\treturn false;\n\t}\n\tif (/[\\s~^:?*[\\\\\\x00-\\x1f\\x7f]/.test(ref)) {\n\t\treturn false;\n\t}\n\tif (ref.includes(\"..\") || ref.includes(\"@{\") || ref.includes(\"//\")) {\n\t\treturn false;\n\t}\n\tif (ref.startsWith(\"/\") || ref.endsWith(\"/\") || ref.endsWith(\".\") || ref.endsWith(\".lock\")) {\n\t\treturn false;\n\t}\n\treturn true;\n}\n\nexport class WorktreeManager {\n\tprivate readonly agentDir: string;\n\tprivate readonly stateManager: IrohRemoteHostStateManager;\n\tprivate readonly auditLogger: IrohRemoteAuditLogger;\n\tprivate readonly runGit: WorktreeGitRunner;\n\tprivate readonly maxWorktreesPerWorkspace: number;\n\tprivate readonly hasActiveRuntimeForSession: ((workspaceName: string, sessionId: string) => boolean) | undefined;\n\tprivate readonly flushState: (() => Promise<void>) | undefined;\n\tprivate readonly now: () => number;\n\n\tconstructor(options: WorktreeManagerOptions) {\n\t\tthis.agentDir = options.agentDir;\n\t\tthis.stateManager = options.stateManager;\n\t\tthis.auditLogger = options.auditLogger;\n\t\tthis.runGit = options.runGit ?? createDefaultWorktreeGitRunner();\n\t\tthis.maxWorktreesPerWorkspace = options.maxWorktreesPerWorkspace ?? DEFAULT_MAX_WORKTREES_PER_WORKSPACE;\n\t\tthis.hasActiveRuntimeForSession = options.hasActiveRuntimeForSession;\n\t\tthis.flushState = options.flushState;\n\t\tthis.now = options.now ?? Date.now;\n\t}\n\n\t/** git worktree add; persists the record durably after git succeeds. */\n\tasync create(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\toptions: { id?: string; branch?: string; baseRef?: string; workingDirectory?: string } = {},\n\t): Promise<WorktreeResult<{ worktree: IrohRemoteWorkspaceWorktree }>> {\n\t\tconst id = options.id ?? generateWorktreeIdSlug();\n\t\tif (!WORKTREE_ID_PATTERN.test(id)) {\n\t\t\treturn { ok: false, error: \"invalid_worktree_id\" };\n\t\t}\n\t\tconst branch = options.branch ?? `volt/${id}`;\n\t\tconst baseRef = options.baseRef ?? \"HEAD\";\n\t\tif (!isValidGitRefSyntax(branch)) {\n\t\t\treturn { ok: false, error: \"git_failed\", detail: \"invalid branch ref syntax\" };\n\t\t}\n\t\tif (!isValidGitRefSyntax(baseRef)) {\n\t\t\treturn { ok: false, error: \"git_failed\", detail: \"invalid baseRef ref syntax\" };\n\t\t}\n\n\t\ttry {\n\t\t\tconst result = await this.stateManager.runWorkspaceWorktreeLifecycle<\n\t\t\t\tWorktreeResult<{ worktree: IrohRemoteWorkspaceWorktree }>\n\t\t\t>(workspace.name, async ({ workspace: registeredWorkspace, worktrees: existing }) => {\n\t\t\t\tif (existing.length >= this.maxWorktreesPerWorkspace) {\n\t\t\t\t\treturn { result: { ok: false, error: \"worktree_limit_reached\" } };\n\t\t\t\t}\n\t\t\t\tconst checkoutPath = getWorktreeCheckoutPath(this.agentDir, registeredWorkspace.path, id);\n\t\t\t\tif (existing.some((entry) => entry.id === id) || existsSync(checkoutPath)) {\n\t\t\t\t\treturn { result: { ok: false, error: \"worktree_exists\" } };\n\t\t\t\t}\n\n\t\t\t\tconst source = await this.resolveCreateSource(registeredWorkspace, options.workingDirectory);\n\t\t\t\tif (!source.ok) {\n\t\t\t\t\treturn { result: source };\n\t\t\t\t}\n\t\t\t\tconst repoCheck = await this.runGit([\"rev-parse\", \"--git-common-dir\"], source.source.sourceRootPath);\n\t\t\t\tif (!repoCheck.ok) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: this.mapGitFailure(repoCheck.stderr, registeredWorkspace, checkoutPath, [\n\t\t\t\t\t\t\tsource.source.sourceRootPath,\n\t\t\t\t\t\t]),\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\t// Resolve a defaulted base to a concrete ref (the source checkout's branch,\n\t\t\t\t// falling back to its commit sha) so merge-back guidance — aheadBehind,\n\t\t\t\t// retention merge checks, `worktree diff` — has a stable base later.\n\t\t\t\tconst recordedBaseRef = options.baseRef ?? (await this.resolveDefaultBaseRef(source.source.sourceRootPath));\n\n\t\t\t\tawait mkdir(getWorkspaceWorktreesDir(this.agentDir, registeredWorkspace.path), {\n\t\t\t\t\trecursive: true,\n\t\t\t\t\tmode: 0o700,\n\t\t\t\t});\n\t\t\t\tconst added = await this.runGit(\n\t\t\t\t\t[\"worktree\", \"add\", checkoutPath, \"-b\", branch, baseRef],\n\t\t\t\t\tsource.source.sourceRootPath,\n\t\t\t\t);\n\t\t\t\tif (!added.ok) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: this.mapGitFailure(added.stderr, registeredWorkspace, checkoutPath, [\n\t\t\t\t\t\t\tsource.source.sourceRootPath,\n\t\t\t\t\t\t]),\n\t\t\t\t\t};\n\t\t\t\t}\n\n\t\t\t\tconst worktree: IrohRemoteWorkspaceWorktree = {\n\t\t\t\t\tid,\n\t\t\t\t\tworkspaceName: registeredWorkspace.name,\n\t\t\t\t\tpath: checkoutPath,\n\t\t\t\t\t...(source.source.sourceRootRelativePath === undefined\n\t\t\t\t\t\t? {}\n\t\t\t\t\t\t: { sourceRootRelativePath: source.source.sourceRootRelativePath }),\n\t\t\t\t\tbranch,\n\t\t\t\t\t...(recordedBaseRef === undefined ? {} : { baseRef: recordedBaseRef }),\n\t\t\t\t\tcreatedAt: this.now(),\n\t\t\t\t\tsessionIds: [],\n\t\t\t\t};\n\t\t\t\treturn { result: { ok: true, worktree }, worktree };\n\t\t\t});\n\t\t\tif (result.ok) {\n\t\t\t\ttry {\n\t\t\t\t\tawait this.flushState?.();\n\t\t\t\t} catch {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tok: false,\n\t\t\t\t\t\terror: \"git_failed\",\n\t\t\t\t\t\tdetail: \"worktree state could not be flushed; the checkout and daemon record were preserved\",\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tif (isIrohRemoteWorktreeParentWorkspaceNotFoundError(error)) {\n\t\t\t\treturn { ok: false, error: \"worktree_source_unregistered\" };\n\t\t\t}\n\t\t\tif (isIrohRemoteWorktreePersistenceError(error)) {\n\t\t\t\treturn {\n\t\t\t\t\tok: false,\n\t\t\t\t\terror: \"git_failed\",\n\t\t\t\t\tdetail: \"worktree state could not be persisted; the created checkout was preserved for recovery\",\n\t\t\t\t};\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\t/** Adopt an existing git worktree checkout into daemon state; local control socket only. */\n\tasync adopt(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\toptions: { path: string; id?: string; baseRef?: string },\n\t): Promise<WorktreeResult<{ worktree: IrohRemoteWorkspaceWorktree }>> {\n\t\tconst requestedPath = resolve(options.path);\n\t\tif (options.id !== undefined && !WORKTREE_ID_PATTERN.test(options.id)) {\n\t\t\treturn { ok: false, error: \"invalid_worktree_id\" };\n\t\t}\n\t\tif (options.baseRef !== undefined && !isValidGitRefSyntax(options.baseRef)) {\n\t\t\treturn { ok: false, error: \"git_failed\", detail: \"invalid baseRef ref syntax\" };\n\t\t}\n\t\tif (!existsSync(requestedPath)) {\n\t\t\treturn { ok: false, error: \"worktree_not_found\", detail: \"checkout path does not exist\" };\n\t\t}\n\n\t\ttry {\n\t\t\tconst result = await this.stateManager.runWorkspaceWorktreeLifecycle<\n\t\t\t\tWorktreeResult<{ worktree: IrohRemoteWorkspaceWorktree }>\n\t\t\t>(workspace.name, async ({ workspace: registeredWorkspace, worktrees: existing }) => {\n\t\t\t\tif (existing.length >= this.maxWorktreesPerWorkspace) {\n\t\t\t\t\treturn { result: { ok: false, error: \"worktree_limit_reached\" } };\n\t\t\t\t}\n\n\t\t\t\tconst topLevel = await this.runGit([\"rev-parse\", \"--show-toplevel\"], requestedPath);\n\t\t\t\tif (!topLevel.ok) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: this.mapGitFailure(topLevel.stderr, registeredWorkspace, requestedPath, [requestedPath]),\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst targetRootPath = await realpathOrResolve(topLevel.stdout.trim());\n\t\t\t\tif (existing.some((entry) => entry.id === options.id || isSamePath(entry.path, targetRootPath))) {\n\t\t\t\t\treturn { result: { ok: false, error: \"worktree_exists\" } };\n\t\t\t\t}\n\t\t\t\tconst id =\n\t\t\t\t\toptions.id ?? deriveAdoptedWorktreeId(targetRootPath, new Set(existing.map((entry) => entry.id)));\n\t\t\t\tif (!WORKTREE_ID_PATTERN.test(id)) {\n\t\t\t\t\treturn { result: { ok: false, error: \"invalid_worktree_id\" } };\n\t\t\t\t}\n\n\t\t\t\tconst gitList = await this.runGit([\"worktree\", \"list\", \"--porcelain\"], targetRootPath);\n\t\t\t\tif (!gitList.ok) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: this.mapGitFailure(gitList.stderr, registeredWorkspace, targetRootPath, [\n\t\t\t\t\t\t\trequestedPath,\n\t\t\t\t\t\t\ttargetRootPath,\n\t\t\t\t\t\t]),\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst entries = parseWorktreeListEntries(gitList.stdout);\n\t\t\t\tconst targetEntry = await findWorktreeListEntryByPath(entries, targetRootPath);\n\t\t\t\tif (targetEntry === undefined) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: {\n\t\t\t\t\t\t\tok: false,\n\t\t\t\t\t\t\terror: \"worktree_not_found\",\n\t\t\t\t\t\t\tdetail: \"checkout is not listed by git worktree\",\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst workspaceRootPath = await realpathOrResolve(registeredWorkspace.path);\n\t\t\t\tconst sourceRootPath = await findAdoptSourceRootPath(entries, workspaceRootPath, targetRootPath);\n\t\t\t\tif (sourceRootPath === undefined) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: {\n\t\t\t\t\t\t\tok: false,\n\t\t\t\t\t\t\terror: \"worktree_source_unregistered\",\n\t\t\t\t\t\t\tdetail: \"worktree source checkout is not inside the registered workspace\",\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst sourceRootRelativePath = await findWorkspaceRelativePathForRealpath(\n\t\t\t\t\tworkspaceRootPath,\n\t\t\t\t\tundefined,\n\t\t\t\t\tsourceRootPath,\n\t\t\t\t);\n\t\t\t\tif (sourceRootRelativePath === null) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: {\n\t\t\t\t\t\t\tok: false,\n\t\t\t\t\t\t\terror: \"worktree_source_unregistered\",\n\t\t\t\t\t\t\tdetail: \"worktree source checkout is not inside the registered workspace\",\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst branch = targetEntry.branch ?? targetEntry.detached ?? \"HEAD\";\n\t\t\t\tif (!isValidGitRefSyntax(branch)) {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tresult: { ok: false, error: \"git_failed\", detail: \"invalid worktree branch ref syntax\" },\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\tconst baseRef = options.baseRef ?? (await this.resolveDefaultBaseRef(sourceRootPath));\n\n\t\t\t\tconst worktree: IrohRemoteWorkspaceWorktree = {\n\t\t\t\t\tid,\n\t\t\t\t\tworkspaceName: registeredWorkspace.name,\n\t\t\t\t\tpath: targetRootPath,\n\t\t\t\t\t...(sourceRootRelativePath === undefined ? {} : { sourceRootRelativePath }),\n\t\t\t\t\tbranch,\n\t\t\t\t\t...(baseRef === undefined ? {} : { baseRef }),\n\t\t\t\t\tcreatedAt: this.now(),\n\t\t\t\t\tsessionIds: [],\n\t\t\t\t};\n\t\t\t\treturn { result: { ok: true, worktree }, worktree };\n\t\t\t});\n\t\t\tif (result.ok) {\n\t\t\t\ttry {\n\t\t\t\t\tawait this.flushState?.();\n\t\t\t\t} catch {\n\t\t\t\t\treturn {\n\t\t\t\t\t\tok: false,\n\t\t\t\t\t\terror: \"git_failed\",\n\t\t\t\t\t\tdetail: \"worktree state could not be flushed; the existing checkout and daemon record were preserved\",\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn result;\n\t\t} catch (error) {\n\t\t\tif (isIrohRemoteWorktreeParentWorkspaceNotFoundError(error)) {\n\t\t\t\treturn { ok: false, error: \"worktree_source_unregistered\" };\n\t\t\t}\n\t\t\tif (isIrohRemoteWorktreePersistenceError(error)) {\n\t\t\t\treturn {\n\t\t\t\t\tok: false,\n\t\t\t\t\terror: \"git_failed\",\n\t\t\t\t\tdetail: \"worktree state could not be persisted; the existing checkout was left unchanged\",\n\t\t\t\t};\n\t\t\t}\n\t\t\tthrow error;\n\t\t}\n\t}\n\n\tasync validateWorkingDirectory(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworkingDirectory?: string,\n\t): Promise<WorktreeResult<{ directory: WorkspaceDirectoryResolution }>> {\n\t\tconst resolved = await resolveWorkspaceDirectory(workspace.path, workingDirectory);\n\t\tif (!resolved.ok) {\n\t\t\treturn { ok: false, error: \"invalid_working_directory\", detail: resolved.error };\n\t\t}\n\t\treturn { ok: true, directory: resolved.value };\n\t}\n\n\tasync resolveWorktreeWorkingDirectory(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworktree: IrohRemoteWorkspaceWorktree,\n\t\tworkingDirectory?: string,\n\t): Promise<WorktreeResult<{ directory: WorkspaceDirectoryResolution }>> {\n\t\tif (workingDirectory === undefined) {\n\t\t\tconst rootDirectory = await resolveWorkspaceDirectory(worktree.path);\n\t\t\treturn rootDirectory.ok\n\t\t\t\t? { ok: true, directory: rootDirectory.value }\n\t\t\t\t: { ok: false, error: \"invalid_working_directory\", detail: rootDirectory.error };\n\t\t}\n\t\tconst parentDirectory = await this.validateWorkingDirectory(workspace, workingDirectory);\n\t\tif (!parentDirectory.ok) {\n\t\t\treturn parentDirectory;\n\t\t}\n\t\tconst sourceRootPath = await this.resolveRecordSourceRootPath(workspace, worktree);\n\t\tif (sourceRootPath === undefined || !isPathContained(sourceRootPath, parentDirectory.directory.absolutePath)) {\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: \"invalid_working_directory\",\n\t\t\t\tdetail: \"workingDirectory is outside the worktree source repository\",\n\t\t\t};\n\t\t}\n\t\tconst worktreeRelativePath = getContainedRelativePath(sourceRootPath, parentDirectory.directory.absolutePath);\n\t\tif (worktreeRelativePath === null) {\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: \"invalid_working_directory\",\n\t\t\t\tdetail: \"workingDirectory is outside the worktree source repository\",\n\t\t\t};\n\t\t}\n\t\tconst worktreeDirectory = await resolveWorkspaceDirectory(worktree.path, worktreeRelativePath);\n\t\treturn worktreeDirectory.ok\n\t\t\t? { ok: true, directory: worktreeDirectory.value }\n\t\t\t: { ok: false, error: \"invalid_working_directory\", detail: worktreeDirectory.error };\n\t}\n\n\tprivate async resolveCreateSource(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworkingDirectory?: string,\n\t): Promise<WorktreeResult<{ source: WorktreeSourceResolution }>> {\n\t\tconst workspaceDirectory = await this.validateWorkingDirectory(workspace, workingDirectory);\n\t\tif (!workspaceDirectory.ok) {\n\t\t\treturn workspaceDirectory;\n\t\t}\n\t\tconst topLevel = await this.runGit(\n\t\t\t[\"-C\", workspaceDirectory.directory.absolutePath, \"rev-parse\", \"--show-toplevel\"],\n\t\t\tworkspace.path,\n\t\t);\n\t\tif (!topLevel.ok) {\n\t\t\tconst detail = sanitizeGitDetail(topLevel.stderr, [\n\t\t\t\tworkspace.path,\n\t\t\t\tworkspaceDirectory.directory.absolutePath,\n\t\t\t\tgetWorktreesRoot(this.agentDir),\n\t\t\t]);\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: topLevel.stderr.toLowerCase().includes(\"not a git repository\")\n\t\t\t\t\t? \"not_a_git_repository\"\n\t\t\t\t\t: \"git_failed\",\n\t\t\t\t...(detail.length === 0 ? {} : { detail }),\n\t\t\t};\n\t\t}\n\t\tconst workspaceRootPath = await realpathOrResolve(workspace.path);\n\t\tconst sourceRootPath = await realpathOrResolve(topLevel.stdout.trim());\n\t\tif (!isPathContained(workspaceRootPath, sourceRootPath)) {\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: \"invalid_working_directory\",\n\t\t\t\tdetail: \"git repository is outside the registered workspace\",\n\t\t\t};\n\t\t}\n\t\tconst sourceRootRelativePath = await findWorkspaceRelativePathForRealpath(\n\t\t\tworkspaceRootPath,\n\t\t\tworkspaceDirectory.directory.relativePath,\n\t\t\tsourceRootPath,\n\t\t);\n\t\tif (sourceRootRelativePath === null) {\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: \"invalid_working_directory\",\n\t\t\t\tdetail: \"git repository is outside the registered workspace\",\n\t\t\t};\n\t\t}\n\t\tconst workingDirectoryRelativePath = getContainedRelativePath(\n\t\t\tsourceRootPath,\n\t\t\tworkspaceDirectory.directory.absolutePath,\n\t\t);\n\t\tif (workingDirectoryRelativePath === null) {\n\t\t\treturn {\n\t\t\t\tok: false,\n\t\t\t\terror: \"invalid_working_directory\",\n\t\t\t\tdetail: \"workingDirectory is outside the source repository\",\n\t\t\t};\n\t\t}\n\t\treturn {\n\t\t\tok: true,\n\t\t\tsource: {\n\t\t\t\tworkspaceDirectory: workspaceDirectory.directory,\n\t\t\t\tsourceRootPath,\n\t\t\t\t...(sourceRootRelativePath === undefined ? {} : { sourceRootRelativePath }),\n\t\t\t\t...(workingDirectoryRelativePath === undefined ? {} : { workingDirectoryRelativePath }),\n\t\t\t},\n\t\t};\n\t}\n\n\tasync list(workspace: IrohRemoteWorkspace): Promise<WorktreeStatus[]> {\n\t\tconst records = await this.stateManager.listWorktrees(workspace.name);\n\t\tconst gitListBySourceRoot = new Map<string, Set<string> | undefined>();\n\t\tconst statuses: WorktreeStatus[] = [];\n\t\tfor (const record of records) {\n\t\t\tconst sourceRootPath = await this.resolveRecordSourceRootPath(workspace, record);\n\t\t\tconst knownCheckouts =\n\t\t\t\tsourceRootPath === undefined\n\t\t\t\t\t? undefined\n\t\t\t\t\t: await this.getKnownWorktreeCheckouts(sourceRootPath, gitListBySourceRoot);\n\t\t\tconst onDisk = existsSync(record.path);\n\t\t\tconst available =\n\t\t\t\tonDisk &&\n\t\t\t\tsourceRootPath !== undefined &&\n\t\t\t\t(knownCheckouts === undefined || knownCheckouts.has(resolve(record.path)));\n\t\t\tlet dirty: boolean | undefined;\n\t\t\tlet aheadBehind: { ahead: number; behind: number } | undefined;\n\t\t\tif (available) {\n\t\t\t\t// --no-optional-locks is a git-level option and must precede the subcommand.\n\t\t\t\tconst status = await this.runGit(\n\t\t\t\t\t[\"-C\", record.path, \"--no-optional-locks\", \"status\", \"--porcelain\"],\n\t\t\t\t\tsourceRootPath,\n\t\t\t\t);\n\t\t\t\tdirty = status.ok ? status.stdout.trim().length > 0 : undefined;\n\t\t\t\taheadBehind = await this.computeAheadBehind(sourceRootPath, record);\n\t\t\t}\n\t\t\tstatuses.push({\n\t\t\t\t...record,\n\t\t\t\tavailable,\n\t\t\t\t...(dirty === undefined ? {} : { dirty }),\n\t\t\t\t...(aheadBehind === undefined ? {} : { aheadBehind }),\n\t\t\t});\n\t\t}\n\t\treturn statuses;\n\t}\n\n\tprivate async getKnownWorktreeCheckouts(\n\t\tsourceRootPath: string,\n\t\tcache: Map<string, Set<string> | undefined>,\n\t): Promise<Set<string> | undefined> {\n\t\tconst key = resolve(sourceRootPath);\n\t\tif (cache.has(key)) {\n\t\t\treturn cache.get(key);\n\t\t}\n\t\tconst gitList = await this.runGit([\"worktree\", \"list\", \"--porcelain\"], sourceRootPath);\n\t\tconst knownCheckouts = gitList.ok ? parseWorktreeListCheckouts(gitList.stdout) : undefined;\n\t\tcache.set(key, knownCheckouts);\n\t\treturn knownCheckouts;\n\t}\n\n\tprivate async resolveRecordSourceRootPath(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\trecord: IrohRemoteWorkspaceWorktree,\n\t): Promise<string | undefined> {\n\t\tconst resolved = await resolveWorkspaceDirectory(workspace.path, record.sourceRootRelativePath);\n\t\treturn resolved.ok ? resolved.value.absolutePath : undefined;\n\t}\n\n\t/** Concrete base for a defaulted create: current branch name, else commit sha. */\n\tprivate async resolveDefaultBaseRef(sourceRootPath: string): Promise<string | undefined> {\n\t\tconst symbolic = await this.runGit([\"symbolic-ref\", \"--short\", \"-q\", \"HEAD\"], sourceRootPath);\n\t\tconst shortRef = symbolic.ok ? symbolic.stdout.trim() : \"\";\n\t\tif (shortRef.length > 0 && isValidGitRefSyntax(shortRef)) {\n\t\t\treturn shortRef;\n\t\t}\n\t\tconst sha = await this.runGit([\"rev-parse\", \"HEAD\"], sourceRootPath);\n\t\tconst shaValue = sha.ok ? sha.stdout.trim() : \"\";\n\t\treturn /^[0-9a-f]{4,64}$/i.test(shaValue) ? shaValue : undefined;\n\t}\n\n\t/**\n\t * Merge-back guidance (design §5.3): branch commits relative to the base\n\t * ref, computed read-only in the source checkout. `left...right` with\n\t * left = base and right = branch yields \"behind<TAB>ahead\".\n\t */\n\tprivate async computeAheadBehind(\n\t\tsourceRootPath: string,\n\t\trecord: IrohRemoteWorkspaceWorktree,\n\t): Promise<{ ahead: number; behind: number } | undefined> {\n\t\tconst baseRef = record.baseRef ?? \"HEAD\";\n\t\tconst counted = await this.runGit(\n\t\t\t[\"rev-list\", \"--left-right\", \"--count\", `${baseRef}...${record.branch}`],\n\t\t\tsourceRootPath,\n\t\t);\n\t\tif (!counted.ok) {\n\t\t\treturn undefined;\n\t\t}\n\t\tconst match = counted.stdout.trim().match(/^(\\d+)\\s+(\\d+)$/);\n\t\tif (!match?.[1] || !match[2]) {\n\t\t\treturn undefined;\n\t\t}\n\t\treturn { behind: Number.parseInt(match[1], 10), ahead: Number.parseInt(match[2], 10) };\n\t}\n\n\t/** Refuses dirty/busy unless force; `git worktree remove [--force]`, then drops the record. */\n\tasync remove(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworktreeId: string,\n\t\toptions: { force?: boolean } = {},\n\t): Promise<WorktreeResult<Record<never, never>>> {\n\t\tconst force = options.force === true;\n\t\tconst records = await this.stateManager.listWorktrees(workspace.name);\n\t\tconst record = records.find((entry) => entry.id === worktreeId);\n\t\tif (!record) {\n\t\t\treturn { ok: false, error: \"worktree_not_found\" };\n\t\t}\n\t\tif (!force && this.hasActiveRuntimeForSession) {\n\t\t\tconst busy = record.sessionIds.some((sessionId) =>\n\t\t\t\tthis.hasActiveRuntimeForSession?.(workspace.name, sessionId),\n\t\t\t);\n\t\t\tif (busy) {\n\t\t\t\treturn { ok: false, error: \"worktree_busy\" };\n\t\t\t}\n\t\t}\n\t\tconst sourceRootPath = await this.resolveRecordSourceRootPath(workspace, record);\n\t\tif (existsSync(record.path)) {\n\t\t\tif (sourceRootPath === undefined) {\n\t\t\t\treturn { ok: false, error: \"not_a_git_repository\", detail: \"worktree source repository is unavailable\" };\n\t\t\t}\n\t\t\tif (!force) {\n\t\t\t\tconst status = await this.runGit(\n\t\t\t\t\t[\"-C\", record.path, \"--no-optional-locks\", \"status\", \"--porcelain\"],\n\t\t\t\t\tsourceRootPath,\n\t\t\t\t);\n\t\t\t\tif (status.ok && status.stdout.trim().length > 0) {\n\t\t\t\t\treturn { ok: false, error: \"worktree_dirty\", detail: \"dirty\" };\n\t\t\t\t}\n\t\t\t}\n\t\t\tconst args = force ? [\"worktree\", \"remove\", \"--force\", record.path] : [\"worktree\", \"remove\", record.path];\n\t\t\tconst removed = await this.runGit(args, sourceRootPath);\n\t\t\tif (!removed.ok) {\n\t\t\t\treturn this.mapGitFailure(removed.stderr, workspace, record.path, [sourceRootPath]);\n\t\t\t}\n\t\t} else {\n\t\t\t// Checkout vanished out-of-band: clear the stale gitdir entry best-effort.\n\t\t\tif (sourceRootPath !== undefined) {\n\t\t\t\tawait this.runGit([\"worktree\", \"prune\"], sourceRootPath).catch(() => undefined);\n\t\t\t}\n\t\t}\n\t\tawait this.stateManager.removeWorktree(workspace.name, worktreeId);\n\t\tawait this.flushState?.();\n\t\treturn { ok: true };\n\t}\n\n\t/**\n\t * Reconcile persisted records vs filesystem vs `git worktree list`. Drops\n\t * records without checkouts, quarantines unrecognized checkout directories\n\t * (rename, never delete), and runs `git worktree prune` in each known source checkout.\n\t */\n\tasync prune(workspace: IrohRemoteWorkspace): Promise<{ removedRecords: string[]; orphanCheckouts: string[] }> {\n\t\tconst records = await this.stateManager.listWorktrees(workspace.name);\n\t\tconst removedRecords: string[] = [];\n\t\tconst sourceRootPaths = new Set<string>();\n\t\tfor (const record of records) {\n\t\t\tconst sourceRootPath = await this.resolveRecordSourceRootPath(workspace, record);\n\t\t\tif (sourceRootPath !== undefined) {\n\t\t\t\tsourceRootPaths.add(sourceRootPath);\n\t\t\t}\n\t\t\tif (!existsSync(record.path)) {\n\t\t\t\tawait this.stateManager.removeWorktree(workspace.name, record.id);\n\t\t\t\tremovedRecords.push(record.id);\n\t\t\t}\n\t\t}\n\t\tconst parentSourceRootPath = await this.resolveRecordSourceRootPath(workspace, {\n\t\t\tid: \"root\",\n\t\t\tworkspaceName: workspace.name,\n\t\t\tpath: workspace.path,\n\t\t\tbranch: \"HEAD\",\n\t\t\tcreatedAt: 0,\n\t\t\tsessionIds: [],\n\t\t});\n\t\tif (parentSourceRootPath !== undefined) {\n\t\t\tsourceRootPaths.add(parentSourceRootPath);\n\t\t}\n\t\tconst orphanCheckouts: string[] = [];\n\t\tconst workspaceDir = getWorkspaceWorktreesDir(this.agentDir, workspace.path);\n\t\tconst recordedPaths = new Set(records.map((record) => resolve(record.path)));\n\t\tif (existsSync(workspaceDir)) {\n\t\t\tfor (const entry of await readdir(workspaceDir, { withFileTypes: true })) {\n\t\t\t\tif (!entry.isDirectory() || entry.name.includes(\".orphan-\")) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst entryPath = resolve(join(workspaceDir, entry.name));\n\t\t\t\tif (recordedPaths.has(entryPath)) {\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tconst quarantinePath = `${entryPath}.orphan-${this.now()}`;\n\t\t\t\ttry {\n\t\t\t\t\tawait rename(entryPath, quarantinePath);\n\t\t\t\t\torphanCheckouts.push(entry.name);\n\t\t\t\t} catch {\n\t\t\t\t\t// Quarantine is best-effort; a busy directory stays put for the next prune.\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (const sourceRootPath of sourceRootPaths) {\n\t\t\tawait this.runGit([\"worktree\", \"prune\"], sourceRootPath).catch(() => undefined);\n\t\t}\n\t\tif (removedRecords.length > 0) {\n\t\t\tawait this.flushState?.();\n\t\t}\n\t\tawait this.logAudit({\n\t\t\ttype: \"worktree_pruned\",\n\t\t\tworkspace: workspace.name,\n\t\t\tsuccess: true,\n\t\t\tdetails: { removedRecords, orphanCheckouts },\n\t\t});\n\t\treturn { removedRecords, orphanCheckouts };\n\t}\n\n\t/**\n\t * Retention removal (design §5.3): remove a worktree ONLY when it is not\n\t * busy, has no uncommitted work, and its branch is fully merged into the\n\t * base ref. Never forces; a skip returns the reason for the audit trail.\n\t */\n\tasync removeIfCleanAndMerged(\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworktreeId: string,\n\t): Promise<{ removed: true } | { removed: false; reason: string }> {\n\t\tconst record = (await this.stateManager.listWorktrees(workspace.name)).find((entry) => entry.id === worktreeId);\n\t\tif (!record) {\n\t\t\treturn { removed: false, reason: \"worktree_not_found\" };\n\t\t}\n\t\tif (\n\t\t\tthis.hasActiveRuntimeForSession &&\n\t\t\trecord.sessionIds.some((sessionId) => this.hasActiveRuntimeForSession?.(workspace.name, sessionId))\n\t\t) {\n\t\t\treturn { removed: false, reason: \"busy\" };\n\t\t}\n\t\tif (!existsSync(record.path)) {\n\t\t\treturn { removed: false, reason: \"checkout_missing\" };\n\t\t}\n\t\tconst sourceRootPath = await this.resolveRecordSourceRootPath(workspace, record);\n\t\tif (sourceRootPath === undefined) {\n\t\t\treturn { removed: false, reason: \"source_unavailable\" };\n\t\t}\n\t\tconst status = await this.runGit(\n\t\t\t[\"-C\", record.path, \"--no-optional-locks\", \"status\", \"--porcelain\"],\n\t\t\tsourceRootPath,\n\t\t);\n\t\tif (!status.ok || status.stdout.trim().length > 0) {\n\t\t\treturn { removed: false, reason: \"dirty\" };\n\t\t}\n\t\tconst merged = await this.runGit(\n\t\t\t[\"merge-base\", \"--is-ancestor\", record.branch, record.baseRef ?? \"HEAD\"],\n\t\t\tsourceRootPath,\n\t\t);\n\t\tif (!merged.ok) {\n\t\t\treturn { removed: false, reason: \"unmerged\" };\n\t\t}\n\t\tconst removedResult = await this.remove(workspace, worktreeId, { force: false });\n\t\tif (!removedResult.ok) {\n\t\t\treturn { removed: false, reason: removedResult.error };\n\t\t}\n\t\treturn { removed: true };\n\t}\n\n\t/** Lookup used by conversation open/resume and relay preamble resolution. */\n\tasync resolveSessionWorktree(\n\t\tworkspaceName: string,\n\t\tsessionId: string,\n\t): Promise<IrohRemoteWorkspaceWorktree | undefined> {\n\t\treturn this.stateManager.findWorktreeForSession(workspaceName, sessionId);\n\t}\n\n\tasync bindSession(workspaceName: string, worktreeId: string, sessionId: string): Promise<void> {\n\t\tawait this.stateManager.bindWorktreeSession(workspaceName, worktreeId, sessionId);\n\t\tawait this.flushState?.();\n\t}\n\n\tasync findWorktree(workspaceName: string, worktreeId: string): Promise<IrohRemoteWorkspaceWorktree | undefined> {\n\t\tconst records = await this.stateManager.listWorktrees(workspaceName);\n\t\treturn records.find((entry) => entry.id === worktreeId);\n\t}\n\n\t/**\n\t * Compatibility guard for post-unregister callers. Workspace unregister is\n\t * deliberately non-destructive: persisted worktrees block the state mutation,\n\t * and unknown checkout directories are preserved for manual reconciliation.\n\t */\n\tasync cleanupUnregisteredWorkspace(workspace: IrohRemoteWorkspace): Promise<void> {\n\t\tconst workspaceDir = getWorkspaceWorktreesDir(this.agentDir, workspace.path);\n\t\tif (!existsSync(workspaceDir)) {\n\t\t\treturn;\n\t\t}\n\t\tlet preservedEntryCount = 0;\n\t\ttry {\n\t\t\tpreservedEntryCount = (await readdir(workspaceDir)).length;\n\t\t} catch {\n\t\t\t// Inspection is best-effort. Failure still leaves every path untouched.\n\t\t}\n\t\tconst persistedWorktreeIds = (await this.stateManager.listWorktrees(workspace.name))\n\t\t\t.map((worktree) => worktree.id)\n\t\t\t.sort();\n\t\tawait this.logAudit({\n\t\t\ttype: \"worktree_unregister_cleanup_skipped\",\n\t\t\tworkspace: workspace.name,\n\t\t\tsuccess: false,\n\t\t\terror: \"workspace unregister never removes worktree checkouts\",\n\t\t\tdetails: {\n\t\t\t\tpersistedWorktreeIds,\n\t\t\t\tpreservedEntryCount,\n\t\t\t\treason: \"non_destructive_workspace_unregister\",\n\t\t\t},\n\t\t});\n\t}\n\n\tprivate mapGitFailure(\n\t\tstderr: string,\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tcheckoutPath: string,\n\t\textraPaths: string[] = [],\n\t): { ok: false; error: WorktreeError; detail: string } {\n\t\tconst detail = sanitizeGitDetail(stderr, [\n\t\t\tcheckoutPath,\n\t\t\tworkspace.path,\n\t\t\t...extraPaths,\n\t\t\tgetWorktreesRoot(this.agentDir),\n\t\t]);\n\t\tconst lower = stderr.toLowerCase();\n\t\tif (lower.includes(\"not a git repository\")) {\n\t\t\treturn { ok: false, error: \"not_a_git_repository\", detail };\n\t\t}\n\t\tif (lower.includes(\"already exists\")) {\n\t\t\treturn lower.includes(\"branch\") || lower.includes(\"-b\")\n\t\t\t\t? { ok: false, error: \"worktree_branch_conflict\", detail }\n\t\t\t\t: { ok: false, error: \"worktree_exists\", detail };\n\t\t}\n\t\tif (lower.includes(\"contains modified or untracked files\")) {\n\t\t\treturn { ok: false, error: \"worktree_dirty\", detail };\n\t\t}\n\t\treturn { ok: false, error: \"git_failed\", detail };\n\t}\n\n\tprivate async logAudit(event: Parameters<IrohRemoteAuditLogger[\"log\"]>[0]): Promise<void> {\n\t\ttry {\n\t\t\tawait this.auditLogger.log(event);\n\t\t} catch {\n\t\t\t// Audit logging is best-effort.\n\t\t}\n\t}\n}\n\nasync function realpathOrResolve(path: string): Promise<string> {\n\ttry {\n\t\treturn await realpath(path);\n\t} catch {\n\t\treturn resolve(path);\n\t}\n}\n\nfunction getContainedRelativePath(root: string, child: string): string | null | undefined {\n\tconst relativePath = relative(resolve(root), resolve(child));\n\tif (relativePath.length === 0 || relativePath === \".\") {\n\t\treturn undefined;\n\t}\n\tif (relativePath === \"..\" || relativePath.startsWith(`..${sep}`) || isAbsolute(relativePath)) {\n\t\treturn null;\n\t}\n\treturn relativePath.split(sep).join(\"/\");\n}\n\nasync function findWorkspaceRelativePathForRealpath(\n\tworkspaceRootPath: string,\n\tselectedRelativePath: string | undefined,\n\ttargetRealpath: string,\n): Promise<string | null | undefined> {\n\tconst selectedSegments = selectedRelativePath?.split(\"/\") ?? [];\n\tfor (let count = selectedSegments.length; count >= 0; count -= 1) {\n\t\tconst candidateRelativePath = count === 0 ? undefined : selectedSegments.slice(0, count).join(\"/\");\n\t\tconst candidatePath =\n\t\t\tcandidateRelativePath === undefined ? workspaceRootPath : resolve(workspaceRootPath, candidateRelativePath);\n\t\ttry {\n\t\t\tconst candidateRealpath = await realpath(candidatePath);\n\t\t\tif (isSamePath(candidateRealpath, targetRealpath)) {\n\t\t\t\treturn candidateRelativePath;\n\t\t\t}\n\t\t} catch {\n\t\t\t// Ignore missing ancestors and fall back to the canonical realpath-relative form below.\n\t\t}\n\t}\n\treturn getContainedRelativePath(workspaceRootPath, targetRealpath);\n}\n\nfunction isSamePath(left: string, right: string): boolean {\n\tconst resolvedLeft = resolve(left);\n\tconst resolvedRight = resolve(right);\n\treturn process.platform === \"win32\"\n\t\t? resolvedLeft.toLowerCase() === resolvedRight.toLowerCase()\n\t\t: resolvedLeft === resolvedRight;\n}\n\ninterface GitWorktreeListEntry {\n\tpath: string;\n\tbranch?: string;\n\tdetached?: string;\n}\n\nfunction parseWorktreeListEntries(porcelainOutput: string): GitWorktreeListEntry[] {\n\tconst entries: GitWorktreeListEntry[] = [];\n\tlet current: GitWorktreeListEntry | undefined;\n\tconst pushCurrent = () => {\n\t\tif (current !== undefined) {\n\t\t\tentries.push(current);\n\t\t\tcurrent = undefined;\n\t\t}\n\t};\n\tfor (const line of porcelainOutput.split(\"\\n\")) {\n\t\tif (line.length === 0) {\n\t\t\tpushCurrent();\n\t\t\tcontinue;\n\t\t}\n\t\tif (line.startsWith(\"worktree \")) {\n\t\t\tpushCurrent();\n\t\t\tcurrent = { path: line.slice(\"worktree \".length).trim() };\n\t\t\tcontinue;\n\t\t}\n\t\tif (current === undefined) {\n\t\t\tcontinue;\n\t\t}\n\t\tif (line.startsWith(\"branch \")) {\n\t\t\tconst ref = line.slice(\"branch \".length).trim();\n\t\t\tcurrent.branch = ref.startsWith(\"refs/heads/\") ? ref.slice(\"refs/heads/\".length) : ref;\n\t\t\tcontinue;\n\t\t}\n\t\tif (line.startsWith(\"detached \")) {\n\t\t\tcurrent.detached = line.slice(\"detached \".length).trim();\n\t\t}\n\t}\n\tpushCurrent();\n\treturn entries;\n}\n\nfunction parseWorktreeListCheckouts(porcelainOutput: string): Set<string> {\n\treturn new Set(parseWorktreeListEntries(porcelainOutput).map((entry) => resolve(entry.path)));\n}\n\nasync function findWorktreeListEntryByPath(\n\tentries: readonly GitWorktreeListEntry[],\n\tpath: string,\n): Promise<GitWorktreeListEntry | undefined> {\n\tfor (const entry of entries) {\n\t\tif (isSamePath(await realpathOrResolve(entry.path), path)) {\n\t\t\treturn entry;\n\t\t}\n\t}\n\treturn undefined;\n}\n\nasync function findAdoptSourceRootPath(\n\tentries: readonly GitWorktreeListEntry[],\n\tworkspaceRootPath: string,\n\ttargetRootPath: string,\n): Promise<string | undefined> {\n\tfor (const entry of entries) {\n\t\tconst entryPath = await realpathOrResolve(entry.path);\n\t\tif (!isSamePath(entryPath, targetRootPath) && isPathContained(workspaceRootPath, entryPath)) {\n\t\t\treturn entryPath;\n\t\t}\n\t}\n\treturn undefined;\n}\n\nfunction deriveAdoptedWorktreeId(path: string, usedIds: ReadonlySet<string>): string {\n\tconst baseName = basename(path)\n\t\t.toLowerCase()\n\t\t.replace(/[^a-z0-9._-]+/g, \"-\")\n\t\t.replace(/^[^a-z0-9]+/, \"\")\n\t\t.slice(0, 64);\n\tconst base = WORKTREE_ID_PATTERN.test(baseName) ? baseName : \"adopted\";\n\tfor (let index = 0; index < 100; index++) {\n\t\tconst suffix = index === 0 ? \"\" : `-${index}`;\n\t\tconst candidate = `${base.slice(0, 64 - suffix.length)}${suffix}`;\n\t\tif (WORKTREE_ID_PATTERN.test(candidate) && !usedIds.has(candidate)) {\n\t\t\treturn candidate;\n\t\t}\n\t}\n\treturn generateWorktreeIdSlug();\n}\n\n/** Strip host paths from git stderr before it lands in an RPC detail field. */\nfunction sanitizeGitDetail(stderr: string, paths: string[]): string {\n\tlet detail = stderr.trim();\n\tfor (const path of paths) {\n\t\twhile (detail.includes(path)) {\n\t\t\tdetail = detail.replace(path, \"<redacted>\");\n\t\t}\n\t}\n\treturn detail;\n}\n\nexport interface WorktreeRetentionSweeperOptions {\n\tmanager: WorktreeManager;\n\tstateManager: IrohRemoteHostStateManager;\n\tauditLogger: IrohRemoteAuditLogger;\n\t/** Resolved at sweep time so settings changes apply without a restart. */\n\tgetRetentionPolicy: () => { enabled: boolean; ttlMs: number } | undefined;\n\t/** Injectable timers (tests). */\n\tsetTimer?: (callback: () => void, ttlMs: number) => NodeJS.Timeout;\n\tclearTimer?: (timer: NodeJS.Timeout) => void;\n}\n\n/**\n * Opt-in worktree retention (design §5.3): when a worktree-bound runtime is\n * disposed, schedule a TTL sweep that removes the worktree ONLY when it is\n * clean and fully merged into its base ref; otherwise the skip is audited as\n * worktree_retention_skipped_dirty and the checkout stays put.\n */\nexport class WorktreeRetentionSweeper {\n\tprivate readonly options: WorktreeRetentionSweeperOptions;\n\tprivate readonly timers = new Map<string, NodeJS.Timeout>();\n\tprivate disposed = false;\n\n\tconstructor(options: WorktreeRetentionSweeperOptions) {\n\t\tthis.options = options;\n\t}\n\n\t/** Hooked to IntegratedRuntimeRegistry.onRuntimeDisposed for worktree-bound entries. */\n\tonRuntimeDisposed(workspaceName: string, worktreeId: string): void {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\tconst policy = this.options.getRetentionPolicy();\n\t\tif (policy === undefined || !policy.enabled) {\n\t\t\treturn;\n\t\t}\n\t\tconst key = `${workspaceName}\\0${worktreeId}`;\n\t\tconst existing = this.timers.get(key);\n\t\tif (existing !== undefined) {\n\t\t\t(this.options.clearTimer ?? clearTimeout)(existing);\n\t\t}\n\t\tconst timer = (this.options.setTimer ?? setTimeout)(() => {\n\t\t\tthis.timers.delete(key);\n\t\t\tvoid this.sweep(workspaceName, worktreeId);\n\t\t}, policy.ttlMs);\n\t\ttimer.unref?.();\n\t\tthis.timers.set(key, timer);\n\t}\n\n\tprivate async sweep(workspaceName: string, worktreeId: string): Promise<void> {\n\t\tif (this.disposed) {\n\t\t\treturn;\n\t\t}\n\t\ttry {\n\t\t\tconst state = await this.options.stateManager.getState();\n\t\t\tconst workspace = state.workspaces.find((entry) => entry.name === workspaceName);\n\t\t\tif (!workspace) {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tconst result = await this.options.manager.removeIfCleanAndMerged(workspace, worktreeId);\n\t\t\tif (result.removed) {\n\t\t\t\tawait this.options.auditLogger.log({\n\t\t\t\t\ttype: \"worktree_retention_removed\",\n\t\t\t\t\tworkspace: workspaceName,\n\t\t\t\t\tsuccess: true,\n\t\t\t\t\tdetails: { worktreeId },\n\t\t\t\t});\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tif (result.reason === \"worktree_not_found\") {\n\t\t\t\treturn;\n\t\t\t}\n\t\t\tawait this.options.auditLogger.log({\n\t\t\t\ttype: \"worktree_retention_skipped_dirty\",\n\t\t\t\tworkspace: workspaceName,\n\t\t\t\tsuccess: false,\n\t\t\t\tdetails: { worktreeId, reason: result.reason },\n\t\t\t});\n\t\t} catch {\n\t\t\t// Retention is best-effort; the next disposal reschedules.\n\t\t}\n\t}\n\n\tdispose(): void {\n\t\tthis.disposed = true;\n\t\tfor (const timer of this.timers.values()) {\n\t\t\t(this.options.clearTimer ?? clearTimeout)(timer);\n\t\t}\n\t\tthis.timers.clear();\n\t}\n}\n\nexport type WorktreeControlRequest = Extract<\n\tControlRequest,\n\t{\n\t\ttype:\n\t\t\t| \"worktree_create\"\n\t\t\t| \"worktree_adopt\"\n\t\t\t| \"worktree_list\"\n\t\t\t| \"worktree_remove\"\n\t\t\t| \"worktree_prune\"\n\t\t\t| \"worktree_resolve\"\n\t\t\t| \"worktree_bind\";\n\t}\n>;\n\nexport interface WorktreeControlRequestHooks {\n\tmanager: WorktreeManager;\n\tstateManager: IrohRemoteHostStateManager;\n\t/** Force-remove hook that stops bound runtimes first (wired by the iroh service). */\n\tremoveWorktree?: (\n\t\tworkspace: IrohRemoteWorkspace,\n\t\tworktreeId: string,\n\t\tforce: boolean,\n\t) => Promise<WorktreeResult<Record<never, never>>>;\n}\n\nexport function isWorktreeControlRequest(request: ControlRequest): request is WorktreeControlRequest {\n\treturn (\n\t\trequest.type === \"worktree_create\" ||\n\t\trequest.type === \"worktree_adopt\" ||\n\t\trequest.type === \"worktree_list\" ||\n\t\trequest.type === \"worktree_remove\" ||\n\t\trequest.type === \"worktree_prune\" ||\n\t\trequest.type === \"worktree_resolve\" ||\n\t\trequest.type === \"worktree_bind\"\n\t);\n}\n\n/**\n * Shared `worktree_*` control-socket handler: used by the daemon skeleton\n * (main.ts fallback) and the iroh service (which layers runtime-aware remove\n * on top via hooks.removeWorktree). Control responses MAY include checkout\n * paths — the no-paths rule applies to the iroh wire, not the local socket.\n */\nexport async function handleWorktreeControlRequest(\n\tconnection: ControlConnection,\n\trequest: WorktreeControlRequest,\n\thooks: WorktreeControlRequestHooks,\n): Promise<void> {\n\tconst state = await hooks.stateManager.getState();\n\tconst findWorkspace = (name: string): IrohRemoteWorkspace | undefined =>\n\t\tstate.workspaces.find((workspace) => workspace.name === name);\n\tconst sendWorkspaceNotFound = (name: string) => {\n\t\tconnection.send({\n\t\t\ttype: \"error\",\n\t\t\tid: request.id,\n\t\t\tcode: \"not_found\",\n\t\t\tmessage: `No registered workspace named ${name}`,\n\t\t});\n\t};\n\n\tif (request.type === \"worktree_create\") {\n\t\tconst workspace = findWorkspace(request.workspaceName);\n\t\tif (!workspace) {\n\t\t\tsendWorkspaceNotFound(request.workspaceName);\n\t\t\treturn;\n\t\t}\n\t\tconst created = await hooks.manager.create(workspace, {\n\t\t\t...(request.worktreeName === undefined ? {} : { id: request.worktreeName }),\n\t\t\t...(request.branch === undefined ? {} : { branch: request.branch }),\n\t\t\t...(request.baseRef === undefined ? {} : { baseRef: request.baseRef }),\n\t\t});\n\t\tif (!created.ok) {\n\t\t\tconnection.send({\n\t\t\t\ttype: \"error\",\n\t\t\t\tid: request.id,\n\t\t\t\tcode: created.error,\n\t\t\t\tmessage: created.detail ?? created.error,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconnection.send({\n\t\t\ttype: \"worktree_result\",\n\t\t\tid: request.id,\n\t\t\tworktree: toControlWorktreeStatus(created.worktree, true),\n\t\t});\n\t\treturn;\n\t}\n\n\tif (request.type === \"worktree_adopt\") {\n\t\tconst workspace = findWorkspace(request.workspaceName);\n\t\tif (!workspace) {\n\t\t\tsendWorkspaceNotFound(request.workspaceName);\n\t\t\treturn;\n\t\t}\n\t\tconst adopted = await hooks.manager.adopt(workspace, {\n\t\t\tpath: request.path,\n\t\t\t...(request.worktreeName === undefined ? {} : { id: request.worktreeName }),\n\t\t\t...(request.baseRef === undefined ? {} : { baseRef: request.baseRef }),\n\t\t});\n\t\tif (!adopted.ok) {\n\t\t\tconnection.send({\n\t\t\t\ttype: \"error\",\n\t\t\t\tid: request.id,\n\t\t\t\tcode: adopted.error,\n\t\t\t\tmessage: adopted.detail ?? adopted.error,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconnection.send({\n\t\t\ttype: \"worktree_result\",\n\t\t\tid: request.id,\n\t\t\tworktree: toControlWorktreeStatus(adopted.worktree, true),\n\t\t});\n\t\treturn;\n\t}\n\n\tif (request.type === \"worktree_list\") {\n\t\tconst workspaces = resolveRequestWorkspaces(state.workspaces, request.workspaceName);\n\t\tif (!workspaces.ok) {\n\t\t\tsendWorkspaceNotFound(workspaces.missing);\n\t\t\treturn;\n\t\t}\n\t\tconst worktrees: ControlWorktreeStatus[] = [];\n\t\tfor (const workspace of workspaces.workspaces) {\n\t\t\tfor (const status of await hooks.manager.list(workspace)) {\n\t\t\t\tworktrees.push(toControlWorktreeStatus(status, status.available, status.dirty));\n\t\t\t}\n\t\t}\n\t\tconnection.send({ type: \"worktrees_result\", id: request.id, worktrees });\n\t\treturn;\n\t}\n\n\tif (request.type === \"worktree_resolve\") {\n\t\tconst worktrees = await hooks.stateManager.listWorktrees();\n\t\tconst match = worktrees.find((worktree) => isPathContained(worktree.path, request.path));\n\t\tconst workspace = match ? findWorkspace(match.workspaceName) : undefined;\n\t\tif (!match || !workspace) {\n\t\t\tconnection.send({\n\t\t\t\ttype: \"error\",\n\t\t\t\tid: request.id,\n\t\t\t\tcode: \"not_found\",\n\t\t\t\tmessage: \"path is not inside a daemon-managed worktree\",\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconnection.send({\n\t\t\ttype: \"worktree_resolve_result\",\n\t\t\tid: request.id,\n\t\t\tworkspaceName: workspace.name,\n\t\t\tworkspacePath: workspace.path,\n\t\t\tworktreeId: match.id,\n\t\t\tworktreePath: match.path,\n\t\t});\n\t\treturn;\n\t}\n\n\tif (request.type === \"worktree_bind\") {\n\t\tconst workspace = findWorkspace(request.workspaceName);\n\t\tif (!workspace) {\n\t\t\tsendWorkspaceNotFound(request.workspaceName);\n\t\t\treturn;\n\t\t}\n\t\tconst record = await hooks.manager.findWorktree(request.workspaceName, request.worktreeId);\n\t\tif (!record) {\n\t\t\tconnection.send({\n\t\t\t\ttype: \"error\",\n\t\t\t\tid: request.id,\n\t\t\t\tcode: \"worktree_not_found\",\n\t\t\t\tmessage: `No worktree ${request.worktreeId} in workspace ${request.workspaceName}`,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tawait hooks.manager.bindSession(request.workspaceName, request.worktreeId, request.sessionId);\n\t\tconnection.send({ type: \"ok\", id: request.id });\n\t\treturn;\n\t}\n\n\tif (request.type === \"worktree_remove\") {\n\t\tconst workspace = findWorkspace(request.workspaceName);\n\t\tif (!workspace) {\n\t\t\tsendWorkspaceNotFound(request.workspaceName);\n\t\t\treturn;\n\t\t}\n\t\tconst force = request.force === true;\n\t\tconst removed = hooks.removeWorktree\n\t\t\t? await hooks.removeWorktree(workspace, request.worktreeId, force)\n\t\t\t: await hooks.manager.remove(workspace, request.worktreeId, { force });\n\t\tif (!removed.ok) {\n\t\t\tconnection.send({\n\t\t\t\ttype: \"error\",\n\t\t\t\tid: request.id,\n\t\t\t\tcode: removed.error,\n\t\t\t\tmessage: removed.detail ?? removed.error,\n\t\t\t});\n\t\t\treturn;\n\t\t}\n\t\tconnection.send({ type: \"ok\", id: request.id });\n\t\treturn;\n\t}\n\n\tconst workspaces = resolveRequestWorkspaces(state.workspaces, request.workspaceName);\n\tif (!workspaces.ok) {\n\t\tsendWorkspaceNotFound(workspaces.missing);\n\t\treturn;\n\t}\n\tconst results: Array<{ workspaceName: string; removedRecords: string[]; orphanCheckouts: string[] }> = [];\n\tfor (const workspace of workspaces.workspaces) {\n\t\tconst pruned = await hooks.manager.prune(workspace);\n\t\tresults.push({ workspaceName: workspace.name, ...pruned });\n\t}\n\tconnection.send({ type: \"worktree_prune_result\", id: request.id, results });\n}\n\nfunction resolveRequestWorkspaces(\n\tworkspaces: IrohRemoteWorkspace[],\n\tworkspaceName: string | undefined,\n): { ok: true; workspaces: IrohRemoteWorkspace[] } | { ok: false; missing: string } {\n\tif (workspaceName === undefined) {\n\t\treturn { ok: true, workspaces };\n\t}\n\tconst workspace = workspaces.find((entry) => entry.name === workspaceName);\n\treturn workspace ? { ok: true, workspaces: [workspace] } : { ok: false, missing: workspaceName };\n}\n\nfunction toControlWorktreeStatus(\n\tworktree: IrohRemoteWorkspaceWorktree & Partial<Pick<WorktreeStatus, \"aheadBehind\">>,\n\tavailable?: boolean,\n\tdirty?: boolean,\n): ControlWorktreeStatus {\n\treturn {\n\t\tid: worktree.id,\n\t\tworkspaceName: worktree.workspaceName,\n\t\tpath: worktree.path,\n\t\tbranch: worktree.branch,\n\t\t...(worktree.baseRef === undefined ? {} : { baseRef: worktree.baseRef }),\n\t\tcreatedAt: worktree.createdAt,\n\t\tsessionIds: [...worktree.sessionIds],\n\t\t...(available === undefined ? {} : { available }),\n\t\t...(dirty === undefined ? {} : { dirty }),\n\t\t...(worktree.aheadBehind === undefined ? {} : { aheadBehind: worktree.aheadBehind }),\n\t};\n}\n"]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export { type Args, parseArgs } from "./cli/args.ts";
|
|
2
|
+
export { getAgentDir, getDocsPath, getExamplesPath, getPackageDir, getReadmePath, VERSION } from "./config.ts";
|
|
3
|
+
export { type ActiveCompaction, AgentSession, type AgentSessionConfig, type AgentSessionEvent, type AgentSessionEventListener, type CompactionReason, type ModelCycleResult, type ParsedSkillBlock, type PromptOptions, parseSkillBlock, type SessionStats, } from "./core/agent-session.ts";
|
|
4
|
+
export { type ApiKeyCredential, type AuthCredential, type AuthStatus, AuthStorage, type AuthStorageBackend, FileAuthStorageBackend, InMemoryAuthStorageBackend, type OAuthCredential, } from "./core/auth-storage.ts";
|
|
5
|
+
export { type BranchPreparation, type BranchSummaryResult, type CollectEntriesResult, type CompactionResult, type CutPointResult, calculateContextTokens, collectEntriesForBranchSummary, compact, DEFAULT_COMPACTION_SETTINGS, estimateTokens, type FileOperations, findCutPoint, findTurnStartIndex, type GenerateBranchSummaryOptions, generateBranchSummary, generateSummary, getLastAssistantUsage, prepareBranchEntries, serializeConversation, shouldCompact, } from "./core/compaction/index.ts";
|
|
6
|
+
export { createEventBus, type EventBus, type EventBusController } from "./core/event-bus.ts";
|
|
7
|
+
export type { AgentEndEvent, AgentStartEvent, AgentToolResult, AgentToolUpdateCallback, AppKeybinding, AutocompleteProviderFactory, BashToolCallEvent, BeforeAgentStartEvent, BeforeAgentStartEventResult, BeforeProviderRequestEvent, BeforeProviderRequestEventResult, BuildSystemPromptOptions, CompactOptions, ContextEvent, ContextUsage, CustomToolCallEvent, EditToolCallEvent, ExecOptions, ExecResult, Extension, ExtensionActions, ExtensionAPI, ExtensionCommandContext, ExtensionCommandContextActions, ExtensionContext, ExtensionContextActions, ExtensionError, ExtensionEvent, ExtensionFactory, ExtensionFlag, ExtensionHandler, ExtensionRuntime, ExtensionShortcut, ExtensionUIContext, ExtensionUIDialogOptions, ExtensionWidgetOptions, FindToolCallEvent, GrepToolCallEvent, InputEvent, InputEventResult, InputSource, KeybindingsManager, LoadExtensionsResult, LsToolCallEvent, MessageRenderer, MessageRenderOptions, ProjectTrustContext, ProjectTrustEvent, ProjectTrustEventDecision, ProjectTrustEventResult, ProjectTrustHandler, ProviderConfig, ProviderModelConfig, ReadToolCallEvent, RegisteredCommand, RegisteredTool, ResolvedCommand, SessionBeforeCompactEvent, SessionBeforeForkEvent, SessionBeforeSwitchEvent, SessionBeforeTreeEvent, SessionCompactEvent, SessionShutdownEvent, SessionStartEvent, SessionTreeEvent, SlashCommandInfo, SlashCommandSource, SourceInfo, TerminalInputHandler, ToolCallEvent, ToolCallEventResult, ToolDefinition, ToolExecutionMode, ToolInfo, ToolRenderResultOptions, ToolResultEvent, TurnEndEvent, TurnStartEvent, UserBashEvent, UserBashEventResult, WebSearchToolCallEvent, WebSearchToolResultEvent, WidgetPlacement, WorkingIndicatorOptions, WriteToolCallEvent, } from "./core/extensions/index.ts";
|
|
8
|
+
export { createExtensionRuntime, defineTool, discoverAndLoadExtensions, ExtensionRunner, isBashToolResult, isEditToolResult, isFindToolResult, isGrepToolResult, isLsToolResult, isReadToolResult, isToolCallEventType, isWebSearchToolResult, isWriteToolResult, wrapRegisteredTool, wrapRegisteredTools, } from "./core/extensions/index.ts";
|
|
9
|
+
export type { ReadonlyFooterDataProvider } from "./core/footer-data-provider.ts";
|
|
10
|
+
export type { HostActionDecision, HostActionDecisionKind, HostActionMetadata, HostActionMetadataValue, HostActionRequest, HostActionStatus, HostActionUpdate, HostInteraction, } from "./core/host-interaction.ts";
|
|
11
|
+
export { installHintForCommand, installRecipeForCommand, LspClient, type LspClientOptions, type LspDiagnostic, type LspInstallCommandOptions, type LspInstallCommandResult, type LspInstallRecipe, type LspInstallRunner, LspManager, type LspManagerOptions, type LspServerSettings, type LspServerStatus, type LspSettings, type LspSeverity, type LspTraceDirection, LspTracer, languageIdForExtension, type ResolvedLspConfig, type ResolvedLspServerConfig, resolveLspConfig, runDefaultLspInstallCommand, } from "./core/lsp/index.ts";
|
|
12
|
+
export { createMcpDirectToolDefinitions, DEFAULT_MCP_SETTINGS, DefaultMcpClientFactory, finalizeMcpConfig, getMcpRpcCapabilities, hasProjectMcpConfig, listMcpRpcServers, loadMcpConfig, McpAuditLogger, type McpAuthConfig, type McpClientFactory, type McpConfigDiagnostic, type McpDirectToolCandidate, type McpDirectToolDetails, type McpGatewayCallResult, type McpGatewayInput, type McpGatewayToolDetails, type McpGatewayToolInput, type McpGatewayToolOptions, McpManager, McpMetadataCache, type McpOAuthBrowserCompleteResult, type McpOAuthBrowserStartResult, type McpOAuthDevicePollResult, type McpOAuthDeviceStartResult, McpOAuthStore, type McpOAuthStoredRecord, McpOutputStore, type McpResolvedConfig, type McpResolvedServerConfig, type McpRpcCapabilities, type McpServerSummary, type McpSettings, type McpToolSummary, searchMcpMetadata, } from "./core/mcp/index.ts";
|
|
13
|
+
export { convertToLlm } from "./core/messages.ts";
|
|
14
|
+
export { ModelRegistry } from "./core/model-registry.ts";
|
|
15
|
+
export type { PackageInstallOptions, PackageInstallScriptPolicy, PackageManager, PathMetadata, ProgressCallback, ProgressEvent, ResolvedPaths, ResolvedResource, } from "./core/package-manager.ts";
|
|
16
|
+
export { DefaultPackageManager } from "./core/package-manager.ts";
|
|
17
|
+
export { type AuthorizeIrohRemoteClientOptions, assertIrohRemoteHandshakeHostIdentity, assertIrohRemoteTicketNotExpired, assertIrohRemoteTicketPayloadHostIdentity, authorizeIrohRemoteClient, type CreateIrohRemoteHostMetadataOptions, cloneIrohRemoteRpcGrant, createEmptyIrohRemoteHostState, createIrohRemoteExplicitAccess, createIrohRemoteFilteredRpcTransport, createIrohRemoteHandshakeFailure, createIrohRemoteHandshakeSuccess, createIrohRemoteHostMetadata, createIrohRemoteOutboundFilteredRpcTransport, createIrohRemotePresetAccess, createIrohRemoteRpcCapabilityDeniedResponse, createIrohRemoteRpcErrorResponse, createIrohRemoteRpcGrant, createIrohRemoteRpcTransport, createIrohRemoteSanitizedReconnectTicket, createIrohRemoteSanitizedReconnectTicketPayload, createIrohRemoteTicketQrCode, DEFAULT_IROH_REMOTE_ALLOW_TOOLS, DEFAULT_IROH_REMOTE_CONTROL_TIMEOUT_MS, DEFAULT_IROH_REMOTE_DEVICE_LOG_MAX_CONTENT_BYTES, DEFAULT_IROH_REMOTE_HANDSHAKE_MAX_LINE_BYTES, DEFAULT_IROH_REMOTE_HANDSHAKE_TIMEOUT_MS, DEFAULT_IROH_REMOTE_PAIRING_SECRET_TOMBSTONE_RETENTION_MS, DEFAULT_IROH_REMOTE_PAIRING_TICKET_TTL_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_ATTEMPTS, DEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_DELAY_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_TIMEOUT_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_URL, decodeIrohRemoteTicketPayload, encodeIrohRemoteTicketPayload, ensureIrohRemoteControlDirectory, findIrohRemoteClient, findIrohRemoteRevokedClient, formatIrohRemoteHostFingerprint, formatIrohRemoteTicketQrCode, formatIrohRemoteTicketQrCodeTerminal, getAvailableIrohRemoteWorkspaceNames, getIrohRemoteAccessPreset, getIrohRemoteControlPath, getIrohRemotePairingVerificationDetails, getIrohRemoteRpcCommandCapabilities, getIrohRemoteRpcFilterResult, getIrohRemoteStreamCapability, getIrohRemoteUnsafeAllowedTools, getIrohRemoteWorkspaceAvailabilityStatus, getIrohRemoteWorkspaceStatuses, getMissingIrohRemoteRpcCapability, getStaticIrohRemoteRpcFilterResult, type HandleIrohRemoteDeviceLogUploadRpcCommandOptions, type HandleIrohRemoteWorkspaceUnregisterRpcCommandOptions, type HandleIrohRemoteWorktreeRpcCommandOptions, handleIrohRemoteDeviceLogUploadRpcCommand, handleIrohRemoteWorkspaceUnregisterRpcCommand, handleIrohRemoteWorktreeRpcCommand, hashIrohRemotePairingSecret, hashIrohRemotePushToken, hasIrohRemoteRpcCapability, IROH_REMOTE_ACCESS_PRESET_NAMES, IROH_REMOTE_ACCESS_PRESETS, IROH_REMOTE_ALPN, IROH_REMOTE_CONVERSATION_STREAMS_FEATURE, IROH_REMOTE_CREATE_WORKTREE_RPC_TYPE, IROH_REMOTE_DEVICE_LOGS_DIR_SEGMENTS, IROH_REMOTE_HANDSHAKE_TYPE, IROH_REMOTE_HELLO_TYPE, IROH_REMOTE_HOST_FEATURES, IROH_REMOTE_HOST_HANDSHAKE_FAILURE_OUTCOMES, IROH_REMOTE_LIST_WORKTREES_RPC_TYPE, IROH_REMOTE_MULTI_STREAMS_FEATURE, IROH_REMOTE_OUTCOMES, IROH_REMOTE_PAIR_CONTROL_REQUEST_TYPE, IROH_REMOTE_PAIR_CONTROL_RESPONSE_TYPE, IROH_REMOTE_REDACTED_BASH_OUTPUT_PATH, IROH_REMOTE_REDACTED_EXPORT_PATH, IROH_REMOTE_REDACTED_SESSION_FILE, IROH_REMOTE_REMOVE_WORKTREE_RPC_TYPE, IROH_REMOTE_REVOKE_CONTROL_REQUEST_TYPE, IROH_REMOTE_REVOKE_CONTROL_RESPONSE_TYPE, IROH_REMOTE_RPC_CANCELLATION_TYPES, IROH_REMOTE_RPC_CAPABILITIES, IROH_REMOTE_RPC_GRANT_SCHEMA_VERSION, IROH_REMOTE_RPC_PASSTHROUGH_TYPES, IROH_REMOTE_SESSION_ID_PATTERN, IROH_REMOTE_SESSION_RUNTIME_STATE_FEATURE, IROH_REMOTE_TICKET_PREFIX, IROH_REMOTE_UNREGISTER_WORKSPACE_RPC_TYPE, IROH_REMOTE_UNSAFE_TOOL_NAMES, IROH_REMOTE_UPLOAD_DEVICE_LOGS_RPC_TYPE, IROH_REMOTE_WORKSPACE_HAS_WORKTREES_ERROR, IROH_REMOTE_WORKTREE_ID_PATTERN, IROH_REMOTE_WORKTREE_RPC_TYPES, IROH_REMOTE_WORKTREES_FEATURE, type IrohRemoteAccessPreset, type IrohRemoteAccessPresetName, type IrohRemoteActiveStreamEntry, IrohRemoteActiveStreamRegistry, type IrohRemoteAuditEvent, type IrohRemoteAuditEventInput, IrohRemoteAuditLogger, type IrohRemoteAuditLoggerOptions, type IrohRemoteAuditSink, type IrohRemoteClient, type IrohRemoteClientAccessUpdateResult, type IrohRemoteClientAuthorizationFailure, type IrohRemoteClientAuthorizationResult, type IrohRemoteClientAuthorizationSuccess, IrohRemoteClientEngine, type IrohRemoteClientEngineOptions, type IrohRemoteClientHandshakeResponseResult, type IrohRemoteClientReadHandshakeResponseOptions, type IrohRemoteClientRePairApprovalResult, type IrohRemoteClientRevocationResult, type IrohRemoteClientTicketHello, type IrohRemoteControlClientOptions, type IrohRemoteControlRequest, type IrohRemoteControlServerListenOptions, type IrohRemoteConversationHandshakeMetadata, type IrohRemoteConversationSelection, type IrohRemoteConversationTarget, type IrohRemoteDeviceLogUploadRpcData, type IrohRemoteDeviceLogUploadRpcResponse, type IrohRemoteFilteredRpcTransportOptions, type IrohRemoteGrantedClient, type IrohRemoteGrantedPendingPairingTicket, type IrohRemoteGrantedRevokedClient, IrohRemoteHandshakeError, type IrohRemoteHandshakeFailure, type IrohRemoteHandshakeLineReadOptions, type IrohRemoteHandshakeLineReadResult, type IrohRemoteHandshakeResponse, type IrohRemoteHandshakeSuccess, type IrohRemoteHello, type IrohRemoteHelloMode, IrohRemoteHostEngine, type IrohRemoteHostEngineOptions, type IrohRemoteHostFeature, type IrohRemoteHostHandshakeFailureOutcome, type IrohRemoteHostHandshakeMetadata, type IrohRemoteHostHandshakeResult, type IrohRemoteHostMetadata, type IrohRemoteHostPairOptions, type IrohRemoteHostReadHandshakeOptions, type IrohRemoteHostState, IrohRemoteHostStateManager, type IrohRemoteHostStateManagerOptions, IrohRemoteInMemoryPushNotificationDeduper, type IrohRemoteLiveActivityContentState, type IrohRemoteLiveActivityDeliveryChannelLookup, type IrohRemoteLiveActivityRegistration, type IrohRemoteLiveActivityRegistrationResult, type IrohRemoteLiveActivityTarget, type IrohRemoteLiveActivityToolGlyph, type IrohRemoteLiveActivityUpdateIntent, type IrohRemoteOutboundFilterOptions, type IrohRemoteOutboundJsonlReadablePipeOptions, type IrohRemoteOutboundSanitizerOptions, type IrohRemoteOutboundValueDecorator, type IrohRemoteOutcome, IrohRemoteOutcomeError, type IrohRemotePairControlClientOptions, type IrohRemotePairControlRequest, type IrohRemotePairControlResponse, type IrohRemotePairingSecretTombstone, type IrohRemotePairingSecretTombstoneOutcome, type IrohRemotePairingTicket, type IrohRemotePairingVerificationDetails, type IrohRemotePendingPairingTicket, type IrohRemotePushNotificationDeduper, type IrohRemotePushNotificationDelivery, type IrohRemotePushNotificationDeliveryStatus, IrohRemotePushNotificationDispatcher, type IrohRemotePushNotificationDispatcherOptions, type IrohRemotePushNotificationIntent, type IrohRemotePushRelayClient, IrohRemotePushRelayHttpClient, type IrohRemotePushRelayHttpClientOptions, IrohRemotePushRelayHttpError, type IrohRemotePushRelayLiveActivityRequest, type IrohRemotePushRelayNotificationRequest, type IrohRemotePushRelayNotificationResult, type IrohRemotePushTarget, type IrohRemotePushTargetPlatform, type IrohRemotePushTargetProvider, type IrohRemotePushTargetRegistrationRequest, type IrohRemotePushTargetRegistrationResult, type IrohRemotePushTokenEnvironment, type IrohRemoteRelayMode, type IrohRemoteRevokeControlClientOptions, type IrohRemoteRevokeControlRequest, type IrohRemoteRevokeControlResponse, type IrohRemoteRevokedClient, type IrohRemoteRpcCapability, type IrohRemoteRpcCapabilityDeniedError, type IrohRemoteRpcCapabilityDeniedResponse, type IrohRemoteRpcCommand, type IrohRemoteRpcErrorResponse, type IrohRemoteRpcFilterResult, type IrohRemoteRpcGrant, type IrohRemoteRuntimeToolPolicy, type IrohRemoteSanitizedReconnectTicketPayload, type IrohRemoteSanitizedTranscriptText, type IrohRemoteTicketPayload, type IrohRemoteTicketQrCode, type IrohRemoteTicketQrCodeFormatOptions, type IrohRemoteTranscriptTextLayout, type IrohRemoteUnsafeApproval, type IrohRemoteWorkspace, type IrohRemoteWorkspaceAvailabilityClassifier, type IrohRemoteWorkspaceAvailabilityStatus, type IrohRemoteWorkspaceDiscoveryTarget, IrohRemoteWorkspaceHasWorktreesError, type IrohRemoteWorkspaceManagementTarget, type IrohRemoteWorkspaceMetadataSnapshot, type IrohRemoteWorkspaceStatus, type IrohRemoteWorkspaceTrustStore, type IrohRemoteWorkspaceUnregisterRpcData, type IrohRemoteWorkspaceUnregisterRpcResponse, type IrohRemoteWorkspaceUnregisterRpcResult, type IrohRemoteWorkspaceWorktree, type IrohRemoteWorktreeRpcBackend, type IrohRemoteWorktreeRpcResponse, type IrohRemoteWorktreeRpcResult, type IrohRemoteWorktreeSummary, isIrohRemoteAccessPresetName, isIrohRemoteClientAllowedForWorkspace, isIrohRemoteHostHandshakeFailureOutcome, isIrohRemoteOutcome, isIrohRemoteRelayMode, isIrohRemoteRuntimeToolPolicyWithin, isIrohRemoteSessionId, isIrohRemoteWorkspaceHasWorktreesError, isIrohRemoteWorkspaceName, isIrohRemoteWorktreeId, listenIrohRemoteControlServer, normalizeIrohRemoteAllowTools, parseIrohRemoteAllowTools, parseIrohRemoteClient, parseIrohRemoteControlRequest, parseIrohRemoteHandshakeResponse, parseIrohRemoteHandshakeResponseLine, parseIrohRemoteHello, parseIrohRemoteHelloLine, parseIrohRemoteHostState, parseIrohRemoteLiveActivityRegistration, parseIrohRemotePairControlRequest, parseIrohRemotePairControlResponse, parseIrohRemotePairingSecretTombstone, parseIrohRemotePendingPairingTicket, parseIrohRemotePushTarget, parseIrohRemoteRevokeControlRequest, parseIrohRemoteRevokeControlResponse, parseIrohRemoteRevokedClient, parseIrohRemoteRpcCapabilities, parseIrohRemoteRpcGrant, parseIrohRemoteTicketPayload, parseIrohRemoteWorkspace, parseIrohRemoteWorkspaceSpec, parseIrohRemoteWorkspaceWorktree, parseRegisterPushTargetArgs, pipeIrohRemoteOutboundJsonlReadable, type ResolveIrohRemoteRuntimeToolPolicyOptions, type ResolveIrohRemoteWorkspaceProjectTrustOptions, readIrohRemoteHandshakeLine, readIrohRemoteHostState, requestIrohRemoteActiveRevocation, requestIrohRemotePairingTicket, resolveIrohRemoteRuntimeToolPolicy, resolveIrohRemoteWorkspaceProjectTrusted, sanitizeIrohRemoteOutbound, sanitizeIrohRemoteOutboundJsonLine, sanitizeIrohRemoteTranscriptText, selectIrohRemoteWorkspace, serializeIrohRemoteRpcFilterRejection, shouldReplaceIrohRemoteIntegratedRuntimeForAuthorization, upsertIrohRemoteWorkspace, usesDefaultIrohRemoteAllowTools, writeIrohRemoteHandshakeResponse, writeIrohRemoteHello, writeIrohRemoteHostState, } from "./core/remote/iroh/index.ts";
|
|
18
|
+
export type { ResourceCollision, ResourceDiagnostic, ResourceLoader, ResourceLoaderSubagentsResult, } from "./core/resource-loader.ts";
|
|
19
|
+
export { DefaultResourceLoader, loadProjectContextFiles } from "./core/resource-loader.ts";
|
|
20
|
+
export { attachJsonlLineReader, createIrohRpcTransport, createJsonlRpcTransport, createJsonlStreamRpcTransport, createLoopbackRpcTransportPair, DEFAULT_IROH_READ_LIMIT, DEFAULT_IROH_RPC_MAX_LINE_BYTES, type IrohBiStreamLike, type IrohBytes, type IrohRecvStreamLike, type IrohRpcTransportOptions, type IrohSendStreamLike, type JsonlRpcTransportOptions, type JsonlStreamRpcTransportOptions, type LoopbackRpcTransportPair, type RpcCloseHandler, type RpcLineHandler, type RpcTransport, serializeJsonLine, } from "./core/rpc/index.ts";
|
|
21
|
+
export { AgentSessionRuntime, type AgentSessionRuntimeDiagnostic, type AgentSessionServices, type CreateAgentSessionFromServicesOptions, type CreateAgentSessionOptions, type CreateAgentSessionResult, type CreateAgentSessionRuntimeFactory, type CreateAgentSessionRuntimeResult, type CreateAgentSessionServicesOptions, createAgentSession, createAgentSessionFromServices, createAgentSessionRuntime, createAgentSessionServices, createBashTool, createCodingTools, createEditTool, createFindTool, createGrepTool, createLsTool, createReadOnlyTools, createReadTool, createSubagentTool, createWebSearchTool, createWriteTool, type PromptTemplate, type SubagentRuntimeContext, } from "./core/sdk.ts";
|
|
22
|
+
export { type BranchSummaryEntry, buildSessionContext, type CompactionEntry, CURRENT_SESSION_VERSION, type CustomEntry, type CustomMessageEntry, type FileEntry, getDefaultSessionDir, getLatestCompactionEntry, type ModelChangeEntry, migrateSessionEntries, type NewSessionOptions, parseSessionEntries, type SessionContext, type SessionEntry, type SessionEntryBase, type SessionHeader, type SessionInfo, type SessionInfoEntry, SessionManager, type SessionMessageEntry, type ThinkingLevelChangeEntry, } from "./core/session-manager.ts";
|
|
23
|
+
export { type CompactionSettings, type DefaultProjectTrust, type ImageSettings, type PackageSource, type ProfileSettings, type ProfileStorageSettings, type RetrySettings, SettingsManager, type SettingsManagerCreateOptions, } from "./core/settings-manager.ts";
|
|
24
|
+
export { formatSkillsForPrompt, type LoadSkillsFromDirOptions, type LoadSkillsResult, loadSkills, loadSkillsFromDir, type Skill, type SkillFrontmatter, } from "./core/skills.ts";
|
|
25
|
+
export { createSyntheticSourceInfo } from "./core/source-info.ts";
|
|
26
|
+
export { createBuiltInSubagentDefinitions, type DiscoverSubagentDefinitionsOptions, discoverSubagentDefinitions, type FileSubagentDefinitionSource, type ParseSubagentDefinitionOptions, type ParseSubagentDefinitionResult, parseSubagentDefinition, type SubagentActivity, type SubagentActivityEvent, type SubagentActivityListener, type SubagentActivityStatus, type SubagentDefinition, SubagentDefinitionConfigurationError, SubagentDefinitionNotFoundError, type SubagentDefinitionSource, SubagentDelegationScope, type SubagentDelegationScopeLease, type SubagentDelegationScopeOptions, type SubagentDelegationScopeSnapshot, type SubagentDiscoveryResult, type SubagentEndEvent, type SubagentEvent, type SubagentEventListener, type SubagentHandle, SubagentManager, type SubagentManagerOptions, type SubagentResult, type SubagentRuntimeCreatedEvent, type SubagentStartByNameOptions, type SubagentStartOptions, } from "./core/subagents/index.ts";
|
|
27
|
+
export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, type ThemeColor, } from "./core/theme/runtime.ts";
|
|
28
|
+
export { type BashOperations, type BashSpawnContext, type BashSpawnHook, type BashToolDetails, type BashToolInput, type BashToolOptions, createBashToolDefinition, createDefaultWebSearchOperations, createEditToolDefinition, createFindToolDefinition, createGrepToolDefinition, createLocalBashOperations, createLspToolDefinition, createLsToolDefinition, createMcpTool, createMcpToolDefinition, createReadToolDefinition, createSubagentToolDefinition, createWebSearchToolDefinition, createWriteToolDefinition, DEFAULT_ACTIVE_TOOL_NAMES, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DEFAULT_SUBAGENT_AGGREGATE_OUTPUT_MAX_BYTES, DEFAULT_SUBAGENT_OUTPUT_MAX_BYTES, type DefaultWebSearchOperationsOptions, type EditOperations, type EditToolDetails, type EditToolInput, type EditToolOptions, type FindOperations, type FindToolDetails, type FindToolInput, type FindToolOptions, formatSize, type GrepOperations, type GrepToolDetails, type GrepToolInput, type GrepToolOptions, type LsOperations, type LspAction, type LspNavigationProvider, type LspToolDetails, type LspToolInput, type LspToolOptions, type LsToolDetails, type LsToolInput, type LsToolOptions, READ_ONLY_TOOL_NAMES, type ReadOperations, type ReadToolDetails, type ReadToolInput, type ReadToolOptions, type SubagentToolDetails, type SubagentToolInput, type SubagentToolManager, type SubagentToolOptions, type SubagentToolStatus, type SubagentToolUsageDetails, type ToolDiagnosticsProvider, type ToolsOptions, type TruncationOptions, type TruncationResult, truncateHead, truncateLine, truncateTail, type WebSearchFetcher, type WebSearchModelContext, type WebSearchModelContextProvider, type WebSearchOperations, type WebSearchRequest, type WebSearchResponse, type WebSearchResult, type WebSearchToolDetails, type WebSearchToolInput, type WebSearchToolOptions, type WriteOperations, type WriteToolDetails, type WriteToolInput, type WriteToolOptions, withFileMutationQueue, } from "./core/tools/index.ts";
|
|
29
|
+
export { hasTrustRequiringProjectResources, type ProjectTrustDecision, ProjectTrustStore, type ProjectTrustStoreEntry, type ProjectTrustUpdate, } from "./core/trust-manager.ts";
|
|
30
|
+
export { type MainOptions, main } from "./main.ts";
|
|
31
|
+
export { createInProcessRpcClient, createIrohRemoteAgentRuntime, createIrohRemoteAgentRuntimeWithSessionSelection, InProcessRpcClient, type InProcessRpcClientEventListener, type InProcessRpcClientOptions, InteractiveMode, type InteractiveModeOptions, type IrohRemoteAgentRuntimeOptions, type IrohRemoteAgentRuntimeResult, type IrohRemoteAgentRuntimeSessionSelection, type IrohRemoteCompletedCommand, type IrohRemoteCompletionState, type IrohRemoteNotificationKind, type IrohRemoteNotificationRequest, type IrohRemoteRpcModeOptions, type IrohRemoteSubagentRuntimeCreatedEvent, type ModelInfo, type PrintModeOptions, type RpcActiveCompaction, type RpcActiveToolExecution, RpcClient, type RpcClientCapabilityFeature, type RpcClientEvent, type RpcClientOptions, type RpcCommand, type RpcEventListener, type RpcExtensionErrorEvent, type RpcExtensionUIRequest, type RpcExtensionUIResponse, type RpcHostActionRequest, type RpcHostActionResponse, type RpcHostActionUpdate, type RpcListSubagentsResponse, type RpcMcpCapabilitiesResponse, type RpcMcpPromptContentResponse, type RpcMcpPromptsResponse, type RpcMcpRecentCallsResponse, type RpcMcpResourceContentResponse, type RpcMcpResourcesResponse, type RpcMcpServerResponse, type RpcMcpServersResponse, type RpcMcpToolResponse, type RpcMcpToolsResponse, type RpcModeOptions, type RpcPendingHostActionsResponse, type RpcPushPlatform, type RpcPushProvider, type RpcRegisterPushTargetArgs, type RpcRegisterPushTargetResponse, type RpcResponse, type RpcSessionChange, type RpcSessionListItem, type RpcSessionState, type RpcSubagentDefinition, type RpcSubagentDefinitionSource, type RpcSubagentEndEvent, type RpcSubagentEvent, type RpcSubagentSourceInfo, type RpcSubagentStartResponse, type RpcTranscriptItem, type RpcTranscriptResponse, type RpcTranscriptToolStatus, RpcTransportClient, type RpcTransportClientOptions, type RpcWorkflowEvent, type RpcWorkflowKind, type RpcWorkflowStatus, type RpcWorkflowToolEvent, runIrohRemoteRpcMode, runPrintMode, runRpcMode, } from "./modes/index.ts";
|
|
32
|
+
export { ArminComponent, AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionSelectorComponent, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, type RenderDiffOptions, rawKeyHint, renderDiff, SessionSelectorComponent, type SettingsCallbacks, type SettingsConfig, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, type ToolExecutionOptions, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, type VisualTruncateResult, } from "./modes/interactive/components/index.ts";
|
|
33
|
+
export { DEFAULT_INTEGRATED_DETACHED_RUNTIME_TTL_MS, type DetachedRuntimeRetentionHandle, type DetachedRuntimeRetentionOptions, parseIntegratedDetachedRuntimeTtlMs, scheduleDetachedRuntimeRetention, } from "./remote/integrated-runtime-retention.ts";
|
|
34
|
+
export { DEFAULT_STORE_CATALOG_URL, findCatalogPackage, getStoreCatalogCachePath, type LoadDefaultStoreCatalogOptions, type LoadStoreCatalogResult, loadDefaultStoreCatalog, parseStoreCatalogJson, type StoreCatalog, type StoreCatalogFetcher, type StoreCatalogPackage, type StoreCatalogValidationResult, type StoreResourceType, searchCatalogPackages, suggestCatalogPackageIds, validateStoreCatalog, } from "./store/catalog.ts";
|
|
35
|
+
export { type InspectStorePackageOptions, inspectPackageDirectory, inspectStorePackage, type StorePackageInspection, type StoreVoltManifest, } from "./store/inspector.ts";
|
|
36
|
+
export { type BuildStoreInstallPlanOptions, buildStoreInstallPlan, getCompatibilityStatus, type StoreCompatibilityStatus, type StoreInstallPlan, type StoreInstallScope, type StoreInstallScriptPolicy, } from "./store/install-plan.ts";
|
|
37
|
+
export { type ResolveStoreSourceOptions, resolveStoreSource, type StoreGitLsRemote, type StoreResolvedSource, type StoreResolvedSourceKind, } from "./store/resolver.ts";
|
|
38
|
+
export { chooseStoreRemoveTarget, chooseStoreUpdateTarget, getMatchingStorePackageScopes, type StoreScopeTarget, type StoreTargetConflict, type StoreTargetPackageManager, type StoreTargetSelection, } from "./store/targets.ts";
|
|
39
|
+
export { copyToClipboard } from "./utils/clipboard.ts";
|
|
40
|
+
export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.ts";
|
|
41
|
+
export { convertToPng } from "./utils/image-convert.ts";
|
|
42
|
+
export { formatDimensionNote, type ResizedImage, resizeImage } from "./utils/image-resize.ts";
|
|
43
|
+
export { getShellConfig } from "./utils/shell.ts";
|
|
44
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,IAAI,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAGrD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAC/G,OAAO,EACN,KAAK,gBAAgB,EACrB,YAAY,EACZ,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,eAAe,EACf,KAAK,YAAY,GACjB,MAAM,yBAAyB,CAAC;AAEjC,OAAO,EACN,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,UAAU,EACf,WAAW,EACX,KAAK,kBAAkB,EACvB,sBAAsB,EACtB,0BAA0B,EAC1B,KAAK,eAAe,GACpB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EACN,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,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AK,8BAA8B,EACnC,KAAK,sBAAsB,EAC3B,uBAAuB,EACvB,qBAAqB,EACrB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,4BAA4B,EACjC,KAAK,iBAAiB,EACtB,qBAAqB,EACrB,wBAAwB,EACxB,oBAAoB,GACpB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACN,KAAK,0BAA0B,EAC/B,uBAAuB,EACvB,mBAAmB,EACnB,KAAK,sBAAsB,EAC3B,KAAK,iBAAiB,GACtB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACN,KAAK,4BAA4B,EACjC,qBAAqB,EACrB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,wBAAwB,GAC7B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACN,KAAK,yBAAyB,EAC9B,kBAAkB,EAClB,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,GAC5B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACN,uBAAuB,EACvB,uBAAuB,EACvB,6BAA6B,EAC7B,KAAK,gBAAgB,EACrB,KAAK,mBAAmB,EACxB,KAAK,yBAAyB,EAC9B,KAAK,oBAAoB,GACzB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC5E,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,mBAAmB,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAE9F,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC","sourcesContent":["// Core session management\n\nexport { type Args, parseArgs } from \"./cli/args.ts\";\n\n// Config paths\nexport { getAgentDir, getDocsPath, getExamplesPath, getPackageDir, getReadmePath, VERSION } from \"./config.ts\";\nexport {\n\ttype ActiveCompaction,\n\tAgentSession,\n\ttype AgentSessionConfig,\n\ttype AgentSessionEvent,\n\ttype AgentSessionEventListener,\n\ttype CompactionReason,\n\ttype ModelCycleResult,\n\ttype ParsedSkillBlock,\n\ttype PromptOptions,\n\tparseSkillBlock,\n\ttype SessionStats,\n} from \"./core/agent-session.ts\";\n// Auth and model registry\nexport {\n\ttype ApiKeyCredential,\n\ttype AuthCredential,\n\ttype AuthStatus,\n\tAuthStorage,\n\ttype AuthStorageBackend,\n\tFileAuthStorageBackend,\n\tInMemoryAuthStorageBackend,\n\ttype OAuthCredential,\n} from \"./core/auth-storage.ts\";\n// Compaction\nexport {\n\ttype BranchPreparation,\n\ttype BranchSummaryResult,\n\ttype CollectEntriesResult,\n\ttype CompactionResult,\n\ttype CutPointResult,\n\tcalculateContextTokens,\n\tcollectEntriesForBranchSummary,\n\tcompact,\n\tDEFAULT_COMPACTION_SETTINGS,\n\testimateTokens,\n\ttype FileOperations,\n\tfindCutPoint,\n\tfindTurnStartIndex,\n\ttype GenerateBranchSummaryOptions,\n\tgenerateBranchSummary,\n\tgenerateSummary,\n\tgetLastAssistantUsage,\n\tprepareBranchEntries,\n\tserializeConversation,\n\tshouldCompact,\n} from \"./core/compaction/index.ts\";\nexport { createEventBus, type EventBus, type EventBusController } from \"./core/event-bus.ts\";\n// Extension system\nexport type {\n\tAgentEndEvent,\n\tAgentStartEvent,\n\tAgentToolResult,\n\tAgentToolUpdateCallback,\n\tAppKeybinding,\n\tAutocompleteProviderFactory,\n\tBashToolCallEvent,\n\tBeforeAgentStartEvent,\n\tBeforeAgentStartEventResult,\n\tBeforeProviderRequestEvent,\n\tBeforeProviderRequestEventResult,\n\tBuildSystemPromptOptions,\n\tCompactOptions,\n\tContextEvent,\n\tContextUsage,\n\tCustomToolCallEvent,\n\tEditToolCallEvent,\n\tExecOptions,\n\tExecResult,\n\tExtension,\n\tExtensionActions,\n\tExtensionAPI,\n\tExtensionCommandContext,\n\tExtensionCommandContextActions,\n\tExtensionContext,\n\tExtensionContextActions,\n\tExtensionError,\n\tExtensionEvent,\n\tExtensionFactory,\n\tExtensionFlag,\n\tExtensionHandler,\n\tExtensionRuntime,\n\tExtensionShortcut,\n\tExtensionUIContext,\n\tExtensionUIDialogOptions,\n\tExtensionWidgetOptions,\n\tFindToolCallEvent,\n\tGrepToolCallEvent,\n\tInputEvent,\n\tInputEventResult,\n\tInputSource,\n\tKeybindingsManager,\n\tLoadExtensionsResult,\n\tLsToolCallEvent,\n\tMessageRenderer,\n\tMessageRenderOptions,\n\tProjectTrustContext,\n\tProjectTrustEvent,\n\tProjectTrustEventDecision,\n\tProjectTrustEventResult,\n\tProjectTrustHandler,\n\tProviderConfig,\n\tProviderModelConfig,\n\tReadToolCallEvent,\n\tRegisteredCommand,\n\tRegisteredTool,\n\tResolvedCommand,\n\tSessionBeforeCompactEvent,\n\tSessionBeforeForkEvent,\n\tSessionBeforeSwitchEvent,\n\tSessionBeforeTreeEvent,\n\tSessionCompactEvent,\n\tSessionShutdownEvent,\n\tSessionStartEvent,\n\tSessionTreeEvent,\n\tSlashCommandInfo,\n\tSlashCommandSource,\n\tSourceInfo,\n\tTerminalInputHandler,\n\tToolCallEvent,\n\tToolCallEventResult,\n\tToolDefinition,\n\tToolExecutionMode,\n\tToolInfo,\n\tToolRenderResultOptions,\n\tToolResultEvent,\n\tTurnEndEvent,\n\tTurnStartEvent,\n\tUserBashEvent,\n\tUserBashEventResult,\n\tWebSearchToolCallEvent,\n\tWebSearchToolResultEvent,\n\tWidgetPlacement,\n\tWorkingIndicatorOptions,\n\tWriteToolCallEvent,\n} from \"./core/extensions/index.ts\";\nexport {\n\tcreateExtensionRuntime,\n\tdefineTool,\n\tdiscoverAndLoadExtensions,\n\tExtensionRunner,\n\tisBashToolResult,\n\tisEditToolResult,\n\tisFindToolResult,\n\tisGrepToolResult,\n\tisLsToolResult,\n\tisReadToolResult,\n\tisToolCallEventType,\n\tisWebSearchToolResult,\n\tisWriteToolResult,\n\twrapRegisteredTool,\n\twrapRegisteredTools,\n} from \"./core/extensions/index.ts\";\n// Footer data provider (git branch + extension statuses - data not otherwise available to extensions)\nexport type { ReadonlyFooterDataProvider } from \"./core/footer-data-provider.ts\";\nexport type {\n\tHostActionDecision,\n\tHostActionDecisionKind,\n\tHostActionMetadata,\n\tHostActionMetadataValue,\n\tHostActionRequest,\n\tHostActionStatus,\n\tHostActionUpdate,\n\tHostInteraction,\n} from \"./core/host-interaction.ts\";\n// LSP\nexport {\n\tinstallHintForCommand,\n\tinstallRecipeForCommand,\n\tLspClient,\n\ttype LspClientOptions,\n\ttype LspDiagnostic,\n\ttype LspInstallCommandOptions,\n\ttype LspInstallCommandResult,\n\ttype LspInstallRecipe,\n\ttype LspInstallRunner,\n\tLspManager,\n\ttype LspManagerOptions,\n\ttype LspServerSettings,\n\ttype LspServerStatus,\n\ttype LspSettings,\n\ttype LspSeverity,\n\ttype LspTraceDirection,\n\tLspTracer,\n\tlanguageIdForExtension,\n\ttype ResolvedLspConfig,\n\ttype ResolvedLspServerConfig,\n\tresolveLspConfig,\n\trunDefaultLspInstallCommand,\n} from \"./core/lsp/index.ts\";\nexport {\n\tcreateMcpDirectToolDefinitions,\n\tDEFAULT_MCP_SETTINGS,\n\tDefaultMcpClientFactory,\n\tfinalizeMcpConfig,\n\tgetMcpRpcCapabilities,\n\thasProjectMcpConfig,\n\tlistMcpRpcServers,\n\tloadMcpConfig,\n\tMcpAuditLogger,\n\ttype McpAuthConfig,\n\ttype McpClientFactory,\n\ttype McpConfigDiagnostic,\n\ttype McpDirectToolCandidate,\n\ttype McpDirectToolDetails,\n\ttype McpGatewayCallResult,\n\ttype McpGatewayInput,\n\ttype McpGatewayToolDetails,\n\ttype McpGatewayToolInput,\n\ttype McpGatewayToolOptions,\n\tMcpManager,\n\tMcpMetadataCache,\n\ttype McpOAuthBrowserCompleteResult,\n\ttype McpOAuthBrowserStartResult,\n\ttype McpOAuthDevicePollResult,\n\ttype McpOAuthDeviceStartResult,\n\tMcpOAuthStore,\n\ttype McpOAuthStoredRecord,\n\tMcpOutputStore,\n\ttype McpResolvedConfig,\n\ttype McpResolvedServerConfig,\n\ttype McpRpcCapabilities,\n\ttype McpServerSummary,\n\ttype McpSettings,\n\ttype McpToolSummary,\n\tsearchMcpMetadata,\n} from \"./core/mcp/index.ts\";\nexport { convertToLlm } from \"./core/messages.ts\";\nexport { ModelRegistry } from \"./core/model-registry.ts\";\nexport type {\n\tPackageInstallOptions,\n\tPackageInstallScriptPolicy,\n\tPackageManager,\n\tPathMetadata,\n\tProgressCallback,\n\tProgressEvent,\n\tResolvedPaths,\n\tResolvedResource,\n} from \"./core/package-manager.ts\";\nexport { DefaultPackageManager } from \"./core/package-manager.ts\";\nexport {\n\ttype AuthorizeIrohRemoteClientOptions,\n\tassertIrohRemoteHandshakeHostIdentity,\n\tassertIrohRemoteTicketNotExpired,\n\tassertIrohRemoteTicketPayloadHostIdentity,\n\tauthorizeIrohRemoteClient,\n\ttype CreateIrohRemoteHostMetadataOptions,\n\tcloneIrohRemoteRpcGrant,\n\tcreateEmptyIrohRemoteHostState,\n\tcreateIrohRemoteExplicitAccess,\n\tcreateIrohRemoteFilteredRpcTransport,\n\tcreateIrohRemoteHandshakeFailure,\n\tcreateIrohRemoteHandshakeSuccess,\n\tcreateIrohRemoteHostMetadata,\n\tcreateIrohRemoteOutboundFilteredRpcTransport,\n\tcreateIrohRemotePresetAccess,\n\tcreateIrohRemoteRpcCapabilityDeniedResponse,\n\tcreateIrohRemoteRpcErrorResponse,\n\tcreateIrohRemoteRpcGrant,\n\tcreateIrohRemoteRpcTransport,\n\tcreateIrohRemoteSanitizedReconnectTicket,\n\tcreateIrohRemoteSanitizedReconnectTicketPayload,\n\tcreateIrohRemoteTicketQrCode,\n\tDEFAULT_IROH_REMOTE_ALLOW_TOOLS,\n\tDEFAULT_IROH_REMOTE_CONTROL_TIMEOUT_MS,\n\tDEFAULT_IROH_REMOTE_DEVICE_LOG_MAX_CONTENT_BYTES,\n\tDEFAULT_IROH_REMOTE_HANDSHAKE_MAX_LINE_BYTES,\n\tDEFAULT_IROH_REMOTE_HANDSHAKE_TIMEOUT_MS,\n\tDEFAULT_IROH_REMOTE_PAIRING_SECRET_TOMBSTONE_RETENTION_MS,\n\tDEFAULT_IROH_REMOTE_PAIRING_TICKET_TTL_MS,\n\tDEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_ATTEMPTS,\n\tDEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_DELAY_MS,\n\tDEFAULT_IROH_REMOTE_PUSH_RELAY_TIMEOUT_MS,\n\tDEFAULT_IROH_REMOTE_PUSH_RELAY_URL,\n\tdecodeIrohRemoteTicketPayload,\n\tencodeIrohRemoteTicketPayload,\n\tensureIrohRemoteControlDirectory,\n\tfindIrohRemoteClient,\n\tfindIrohRemoteRevokedClient,\n\tformatIrohRemoteHostFingerprint,\n\tformatIrohRemoteTicketQrCode,\n\tformatIrohRemoteTicketQrCodeTerminal,\n\tgetAvailableIrohRemoteWorkspaceNames,\n\tgetIrohRemoteAccessPreset,\n\tgetIrohRemoteControlPath,\n\tgetIrohRemotePairingVerificationDetails,\n\tgetIrohRemoteRpcCommandCapabilities,\n\tgetIrohRemoteRpcFilterResult,\n\tgetIrohRemoteStreamCapability,\n\tgetIrohRemoteUnsafeAllowedTools,\n\tgetIrohRemoteWorkspaceAvailabilityStatus,\n\tgetIrohRemoteWorkspaceStatuses,\n\tgetMissingIrohRemoteRpcCapability,\n\tgetStaticIrohRemoteRpcFilterResult,\n\ttype HandleIrohRemoteDeviceLogUploadRpcCommandOptions,\n\ttype HandleIrohRemoteWorkspaceUnregisterRpcCommandOptions,\n\ttype HandleIrohRemoteWorktreeRpcCommandOptions,\n\thandleIrohRemoteDeviceLogUploadRpcCommand,\n\thandleIrohRemoteWorkspaceUnregisterRpcCommand,\n\thandleIrohRemoteWorktreeRpcCommand,\n\thashIrohRemotePairingSecret,\n\thashIrohRemotePushToken,\n\thasIrohRemoteRpcCapability,\n\tIROH_REMOTE_ACCESS_PRESET_NAMES,\n\tIROH_REMOTE_ACCESS_PRESETS,\n\tIROH_REMOTE_ALPN,\n\tIROH_REMOTE_CONVERSATION_STREAMS_FEATURE,\n\tIROH_REMOTE_CREATE_WORKTREE_RPC_TYPE,\n\tIROH_REMOTE_DEVICE_LOGS_DIR_SEGMENTS,\n\tIROH_REMOTE_HANDSHAKE_TYPE,\n\tIROH_REMOTE_HELLO_TYPE,\n\tIROH_REMOTE_HOST_FEATURES,\n\tIROH_REMOTE_HOST_HANDSHAKE_FAILURE_OUTCOMES,\n\tIROH_REMOTE_LIST_WORKTREES_RPC_TYPE,\n\tIROH_REMOTE_MULTI_STREAMS_FEATURE,\n\tIROH_REMOTE_OUTCOMES,\n\tIROH_REMOTE_PAIR_CONTROL_REQUEST_TYPE,\n\tIROH_REMOTE_PAIR_CONTROL_RESPONSE_TYPE,\n\tIROH_REMOTE_REDACTED_BASH_OUTPUT_PATH,\n\tIROH_REMOTE_REDACTED_EXPORT_PATH,\n\tIROH_REMOTE_REDACTED_SESSION_FILE,\n\tIROH_REMOTE_REMOVE_WORKTREE_RPC_TYPE,\n\tIROH_REMOTE_REVOKE_CONTROL_REQUEST_TYPE,\n\tIROH_REMOTE_REVOKE_CONTROL_RESPONSE_TYPE,\n\tIROH_REMOTE_RPC_CANCELLATION_TYPES,\n\tIROH_REMOTE_RPC_CAPABILITIES,\n\tIROH_REMOTE_RPC_GRANT_SCHEMA_VERSION,\n\tIROH_REMOTE_RPC_PASSTHROUGH_TYPES,\n\tIROH_REMOTE_SESSION_ID_PATTERN,\n\tIROH_REMOTE_SESSION_RUNTIME_STATE_FEATURE,\n\tIROH_REMOTE_TICKET_PREFIX,\n\tIROH_REMOTE_UNREGISTER_WORKSPACE_RPC_TYPE,\n\tIROH_REMOTE_UNSAFE_TOOL_NAMES,\n\tIROH_REMOTE_UPLOAD_DEVICE_LOGS_RPC_TYPE,\n\tIROH_REMOTE_WORKSPACE_HAS_WORKTREES_ERROR,\n\tIROH_REMOTE_WORKTREE_ID_PATTERN,\n\tIROH_REMOTE_WORKTREE_RPC_TYPES,\n\tIROH_REMOTE_WORKTREES_FEATURE,\n\ttype IrohRemoteAccessPreset,\n\ttype IrohRemoteAccessPresetName,\n\ttype IrohRemoteActiveStreamEntry,\n\tIrohRemoteActiveStreamRegistry,\n\ttype IrohRemoteAuditEvent,\n\ttype IrohRemoteAuditEventInput,\n\tIrohRemoteAuditLogger,\n\ttype IrohRemoteAuditLoggerOptions,\n\ttype IrohRemoteAuditSink,\n\ttype IrohRemoteClient,\n\ttype IrohRemoteClientAccessUpdateResult,\n\ttype IrohRemoteClientAuthorizationFailure,\n\ttype IrohRemoteClientAuthorizationResult,\n\ttype IrohRemoteClientAuthorizationSuccess,\n\tIrohRemoteClientEngine,\n\ttype IrohRemoteClientEngineOptions,\n\ttype IrohRemoteClientHandshakeResponseResult,\n\ttype IrohRemoteClientReadHandshakeResponseOptions,\n\ttype IrohRemoteClientRePairApprovalResult,\n\ttype IrohRemoteClientRevocationResult,\n\ttype IrohRemoteClientTicketHello,\n\ttype IrohRemoteControlClientOptions,\n\ttype IrohRemoteControlRequest,\n\ttype IrohRemoteControlServerListenOptions,\n\ttype IrohRemoteConversationHandshakeMetadata,\n\ttype IrohRemoteConversationSelection,\n\ttype IrohRemoteConversationTarget,\n\ttype IrohRemoteDeviceLogUploadRpcData,\n\ttype IrohRemoteDeviceLogUploadRpcResponse,\n\ttype IrohRemoteFilteredRpcTransportOptions,\n\ttype IrohRemoteGrantedClient,\n\ttype IrohRemoteGrantedPendingPairingTicket,\n\ttype IrohRemoteGrantedRevokedClient,\n\tIrohRemoteHandshakeError,\n\ttype IrohRemoteHandshakeFailure,\n\ttype IrohRemoteHandshakeLineReadOptions,\n\ttype IrohRemoteHandshakeLineReadResult,\n\ttype IrohRemoteHandshakeResponse,\n\ttype IrohRemoteHandshakeSuccess,\n\ttype IrohRemoteHello,\n\ttype IrohRemoteHelloMode,\n\tIrohRemoteHostEngine,\n\ttype IrohRemoteHostEngineOptions,\n\ttype IrohRemoteHostFeature,\n\ttype IrohRemoteHostHandshakeFailureOutcome,\n\ttype IrohRemoteHostHandshakeMetadata,\n\ttype IrohRemoteHostHandshakeResult,\n\ttype IrohRemoteHostMetadata,\n\ttype IrohRemoteHostPairOptions,\n\ttype IrohRemoteHostReadHandshakeOptions,\n\ttype IrohRemoteHostState,\n\tIrohRemoteHostStateManager,\n\ttype IrohRemoteHostStateManagerOptions,\n\tIrohRemoteInMemoryPushNotificationDeduper,\n\ttype IrohRemoteLiveActivityContentState,\n\ttype IrohRemoteLiveActivityDeliveryChannelLookup,\n\ttype IrohRemoteLiveActivityRegistration,\n\ttype IrohRemoteLiveActivityRegistrationResult,\n\ttype IrohRemoteLiveActivityTarget,\n\ttype IrohRemoteLiveActivityToolGlyph,\n\ttype IrohRemoteLiveActivityUpdateIntent,\n\ttype IrohRemoteOutboundFilterOptions,\n\ttype IrohRemoteOutboundJsonlReadablePipeOptions,\n\ttype IrohRemoteOutboundSanitizerOptions,\n\ttype IrohRemoteOutboundValueDecorator,\n\ttype IrohRemoteOutcome,\n\tIrohRemoteOutcomeError,\n\ttype IrohRemotePairControlClientOptions,\n\ttype IrohRemotePairControlRequest,\n\ttype IrohRemotePairControlResponse,\n\ttype IrohRemotePairingSecretTombstone,\n\ttype IrohRemotePairingSecretTombstoneOutcome,\n\ttype IrohRemotePairingTicket,\n\ttype IrohRemotePairingVerificationDetails,\n\ttype IrohRemotePendingPairingTicket,\n\ttype IrohRemotePushNotificationDeduper,\n\ttype IrohRemotePushNotificationDelivery,\n\ttype IrohRemotePushNotificationDeliveryStatus,\n\tIrohRemotePushNotificationDispatcher,\n\ttype IrohRemotePushNotificationDispatcherOptions,\n\ttype IrohRemotePushNotificationIntent,\n\ttype IrohRemotePushRelayClient,\n\tIrohRemotePushRelayHttpClient,\n\ttype IrohRemotePushRelayHttpClientOptions,\n\tIrohRemotePushRelayHttpError,\n\ttype IrohRemotePushRelayLiveActivityRequest,\n\ttype IrohRemotePushRelayNotificationRequest,\n\ttype IrohRemotePushRelayNotificationResult,\n\ttype IrohRemotePushTarget,\n\ttype IrohRemotePushTargetPlatform,\n\ttype IrohRemotePushTargetProvider,\n\ttype IrohRemotePushTargetRegistrationRequest,\n\ttype IrohRemotePushTargetRegistrationResult,\n\ttype IrohRemotePushTokenEnvironment,\n\ttype IrohRemoteRelayMode,\n\ttype IrohRemoteRevokeControlClientOptions,\n\ttype IrohRemoteRevokeControlRequest,\n\ttype IrohRemoteRevokeControlResponse,\n\ttype IrohRemoteRevokedClient,\n\ttype IrohRemoteRpcCapability,\n\ttype IrohRemoteRpcCapabilityDeniedError,\n\ttype IrohRemoteRpcCapabilityDeniedResponse,\n\ttype IrohRemoteRpcCommand,\n\ttype IrohRemoteRpcErrorResponse,\n\ttype IrohRemoteRpcFilterResult,\n\ttype IrohRemoteRpcGrant,\n\ttype IrohRemoteRuntimeToolPolicy,\n\ttype IrohRemoteSanitizedReconnectTicketPayload,\n\ttype IrohRemoteSanitizedTranscriptText,\n\ttype IrohRemoteTicketPayload,\n\ttype IrohRemoteTicketQrCode,\n\ttype IrohRemoteTicketQrCodeFormatOptions,\n\ttype IrohRemoteTranscriptTextLayout,\n\ttype IrohRemoteUnsafeApproval,\n\ttype IrohRemoteWorkspace,\n\ttype IrohRemoteWorkspaceAvailabilityClassifier,\n\ttype IrohRemoteWorkspaceAvailabilityStatus,\n\ttype IrohRemoteWorkspaceDiscoveryTarget,\n\tIrohRemoteWorkspaceHasWorktreesError,\n\ttype IrohRemoteWorkspaceManagementTarget,\n\ttype IrohRemoteWorkspaceMetadataSnapshot,\n\ttype IrohRemoteWorkspaceStatus,\n\ttype IrohRemoteWorkspaceTrustStore,\n\ttype IrohRemoteWorkspaceUnregisterRpcData,\n\ttype IrohRemoteWorkspaceUnregisterRpcResponse,\n\ttype IrohRemoteWorkspaceUnregisterRpcResult,\n\ttype IrohRemoteWorkspaceWorktree,\n\ttype IrohRemoteWorktreeRpcBackend,\n\ttype IrohRemoteWorktreeRpcResponse,\n\ttype IrohRemoteWorktreeRpcResult,\n\ttype IrohRemoteWorktreeSummary,\n\tisIrohRemoteAccessPresetName,\n\tisIrohRemoteClientAllowedForWorkspace,\n\tisIrohRemoteHostHandshakeFailureOutcome,\n\tisIrohRemoteOutcome,\n\tisIrohRemoteRelayMode,\n\tisIrohRemoteRuntimeToolPolicyWithin,\n\tisIrohRemoteSessionId,\n\tisIrohRemoteWorkspaceHasWorktreesError,\n\tisIrohRemoteWorkspaceName,\n\tisIrohRemoteWorktreeId,\n\tlistenIrohRemoteControlServer,\n\tnormalizeIrohRemoteAllowTools,\n\tparseIrohRemoteAllowTools,\n\tparseIrohRemoteClient,\n\tparseIrohRemoteControlRequest,\n\tparseIrohRemoteHandshakeResponse,\n\tparseIrohRemoteHandshakeResponseLine,\n\tparseIrohRemoteHello,\n\tparseIrohRemoteHelloLine,\n\tparseIrohRemoteHostState,\n\tparseIrohRemoteLiveActivityRegistration,\n\tparseIrohRemotePairControlRequest,\n\tparseIrohRemotePairControlResponse,\n\tparseIrohRemotePairingSecretTombstone,\n\tparseIrohRemotePendingPairingTicket,\n\tparseIrohRemotePushTarget,\n\tparseIrohRemoteRevokeControlRequest,\n\tparseIrohRemoteRevokeControlResponse,\n\tparseIrohRemoteRevokedClient,\n\tparseIrohRemoteRpcCapabilities,\n\tparseIrohRemoteRpcGrant,\n\tparseIrohRemoteTicketPayload,\n\tparseIrohRemoteWorkspace,\n\tparseIrohRemoteWorkspaceSpec,\n\tparseIrohRemoteWorkspaceWorktree,\n\tparseRegisterPushTargetArgs,\n\tpipeIrohRemoteOutboundJsonlReadable,\n\ttype ResolveIrohRemoteRuntimeToolPolicyOptions,\n\ttype ResolveIrohRemoteWorkspaceProjectTrustOptions,\n\treadIrohRemoteHandshakeLine,\n\treadIrohRemoteHostState,\n\trequestIrohRemoteActiveRevocation,\n\trequestIrohRemotePairingTicket,\n\tresolveIrohRemoteRuntimeToolPolicy,\n\tresolveIrohRemoteWorkspaceProjectTrusted,\n\tsanitizeIrohRemoteOutbound,\n\tsanitizeIrohRemoteOutboundJsonLine,\n\tsanitizeIrohRemoteTranscriptText,\n\tselectIrohRemoteWorkspace,\n\tserializeIrohRemoteRpcFilterRejection,\n\tshouldReplaceIrohRemoteIntegratedRuntimeForAuthorization,\n\tupsertIrohRemoteWorkspace,\n\tusesDefaultIrohRemoteAllowTools,\n\twriteIrohRemoteHandshakeResponse,\n\twriteIrohRemoteHello,\n\twriteIrohRemoteHostState,\n} from \"./core/remote/iroh/index.ts\";\nexport type {\n\tResourceCollision,\n\tResourceDiagnostic,\n\tResourceLoader,\n\tResourceLoaderSubagentsResult,\n} from \"./core/resource-loader.ts\";\nexport { DefaultResourceLoader, loadProjectContextFiles } from \"./core/resource-loader.ts\";\nexport {\n\tattachJsonlLineReader,\n\tcreateIrohRpcTransport,\n\tcreateJsonlRpcTransport,\n\tcreateJsonlStreamRpcTransport,\n\tcreateLoopbackRpcTransportPair,\n\tDEFAULT_IROH_READ_LIMIT,\n\tDEFAULT_IROH_RPC_MAX_LINE_BYTES,\n\ttype IrohBiStreamLike,\n\ttype IrohBytes,\n\ttype IrohRecvStreamLike,\n\ttype IrohRpcTransportOptions,\n\ttype IrohSendStreamLike,\n\ttype JsonlRpcTransportOptions,\n\ttype JsonlStreamRpcTransportOptions,\n\ttype LoopbackRpcTransportPair,\n\ttype RpcCloseHandler,\n\ttype RpcLineHandler,\n\ttype RpcTransport,\n\tserializeJsonLine,\n} from \"./core/rpc/index.ts\";\n// SDK for programmatic usage\nexport {\n\tAgentSessionRuntime,\n\ttype AgentSessionRuntimeDiagnostic,\n\ttype AgentSessionServices,\n\ttype CreateAgentSessionFromServicesOptions,\n\ttype CreateAgentSessionOptions,\n\ttype CreateAgentSessionResult,\n\ttype CreateAgentSessionRuntimeFactory,\n\ttype CreateAgentSessionRuntimeResult,\n\ttype CreateAgentSessionServicesOptions,\n\t// Factory\n\tcreateAgentSession,\n\tcreateAgentSessionFromServices,\n\tcreateAgentSessionRuntime,\n\tcreateAgentSessionServices,\n\tcreateBashTool,\n\t// Tool factories (for custom cwd)\n\tcreateCodingTools,\n\tcreateEditTool,\n\tcreateFindTool,\n\tcreateGrepTool,\n\tcreateLsTool,\n\tcreateReadOnlyTools,\n\tcreateReadTool,\n\tcreateSubagentTool,\n\tcreateWebSearchTool,\n\tcreateWriteTool,\n\ttype PromptTemplate,\n\ttype SubagentRuntimeContext,\n} from \"./core/sdk.ts\";\nexport {\n\ttype BranchSummaryEntry,\n\tbuildSessionContext,\n\ttype CompactionEntry,\n\tCURRENT_SESSION_VERSION,\n\ttype CustomEntry,\n\ttype CustomMessageEntry,\n\ttype FileEntry,\n\tgetDefaultSessionDir,\n\tgetLatestCompactionEntry,\n\ttype ModelChangeEntry,\n\tmigrateSessionEntries,\n\ttype NewSessionOptions,\n\tparseSessionEntries,\n\ttype SessionContext,\n\ttype SessionEntry,\n\ttype SessionEntryBase,\n\ttype SessionHeader,\n\ttype SessionInfo,\n\ttype SessionInfoEntry,\n\tSessionManager,\n\ttype SessionMessageEntry,\n\ttype ThinkingLevelChangeEntry,\n} from \"./core/session-manager.ts\";\nexport {\n\ttype CompactionSettings,\n\ttype DefaultProjectTrust,\n\ttype ImageSettings,\n\ttype PackageSource,\n\ttype ProfileSettings,\n\ttype ProfileStorageSettings,\n\ttype RetrySettings,\n\tSettingsManager,\n\ttype SettingsManagerCreateOptions,\n} from \"./core/settings-manager.ts\";\n// Skills\nexport {\n\tformatSkillsForPrompt,\n\ttype LoadSkillsFromDirOptions,\n\ttype LoadSkillsResult,\n\tloadSkills,\n\tloadSkillsFromDir,\n\ttype Skill,\n\ttype SkillFrontmatter,\n} from \"./core/skills.ts\";\nexport { createSyntheticSourceInfo } from \"./core/source-info.ts\";\nexport {\n\tcreateBuiltInSubagentDefinitions,\n\ttype DiscoverSubagentDefinitionsOptions,\n\tdiscoverSubagentDefinitions,\n\ttype FileSubagentDefinitionSource,\n\ttype ParseSubagentDefinitionOptions,\n\ttype ParseSubagentDefinitionResult,\n\tparseSubagentDefinition,\n\ttype SubagentActivity,\n\ttype SubagentActivityEvent,\n\ttype SubagentActivityListener,\n\ttype SubagentActivityStatus,\n\ttype SubagentDefinition,\n\tSubagentDefinitionConfigurationError,\n\tSubagentDefinitionNotFoundError,\n\ttype SubagentDefinitionSource,\n\tSubagentDelegationScope,\n\ttype SubagentDelegationScopeLease,\n\ttype SubagentDelegationScopeOptions,\n\ttype SubagentDelegationScopeSnapshot,\n\ttype SubagentDiscoveryResult,\n\ttype SubagentEndEvent,\n\ttype SubagentEvent,\n\ttype SubagentEventListener,\n\ttype SubagentHandle,\n\tSubagentManager,\n\ttype SubagentManagerOptions,\n\ttype SubagentResult,\n\ttype SubagentRuntimeCreatedEvent,\n\ttype SubagentStartByNameOptions,\n\ttype SubagentStartOptions,\n} from \"./core/subagents/index.ts\";\n// Theme utilities for custom tools and extensions\nexport {\n\tgetLanguageFromPath,\n\tgetMarkdownTheme,\n\tgetSelectListTheme,\n\tgetSettingsListTheme,\n\thighlightCode,\n\tinitTheme,\n\tTheme,\n\ttype ThemeColor,\n} from \"./core/theme/runtime.ts\";\n// Tools\nexport {\n\ttype BashOperations,\n\ttype BashSpawnContext,\n\ttype BashSpawnHook,\n\ttype BashToolDetails,\n\ttype BashToolInput,\n\ttype BashToolOptions,\n\tcreateBashToolDefinition,\n\tcreateDefaultWebSearchOperations,\n\tcreateEditToolDefinition,\n\tcreateFindToolDefinition,\n\tcreateGrepToolDefinition,\n\tcreateLocalBashOperations,\n\tcreateLspToolDefinition,\n\tcreateLsToolDefinition,\n\tcreateMcpTool,\n\tcreateMcpToolDefinition,\n\tcreateReadToolDefinition,\n\tcreateSubagentToolDefinition,\n\tcreateWebSearchToolDefinition,\n\tcreateWriteToolDefinition,\n\tDEFAULT_ACTIVE_TOOL_NAMES,\n\tDEFAULT_MAX_BYTES,\n\tDEFAULT_MAX_LINES,\n\tDEFAULT_SUBAGENT_AGGREGATE_OUTPUT_MAX_BYTES,\n\tDEFAULT_SUBAGENT_OUTPUT_MAX_BYTES,\n\ttype DefaultWebSearchOperationsOptions,\n\ttype EditOperations,\n\ttype EditToolDetails,\n\ttype EditToolInput,\n\ttype EditToolOptions,\n\ttype FindOperations,\n\ttype FindToolDetails,\n\ttype FindToolInput,\n\ttype FindToolOptions,\n\tformatSize,\n\ttype GrepOperations,\n\ttype GrepToolDetails,\n\ttype GrepToolInput,\n\ttype GrepToolOptions,\n\ttype LsOperations,\n\ttype LspAction,\n\ttype LspNavigationProvider,\n\ttype LspToolDetails,\n\ttype LspToolInput,\n\ttype LspToolOptions,\n\ttype LsToolDetails,\n\ttype LsToolInput,\n\ttype LsToolOptions,\n\tREAD_ONLY_TOOL_NAMES,\n\ttype ReadOperations,\n\ttype ReadToolDetails,\n\ttype ReadToolInput,\n\ttype ReadToolOptions,\n\ttype SubagentToolDetails,\n\ttype SubagentToolInput,\n\ttype SubagentToolManager,\n\ttype SubagentToolOptions,\n\ttype SubagentToolStatus,\n\ttype SubagentToolUsageDetails,\n\ttype ToolDiagnosticsProvider,\n\ttype ToolsOptions,\n\ttype TruncationOptions,\n\ttype TruncationResult,\n\ttruncateHead,\n\ttruncateLine,\n\ttruncateTail,\n\ttype WebSearchFetcher,\n\ttype WebSearchModelContext,\n\ttype WebSearchModelContextProvider,\n\ttype WebSearchOperations,\n\ttype WebSearchRequest,\n\ttype WebSearchResponse,\n\ttype WebSearchResult,\n\ttype WebSearchToolDetails,\n\ttype WebSearchToolInput,\n\ttype WebSearchToolOptions,\n\ttype WriteOperations,\n\ttype WriteToolDetails,\n\ttype WriteToolInput,\n\ttype WriteToolOptions,\n\twithFileMutationQueue,\n} from \"./core/tools/index.ts\";\nexport {\n\thasTrustRequiringProjectResources,\n\ttype ProjectTrustDecision,\n\tProjectTrustStore,\n\ttype ProjectTrustStoreEntry,\n\ttype ProjectTrustUpdate,\n} from \"./core/trust-manager.ts\";\n// Main entry point\nexport { type MainOptions, main } from \"./main.ts\";\n// Run modes for programmatic SDK usage\nexport {\n\tcreateInProcessRpcClient,\n\tcreateIrohRemoteAgentRuntime,\n\tcreateIrohRemoteAgentRuntimeWithSessionSelection,\n\tInProcessRpcClient,\n\ttype InProcessRpcClientEventListener,\n\ttype InProcessRpcClientOptions,\n\tInteractiveMode,\n\ttype InteractiveModeOptions,\n\ttype IrohRemoteAgentRuntimeOptions,\n\ttype IrohRemoteAgentRuntimeResult,\n\ttype IrohRemoteAgentRuntimeSessionSelection,\n\ttype IrohRemoteCompletedCommand,\n\ttype IrohRemoteCompletionState,\n\ttype IrohRemoteNotificationKind,\n\ttype IrohRemoteNotificationRequest,\n\ttype IrohRemoteRpcModeOptions,\n\ttype IrohRemoteSubagentRuntimeCreatedEvent,\n\ttype ModelInfo,\n\ttype PrintModeOptions,\n\ttype RpcActiveCompaction,\n\ttype RpcActiveToolExecution,\n\tRpcClient,\n\ttype RpcClientCapabilityFeature,\n\ttype RpcClientEvent,\n\ttype RpcClientOptions,\n\ttype RpcCommand,\n\ttype RpcEventListener,\n\ttype RpcExtensionErrorEvent,\n\ttype RpcExtensionUIRequest,\n\ttype RpcExtensionUIResponse,\n\ttype RpcHostActionRequest,\n\ttype RpcHostActionResponse,\n\ttype RpcHostActionUpdate,\n\ttype RpcListSubagentsResponse,\n\ttype RpcMcpCapabilitiesResponse,\n\ttype RpcMcpPromptContentResponse,\n\ttype RpcMcpPromptsResponse,\n\ttype RpcMcpRecentCallsResponse,\n\ttype RpcMcpResourceContentResponse,\n\ttype RpcMcpResourcesResponse,\n\ttype RpcMcpServerResponse,\n\ttype RpcMcpServersResponse,\n\ttype RpcMcpToolResponse,\n\ttype RpcMcpToolsResponse,\n\ttype RpcModeOptions,\n\ttype RpcPendingHostActionsResponse,\n\ttype RpcPushPlatform,\n\ttype RpcPushProvider,\n\ttype RpcRegisterPushTargetArgs,\n\ttype RpcRegisterPushTargetResponse,\n\ttype RpcResponse,\n\ttype RpcSessionChange,\n\ttype RpcSessionListItem,\n\ttype RpcSessionState,\n\ttype RpcSubagentDefinition,\n\ttype RpcSubagentDefinitionSource,\n\ttype RpcSubagentEndEvent,\n\ttype RpcSubagentEvent,\n\ttype RpcSubagentSourceInfo,\n\ttype RpcSubagentStartResponse,\n\ttype RpcTranscriptItem,\n\ttype RpcTranscriptResponse,\n\ttype RpcTranscriptToolStatus,\n\tRpcTransportClient,\n\ttype RpcTransportClientOptions,\n\ttype RpcWorkflowEvent,\n\ttype RpcWorkflowKind,\n\ttype RpcWorkflowStatus,\n\ttype RpcWorkflowToolEvent,\n\trunIrohRemoteRpcMode,\n\trunPrintMode,\n\trunRpcMode,\n} from \"./modes/index.ts\";\n// UI components for extensions\nexport {\n\tArminComponent,\n\tAssistantMessageComponent,\n\tBashExecutionComponent,\n\tBorderedLoader,\n\tBranchSummaryMessageComponent,\n\tCompactionSummaryMessageComponent,\n\tCustomEditor,\n\tCustomMessageComponent,\n\tDynamicBorder,\n\tExtensionEditorComponent,\n\tExtensionInputComponent,\n\tExtensionSelectorComponent,\n\tFooterComponent,\n\tkeyHint,\n\tkeyText,\n\tLoginDialogComponent,\n\tModelSelectorComponent,\n\tOAuthSelectorComponent,\n\ttype RenderDiffOptions,\n\trawKeyHint,\n\trenderDiff,\n\tSessionSelectorComponent,\n\ttype SettingsCallbacks,\n\ttype SettingsConfig,\n\tSettingsSelectorComponent,\n\tShowImagesSelectorComponent,\n\tSkillInvocationMessageComponent,\n\tThemeSelectorComponent,\n\tThinkingSelectorComponent,\n\tToolExecutionComponent,\n\ttype ToolExecutionOptions,\n\tTreeSelectorComponent,\n\ttruncateToVisualLines,\n\tUserMessageComponent,\n\tUserMessageSelectorComponent,\n\ttype VisualTruncateResult,\n} from \"./modes/interactive/components/index.ts\";\nexport {\n\tDEFAULT_INTEGRATED_DETACHED_RUNTIME_TTL_MS,\n\ttype DetachedRuntimeRetentionHandle,\n\ttype DetachedRuntimeRetentionOptions,\n\tparseIntegratedDetachedRuntimeTtlMs,\n\tscheduleDetachedRuntimeRetention,\n} from \"./remote/integrated-runtime-retention.ts\";\nexport {\n\tDEFAULT_STORE_CATALOG_URL,\n\tfindCatalogPackage,\n\tgetStoreCatalogCachePath,\n\ttype LoadDefaultStoreCatalogOptions,\n\ttype LoadStoreCatalogResult,\n\tloadDefaultStoreCatalog,\n\tparseStoreCatalogJson,\n\ttype StoreCatalog,\n\ttype StoreCatalogFetcher,\n\ttype StoreCatalogPackage,\n\ttype StoreCatalogValidationResult,\n\ttype StoreResourceType,\n\tsearchCatalogPackages,\n\tsuggestCatalogPackageIds,\n\tvalidateStoreCatalog,\n} from \"./store/catalog.ts\";\nexport {\n\ttype InspectStorePackageOptions,\n\tinspectPackageDirectory,\n\tinspectStorePackage,\n\ttype StorePackageInspection,\n\ttype StoreVoltManifest,\n} from \"./store/inspector.ts\";\nexport {\n\ttype BuildStoreInstallPlanOptions,\n\tbuildStoreInstallPlan,\n\tgetCompatibilityStatus,\n\ttype StoreCompatibilityStatus,\n\ttype StoreInstallPlan,\n\ttype StoreInstallScope,\n\ttype StoreInstallScriptPolicy,\n} from \"./store/install-plan.ts\";\nexport {\n\ttype ResolveStoreSourceOptions,\n\tresolveStoreSource,\n\ttype StoreGitLsRemote,\n\ttype StoreResolvedSource,\n\ttype StoreResolvedSourceKind,\n} from \"./store/resolver.ts\";\nexport {\n\tchooseStoreRemoveTarget,\n\tchooseStoreUpdateTarget,\n\tgetMatchingStorePackageScopes,\n\ttype StoreScopeTarget,\n\ttype StoreTargetConflict,\n\ttype StoreTargetPackageManager,\n\ttype StoreTargetSelection,\n} from \"./store/targets.ts\";\n// Clipboard utilities\nexport { copyToClipboard } from \"./utils/clipboard.ts\";\nexport { parseFrontmatter, stripFrontmatter } from \"./utils/frontmatter.ts\";\nexport { convertToPng } from \"./utils/image-convert.ts\";\nexport { formatDimensionNote, type ResizedImage, resizeImage } from \"./utils/image-resize.ts\";\n// Shell utilities\nexport { getShellConfig } from \"./utils/shell.ts\";\n"]}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
// Core session management
|
|
2
|
+
export { parseArgs } from "./cli/args.js";
|
|
3
|
+
// Config paths
|
|
4
|
+
export { getAgentDir, getDocsPath, getExamplesPath, getPackageDir, getReadmePath, VERSION } from "./config.js";
|
|
5
|
+
export { AgentSession, parseSkillBlock, } from "./core/agent-session.js";
|
|
6
|
+
// Auth and model registry
|
|
7
|
+
export { AuthStorage, FileAuthStorageBackend, InMemoryAuthStorageBackend, } from "./core/auth-storage.js";
|
|
8
|
+
// Compaction
|
|
9
|
+
export { calculateContextTokens, collectEntriesForBranchSummary, compact, DEFAULT_COMPACTION_SETTINGS, estimateTokens, findCutPoint, findTurnStartIndex, generateBranchSummary, generateSummary, getLastAssistantUsage, prepareBranchEntries, serializeConversation, shouldCompact, } from "./core/compaction/index.js";
|
|
10
|
+
export { createEventBus } from "./core/event-bus.js";
|
|
11
|
+
export { createExtensionRuntime, defineTool, discoverAndLoadExtensions, ExtensionRunner, isBashToolResult, isEditToolResult, isFindToolResult, isGrepToolResult, isLsToolResult, isReadToolResult, isToolCallEventType, isWebSearchToolResult, isWriteToolResult, wrapRegisteredTool, wrapRegisteredTools, } from "./core/extensions/index.js";
|
|
12
|
+
// LSP
|
|
13
|
+
export { installHintForCommand, installRecipeForCommand, LspClient, LspManager, LspTracer, languageIdForExtension, resolveLspConfig, runDefaultLspInstallCommand, } from "./core/lsp/index.js";
|
|
14
|
+
export { createMcpDirectToolDefinitions, DEFAULT_MCP_SETTINGS, DefaultMcpClientFactory, finalizeMcpConfig, getMcpRpcCapabilities, hasProjectMcpConfig, listMcpRpcServers, loadMcpConfig, McpAuditLogger, McpManager, McpMetadataCache, McpOAuthStore, McpOutputStore, searchMcpMetadata, } from "./core/mcp/index.js";
|
|
15
|
+
export { convertToLlm } from "./core/messages.js";
|
|
16
|
+
export { ModelRegistry } from "./core/model-registry.js";
|
|
17
|
+
export { DefaultPackageManager } from "./core/package-manager.js";
|
|
18
|
+
export { assertIrohRemoteHandshakeHostIdentity, assertIrohRemoteTicketNotExpired, assertIrohRemoteTicketPayloadHostIdentity, authorizeIrohRemoteClient, cloneIrohRemoteRpcGrant, createEmptyIrohRemoteHostState, createIrohRemoteExplicitAccess, createIrohRemoteFilteredRpcTransport, createIrohRemoteHandshakeFailure, createIrohRemoteHandshakeSuccess, createIrohRemoteHostMetadata, createIrohRemoteOutboundFilteredRpcTransport, createIrohRemotePresetAccess, createIrohRemoteRpcCapabilityDeniedResponse, createIrohRemoteRpcErrorResponse, createIrohRemoteRpcGrant, createIrohRemoteRpcTransport, createIrohRemoteSanitizedReconnectTicket, createIrohRemoteSanitizedReconnectTicketPayload, createIrohRemoteTicketQrCode, DEFAULT_IROH_REMOTE_ALLOW_TOOLS, DEFAULT_IROH_REMOTE_CONTROL_TIMEOUT_MS, DEFAULT_IROH_REMOTE_DEVICE_LOG_MAX_CONTENT_BYTES, DEFAULT_IROH_REMOTE_HANDSHAKE_MAX_LINE_BYTES, DEFAULT_IROH_REMOTE_HANDSHAKE_TIMEOUT_MS, DEFAULT_IROH_REMOTE_PAIRING_SECRET_TOMBSTONE_RETENTION_MS, DEFAULT_IROH_REMOTE_PAIRING_TICKET_TTL_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_ATTEMPTS, DEFAULT_IROH_REMOTE_PUSH_RELAY_RETRY_DELAY_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_TIMEOUT_MS, DEFAULT_IROH_REMOTE_PUSH_RELAY_URL, decodeIrohRemoteTicketPayload, encodeIrohRemoteTicketPayload, ensureIrohRemoteControlDirectory, findIrohRemoteClient, findIrohRemoteRevokedClient, formatIrohRemoteHostFingerprint, formatIrohRemoteTicketQrCode, formatIrohRemoteTicketQrCodeTerminal, getAvailableIrohRemoteWorkspaceNames, getIrohRemoteAccessPreset, getIrohRemoteControlPath, getIrohRemotePairingVerificationDetails, getIrohRemoteRpcCommandCapabilities, getIrohRemoteRpcFilterResult, getIrohRemoteStreamCapability, getIrohRemoteUnsafeAllowedTools, getIrohRemoteWorkspaceAvailabilityStatus, getIrohRemoteWorkspaceStatuses, getMissingIrohRemoteRpcCapability, getStaticIrohRemoteRpcFilterResult, handleIrohRemoteDeviceLogUploadRpcCommand, handleIrohRemoteWorkspaceUnregisterRpcCommand, handleIrohRemoteWorktreeRpcCommand, hashIrohRemotePairingSecret, hashIrohRemotePushToken, hasIrohRemoteRpcCapability, IROH_REMOTE_ACCESS_PRESET_NAMES, IROH_REMOTE_ACCESS_PRESETS, IROH_REMOTE_ALPN, IROH_REMOTE_CONVERSATION_STREAMS_FEATURE, IROH_REMOTE_CREATE_WORKTREE_RPC_TYPE, IROH_REMOTE_DEVICE_LOGS_DIR_SEGMENTS, IROH_REMOTE_HANDSHAKE_TYPE, IROH_REMOTE_HELLO_TYPE, IROH_REMOTE_HOST_FEATURES, IROH_REMOTE_HOST_HANDSHAKE_FAILURE_OUTCOMES, IROH_REMOTE_LIST_WORKTREES_RPC_TYPE, IROH_REMOTE_MULTI_STREAMS_FEATURE, IROH_REMOTE_OUTCOMES, IROH_REMOTE_PAIR_CONTROL_REQUEST_TYPE, IROH_REMOTE_PAIR_CONTROL_RESPONSE_TYPE, IROH_REMOTE_REDACTED_BASH_OUTPUT_PATH, IROH_REMOTE_REDACTED_EXPORT_PATH, IROH_REMOTE_REDACTED_SESSION_FILE, IROH_REMOTE_REMOVE_WORKTREE_RPC_TYPE, IROH_REMOTE_REVOKE_CONTROL_REQUEST_TYPE, IROH_REMOTE_REVOKE_CONTROL_RESPONSE_TYPE, IROH_REMOTE_RPC_CANCELLATION_TYPES, IROH_REMOTE_RPC_CAPABILITIES, IROH_REMOTE_RPC_GRANT_SCHEMA_VERSION, IROH_REMOTE_RPC_PASSTHROUGH_TYPES, IROH_REMOTE_SESSION_ID_PATTERN, IROH_REMOTE_SESSION_RUNTIME_STATE_FEATURE, IROH_REMOTE_TICKET_PREFIX, IROH_REMOTE_UNREGISTER_WORKSPACE_RPC_TYPE, IROH_REMOTE_UNSAFE_TOOL_NAMES, IROH_REMOTE_UPLOAD_DEVICE_LOGS_RPC_TYPE, IROH_REMOTE_WORKSPACE_HAS_WORKTREES_ERROR, IROH_REMOTE_WORKTREE_ID_PATTERN, IROH_REMOTE_WORKTREE_RPC_TYPES, IROH_REMOTE_WORKTREES_FEATURE, IrohRemoteActiveStreamRegistry, IrohRemoteAuditLogger, IrohRemoteClientEngine, IrohRemoteHandshakeError, IrohRemoteHostEngine, IrohRemoteHostStateManager, IrohRemoteInMemoryPushNotificationDeduper, IrohRemoteOutcomeError, IrohRemotePushNotificationDispatcher, IrohRemotePushRelayHttpClient, IrohRemotePushRelayHttpError, IrohRemoteWorkspaceHasWorktreesError, isIrohRemoteAccessPresetName, isIrohRemoteClientAllowedForWorkspace, isIrohRemoteHostHandshakeFailureOutcome, isIrohRemoteOutcome, isIrohRemoteRelayMode, isIrohRemoteRuntimeToolPolicyWithin, isIrohRemoteSessionId, isIrohRemoteWorkspaceHasWorktreesError, isIrohRemoteWorkspaceName, isIrohRemoteWorktreeId, listenIrohRemoteControlServer, normalizeIrohRemoteAllowTools, parseIrohRemoteAllowTools, parseIrohRemoteClient, parseIrohRemoteControlRequest, parseIrohRemoteHandshakeResponse, parseIrohRemoteHandshakeResponseLine, parseIrohRemoteHello, parseIrohRemoteHelloLine, parseIrohRemoteHostState, parseIrohRemoteLiveActivityRegistration, parseIrohRemotePairControlRequest, parseIrohRemotePairControlResponse, parseIrohRemotePairingSecretTombstone, parseIrohRemotePendingPairingTicket, parseIrohRemotePushTarget, parseIrohRemoteRevokeControlRequest, parseIrohRemoteRevokeControlResponse, parseIrohRemoteRevokedClient, parseIrohRemoteRpcCapabilities, parseIrohRemoteRpcGrant, parseIrohRemoteTicketPayload, parseIrohRemoteWorkspace, parseIrohRemoteWorkspaceSpec, parseIrohRemoteWorkspaceWorktree, parseRegisterPushTargetArgs, pipeIrohRemoteOutboundJsonlReadable, readIrohRemoteHandshakeLine, readIrohRemoteHostState, requestIrohRemoteActiveRevocation, requestIrohRemotePairingTicket, resolveIrohRemoteRuntimeToolPolicy, resolveIrohRemoteWorkspaceProjectTrusted, sanitizeIrohRemoteOutbound, sanitizeIrohRemoteOutboundJsonLine, sanitizeIrohRemoteTranscriptText, selectIrohRemoteWorkspace, serializeIrohRemoteRpcFilterRejection, shouldReplaceIrohRemoteIntegratedRuntimeForAuthorization, upsertIrohRemoteWorkspace, usesDefaultIrohRemoteAllowTools, writeIrohRemoteHandshakeResponse, writeIrohRemoteHello, writeIrohRemoteHostState, } from "./core/remote/iroh/index.js";
|
|
19
|
+
export { DefaultResourceLoader, loadProjectContextFiles } from "./core/resource-loader.js";
|
|
20
|
+
export { attachJsonlLineReader, createIrohRpcTransport, createJsonlRpcTransport, createJsonlStreamRpcTransport, createLoopbackRpcTransportPair, DEFAULT_IROH_READ_LIMIT, DEFAULT_IROH_RPC_MAX_LINE_BYTES, serializeJsonLine, } from "./core/rpc/index.js";
|
|
21
|
+
// SDK for programmatic usage
|
|
22
|
+
export { AgentSessionRuntime,
|
|
23
|
+
// Factory
|
|
24
|
+
createAgentSession, createAgentSessionFromServices, createAgentSessionRuntime, createAgentSessionServices, createBashTool,
|
|
25
|
+
// Tool factories (for custom cwd)
|
|
26
|
+
createCodingTools, createEditTool, createFindTool, createGrepTool, createLsTool, createReadOnlyTools, createReadTool, createSubagentTool, createWebSearchTool, createWriteTool, } from "./core/sdk.js";
|
|
27
|
+
export { buildSessionContext, CURRENT_SESSION_VERSION, getDefaultSessionDir, getLatestCompactionEntry, migrateSessionEntries, parseSessionEntries, SessionManager, } from "./core/session-manager.js";
|
|
28
|
+
export { SettingsManager, } from "./core/settings-manager.js";
|
|
29
|
+
// Skills
|
|
30
|
+
export { formatSkillsForPrompt, loadSkills, loadSkillsFromDir, } from "./core/skills.js";
|
|
31
|
+
export { createSyntheticSourceInfo } from "./core/source-info.js";
|
|
32
|
+
export { createBuiltInSubagentDefinitions, discoverSubagentDefinitions, parseSubagentDefinition, SubagentDefinitionConfigurationError, SubagentDefinitionNotFoundError, SubagentDelegationScope, SubagentManager, } from "./core/subagents/index.js";
|
|
33
|
+
// Theme utilities for custom tools and extensions
|
|
34
|
+
export { getLanguageFromPath, getMarkdownTheme, getSelectListTheme, getSettingsListTheme, highlightCode, initTheme, Theme, } from "./core/theme/runtime.js";
|
|
35
|
+
// Tools
|
|
36
|
+
export { createBashToolDefinition, createDefaultWebSearchOperations, createEditToolDefinition, createFindToolDefinition, createGrepToolDefinition, createLocalBashOperations, createLspToolDefinition, createLsToolDefinition, createMcpTool, createMcpToolDefinition, createReadToolDefinition, createSubagentToolDefinition, createWebSearchToolDefinition, createWriteToolDefinition, DEFAULT_ACTIVE_TOOL_NAMES, DEFAULT_MAX_BYTES, DEFAULT_MAX_LINES, DEFAULT_SUBAGENT_AGGREGATE_OUTPUT_MAX_BYTES, DEFAULT_SUBAGENT_OUTPUT_MAX_BYTES, formatSize, READ_ONLY_TOOL_NAMES, truncateHead, truncateLine, truncateTail, withFileMutationQueue, } from "./core/tools/index.js";
|
|
37
|
+
export { hasTrustRequiringProjectResources, ProjectTrustStore, } from "./core/trust-manager.js";
|
|
38
|
+
// Main entry point
|
|
39
|
+
export { main } from "./main.js";
|
|
40
|
+
// Run modes for programmatic SDK usage
|
|
41
|
+
export { createInProcessRpcClient, createIrohRemoteAgentRuntime, createIrohRemoteAgentRuntimeWithSessionSelection, InProcessRpcClient, InteractiveMode, RpcClient, RpcTransportClient, runIrohRemoteRpcMode, runPrintMode, runRpcMode, } from "./modes/index.js";
|
|
42
|
+
// UI components for extensions
|
|
43
|
+
export { ArminComponent, AssistantMessageComponent, BashExecutionComponent, BorderedLoader, BranchSummaryMessageComponent, CompactionSummaryMessageComponent, CustomEditor, CustomMessageComponent, DynamicBorder, ExtensionEditorComponent, ExtensionInputComponent, ExtensionSelectorComponent, FooterComponent, keyHint, keyText, LoginDialogComponent, ModelSelectorComponent, OAuthSelectorComponent, rawKeyHint, renderDiff, SessionSelectorComponent, SettingsSelectorComponent, ShowImagesSelectorComponent, SkillInvocationMessageComponent, ThemeSelectorComponent, ThinkingSelectorComponent, ToolExecutionComponent, TreeSelectorComponent, truncateToVisualLines, UserMessageComponent, UserMessageSelectorComponent, } from "./modes/interactive/components/index.js";
|
|
44
|
+
export { DEFAULT_INTEGRATED_DETACHED_RUNTIME_TTL_MS, parseIntegratedDetachedRuntimeTtlMs, scheduleDetachedRuntimeRetention, } from "./remote/integrated-runtime-retention.js";
|
|
45
|
+
export { DEFAULT_STORE_CATALOG_URL, findCatalogPackage, getStoreCatalogCachePath, loadDefaultStoreCatalog, parseStoreCatalogJson, searchCatalogPackages, suggestCatalogPackageIds, validateStoreCatalog, } from "./store/catalog.js";
|
|
46
|
+
export { inspectPackageDirectory, inspectStorePackage, } from "./store/inspector.js";
|
|
47
|
+
export { buildStoreInstallPlan, getCompatibilityStatus, } from "./store/install-plan.js";
|
|
48
|
+
export { resolveStoreSource, } from "./store/resolver.js";
|
|
49
|
+
export { chooseStoreRemoveTarget, chooseStoreUpdateTarget, getMatchingStorePackageScopes, } from "./store/targets.js";
|
|
50
|
+
// Clipboard utilities
|
|
51
|
+
export { copyToClipboard } from "./utils/clipboard.js";
|
|
52
|
+
export { parseFrontmatter, stripFrontmatter } from "./utils/frontmatter.js";
|
|
53
|
+
export { convertToPng } from "./utils/image-convert.js";
|
|
54
|
+
export { formatDimensionNote, resizeImage } from "./utils/image-resize.js";
|
|
55
|
+
// Shell utilities
|
|
56
|
+
export { getShellConfig } from "./utils/shell.js";
|
|
57
|
+
//# sourceMappingURL=index.js.map
|