@evanbobo/dsh-agentdoor 0.0.0-stage → 0.2.2-rc.1
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/LICENSE +21 -0
- package/README.en.md +268 -0
- package/README.md +243 -2
- package/THIRD_PARTY_NOTICES +96 -0
- package/assets/provider-icons/antigravity.svg +39 -0
- package/assets/provider-icons/claude-code.png +0 -0
- package/assets/provider-icons/codebuddy.svg +37 -0
- package/assets/provider-icons/codex.png +0 -0
- package/assets/provider-icons/command-code.svg +5 -0
- package/assets/provider-icons/cursor-cli.svg +1 -0
- package/assets/provider-icons/deepseek-harness.svg +9 -0
- package/assets/provider-icons/doubao.png +0 -0
- package/assets/provider-icons/gemini.png +0 -0
- package/assets/provider-icons/grok.png +0 -0
- package/assets/provider-icons/kimi.png +0 -0
- package/assets/provider-icons/kiro-cli.svg +11 -0
- package/assets/provider-icons/minimax-code.svg +4 -0
- package/assets/provider-icons/opencode.png +0 -0
- package/assets/provider-icons/pi.svg +7 -0
- package/assets/provider-icons/qoder-cn.svg +5 -0
- package/assets/provider-icons/qoder.svg +5 -0
- package/assets/provider-icons/r4.svg +4 -0
- package/assets/provider-icons/workbuddy.svg +29 -0
- package/assets/provider-icons/zcode.svg +14 -0
- package/bin/agent-door-credential.mjs +92 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +97 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js +169 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js.map +1 -0
- package/data/build/dist/bootstrap/index.d.ts +38 -0
- package/data/build/dist/bootstrap/index.d.ts.map +1 -0
- package/data/build/dist/bootstrap/index.js +44 -0
- package/data/build/dist/bootstrap/index.js.map +1 -0
- package/data/build/dist/client/account-bar.d.ts +14 -0
- package/data/build/dist/client/account-bar.d.ts.map +1 -0
- package/data/build/dist/client/account-bar.js +541 -0
- package/data/build/dist/client/account-bar.js.map +1 -0
- package/data/build/dist/client/adapter-catalog-watch.d.ts +16 -0
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -0
- package/data/build/dist/client/adapter-catalog-watch.js +91 -0
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -0
- package/data/build/dist/client/bundle.js +67698 -0
- package/data/build/dist/client/bundle.js.map +1 -0
- package/data/build/dist/client/cli-catalog.d.ts +29 -0
- package/data/build/dist/client/cli-catalog.d.ts.map +1 -0
- package/data/build/dist/client/cli-catalog.js +148 -0
- package/data/build/dist/client/cli-catalog.js.map +1 -0
- package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
- package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-dialog.js +215 -0
- package/data/build/dist/client/cli-management-dialog.js.map +1 -0
- package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
- package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-terminal.js +30 -0
- package/data/build/dist/client/cli-management-terminal.js.map +1 -0
- package/data/build/dist/client/cli-session-config-cache.d.ts +17 -0
- package/data/build/dist/client/cli-session-config-cache.d.ts.map +1 -0
- package/data/build/dist/client/cli-session-config-cache.js +62 -0
- package/data/build/dist/client/cli-session-config-cache.js.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.js +45 -0
- package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
- package/data/build/dist/client/cli-slots.d.ts +64 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -0
- package/data/build/dist/client/cli-slots.js +985 -0
- package/data/build/dist/client/cli-slots.js.map +1 -0
- package/data/build/dist/client/client.command-token.js +32 -0
- package/data/build/dist/client/client.command-token.js.map +1 -0
- package/data/build/dist/client/client.delegate-command.js +1314 -0
- package/data/build/dist/client/client.delegate-command.js.map +1 -0
- package/data/build/dist/client/client.editor-engine.js +32557 -0
- package/data/build/dist/client/client.editor-engine.js.map +1 -0
- package/data/build/dist/client/client.primitives-adapter.js +3740 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -0
- package/data/build/dist/client/client.rolldown-runtime.js +58 -0
- package/data/build/dist/client/client.xterm-engine.js +13061 -0
- package/data/build/dist/client/client.xterm-engine.js.map +1 -0
- package/data/build/dist/client/command-token.d.ts +13 -0
- package/data/build/dist/client/command-token.d.ts.map +1 -0
- package/data/build/dist/client/command-token.js +14 -0
- package/data/build/dist/client/command-token.js.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.d.ts +53 -0
- package/data/build/dist/client/context-breakdown-dom.d.ts.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.js +171 -0
- package/data/build/dist/client/context-breakdown-dom.js.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.js +60 -0
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
- package/data/build/dist/client/credential-reference.d.ts +14 -0
- package/data/build/dist/client/credential-reference.d.ts.map +1 -0
- package/data/build/dist/client/credential-reference.js +268 -0
- package/data/build/dist/client/credential-reference.js.map +1 -0
- package/data/build/dist/client/credential-ui-dom.d.ts +18 -0
- package/data/build/dist/client/credential-ui-dom.d.ts.map +1 -0
- package/data/build/dist/client/credential-ui-dom.js +191 -0
- package/data/build/dist/client/credential-ui-dom.js.map +1 -0
- package/data/build/dist/client/credentials-settings-section.d.ts +10 -0
- package/data/build/dist/client/credentials-settings-section.d.ts.map +1 -0
- package/data/build/dist/client/credentials-settings-section.js +204 -0
- package/data/build/dist/client/credentials-settings-section.js.map +1 -0
- package/data/build/dist/client/debug/ui.d.ts +13 -0
- package/data/build/dist/client/debug/ui.d.ts.map +1 -0
- package/data/build/dist/client/debug/ui.js +499 -0
- package/data/build/dist/client/debug/ui.js.map +1 -0
- package/data/build/dist/client/delegate-command.d.ts +17 -0
- package/data/build/dist/client/delegate-command.d.ts.map +1 -0
- package/data/build/dist/client/delegate-command.js +616 -0
- package/data/build/dist/client/delegate-command.js.map +1 -0
- package/data/build/dist/client/delegate-plan.d.ts +40 -0
- package/data/build/dist/client/delegate-plan.d.ts.map +1 -0
- package/data/build/dist/client/delegate-plan.js +63 -0
- package/data/build/dist/client/delegate-plan.js.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts +86 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.js +647 -0
- package/data/build/dist/client/delegate-ui-dom.js.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts +66 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +372 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts +4 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.js +11 -0
- package/data/build/dist/client/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/client/editor-engine.d.ts +4 -0
- package/data/build/dist/client/editor-engine.d.ts.map +1 -0
- package/data/build/dist/client/editor-engine.js +53 -0
- package/data/build/dist/client/editor-engine.js.map +1 -0
- package/data/build/dist/client/engine-loader.d.ts +5 -0
- package/data/build/dist/client/engine-loader.d.ts.map +1 -0
- package/data/build/dist/client/engine-loader.js +35 -0
- package/data/build/dist/client/engine-loader.js.map +1 -0
- package/data/build/dist/client/external-tool-stream.d.ts +24 -0
- package/data/build/dist/client/external-tool-stream.d.ts.map +1 -0
- package/data/build/dist/client/external-tool-stream.js +123 -0
- package/data/build/dist/client/external-tool-stream.js.map +1 -0
- package/data/build/dist/client/features/cli-adapters.d.ts +14 -0
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -0
- package/data/build/dist/client/features/cli-adapters.js +456 -0
- package/data/build/dist/client/features/cli-adapters.js.map +1 -0
- package/data/build/dist/client/features/credentials.d.ts +3 -0
- package/data/build/dist/client/features/credentials.d.ts.map +1 -0
- package/data/build/dist/client/features/credentials.js +96 -0
- package/data/build/dist/client/features/credentials.js.map +1 -0
- package/data/build/dist/client/features/debug.d.ts +4 -0
- package/data/build/dist/client/features/debug.d.ts.map +1 -0
- package/data/build/dist/client/features/debug.js +26 -0
- package/data/build/dist/client/features/debug.js.map +1 -0
- package/data/build/dist/client/features/file-management-panel.d.ts +5 -0
- package/data/build/dist/client/features/file-management-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management-panel.js +41 -0
- package/data/build/dist/client/features/file-management-panel.js.map +1 -0
- package/data/build/dist/client/features/file-management.d.ts +4 -0
- package/data/build/dist/client/features/file-management.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management.js +92 -0
- package/data/build/dist/client/features/file-management.js.map +1 -0
- package/data/build/dist/client/features/index.d.ts +41 -0
- package/data/build/dist/client/features/index.d.ts.map +1 -0
- package/data/build/dist/client/features/index.js +63 -0
- package/data/build/dist/client/features/index.js.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts +5 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.js +225 -0
- package/data/build/dist/client/features/lan-access-panel.js.map +1 -0
- package/data/build/dist/client/features/lan-access-status.d.ts +40 -0
- package/data/build/dist/client/features/lan-access-status.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-status.js +118 -0
- package/data/build/dist/client/features/lan-access-status.js.map +1 -0
- package/data/build/dist/client/features/lan-access.d.ts +12 -0
- package/data/build/dist/client/features/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access.js +62 -0
- package/data/build/dist/client/features/lan-access.js.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts +5 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.js +96 -0
- package/data/build/dist/client/features/login-protection-panel.js.map +1 -0
- package/data/build/dist/client/features/login-protection-session.d.ts +8 -0
- package/data/build/dist/client/features/login-protection-session.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-session.js +43 -0
- package/data/build/dist/client/features/login-protection-session.js.map +1 -0
- package/data/build/dist/client/features/login-protection.d.ts +4 -0
- package/data/build/dist/client/features/login-protection.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection.js +23 -0
- package/data/build/dist/client/features/login-protection.js.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts +12 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.js +256 -0
- package/data/build/dist/client/features/mobile-access-panel.js.map +1 -0
- package/data/build/dist/client/features/mobile-access.d.ts +10 -0
- package/data/build/dist/client/features/mobile-access.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access.js +66 -0
- package/data/build/dist/client/features/mobile-access.js.map +1 -0
- package/data/build/dist/client/features/plugin-update.d.ts +3 -0
- package/data/build/dist/client/features/plugin-update.d.ts.map +1 -0
- package/data/build/dist/client/features/plugin-update.js +14 -0
- package/data/build/dist/client/features/plugin-update.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts +9 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js +269 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts +11 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.js +183 -0
- package/data/build/dist/client/features/reverse-proxy.js.map +1 -0
- package/data/build/dist/client/features/session-translation.d.ts +3 -0
- package/data/build/dist/client/features/session-translation.d.ts.map +1 -0
- package/data/build/dist/client/features/session-translation.js +124 -0
- package/data/build/dist/client/features/session-translation.js.map +1 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts +9 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js +28 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts +15 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.js +118 -0
- package/data/build/dist/client/features/subscription-usage-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js +169 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.js +30 -0
- package/data/build/dist/client/features/terminal-enhancement.js.map +1 -0
- package/data/build/dist/client/features/types.d.ts +99 -0
- package/data/build/dist/client/features/types.d.ts.map +1 -0
- package/data/build/dist/client/features/types.js +2 -0
- package/data/build/dist/client/features/types.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +121 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js +278 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -0
- package/data/build/dist/client/file-management-context-menu.d.ts +10 -0
- package/data/build/dist/client/file-management-context-menu.d.ts.map +1 -0
- package/data/build/dist/client/file-management-context-menu.js +178 -0
- package/data/build/dist/client/file-management-context-menu.js.map +1 -0
- package/data/build/dist/client/file-management-dom.d.ts +40 -0
- package/data/build/dist/client/file-management-dom.d.ts.map +1 -0
- package/data/build/dist/client/file-management-dom.js +660 -0
- package/data/build/dist/client/file-management-dom.js.map +1 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts +27 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts.map +1 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js +101 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js.map +1 -0
- package/data/build/dist/client/font-scale.d.ts +37 -0
- package/data/build/dist/client/font-scale.d.ts.map +1 -0
- package/data/build/dist/client/font-scale.js +56 -0
- package/data/build/dist/client/font-scale.js.map +1 -0
- package/data/build/dist/client/git-history-graph.d.ts +81 -0
- package/data/build/dist/client/git-history-graph.d.ts.map +1 -0
- package/data/build/dist/client/git-history-graph.js +195 -0
- package/data/build/dist/client/git-history-graph.js.map +1 -0
- package/data/build/dist/client/git-management-settings.d.ts +4 -0
- package/data/build/dist/client/git-management-settings.d.ts.map +1 -0
- package/data/build/dist/client/git-management-settings.js +73 -0
- package/data/build/dist/client/git-management-settings.js.map +1 -0
- package/data/build/dist/client/git-management.d.ts +24 -0
- package/data/build/dist/client/git-management.d.ts.map +1 -0
- package/data/build/dist/client/git-management.js +1209 -0
- package/data/build/dist/client/git-management.js.map +1 -0
- package/data/build/dist/client/git-panel-styles.d.ts +32 -0
- package/data/build/dist/client/git-panel-styles.d.ts.map +1 -0
- package/data/build/dist/client/git-panel-styles.js +110 -0
- package/data/build/dist/client/git-panel-styles.js.map +1 -0
- package/data/build/dist/client/git-workspace-events.d.ts +7 -0
- package/data/build/dist/client/git-workspace-events.d.ts.map +1 -0
- package/data/build/dist/client/git-workspace-events.js +32 -0
- package/data/build/dist/client/git-workspace-events.js.map +1 -0
- package/data/build/dist/client/git-worktree-selection.d.ts +89 -0
- package/data/build/dist/client/git-worktree-selection.d.ts.map +1 -0
- package/data/build/dist/client/git-worktree-selection.js +121 -0
- package/data/build/dist/client/git-worktree-selection.js.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts +2 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.js +17 -0
- package/data/build/dist/client/h5-bootstrap-entry.js.map +1 -0
- package/data/build/dist/client/html-workspace-files.d.ts +4 -0
- package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/client/html-workspace-files.js +114 -0
- package/data/build/dist/client/html-workspace-files.js.map +1 -0
- package/data/build/dist/client/index.d.ts +39 -0
- package/data/build/dist/client/index.d.ts.map +1 -0
- package/data/build/dist/client/index.js +249 -0
- package/data/build/dist/client/index.js.map +1 -0
- package/data/build/dist/client/lan-access.d.ts +28 -0
- package/data/build/dist/client/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/lan-access.js +68 -0
- package/data/build/dist/client/lan-access.js.map +1 -0
- package/data/build/dist/client/locale.d.ts +27 -0
- package/data/build/dist/client/locale.d.ts.map +1 -0
- package/data/build/dist/client/locale.js +845 -0
- package/data/build/dist/client/locale.js.map +1 -0
- package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
- package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
- package/data/build/dist/client/locales/cliManagement.js +155 -0
- package/data/build/dist/client/locales/cliManagement.js.map +1 -0
- package/data/build/dist/client/locales/credentials.d.ts +3 -0
- package/data/build/dist/client/locales/credentials.d.ts.map +1 -0
- package/data/build/dist/client/locales/credentials.js +93 -0
- package/data/build/dist/client/locales/credentials.js.map +1 -0
- package/data/build/dist/client/locales/debug.d.ts +9 -0
- package/data/build/dist/client/locales/debug.d.ts.map +1 -0
- package/data/build/dist/client/locales/debug.js +163 -0
- package/data/build/dist/client/locales/debug.js.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts +9 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.js +153 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -0
- package/data/build/dist/client/locales/git.d.ts +9 -0
- package/data/build/dist/client/locales/git.d.ts.map +1 -0
- package/data/build/dist/client/locales/git.js +263 -0
- package/data/build/dist/client/locales/git.js.map +1 -0
- package/data/build/dist/client/locales/nativeApproval.d.ts +3 -0
- package/data/build/dist/client/locales/nativeApproval.d.ts.map +1 -0
- package/data/build/dist/client/locales/nativeApproval.js +51 -0
- package/data/build/dist/client/locales/nativeApproval.js.map +1 -0
- package/data/build/dist/client/locales/panels.d.ts +9 -0
- package/data/build/dist/client/locales/panels.d.ts.map +1 -0
- package/data/build/dist/client/locales/panels.js +251 -0
- package/data/build/dist/client/locales/panels.js.map +1 -0
- package/data/build/dist/client/locales/pluginUpdate.d.ts +3 -0
- package/data/build/dist/client/locales/pluginUpdate.d.ts.map +1 -0
- package/data/build/dist/client/locales/pluginUpdate.js +131 -0
- package/data/build/dist/client/locales/pluginUpdate.js.map +1 -0
- package/data/build/dist/client/locales/subagentCollapsed.d.ts +53 -0
- package/data/build/dist/client/locales/subagentCollapsed.d.ts.map +1 -0
- package/data/build/dist/client/locales/subagentCollapsed.js +95 -0
- package/data/build/dist/client/locales/subagentCollapsed.js.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts +9 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.js +153 -0
- package/data/build/dist/client/locales/terminalAuth.js.map +1 -0
- package/data/build/dist/client/locales/usage.d.ts +9 -0
- package/data/build/dist/client/locales/usage.d.ts.map +1 -0
- package/data/build/dist/client/locales/usage.js +311 -0
- package/data/build/dist/client/locales/usage.js.map +1 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts +29 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.js +93 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.js.map +1 -0
- package/data/build/dist/client/mobile-rightbar-visibility.d.ts +32 -0
- package/data/build/dist/client/mobile-rightbar-visibility.d.ts.map +1 -0
- package/data/build/dist/client/mobile-rightbar-visibility.js +188 -0
- package/data/build/dist/client/mobile-rightbar-visibility.js.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts +43 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.js +227 -0
- package/data/build/dist/client/mobile-session-interaction.js.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts +49 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js +152 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts +149 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js +623 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts +18 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.js +15 -0
- package/data/build/dist/client/mobile-sidebar-logo.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts +114 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js +452 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
- package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
- package/data/build/dist/client/mobile-vibration.d.ts +16 -0
- package/data/build/dist/client/mobile-vibration.d.ts.map +1 -0
- package/data/build/dist/client/mobile-vibration.js +20 -0
- package/data/build/dist/client/mobile-vibration.js.map +1 -0
- package/data/build/dist/client/model-catalog-cache.d.ts +28 -0
- package/data/build/dist/client/model-catalog-cache.d.ts.map +1 -0
- package/data/build/dist/client/model-catalog-cache.js +158 -0
- package/data/build/dist/client/model-catalog-cache.js.map +1 -0
- package/data/build/dist/client/model-priority-pool.d.ts +23 -0
- package/data/build/dist/client/model-priority-pool.d.ts.map +1 -0
- package/data/build/dist/client/model-priority-pool.js +245 -0
- package/data/build/dist/client/model-priority-pool.js.map +1 -0
- package/data/build/dist/client/native-approval-selector.d.ts +22 -0
- package/data/build/dist/client/native-approval-selector.d.ts.map +1 -0
- package/data/build/dist/client/native-approval-selector.js +39 -0
- package/data/build/dist/client/native-approval-selector.js.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts +6 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.js +62 -0
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -0
- package/data/build/dist/client/native-translation-default.d.ts +6 -0
- package/data/build/dist/client/native-translation-default.d.ts.map +1 -0
- package/data/build/dist/client/native-translation-default.js +30 -0
- package/data/build/dist/client/native-translation-default.js.map +1 -0
- package/data/build/dist/client/native-workspace-store.d.ts +29 -0
- package/data/build/dist/client/native-workspace-store.d.ts.map +1 -0
- package/data/build/dist/client/native-workspace-store.js +75 -0
- package/data/build/dist/client/native-workspace-store.js.map +1 -0
- package/data/build/dist/client/popup-dismiss.d.ts +48 -0
- package/data/build/dist/client/popup-dismiss.d.ts.map +1 -0
- package/data/build/dist/client/popup-dismiss.js +93 -0
- package/data/build/dist/client/popup-dismiss.js.map +1 -0
- package/data/build/dist/client/provider-icon-assets.d.ts +2 -0
- package/data/build/dist/client/provider-icon-assets.d.ts.map +1 -0
- package/data/build/dist/client/provider-icon-assets.js +7 -0
- package/data/build/dist/client/provider-icon-assets.js.map +1 -0
- package/data/build/dist/client/provider-icon-bridge.d.ts +6 -0
- package/data/build/dist/client/provider-icon-bridge.d.ts.map +1 -0
- package/data/build/dist/client/provider-icon-bridge.js +65 -0
- package/data/build/dist/client/provider-icon-bridge.js.map +1 -0
- package/data/build/dist/client/provider-icons.d.ts +43 -0
- package/data/build/dist/client/provider-icons.d.ts.map +1 -0
- package/data/build/dist/client/provider-icons.js +185 -0
- package/data/build/dist/client/provider-icons.js.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts +76 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.js +179 -0
- package/data/build/dist/client/pwa-install-prompt.js.map +1 -0
- package/data/build/dist/client/pwa-notifications.d.ts +105 -0
- package/data/build/dist/client/pwa-notifications.d.ts.map +1 -0
- package/data/build/dist/client/pwa-notifications.js +192 -0
- package/data/build/dist/client/pwa-notifications.js.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts +60 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.js +115 -0
- package/data/build/dist/client/quick-phrase-layout.js.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts +7 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.js +405 -0
- package/data/build/dist/client/quick-phrase-slot.js.map +1 -0
- package/data/build/dist/client/remote-web-context.d.ts +59 -0
- package/data/build/dist/client/remote-web-context.d.ts.map +1 -0
- package/data/build/dist/client/remote-web-context.js +1037 -0
- package/data/build/dist/client/remote-web-context.js.map +1 -0
- package/data/build/dist/client/rpc-call.d.ts +4 -0
- package/data/build/dist/client/rpc-call.d.ts.map +1 -0
- package/data/build/dist/client/rpc-call.js +23 -0
- package/data/build/dist/client/rpc-call.js.map +1 -0
- package/data/build/dist/client/serial-polling.d.ts +16 -0
- package/data/build/dist/client/serial-polling.d.ts.map +1 -0
- package/data/build/dist/client/serial-polling.js +50 -0
- package/data/build/dist/client/serial-polling.js.map +1 -0
- package/data/build/dist/client/service-tier.d.ts +65 -0
- package/data/build/dist/client/service-tier.d.ts.map +1 -0
- package/data/build/dist/client/service-tier.js +93 -0
- package/data/build/dist/client/service-tier.js.map +1 -0
- package/data/build/dist/client/session-adapter-cache.d.ts +20 -0
- package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -0
- package/data/build/dist/client/session-adapter-cache.js +105 -0
- package/data/build/dist/client/session-adapter-cache.js.map +1 -0
- package/data/build/dist/client/session-changed-files-view.d.ts +37 -0
- package/data/build/dist/client/session-changed-files-view.d.ts.map +1 -0
- package/data/build/dist/client/session-changed-files-view.js +528 -0
- package/data/build/dist/client/session-changed-files-view.js.map +1 -0
- package/data/build/dist/client/session-file-links.d.ts +11 -0
- package/data/build/dist/client/session-file-links.d.ts.map +1 -0
- package/data/build/dist/client/session-file-links.js +52 -0
- package/data/build/dist/client/session-file-links.js.map +1 -0
- package/data/build/dist/client/session-translation-chat.d.ts +73 -0
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-chat.js +889 -0
- package/data/build/dist/client/session-translation-chat.js.map +1 -0
- package/data/build/dist/client/session-translation-interactions.d.ts +40 -0
- package/data/build/dist/client/session-translation-interactions.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-interactions.js +222 -0
- package/data/build/dist/client/session-translation-interactions.js.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts +8 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.js +58 -0
- package/data/build/dist/client/session-translation-pending-dom.js.map +1 -0
- package/data/build/dist/client/session-translation-retry.d.ts +16 -0
- package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-retry.js +67 -0
- package/data/build/dist/client/session-translation-retry.js.map +1 -0
- package/data/build/dist/client/session-translation-rules.d.ts +13 -0
- package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-rules.js +58 -0
- package/data/build/dist/client/session-translation-rules.js.map +1 -0
- package/data/build/dist/client/settings-anchor.d.ts +73 -0
- package/data/build/dist/client/settings-anchor.d.ts.map +1 -0
- package/data/build/dist/client/settings-anchor.js +70 -0
- package/data/build/dist/client/settings-anchor.js.map +1 -0
- package/data/build/dist/client/settings-bridge.d.ts +62 -0
- package/data/build/dist/client/settings-bridge.d.ts.map +1 -0
- package/data/build/dist/client/settings-bridge.js +247 -0
- package/data/build/dist/client/settings-bridge.js.map +1 -0
- package/data/build/dist/client/settings-controls.d.ts +29 -0
- package/data/build/dist/client/settings-controls.d.ts.map +1 -0
- package/data/build/dist/client/settings-controls.js +80 -0
- package/data/build/dist/client/settings-controls.js.map +1 -0
- package/data/build/dist/client/settings-promo-styles.d.ts +33 -0
- package/data/build/dist/client/settings-promo-styles.d.ts.map +1 -0
- package/data/build/dist/client/settings-promo-styles.js +71 -0
- package/data/build/dist/client/settings-promo-styles.js.map +1 -0
- package/data/build/dist/client/settings-promo.d.ts +16 -0
- package/data/build/dist/client/settings-promo.d.ts.map +1 -0
- package/data/build/dist/client/settings-promo.js +68 -0
- package/data/build/dist/client/settings-promo.js.map +1 -0
- package/data/build/dist/client/settings-section.d.ts +31 -0
- package/data/build/dist/client/settings-section.d.ts.map +1 -0
- package/data/build/dist/client/settings-section.js +140 -0
- package/data/build/dist/client/settings-section.js.map +1 -0
- package/data/build/dist/client/settings-update.d.ts +8 -0
- package/data/build/dist/client/settings-update.d.ts.map +1 -0
- package/data/build/dist/client/settings-update.js +57 -0
- package/data/build/dist/client/settings-update.js.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts +11 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.js +6 -0
- package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
- package/data/build/dist/client/skill-command.d.ts +10 -0
- package/data/build/dist/client/skill-command.d.ts.map +1 -0
- package/data/build/dist/client/skill-command.js +282 -0
- package/data/build/dist/client/skill-command.js.map +1 -0
- package/data/build/dist/client/skill-reference-dom.d.ts +38 -0
- package/data/build/dist/client/skill-reference-dom.d.ts.map +1 -0
- package/data/build/dist/client/skill-reference-dom.js +187 -0
- package/data/build/dist/client/skill-reference-dom.js.map +1 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts +103 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js +664 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/subscription-slot.d.ts +49 -0
- package/data/build/dist/client/subscription-slot.d.ts.map +1 -0
- package/data/build/dist/client/subscription-slot.js +936 -0
- package/data/build/dist/client/subscription-slot.js.map +1 -0
- package/data/build/dist/client/terminal/index.d.ts +4 -0
- package/data/build/dist/client/terminal/index.d.ts.map +1 -0
- package/data/build/dist/client/terminal/index.js +3 -0
- package/data/build/dist/client/terminal/index.js.map +1 -0
- package/data/build/dist/client/terminal/log-preview.d.ts +14 -0
- package/data/build/dist/client/terminal/log-preview.d.ts.map +1 -0
- package/data/build/dist/client/terminal/log-preview.js +23 -0
- package/data/build/dist/client/terminal/log-preview.js.map +1 -0
- package/data/build/dist/client/terminal/model.d.ts +287 -0
- package/data/build/dist/client/terminal/model.d.ts.map +1 -0
- package/data/build/dist/client/terminal/model.js +1166 -0
- package/data/build/dist/client/terminal/model.js.map +1 -0
- package/data/build/dist/client/terminal/recovery.d.ts +69 -0
- package/data/build/dist/client/terminal/recovery.d.ts.map +1 -0
- package/data/build/dist/client/terminal/recovery.js +167 -0
- package/data/build/dist/client/terminal/recovery.js.map +1 -0
- package/data/build/dist/client/terminal/selection-actions.d.ts +63 -0
- package/data/build/dist/client/terminal/selection-actions.d.ts.map +1 -0
- package/data/build/dist/client/terminal/selection-actions.js +132 -0
- package/data/build/dist/client/terminal/selection-actions.js.map +1 -0
- package/data/build/dist/client/terminal/share-menu.d.ts +17 -0
- package/data/build/dist/client/terminal/share-menu.d.ts.map +1 -0
- package/data/build/dist/client/terminal/share-menu.js +131 -0
- package/data/build/dist/client/terminal/share-menu.js.map +1 -0
- package/data/build/dist/client/terminal/sharing.d.ts +42 -0
- package/data/build/dist/client/terminal/sharing.d.ts.map +1 -0
- package/data/build/dist/client/terminal/sharing.js +144 -0
- package/data/build/dist/client/terminal/sharing.js.map +1 -0
- package/data/build/dist/client/terminal/snapshot.d.ts +32 -0
- package/data/build/dist/client/terminal/snapshot.d.ts.map +1 -0
- package/data/build/dist/client/terminal/snapshot.js +108 -0
- package/data/build/dist/client/terminal/snapshot.js.map +1 -0
- package/data/build/dist/client/terminal/styles.d.ts +53 -0
- package/data/build/dist/client/terminal/styles.d.ts.map +1 -0
- package/data/build/dist/client/terminal/styles.js +134 -0
- package/data/build/dist/client/terminal/styles.js.map +1 -0
- package/data/build/dist/client/terminal/surface-cache.d.ts +10 -0
- package/data/build/dist/client/terminal/surface-cache.d.ts.map +1 -0
- package/data/build/dist/client/terminal/surface-cache.js +19 -0
- package/data/build/dist/client/terminal/surface-cache.js.map +1 -0
- package/data/build/dist/client/terminal/ui.d.ts +20 -0
- package/data/build/dist/client/terminal/ui.d.ts.map +1 -0
- package/data/build/dist/client/terminal/ui.js +618 -0
- package/data/build/dist/client/terminal/ui.js.map +1 -0
- package/data/build/dist/client/terminal/xterm-engine.d.ts +4 -0
- package/data/build/dist/client/terminal/xterm-engine.d.ts.map +1 -0
- package/data/build/dist/client/terminal/xterm-engine.js +5 -0
- package/data/build/dist/client/terminal/xterm-engine.js.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts +23 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.js +790 -0
- package/data/build/dist/client/terminal/xterm-view.js.map +1 -0
- package/data/build/dist/client/theme.d.ts +75 -0
- package/data/build/dist/client/theme.d.ts.map +1 -0
- package/data/build/dist/client/theme.js +247 -0
- package/data/build/dist/client/theme.js.map +1 -0
- package/data/build/dist/client/touch-input-focus.d.ts +30 -0
- package/data/build/dist/client/touch-input-focus.d.ts.map +1 -0
- package/data/build/dist/client/touch-input-focus.js +209 -0
- package/data/build/dist/client/touch-input-focus.js.map +1 -0
- package/data/build/dist/client/update-panel-styles.d.ts +29 -0
- package/data/build/dist/client/update-panel-styles.d.ts.map +1 -0
- package/data/build/dist/client/update-panel-styles.js +69 -0
- package/data/build/dist/client/update-panel-styles.js.map +1 -0
- package/data/build/dist/client/update-panel.d.ts +7 -0
- package/data/build/dist/client/update-panel.d.ts.map +1 -0
- package/data/build/dist/client/update-panel.js +52 -0
- package/data/build/dist/client/update-panel.js.map +1 -0
- package/data/build/dist/client/update-store.d.ts +43 -0
- package/data/build/dist/client/update-store.d.ts.map +1 -0
- package/data/build/dist/client/update-store.js +207 -0
- package/data/build/dist/client/update-store.js.map +1 -0
- package/data/build/dist/client/workspace-activity-dom.d.ts +8 -0
- package/data/build/dist/client/workspace-activity-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-activity-dom.js +140 -0
- package/data/build/dist/client/workspace-activity-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +58 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +749 -0
- package/data/build/dist/client/workspace-session-archive-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts +3 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.js +33 -0
- package/data/build/dist/client/workspace-session-fiber.js.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts +29 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.js +130 -0
- package/data/build/dist/client/workspace-session-logo-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts +28 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.js +282 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts +39 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js +712 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js +18 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js +71 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts +64 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +162 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts +22 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js +33 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js +6 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts +27 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js +109 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts +33 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +99 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts +12 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +181 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts +9 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +49 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js +6 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +76 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +180 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts +20 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js +65 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +9 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +79 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +14 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js +39 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js +5 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +32 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +90 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts +33 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js +186 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts +5 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +81 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +237 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts +12 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js +10 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts +40 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js +71 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +24 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js +13 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts +27 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js +101 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts +23 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js +79 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts +16 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js +94 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +24 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +106 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +27 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +29 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +65 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts +11 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js +229 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js +47 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts +28 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js +123 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/index.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/index.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/index.js +6 -0
- package/data/build/dist/dsh-capabilities/index.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.js +91 -0
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts +22 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.js +200 -0
- package/data/build/dist/dsh-capabilities/registry.js.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.js +307 -0
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts +43 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.js +39 -0
- package/data/build/dist/dsh-capabilities/settings-store.js.map +1 -0
- package/data/build/dist/dsh-capabilities/types.d.ts +50 -0
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/types.js +23 -0
- package/data/build/dist/dsh-capabilities/types.js.map +1 -0
- package/data/build/dist/features/index.d.ts +3 -0
- package/data/build/dist/features/index.d.ts.map +1 -0
- package/data/build/dist/features/index.js +2 -0
- package/data/build/dist/features/index.js.map +1 -0
- package/data/build/dist/features/registry.d.ts +87 -0
- package/data/build/dist/features/registry.d.ts.map +1 -0
- package/data/build/dist/features/registry.js +525 -0
- package/data/build/dist/features/registry.js.map +1 -0
- package/data/build/dist/host/auth-session.d.ts +49 -0
- package/data/build/dist/host/auth-session.d.ts.map +1 -0
- package/data/build/dist/host/auth-session.js +208 -0
- package/data/build/dist/host/auth-session.js.map +1 -0
- package/data/build/dist/host/browser-text.d.ts +30 -0
- package/data/build/dist/host/browser-text.d.ts.map +1 -0
- package/data/build/dist/host/browser-text.js +119 -0
- package/data/build/dist/host/browser-text.js.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +156 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js +705 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts +31 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.js +144 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts +96 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.js +608 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts +122 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.js +545 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.js +75 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.js.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +26 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js +189 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/binary-detection.js +75 -0
- package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +88 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +815 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js +109 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/claude-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance.js +66 -0
- package/data/build/dist/host/cli-adapters/claude-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/claude-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-process.js +59 -0
- package/data/build/dist/host/cli-adapters/claude-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts +148 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js +1958 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts +53 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.js +778 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +155 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +2226 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js +271 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +179 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +135 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +2098 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-history.d.ts +174 -0
- package/data/build/dist/host/cli-adapters/command-code-history.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-history.js +789 -0
- package/data/build/dist/host/cli-adapters/command-code-history.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js +132 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.js +91 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts +67 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js +169 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts +49 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js +112 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.js +49 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts +36 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js +126 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +157 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-app.js +281 -0
- package/data/build/dist/host/cli-adapters/doubao-app.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.js +142 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.js +34 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts +49 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.js +177 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.d.ts +33 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.js +294 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-events.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/doubao-events.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-events.js +126 -0
- package/data/build/dist/host/cli-adapters/doubao-events.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.js +176 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.d.ts +8 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.js +139 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.js.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts +82 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.js +2 -0
- package/data/build/dist/host/cli-adapters/driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js +153 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +73 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +514 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.js +34 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +52 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +528 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts +27 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +100 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts +28 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.js +2418 -0
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js +507 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js +1118 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js +99 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js +80 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +93 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +375 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +416 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.d.ts +12 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.js +18 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +28 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +142 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js +167 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js.map +1 -0
- package/data/build/dist/host/cli-adapters/log-files.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/log-files.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/log-files.js +32 -0
- package/data/build/dist/host/cli-adapters/log-files.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
- package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
- package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.js +62 -0
- package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management.js +177 -0
- package/data/build/dist/host/cli-adapters/management.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts +23 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js +120 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts +60 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js +621 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +113 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js +526 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +159 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +566 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts +41 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js +140 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +175 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts +75 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.js +869 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts +29 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js +361 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +112 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +1270 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts +30 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +828 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js +616 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance.d.ts +15 -0
- package/data/build/dist/host/cli-adapters/pi-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance.js +94 -0
- package/data/build/dist/host/cli-adapters/pi-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +53 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.js +242 -0
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts +33 -0
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js +83 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +189 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +1616 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.d.ts +86 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.js +707 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts +36 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.js +207 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js +111 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.js +79 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js +9 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +194 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.js +1412 -0
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +120 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +80 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js +108 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts +20 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.js +139 -0
- package/data/build/dist/host/cli-adapters/session-probe.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +98 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.js +364 -0
- package/data/build/dist/host/cli-adapters/session-store.js.map +1 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.js +161 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.js.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +73 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +365 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +39 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +135 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js +38 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js +185 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -0
- package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/team-input.js +67 -0
- package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js +45 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.js +263 -0
- package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts +12 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.js +53 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.js.map +1 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js +212 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts +10 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.js +84 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts +74 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js +1033 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.js +97 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts +29 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.js +147 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts +23 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js +187 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.js +124 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +46 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js +98 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +56 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js +201 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts +52 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js +335 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts +19 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.js +199 -0
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts +34 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js +147 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts +119 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.js +491 -0
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +8 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +344 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js +9 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts +52 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js +315 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts +28 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js +177 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js +23 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +36 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js +243 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
- package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts +33 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.js +174 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.js.map +1 -0
- package/data/build/dist/host/control-api-client.d.ts +84 -0
- package/data/build/dist/host/control-api-client.d.ts.map +1 -0
- package/data/build/dist/host/control-api-client.js +131 -0
- package/data/build/dist/host/control-api-client.js.map +1 -0
- package/data/build/dist/host/credential-store.d.ts +54 -0
- package/data/build/dist/host/credential-store.d.ts.map +1 -0
- package/data/build/dist/host/credential-store.js +124 -0
- package/data/build/dist/host/credential-store.js.map +1 -0
- package/data/build/dist/host/credentials/broker.d.ts +73 -0
- package/data/build/dist/host/credentials/broker.d.ts.map +1 -0
- package/data/build/dist/host/credentials/broker.js +495 -0
- package/data/build/dist/host/credentials/broker.js.map +1 -0
- package/data/build/dist/host/credentials/index.d.ts +4 -0
- package/data/build/dist/host/credentials/index.d.ts.map +1 -0
- package/data/build/dist/host/credentials/index.js +4 -0
- package/data/build/dist/host/credentials/index.js.map +1 -0
- package/data/build/dist/host/credentials/service.d.ts +43 -0
- package/data/build/dist/host/credentials/service.d.ts.map +1 -0
- package/data/build/dist/host/credentials/service.js +432 -0
- package/data/build/dist/host/credentials/service.js.map +1 -0
- package/data/build/dist/host/credentials/store.d.ts +33 -0
- package/data/build/dist/host/credentials/store.d.ts.map +1 -0
- package/data/build/dist/host/credentials/store.js +238 -0
- package/data/build/dist/host/credentials/store.js.map +1 -0
- package/data/build/dist/host/credentials/tool.d.ts +3 -0
- package/data/build/dist/host/credentials/tool.d.ts.map +1 -0
- package/data/build/dist/host/credentials/tool.js +54 -0
- package/data/build/dist/host/credentials/tool.js.map +1 -0
- package/data/build/dist/host/debug.d.ts +79 -0
- package/data/build/dist/host/debug.d.ts.map +1 -0
- package/data/build/dist/host/debug.js +296 -0
- package/data/build/dist/host/debug.js.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts +45 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.js +155 -0
- package/data/build/dist/host/dsh-device-runtime.js.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts +5 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.js +78 -0
- package/data/build/dist/host/dsh-gateway-feature.js.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts +13 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.js +143 -0
- package/data/build/dist/host/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/host/features/auth.d.ts +11 -0
- package/data/build/dist/host/features/auth.d.ts.map +1 -0
- package/data/build/dist/host/features/auth.js +284 -0
- package/data/build/dist/host/features/auth.js.map +1 -0
- package/data/build/dist/host/features/credentials.d.ts +4 -0
- package/data/build/dist/host/features/credentials.d.ts.map +1 -0
- package/data/build/dist/host/features/credentials.js +90 -0
- package/data/build/dist/host/features/credentials.js.map +1 -0
- package/data/build/dist/host/features/debug.d.ts +5 -0
- package/data/build/dist/host/features/debug.d.ts.map +1 -0
- package/data/build/dist/host/features/debug.js +90 -0
- package/data/build/dist/host/features/debug.js.map +1 -0
- package/data/build/dist/host/features/file-management.d.ts +5 -0
- package/data/build/dist/host/features/file-management.d.ts.map +1 -0
- package/data/build/dist/host/features/file-management.js +282 -0
- package/data/build/dist/host/features/file-management.js.map +1 -0
- package/data/build/dist/host/features/git-commit-message.d.ts +5 -0
- package/data/build/dist/host/features/git-commit-message.d.ts.map +1 -0
- package/data/build/dist/host/features/git-commit-message.js +66 -0
- package/data/build/dist/host/features/git-commit-message.js.map +1 -0
- package/data/build/dist/host/features/git-management.d.ts +13 -0
- package/data/build/dist/host/features/git-management.d.ts.map +1 -0
- package/data/build/dist/host/features/git-management.js +576 -0
- package/data/build/dist/host/features/git-management.js.map +1 -0
- package/data/build/dist/host/features/host-status.d.ts +45 -0
- package/data/build/dist/host/features/host-status.d.ts.map +1 -0
- package/data/build/dist/host/features/host-status.js +122 -0
- package/data/build/dist/host/features/host-status.js.map +1 -0
- package/data/build/dist/host/features/index.d.ts +24 -0
- package/data/build/dist/host/features/index.d.ts.map +1 -0
- package/data/build/dist/host/features/index.js +46 -0
- package/data/build/dist/host/features/index.js.map +1 -0
- package/data/build/dist/host/features/interaction-translation.d.ts +10 -0
- package/data/build/dist/host/features/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/interaction-translation.js +222 -0
- package/data/build/dist/host/features/interaction-translation.js.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts +8 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.js +129 -0
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/features/plugin-update.d.ts +6 -0
- package/data/build/dist/host/features/plugin-update.d.ts.map +1 -0
- package/data/build/dist/host/features/plugin-update.js +51 -0
- package/data/build/dist/host/features/plugin-update.js.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.js +236 -0
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
- package/data/build/dist/host/features/session-title-optimization.d.ts +5 -0
- package/data/build/dist/host/features/session-title-optimization.d.ts.map +1 -0
- package/data/build/dist/host/features/session-title-optimization.js +32 -0
- package/data/build/dist/host/features/session-title-optimization.js.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts +26 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.js +213 -0
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.js +123 -0
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts +23 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.js +62 -0
- package/data/build/dist/host/features/session-translation-runtime.js.map +1 -0
- package/data/build/dist/host/features/session-translation-service.d.ts +66 -0
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-service.js +664 -0
- package/data/build/dist/host/features/session-translation-service.js.map +1 -0
- package/data/build/dist/host/features/session-translation.d.ts +5 -0
- package/data/build/dist/host/features/session-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation.js +45 -0
- package/data/build/dist/host/features/session-translation.js.map +1 -0
- package/data/build/dist/host/features/terminal-process.d.ts +5 -0
- package/data/build/dist/host/features/terminal-process.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-process.js +110 -0
- package/data/build/dist/host/features/terminal-process.js.map +1 -0
- package/data/build/dist/host/features/terminal-status.d.ts +20 -0
- package/data/build/dist/host/features/terminal-status.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-status.js +58 -0
- package/data/build/dist/host/features/terminal-status.js.map +1 -0
- package/data/build/dist/host/features/types.d.ts +65 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -0
- package/data/build/dist/host/features/types.js +2 -0
- package/data/build/dist/host/features/types.js.map +1 -0
- package/data/build/dist/host/host-config.d.ts +17 -0
- package/data/build/dist/host/host-config.d.ts.map +1 -0
- package/data/build/dist/host/host-config.js +13 -0
- package/data/build/dist/host/host-config.js.map +1 -0
- package/data/build/dist/host/host-event-bridge.d.ts +11 -0
- package/data/build/dist/host/host-event-bridge.d.ts.map +1 -0
- package/data/build/dist/host/host-event-bridge.js +16 -0
- package/data/build/dist/host/host-event-bridge.js.map +1 -0
- package/data/build/dist/host/html-workspace-files.d.ts +3 -0
- package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/host/html-workspace-files.js +135 -0
- package/data/build/dist/host/html-workspace-files.js.map +1 -0
- package/data/build/dist/host/image-artifact-store.d.ts +21 -0
- package/data/build/dist/host/image-artifact-store.d.ts.map +1 -0
- package/data/build/dist/host/image-artifact-store.js +136 -0
- package/data/build/dist/host/image-artifact-store.js.map +1 -0
- package/data/build/dist/host/index-injection.d.ts +35 -0
- package/data/build/dist/host/index-injection.d.ts.map +1 -0
- package/data/build/dist/host/index-injection.js +78 -0
- package/data/build/dist/host/index-injection.js.map +1 -0
- package/data/build/dist/host/index.d.ts +64 -0
- package/data/build/dist/host/index.d.ts.map +1 -0
- package/data/build/dist/host/index.js +446 -0
- package/data/build/dist/host/index.js.map +1 -0
- package/data/build/dist/host/lan-access-dsh.d.ts +192 -0
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/lan-access-dsh.js +1322 -0
- package/data/build/dist/host/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/login-attempt-guard.d.ts +55 -0
- package/data/build/dist/host/login-attempt-guard.d.ts.map +1 -0
- package/data/build/dist/host/login-attempt-guard.js +201 -0
- package/data/build/dist/host/login-attempt-guard.js.map +1 -0
- package/data/build/dist/host/modules/pwa/index.d.ts +7 -0
- package/data/build/dist/host/modules/pwa/index.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/index.js +7 -0
- package/data/build/dist/host/modules/pwa/index.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts +50 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js +182 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js +40 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js +185 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts +74 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js +288 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts +17 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js +83 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts +12 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js +47 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +215 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -0
- package/data/build/dist/host/native-session-bridge.js +993 -0
- package/data/build/dist/host/native-session-bridge.js.map +1 -0
- package/data/build/dist/host/provider-icon-assets.d.ts +5 -0
- package/data/build/dist/host/provider-icon-assets.d.ts.map +1 -0
- package/data/build/dist/host/provider-icon-assets.js +61 -0
- package/data/build/dist/host/provider-icon-assets.js.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts +130 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.js +422 -0
- package/data/build/dist/host/relay-tunnel-runtime.js.map +1 -0
- package/data/build/dist/host/remote-web-runtime.d.ts +78 -0
- package/data/build/dist/host/remote-web-runtime.d.ts.map +1 -0
- package/data/build/dist/host/remote-web-runtime.js +607 -0
- package/data/build/dist/host/remote-web-runtime.js.map +1 -0
- package/data/build/dist/host/rpc-table.d.ts +32 -0
- package/data/build/dist/host/rpc-table.d.ts.map +1 -0
- package/data/build/dist/host/rpc-table.js +47 -0
- package/data/build/dist/host/rpc-table.js.map +1 -0
- package/data/build/dist/host/rpc.d.ts +43 -0
- package/data/build/dist/host/rpc.d.ts.map +1 -0
- package/data/build/dist/host/rpc.js +422 -0
- package/data/build/dist/host/rpc.js.map +1 -0
- package/data/build/dist/host/session-changes.d.ts +13 -0
- package/data/build/dist/host/session-changes.d.ts.map +1 -0
- package/data/build/dist/host/session-changes.js +374 -0
- package/data/build/dist/host/session-changes.js.map +1 -0
- package/data/build/dist/host/session-handle-eviction.d.ts +33 -0
- package/data/build/dist/host/session-handle-eviction.d.ts.map +1 -0
- package/data/build/dist/host/session-handle-eviction.js +429 -0
- package/data/build/dist/host/session-handle-eviction.js.map +1 -0
- package/data/build/dist/host/session-migration-repair.d.ts +23 -0
- package/data/build/dist/host/session-migration-repair.d.ts.map +1 -0
- package/data/build/dist/host/session-migration-repair.js +576 -0
- package/data/build/dist/host/session-migration-repair.js.map +1 -0
- package/data/build/dist/host/settings.d.ts +39 -0
- package/data/build/dist/host/settings.d.ts.map +1 -0
- package/data/build/dist/host/settings.js +352 -0
- package/data/build/dist/host/settings.js.map +1 -0
- package/data/build/dist/host/stage0-dev-hmr.d.ts +6 -0
- package/data/build/dist/host/stage0-dev-hmr.d.ts.map +1 -0
- package/data/build/dist/host/stage0-dev-hmr.js +20 -0
- package/data/build/dist/host/stage0-dev-hmr.js.map +1 -0
- package/data/build/dist/host/tar-archive.d.ts +8 -0
- package/data/build/dist/host/tar-archive.d.ts.map +1 -0
- package/data/build/dist/host/tar-archive.js +17 -0
- package/data/build/dist/host/tar-archive.js.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts +17 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.js +49 -0
- package/data/build/dist/host/terminal/attachment-registry.js.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts +39 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js +160 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts +36 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js +192 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +80 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js +467 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts +27 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js +154 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts +10 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js +147 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts +92 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js +134 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts +42 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.js +104 -0
- package/data/build/dist/host/terminal/controller-factory.js.map +1 -0
- package/data/build/dist/host/terminal/index.d.ts +17 -0
- package/data/build/dist/host/terminal/index.d.ts.map +1 -0
- package/data/build/dist/host/terminal/index.js +17 -0
- package/data/build/dist/host/terminal/index.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts +109 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.js +26 -0
- package/data/build/dist/host/terminal/runtime-adapter.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts +45 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.js +270 -0
- package/data/build/dist/host/terminal/runtime-manager.js.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts +23 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.js +105 -0
- package/data/build/dist/host/terminal/shell-detection.js.map +1 -0
- package/data/build/dist/host/terminal/startup.d.ts +38 -0
- package/data/build/dist/host/terminal/startup.d.ts.map +1 -0
- package/data/build/dist/host/terminal/startup.js +102 -0
- package/data/build/dist/host/terminal/startup.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts +93 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.js +467 -0
- package/data/build/dist/host/terminal/terminal-controller.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts +52 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.js +308 -0
- package/data/build/dist/host/terminal/terminal-process-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts +45 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.js +183 -0
- package/data/build/dist/host/terminal/terminal-process-store.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts +150 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.js +1171 -0
- package/data/build/dist/host/terminal/terminal-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts +49 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.js +242 -0
- package/data/build/dist/host/terminal/terminal-store.js.map +1 -0
- package/data/build/dist/host/update/application-result.d.ts +3 -0
- package/data/build/dist/host/update/application-result.d.ts.map +1 -0
- package/data/build/dist/host/update/application-result.js +13 -0
- package/data/build/dist/host/update/application-result.js.map +1 -0
- package/data/build/dist/host/update/http.d.ts +7 -0
- package/data/build/dist/host/update/http.d.ts.map +1 -0
- package/data/build/dist/host/update/http.js +55 -0
- package/data/build/dist/host/update/http.js.map +1 -0
- package/data/build/dist/host/update/metadata.d.ts +14 -0
- package/data/build/dist/host/update/metadata.d.ts.map +1 -0
- package/data/build/dist/host/update/metadata.js +75 -0
- package/data/build/dist/host/update/metadata.js.map +1 -0
- package/data/build/dist/host/update/release-notes.d.ts +6 -0
- package/data/build/dist/host/update/release-notes.d.ts.map +1 -0
- package/data/build/dist/host/update/release-notes.js +52 -0
- package/data/build/dist/host/update/release-notes.js.map +1 -0
- package/data/build/dist/host/update/service.d.ts +25 -0
- package/data/build/dist/host/update/service.d.ts.map +1 -0
- package/data/build/dist/host/update/service.js +209 -0
- package/data/build/dist/host/update/service.js.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.js +15 -0
- package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
- package/data/build/dist/host/workspace-root.d.ts +13 -0
- package/data/build/dist/host/workspace-root.d.ts.map +1 -0
- package/data/build/dist/host/workspace-root.js +98 -0
- package/data/build/dist/host/workspace-root.js.map +1 -0
- package/data/build/dist/index.d.ts +40 -0
- package/data/build/dist/index.d.ts.map +1 -0
- package/data/build/dist/index.js +31 -0
- package/data/build/dist/index.js.map +1 -0
- package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
- package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
- package/data/build/dist/shared/attachment-prompts.js +17 -0
- package/data/build/dist/shared/attachment-prompts.js.map +1 -0
- package/data/build/dist/shared/attachments.d.ts +18 -0
- package/data/build/dist/shared/attachments.d.ts.map +1 -0
- package/data/build/dist/shared/attachments.js +22 -0
- package/data/build/dist/shared/attachments.js.map +1 -0
- package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
- package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
- package/data/build/dist/shared/cli-provider-route.js +13 -0
- package/data/build/dist/shared/cli-provider-route.js.map +1 -0
- package/data/build/dist/shared/codex-performance.d.ts +3 -0
- package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
- package/data/build/dist/shared/codex-performance.js +2 -0
- package/data/build/dist/shared/codex-performance.js.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.js +51 -0
- package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
- package/data/build/dist/shared/contracts/auth.d.ts +122 -0
- package/data/build/dist/shared/contracts/auth.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/auth.js +8 -0
- package/data/build/dist/shared/contracts/auth.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +484 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.js +2 -0
- package/data/build/dist/shared/contracts/cli-adapter.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.js +2 -0
- package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
- package/data/build/dist/shared/contracts/command-code.d.ts +5 -0
- package/data/build/dist/shared/contracts/command-code.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/command-code.js +2 -0
- package/data/build/dist/shared/contracts/command-code.js.map +1 -0
- package/data/build/dist/shared/contracts/config.d.ts +363 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/config.js +302 -0
- package/data/build/dist/shared/contracts/config.js.map +1 -0
- package/data/build/dist/shared/contracts/credentials.d.ts +73 -0
- package/data/build/dist/shared/contracts/credentials.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/credentials.js +38 -0
- package/data/build/dist/shared/contracts/credentials.js.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts +28 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.js +78 -0
- package/data/build/dist/shared/contracts/debug-config.js.map +1 -0
- package/data/build/dist/shared/contracts/debug.d.ts +75 -0
- package/data/build/dist/shared/contracts/debug.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug.js +121 -0
- package/data/build/dist/shared/contracts/debug.js.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts +86 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.js +2 -0
- package/data/build/dist/shared/contracts/dsh-device.js.map +1 -0
- package/data/build/dist/shared/contracts/errors.d.ts +30 -0
- package/data/build/dist/shared/contracts/errors.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/errors.js +38 -0
- package/data/build/dist/shared/contracts/errors.js.map +1 -0
- package/data/build/dist/shared/contracts/feature.d.ts +93 -0
- package/data/build/dist/shared/contracts/feature.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/feature.js +2 -0
- package/data/build/dist/shared/contracts/feature.js.map +1 -0
- package/data/build/dist/shared/contracts/file-management.d.ts +6 -0
- package/data/build/dist/shared/contracts/file-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/file-management.js +3 -0
- package/data/build/dist/shared/contracts/file-management.js.map +1 -0
- package/data/build/dist/shared/contracts/git.d.ts +129 -0
- package/data/build/dist/shared/contracts/git.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/git.js +29 -0
- package/data/build/dist/shared/contracts/git.js.map +1 -0
- package/data/build/dist/shared/contracts/host-status.d.ts +32 -0
- package/data/build/dist/shared/contracts/host-status.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/host-status.js +2 -0
- package/data/build/dist/shared/contracts/host-status.js.map +1 -0
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts +32 -0
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js +2 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts +55 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.js +48 -0
- package/data/build/dist/shared/contracts/interaction-translation.js.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +53 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js +2 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js.map +1 -0
- package/data/build/dist/shared/contracts/llm-chat.d.ts +18 -0
- package/data/build/dist/shared/contracts/llm-chat.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/llm-chat.js +2 -0
- package/data/build/dist/shared/contracts/llm-chat.js.map +1 -0
- package/data/build/dist/shared/contracts/plugin-update.d.ts +93 -0
- package/data/build/dist/shared/contracts/plugin-update.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/plugin-update.js +128 -0
- package/data/build/dist/shared/contracts/plugin-update.js.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts +135 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.js +195 -0
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -0
- package/data/build/dist/shared/contracts/signaling.d.ts +67 -0
- package/data/build/dist/shared/contracts/signaling.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/signaling.js +2 -0
- package/data/build/dist/shared/contracts/signaling.js.map +1 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +206 -0
- package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/subscription.js +15 -0
- package/data/build/dist/shared/contracts/subscription.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts +65 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.js +2 -0
- package/data/build/dist/shared/contracts/terminal-process.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal-share.d.ts +27 -0
- package/data/build/dist/shared/contracts/terminal-share.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal-share.js +2 -0
- package/data/build/dist/shared/contracts/terminal-share.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal.d.ts +141 -0
- package/data/build/dist/shared/contracts/terminal.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal.js +2 -0
- package/data/build/dist/shared/contracts/terminal.js.map +1 -0
- package/data/build/dist/shared/contracts/transport.d.ts +45 -0
- package/data/build/dist/shared/contracts/transport.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/transport.js +3 -0
- package/data/build/dist/shared/contracts/transport.js.map +1 -0
- package/data/build/dist/shared/contracts/version.d.ts +25 -0
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/version.js +89 -0
- package/data/build/dist/shared/contracts/version.js.map +1 -0
- package/data/build/dist/shared/credential-carrier.d.ts +19 -0
- package/data/build/dist/shared/credential-carrier.d.ts.map +1 -0
- package/data/build/dist/shared/credential-carrier.js +90 -0
- package/data/build/dist/shared/credential-carrier.js.map +1 -0
- package/data/build/dist/shared/debug.d.ts +22 -0
- package/data/build/dist/shared/debug.d.ts.map +1 -0
- package/data/build/dist/shared/debug.js +89 -0
- package/data/build/dist/shared/debug.js.map +1 -0
- package/data/build/dist/shared/delegation-carrier.d.ts +24 -0
- package/data/build/dist/shared/delegation-carrier.d.ts.map +1 -0
- package/data/build/dist/shared/delegation-carrier.js +111 -0
- package/data/build/dist/shared/delegation-carrier.js.map +1 -0
- package/data/build/dist/shared/index.d.ts +29 -0
- package/data/build/dist/shared/index.d.ts.map +1 -0
- package/data/build/dist/shared/index.js +13 -0
- package/data/build/dist/shared/index.js.map +1 -0
- package/data/build/dist/shared/native-approval-modes.d.ts +7 -0
- package/data/build/dist/shared/native-approval-modes.d.ts.map +1 -0
- package/data/build/dist/shared/native-approval-modes.js +38 -0
- package/data/build/dist/shared/native-approval-modes.js.map +1 -0
- package/data/build/dist/shared/provider-icon-resources.d.ts +4 -0
- package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -0
- package/data/build/dist/shared/provider-icon-resources.js +25 -0
- package/data/build/dist/shared/provider-icon-resources.js.map +1 -0
- package/data/build/dist/shared/request-performance.d.ts +20 -0
- package/data/build/dist/shared/request-performance.d.ts.map +1 -0
- package/data/build/dist/shared/request-performance.js +6 -0
- package/data/build/dist/shared/request-performance.js.map +1 -0
- package/data/build/dist/shared/runtime-environment.d.ts +5 -0
- package/data/build/dist/shared/runtime-environment.d.ts.map +1 -0
- package/data/build/dist/shared/runtime-environment.js +7 -0
- package/data/build/dist/shared/runtime-environment.js.map +1 -0
- package/data/build/dist/shared/session-file-location.d.ts +11 -0
- package/data/build/dist/shared/session-file-location.d.ts.map +1 -0
- package/data/build/dist/shared/session-file-location.js +20 -0
- package/data/build/dist/shared/session-file-location.js.map +1 -0
- package/data/build/dist/shared/session-reference.d.ts +9 -0
- package/data/build/dist/shared/session-reference.d.ts.map +1 -0
- package/data/build/dist/shared/session-reference.js +27 -0
- package/data/build/dist/shared/session-reference.js.map +1 -0
- package/data/build/dist/shared/session-title.d.ts +12 -0
- package/data/build/dist/shared/session-title.d.ts.map +1 -0
- package/data/build/dist/shared/session-title.js +71 -0
- package/data/build/dist/shared/session-title.js.map +1 -0
- package/data/build/dist/shared/terminal-input.d.ts +8 -0
- package/data/build/dist/shared/terminal-input.d.ts.map +1 -0
- package/data/build/dist/shared/terminal-input.js +10 -0
- package/data/build/dist/shared/terminal-input.js.map +1 -0
- package/data/build/dist/shared/translation-effect.d.ts +8 -0
- package/data/build/dist/shared/translation-effect.d.ts.map +1 -0
- package/data/build/dist/shared/translation-effect.js +24 -0
- package/data/build/dist/shared/translation-effect.js.map +1 -0
- package/data/build/dist/shared/translation-indicator.d.ts +26 -0
- package/data/build/dist/shared/translation-indicator.d.ts.map +1 -0
- package/data/build/dist/shared/translation-indicator.js +29 -0
- package/data/build/dist/shared/translation-indicator.js.map +1 -0
- package/data/build/dist/transport/carrier.d.ts +48 -0
- package/data/build/dist/transport/carrier.d.ts.map +1 -0
- package/data/build/dist/transport/carrier.js +319 -0
- package/data/build/dist/transport/carrier.js.map +1 -0
- package/data/build/dist/transport/debug.d.ts +39 -0
- package/data/build/dist/transport/debug.d.ts.map +1 -0
- package/data/build/dist/transport/debug.js +97 -0
- package/data/build/dist/transport/debug.js.map +1 -0
- package/data/build/dist/transport/dsh-envelope.d.ts +41 -0
- package/data/build/dist/transport/dsh-envelope.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-envelope.js +107 -0
- package/data/build/dist/transport/dsh-envelope.js.map +1 -0
- package/data/build/dist/transport/dsh-gateway.d.ts +64 -0
- package/data/build/dist/transport/dsh-gateway.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-gateway.js +254 -0
- package/data/build/dist/transport/dsh-gateway.js.map +1 -0
- package/data/build/dist/transport/dsh-session.d.ts +72 -0
- package/data/build/dist/transport/dsh-session.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-session.js +291 -0
- package/data/build/dist/transport/dsh-session.js.map +1 -0
- package/data/build/dist/transport/dsh-transport.d.ts +59 -0
- package/data/build/dist/transport/dsh-transport.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-transport.js +136 -0
- package/data/build/dist/transport/dsh-transport.js.map +1 -0
- package/data/build/dist/transport/frame.d.ts +132 -0
- package/data/build/dist/transport/frame.d.ts.map +1 -0
- package/data/build/dist/transport/frame.js +168 -0
- package/data/build/dist/transport/frame.js.map +1 -0
- package/data/build/dist/transport/index.d.ts +11 -0
- package/data/build/dist/transport/index.d.ts.map +1 -0
- package/data/build/dist/transport/index.js +11 -0
- package/data/build/dist/transport/index.js.map +1 -0
- package/data/build/dist/transport/multiplexer.d.ts +63 -0
- package/data/build/dist/transport/multiplexer.d.ts.map +1 -0
- package/data/build/dist/transport/multiplexer.js +323 -0
- package/data/build/dist/transport/multiplexer.js.map +1 -0
- package/data/build/dist/transport/webrtc-client.d.ts +75 -0
- package/data/build/dist/transport/webrtc-client.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-client.js +382 -0
- package/data/build/dist/transport/webrtc-client.js.map +1 -0
- package/data/build/dist/transport/webrtc-host.d.ts +60 -0
- package/data/build/dist/transport/webrtc-host.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-host.js +259 -0
- package/data/build/dist/transport/webrtc-host.js.map +1 -0
- package/data/build/dist/typert.host.d.ts +25 -0
- package/data/build/dist/typert.host.d.ts.map +1 -0
- package/data/build/dist/typert.host.js +155 -0
- package/data/build/dist/typert.host.js.map +1 -0
- package/data/build/dist/typert.remote-client.d.ts +11 -0
- package/data/build/dist/typert.remote-client.d.ts.map +1 -0
- package/data/build/dist/typert.remote-client.js +7 -0
- package/data/build/dist/typert.remote-client.js.map +1 -0
- package/dsh.bundle.patch +23 -0
- package/package.json +227 -4
- package/profile/README.md +43 -0
- package/profile/cordis.patch.yml +2 -0
- package/profile/package.json +25 -0
- package/profile/scripts/check-dsh-install.mjs +126 -0
- package/profile/version.json +5 -0
- package/scripts/check-dsh-install.mjs +128 -0
- package/version.json +6 -0
|
@@ -0,0 +1,1412 @@
|
|
|
1
|
+
import { isNativeApprovalMode } from '../../shared/native-approval-modes.js';
|
|
2
|
+
import { invalidateCommandEnvironment, withCommandSignal } from './process-utils.js';
|
|
3
|
+
import { failedDetection } from './binary-detection.js';
|
|
4
|
+
import { AgentDoorRpcError } from '../rpc-table.js';
|
|
5
|
+
import { debugInfo } from '../../shared/debug.js';
|
|
6
|
+
import { AgentDoorCliSessionStore } from './session-store.js';
|
|
7
|
+
import { readLegacyImportedAdapterPreferences } from './legacy-session-settings.js';
|
|
8
|
+
import { knownAntigravityContextWindow, knownClaudeContextWindow, knownCodexContextWindow, knownCommandCodeContextWindow, knownOpenCodeContextWindow } from './model-catalog.js';
|
|
9
|
+
import { toCliProviderId } from '../../shared/cli-provider-route.js';
|
|
10
|
+
export class AgentDoorCliAdapterRegistry {
|
|
11
|
+
modelSelectionListeners = new Set();
|
|
12
|
+
drivers = new Map();
|
|
13
|
+
sessions = new Map();
|
|
14
|
+
lastUsages = new Map();
|
|
15
|
+
enabled = new Map();
|
|
16
|
+
providerProbeTtlMs;
|
|
17
|
+
missingConfirmationDelayMs;
|
|
18
|
+
providerProbeTimeoutMs;
|
|
19
|
+
providerProbeConcurrency;
|
|
20
|
+
probes = new Map();
|
|
21
|
+
executingSessions = new Map();
|
|
22
|
+
maintenanceAdapters = new Set();
|
|
23
|
+
archivingSessions = new Set();
|
|
24
|
+
detectionCache = new Map();
|
|
25
|
+
detectionRefreshes = new Map();
|
|
26
|
+
modelCache = new Map();
|
|
27
|
+
modelFailures = new Map();
|
|
28
|
+
modelRefreshes = new Map();
|
|
29
|
+
modelGenerations = new Map();
|
|
30
|
+
/**
|
|
31
|
+
* 上次构建目录时驱动声明的 Provider 配置指纹。
|
|
32
|
+
*
|
|
33
|
+
* 与安装探测指纹不同:用户在外部工具里切换供应商或登录状态时,CLI 可执行文件
|
|
34
|
+
* 完全没变,`detectionFingerprint` 因此不变,长 TTL 的目录缓存会把旧的账号判定
|
|
35
|
+
* 一直沿用下去——界面就会长期缺少依赖该判定的控件(Codex 官方订阅的 Fast 档位
|
|
36
|
+
* 开关正是如此)。这里按驱动声明的指纹在每次读取目录时校验,配置一变立即失效。
|
|
37
|
+
*/
|
|
38
|
+
catalogFingerprints = new Map();
|
|
39
|
+
/**
|
|
40
|
+
* 已切到下一个 DSH step、但仍在继续产出 Provider 流的运行。
|
|
41
|
+
*
|
|
42
|
+
* 通用切分由 Registry 持有活迭代器;驱动自行分段的适配器(Codex、Command Code)
|
|
43
|
+
* 把进程和段状态留在驱动内,这里只登记续段意图,用 null 迭代器区分两者。
|
|
44
|
+
*/
|
|
45
|
+
segmentedTurns = new Map();
|
|
46
|
+
cacheGeneration = 0;
|
|
47
|
+
startupTimer;
|
|
48
|
+
lifetime = new AbortController();
|
|
49
|
+
originalDetections = new Map();
|
|
50
|
+
detectionStates = new Map();
|
|
51
|
+
detectionTimes = new Map();
|
|
52
|
+
disposed = false;
|
|
53
|
+
constructor(drivers, enabled = {}, options = {}) {
|
|
54
|
+
this.sessionStore = options.sessionStore;
|
|
55
|
+
this.nativeSessions = options.nativeSessions;
|
|
56
|
+
this.settings = options.settings;
|
|
57
|
+
this.providerProbeTtlMs = options.providerProbeTtlMs ?? 60_000;
|
|
58
|
+
this.missingConfirmationDelayMs = options.missingConfirmationDelayMs ?? 2_000;
|
|
59
|
+
this.providerProbeTimeoutMs = Math.max(1, options.providerProbeTimeoutMs ?? 10_000);
|
|
60
|
+
this.providerProbeConcurrency = Math.max(1, Math.floor(options.providerProbeConcurrency ?? 4));
|
|
61
|
+
const configuredPreferences = options.settings?.get().agentAdapterPreferences;
|
|
62
|
+
const legacyPreferences = options.settings === undefined ? {} : readLegacyImportedAdapterPreferences();
|
|
63
|
+
const mergedPreferences = mergePreferenceRecords(legacyPreferences, configuredPreferences);
|
|
64
|
+
this.syncPreferences(mergedPreferences);
|
|
65
|
+
// DSH 0.1.7 不会把旧 `agentdoor` 设置段自动映射到 scoped Config entry。
|
|
66
|
+
// 先用旧值恢复当前进程,再把缺失值写入新配置,后续重启即可走正常路径。
|
|
67
|
+
if (options.settings !== undefined && hasMissingPreferences(configuredPreferences, legacyPreferences)) {
|
|
68
|
+
this.persistPreferences();
|
|
69
|
+
}
|
|
70
|
+
for (const driver of drivers) {
|
|
71
|
+
if (this.drivers.has(driver.descriptor.id))
|
|
72
|
+
throw new Error(`重复 Agent: ${driver.descriptor.id}`);
|
|
73
|
+
this.drivers.set(driver.descriptor.id, driver);
|
|
74
|
+
// 驱动在模型查询和执行前的自检也必须复用同一缓存,不能绕过注册表反复启动 CLI。
|
|
75
|
+
this.originalDetections.set(driver.descriptor.id, driver.detect);
|
|
76
|
+
driver.detect = () => this.readDetection(driver);
|
|
77
|
+
this.enabled.set(driver.descriptor.id, enabled[driver.descriptor.id] !== false);
|
|
78
|
+
}
|
|
79
|
+
for (const record of this.sessionStore?.list({ includeArchived: true }) ?? []) {
|
|
80
|
+
const { dshSessionId: _dshSessionId, title: _title, cwd: _cwd, status: _status, providerState: _providerState, providerCheckedAt: _providerCheckedAt, providerStateReason: _providerStateReason, createdAt: _createdAt, updatedAt: _updatedAt, lastError: _lastError, ...config } = record;
|
|
81
|
+
this.sessions.set(record.dshSessionId, config);
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
sessionStore;
|
|
85
|
+
nativeSessions;
|
|
86
|
+
settings;
|
|
87
|
+
preferences = new Map();
|
|
88
|
+
preferenceWritesPending = 0;
|
|
89
|
+
/** 设置服务更新必须按选择顺序落盘;并发 update 会让旧快照覆盖新模型/档位。 */
|
|
90
|
+
preferenceWriteTail = Promise.resolve();
|
|
91
|
+
/** 启动让出首屏,只检测一次;模型目录留到首次使用时异步加载。 */
|
|
92
|
+
warmCatalog() {
|
|
93
|
+
if (this.disposed || this.startupTimer !== undefined)
|
|
94
|
+
return;
|
|
95
|
+
this.startupTimer = setTimeout(() => {
|
|
96
|
+
for (const driver of this.drivers.values())
|
|
97
|
+
void this.readDetection(driver);
|
|
98
|
+
}, 1_000);
|
|
99
|
+
unrefTimer(this.startupTimer);
|
|
100
|
+
}
|
|
101
|
+
/** 普通目录查询只读内存,不等待 CLI,也不触发过期刷新。 */
|
|
102
|
+
async catalog() {
|
|
103
|
+
return [...this.drivers.values()].map((driver) => {
|
|
104
|
+
const id = driver.descriptor.id;
|
|
105
|
+
const checkedAt = this.detectionTimes.get(id);
|
|
106
|
+
return {
|
|
107
|
+
...driver.descriptor, enabled: this.isEnabled(id),
|
|
108
|
+
...(this.detectionCache.get(id)?.value ?? { installed: false, version: null, command: null }),
|
|
109
|
+
detectionState: this.detectionStates.get(id) ?? 'pending',
|
|
110
|
+
...(checkedAt === undefined ? {} : { checkedAt }),
|
|
111
|
+
};
|
|
112
|
+
});
|
|
113
|
+
}
|
|
114
|
+
/** 真正执行用户选择时,只等待这些目标的首轮检测,避免把 pending 误判成未安装。 */
|
|
115
|
+
async catalogForUse(adapterIds) {
|
|
116
|
+
await Promise.all([...new Set(adapterIds)].map((id) => {
|
|
117
|
+
const driver = this.drivers.get(id);
|
|
118
|
+
return driver === undefined || !this.isEnabled(id) ? undefined : this.readDetection(driver);
|
|
119
|
+
}));
|
|
120
|
+
return this.catalog();
|
|
121
|
+
}
|
|
122
|
+
/** 仅设置页显式重新检测;并发请求合并,已有模型在重新检测后按需刷新。 */
|
|
123
|
+
async refreshCatalog(adapterId) {
|
|
124
|
+
if (this.disposed)
|
|
125
|
+
throw new Error('Agent 注册表已关闭');
|
|
126
|
+
const drivers = adapterId === undefined ? [...this.drivers.values()] : [this.requireDriver(adapterId)];
|
|
127
|
+
invalidateCommandEnvironment();
|
|
128
|
+
await Promise.all(drivers.map(async (driver) => {
|
|
129
|
+
await this.refreshDetection(driver);
|
|
130
|
+
this.invalidateModelCache(driver.descriptor.id);
|
|
131
|
+
}));
|
|
132
|
+
return this.catalog();
|
|
133
|
+
}
|
|
134
|
+
/** Serialize installation changes against active and suspended Agent turns. */
|
|
135
|
+
beginMaintenance(adapterId) {
|
|
136
|
+
if (this.disposed)
|
|
137
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_UNAVAILABLE', 'The Agent registry is stopped.');
|
|
138
|
+
this.requireDriver(adapterId);
|
|
139
|
+
if (this.maintenanceAdapters.has(adapterId)
|
|
140
|
+
|| [...this.executingSessions.values()].includes(adapterId)
|
|
141
|
+
|| [...this.segmentedTurns.values()].some((turn) => turn.adapterId === adapterId)) {
|
|
142
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'Wait for this Agent to finish its active tasks before installing or updating it.');
|
|
143
|
+
}
|
|
144
|
+
this.maintenanceAdapters.add(adapterId);
|
|
145
|
+
return () => { this.maintenanceAdapters.delete(adapterId); };
|
|
146
|
+
}
|
|
147
|
+
async models(adapterId) {
|
|
148
|
+
const driver = this.requireEnabledDriver(adapterId);
|
|
149
|
+
// Provider 配置(供应商、登录方式、默认档位)变化时必须先作废目录,否则
|
|
150
|
+
// 账号级判定会跟着 10 分钟 TTL 一起被沿用,界面上的档位开关等控件长期缺失。
|
|
151
|
+
if (this.invalidateOnCatalogFingerprintChange(adapterId, driver)) {
|
|
152
|
+
return this.refreshModels(driver);
|
|
153
|
+
}
|
|
154
|
+
const cached = this.modelCache.get(adapterId);
|
|
155
|
+
if (cached !== undefined) {
|
|
156
|
+
return cached.value;
|
|
157
|
+
}
|
|
158
|
+
const failure = this.modelFailures.get(adapterId);
|
|
159
|
+
if (failure !== undefined) {
|
|
160
|
+
throw failure.error;
|
|
161
|
+
}
|
|
162
|
+
return this.refreshModels(driver);
|
|
163
|
+
}
|
|
164
|
+
/** 读取当前外部会话绑定 Agent 的 Skill 目录;不把路径或文件内容暴露给 Client。 */
|
|
165
|
+
async listSkills(sessionId, options = {}) {
|
|
166
|
+
const session = this.getSession(sessionId);
|
|
167
|
+
// DSH 原生 Skill 由 DSH 自己的 `skills/list` Remote 提供;外部目录 RPC
|
|
168
|
+
// 对它以及旧 Client 误请求的适配器统一视为空目录,避免能力探测刷错误日志。
|
|
169
|
+
if (session.adapterId === 'dsh')
|
|
170
|
+
return [];
|
|
171
|
+
const driver = this.requireEnabledDriver(session.adapterId);
|
|
172
|
+
if (!driver.descriptor.capabilities?.includes('skills') || typeof driver.listSkills !== 'function')
|
|
173
|
+
return [];
|
|
174
|
+
const storedCwd = this.sessionStore?.get(sessionId)?.cwd;
|
|
175
|
+
const cwd = options.cwd ?? storedCwd;
|
|
176
|
+
return driver.listSkills({
|
|
177
|
+
sessionId,
|
|
178
|
+
...(cwd === undefined ? {} : { cwd }),
|
|
179
|
+
...(options.forceReload === true ? { forceReload: true } : {}),
|
|
180
|
+
...(options.signal === undefined ? {} : { signal: options.signal }),
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
setEnabled(adapterId, enabled) {
|
|
184
|
+
this.requireDriver(adapterId);
|
|
185
|
+
const previous = this.isEnabled(adapterId);
|
|
186
|
+
this.enabled.set(adapterId, enabled);
|
|
187
|
+
if (previous === enabled)
|
|
188
|
+
return enabled;
|
|
189
|
+
for (const listener of this.modelSelectionListeners)
|
|
190
|
+
listener();
|
|
191
|
+
return enabled;
|
|
192
|
+
}
|
|
193
|
+
/** Observe route and adapter availability changes before the next model step. */
|
|
194
|
+
onModelSelectionChanged(listener) {
|
|
195
|
+
this.modelSelectionListeners.add(listener);
|
|
196
|
+
return () => { this.modelSelectionListeners.delete(listener); };
|
|
197
|
+
}
|
|
198
|
+
applyEnabledSettings(settings) {
|
|
199
|
+
for (const adapterId of this.enabled.keys())
|
|
200
|
+
this.setEnabled(adapterId, settings?.[adapterId] !== false);
|
|
201
|
+
}
|
|
202
|
+
isEnabled(adapterId) {
|
|
203
|
+
return this.enabled.get(adapterId) ?? false;
|
|
204
|
+
}
|
|
205
|
+
/** 返回当前启用的外部 Provider 路由,供 DSH 虚拟 Provider 注册使用。 */
|
|
206
|
+
enabledAdapterIds() {
|
|
207
|
+
return [...this.drivers.keys()].filter((adapterId) => this.isEnabled(adapterId));
|
|
208
|
+
}
|
|
209
|
+
enabledSnapshot() {
|
|
210
|
+
return Object.fromEntries(this.enabled.entries());
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* DSH 0.2 的 Team 必须由原生 TeamService 创建 continuable child、mailbox
|
|
214
|
+
* 和 task board。当前外部 CLI 仍是独立进程,不能伪装成原生成员;统一返回
|
|
215
|
+
* 可诊断结果,避免 Client 把普通 CLI 会话误显示成 Team 成员。
|
|
216
|
+
*/
|
|
217
|
+
teamDiagnostic() {
|
|
218
|
+
return {
|
|
219
|
+
supported: false,
|
|
220
|
+
code: 'DSH_TEAM_NATIVE_UNAVAILABLE',
|
|
221
|
+
message: '当前插件仅提供外部 CLI 会话适配器,尚未接入 DSH 0.2 原生 Agent Team 生命周期。',
|
|
222
|
+
};
|
|
223
|
+
}
|
|
224
|
+
setSession(sessionId, config, options = {}) {
|
|
225
|
+
if (sessionId.trim() === '')
|
|
226
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'sessionId 不能为空');
|
|
227
|
+
// dsh 是 DSH 自带的默认 Agent,不对应一个外部驱动,但仍需要作为会话
|
|
228
|
+
// 配置保存值,方便 Client 从外部 CLI 切回默认 Agent。
|
|
229
|
+
if (config.adapterId !== 'dsh')
|
|
230
|
+
this.requireEnabledDriver(config.adapterId);
|
|
231
|
+
const storedTeam = this.sessionStore?.get(sessionId);
|
|
232
|
+
const previous = this.sessions.get(sessionId) ?? (storedTeam?.adapterId === config.adapterId ? this.getSession(sessionId) : undefined);
|
|
233
|
+
const sameAdapter = previous?.adapterId === config.adapterId;
|
|
234
|
+
if (config.nativeApprovalMode !== undefined && !isNativeApprovalMode(config.adapterId, config.nativeApprovalMode)) {
|
|
235
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'Unsupported native approval mode');
|
|
236
|
+
}
|
|
237
|
+
if (previous !== undefined && !sameAdapter)
|
|
238
|
+
this.lastUsages.delete(sessionId);
|
|
239
|
+
const remembered = this.preferences.get(config.adapterId) ?? this.findRememberedPreference(config.adapterId);
|
|
240
|
+
// A resolved child route owns its complete model selection. An omitted
|
|
241
|
+
// effort must remain omitted instead of borrowing another model's choice.
|
|
242
|
+
const previousSelection = options.inheritSelection === false ? undefined : sameAdapter ? previous : undefined;
|
|
243
|
+
const ownsNativeTeamSelection = config.adapterId === 'dsh' && Boolean(config.teamId ?? previous?.teamId);
|
|
244
|
+
const rememberedSelection = options.inheritSelection === false || ownsNativeTeamSelection ? undefined : remembered;
|
|
245
|
+
// Only a new binding may borrow a remembered mode. Old sessions keep their permissions.
|
|
246
|
+
const isolated = config.teamId || previous?.teamId || config.parentSessionId || previous?.parentSessionId || config.origin === 'subagent' || previous?.origin === 'subagent';
|
|
247
|
+
const nativeApprovalMode = config.nativeApprovalMode ?? (sameAdapter ? previousSelection?.nativeApprovalMode : isolated ? undefined : rememberedSelection?.nativeApprovalMode);
|
|
248
|
+
const providerSessionId = config.providerSessionId?.trim();
|
|
249
|
+
const providerIdentityChanged = providerSessionId !== undefined
|
|
250
|
+
&& providerSessionId !== previous?.providerSessionId;
|
|
251
|
+
const normalized = {
|
|
252
|
+
adapterId: config.adapterId,
|
|
253
|
+
...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
|
|
254
|
+
...(config.modelId?.trim()
|
|
255
|
+
? { modelId: config.modelId.trim() }
|
|
256
|
+
: previousSelection?.modelId
|
|
257
|
+
? { modelId: previousSelection.modelId }
|
|
258
|
+
: rememberedSelection?.modelId
|
|
259
|
+
? { modelId: rememberedSelection.modelId }
|
|
260
|
+
: {}),
|
|
261
|
+
...(config.effortId?.trim()
|
|
262
|
+
? { effortId: config.effortId.trim() }
|
|
263
|
+
: previousSelection?.effortId
|
|
264
|
+
? { effortId: previousSelection.effortId }
|
|
265
|
+
: rememberedSelection?.effortId
|
|
266
|
+
? { effortId: rememberedSelection.effortId }
|
|
267
|
+
: {}),
|
|
268
|
+
// 服务档位是“显式选择”而不是“可回退的最近值”:`default` 表示标准速度,
|
|
269
|
+
// 与 undefined(Host 没有该选择)语义不同,必须原样保留,不能被记忆值覆盖。
|
|
270
|
+
...(config.serviceTierId?.trim()
|
|
271
|
+
? { serviceTierId: config.serviceTierId.trim() }
|
|
272
|
+
: previousSelection?.serviceTierId
|
|
273
|
+
? { serviceTierId: previousSelection.serviceTierId }
|
|
274
|
+
: rememberedSelection?.serviceTierId
|
|
275
|
+
? { serviceTierId: rememberedSelection.serviceTierId }
|
|
276
|
+
: {}),
|
|
277
|
+
...(config.translationEnabled !== undefined
|
|
278
|
+
? { translationEnabled: config.translationEnabled }
|
|
279
|
+
: sameAdapter && previous?.translationEnabled !== undefined
|
|
280
|
+
? { translationEnabled: previous.translationEnabled }
|
|
281
|
+
: remembered?.translationEnabled !== undefined
|
|
282
|
+
? { translationEnabled: remembered.translationEnabled }
|
|
283
|
+
: {}),
|
|
284
|
+
...(config.providerId?.trim()
|
|
285
|
+
? { providerId: config.providerId.trim() }
|
|
286
|
+
: sameAdapter && previous?.providerId
|
|
287
|
+
? { providerId: previous.providerId }
|
|
288
|
+
: {}),
|
|
289
|
+
...(providerSessionId ? { providerSessionId } : sameAdapter && previous?.providerSessionId ? { providerSessionId: previous.providerSessionId } : {}),
|
|
290
|
+
...(config.rawStoreRef?.trim()
|
|
291
|
+
? { rawStoreRef: config.rawStoreRef.trim() }
|
|
292
|
+
: sameAdapter && !providerIdentityChanged && previous?.rawStoreRef
|
|
293
|
+
? { rawStoreRef: previous.rawStoreRef }
|
|
294
|
+
: {}),
|
|
295
|
+
...(config.parentSessionId?.trim()
|
|
296
|
+
? { parentSessionId: config.parentSessionId.trim() }
|
|
297
|
+
: sameAdapter && previous?.parentSessionId ? { parentSessionId: previous.parentSessionId } : {}),
|
|
298
|
+
...(config.origin === 'user' || config.origin === 'subagent' || config.origin === 'plugin'
|
|
299
|
+
? { origin: config.origin }
|
|
300
|
+
: sameAdapter && previous?.origin ? { origin: previous.origin } : {}),
|
|
301
|
+
...(config.delegationDepth !== undefined && Number.isSafeInteger(config.delegationDepth) && config.delegationDepth >= 0
|
|
302
|
+
? { delegationDepth: config.delegationDepth }
|
|
303
|
+
: sameAdapter && previous?.delegationDepth !== undefined ? { delegationDepth: previous.delegationDepth } : {}),
|
|
304
|
+
...(config.continuationId?.trim()
|
|
305
|
+
? { continuationId: config.continuationId.trim() }
|
|
306
|
+
: sameAdapter && previous?.continuationId ? { continuationId: previous.continuationId } : {}),
|
|
307
|
+
...(config.teamId?.trim()
|
|
308
|
+
? { teamId: config.teamId.trim() }
|
|
309
|
+
: sameAdapter && previous?.teamId ? { teamId: previous.teamId } : {}),
|
|
310
|
+
...(config.teamMemberId?.trim()
|
|
311
|
+
? { teamMemberId: config.teamMemberId.trim() }
|
|
312
|
+
: sameAdapter && previous?.teamMemberId ? { teamMemberId: previous.teamMemberId } : {}),
|
|
313
|
+
...(config.credentialRefs !== undefined
|
|
314
|
+
? { credentialRefs: config.credentialRefs }
|
|
315
|
+
: sameAdapter && previous?.credentialRefs !== undefined ? { credentialRefs: previous.credentialRefs } : {}),
|
|
316
|
+
};
|
|
317
|
+
this.sessions.set(sessionId, normalized);
|
|
318
|
+
this.sessionStore?.upsert(sessionId, normalized);
|
|
319
|
+
if (options.rememberPreference !== false && normalized.teamId === undefined && normalized.parentSessionId === undefined && normalized.origin !== 'subagent')
|
|
320
|
+
this.rememberPreference(config.adapterId, normalized);
|
|
321
|
+
return normalized;
|
|
322
|
+
}
|
|
323
|
+
/** 设置服务变更后重新载入适配器级默认选择。 */
|
|
324
|
+
syncPreferences(value) {
|
|
325
|
+
if (value === undefined || this.preferenceWritesPending > 0)
|
|
326
|
+
return;
|
|
327
|
+
// 0.1.7 ConfigForms 在 entry 重新描述的瞬间可能只返回默认空字典;
|
|
328
|
+
// 不能让这次短暂快照抹掉当前进程已经恢复的选择。
|
|
329
|
+
if (Object.keys(value).length === 0 && this.preferences.size > 0)
|
|
330
|
+
return;
|
|
331
|
+
this.preferences.clear();
|
|
332
|
+
for (const [rawAdapterId, preference] of Object.entries(value)) {
|
|
333
|
+
const adapterId = rawAdapterId === 'codebuddy-cn' ? 'codebuddy' : rawAdapterId;
|
|
334
|
+
const modelId = preference?.modelId?.trim();
|
|
335
|
+
const effortId = preference?.effortId?.trim();
|
|
336
|
+
const serviceTierId = preference?.serviceTierId?.trim();
|
|
337
|
+
const nativeApprovalMode = isNativeApprovalMode(adapterId, preference?.nativeApprovalMode) ? preference.nativeApprovalMode : undefined;
|
|
338
|
+
if (modelId === undefined && effortId === undefined && serviceTierId === undefined && preference?.translationEnabled === undefined && nativeApprovalMode === undefined)
|
|
339
|
+
continue;
|
|
340
|
+
this.preferences.set(adapterId, {
|
|
341
|
+
...(modelId ? { modelId } : {}),
|
|
342
|
+
...(effortId ? { effortId } : {}),
|
|
343
|
+
...(serviceTierId ? { serviceTierId } : {}),
|
|
344
|
+
...(preference.translationEnabled === undefined ? {} : { translationEnabled: preference.translationEnabled }),
|
|
345
|
+
...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
|
|
346
|
+
});
|
|
347
|
+
}
|
|
348
|
+
}
|
|
349
|
+
findRememberedPreference(adapterId) {
|
|
350
|
+
const records = this.sessionStore?.list({ includeArchived: true, adapterId }).filter(record => record.teamId === undefined && record.parentSessionId === undefined && record.origin !== 'subagent') ?? [];
|
|
351
|
+
for (const record of records) {
|
|
352
|
+
if (record.modelId !== undefined || record.effortId !== undefined || record.serviceTierId !== undefined || record.translationEnabled !== undefined || record.nativeApprovalMode !== undefined) {
|
|
353
|
+
const preference = {
|
|
354
|
+
...(record.modelId ? { modelId: record.modelId } : {}),
|
|
355
|
+
...(record.effortId ? { effortId: record.effortId } : {}),
|
|
356
|
+
...(record.serviceTierId ? { serviceTierId: record.serviceTierId } : {}),
|
|
357
|
+
...(record.translationEnabled === undefined ? {} : { translationEnabled: record.translationEnabled }),
|
|
358
|
+
...(record.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: record.nativeApprovalMode }),
|
|
359
|
+
};
|
|
360
|
+
this.preferences.set(adapterId, preference);
|
|
361
|
+
return preference;
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
return undefined;
|
|
365
|
+
}
|
|
366
|
+
rememberPreference(adapterId, config) {
|
|
367
|
+
const previous = this.preferences.get(adapterId);
|
|
368
|
+
const modelId = config.modelId?.trim() || previous?.modelId;
|
|
369
|
+
const effortId = config.effortId?.trim() || previous?.effortId;
|
|
370
|
+
const serviceTierId = config.serviceTierId?.trim() || previous?.serviceTierId;
|
|
371
|
+
const translationEnabled = config.translationEnabled ?? previous?.translationEnabled;
|
|
372
|
+
const nativeApprovalMode = config.nativeApprovalMode ?? previous?.nativeApprovalMode;
|
|
373
|
+
if (previous?.modelId === modelId && previous?.effortId === effortId && previous?.serviceTierId === serviceTierId && previous?.translationEnabled === translationEnabled && previous?.nativeApprovalMode === nativeApprovalMode)
|
|
374
|
+
return;
|
|
375
|
+
const preference = {
|
|
376
|
+
...previous,
|
|
377
|
+
...(modelId ? { modelId } : {}),
|
|
378
|
+
...(effortId ? { effortId } : {}),
|
|
379
|
+
...(serviceTierId ? { serviceTierId } : {}),
|
|
380
|
+
...(translationEnabled === undefined ? {} : { translationEnabled }),
|
|
381
|
+
...(nativeApprovalMode === undefined ? {} : { nativeApprovalMode }),
|
|
382
|
+
};
|
|
383
|
+
this.preferences.set(adapterId, preference);
|
|
384
|
+
this.persistPreferences();
|
|
385
|
+
}
|
|
386
|
+
persistPreferences() {
|
|
387
|
+
if (this.settings === undefined)
|
|
388
|
+
return;
|
|
389
|
+
const snapshot = preferenceSnapshot(this.preferences);
|
|
390
|
+
this.preferenceWritesPending += 1;
|
|
391
|
+
this.preferenceWriteTail = this.preferenceWriteTail
|
|
392
|
+
.catch(() => undefined)
|
|
393
|
+
.then(() => this.settings.update({ agentAdapterPreferences: snapshot }))
|
|
394
|
+
.catch(() => undefined)
|
|
395
|
+
.finally(() => { this.preferenceWritesPending -= 1; });
|
|
396
|
+
}
|
|
397
|
+
/**
|
|
398
|
+
* 会话索引。迁移 fork 子会话的继承绑定需要在 Registry 外部补写记录,
|
|
399
|
+
* 因此这里暴露只读引用,避免调用方自己再建一份索引。
|
|
400
|
+
*/
|
|
401
|
+
get sessionRecords() {
|
|
402
|
+
return this.sessionStore;
|
|
403
|
+
}
|
|
404
|
+
/** 读取宿主原生 Session;身份判断必须优先使用其 header。 */
|
|
405
|
+
nativeSession(sessionId) {
|
|
406
|
+
try {
|
|
407
|
+
return this.nativeSessions?.get(sessionId);
|
|
408
|
+
}
|
|
409
|
+
catch {
|
|
410
|
+
return undefined;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
getSession(sessionId) {
|
|
414
|
+
const teamRecord = this.sessions.get(sessionId) ?? this.sessionStore?.get(sessionId);
|
|
415
|
+
if (teamRecord?.teamId && teamRecord.adapterId !== 'dsh' && !this.isEnabled(teamRecord.adapterId)) {
|
|
416
|
+
throw new AgentDoorRpcError('TEAM_ADAPTER_UNAVAILABLE', 'The Team participant adapter is disabled.');
|
|
417
|
+
}
|
|
418
|
+
const session = this.sessions.get(sessionId);
|
|
419
|
+
if (session !== undefined && (session.adapterId === 'dsh' || this.isEnabled(session.adapterId))) {
|
|
420
|
+
if (session.adapterId === 'dsh')
|
|
421
|
+
return mergeDshNativeSelection(session, this.nativeSessions?.get(sessionId), this.nativeSessions?.modelSelection?.(sessionId));
|
|
422
|
+
// Provider 绑定可能在 llm/stream 的 session-binding 事件中先写入持久化索引,
|
|
423
|
+
// 而旧的内存配置仍被页面复用;补齐缺失字段,避免续接时重新开空会话。
|
|
424
|
+
return { ...mergeStoredSessionFields(session, this.sessionStore?.get(sessionId)), ...lastUsageField(this.lastUsages.get(sessionId)) };
|
|
425
|
+
}
|
|
426
|
+
// 迁移可能在 Registry 构造之后才完成(用户点击打开旧会话、或 fork 子会话
|
|
427
|
+
// 刚被加载)。此时必须读取 SessionStore,否则子会话会被当成 DSH 主会话,
|
|
428
|
+
// 用户看到的仍是“默认 DSH Agent”。
|
|
429
|
+
const stored = this.sessionStore?.get(sessionId);
|
|
430
|
+
if (stored !== undefined && (stored.adapterId === 'dsh' ? stored.teamId !== undefined : this.isEnabled(stored.adapterId))) {
|
|
431
|
+
const config = {
|
|
432
|
+
adapterId: stored.adapterId,
|
|
433
|
+
...(stored.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: stored.nativeApprovalMode }),
|
|
434
|
+
...(stored.modelId === undefined ? {} : { modelId: stored.modelId }),
|
|
435
|
+
...(stored.effortId === undefined ? {} : { effortId: stored.effortId }),
|
|
436
|
+
...(stored.serviceTierId === undefined ? {} : { serviceTierId: stored.serviceTierId }),
|
|
437
|
+
...(stored.translationEnabled === undefined ? {} : { translationEnabled: stored.translationEnabled }),
|
|
438
|
+
...(stored.providerId === undefined ? {} : { providerId: stored.providerId }),
|
|
439
|
+
...(stored.providerSessionId === undefined ? {} : { providerSessionId: stored.providerSessionId }),
|
|
440
|
+
...(stored.rawStoreRef === undefined ? {} : { rawStoreRef: stored.rawStoreRef }),
|
|
441
|
+
...(stored.parentSessionId === undefined ? {} : { parentSessionId: stored.parentSessionId }),
|
|
442
|
+
...(stored.origin === undefined ? {} : { origin: stored.origin }),
|
|
443
|
+
...(stored.teamId === undefined ? {} : { teamId: stored.teamId }),
|
|
444
|
+
...(stored.teamMemberId === undefined ? {} : { teamMemberId: stored.teamMemberId }),
|
|
445
|
+
...(stored.credentialRefs === undefined ? {} : { credentialRefs: stored.credentialRefs }),
|
|
446
|
+
};
|
|
447
|
+
this.sessions.set(sessionId, config);
|
|
448
|
+
return { ...config, ...lastUsageField(this.lastUsages.get(sessionId)) };
|
|
449
|
+
}
|
|
450
|
+
const remembered = this.preferences.get('dsh') ?? this.findRememberedPreference('dsh');
|
|
451
|
+
return mergeDshNativeSelection({
|
|
452
|
+
adapterId: 'dsh',
|
|
453
|
+
...(remembered?.modelId ? { modelId: remembered.modelId } : {}),
|
|
454
|
+
...(remembered?.effortId ? { effortId: remembered.effortId } : {}),
|
|
455
|
+
...(remembered?.serviceTierId ? { serviceTierId: remembered.serviceTierId } : {}),
|
|
456
|
+
// 原生会话没有插件会话索引,翻译开关按适配器偏好持久化并在这里回读。
|
|
457
|
+
...(remembered?.translationEnabled === undefined ? {} : { translationEnabled: remembered.translationEnabled }),
|
|
458
|
+
}, this.nativeSessions?.get(sessionId), this.nativeSessions?.modelSelection?.(sessionId));
|
|
459
|
+
}
|
|
460
|
+
/** 只有已验证能维护连续事件流的驱动,Host 才把工具边界映射到 DSH step。 */
|
|
461
|
+
supportsSegmentedTurns(adapterId) {
|
|
462
|
+
const driver = this.drivers.get(adapterId);
|
|
463
|
+
return driver?.supportsSegmentedTurns === true || driver?.supportsStreamStepSplitting === true;
|
|
464
|
+
}
|
|
465
|
+
/** Qoder 等 ACP 驱动由 Registry 挂起同一个迭代器完成通用工具分步。 */
|
|
466
|
+
supportsToolStepSplitting(adapterId) {
|
|
467
|
+
return this.drivers.get(adapterId)?.supportsToolStepSplitting === true;
|
|
468
|
+
}
|
|
469
|
+
supportsCompaction(sessionId) {
|
|
470
|
+
return typeof this.drivers.get(this.getSession(sessionId).adapterId)?.compact === 'function';
|
|
471
|
+
}
|
|
472
|
+
/** Shares the execution lock with normal turns, installation and suspended steps. */
|
|
473
|
+
async compact(sessionId, cwd, signal) {
|
|
474
|
+
signal.throwIfAborted();
|
|
475
|
+
if (this.disposed)
|
|
476
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', 'Agent adapters have been stopped.');
|
|
477
|
+
const config = this.getSession(sessionId);
|
|
478
|
+
const driver = this.requireEnabledDriver(config.adapterId);
|
|
479
|
+
if (!driver.compact)
|
|
480
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', 'Native compaction is unavailable for this Agent.');
|
|
481
|
+
if (this.executingSessions.has(sessionId) || this.segmentedTurns.has(sessionId)
|
|
482
|
+
|| this.maintenanceAdapters.has(config.adapterId) || this.archivingSessions.has(sessionId)) {
|
|
483
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'The Agent or session is busy.');
|
|
484
|
+
}
|
|
485
|
+
if (!config.providerSessionId)
|
|
486
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', 'There is no provider conversation to compact yet.');
|
|
487
|
+
this.executingSessions.set(sessionId, config.adapterId);
|
|
488
|
+
try {
|
|
489
|
+
const result = await driver.compact({
|
|
490
|
+
sessionId, providerSessionId: config.providerSessionId,
|
|
491
|
+
...(cwd === undefined ? {} : { cwd }),
|
|
492
|
+
...(config.modelId === undefined ? {} : { modelId: config.modelId }),
|
|
493
|
+
...(config.effortId === undefined ? {} : { effortId: config.effortId }),
|
|
494
|
+
signal: AbortSignal.any([signal, this.lifetime.signal]),
|
|
495
|
+
});
|
|
496
|
+
// Until the next real usage report, do not present pre-compaction usage as current.
|
|
497
|
+
if (result.compacted)
|
|
498
|
+
this.lastUsages.delete(sessionId);
|
|
499
|
+
return result;
|
|
500
|
+
}
|
|
501
|
+
finally {
|
|
502
|
+
this.executingSessions.delete(sessionId);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
/** 供原生 Subagent Provider 执行首轮;不创建普通外部会话索引。 */
|
|
506
|
+
async *runSubagentTurn(input) {
|
|
507
|
+
if (this.maintenanceAdapters.has(input.adapterId) || this.executingSessions.has(input.sessionId)) {
|
|
508
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'This Agent or session is already busy.');
|
|
509
|
+
}
|
|
510
|
+
const driver = this.requireEnabledDriver(input.adapterId);
|
|
511
|
+
this.executingSessions.set(input.sessionId, input.adapterId);
|
|
512
|
+
try {
|
|
513
|
+
yield* driver.executeTurn(withCodexContextWindow(input, input.adapterId));
|
|
514
|
+
}
|
|
515
|
+
finally {
|
|
516
|
+
this.executingSessions.delete(input.sessionId);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
/** 子会话 Provider 绑定完成后立即落盘,确保冷恢复不会丢失适配器身份。 */
|
|
520
|
+
async flushSessionBindings() {
|
|
521
|
+
await this.sessionStore?.flush();
|
|
522
|
+
}
|
|
523
|
+
async *execute(input) {
|
|
524
|
+
if (this.maintenanceAdapters.has(input.adapterId)) {
|
|
525
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_MANAGEMENT_BUSY', 'This Agent is being installed or updated. Wait for it to finish.');
|
|
526
|
+
}
|
|
527
|
+
const driver = this.requireEnabledDriver(input.adapterId);
|
|
528
|
+
let driverInput = withTurnPermission(withCodexContextWindow(input, input.adapterId), input.permission);
|
|
529
|
+
if (this.archivingSessions.has(input.sessionId)) {
|
|
530
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在归档,不能开始新一轮执行');
|
|
531
|
+
}
|
|
532
|
+
if (this.executingSessions.has(input.sessionId)) {
|
|
533
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话已有一轮执行正在进行');
|
|
534
|
+
}
|
|
535
|
+
this.executingSessions.set(input.sessionId, input.adapterId);
|
|
536
|
+
const previous = this.sessions.get(input.sessionId) ?? this.sessionStore?.get(input.sessionId);
|
|
537
|
+
if (previous !== undefined && previous.adapterId !== input.adapterId)
|
|
538
|
+
this.lastUsages.delete(input.sessionId);
|
|
539
|
+
let current = {
|
|
540
|
+
...(previous ?? { adapterId: input.adapterId }),
|
|
541
|
+
...(input.modelId?.trim() ? { modelId: input.modelId.trim() } : {}),
|
|
542
|
+
...(input.effortId?.trim() ? { effortId: input.effortId.trim() } : {}),
|
|
543
|
+
...(input.serviceTierId?.trim() ? { serviceTierId: input.serviceTierId.trim() } : {}),
|
|
544
|
+
...(input.translationEnabled !== undefined ? { translationEnabled: input.translationEnabled } : {}),
|
|
545
|
+
// 续接请求自身带有 Provider 身份时必须写回当前内存配置;否则首轮
|
|
546
|
+
// 恰好发生在页面恢复/迁移窗口内,会在下一轮丢失 --resume 所需的 ID。
|
|
547
|
+
...(input.providerSessionId?.trim() ? { providerSessionId: input.providerSessionId.trim() } : {}),
|
|
548
|
+
...(input.rawStoreRef?.trim() ? { rawStoreRef: input.rawStoreRef.trim() } : {}),
|
|
549
|
+
};
|
|
550
|
+
// 除了 Client 的 session/set,Host 内部和未来的调用方也可能直接执行一轮。
|
|
551
|
+
// 最近使用应由真实执行参数更新,不能依赖某个 UI 一定先发 RPC。
|
|
552
|
+
if (current.teamId === undefined)
|
|
553
|
+
this.rememberPreference(input.adapterId, input);
|
|
554
|
+
// 手动 next() 不会自动转发外层的 return();本轮持有的迭代器必须在 finally 关闭。
|
|
555
|
+
// 只有显式交给 segmentedTurns 的流才能跨 DSH step 保留。
|
|
556
|
+
let iterator;
|
|
557
|
+
let nativeSessionReady = false;
|
|
558
|
+
const pendingToolCalls = new Set();
|
|
559
|
+
try {
|
|
560
|
+
const stored = this.sessionStore?.get(input.sessionId);
|
|
561
|
+
if (stored?.status === 'archived') {
|
|
562
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话已归档,不能继续执行');
|
|
563
|
+
}
|
|
564
|
+
if (stored !== undefined && (stored.providerSessionId !== undefined || stored.rawStoreRef !== undefined)) {
|
|
565
|
+
await this.refreshProviderState(stored, true);
|
|
566
|
+
if (this.sessionStore?.get(input.sessionId)?.providerState === 'missing') {
|
|
567
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_SESSION_MISSING', '外部 Agent 原始会话已删除,无法继续恢复');
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
const suspended = this.segmentedTurns.get(input.sessionId);
|
|
571
|
+
const resumingSegmentedTurn = suspended?.adapterId === input.adapterId;
|
|
572
|
+
if (resumingSegmentedTurn)
|
|
573
|
+
driverInput = withTurnPermission(driverInput, suspended.permission);
|
|
574
|
+
let deferredPeerInput = resumingSegmentedTurn ? suspended?.deferredPeerInput : undefined;
|
|
575
|
+
if (resumingSegmentedTurn && input.peerInput) {
|
|
576
|
+
if (suspended?.iterator !== null && driver.steer !== undefined) {
|
|
577
|
+
await driver.steer(input.sessionId, input.prompt);
|
|
578
|
+
}
|
|
579
|
+
else if (driver.steer === undefined) {
|
|
580
|
+
deferredPeerInput = deferredPeerInput ? {
|
|
581
|
+
...input, prompt: `${deferredPeerInput.prompt}\n\n${input.prompt}`,
|
|
582
|
+
attachments: [...(deferredPeerInput.attachments ?? []), ...(input.attachments ?? [])],
|
|
583
|
+
} : input;
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
// 驱动自行分段时,续段必须由 Host 显式声明;驱动不能靠猜输入形状决定是否
|
|
587
|
+
// 复用旧进程,否则注入失败后的新用户消息会被拼进上一次运行。
|
|
588
|
+
const resumingDriverTurn = resumingSegmentedTurn && suspended !== undefined && suspended.iterator === null;
|
|
589
|
+
const resumedDriverInput = resumingDriverTurn && suspended?.runtimeEnv !== undefined
|
|
590
|
+
? {
|
|
591
|
+
...driverInput,
|
|
592
|
+
// A segmented turn keeps its original execution context. Combining a
|
|
593
|
+
// refreshed broker token with the old endpoint (or vice versa) can
|
|
594
|
+
// invalidate credentials midway through the same provider turn.
|
|
595
|
+
runtimeEnv: suspended.runtimeEnv,
|
|
596
|
+
}
|
|
597
|
+
: driverInput;
|
|
598
|
+
if (resumingDriverTurn)
|
|
599
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
600
|
+
const refreshed = this.sessions.get(input.sessionId);
|
|
601
|
+
if (refreshed !== previous && refreshed?.adapterId === current.adapterId)
|
|
602
|
+
current = { ...current, ...refreshed };
|
|
603
|
+
this.sessions.set(input.sessionId, current);
|
|
604
|
+
this.sessionStore?.upsert(input.sessionId, {
|
|
605
|
+
...current,
|
|
606
|
+
adapterId: input.adapterId,
|
|
607
|
+
...(input.cwd ? { cwd: input.cwd } : {}),
|
|
608
|
+
status: 'active',
|
|
609
|
+
...(resumingSegmentedTurn ? {} : { title: input.prompt }),
|
|
610
|
+
});
|
|
611
|
+
// Agent Loop 通常已经创建了同名 DSH 原生会话;直接调用 Registry 时才按需补建。
|
|
612
|
+
// 原生服务失败不能阻断外部 Agent,消息仍由现有 llm/stream 链路处理。
|
|
613
|
+
try {
|
|
614
|
+
nativeSessionReady = await this.nativeSessions?.ensure(input.sessionId, input.cwd) === input.sessionId;
|
|
615
|
+
}
|
|
616
|
+
catch { /* Optional native projection is unavailable. */ }
|
|
617
|
+
// 每轮都写入稳定的适配器身份。旧日志只有通用 agent-door-external 标记,
|
|
618
|
+
// 这条 request/context 是升级后自动迁移时唯一可靠的回填依据。
|
|
619
|
+
try {
|
|
620
|
+
const contextWindow = input.adapterId === 'codex'
|
|
621
|
+
? driverInput.modelContextWindow
|
|
622
|
+
: input.adapterId === 'command-code'
|
|
623
|
+
? knownCommandCodeContextWindow(input.modelId)
|
|
624
|
+
: input.adapterId === 'antigravity'
|
|
625
|
+
? knownAntigravityContextWindow(input.modelId)
|
|
626
|
+
: input.adapterId === 'opencode'
|
|
627
|
+
? knownOpenCodeContextWindow(input.modelId)
|
|
628
|
+
: input.adapterId === 'claude-code'
|
|
629
|
+
? knownClaudeContextWindow(input.modelId)
|
|
630
|
+
: undefined;
|
|
631
|
+
if (nativeSessionReady)
|
|
632
|
+
this.nativeSessions?.appendRequestContext?.(input.sessionId, {
|
|
633
|
+
provider: toCliProviderId(input.adapterId),
|
|
634
|
+
model: input.modelId ?? input.adapterId,
|
|
635
|
+
...(contextWindow === undefined ? {} : { contextWindow, confirmed: true, source: 'catalog' }),
|
|
636
|
+
});
|
|
637
|
+
}
|
|
638
|
+
catch { /* 原生历史写入失败不应阻断外部 Agent */ }
|
|
639
|
+
if (suspended !== undefined && suspended.adapterId !== input.adapterId) {
|
|
640
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
641
|
+
if (suspended.iterator !== null)
|
|
642
|
+
await closeAgentIterator(suspended.iterator);
|
|
643
|
+
try {
|
|
644
|
+
this.drivers.get(suspended.adapterId)?.discardSegmentedTurn?.(input.sessionId);
|
|
645
|
+
}
|
|
646
|
+
catch { /* 切换适配器不能被旧驱动清理失败阻断 */ }
|
|
647
|
+
}
|
|
648
|
+
// 通用切分要在复用时立刻撤销登记,否则耗尽后的旧迭代器会被下一条用户消息再次消费。
|
|
649
|
+
if (resumingSegmentedTurn && suspended !== undefined && suspended.iterator !== null) {
|
|
650
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
651
|
+
iterator = suspended.iterator;
|
|
652
|
+
}
|
|
653
|
+
else {
|
|
654
|
+
iterator = driver.executeTurn({ ...resumedDriverInput, ...(resumingDriverTurn ? { resumeSegmentedTurn: true } : {}) })[Symbol.asyncIterator]();
|
|
655
|
+
}
|
|
656
|
+
while (true) {
|
|
657
|
+
const next = await iterator.next();
|
|
658
|
+
// A CLI may deliver a tool result only after cancellation. Never retain
|
|
659
|
+
// that aborted iterator for a subsequent DSH step or user prompt.
|
|
660
|
+
if (input.signal?.aborted) {
|
|
661
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
662
|
+
this.sessionStore?.upsert(input.sessionId, { ...this.sessions.get(input.sessionId) ?? current, status: 'idle' });
|
|
663
|
+
yield { type: 'finish', reason: 'cancel' };
|
|
664
|
+
return;
|
|
665
|
+
}
|
|
666
|
+
if (next.done || next.value.type === 'finish') {
|
|
667
|
+
if (deferredPeerInput) {
|
|
668
|
+
if (!next.done && next.value.type === 'finish' && next.value.reason !== 'stop') {
|
|
669
|
+
throw new AgentDoorRpcError('TEAM_DELIVERY_UNCERTAIN', 'The provider turn ended unsuccessfully before pending Team input could be delivered. Inspect the session before resending.');
|
|
670
|
+
}
|
|
671
|
+
await closeAgentIterator(iterator);
|
|
672
|
+
const pending = deferredPeerInput;
|
|
673
|
+
deferredPeerInput = undefined;
|
|
674
|
+
iterator = driver.executeTurn(withTurnPermission(withCodexContextWindow({ ...pending, ...(current.providerSessionId ? { providerSessionId: current.providerSessionId } : {}), resumeSegmentedTurn: false }, input.adapterId), driverInput.permission))[Symbol.asyncIterator]();
|
|
675
|
+
continue;
|
|
676
|
+
}
|
|
677
|
+
if (next.done) {
|
|
678
|
+
iterator = undefined;
|
|
679
|
+
break;
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
const event = next.value;
|
|
683
|
+
if (event.type === 'tool-event' && event.callId !== undefined) {
|
|
684
|
+
if (event.status === 'completed' || event.status === 'failed')
|
|
685
|
+
pendingToolCalls.delete(event.callId);
|
|
686
|
+
else if (event.status === 'started' || event.status === 'running')
|
|
687
|
+
pendingToolCalls.add(event.callId);
|
|
688
|
+
}
|
|
689
|
+
if (event.type === 'usage')
|
|
690
|
+
this.lastUsages.set(input.sessionId, usageSnapshot(event));
|
|
691
|
+
if (event.type === 'session-binding') {
|
|
692
|
+
const latest = this.sessions.get(input.sessionId);
|
|
693
|
+
if (latest?.adapterId === current.adapterId)
|
|
694
|
+
current = { ...current, ...latest };
|
|
695
|
+
const providerIdentityChanged = event.providerSessionId !== current.providerSessionId;
|
|
696
|
+
const { rawStoreRef: previousRawStoreRef, ...currentWithoutRawStoreRef } = current;
|
|
697
|
+
const nextConfig = {
|
|
698
|
+
...currentWithoutRawStoreRef,
|
|
699
|
+
providerSessionId: event.providerSessionId,
|
|
700
|
+
...(event.rawStoreRef
|
|
701
|
+
? { rawStoreRef: event.rawStoreRef }
|
|
702
|
+
: !providerIdentityChanged && previousRawStoreRef
|
|
703
|
+
? { rawStoreRef: previousRawStoreRef }
|
|
704
|
+
: {}),
|
|
705
|
+
};
|
|
706
|
+
this.sessions.set(input.sessionId, nextConfig);
|
|
707
|
+
current = nextConfig;
|
|
708
|
+
this.sessionStore?.upsert(input.sessionId, {
|
|
709
|
+
...nextConfig,
|
|
710
|
+
status: 'active',
|
|
711
|
+
providerState: 'available',
|
|
712
|
+
providerCheckedAt: new Date().toISOString(),
|
|
713
|
+
});
|
|
714
|
+
// 首次或重绑的 Provider ID 必须先落盘,避免崩溃后丢失续接身份。
|
|
715
|
+
if (providerIdentityChanged)
|
|
716
|
+
await this.sessionStore?.flush();
|
|
717
|
+
}
|
|
718
|
+
if (event.type === 'finish') {
|
|
719
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
720
|
+
this.sessionStore?.upsert(input.sessionId, { ...this.sessions.get(input.sessionId) ?? current, status: event.reason === 'error' ? 'error' : 'idle' });
|
|
721
|
+
}
|
|
722
|
+
// Explicit boundaries preserve the driver's grouping of messages and tool batches.
|
|
723
|
+
if (event.type === 'step-boundary') {
|
|
724
|
+
const segmentedRuntimeEnv = resumedDriverInput.runtimeEnv;
|
|
725
|
+
if (driver.supportsStreamStepSplitting === true) {
|
|
726
|
+
this.segmentedTurns.set(input.sessionId, {
|
|
727
|
+
adapterId: input.adapterId,
|
|
728
|
+
iterator,
|
|
729
|
+
permission: resumedDriverInput.permission,
|
|
730
|
+
...(deferredPeerInput ? { deferredPeerInput } : {}),
|
|
731
|
+
...(segmentedRuntimeEnv === undefined ? {} : { runtimeEnv: segmentedRuntimeEnv }),
|
|
732
|
+
});
|
|
733
|
+
}
|
|
734
|
+
else {
|
|
735
|
+
await closeAgentIterator(iterator);
|
|
736
|
+
// Driver-owned segments resume through a new executeTurn call.
|
|
737
|
+
this.segmentedTurns.set(input.sessionId, {
|
|
738
|
+
adapterId: input.adapterId,
|
|
739
|
+
iterator: null,
|
|
740
|
+
permission: resumedDriverInput.permission,
|
|
741
|
+
...(deferredPeerInput ? { deferredPeerInput } : {}),
|
|
742
|
+
...(segmentedRuntimeEnv === undefined ? {} : { runtimeEnv: segmentedRuntimeEnv }),
|
|
743
|
+
});
|
|
744
|
+
}
|
|
745
|
+
iterator = undefined;
|
|
746
|
+
yield event;
|
|
747
|
+
return;
|
|
748
|
+
}
|
|
749
|
+
if (input.splitToolSteps
|
|
750
|
+
&& driver.supportsSegmentedTurns !== true
|
|
751
|
+
&& driver.supportsStreamStepSplitting !== true
|
|
752
|
+
&& event.type === 'tool-event'
|
|
753
|
+
&& pendingToolCalls.size === 0
|
|
754
|
+
&& (event.status === 'completed' || event.status === 'failed')) {
|
|
755
|
+
// 并行工具必须整批结算后再分步,否则本步投影器的 finalize 会把
|
|
756
|
+
// 尚未返回的工具提前写为空成功,下一步又丢失其参数并重复声明。
|
|
757
|
+
// 先保存迭代器再 yield。即使调用方在工具事件后提前关闭流,
|
|
758
|
+
// 下一次 DSH step 仍能从同一个 Provider 进程继续读取正文。
|
|
759
|
+
this.segmentedTurns.set(input.sessionId, {
|
|
760
|
+
adapterId: input.adapterId,
|
|
761
|
+
iterator,
|
|
762
|
+
permission: resumedDriverInput.permission,
|
|
763
|
+
...(deferredPeerInput ? { deferredPeerInput } : {}),
|
|
764
|
+
...(resumedDriverInput.runtimeEnv === undefined ? {} : { runtimeEnv: resumedDriverInput.runtimeEnv }),
|
|
765
|
+
});
|
|
766
|
+
// 所有权交给续段表,当前调用结束不得关闭需要继续消费的 Provider 流。
|
|
767
|
+
iterator = undefined;
|
|
768
|
+
yield event;
|
|
769
|
+
if (input.signal?.aborted) {
|
|
770
|
+
this.discardSegmentedTurn(input.sessionId);
|
|
771
|
+
yield { type: 'finish', reason: 'cancel' };
|
|
772
|
+
return;
|
|
773
|
+
}
|
|
774
|
+
yield { type: 'step-boundary' };
|
|
775
|
+
return;
|
|
776
|
+
}
|
|
777
|
+
yield event;
|
|
778
|
+
}
|
|
779
|
+
this.segmentedTurns.delete(input.sessionId);
|
|
780
|
+
}
|
|
781
|
+
catch (error) {
|
|
782
|
+
this.sessionStore?.upsert(input.sessionId, {
|
|
783
|
+
...this.sessions.get(input.sessionId) ?? current,
|
|
784
|
+
status: 'error',
|
|
785
|
+
lastError: error instanceof Error ? error.message : String(error),
|
|
786
|
+
});
|
|
787
|
+
throw error;
|
|
788
|
+
}
|
|
789
|
+
finally {
|
|
790
|
+
if (iterator !== undefined)
|
|
791
|
+
await closeAgentIterator(iterator);
|
|
792
|
+
this.executingSessions.delete(input.sessionId);
|
|
793
|
+
try {
|
|
794
|
+
if (nativeSessionReady)
|
|
795
|
+
await this.nativeSessions?.flush(input.sessionId);
|
|
796
|
+
}
|
|
797
|
+
catch { /* DSH 自身检查点策略负责重试 */ }
|
|
798
|
+
}
|
|
799
|
+
}
|
|
800
|
+
async listSessions(options = {}) {
|
|
801
|
+
const candidates = this.sessionStore?.list(options) ?? [];
|
|
802
|
+
await forEachConcurrent(candidates, this.providerProbeConcurrency, (record) => this.refreshProviderState(record, false));
|
|
803
|
+
return (this.sessionStore?.list(options) ?? [])
|
|
804
|
+
.filter((record) => record.adapterId !== 'dsh')
|
|
805
|
+
.map(({ rawStoreRef: _rawStoreRef, ...record }) => record);
|
|
806
|
+
}
|
|
807
|
+
/** 读取 Provider 原生会话;当前只对实现了 Command Code History 的驱动开放。 */
|
|
808
|
+
async listProviderSessions(adapterId, workspacePath) {
|
|
809
|
+
return this.requireHistoryDriver(adapterId).detectSessions(workspacePath);
|
|
810
|
+
}
|
|
811
|
+
async listProviderSessionsDetailed(adapterId, workspacePath) {
|
|
812
|
+
return this.requireHistoryDriver(adapterId).detectSessionsDetailed(workspacePath);
|
|
813
|
+
}
|
|
814
|
+
async readProviderHistory(adapterId, providerSessionId, rawStoreRef, cursor, limit, direction = 'forward') {
|
|
815
|
+
return this.requireHistoryDriver(adapterId).readSessionHistory(providerSessionId, rawStoreRef, cursor, limit, direction);
|
|
816
|
+
}
|
|
817
|
+
async readProviderHistoryDelta(adapterId, providerSessionId, rawStoreRef, cursor, limit, direction = 'forward') {
|
|
818
|
+
return this.requireHistoryDriver(adapterId).readSessionHistoryDelta(providerSessionId, rawStoreRef, cursor, limit, direction);
|
|
819
|
+
}
|
|
820
|
+
async readProviderSessionTitle(adapterId, providerSessionId, rawStoreRef) {
|
|
821
|
+
return this.requireHistoryDriver(adapterId).readSessionTitle(providerSessionId, rawStoreRef);
|
|
822
|
+
}
|
|
823
|
+
async renameProviderSessionTitle(adapterId, providerSessionId, rawStoreRef, title) {
|
|
824
|
+
return this.requireHistoryDriver(adapterId).renameSessionTitle(providerSessionId, rawStoreRef, title);
|
|
825
|
+
}
|
|
826
|
+
async updateProviderSessionArchive(adapterId, providerSessionId, rawStoreRef, isArchived) {
|
|
827
|
+
return this.requireHistoryDriver(adapterId).updateSessionArchiveState(providerSessionId, rawStoreRef, isArchived);
|
|
828
|
+
}
|
|
829
|
+
async deleteProviderSession(adapterId, providerSessionId, rawStoreRef) {
|
|
830
|
+
return this.requireHistoryDriver(adapterId).deleteSession(providerSessionId, rawStoreRef);
|
|
831
|
+
}
|
|
832
|
+
async readProviderContextUsage(adapterId, providerSessionId, rawStoreRef) {
|
|
833
|
+
return this.requireHistoryDriver(adapterId).readContextUsage(providerSessionId, rawStoreRef);
|
|
834
|
+
}
|
|
835
|
+
async readProviderSessionStats(adapterId, providerSessionId, rawStoreRef) {
|
|
836
|
+
return this.requireHistoryDriver(adapterId).readSessionStats(providerSessionId, rawStoreRef);
|
|
837
|
+
}
|
|
838
|
+
async forkProviderSession(adapterId, providerSessionId, workspacePath, options) {
|
|
839
|
+
return this.requireHistoryDriver(adapterId).forkSession(providerSessionId, workspacePath, options);
|
|
840
|
+
}
|
|
841
|
+
async startProviderSession(adapterId, workspacePath, options = {}) {
|
|
842
|
+
return this.requireHistoryDriver(adapterId).startSession(workspacePath, options);
|
|
843
|
+
}
|
|
844
|
+
async resumeProviderSession(adapterId, providerSessionId, rawStoreRef) {
|
|
845
|
+
return this.requireHistoryDriver(adapterId).resumeSession(providerSessionId, rawStoreRef);
|
|
846
|
+
}
|
|
847
|
+
async sendProviderMessage(adapterId, providerSessionId, rawStoreRef, content) {
|
|
848
|
+
return this.requireHistoryDriver(adapterId).sendMessage(providerSessionId, rawStoreRef, content);
|
|
849
|
+
}
|
|
850
|
+
async archiveSession(sessionId) {
|
|
851
|
+
const current = this.sessionStore?.get(sessionId);
|
|
852
|
+
if (current === undefined)
|
|
853
|
+
return undefined;
|
|
854
|
+
if (current.status === 'active' || this.executingSessions.has(sessionId)) {
|
|
855
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在执行,不能归档');
|
|
856
|
+
}
|
|
857
|
+
if (this.archivingSessions.has(sessionId)) {
|
|
858
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '外部会话正在归档');
|
|
859
|
+
}
|
|
860
|
+
this.archivingSessions.add(sessionId);
|
|
861
|
+
let providerArchived = false;
|
|
862
|
+
try {
|
|
863
|
+
const historyDriver = this.drivers.get(current.adapterId);
|
|
864
|
+
if (current.providerSessionId !== undefined && current.rawStoreRef !== undefined && typeof historyDriver?.updateSessionArchiveState === 'function') {
|
|
865
|
+
await historyDriver.updateSessionArchiveState(current.providerSessionId, current.rawStoreRef, true);
|
|
866
|
+
providerArchived = true;
|
|
867
|
+
}
|
|
868
|
+
// 完整 DSH 中先改变原生侧栏可见性;调用失败时不修改插件索引,避免两边状态分叉。
|
|
869
|
+
if (this.nativeSessions !== undefined) {
|
|
870
|
+
const archived = await this.nativeSessions.archive?.(sessionId) ?? false;
|
|
871
|
+
if (!archived) {
|
|
872
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', 'DSH 原生会话归档服务不可用,未修改外部会话索引');
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
const record = this.sessionStore?.archive(sessionId);
|
|
876
|
+
if (record === undefined)
|
|
877
|
+
return undefined;
|
|
878
|
+
const { rawStoreRef: _rawStoreRef, ...safe } = record;
|
|
879
|
+
return safe;
|
|
880
|
+
}
|
|
881
|
+
catch (error) {
|
|
882
|
+
// Provider 元数据先写是为了避免 DSH 已归档而 Provider 仍显示活动;原生归档
|
|
883
|
+
// 失败时尽力回滚文件标记,不能让两套索引长期分叉。
|
|
884
|
+
if (providerArchived && current.providerSessionId !== undefined && current.rawStoreRef !== undefined) {
|
|
885
|
+
const historyDriver = this.drivers.get(current.adapterId);
|
|
886
|
+
const rollback = historyDriver?.updateSessionArchiveState?.(current.providerSessionId, current.rawStoreRef, false);
|
|
887
|
+
await rollback?.catch(() => undefined);
|
|
888
|
+
}
|
|
889
|
+
throw error;
|
|
890
|
+
}
|
|
891
|
+
finally {
|
|
892
|
+
this.archivingSessions.delete(sessionId);
|
|
893
|
+
}
|
|
894
|
+
}
|
|
895
|
+
async respondPermission(sessionId, response) {
|
|
896
|
+
const session = this.requireSession(sessionId);
|
|
897
|
+
const driver = this.requireEnabledDriver(session.adapterId);
|
|
898
|
+
if (driver.respondPermission === undefined)
|
|
899
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持权限回传');
|
|
900
|
+
await driver.respondPermission(sessionId, response);
|
|
901
|
+
}
|
|
902
|
+
async respondQuestion(sessionId, response) {
|
|
903
|
+
const session = this.requireSession(sessionId);
|
|
904
|
+
const driver = this.requireEnabledDriver(session.adapterId);
|
|
905
|
+
if (driver.respondQuestion === undefined)
|
|
906
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持问题回传');
|
|
907
|
+
await driver.respondQuestion(sessionId, response);
|
|
908
|
+
}
|
|
909
|
+
async steer(sessionId, prompt, followUp = false) {
|
|
910
|
+
const session = this.requireSession(sessionId);
|
|
911
|
+
const driver = this.requireEnabledDriver(session.adapterId);
|
|
912
|
+
const handler = followUp ? driver.followUp : driver.steer;
|
|
913
|
+
if (handler === undefined)
|
|
914
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持运行中消息');
|
|
915
|
+
await handler.call(driver, sessionId, prompt);
|
|
916
|
+
}
|
|
917
|
+
async interrupt(sessionId) {
|
|
918
|
+
const session = this.requireSession(sessionId);
|
|
919
|
+
const driver = this.requireEnabledDriver(session.adapterId);
|
|
920
|
+
if (driver.interrupt === undefined)
|
|
921
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', '当前 Agent 不支持中断');
|
|
922
|
+
await driver.interrupt(sessionId);
|
|
923
|
+
}
|
|
924
|
+
/** 丢弃等待下一步的 Provider 流,避免取消后的旧正文进入新回合。 */
|
|
925
|
+
discardSegmentedTurn(sessionId) {
|
|
926
|
+
const suspended = this.segmentedTurns.get(sessionId);
|
|
927
|
+
if (suspended === undefined)
|
|
928
|
+
return;
|
|
929
|
+
this.segmentedTurns.delete(sessionId);
|
|
930
|
+
if (suspended.iterator !== null)
|
|
931
|
+
void closeAgentIterator(suspended.iterator);
|
|
932
|
+
// 驱动自行分段时进程留在驱动内,必须显式通知它结束悬挂的 Provider 运行。
|
|
933
|
+
try {
|
|
934
|
+
this.drivers.get(suspended.adapterId)?.discardSegmentedTurn?.(sessionId);
|
|
935
|
+
}
|
|
936
|
+
catch { /* 取消流程不能被清理失败阻断 */ }
|
|
937
|
+
}
|
|
938
|
+
async dispose() {
|
|
939
|
+
if (this.disposed)
|
|
940
|
+
return;
|
|
941
|
+
this.disposed = true;
|
|
942
|
+
this.modelSelectionListeners.clear();
|
|
943
|
+
this.lifetime.abort();
|
|
944
|
+
this.cacheGeneration += 1;
|
|
945
|
+
clearTimeout(this.startupTimer);
|
|
946
|
+
for (const [id, detect] of this.originalDetections)
|
|
947
|
+
this.drivers.get(id).detect = detect;
|
|
948
|
+
this.detectionCache.clear();
|
|
949
|
+
this.modelCache.clear();
|
|
950
|
+
this.modelFailures.clear();
|
|
951
|
+
this.modelGenerations.clear();
|
|
952
|
+
this.catalogFingerprints.clear();
|
|
953
|
+
await Promise.all([...this.segmentedTurns.values()].map(({ iterator }) => iterator === null ? Promise.resolve() : closeAgentIterator(iterator)));
|
|
954
|
+
this.segmentedTurns.clear();
|
|
955
|
+
this.lastUsages.clear();
|
|
956
|
+
await Promise.all([...this.drivers.values()].map((driver) => driver.dispose?.()));
|
|
957
|
+
await this.preferenceWriteTail;
|
|
958
|
+
}
|
|
959
|
+
async readDetection(driver) {
|
|
960
|
+
const adapterId = driver.descriptor.id;
|
|
961
|
+
const cached = this.detectionCache.get(adapterId);
|
|
962
|
+
if (cached !== undefined) {
|
|
963
|
+
// 仅实际使用时重试失败状态,列表仍然只读;确实未安装的 Agent 不后台轮询。
|
|
964
|
+
const checkedAt = this.detectionTimes.get(adapterId);
|
|
965
|
+
const retry = this.detectionStates.get(adapterId) === 'error' && checkedAt !== undefined && Date.now() - Date.parse(checkedAt) >= 30_000;
|
|
966
|
+
if (!retry)
|
|
967
|
+
return cached.value;
|
|
968
|
+
}
|
|
969
|
+
return this.refreshDetection(driver);
|
|
970
|
+
}
|
|
971
|
+
/** 同一适配器只允许一个探测;刷新失败时保留最后一次可用状态。 */
|
|
972
|
+
refreshDetection(driver) {
|
|
973
|
+
const adapterId = driver.descriptor.id;
|
|
974
|
+
const running = this.detectionRefreshes.get(adapterId);
|
|
975
|
+
if (running !== undefined)
|
|
976
|
+
return running;
|
|
977
|
+
if (this.disposed)
|
|
978
|
+
return Promise.resolve(this.detectionCache.get(adapterId)?.value ?? { installed: false, version: null, command: null });
|
|
979
|
+
this.detectionStates.set(adapterId, 'running');
|
|
980
|
+
const generation = this.cacheGeneration;
|
|
981
|
+
const previous = this.detectionCache.get(adapterId);
|
|
982
|
+
const refresh = (async () => {
|
|
983
|
+
let detection;
|
|
984
|
+
let failed = false;
|
|
985
|
+
try {
|
|
986
|
+
const detected = await withCommandSignal(this.lifetime.signal, () => this.originalDetections.get(adapterId).call(driver));
|
|
987
|
+
const getDiagnostic = driver.getDiscoveryDiagnostic;
|
|
988
|
+
const diagnostic = getDiagnostic === undefined ? undefined : getDiagnostic.call(driver);
|
|
989
|
+
detection = diagnostic === undefined ? detected : { ...detected, diagnostic };
|
|
990
|
+
const failure = detected.detectionFailure ?? driver.getDiscoveryFailure?.();
|
|
991
|
+
if (!detected.installed && failure !== undefined) {
|
|
992
|
+
failed = true;
|
|
993
|
+
detection = detectionError(failure, previous?.value, diagnostic);
|
|
994
|
+
}
|
|
995
|
+
}
|
|
996
|
+
catch {
|
|
997
|
+
failed = true;
|
|
998
|
+
detection = detectionError('launch', previous?.value);
|
|
999
|
+
}
|
|
1000
|
+
if (this.disposed || generation !== this.cacheGeneration)
|
|
1001
|
+
return detection;
|
|
1002
|
+
this.detectionCache.set(adapterId, { value: detection });
|
|
1003
|
+
this.detectionStates.set(adapterId, failed ? 'error' : 'ready');
|
|
1004
|
+
this.detectionTimes.set(adapterId, new Date().toISOString());
|
|
1005
|
+
if (previous !== undefined && detectionFingerprint(previous.value) !== detectionFingerprint(detection)) {
|
|
1006
|
+
this.invalidateModelCache(adapterId);
|
|
1007
|
+
}
|
|
1008
|
+
return detection;
|
|
1009
|
+
})().finally(() => {
|
|
1010
|
+
if (this.detectionRefreshes.get(adapterId) === refresh)
|
|
1011
|
+
this.detectionRefreshes.delete(adapterId);
|
|
1012
|
+
});
|
|
1013
|
+
this.detectionRefreshes.set(adapterId, refresh);
|
|
1014
|
+
return refresh;
|
|
1015
|
+
}
|
|
1016
|
+
/** 模型目录合并并发请求;缓存由手动检测或配置变化失效,不后台定时重跑。 */
|
|
1017
|
+
refreshModels(driver) {
|
|
1018
|
+
const adapterId = driver.descriptor.id;
|
|
1019
|
+
const running = this.modelRefreshes.get(adapterId);
|
|
1020
|
+
if (running !== undefined)
|
|
1021
|
+
return running;
|
|
1022
|
+
const generation = this.cacheGeneration;
|
|
1023
|
+
const modelGeneration = this.modelGenerations.get(adapterId) ?? 0;
|
|
1024
|
+
const previous = this.modelCache.get(adapterId);
|
|
1025
|
+
const refresh = (async () => {
|
|
1026
|
+
const probeFingerprint = readCatalogFingerprint(driver);
|
|
1027
|
+
try {
|
|
1028
|
+
// 指纹必须在探测开始前捕获:若在 listModels() 返回后再读,探测期间发生的
|
|
1029
|
+
// 第二次供应商切换会被记成“已应用”,而目录其实来自切换前的配置,之后
|
|
1030
|
+
// 指纹比对会一直命中,旧判定又被锁进缓存。
|
|
1031
|
+
const catalog = await withCommandSignal(this.lifetime.signal, () => driver.listModels());
|
|
1032
|
+
if (this.disposed || generation !== this.cacheGeneration)
|
|
1033
|
+
return previous?.value ?? catalog;
|
|
1034
|
+
if (modelGeneration !== (this.modelGenerations.get(adapterId) ?? 0))
|
|
1035
|
+
return this.models(adapterId);
|
|
1036
|
+
this.modelFailures.delete(adapterId);
|
|
1037
|
+
const hasModels = catalogHasModels(catalog);
|
|
1038
|
+
const keepPrevious = !hasModels && previous !== undefined && catalogHasModels(previous.value);
|
|
1039
|
+
const value = keepPrevious ? previous.value : catalog;
|
|
1040
|
+
// 指纹与目录一起落库:只有真正代表这份目录的配置才会在下次比对时命中。
|
|
1041
|
+
if (probeFingerprint !== undefined)
|
|
1042
|
+
this.catalogFingerprints.set(adapterId, probeFingerprint);
|
|
1043
|
+
this.modelCache.set(adapterId, { value });
|
|
1044
|
+
return value;
|
|
1045
|
+
}
|
|
1046
|
+
catch (error) {
|
|
1047
|
+
if (this.disposed || generation !== this.cacheGeneration) {
|
|
1048
|
+
if (previous !== undefined)
|
|
1049
|
+
return previous.value;
|
|
1050
|
+
throw error;
|
|
1051
|
+
}
|
|
1052
|
+
if (modelGeneration !== (this.modelGenerations.get(adapterId) ?? 0))
|
|
1053
|
+
return this.models(adapterId);
|
|
1054
|
+
if (probeFingerprint !== undefined)
|
|
1055
|
+
this.catalogFingerprints.set(adapterId, probeFingerprint);
|
|
1056
|
+
if (previous !== undefined) {
|
|
1057
|
+
this.modelCache.set(adapterId, { value: previous.value });
|
|
1058
|
+
return previous.value;
|
|
1059
|
+
}
|
|
1060
|
+
this.modelFailures.set(adapterId, { error });
|
|
1061
|
+
throw error;
|
|
1062
|
+
}
|
|
1063
|
+
})().finally(() => {
|
|
1064
|
+
if (this.modelRefreshes.get(adapterId) === refresh)
|
|
1065
|
+
this.modelRefreshes.delete(adapterId);
|
|
1066
|
+
});
|
|
1067
|
+
this.modelRefreshes.set(adapterId, refresh);
|
|
1068
|
+
return refresh;
|
|
1069
|
+
}
|
|
1070
|
+
invalidateModelCache(adapterId) {
|
|
1071
|
+
this.modelGenerations.set(adapterId, (this.modelGenerations.get(adapterId) ?? 0) + 1);
|
|
1072
|
+
this.modelRefreshes.delete(adapterId);
|
|
1073
|
+
this.modelCache.delete(adapterId);
|
|
1074
|
+
this.modelFailures.delete(adapterId);
|
|
1075
|
+
this.catalogFingerprints.delete(adapterId);
|
|
1076
|
+
}
|
|
1077
|
+
/**
|
|
1078
|
+
* 比对驱动的 Provider 配置指纹,变化时立即作废该适配器的目录缓存。
|
|
1079
|
+
*
|
|
1080
|
+
* 返回 true 表示调用方必须等待一次全新探测,不能复用任何旧值——包括
|
|
1081
|
+
* stale-while-revalidate 的旧值:账号判定从「第三方」变成「官方订阅」时,
|
|
1082
|
+
* 继续先回旧值会让界面在本次渲染里仍然缺少依赖该判定的控件。
|
|
1083
|
+
*
|
|
1084
|
+
* 驱动没有声明 `catalogFingerprint` 或当前读不到配置(返回 undefined)时保持
|
|
1085
|
+
* 原行为,不把「无法判断」当成「已变化」,避免目录退化成每次都重新探测。
|
|
1086
|
+
*/
|
|
1087
|
+
invalidateOnCatalogFingerprintChange(adapterId, driver) {
|
|
1088
|
+
const fingerprint = readCatalogFingerprint(driver);
|
|
1089
|
+
if (fingerprint === undefined)
|
|
1090
|
+
return false;
|
|
1091
|
+
// 指纹在目录构建成功时写入,因此这里的旧值一定对应缓存里的那份目录。
|
|
1092
|
+
const previous = this.catalogFingerprints.get(adapterId);
|
|
1093
|
+
if (previous === undefined || previous === fingerprint)
|
|
1094
|
+
return false;
|
|
1095
|
+
debugInfo('dsh-agentdoor: cli catalog fingerprint changed', { adapterId });
|
|
1096
|
+
this.invalidateModelCache(adapterId);
|
|
1097
|
+
return true;
|
|
1098
|
+
}
|
|
1099
|
+
async refreshProviderState(record, force) {
|
|
1100
|
+
if (record.status === 'archived')
|
|
1101
|
+
return;
|
|
1102
|
+
if (!force && record.status === 'active')
|
|
1103
|
+
return;
|
|
1104
|
+
if (!force && isFreshProviderState(record.providerCheckedAt, this.providerProbeTtlMs))
|
|
1105
|
+
return;
|
|
1106
|
+
if (record.providerSessionId === undefined && record.rawStoreRef === undefined)
|
|
1107
|
+
return;
|
|
1108
|
+
const driver = this.drivers.get(record.adapterId);
|
|
1109
|
+
if (driver?.probeSession === undefined)
|
|
1110
|
+
return;
|
|
1111
|
+
const probeKey = providerProbeKey(record);
|
|
1112
|
+
const running = this.probes.get(probeKey);
|
|
1113
|
+
if (running !== undefined)
|
|
1114
|
+
return running;
|
|
1115
|
+
const probe = this.runProviderProbe(record, driver).finally(() => {
|
|
1116
|
+
if (this.probes.get(probeKey) === probe)
|
|
1117
|
+
this.probes.delete(probeKey);
|
|
1118
|
+
});
|
|
1119
|
+
this.probes.set(probeKey, probe);
|
|
1120
|
+
return probe;
|
|
1121
|
+
}
|
|
1122
|
+
async runProviderProbe(record, driver) {
|
|
1123
|
+
const input = {
|
|
1124
|
+
...(record.providerSessionId ? { providerSessionId: record.providerSessionId } : {}),
|
|
1125
|
+
...(record.rawStoreRef ? { rawStoreRef: record.rawStoreRef } : {}),
|
|
1126
|
+
...(record.cwd ? { cwd: record.cwd } : {}),
|
|
1127
|
+
};
|
|
1128
|
+
let result;
|
|
1129
|
+
try {
|
|
1130
|
+
result = await this.probeWithTimeout(driver, input);
|
|
1131
|
+
if (result.state === 'missing') {
|
|
1132
|
+
await delay(this.missingConfirmationDelayMs);
|
|
1133
|
+
result = await this.probeWithTimeout(driver, input);
|
|
1134
|
+
}
|
|
1135
|
+
}
|
|
1136
|
+
catch (error) {
|
|
1137
|
+
result = {
|
|
1138
|
+
state: 'unknown',
|
|
1139
|
+
reason: `会话探测失败: ${error instanceof Error ? error.message : String(error)}`,
|
|
1140
|
+
};
|
|
1141
|
+
}
|
|
1142
|
+
// 探测期间绑定可能已经切换;旧结果不得覆盖新 Provider 会话。
|
|
1143
|
+
const current = this.sessionStore?.get(record.dshSessionId);
|
|
1144
|
+
if (current === undefined || current.adapterId !== record.adapterId)
|
|
1145
|
+
return;
|
|
1146
|
+
if (current.providerSessionId !== record.providerSessionId || current.rawStoreRef !== record.rawStoreRef)
|
|
1147
|
+
return;
|
|
1148
|
+
this.sessionStore?.updateProviderState(record.dshSessionId, {
|
|
1149
|
+
state: result.state,
|
|
1150
|
+
checkedAt: new Date().toISOString(),
|
|
1151
|
+
reason: result.reason,
|
|
1152
|
+
...(result.rawStoreRef ? { rawStoreRef: result.rawStoreRef } : {}),
|
|
1153
|
+
});
|
|
1154
|
+
}
|
|
1155
|
+
async probeWithTimeout(driver, input) {
|
|
1156
|
+
const controller = new AbortController();
|
|
1157
|
+
let timer;
|
|
1158
|
+
const timeout = new Promise((resolve) => {
|
|
1159
|
+
timer = setTimeout(() => {
|
|
1160
|
+
controller.abort();
|
|
1161
|
+
resolve({ state: 'unreachable', reason: `Provider 会话探测超过 ${this.providerProbeTimeoutMs}ms` });
|
|
1162
|
+
}, this.providerProbeTimeoutMs);
|
|
1163
|
+
});
|
|
1164
|
+
try {
|
|
1165
|
+
return await Promise.race([
|
|
1166
|
+
driver.probeSession({ ...input, signal: controller.signal }),
|
|
1167
|
+
timeout,
|
|
1168
|
+
]);
|
|
1169
|
+
}
|
|
1170
|
+
finally {
|
|
1171
|
+
if (timer !== undefined)
|
|
1172
|
+
clearTimeout(timer);
|
|
1173
|
+
}
|
|
1174
|
+
}
|
|
1175
|
+
requireDriver(adapterId) {
|
|
1176
|
+
const driver = this.drivers.get(adapterId);
|
|
1177
|
+
if (driver === undefined)
|
|
1178
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNAVAILABLE', `Agent 不可用: ${adapterId}`);
|
|
1179
|
+
return driver;
|
|
1180
|
+
}
|
|
1181
|
+
requireHistoryDriver(adapterId) {
|
|
1182
|
+
const driver = this.requireEnabledDriver(adapterId);
|
|
1183
|
+
if (typeof driver.detectSessions !== 'function'
|
|
1184
|
+
|| typeof driver.detectSessionsDetailed !== 'function'
|
|
1185
|
+
|| typeof driver.readSessionHistory !== 'function'
|
|
1186
|
+
|| typeof driver.readSessionHistoryDelta !== 'function'
|
|
1187
|
+
|| typeof driver.readSessionTitle !== 'function'
|
|
1188
|
+
|| typeof driver.renameSessionTitle !== 'function'
|
|
1189
|
+
|| typeof driver.updateSessionArchiveState !== 'function'
|
|
1190
|
+
|| typeof driver.deleteSession !== 'function'
|
|
1191
|
+
|| typeof driver.readContextUsage !== 'function'
|
|
1192
|
+
|| typeof driver.readSessionStats !== 'function'
|
|
1193
|
+
|| typeof driver.forkSession !== 'function'
|
|
1194
|
+
|| typeof driver.startSession !== 'function'
|
|
1195
|
+
|| typeof driver.resumeSession !== 'function'
|
|
1196
|
+
|| typeof driver.sendMessage !== 'function') {
|
|
1197
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_UNSUPPORTED', `Agent 不支持 Provider History: ${adapterId}`);
|
|
1198
|
+
}
|
|
1199
|
+
return driver;
|
|
1200
|
+
}
|
|
1201
|
+
requireEnabledDriver(adapterId) {
|
|
1202
|
+
const driver = this.requireDriver(adapterId);
|
|
1203
|
+
if (!this.isEnabled(adapterId))
|
|
1204
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_DISABLED', `Agent 已停用: ${adapterId}`);
|
|
1205
|
+
return driver;
|
|
1206
|
+
}
|
|
1207
|
+
requireSession(sessionId) {
|
|
1208
|
+
const session = this.sessions.get(sessionId);
|
|
1209
|
+
if (session === undefined || session.adapterId === 'dsh')
|
|
1210
|
+
throw new AgentDoorRpcError('AGENT_DOOR_CLI_INVALID_SESSION', '会话未绑定外部 Agent');
|
|
1211
|
+
return session;
|
|
1212
|
+
}
|
|
1213
|
+
}
|
|
1214
|
+
function isFreshProviderState(checkedAt, ttlMs) {
|
|
1215
|
+
if (checkedAt === undefined || ttlMs <= 0)
|
|
1216
|
+
return false;
|
|
1217
|
+
const timestamp = Date.parse(checkedAt);
|
|
1218
|
+
return Number.isFinite(timestamp) && Date.now() - timestamp < ttlMs;
|
|
1219
|
+
}
|
|
1220
|
+
function providerProbeKey(record) {
|
|
1221
|
+
return JSON.stringify([
|
|
1222
|
+
record.dshSessionId,
|
|
1223
|
+
record.adapterId,
|
|
1224
|
+
record.providerSessionId ?? null,
|
|
1225
|
+
record.rawStoreRef ?? null,
|
|
1226
|
+
]);
|
|
1227
|
+
}
|
|
1228
|
+
function delay(milliseconds) {
|
|
1229
|
+
return milliseconds <= 0 ? Promise.resolve() : new Promise((resolve) => setTimeout(resolve, milliseconds));
|
|
1230
|
+
}
|
|
1231
|
+
async function closeAgentIterator(iterator) {
|
|
1232
|
+
try {
|
|
1233
|
+
await iterator.return?.();
|
|
1234
|
+
}
|
|
1235
|
+
catch { /* 驱动清理失败不能阻断 Registry 释放 */ }
|
|
1236
|
+
}
|
|
1237
|
+
async function forEachConcurrent(values, concurrency, task) {
|
|
1238
|
+
let nextIndex = 0;
|
|
1239
|
+
const workerCount = Math.min(concurrency, values.length);
|
|
1240
|
+
const workers = Array.from({ length: workerCount }, async () => {
|
|
1241
|
+
while (nextIndex < values.length) {
|
|
1242
|
+
const index = nextIndex;
|
|
1243
|
+
nextIndex += 1;
|
|
1244
|
+
await task(values[index]);
|
|
1245
|
+
}
|
|
1246
|
+
});
|
|
1247
|
+
await Promise.all(workers);
|
|
1248
|
+
}
|
|
1249
|
+
function detectionFingerprint(detection) {
|
|
1250
|
+
return JSON.stringify([detection.installed, detection.runtimeState, detection.command, detection.version, detection.diagnostic]);
|
|
1251
|
+
}
|
|
1252
|
+
/**
|
|
1253
|
+
* 读取驱动的 Provider 配置指纹。
|
|
1254
|
+
*
|
|
1255
|
+
* 驱动未声明该方法、抛错或返回空白时一律视为「无法判断」,调用方不得据此失效
|
|
1256
|
+
* 缓存——指纹只是让配置变化立刻生效的加速手段,不能成为目录可用的前提。
|
|
1257
|
+
*/
|
|
1258
|
+
function readCatalogFingerprint(driver) {
|
|
1259
|
+
const read = driver.catalogFingerprint;
|
|
1260
|
+
if (read === undefined)
|
|
1261
|
+
return undefined;
|
|
1262
|
+
try {
|
|
1263
|
+
const value = read.call(driver);
|
|
1264
|
+
return typeof value === 'string' && value.trim() !== '' ? value : undefined;
|
|
1265
|
+
}
|
|
1266
|
+
catch {
|
|
1267
|
+
return undefined;
|
|
1268
|
+
}
|
|
1269
|
+
}
|
|
1270
|
+
function catalogHasModels(catalog) {
|
|
1271
|
+
return catalog.fallback !== true && catalog.groups.some((group) => group.models.length > 0);
|
|
1272
|
+
}
|
|
1273
|
+
function mergePreferenceRecords(legacy, configured) {
|
|
1274
|
+
const merged = {};
|
|
1275
|
+
for (const [adapterId, preference] of Object.entries(legacy)) {
|
|
1276
|
+
const normalized = normalizePreference(preference);
|
|
1277
|
+
if (normalized !== undefined)
|
|
1278
|
+
merged[adapterId] = normalized;
|
|
1279
|
+
}
|
|
1280
|
+
for (const [adapterId, preference] of Object.entries(configured ?? {})) {
|
|
1281
|
+
const normalized = normalizePreference(preference);
|
|
1282
|
+
if (normalized === undefined)
|
|
1283
|
+
continue;
|
|
1284
|
+
merged[adapterId] = { ...merged[adapterId], ...normalized };
|
|
1285
|
+
}
|
|
1286
|
+
return merged;
|
|
1287
|
+
}
|
|
1288
|
+
function normalizePreference(value) {
|
|
1289
|
+
if (value === undefined)
|
|
1290
|
+
return undefined;
|
|
1291
|
+
const modelId = value.modelId?.trim();
|
|
1292
|
+
const effortId = value.effortId?.trim();
|
|
1293
|
+
const serviceTierId = value.serviceTierId?.trim();
|
|
1294
|
+
if (modelId === undefined && effortId === undefined && serviceTierId === undefined && value.translationEnabled === undefined && value.nativeApprovalMode === undefined)
|
|
1295
|
+
return undefined;
|
|
1296
|
+
return {
|
|
1297
|
+
...(modelId ? { modelId } : {}),
|
|
1298
|
+
...(effortId ? { effortId } : {}),
|
|
1299
|
+
...(serviceTierId ? { serviceTierId } : {}),
|
|
1300
|
+
...(value.translationEnabled === undefined ? {} : { translationEnabled: value.translationEnabled }),
|
|
1301
|
+
...(value.nativeApprovalMode === undefined ? {} : { nativeApprovalMode: value.nativeApprovalMode }),
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
function hasMissingPreferences(configured, legacy) {
|
|
1305
|
+
for (const [adapterId, legacyPreference] of Object.entries(legacy)) {
|
|
1306
|
+
const current = configured?.[adapterId];
|
|
1307
|
+
if (legacyPreference.modelId !== undefined && !hasText(current?.modelId))
|
|
1308
|
+
return true;
|
|
1309
|
+
if (legacyPreference.effortId !== undefined && !hasText(current?.effortId))
|
|
1310
|
+
return true;
|
|
1311
|
+
if (legacyPreference.serviceTierId !== undefined && !hasText(current?.serviceTierId))
|
|
1312
|
+
return true;
|
|
1313
|
+
if (legacyPreference.translationEnabled !== undefined && current?.translationEnabled === undefined)
|
|
1314
|
+
return true;
|
|
1315
|
+
}
|
|
1316
|
+
return false;
|
|
1317
|
+
}
|
|
1318
|
+
function hasText(value) {
|
|
1319
|
+
return value?.trim() !== '' && value !== undefined;
|
|
1320
|
+
}
|
|
1321
|
+
function preferenceSnapshot(preferences) {
|
|
1322
|
+
return Object.fromEntries([...preferences.entries()].map(([adapterId, preference]) => [adapterId, { ...preference }]));
|
|
1323
|
+
}
|
|
1324
|
+
/** Overlay DSH's current native route so subscription checks use the selected model. */
|
|
1325
|
+
function mergeDshNativeSelection(config, session, currentSelection) {
|
|
1326
|
+
if (config.adapterId !== 'dsh')
|
|
1327
|
+
return config;
|
|
1328
|
+
const root = asRecord(session);
|
|
1329
|
+
const rows = asRecord(root?.record)?.rows;
|
|
1330
|
+
const selectionRow = asRecord(asRecord(rows)?.modelSelection);
|
|
1331
|
+
const selection = asRecord(currentSelection) ?? asRecord(root?.modelSelection) ?? selectionRow;
|
|
1332
|
+
const value = asRecord(selection?.val) ?? selection;
|
|
1333
|
+
const lastUsed = asRecord(value?.lastUsed);
|
|
1334
|
+
const next = asRecord(value?.next);
|
|
1335
|
+
const pending = asRecord(value?.pending);
|
|
1336
|
+
const direct = stringValue(value?.provider) !== undefined && stringValue(value?.model) !== undefined ? value : undefined;
|
|
1337
|
+
// Prefer the explicit pending/next route; lastUsed can describe a previous
|
|
1338
|
+
// model until DSH consumes the newly selected one.
|
|
1339
|
+
const candidate = direct ?? pending ?? next ?? lastUsed;
|
|
1340
|
+
if (candidate === null)
|
|
1341
|
+
return config;
|
|
1342
|
+
const providerId = stringValue(candidate.provider);
|
|
1343
|
+
const modelId = stringValue(candidate.model);
|
|
1344
|
+
const effortId = stringValue(candidate.reasoningEffort);
|
|
1345
|
+
return {
|
|
1346
|
+
...config,
|
|
1347
|
+
...(providerId === undefined ? {} : { providerId }),
|
|
1348
|
+
...(modelId === undefined ? {} : { modelId }),
|
|
1349
|
+
...(effortId === undefined ? {} : { effortId }),
|
|
1350
|
+
};
|
|
1351
|
+
}
|
|
1352
|
+
/** 以内存配置为主、用持久化记录补齐 Provider 续接所需的身份字段。 */
|
|
1353
|
+
function mergeStoredSessionFields(config, stored) {
|
|
1354
|
+
if (stored === undefined || stored.adapterId !== config.adapterId)
|
|
1355
|
+
return config;
|
|
1356
|
+
return {
|
|
1357
|
+
...config,
|
|
1358
|
+
...(config.providerSessionId === undefined && stored.providerSessionId !== undefined ? { providerSessionId: stored.providerSessionId } : {}),
|
|
1359
|
+
...(config.rawStoreRef === undefined && stored.rawStoreRef !== undefined ? { rawStoreRef: stored.rawStoreRef } : {}),
|
|
1360
|
+
...(config.modelId === undefined && stored.modelId !== undefined ? { modelId: stored.modelId } : {}),
|
|
1361
|
+
...(config.effortId === undefined && stored.effortId !== undefined ? { effortId: stored.effortId } : {}),
|
|
1362
|
+
...(config.serviceTierId === undefined && stored.serviceTierId !== undefined ? { serviceTierId: stored.serviceTierId } : {}),
|
|
1363
|
+
...(config.translationEnabled === undefined && stored.translationEnabled !== undefined ? { translationEnabled: stored.translationEnabled } : {}),
|
|
1364
|
+
};
|
|
1365
|
+
}
|
|
1366
|
+
function withTurnPermission(input, permission) {
|
|
1367
|
+
const { permission: _refreshed, ...rest } = input;
|
|
1368
|
+
return permission === undefined ? rest : { ...rest, permission: { ...permission } };
|
|
1369
|
+
}
|
|
1370
|
+
function withCodexContextWindow(input, adapterId) {
|
|
1371
|
+
if (adapterId !== 'codex')
|
|
1372
|
+
return input;
|
|
1373
|
+
const supplied = input.modelContextWindow;
|
|
1374
|
+
const contextWindow = typeof supplied === 'number' && Number.isSafeInteger(supplied) && supplied > 0
|
|
1375
|
+
? supplied
|
|
1376
|
+
: knownCodexContextWindow(input.modelId);
|
|
1377
|
+
return contextWindow === undefined ? input : { ...input, modelContextWindow: contextWindow };
|
|
1378
|
+
}
|
|
1379
|
+
function usageSnapshot(event) {
|
|
1380
|
+
return {
|
|
1381
|
+
inputTokens: event.inputTokens,
|
|
1382
|
+
outputTokens: event.outputTokens,
|
|
1383
|
+
...(event.totalTokens === undefined ? {} : { totalTokens: event.totalTokens }),
|
|
1384
|
+
...(event.contextWindow === undefined ? {} : { contextWindow: event.contextWindow }),
|
|
1385
|
+
...(event.contextTokens === undefined ? {} : { contextTokens: event.contextTokens }),
|
|
1386
|
+
...(event.contextUsageRatio === undefined ? {} : { contextUsageRatio: event.contextUsageRatio }),
|
|
1387
|
+
...(event.providerCredits === undefined ? {} : { providerCredits: event.providerCredits }),
|
|
1388
|
+
capturedAt: Date.now(),
|
|
1389
|
+
};
|
|
1390
|
+
}
|
|
1391
|
+
function lastUsageField(usage) {
|
|
1392
|
+
return usage === undefined ? {} : { lastUsage: usage };
|
|
1393
|
+
}
|
|
1394
|
+
function asRecord(value) {
|
|
1395
|
+
return typeof value === 'object' && value !== null && !Array.isArray(value) ? value : null;
|
|
1396
|
+
}
|
|
1397
|
+
function stringValue(value) {
|
|
1398
|
+
return typeof value === 'string' && value.trim() !== '' ? value.trim() : undefined;
|
|
1399
|
+
}
|
|
1400
|
+
function unrefTimer(timer) {
|
|
1401
|
+
const nodeTimer = timer;
|
|
1402
|
+
nodeTimer.unref?.();
|
|
1403
|
+
}
|
|
1404
|
+
/** 短暂探测失败保留最后一次成功入口,失败原因始终来自本次探测。 */
|
|
1405
|
+
function detectionError(reason, previous, diagnostic) {
|
|
1406
|
+
return {
|
|
1407
|
+
...failedDetection(reason),
|
|
1408
|
+
...(previous?.installed ? { installed: true, version: previous.version, command: previous.command } : {}),
|
|
1409
|
+
...(diagnostic === undefined ? {} : { diagnostic }),
|
|
1410
|
+
};
|
|
1411
|
+
}
|
|
1412
|
+
//# sourceMappingURL=registry.js.map
|