@evanbobo/dsh-agentdoor 0.0.0-stage → 0.2.2-rc.1.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 +674 -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,1166 @@
|
|
|
1
|
+
import { Service } from '@deepseek-ai/cordis';
|
|
2
|
+
import { debugInfo, debugWarn } from '../../shared/debug.js';
|
|
3
|
+
import { resolveAgentDoorTranslator } from '../locale.js';
|
|
4
|
+
import { stripTerminalDeviceAttributeResponses } from '../../shared/terminal-input.js';
|
|
5
|
+
class ObservableValue {
|
|
6
|
+
value;
|
|
7
|
+
listeners = new Set();
|
|
8
|
+
constructor(value) {
|
|
9
|
+
this.value = value;
|
|
10
|
+
}
|
|
11
|
+
getSnapshot() { return this.value; }
|
|
12
|
+
subscribe(listener) {
|
|
13
|
+
this.listeners.add(listener);
|
|
14
|
+
return () => this.listeners.delete(listener);
|
|
15
|
+
}
|
|
16
|
+
set(value) {
|
|
17
|
+
this.value = value;
|
|
18
|
+
for (const listener of [...this.listeners])
|
|
19
|
+
listener();
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
/** 工作区终端模型;旧单标签视图卸载只 detach,聚合视图常驻 follow 和屏幕。 */
|
|
23
|
+
export class AgentDoorTerminalView {
|
|
24
|
+
sessionId;
|
|
25
|
+
remote;
|
|
26
|
+
createWhenMissing;
|
|
27
|
+
shellPath;
|
|
28
|
+
onWorkspaceResolved;
|
|
29
|
+
t;
|
|
30
|
+
state;
|
|
31
|
+
id;
|
|
32
|
+
store;
|
|
33
|
+
lifetime = new AbortController();
|
|
34
|
+
/** 屏幕与连接由模型拥有;React 卡片卸载不能结束它们的生命周期。 */
|
|
35
|
+
signal = this.lifetime.signal;
|
|
36
|
+
followController;
|
|
37
|
+
pendingRender;
|
|
38
|
+
mounted = 0;
|
|
39
|
+
revision = 0;
|
|
40
|
+
loading;
|
|
41
|
+
writes = Promise.resolve();
|
|
42
|
+
attachmentId;
|
|
43
|
+
/** 最近一次已排队的尺寸;ResizeObserver 可能在同一布局周期内重复触发。 */
|
|
44
|
+
lastResize;
|
|
45
|
+
reconnectTimer;
|
|
46
|
+
reconnectAttempts = 0;
|
|
47
|
+
/**
|
|
48
|
+
* 聚合终端由工作区库存拥有生命周期。
|
|
49
|
+
*
|
|
50
|
+
* 聚合页在切换右栏页签时可能会卸载 DOM,但 Host 里的终端仍然运行;
|
|
51
|
+
* 这类视图不能因为一次 DOM 卸载就释放 follow,否则再次点开标签必然
|
|
52
|
+
* 重新经历 environment/list/follow。显式 close 和 dispose 仍会强制释放。
|
|
53
|
+
*/
|
|
54
|
+
keepAlive;
|
|
55
|
+
initialState;
|
|
56
|
+
initialStateConsumed = false;
|
|
57
|
+
constructor(
|
|
58
|
+
/** 当前可见卡片的调用上下文;同工作区切换只更新此字段,不替换连接。 */
|
|
59
|
+
sessionId, id, remote, createWhenMissing, shellPath, onWorkspaceResolved,
|
|
60
|
+
// 追加在末尾:既有调用方与测试按位置传 shellPath / onWorkspaceResolved,不能前移。
|
|
61
|
+
t = resolveAgentDoorTranslator(), keepAlive = false, initialState) {
|
|
62
|
+
this.sessionId = sessionId;
|
|
63
|
+
this.remote = remote;
|
|
64
|
+
this.createWhenMissing = createWhenMissing;
|
|
65
|
+
this.shellPath = shellPath;
|
|
66
|
+
this.onWorkspaceResolved = onWorkspaceResolved;
|
|
67
|
+
this.t = t;
|
|
68
|
+
this.id = id;
|
|
69
|
+
this.keepAlive = keepAlive;
|
|
70
|
+
this.initialState = initialState;
|
|
71
|
+
// 标签兜底标题必须走词典:字段初始化阶段还取不到构造参数,因此在构造函数里建 store。
|
|
72
|
+
this.store = new ObservableValue({
|
|
73
|
+
phase: initialState?.info === undefined ? 'idle' : 'disconnected',
|
|
74
|
+
...(initialState?.environment === undefined ? {} : { environment: initialState.environment }),
|
|
75
|
+
...(initialState?.info === undefined ? {} : { info: initialState.info }),
|
|
76
|
+
title: initialState?.info?.title ?? t('terminal.title'),
|
|
77
|
+
writable: false,
|
|
78
|
+
});
|
|
79
|
+
this.state = this.store;
|
|
80
|
+
}
|
|
81
|
+
mount() {
|
|
82
|
+
this.mounted += 1;
|
|
83
|
+
if (this.mounted === 1) {
|
|
84
|
+
const initial = this.initialState;
|
|
85
|
+
if (!this.initialStateConsumed && initial?.info !== undefined) {
|
|
86
|
+
this.initialStateConsumed = true;
|
|
87
|
+
// 库存快照已经证明终端仍在运行时,直接订阅 Host 常驻连接,
|
|
88
|
+
// 不再为切换会话重新读取 environment/list。环境快照尚未到达时也
|
|
89
|
+
// 可以 follow:environment 只影响输入上限和外观默认值,不能阻塞恢复。
|
|
90
|
+
if (initial.info.state === 'running')
|
|
91
|
+
this.connect();
|
|
92
|
+
else
|
|
93
|
+
void this.refresh();
|
|
94
|
+
}
|
|
95
|
+
else if (!this.resumeFollow()) {
|
|
96
|
+
// 聚合视图在后台(会话或页签不可见)期间保持 follow 连接,重新可见时
|
|
97
|
+
// 若重走 refresh(),load() 会先把状态降级成 loading,而 connect() 又会
|
|
98
|
+
// 因为 followController 仍在而直接返回,终端就会停在“正在读取终端环境”
|
|
99
|
+
// 且输入被禁用,直到恰好产生新输出。这里直接复用已有连接。
|
|
100
|
+
void this.refresh();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
let active = true;
|
|
104
|
+
return () => {
|
|
105
|
+
if (!active)
|
|
106
|
+
return;
|
|
107
|
+
active = false;
|
|
108
|
+
this.mounted = Math.max(0, this.mounted - 1);
|
|
109
|
+
if (this.mounted === 0 && !this.keepAlive)
|
|
110
|
+
this.detach();
|
|
111
|
+
};
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* 重新加载终端环境与库存。
|
|
115
|
+
*
|
|
116
|
+
* 默认复用仍然活跃的 follow 连接:只有连接确实不存在时才向 Host 重新发起
|
|
117
|
+
* environment/list。`force` 供“重新连接/刷新”这类显式动作使用,会先释放
|
|
118
|
+
* 现有 follow 再重建,避免保活连接变成无法恢复的僵尸订阅。
|
|
119
|
+
*/
|
|
120
|
+
async refresh(options) {
|
|
121
|
+
if (this.lifetime.signal.aborted)
|
|
122
|
+
return;
|
|
123
|
+
if (this.loading !== undefined)
|
|
124
|
+
return this.loading;
|
|
125
|
+
if (options?.force === true) {
|
|
126
|
+
this.clearReconnect();
|
|
127
|
+
this.releaseFollow();
|
|
128
|
+
}
|
|
129
|
+
else if (this.resumeFollow())
|
|
130
|
+
return;
|
|
131
|
+
this.loading = this.load().finally(() => { this.loading = undefined; });
|
|
132
|
+
return this.loading;
|
|
133
|
+
}
|
|
134
|
+
/**
|
|
135
|
+
* 运行时丢失后按当前绑定重建终端。
|
|
136
|
+
*
|
|
137
|
+
* 这是"进程已经不存在"时的显式恢复动作:沿用同一个 terminalId 与工作区绑定,
|
|
138
|
+
* 让 Sidebar 标签、标题和尺寸都保持不变,而不是让用户去点"新建终端"。
|
|
139
|
+
*/
|
|
140
|
+
async rebuild() {
|
|
141
|
+
if (this.loading !== undefined)
|
|
142
|
+
return this.loading;
|
|
143
|
+
this.clearReconnect();
|
|
144
|
+
this.reconnectAttempts = 0;
|
|
145
|
+
// 重建会替换 Host 终端进程,旧 follow 订阅必须释放;否则 connect() 会认为
|
|
146
|
+
// 连接仍然活跃而直接返回,状态停在 loading。
|
|
147
|
+
this.releaseFollow();
|
|
148
|
+
this.patch({ phase: 'loading', writable: false });
|
|
149
|
+
const task = this.loadWithRebuild().finally(() => { this.loading = undefined; });
|
|
150
|
+
this.loading = task;
|
|
151
|
+
return task;
|
|
152
|
+
}
|
|
153
|
+
async loadWithRebuild() {
|
|
154
|
+
try {
|
|
155
|
+
const remote = resolveRemote(this.remote);
|
|
156
|
+
const environment = unwrap(await this.request(remote.environment(this.sessionId, this.lifetime.signal)));
|
|
157
|
+
this.patch({ phase: 'creating', environment });
|
|
158
|
+
const info = unwrap(await this.request(remote.create(this.sessionId, {
|
|
159
|
+
id: this.id,
|
|
160
|
+
...(this.shellPath === undefined ? {} : { shellPath: this.shellPath }),
|
|
161
|
+
cols: Math.min(80, environment.maxCols),
|
|
162
|
+
rows: Math.min(24, environment.maxRows),
|
|
163
|
+
}, this.lifetime.signal)));
|
|
164
|
+
debugInfo('dsh-agentdoor: client terminal rebuilt', { sessionId: this.sessionId, terminalId: info.id });
|
|
165
|
+
const { error: _error, ...rest } = this.store.getSnapshot();
|
|
166
|
+
this.store.set({ ...rest, environment, info, title: info.title });
|
|
167
|
+
this.finishLoad();
|
|
168
|
+
}
|
|
169
|
+
catch (error) {
|
|
170
|
+
if (!this.lifetime.signal.aborted)
|
|
171
|
+
this.fail(error);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
acknowledge(revision) {
|
|
175
|
+
if (this.pendingRender?.revision !== revision)
|
|
176
|
+
return;
|
|
177
|
+
this.pendingRender.resolve();
|
|
178
|
+
this.pendingRender = undefined;
|
|
179
|
+
}
|
|
180
|
+
write(data) {
|
|
181
|
+
data = stripTerminalDeviceAttributeResponses(data);
|
|
182
|
+
if (data === '')
|
|
183
|
+
return;
|
|
184
|
+
const state = this.store.getSnapshot();
|
|
185
|
+
const attachmentId = this.attachmentId;
|
|
186
|
+
if (!state.writable || attachmentId === undefined || data === '')
|
|
187
|
+
return;
|
|
188
|
+
const max = state.environment?.maxInputBytes ?? 64 * 1024;
|
|
189
|
+
if (new TextEncoder().encode(data).byteLength > max) {
|
|
190
|
+
this.patch({ error: '终端输入超过允许上限' });
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
this.writes = this.writes
|
|
194
|
+
.then(async () => { unwrap(await resolveRemote(this.remote).write(this.sessionId, this.id, attachmentId, data)); })
|
|
195
|
+
.catch((error) => this.fail(error));
|
|
196
|
+
}
|
|
197
|
+
resize(cols, rows, options) {
|
|
198
|
+
const state = this.store.getSnapshot();
|
|
199
|
+
const attachmentId = this.attachmentId;
|
|
200
|
+
if (!state.writable || attachmentId === undefined)
|
|
201
|
+
return;
|
|
202
|
+
const nextCols = Math.max(1, Math.min(Math.floor(cols), state.environment?.maxCols ?? 500));
|
|
203
|
+
const nextRows = Math.max(1, Math.min(Math.floor(rows), state.environment?.maxRows ?? 200));
|
|
204
|
+
const request = { attachmentId, cols: nextCols, rows: nextRows };
|
|
205
|
+
// force 用于视图重新可见(激活/回到前台)时夺回尺寸所有权:Host 记录的窗口
|
|
206
|
+
// 尺寸可能已被其它客户端或本客户端更早的宽度改写,只有重发一次当前尺寸才能
|
|
207
|
+
// 让 tmux 与当前视图一致,否则历史行按旧宽度排版,内容会超出容器被裁剪。
|
|
208
|
+
if (options?.force !== true && sameResize(this.lastResize, request))
|
|
209
|
+
return;
|
|
210
|
+
this.lastResize = request;
|
|
211
|
+
this.writes = this.writes
|
|
212
|
+
.then(async () => { unwrap(await resolveRemote(this.remote).resize(this.sessionId, this.id, attachmentId, nextCols, nextRows)); })
|
|
213
|
+
.catch((error) => {
|
|
214
|
+
if (sameResize(this.lastResize, request))
|
|
215
|
+
this.lastResize = undefined;
|
|
216
|
+
this.fail(error);
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
async rename(title) {
|
|
220
|
+
const normalized = title.trim();
|
|
221
|
+
if (normalized === '' || normalized === this.store.getSnapshot().title)
|
|
222
|
+
return;
|
|
223
|
+
try {
|
|
224
|
+
unwrap(await resolveRemote(this.remote).rename(this.sessionId, this.id, normalized));
|
|
225
|
+
const info = this.store.getSnapshot().info;
|
|
226
|
+
this.patch({ title: normalized, ...(info === undefined ? {} : { info: { ...info, title: normalized } }) });
|
|
227
|
+
}
|
|
228
|
+
catch (error) {
|
|
229
|
+
this.fail(error);
|
|
230
|
+
}
|
|
231
|
+
}
|
|
232
|
+
async close() {
|
|
233
|
+
if (this.store.getSnapshot().phase === 'closed')
|
|
234
|
+
return;
|
|
235
|
+
debugInfo('dsh-agentdoor: client terminal close entered', { sessionId: this.sessionId, terminalId: this.id });
|
|
236
|
+
this.patch({ phase: 'closing', writable: false });
|
|
237
|
+
this.detach();
|
|
238
|
+
unwrap(await resolveRemote(this.remote).close(this.sessionId, this.id));
|
|
239
|
+
debugInfo('dsh-agentdoor: client terminal close success', { sessionId: this.sessionId, terminalId: this.id });
|
|
240
|
+
this.patch({ phase: 'closed', writable: false });
|
|
241
|
+
}
|
|
242
|
+
async dispose() {
|
|
243
|
+
this.lifetime.abort(new Error('终端 Client 已卸载'));
|
|
244
|
+
this.detach();
|
|
245
|
+
await this.writes.catch(() => undefined);
|
|
246
|
+
}
|
|
247
|
+
async load() {
|
|
248
|
+
this.patch({ phase: 'loading', writable: false });
|
|
249
|
+
try {
|
|
250
|
+
const remote = resolveRemote(this.remote);
|
|
251
|
+
const environment = unwrap(await this.request(remote.environment(this.sessionId, this.lifetime.signal)));
|
|
252
|
+
debugInfo('dsh-agentdoor: client terminal environment', { sessionId: this.sessionId, workspaceId: environment.workspaceId, cwd: environment.cwd });
|
|
253
|
+
let createWhenMissing = this.createWhenMissing;
|
|
254
|
+
if (environment.workspaceId !== undefined) {
|
|
255
|
+
const binding = this.onWorkspaceResolved?.(environment.workspaceId, this.id);
|
|
256
|
+
debugInfo('dsh-agentdoor: client terminal workspace binding', { sessionId: this.sessionId, workspaceId: environment.workspaceId, requestedId: this.id, binding: binding ?? null });
|
|
257
|
+
if (binding !== undefined) {
|
|
258
|
+
if (binding.id !== this.id)
|
|
259
|
+
this.id = binding.id;
|
|
260
|
+
// 工作区已有绑定时,恢复必须失败闭合,不能用新 ID 偷建替代终端。
|
|
261
|
+
// 显式传入 terminalId 或读取到会话绑定时同样不能新建:工作区绑定
|
|
262
|
+
// 可能刚被另一个会话的关闭动作删除,此时旧标签仍在卸载途中,不能
|
|
263
|
+
// 把已经关闭的 ID 当成新终端重新 create。
|
|
264
|
+
createWhenMissing = createWhenMissing && !binding.existing;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
const listed = unwrap(await this.request(remote.list(this.sessionId)));
|
|
268
|
+
debugInfo('dsh-agentdoor: client terminal list', { sessionId: this.sessionId, workspaceId: environment.workspaceId, terminalIds: listed.map((entry) => entry.id), requestedId: this.id, createWhenMissing });
|
|
269
|
+
let info = listed.find((entry) => entry.id === this.id);
|
|
270
|
+
if (info === undefined && createWhenMissing) {
|
|
271
|
+
this.patch({ phase: 'creating', environment });
|
|
272
|
+
info = unwrap(await this.request(remote.create(this.sessionId, {
|
|
273
|
+
id: this.id,
|
|
274
|
+
...(this.shellPath === undefined ? {} : { shellPath: this.shellPath }),
|
|
275
|
+
cols: Math.min(80, environment.maxCols),
|
|
276
|
+
rows: Math.min(24, environment.maxRows),
|
|
277
|
+
}, this.lifetime.signal)));
|
|
278
|
+
debugInfo('dsh-agentdoor: client terminal created', { sessionId: this.sessionId, workspaceId: environment.workspaceId, terminalId: info.id });
|
|
279
|
+
}
|
|
280
|
+
if (info === undefined)
|
|
281
|
+
throw new Error('Host 中不存在该终端,且恢复流程禁止自动创建替代进程');
|
|
282
|
+
const { error: _error, ...rest } = this.store.getSnapshot();
|
|
283
|
+
this.store.set({ ...rest, environment, info, title: info.title });
|
|
284
|
+
this.finishLoad();
|
|
285
|
+
}
|
|
286
|
+
catch (error) {
|
|
287
|
+
if (!this.lifetime.signal.aborted)
|
|
288
|
+
this.fail(error);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
/**
|
|
292
|
+
* 加载阶段的 Host 请求等待上限。
|
|
293
|
+
*
|
|
294
|
+
* 页面被浏览器冻结(切到后台)期间发出的请求可能永远不会返回;没有上限时
|
|
295
|
+
* 视图会永久停在“正在读取终端环境”,用户点重试也只会复用同一个挂起 Promise。
|
|
296
|
+
*/
|
|
297
|
+
request(task) {
|
|
298
|
+
return withLoadTimeout(task, TERMINAL_LOAD_TIMEOUT_MS, this.t('terminalView.loadTimeout'));
|
|
299
|
+
}
|
|
300
|
+
/**
|
|
301
|
+
* 加载完成后的状态收敛。
|
|
302
|
+
*
|
|
303
|
+
* 可见时建立或复用 follow;不可见且没有保活连接时不能停在 loading,否则
|
|
304
|
+
* 切回会话的瞬间会先渲染成“正在读取终端环境”。
|
|
305
|
+
*/
|
|
306
|
+
finishLoad() {
|
|
307
|
+
if (this.mounted > 0) {
|
|
308
|
+
this.connect();
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
if (this.followController === undefined && this.store.getSnapshot().phase === 'loading') {
|
|
312
|
+
this.patch({ phase: 'disconnected', writable: false });
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
connect() {
|
|
316
|
+
if (this.followController !== undefined) {
|
|
317
|
+
// 保活连接仍然存在(例如加载期间用户切回会话):不重建 follow,但必须
|
|
318
|
+
// 恢复可见状态,否则会停在 load() 设置好的 loading。
|
|
319
|
+
this.resumeFollow();
|
|
320
|
+
return;
|
|
321
|
+
}
|
|
322
|
+
if (this.lifetime.signal.aborted || this.mounted === 0)
|
|
323
|
+
return;
|
|
324
|
+
this.clearReconnect();
|
|
325
|
+
const controller = new AbortController();
|
|
326
|
+
this.followController = controller;
|
|
327
|
+
this.attachmentId = crypto.randomUUID();
|
|
328
|
+
this.lastResize = undefined;
|
|
329
|
+
this.patch({ phase: 'connecting', writable: false });
|
|
330
|
+
void this.consume(controller.signal);
|
|
331
|
+
}
|
|
332
|
+
/**
|
|
333
|
+
* 复用仍然活跃的 follow 连接,并恢复可见状态。
|
|
334
|
+
*
|
|
335
|
+
* 聚合视图在后台保活期间连接不会释放,重新可见只是显示层切换,不需要重新
|
|
336
|
+
* 读取环境或库存;把它降级成 loading 会让终端变成只读,且只能等下一次
|
|
337
|
+
* 输出帧才能恢复。
|
|
338
|
+
*
|
|
339
|
+
* @returns 是否复用了已有连接;false 表示必须重新加载。
|
|
340
|
+
*/
|
|
341
|
+
resumeFollow() {
|
|
342
|
+
const controller = this.followController;
|
|
343
|
+
if (controller === undefined || controller.signal.aborted)
|
|
344
|
+
return false;
|
|
345
|
+
const state = this.store.getSnapshot();
|
|
346
|
+
if (state.phase === 'closed' || state.phase === 'failed')
|
|
347
|
+
return false;
|
|
348
|
+
this.clearReconnect();
|
|
349
|
+
if (state.render !== undefined) {
|
|
350
|
+
// 收到过画面说明连接已经建立,重新可见只是显示层切换。
|
|
351
|
+
if (state.phase !== 'connected' || !state.writable)
|
|
352
|
+
this.patch({ phase: 'connected', writable: true });
|
|
353
|
+
}
|
|
354
|
+
else if (state.phase !== 'connecting') {
|
|
355
|
+
// 仍在等待 Host 首帧:回到 connecting,避免停在 loading 或只读态。
|
|
356
|
+
this.patch({ phase: 'connecting', writable: false });
|
|
357
|
+
}
|
|
358
|
+
return true;
|
|
359
|
+
}
|
|
360
|
+
/** 只释放 follow 连接与附件,不改变对外状态;detach、重建和强制刷新共用。 */
|
|
361
|
+
releaseFollow() {
|
|
362
|
+
this.pendingRender?.resolve();
|
|
363
|
+
this.pendingRender = undefined;
|
|
364
|
+
this.followController?.abort(new Error('终端视图重新连接'));
|
|
365
|
+
this.followController = undefined;
|
|
366
|
+
this.attachmentId = undefined;
|
|
367
|
+
this.lastResize = undefined;
|
|
368
|
+
}
|
|
369
|
+
async consume(signal) {
|
|
370
|
+
try {
|
|
371
|
+
const attachmentId = this.attachmentId;
|
|
372
|
+
if (attachmentId === undefined)
|
|
373
|
+
return;
|
|
374
|
+
for await (const frame of resolveRemote(this.remote).follow(this.sessionId, this.id, attachmentId, signal)) {
|
|
375
|
+
if (signal.aborted)
|
|
376
|
+
break;
|
|
377
|
+
if (frame.type === 'state') {
|
|
378
|
+
this.patch({ info: frame.info, title: frame.info.title });
|
|
379
|
+
continue;
|
|
380
|
+
}
|
|
381
|
+
await this.deliver(frame);
|
|
382
|
+
}
|
|
383
|
+
if (!signal.aborted) {
|
|
384
|
+
// 流正常结束但终端仍在运行:这是连接层断开(Host 重连、服务器短暂不可达),
|
|
385
|
+
// 必须自动重连;只有真正结束的终端才停在终态。
|
|
386
|
+
if (this.isRunning())
|
|
387
|
+
this.scheduleReconnect();
|
|
388
|
+
else
|
|
389
|
+
this.patch({ phase: 'disconnected', writable: false });
|
|
390
|
+
}
|
|
391
|
+
}
|
|
392
|
+
catch (error) {
|
|
393
|
+
if (!signal.aborted) {
|
|
394
|
+
if (this.isRunning())
|
|
395
|
+
this.scheduleReconnect();
|
|
396
|
+
else
|
|
397
|
+
this.fail(error);
|
|
398
|
+
}
|
|
399
|
+
}
|
|
400
|
+
finally {
|
|
401
|
+
if (this.followController?.signal === signal) {
|
|
402
|
+
this.followController = undefined;
|
|
403
|
+
this.attachmentId = undefined;
|
|
404
|
+
}
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
async deliver(frame) {
|
|
408
|
+
// 真正收到画面才算连接成功,退避计数在这里归零。
|
|
409
|
+
this.reconnectAttempts = 0;
|
|
410
|
+
this.clearReconnect();
|
|
411
|
+
this.pendingRender?.resolve();
|
|
412
|
+
this.revision += 1;
|
|
413
|
+
let resolveWaiting = () => { };
|
|
414
|
+
const waiting = new Promise((resolve) => { resolveWaiting = resolve; });
|
|
415
|
+
this.pendingRender = { revision: this.revision, resolve: resolveWaiting };
|
|
416
|
+
const currentError = this.store.getSnapshot().error;
|
|
417
|
+
// Host resident 重连期间的旧 attach 可能短暂拒绝一次输入。收到新连接的
|
|
418
|
+
// 首帧后,控制权已经恢复,这条瞬态错误不能继续盖在可用终端底部;输入上限
|
|
419
|
+
// 等真实校验错误仍保留,避免成功输出把用户的有效提示清掉。
|
|
420
|
+
const recoveredControl = currentError?.includes('当前 attach 没有终端输入控制权') === true;
|
|
421
|
+
this.patch({
|
|
422
|
+
phase: 'connected',
|
|
423
|
+
writable: true,
|
|
424
|
+
render: { revision: this.revision, frame },
|
|
425
|
+
});
|
|
426
|
+
if (recoveredControl)
|
|
427
|
+
this.clearError();
|
|
428
|
+
await waiting;
|
|
429
|
+
}
|
|
430
|
+
detach() {
|
|
431
|
+
this.clearReconnect();
|
|
432
|
+
this.releaseFollow();
|
|
433
|
+
if (!this.lifetime.signal.aborted && this.store.getSnapshot().phase !== 'closed') {
|
|
434
|
+
const { render: _render, ...state } = this.store.getSnapshot();
|
|
435
|
+
this.store.set({ ...state, phase: 'disconnected', writable: false });
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
/** 终端是否仍被认为在运行;终态(exited/failed/closed)不参与自动重连。 */
|
|
439
|
+
isRunning() {
|
|
440
|
+
const state = this.store.getSnapshot();
|
|
441
|
+
if (state.phase === 'closed' || state.phase === 'failed')
|
|
442
|
+
return false;
|
|
443
|
+
if (state.info === undefined)
|
|
444
|
+
return true;
|
|
445
|
+
return state.info.state === 'running';
|
|
446
|
+
}
|
|
447
|
+
/**
|
|
448
|
+
* 恢复阶段 Host 列表为空时,判断当前标签是否仍有本地生命周期保护。
|
|
449
|
+
* 新建终端在 create 完成前不能被恢复流程关闭;已连接且 Host 报告 running
|
|
450
|
+
* 的终端也不能因为一次空列表响应被误判为残留。
|
|
451
|
+
*/
|
|
452
|
+
isRecoveryProtected() {
|
|
453
|
+
const state = this.store.getSnapshot();
|
|
454
|
+
if (state.phase === 'closed' || state.phase === 'failed')
|
|
455
|
+
return false;
|
|
456
|
+
if (this.createWhenMissing && (state.phase === 'idle' || state.phase === 'loading' || state.phase === 'creating'))
|
|
457
|
+
return true;
|
|
458
|
+
return state.info?.id === this.id && state.info.state === 'running';
|
|
459
|
+
}
|
|
460
|
+
/**
|
|
461
|
+
* 连接层断开后的自动重连。
|
|
462
|
+
*
|
|
463
|
+
* 指数退避到 5 秒封顶:DSH 重启、中继抖动或 tmux 服务器短暂不可达时,用户
|
|
464
|
+
* 不需要手动点"重新连接",也不会看到刷屏式的重试。
|
|
465
|
+
*/
|
|
466
|
+
scheduleReconnect() {
|
|
467
|
+
if (this.reconnectTimer !== undefined || this.lifetime.signal.aborted || this.mounted === 0)
|
|
468
|
+
return;
|
|
469
|
+
const delay = Math.min(500 * 2 ** this.reconnectAttempts, 5000);
|
|
470
|
+
this.reconnectAttempts += 1;
|
|
471
|
+
this.patch({ phase: 'disconnected', writable: false });
|
|
472
|
+
debugInfo('dsh-agentdoor: client terminal reconnect scheduled', { sessionId: this.sessionId, terminalId: this.id, delay, attempt: this.reconnectAttempts });
|
|
473
|
+
this.reconnectTimer = setTimeout(() => {
|
|
474
|
+
this.reconnectTimer = undefined;
|
|
475
|
+
if (this.lifetime.signal.aborted || this.mounted === 0)
|
|
476
|
+
return;
|
|
477
|
+
void this.refresh();
|
|
478
|
+
}, delay);
|
|
479
|
+
}
|
|
480
|
+
clearReconnect() {
|
|
481
|
+
if (this.reconnectTimer !== undefined) {
|
|
482
|
+
clearTimeout(this.reconnectTimer);
|
|
483
|
+
this.reconnectTimer = undefined;
|
|
484
|
+
}
|
|
485
|
+
}
|
|
486
|
+
patch(patch) {
|
|
487
|
+
this.store.set({ ...this.store.getSnapshot(), ...patch });
|
|
488
|
+
}
|
|
489
|
+
clearError() {
|
|
490
|
+
const { error: _error, ...state } = this.store.getSnapshot();
|
|
491
|
+
this.store.set(state);
|
|
492
|
+
}
|
|
493
|
+
fail(error) {
|
|
494
|
+
this.patch({ phase: 'failed', writable: false, error: errorMessage(error) });
|
|
495
|
+
}
|
|
496
|
+
}
|
|
497
|
+
const BINDING_PREFIX = 'dsh.agentdoor.terminal.binding.v1.';
|
|
498
|
+
const CLOSE_REQUEST_KEY = 'dsh.agentdoor.terminal.close.v1';
|
|
499
|
+
const SHELL_KEY = 'dsh.agentdoor.terminal.shell.v1';
|
|
500
|
+
/** 旧版会话级选择记录,仅用于迁移到工作区。 */
|
|
501
|
+
const SELECTION_PREFIX = 'dsh.agentdoor.terminal.selection.v1.';
|
|
502
|
+
const WORKSPACE_STATE_PREFIX = 'dsh.agentdoor.terminal.workspace-state.v1.';
|
|
503
|
+
/** DshAgentDoor 自有的浏览器终端服务,不依赖官方 terminal-controller Client 实现。 */
|
|
504
|
+
export class AgentDoorWebTerminals extends Service {
|
|
505
|
+
remote;
|
|
506
|
+
t;
|
|
507
|
+
views = new Map();
|
|
508
|
+
workspaceIds = new Map();
|
|
509
|
+
recoveries = new Map();
|
|
510
|
+
closeFailureStore = new ObservableValue([]);
|
|
511
|
+
closeFailures = this.closeFailureStore;
|
|
512
|
+
remoteReadyStore = new ObservableValue(false);
|
|
513
|
+
remoteReadyState = this.remoteReadyStore;
|
|
514
|
+
inventoryRevisionStore = new ObservableValue(0);
|
|
515
|
+
/** 任一工作区库存变化都会递增;聚合页用它触发跨会话刷新。 */
|
|
516
|
+
inventoryRevision = this.inventoryRevisionStore;
|
|
517
|
+
inventories = new Map();
|
|
518
|
+
/** 库存、选中标签和卡片开关都属于工作区;会话只提供调用上下文。 */
|
|
519
|
+
workspaceStates = new Map();
|
|
520
|
+
selectionRevisionStore = new ObservableValue(0);
|
|
521
|
+
selectionRevision = this.selectionRevisionStore;
|
|
522
|
+
cardRevisionStore = new ObservableValue(0);
|
|
523
|
+
cardRevision = this.cardRevisionStore;
|
|
524
|
+
/** 工作区尚未解析时的显式开关意图;解析后必须覆盖旧工作区开关。 */
|
|
525
|
+
pendingCardStates = new Map();
|
|
526
|
+
/** 已解析过的会话环境;切换回已有会话时无需再次请求 Host environment。 */
|
|
527
|
+
environments = new Map();
|
|
528
|
+
/** 每个会话最近一次库存请求的序号;旧请求返回时不得覆盖新建结果。 */
|
|
529
|
+
inventoryRequestIds = new Map();
|
|
530
|
+
/** 任意工作区刷新都会递增;尚未解析工作区的旧请求也必须随之失效。 */
|
|
531
|
+
inventoryEpoch = 0;
|
|
532
|
+
/** 同一工作区的关闭请求复用一次调用,避免连续点击重复释放同一个模型。 */
|
|
533
|
+
closingTerminals = new Map();
|
|
534
|
+
closeRequests = new Map();
|
|
535
|
+
/** Remote 注入前不能执行关闭请求;就绪后统一冲刷,避免把启动竞态显示成永久错误。 */
|
|
536
|
+
cleanupQueued = false;
|
|
537
|
+
constructor(ctx, remote, t = resolveAgentDoorTranslator()) {
|
|
538
|
+
super(ctx, 'webTerminals');
|
|
539
|
+
this.remote = remote;
|
|
540
|
+
this.t = t;
|
|
541
|
+
for (const request of readCloseRequests())
|
|
542
|
+
this.closeRequests.set(String(request.id), request);
|
|
543
|
+
void this.flushCleanup();
|
|
544
|
+
}
|
|
545
|
+
view(sessionId, key, contentId, terminalId, shellPath, createFresh = false, persistBinding = true, keepAlive = false, initialState) {
|
|
546
|
+
const mapKey = JSON.stringify([keepAlive ? this.scopeForSession(sessionId) : sessionId, key]);
|
|
547
|
+
const existing = this.views.get(mapKey);
|
|
548
|
+
if (existing !== undefined)
|
|
549
|
+
return existing.view;
|
|
550
|
+
// 首次创建时可能尚未解析工作区。解析后将原模型移入工作区键,不能再建一条 follow。
|
|
551
|
+
if (keepAlive) {
|
|
552
|
+
for (const [previousKey, record] of this.views) {
|
|
553
|
+
if (!record.keepAlive || record.contentId !== contentId || record.view.id !== terminalId)
|
|
554
|
+
continue;
|
|
555
|
+
if (this.scopeForSession(record.view.sessionId) !== this.scopeForSession(sessionId))
|
|
556
|
+
continue;
|
|
557
|
+
this.views.delete(previousKey);
|
|
558
|
+
this.views.set(mapKey, record);
|
|
559
|
+
return record.view;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
563
|
+
const sessionBinding = readBinding(sessionId, contentId);
|
|
564
|
+
// “新建”是一次性动作:首次消费标记时忽略工作区单终端绑定,生成新的身份;
|
|
565
|
+
// 标签重载后若已有会话绑定,则恢复刚创建的终端,避免再次创建重复进程。
|
|
566
|
+
const fresh = createFresh && sessionBinding === undefined;
|
|
567
|
+
const saved = fresh
|
|
568
|
+
? terminalId
|
|
569
|
+
: terminalId
|
|
570
|
+
?? sessionBinding
|
|
571
|
+
?? (workspaceId === undefined ? undefined : readWorkspaceBindingWithMigration(workspaceId, contentId));
|
|
572
|
+
const id = saved ?? crypto.randomUUID();
|
|
573
|
+
debugInfo('dsh-agentdoor: client terminal view', { sessionId, key, contentId, workspaceId: workspaceId ?? null, savedId: saved ?? null, terminalId: id, bindingSource: terminalId !== undefined ? 'argument' : workspaceId !== undefined && readWorkspaceBindingWithMigration(workspaceId, contentId) !== undefined ? 'workspace-storage' : readBinding(sessionId, contentId) !== undefined ? 'session-storage' : 'new' });
|
|
574
|
+
if (persistBinding && (fresh || saved === undefined))
|
|
575
|
+
writeBinding(sessionId, contentId, id);
|
|
576
|
+
const view = new AgentDoorTerminalView(sessionId, id, this.remote, fresh || saved === undefined, shellPath, persistBinding
|
|
577
|
+
? (resolvedWorkspaceId, currentId) => this.rememberWorkspace(sessionId, contentId, currentId, resolvedWorkspaceId, !fresh && terminalId === undefined)
|
|
578
|
+
: (resolvedWorkspaceId) => { this.rememberSessionWorkspace(sessionId, resolvedWorkspaceId); return undefined; }, this.t, keepAlive, initialState);
|
|
579
|
+
this.views.set(mapKey, { contentId, view, keepAlive });
|
|
580
|
+
return view;
|
|
581
|
+
}
|
|
582
|
+
/** 同工作区按 terminalId 复用模型、follow 和屏幕,会话只提供调用上下文。 */
|
|
583
|
+
viewForTerminal(sessionId, terminalId, shellPath) {
|
|
584
|
+
const key = `aggregate:${terminalId}`;
|
|
585
|
+
const info = this.inventoryForSession(sessionId).find((item) => item.id === terminalId);
|
|
586
|
+
const environment = this.environmentForSession(sessionId);
|
|
587
|
+
const initialState = info === undefined && environment === undefined
|
|
588
|
+
? undefined
|
|
589
|
+
: {
|
|
590
|
+
...(info === undefined ? {} : { info }),
|
|
591
|
+
...(environment === undefined ? {} : { environment }),
|
|
592
|
+
};
|
|
593
|
+
return this.view(sessionId, key, key, terminalId, shellPath, false, false, true, initialState);
|
|
594
|
+
}
|
|
595
|
+
/** 返回某个 Sidebar 内容已经保存的 Host 终端身份,用于恢复时去重。 */
|
|
596
|
+
boundTerminalId(sessionId, contentId) {
|
|
597
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
598
|
+
return readBinding(sessionId, contentId)
|
|
599
|
+
?? (workspaceId === undefined ? undefined : readWorkspaceBindingWithMigration(workspaceId, contentId));
|
|
600
|
+
}
|
|
601
|
+
/**
|
|
602
|
+
* 判断恢复阶段是否应保留某个标签。
|
|
603
|
+
*
|
|
604
|
+
* Host 列表为空有两种含义:新建终端的 create 还没有完成,或者 Host 已经
|
|
605
|
+
* 关闭终端而 Sidebar 只剩残留标签。只有当前 Client 视图明确处于创建中或
|
|
606
|
+
* 仍收到 Host 的 running 状态时,空列表才属于前一种情况。
|
|
607
|
+
*/
|
|
608
|
+
isTerminalRecoveryProtected(sessionId, contentId, terminalId) {
|
|
609
|
+
for (const record of this.views.values()) {
|
|
610
|
+
if (record.view.sessionId !== sessionId || record.contentId !== contentId)
|
|
611
|
+
continue;
|
|
612
|
+
if (record.view.id !== terminalId)
|
|
613
|
+
continue;
|
|
614
|
+
return record.view.isRecoveryProtected();
|
|
615
|
+
}
|
|
616
|
+
return false;
|
|
617
|
+
}
|
|
618
|
+
async launchShells(sessionId, signal) {
|
|
619
|
+
const shells = unwrap(await resolveRemote(this.remote).shells(sessionId, signal));
|
|
620
|
+
const preferred = readString(SHELL_KEY);
|
|
621
|
+
return {
|
|
622
|
+
shells,
|
|
623
|
+
...(preferred !== null && shells.some((shell) => shell.path === preferred) ? { selectedShell: preferred } : {}),
|
|
624
|
+
};
|
|
625
|
+
}
|
|
626
|
+
selectShell(path) { writeString(SHELL_KEY, path); }
|
|
627
|
+
/** 在聚合页内创建一个新的 Host 终端,并把它加入工作区库存。 */
|
|
628
|
+
async createTerminal(sessionId, shellPath) {
|
|
629
|
+
// 新建入口表示显式打开;完成时不再写开关,避免覆盖创建期间的关闭动作。
|
|
630
|
+
this.setTerminalCardOpen(sessionId, true);
|
|
631
|
+
const terminalId = crypto.randomUUID();
|
|
632
|
+
const view = this.view(sessionId, `aggregate:${terminalId}`, `aggregate:${terminalId}`, terminalId, shellPath, true, false, true);
|
|
633
|
+
await view.refresh();
|
|
634
|
+
const info = view.state.getSnapshot().info;
|
|
635
|
+
if (info === undefined)
|
|
636
|
+
throw new Error(view.state.getSnapshot().error ?? '终端创建失败');
|
|
637
|
+
await this.refreshInventory(sessionId);
|
|
638
|
+
this.selectTerminal(sessionId, info.id);
|
|
639
|
+
return info;
|
|
640
|
+
}
|
|
641
|
+
/** 只关闭当前工作区的指定 terminalId,并释放它的常驻屏幕与 follow。 */
|
|
642
|
+
closeTerminal(sessionId, terminalId) {
|
|
643
|
+
const key = JSON.stringify([this.scopeForSession(sessionId), terminalId]);
|
|
644
|
+
const pending = this.closingTerminals.get(key);
|
|
645
|
+
if (pending !== undefined)
|
|
646
|
+
return pending;
|
|
647
|
+
const task = this.closeTerminalInScope(sessionId, terminalId).finally(() => { this.closingTerminals.delete(key); });
|
|
648
|
+
this.closingTerminals.set(key, task);
|
|
649
|
+
return task;
|
|
650
|
+
}
|
|
651
|
+
async closeTerminalInScope(sessionId, terminalId) {
|
|
652
|
+
const primary = [...this.views.values()].find((record) => record.view.id === terminalId
|
|
653
|
+
&& this.scopeForSession(record.view.sessionId) === this.scopeForSession(sessionId));
|
|
654
|
+
if (primary !== undefined) {
|
|
655
|
+
primary.view.sessionId = sessionId;
|
|
656
|
+
await primary.view.close();
|
|
657
|
+
}
|
|
658
|
+
else
|
|
659
|
+
unwrap(await resolveRemote(this.remote).close(sessionId, terminalId));
|
|
660
|
+
this.finishClose(sessionId, terminalId);
|
|
661
|
+
}
|
|
662
|
+
/** Host 确认关闭即提交本地移除;资源收尾和后续列表查询不能阻塞子标签消失。 */
|
|
663
|
+
finishClose(sessionId, terminalId, detachedView) {
|
|
664
|
+
const records = [...this.views.entries()].filter(([, record]) => record.view.id === terminalId
|
|
665
|
+
&& this.scopeForSession(record.view.sessionId) === this.scopeForSession(sessionId));
|
|
666
|
+
this.invalidateWorkspaceInventory(sessionId);
|
|
667
|
+
// 先移除库存再释放屏幕:AbortSignal 会同步触发渲染者清理,不能让它读到旧列表。
|
|
668
|
+
this.rememberInventory(sessionId, this.inventoryForSession(sessionId).filter((item) => item.id !== terminalId));
|
|
669
|
+
const views = new Set(detachedView === undefined ? [] : [detachedView]);
|
|
670
|
+
for (const [mapKey, record] of records) {
|
|
671
|
+
this.views.delete(mapKey);
|
|
672
|
+
views.add(record.view);
|
|
673
|
+
}
|
|
674
|
+
// dispose 会同步取消屏幕与 follow,但其旧输入队列可能仍在等待网络响应。
|
|
675
|
+
for (const view of views)
|
|
676
|
+
void view.dispose().catch((error) => {
|
|
677
|
+
debugWarn('dsh-agentdoor: client terminal dispose after close failed', { sessionId, terminalId, error: errorMessage(error) });
|
|
678
|
+
});
|
|
679
|
+
void this.recover(sessionId).catch((error) => {
|
|
680
|
+
debugWarn('dsh-agentdoor: client terminal inventory refresh after close failed', { sessionId, terminalId, error: errorMessage(error) });
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
close(sessionId, key, contentId, terminalId) {
|
|
684
|
+
const mapKey = JSON.stringify([sessionId, key]);
|
|
685
|
+
const record = this.views.get(mapKey);
|
|
686
|
+
const id = terminalId ?? record?.view.id ?? this.boundTerminalId(sessionId, contentId);
|
|
687
|
+
if (id === undefined)
|
|
688
|
+
return;
|
|
689
|
+
debugInfo('dsh-agentdoor: client terminal close request', { sessionId, key, contentId, workspaceId: this.workspaceIds.get(sessionId) ?? null, terminalId: id, hasView: record !== undefined });
|
|
690
|
+
const request = { sessionId, id, title: record?.view.state.getSnapshot().title ?? this.t('terminal.title') };
|
|
691
|
+
this.closeRequests.set(String(id), request);
|
|
692
|
+
persistCloseRequests(this.closeRequests.values());
|
|
693
|
+
deleteBinding(sessionId, contentId);
|
|
694
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
695
|
+
if (workspaceId !== undefined) {
|
|
696
|
+
deleteWorkspaceBindingIfMatches(workspaceId, id);
|
|
697
|
+
deleteLegacyWorkspaceBinding(workspaceId, contentId);
|
|
698
|
+
}
|
|
699
|
+
this.views.delete(mapKey);
|
|
700
|
+
void this.cleanup(request, record?.view);
|
|
701
|
+
}
|
|
702
|
+
async recover(sessionId) {
|
|
703
|
+
const pending = this.recoveries.get(sessionId);
|
|
704
|
+
if (pending !== undefined)
|
|
705
|
+
return pending;
|
|
706
|
+
const requestId = (this.inventoryRequestIds.get(sessionId) ?? 0) + 1;
|
|
707
|
+
this.inventoryRequestIds.set(sessionId, requestId);
|
|
708
|
+
const inventoryEpoch = this.inventoryEpoch;
|
|
709
|
+
// 官方 list wire 只有 sessionId;先用 agent-scoped environment 让 Host 解析工作区。
|
|
710
|
+
// 使用可选变量避免 TS 将闭包中的自引用判定为“赋值前使用”;
|
|
711
|
+
// Promise 创建后才会执行异步主体,因此运行时仍能安全比较身份。
|
|
712
|
+
let recovery;
|
|
713
|
+
recovery = (async () => {
|
|
714
|
+
const environment = await this.resolveEnvironment(sessionId);
|
|
715
|
+
if (environment.workspaceId !== undefined)
|
|
716
|
+
this.rememberSessionWorkspace(sessionId, environment.workspaceId);
|
|
717
|
+
const result = dedupeInventory(unwrap(await resolveRemote(this.remote).list(sessionId)));
|
|
718
|
+
const currentRequestId = this.inventoryRequestIds.get(sessionId);
|
|
719
|
+
if (currentRequestId !== requestId || this.inventoryEpoch !== inventoryEpoch) {
|
|
720
|
+
// 工作区尚未解析时,刷新方无法提前把这个会话加入失效集合。
|
|
721
|
+
// 旧 list 结果不能交给 Sidebar,否则关闭后的终端会被重新投影出来;
|
|
722
|
+
// 让当前会话重新发起一轮查询,直到拿到刷新后的库存。
|
|
723
|
+
debugInfo('dsh-agentdoor: client terminal recover stale retry', {
|
|
724
|
+
sessionId,
|
|
725
|
+
terminalIds: result.map((entry) => entry.id),
|
|
726
|
+
requestId,
|
|
727
|
+
currentRequestId,
|
|
728
|
+
inventoryEpoch,
|
|
729
|
+
currentInventoryEpoch: this.inventoryEpoch,
|
|
730
|
+
});
|
|
731
|
+
// 当前请求尚未进入 finally;先移除自身,才能让 retry 创建新一代
|
|
732
|
+
// Promise,而不是再次命中这个仍在执行的旧请求。
|
|
733
|
+
if (recovery !== undefined && this.recoveries.get(sessionId) === recovery)
|
|
734
|
+
this.recoveries.delete(sessionId);
|
|
735
|
+
return this.recover(sessionId);
|
|
736
|
+
}
|
|
737
|
+
debugInfo('dsh-agentdoor: client terminal recover', { sessionId, workspaceId: environment.workspaceId, terminalIds: result.map((entry) => entry.id) });
|
|
738
|
+
this.rememberInventory(sessionId, result);
|
|
739
|
+
return result;
|
|
740
|
+
})().finally(() => {
|
|
741
|
+
if (recovery !== undefined && this.recoveries.get(sessionId) === recovery)
|
|
742
|
+
this.recoveries.delete(sessionId);
|
|
743
|
+
});
|
|
744
|
+
this.recoveries.set(sessionId, recovery);
|
|
745
|
+
return recovery;
|
|
746
|
+
}
|
|
747
|
+
retryClose(id) {
|
|
748
|
+
const request = this.closeRequests.get(String(id));
|
|
749
|
+
if (request !== undefined)
|
|
750
|
+
void this.cleanup(request);
|
|
751
|
+
}
|
|
752
|
+
/** 由 Client 的 Remote 注入回调调用,完成启动阶段延迟的关闭请求。 */
|
|
753
|
+
remoteReady() {
|
|
754
|
+
debugInfo('dsh-agentdoor: client terminal remote ready notification');
|
|
755
|
+
this.remoteReadyStore.set(true);
|
|
756
|
+
void this.flushCleanup();
|
|
757
|
+
}
|
|
758
|
+
async dispose() {
|
|
759
|
+
await Promise.all([...this.views.values()].map((record) => record.view.dispose()));
|
|
760
|
+
this.views.clear();
|
|
761
|
+
this.workspaceIds.clear();
|
|
762
|
+
this.recoveries.clear();
|
|
763
|
+
this.inventories.clear();
|
|
764
|
+
this.workspaceStates.clear();
|
|
765
|
+
this.pendingCardStates.clear();
|
|
766
|
+
this.environments.clear();
|
|
767
|
+
this.inventoryRequestIds.clear();
|
|
768
|
+
this.inventoryEpoch = 0;
|
|
769
|
+
}
|
|
770
|
+
/** 强制刷新当前会话对应工作区的库存。 */
|
|
771
|
+
async refreshInventory(sessionId) {
|
|
772
|
+
this.invalidateWorkspaceInventory(sessionId);
|
|
773
|
+
return this.recover(sessionId);
|
|
774
|
+
}
|
|
775
|
+
invalidateWorkspaceInventory(sessionId) {
|
|
776
|
+
this.inventoryEpoch += 1;
|
|
777
|
+
// 聚合页创建/关闭后必须绕过同一工作区所有会话的旧 list 请求;否则
|
|
778
|
+
// 另一个会话的迟到响应仍可能把关闭后的终端写回共享库存。
|
|
779
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
780
|
+
const invalidated = new Set();
|
|
781
|
+
for (const [knownSessionId, knownWorkspaceId] of this.workspaceIds) {
|
|
782
|
+
if (knownSessionId === sessionId || (workspaceId !== undefined && knownWorkspaceId === workspaceId)) {
|
|
783
|
+
invalidated.add(knownSessionId);
|
|
784
|
+
}
|
|
785
|
+
}
|
|
786
|
+
invalidated.add(sessionId);
|
|
787
|
+
for (const knownSessionId of invalidated)
|
|
788
|
+
this.invalidateRecovery(knownSessionId);
|
|
789
|
+
}
|
|
790
|
+
/** 令指定会话尚未完成的库存请求失效,并清掉可复用的旧 Promise。 */
|
|
791
|
+
invalidateRecovery(sessionId) {
|
|
792
|
+
this.inventoryRequestIds.set(sessionId, (this.inventoryRequestIds.get(sessionId) ?? 0) + 1);
|
|
793
|
+
this.recoveries.delete(sessionId);
|
|
794
|
+
}
|
|
795
|
+
async resolveEnvironment(sessionId) {
|
|
796
|
+
const cached = this.environments.get(`session:${sessionId}`);
|
|
797
|
+
if (cached !== undefined)
|
|
798
|
+
return cached;
|
|
799
|
+
const environment = unwrap(await resolveRemote(this.remote).environment(sessionId));
|
|
800
|
+
this.environments.set(`session:${sessionId}`, environment);
|
|
801
|
+
if (environment.workspaceId !== undefined)
|
|
802
|
+
this.environments.set(`workspace:${environment.workspaceId}`, environment);
|
|
803
|
+
return environment;
|
|
804
|
+
}
|
|
805
|
+
rememberSessionWorkspace(sessionId, workspaceId) {
|
|
806
|
+
this.workspaceIds.set(sessionId, workspaceId);
|
|
807
|
+
const pending = this.pendingCardStates.get(sessionId);
|
|
808
|
+
if (pending === undefined)
|
|
809
|
+
return;
|
|
810
|
+
this.pendingCardStates.delete(sessionId);
|
|
811
|
+
this.setTerminalCardOpen(sessionId, pending);
|
|
812
|
+
}
|
|
813
|
+
environmentForSession(sessionId) {
|
|
814
|
+
const session = this.environments.get(`session:${sessionId}`);
|
|
815
|
+
if (session !== undefined)
|
|
816
|
+
return session;
|
|
817
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
818
|
+
return workspaceId === undefined ? undefined : this.environments.get(`workspace:${workspaceId}`);
|
|
819
|
+
}
|
|
820
|
+
/** 返回当前会话最近一次拿到的工作区库存;首次加载时为空。 */
|
|
821
|
+
inventoryForSession(sessionId) {
|
|
822
|
+
const workspaceId = this.workspaceIds.get(sessionId) ?? `session:${sessionId}`;
|
|
823
|
+
return this.inventories.get(workspaceId)?.terminals ?? [];
|
|
824
|
+
}
|
|
825
|
+
/** 工作区状态使用显式作用域键,旧环境缺少 workspaceId 时才退回会话。 */
|
|
826
|
+
scopeForSession(sessionId) {
|
|
827
|
+
const workspaceId = this.workspaceIds.get(sessionId);
|
|
828
|
+
return JSON.stringify(workspaceId === undefined ? ['session', sessionId] : ['workspace', workspaceId]);
|
|
829
|
+
}
|
|
830
|
+
/** 同工作区所有会话读取同一选择;组件卸载和页面刷新不清除记录。 */
|
|
831
|
+
selectedTerminalId(sessionId) {
|
|
832
|
+
return this.workspaceStateForSession(sessionId).selectedId;
|
|
833
|
+
}
|
|
834
|
+
/** 用户选择和库存回退都走同一个入口;存储不可用时仍保留内存记录。 */
|
|
835
|
+
selectTerminal(sessionId, id) {
|
|
836
|
+
const state = this.workspaceStateForSession(sessionId);
|
|
837
|
+
if (state.selectedId === id)
|
|
838
|
+
return;
|
|
839
|
+
const next = { ...state };
|
|
840
|
+
if (id === undefined)
|
|
841
|
+
delete next.selectedId;
|
|
842
|
+
else
|
|
843
|
+
next.selectedId = id;
|
|
844
|
+
this.saveWorkspaceState(sessionId, next);
|
|
845
|
+
this.selectionRevisionStore.set(this.selectionRevisionStore.getSnapshot() + 1);
|
|
846
|
+
}
|
|
847
|
+
/** 卡片是否打开由工作区共享,不由某个会话的布局缺失推断。 */
|
|
848
|
+
terminalCardOpen(sessionId) {
|
|
849
|
+
return this.workspaceStateForSession(sessionId).cardOpen;
|
|
850
|
+
}
|
|
851
|
+
setTerminalCardOpen(sessionId, open) {
|
|
852
|
+
if (!this.workspaceIds.has(sessionId))
|
|
853
|
+
this.pendingCardStates.set(sessionId, open);
|
|
854
|
+
const state = this.workspaceStateForSession(sessionId);
|
|
855
|
+
if (state.cardOpen === open)
|
|
856
|
+
return;
|
|
857
|
+
this.saveWorkspaceState(sessionId, { ...state, cardOpen: open });
|
|
858
|
+
this.cardRevisionStore.set(this.cardRevisionStore.getSnapshot() + 1);
|
|
859
|
+
}
|
|
860
|
+
workspaceStateForSession(sessionId) {
|
|
861
|
+
const scope = this.scopeForSession(sessionId);
|
|
862
|
+
const current = this.workspaceStates.get(scope);
|
|
863
|
+
if (current !== undefined)
|
|
864
|
+
return current;
|
|
865
|
+
const sessionScope = JSON.stringify(['session', sessionId]);
|
|
866
|
+
const legacyKey = `${SELECTION_PREFIX}${JSON.stringify(sessionId)}`;
|
|
867
|
+
const legacyId = readString(legacyKey);
|
|
868
|
+
// 工作区记录始终优先;首次解析工作区时迁移尚未绑定工作区的选择与开关。
|
|
869
|
+
const state = readWorkspaceState(scope)
|
|
870
|
+
?? this.workspaceStates.get(sessionScope)
|
|
871
|
+
?? readWorkspaceState(sessionScope)
|
|
872
|
+
?? (legacyId === null ? {} : { selectedId: legacyId });
|
|
873
|
+
this.saveWorkspaceState(sessionId, state);
|
|
874
|
+
if (scope !== sessionScope) {
|
|
875
|
+
this.workspaceStates.delete(sessionScope);
|
|
876
|
+
removeString(`${WORKSPACE_STATE_PREFIX}${sessionScope}`);
|
|
877
|
+
removeString(legacyKey);
|
|
878
|
+
}
|
|
879
|
+
return state;
|
|
880
|
+
}
|
|
881
|
+
saveWorkspaceState(sessionId, state) {
|
|
882
|
+
const scope = this.scopeForSession(sessionId);
|
|
883
|
+
this.workspaceStates.set(scope, state);
|
|
884
|
+
writeString(`${WORKSPACE_STATE_PREFIX}${scope}`, JSON.stringify(state));
|
|
885
|
+
}
|
|
886
|
+
rememberWorkspace(sessionId, contentId, id, workspaceId, useWorkspaceBinding) {
|
|
887
|
+
this.rememberSessionWorkspace(sessionId, workspaceId);
|
|
888
|
+
// 显式恢复和“新建”都必须保留自己的 terminalId;只有普通无参数入口
|
|
889
|
+
// 才使用旧的单终端工作区绑定兼容行为。
|
|
890
|
+
const existing = useWorkspaceBinding ? readWorkspaceBindingWithMigration(workspaceId, contentId) : undefined;
|
|
891
|
+
const resolvedId = existing ?? id;
|
|
892
|
+
// 修正首次渲染时已经写入的会话键,避免第二个会话继续携带临时 ID。
|
|
893
|
+
writeBinding(sessionId, contentId, resolvedId);
|
|
894
|
+
if (useWorkspaceBinding) {
|
|
895
|
+
// 旧版本的工作区键带 contentId;统一重写成只含 Workspace ID 的新键。
|
|
896
|
+
writeWorkspaceBinding(workspaceId, contentId, resolvedId);
|
|
897
|
+
deleteLegacyWorkspaceBinding(workspaceId, contentId);
|
|
898
|
+
}
|
|
899
|
+
return { id: resolvedId, existing: existing !== undefined };
|
|
900
|
+
}
|
|
901
|
+
rememberInventory(sessionId, terminals) {
|
|
902
|
+
const workspaceId = this.workspaceIds.get(sessionId) ?? `session:${sessionId}`;
|
|
903
|
+
const normalized = dedupeInventory(terminals);
|
|
904
|
+
const previous = this.inventories.get(workspaceId);
|
|
905
|
+
const changed = previous === undefined || !sameInventory(previous.terminals, normalized);
|
|
906
|
+
const revision = this.inventoryRevisionStore.getSnapshot() + 1;
|
|
907
|
+
// 库存先落位再通知选择变化,所有同步订阅者都应看到同一份新列表。
|
|
908
|
+
if (changed)
|
|
909
|
+
this.inventories.set(workspaceId, { workspaceId, terminals: normalized, revision });
|
|
910
|
+
// 选择与库存使用同一工作区边界;关闭当前终端只需修正一次共享选择。
|
|
911
|
+
const selectedId = this.selectedTerminalId(sessionId);
|
|
912
|
+
if (!normalized.some((item) => item.id === selectedId))
|
|
913
|
+
this.selectTerminal(sessionId, normalized[0]?.id);
|
|
914
|
+
if (changed)
|
|
915
|
+
this.inventoryRevisionStore.set(revision);
|
|
916
|
+
}
|
|
917
|
+
async cleanup(request, view) {
|
|
918
|
+
try {
|
|
919
|
+
debugInfo('dsh-agentdoor: client terminal cleanup begin', { sessionId: request.sessionId, terminalId: request.id, hasView: view !== undefined });
|
|
920
|
+
if (view === undefined)
|
|
921
|
+
unwrap(await resolveRemote(this.remote).close(request.sessionId, request.id));
|
|
922
|
+
else
|
|
923
|
+
await view.close();
|
|
924
|
+
debugInfo('dsh-agentdoor: client terminal cleanup success', { sessionId: request.sessionId, terminalId: request.id });
|
|
925
|
+
this.closeRequests.delete(String(request.id));
|
|
926
|
+
persistCloseRequests(this.closeRequests.values());
|
|
927
|
+
this.closeFailureStore.set(this.closeFailureStore.getSnapshot().filter((item) => item.id !== request.id));
|
|
928
|
+
// 旧 Sidebar 路径也走同一收尾,确保共享库存与已移出缓存的模型一并清理。
|
|
929
|
+
this.finishClose(request.sessionId, request.id, view);
|
|
930
|
+
}
|
|
931
|
+
catch (error) {
|
|
932
|
+
if (isTerminalRemoteUnavailable(error)) {
|
|
933
|
+
debugInfo('dsh-agentdoor: client terminal cleanup deferred', { sessionId: request.sessionId, terminalId: request.id });
|
|
934
|
+
return;
|
|
935
|
+
}
|
|
936
|
+
debugWarn('dsh-agentdoor: client terminal cleanup failed', { sessionId: request.sessionId, terminalId: request.id, error: errorMessage(error) });
|
|
937
|
+
const failure = { ...request, message: errorMessage(error) };
|
|
938
|
+
this.closeFailureStore.set([...this.closeFailureStore.getSnapshot().filter((item) => item.id !== request.id), failure]);
|
|
939
|
+
}
|
|
940
|
+
}
|
|
941
|
+
async flushCleanup() {
|
|
942
|
+
if (this.cleanupQueued || this.closeRequests.size === 0)
|
|
943
|
+
return;
|
|
944
|
+
try {
|
|
945
|
+
resolveRemote(this.remote);
|
|
946
|
+
}
|
|
947
|
+
catch (error) {
|
|
948
|
+
if (isTerminalRemoteUnavailable(error)) {
|
|
949
|
+
debugInfo('dsh-agentdoor: client terminal cleanup waiting for remote');
|
|
950
|
+
return;
|
|
951
|
+
}
|
|
952
|
+
throw error;
|
|
953
|
+
}
|
|
954
|
+
this.cleanupQueued = true;
|
|
955
|
+
try {
|
|
956
|
+
for (const request of [...this.closeRequests.values()])
|
|
957
|
+
await this.cleanup(request);
|
|
958
|
+
}
|
|
959
|
+
finally {
|
|
960
|
+
this.cleanupQueued = false;
|
|
961
|
+
}
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
/** 加载阶段单次 Host 请求的等待上限;超过后按失败处理,用户可以显式重试。 */
|
|
965
|
+
const TERMINAL_LOAD_TIMEOUT_MS = 20_000;
|
|
966
|
+
/**
|
|
967
|
+
* 给加载阶段的请求加等待上限。
|
|
968
|
+
*
|
|
969
|
+
* 页面被浏览器冻结(切到后台)期间发出的请求可能永远不会返回;没有上限时
|
|
970
|
+
* 视图会永久停在“正在读取终端环境”,重试也只会复用同一个挂起的 Promise。
|
|
971
|
+
* 底层请求不保证可取消,因此这里只结束等待,并先给原请求挂上拒绝处理器,
|
|
972
|
+
* 避免它稍后失败时产生 unhandled rejection。
|
|
973
|
+
*/
|
|
974
|
+
async function withLoadTimeout(task, timeoutMs, message) {
|
|
975
|
+
const guarded = task.then((value) => ({ state: 'value', value }), (error) => ({ state: 'error', error }));
|
|
976
|
+
let timer;
|
|
977
|
+
const expired = new Promise((resolve) => {
|
|
978
|
+
timer = setTimeout(() => resolve({ state: 'timeout' }), timeoutMs);
|
|
979
|
+
});
|
|
980
|
+
try {
|
|
981
|
+
const outcome = await Promise.race([guarded, expired]);
|
|
982
|
+
if (outcome.state === 'value')
|
|
983
|
+
return outcome.value;
|
|
984
|
+
if (outcome.state === 'error')
|
|
985
|
+
throw outcome.error;
|
|
986
|
+
throw new Error(message);
|
|
987
|
+
}
|
|
988
|
+
finally {
|
|
989
|
+
if (timer !== undefined)
|
|
990
|
+
clearTimeout(timer);
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
function unwrap(result) {
|
|
994
|
+
if (typeof result !== 'object' || result === null || !('ok' in result)) {
|
|
995
|
+
throw new Error('终端服务返回了无效响应');
|
|
996
|
+
}
|
|
997
|
+
if (result.ok)
|
|
998
|
+
return result.value;
|
|
999
|
+
throw result.error;
|
|
1000
|
+
}
|
|
1001
|
+
/**
|
|
1002
|
+
* 终端 Remote 尚未注入时的稳定错误。
|
|
1003
|
+
*
|
|
1004
|
+
* 调用方按类型判断可用性,不能比较本地化后的 message 文本。
|
|
1005
|
+
*/
|
|
1006
|
+
export class TerminalRemoteUnavailableError extends Error {
|
|
1007
|
+
constructor() {
|
|
1008
|
+
super('终端服务尚未就绪,请稍后重试');
|
|
1009
|
+
this.name = 'TerminalRemoteUnavailableError';
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
function resolveRemote(source) {
|
|
1013
|
+
const remote = typeof source === 'function' ? source() : source;
|
|
1014
|
+
if (remote === undefined)
|
|
1015
|
+
throw new TerminalRemoteUnavailableError();
|
|
1016
|
+
return remote;
|
|
1017
|
+
}
|
|
1018
|
+
function sameResize(left, right) {
|
|
1019
|
+
return left?.attachmentId === right.attachmentId && left.cols === right.cols && left.rows === right.rows;
|
|
1020
|
+
}
|
|
1021
|
+
function errorMessage(error) {
|
|
1022
|
+
return error instanceof Error ? error.message : String(error);
|
|
1023
|
+
}
|
|
1024
|
+
function isTerminalRemoteUnavailable(error) {
|
|
1025
|
+
return error instanceof TerminalRemoteUnavailableError;
|
|
1026
|
+
}
|
|
1027
|
+
function sameInventory(left, right) {
|
|
1028
|
+
if (left.length !== right.length)
|
|
1029
|
+
return false;
|
|
1030
|
+
for (let index = 0; index < left.length; index += 1) {
|
|
1031
|
+
const a = left[index];
|
|
1032
|
+
const b = right[index];
|
|
1033
|
+
if (a.id !== b.id || a.title !== b.title || a.cwd !== b.cwd || a.cols !== b.cols || a.rows !== b.rows || a.state !== b.state || a.exitCode !== b.exitCode || a.shell.path !== b.shell.path || a.shell.name !== b.shell.name)
|
|
1034
|
+
return false;
|
|
1035
|
+
}
|
|
1036
|
+
return true;
|
|
1037
|
+
}
|
|
1038
|
+
/** Host 列表按 terminalId 去重,避免重复记录共享同一个关闭动作。 */
|
|
1039
|
+
function dedupeInventory(terminals) {
|
|
1040
|
+
const unique = new Map();
|
|
1041
|
+
for (const terminal of terminals)
|
|
1042
|
+
unique.set(terminal.id, terminal);
|
|
1043
|
+
return [...unique.values()];
|
|
1044
|
+
}
|
|
1045
|
+
function bindingKey(sessionId, contentId) {
|
|
1046
|
+
return `${BINDING_PREFIX}${JSON.stringify([sessionId, contentId])}`;
|
|
1047
|
+
}
|
|
1048
|
+
function workspaceBindingKey(workspaceId) {
|
|
1049
|
+
// 工作区模式的终端身份不能带 session、tab 或 contentId;这些值在每个
|
|
1050
|
+
// DSH 会话中都会重新生成,带进去就会把所谓的工作区绑定重新拆回会话绑定。
|
|
1051
|
+
return `${BINDING_PREFIX}${JSON.stringify(['workspace', workspaceId])}`;
|
|
1052
|
+
}
|
|
1053
|
+
/** 0.1.7 早期构建把 contentId 写进了工作区键,读取它只用于一次迁移。 */
|
|
1054
|
+
function legacyWorkspaceBindingKey(workspaceId, contentId) {
|
|
1055
|
+
return `${BINDING_PREFIX}${JSON.stringify(['workspace', workspaceId, contentId])}`;
|
|
1056
|
+
}
|
|
1057
|
+
function readBinding(sessionId, contentId) {
|
|
1058
|
+
const value = readString(bindingKey(sessionId, contentId));
|
|
1059
|
+
return value !== null && /^[\w-]{1,128}$/u.test(value) ? value : undefined;
|
|
1060
|
+
}
|
|
1061
|
+
function writeBinding(sessionId, contentId, id) {
|
|
1062
|
+
writeString(bindingKey(sessionId, contentId), String(id));
|
|
1063
|
+
}
|
|
1064
|
+
function readWorkspaceBinding(workspaceId, _contentId) {
|
|
1065
|
+
const value = readString(workspaceBindingKey(workspaceId));
|
|
1066
|
+
return value !== null && /^[\w-]{1,128}$/u.test(value) ? value : undefined;
|
|
1067
|
+
}
|
|
1068
|
+
function readWorkspaceBindingWithMigration(workspaceId, contentId) {
|
|
1069
|
+
const current = readWorkspaceBinding(workspaceId);
|
|
1070
|
+
if (current !== undefined)
|
|
1071
|
+
return current;
|
|
1072
|
+
const legacy = readString(legacyWorkspaceBindingKey(workspaceId, contentId));
|
|
1073
|
+
return legacy !== null && /^[\w-]{1,128}$/u.test(legacy) ? legacy : undefined;
|
|
1074
|
+
}
|
|
1075
|
+
function writeWorkspaceBinding(workspaceId, _contentId, id) {
|
|
1076
|
+
writeString(workspaceBindingKey(workspaceId), String(id));
|
|
1077
|
+
}
|
|
1078
|
+
function deleteWorkspaceBinding(workspaceId, _contentId) {
|
|
1079
|
+
try {
|
|
1080
|
+
localStorage.removeItem(workspaceBindingKey(workspaceId));
|
|
1081
|
+
}
|
|
1082
|
+
catch { /* 浏览器禁用存储时仅失去跨刷新绑定。 */ }
|
|
1083
|
+
}
|
|
1084
|
+
function deleteWorkspaceBindingIfMatches(workspaceId, id) {
|
|
1085
|
+
if (readWorkspaceBinding(workspaceId) !== id)
|
|
1086
|
+
return;
|
|
1087
|
+
deleteWorkspaceBinding(workspaceId);
|
|
1088
|
+
}
|
|
1089
|
+
function deleteLegacyWorkspaceBinding(workspaceId, contentId) {
|
|
1090
|
+
try {
|
|
1091
|
+
localStorage.removeItem(legacyWorkspaceBindingKey(workspaceId, contentId));
|
|
1092
|
+
}
|
|
1093
|
+
catch { /* 浏览器禁用存储时仅失去跨刷新绑定。 */ }
|
|
1094
|
+
}
|
|
1095
|
+
function deleteBinding(sessionId, contentId) {
|
|
1096
|
+
try {
|
|
1097
|
+
localStorage.removeItem(bindingKey(sessionId, contentId));
|
|
1098
|
+
}
|
|
1099
|
+
catch { /* 浏览器禁用存储时仅失去跨刷新绑定。 */ }
|
|
1100
|
+
}
|
|
1101
|
+
function readCloseRequests() {
|
|
1102
|
+
const raw = readString(CLOSE_REQUEST_KEY);
|
|
1103
|
+
if (raw === null)
|
|
1104
|
+
return [];
|
|
1105
|
+
try {
|
|
1106
|
+
const values = JSON.parse(raw);
|
|
1107
|
+
if (!Array.isArray(values))
|
|
1108
|
+
return [];
|
|
1109
|
+
return values.filter(isCloseRequest);
|
|
1110
|
+
}
|
|
1111
|
+
catch {
|
|
1112
|
+
return [];
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
function isCloseRequest(value) {
|
|
1116
|
+
if (typeof value !== 'object' || value === null)
|
|
1117
|
+
return false;
|
|
1118
|
+
const record = value;
|
|
1119
|
+
return typeof record.sessionId === 'string' && typeof record.id === 'string' && typeof record.title === 'string';
|
|
1120
|
+
}
|
|
1121
|
+
function persistCloseRequests(requests) {
|
|
1122
|
+
writeString(CLOSE_REQUEST_KEY, JSON.stringify([...requests]));
|
|
1123
|
+
}
|
|
1124
|
+
function readString(key) {
|
|
1125
|
+
if (typeof localStorage === 'undefined')
|
|
1126
|
+
return null;
|
|
1127
|
+
try {
|
|
1128
|
+
return localStorage.getItem(key);
|
|
1129
|
+
}
|
|
1130
|
+
catch {
|
|
1131
|
+
return null;
|
|
1132
|
+
}
|
|
1133
|
+
}
|
|
1134
|
+
function readWorkspaceState(scope) {
|
|
1135
|
+
const raw = readString(`${WORKSPACE_STATE_PREFIX}${scope}`);
|
|
1136
|
+
if (raw === null)
|
|
1137
|
+
return undefined;
|
|
1138
|
+
try {
|
|
1139
|
+
const state = JSON.parse(raw);
|
|
1140
|
+
if (typeof state !== 'object' || state === null)
|
|
1141
|
+
return undefined;
|
|
1142
|
+
const record = state;
|
|
1143
|
+
return {
|
|
1144
|
+
...(typeof record.selectedId === 'string' ? { selectedId: record.selectedId } : {}),
|
|
1145
|
+
...(typeof record.cardOpen === 'boolean' ? { cardOpen: record.cardOpen } : {}),
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
catch {
|
|
1149
|
+
return undefined;
|
|
1150
|
+
}
|
|
1151
|
+
}
|
|
1152
|
+
function removeString(key) {
|
|
1153
|
+
try {
|
|
1154
|
+
localStorage.removeItem(key);
|
|
1155
|
+
}
|
|
1156
|
+
catch { /* 受限环境继续使用内存记录。 */ }
|
|
1157
|
+
}
|
|
1158
|
+
function writeString(key, value) {
|
|
1159
|
+
if (typeof localStorage === 'undefined')
|
|
1160
|
+
return;
|
|
1161
|
+
try {
|
|
1162
|
+
localStorage.setItem(key, value);
|
|
1163
|
+
}
|
|
1164
|
+
catch { /* 无痕或受限环境继续使用内存状态。 */ }
|
|
1165
|
+
}
|
|
1166
|
+
//# sourceMappingURL=model.js.map
|