@evanbobo/dsh-agentdoor 0.0.0-stage → 0.2.2-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.en.md +268 -0
- package/README.md +243 -2
- package/THIRD_PARTY_NOTICES +96 -0
- package/assets/provider-icons/antigravity.svg +39 -0
- package/assets/provider-icons/claude-code.png +0 -0
- package/assets/provider-icons/codebuddy.svg +37 -0
- package/assets/provider-icons/codex.png +0 -0
- package/assets/provider-icons/command-code.svg +5 -0
- package/assets/provider-icons/cursor-cli.svg +1 -0
- package/assets/provider-icons/deepseek-harness.svg +9 -0
- package/assets/provider-icons/doubao.png +0 -0
- package/assets/provider-icons/gemini.png +0 -0
- package/assets/provider-icons/grok.png +0 -0
- package/assets/provider-icons/kimi.png +0 -0
- package/assets/provider-icons/kiro-cli.svg +11 -0
- package/assets/provider-icons/minimax-code.svg +4 -0
- package/assets/provider-icons/opencode.png +0 -0
- package/assets/provider-icons/pi.svg +7 -0
- package/assets/provider-icons/qoder-cn.svg +5 -0
- package/assets/provider-icons/qoder.svg +5 -0
- package/assets/provider-icons/r4.svg +4 -0
- package/assets/provider-icons/workbuddy.svg +29 -0
- package/assets/provider-icons/zcode.svg +14 -0
- package/bin/agent-door-credential.mjs +92 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +97 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js +169 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js.map +1 -0
- package/data/build/dist/bootstrap/index.d.ts +38 -0
- package/data/build/dist/bootstrap/index.d.ts.map +1 -0
- package/data/build/dist/bootstrap/index.js +44 -0
- package/data/build/dist/bootstrap/index.js.map +1 -0
- package/data/build/dist/client/account-bar.d.ts +14 -0
- package/data/build/dist/client/account-bar.d.ts.map +1 -0
- package/data/build/dist/client/account-bar.js +541 -0
- package/data/build/dist/client/account-bar.js.map +1 -0
- package/data/build/dist/client/adapter-catalog-watch.d.ts +16 -0
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -0
- package/data/build/dist/client/adapter-catalog-watch.js +91 -0
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -0
- package/data/build/dist/client/bundle.js +67698 -0
- package/data/build/dist/client/bundle.js.map +1 -0
- package/data/build/dist/client/cli-catalog.d.ts +29 -0
- package/data/build/dist/client/cli-catalog.d.ts.map +1 -0
- package/data/build/dist/client/cli-catalog.js +148 -0
- package/data/build/dist/client/cli-catalog.js.map +1 -0
- package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
- package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-dialog.js +215 -0
- package/data/build/dist/client/cli-management-dialog.js.map +1 -0
- package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
- package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-terminal.js +30 -0
- package/data/build/dist/client/cli-management-terminal.js.map +1 -0
- package/data/build/dist/client/cli-session-config-cache.d.ts +17 -0
- package/data/build/dist/client/cli-session-config-cache.d.ts.map +1 -0
- package/data/build/dist/client/cli-session-config-cache.js +62 -0
- package/data/build/dist/client/cli-session-config-cache.js.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.js +45 -0
- package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
- package/data/build/dist/client/cli-slots.d.ts +64 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -0
- package/data/build/dist/client/cli-slots.js +985 -0
- package/data/build/dist/client/cli-slots.js.map +1 -0
- package/data/build/dist/client/client.command-token.js +32 -0
- package/data/build/dist/client/client.command-token.js.map +1 -0
- package/data/build/dist/client/client.delegate-command.js +1314 -0
- package/data/build/dist/client/client.delegate-command.js.map +1 -0
- package/data/build/dist/client/client.editor-engine.js +32557 -0
- package/data/build/dist/client/client.editor-engine.js.map +1 -0
- package/data/build/dist/client/client.primitives-adapter.js +3740 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -0
- package/data/build/dist/client/client.rolldown-runtime.js +58 -0
- package/data/build/dist/client/client.xterm-engine.js +13061 -0
- package/data/build/dist/client/client.xterm-engine.js.map +1 -0
- package/data/build/dist/client/command-token.d.ts +13 -0
- package/data/build/dist/client/command-token.d.ts.map +1 -0
- package/data/build/dist/client/command-token.js +14 -0
- package/data/build/dist/client/command-token.js.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.d.ts +53 -0
- package/data/build/dist/client/context-breakdown-dom.d.ts.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.js +171 -0
- package/data/build/dist/client/context-breakdown-dom.js.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.js +60 -0
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
- package/data/build/dist/client/credential-reference.d.ts +14 -0
- package/data/build/dist/client/credential-reference.d.ts.map +1 -0
- package/data/build/dist/client/credential-reference.js +268 -0
- package/data/build/dist/client/credential-reference.js.map +1 -0
- package/data/build/dist/client/credential-ui-dom.d.ts +18 -0
- package/data/build/dist/client/credential-ui-dom.d.ts.map +1 -0
- package/data/build/dist/client/credential-ui-dom.js +191 -0
- package/data/build/dist/client/credential-ui-dom.js.map +1 -0
- package/data/build/dist/client/credentials-settings-section.d.ts +10 -0
- package/data/build/dist/client/credentials-settings-section.d.ts.map +1 -0
- package/data/build/dist/client/credentials-settings-section.js +204 -0
- package/data/build/dist/client/credentials-settings-section.js.map +1 -0
- package/data/build/dist/client/debug/ui.d.ts +13 -0
- package/data/build/dist/client/debug/ui.d.ts.map +1 -0
- package/data/build/dist/client/debug/ui.js +499 -0
- package/data/build/dist/client/debug/ui.js.map +1 -0
- package/data/build/dist/client/delegate-command.d.ts +17 -0
- package/data/build/dist/client/delegate-command.d.ts.map +1 -0
- package/data/build/dist/client/delegate-command.js +616 -0
- package/data/build/dist/client/delegate-command.js.map +1 -0
- package/data/build/dist/client/delegate-plan.d.ts +40 -0
- package/data/build/dist/client/delegate-plan.d.ts.map +1 -0
- package/data/build/dist/client/delegate-plan.js +63 -0
- package/data/build/dist/client/delegate-plan.js.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts +86 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.js +647 -0
- package/data/build/dist/client/delegate-ui-dom.js.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts +66 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +372 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts +4 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.js +11 -0
- package/data/build/dist/client/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/client/editor-engine.d.ts +4 -0
- package/data/build/dist/client/editor-engine.d.ts.map +1 -0
- package/data/build/dist/client/editor-engine.js +53 -0
- package/data/build/dist/client/editor-engine.js.map +1 -0
- package/data/build/dist/client/engine-loader.d.ts +5 -0
- package/data/build/dist/client/engine-loader.d.ts.map +1 -0
- package/data/build/dist/client/engine-loader.js +35 -0
- package/data/build/dist/client/engine-loader.js.map +1 -0
- package/data/build/dist/client/external-tool-stream.d.ts +24 -0
- package/data/build/dist/client/external-tool-stream.d.ts.map +1 -0
- package/data/build/dist/client/external-tool-stream.js +123 -0
- package/data/build/dist/client/external-tool-stream.js.map +1 -0
- package/data/build/dist/client/features/cli-adapters.d.ts +14 -0
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -0
- package/data/build/dist/client/features/cli-adapters.js +456 -0
- package/data/build/dist/client/features/cli-adapters.js.map +1 -0
- package/data/build/dist/client/features/credentials.d.ts +3 -0
- package/data/build/dist/client/features/credentials.d.ts.map +1 -0
- package/data/build/dist/client/features/credentials.js +96 -0
- package/data/build/dist/client/features/credentials.js.map +1 -0
- package/data/build/dist/client/features/debug.d.ts +4 -0
- package/data/build/dist/client/features/debug.d.ts.map +1 -0
- package/data/build/dist/client/features/debug.js +26 -0
- package/data/build/dist/client/features/debug.js.map +1 -0
- package/data/build/dist/client/features/file-management-panel.d.ts +5 -0
- package/data/build/dist/client/features/file-management-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management-panel.js +41 -0
- package/data/build/dist/client/features/file-management-panel.js.map +1 -0
- package/data/build/dist/client/features/file-management.d.ts +4 -0
- package/data/build/dist/client/features/file-management.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management.js +92 -0
- package/data/build/dist/client/features/file-management.js.map +1 -0
- package/data/build/dist/client/features/index.d.ts +41 -0
- package/data/build/dist/client/features/index.d.ts.map +1 -0
- package/data/build/dist/client/features/index.js +63 -0
- package/data/build/dist/client/features/index.js.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts +5 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.js +225 -0
- package/data/build/dist/client/features/lan-access-panel.js.map +1 -0
- package/data/build/dist/client/features/lan-access-status.d.ts +40 -0
- package/data/build/dist/client/features/lan-access-status.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-status.js +118 -0
- package/data/build/dist/client/features/lan-access-status.js.map +1 -0
- package/data/build/dist/client/features/lan-access.d.ts +12 -0
- package/data/build/dist/client/features/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access.js +62 -0
- package/data/build/dist/client/features/lan-access.js.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts +5 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.js +96 -0
- package/data/build/dist/client/features/login-protection-panel.js.map +1 -0
- package/data/build/dist/client/features/login-protection-session.d.ts +8 -0
- package/data/build/dist/client/features/login-protection-session.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-session.js +43 -0
- package/data/build/dist/client/features/login-protection-session.js.map +1 -0
- package/data/build/dist/client/features/login-protection.d.ts +4 -0
- package/data/build/dist/client/features/login-protection.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection.js +23 -0
- package/data/build/dist/client/features/login-protection.js.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts +12 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.js +256 -0
- package/data/build/dist/client/features/mobile-access-panel.js.map +1 -0
- package/data/build/dist/client/features/mobile-access.d.ts +10 -0
- package/data/build/dist/client/features/mobile-access.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access.js +66 -0
- package/data/build/dist/client/features/mobile-access.js.map +1 -0
- package/data/build/dist/client/features/plugin-update.d.ts +3 -0
- package/data/build/dist/client/features/plugin-update.d.ts.map +1 -0
- package/data/build/dist/client/features/plugin-update.js +14 -0
- package/data/build/dist/client/features/plugin-update.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts +9 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js +269 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts +11 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.js +183 -0
- package/data/build/dist/client/features/reverse-proxy.js.map +1 -0
- package/data/build/dist/client/features/session-translation.d.ts +3 -0
- package/data/build/dist/client/features/session-translation.d.ts.map +1 -0
- package/data/build/dist/client/features/session-translation.js +124 -0
- package/data/build/dist/client/features/session-translation.js.map +1 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts +9 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js +28 -0
- package/data/build/dist/client/features/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts +15 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.js +118 -0
- package/data/build/dist/client/features/subscription-usage-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js +169 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.js +30 -0
- package/data/build/dist/client/features/terminal-enhancement.js.map +1 -0
- package/data/build/dist/client/features/types.d.ts +99 -0
- package/data/build/dist/client/features/types.d.ts.map +1 -0
- package/data/build/dist/client/features/types.js +2 -0
- package/data/build/dist/client/features/types.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +121 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js +278 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -0
- package/data/build/dist/client/file-management-context-menu.d.ts +10 -0
- package/data/build/dist/client/file-management-context-menu.d.ts.map +1 -0
- package/data/build/dist/client/file-management-context-menu.js +178 -0
- package/data/build/dist/client/file-management-context-menu.js.map +1 -0
- package/data/build/dist/client/file-management-dom.d.ts +40 -0
- package/data/build/dist/client/file-management-dom.d.ts.map +1 -0
- package/data/build/dist/client/file-management-dom.js +660 -0
- package/data/build/dist/client/file-management-dom.js.map +1 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts +27 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts.map +1 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js +101 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js.map +1 -0
- package/data/build/dist/client/font-scale.d.ts +37 -0
- package/data/build/dist/client/font-scale.d.ts.map +1 -0
- package/data/build/dist/client/font-scale.js +56 -0
- package/data/build/dist/client/font-scale.js.map +1 -0
- package/data/build/dist/client/git-history-graph.d.ts +81 -0
- package/data/build/dist/client/git-history-graph.d.ts.map +1 -0
- package/data/build/dist/client/git-history-graph.js +195 -0
- package/data/build/dist/client/git-history-graph.js.map +1 -0
- package/data/build/dist/client/git-management-settings.d.ts +4 -0
- package/data/build/dist/client/git-management-settings.d.ts.map +1 -0
- package/data/build/dist/client/git-management-settings.js +73 -0
- package/data/build/dist/client/git-management-settings.js.map +1 -0
- package/data/build/dist/client/git-management.d.ts +24 -0
- package/data/build/dist/client/git-management.d.ts.map +1 -0
- package/data/build/dist/client/git-management.js +1209 -0
- package/data/build/dist/client/git-management.js.map +1 -0
- package/data/build/dist/client/git-panel-styles.d.ts +32 -0
- package/data/build/dist/client/git-panel-styles.d.ts.map +1 -0
- package/data/build/dist/client/git-panel-styles.js +110 -0
- package/data/build/dist/client/git-panel-styles.js.map +1 -0
- package/data/build/dist/client/git-workspace-events.d.ts +7 -0
- package/data/build/dist/client/git-workspace-events.d.ts.map +1 -0
- package/data/build/dist/client/git-workspace-events.js +32 -0
- package/data/build/dist/client/git-workspace-events.js.map +1 -0
- package/data/build/dist/client/git-worktree-selection.d.ts +89 -0
- package/data/build/dist/client/git-worktree-selection.d.ts.map +1 -0
- package/data/build/dist/client/git-worktree-selection.js +121 -0
- package/data/build/dist/client/git-worktree-selection.js.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts +2 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.js +17 -0
- package/data/build/dist/client/h5-bootstrap-entry.js.map +1 -0
- package/data/build/dist/client/html-workspace-files.d.ts +4 -0
- package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/client/html-workspace-files.js +114 -0
- package/data/build/dist/client/html-workspace-files.js.map +1 -0
- package/data/build/dist/client/index.d.ts +39 -0
- package/data/build/dist/client/index.d.ts.map +1 -0
- package/data/build/dist/client/index.js +249 -0
- package/data/build/dist/client/index.js.map +1 -0
- package/data/build/dist/client/lan-access.d.ts +28 -0
- package/data/build/dist/client/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/lan-access.js +68 -0
- package/data/build/dist/client/lan-access.js.map +1 -0
- package/data/build/dist/client/locale.d.ts +27 -0
- package/data/build/dist/client/locale.d.ts.map +1 -0
- package/data/build/dist/client/locale.js +845 -0
- package/data/build/dist/client/locale.js.map +1 -0
- package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
- package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
- package/data/build/dist/client/locales/cliManagement.js +155 -0
- package/data/build/dist/client/locales/cliManagement.js.map +1 -0
- package/data/build/dist/client/locales/credentials.d.ts +3 -0
- package/data/build/dist/client/locales/credentials.d.ts.map +1 -0
- package/data/build/dist/client/locales/credentials.js +93 -0
- package/data/build/dist/client/locales/credentials.js.map +1 -0
- package/data/build/dist/client/locales/debug.d.ts +9 -0
- package/data/build/dist/client/locales/debug.d.ts.map +1 -0
- package/data/build/dist/client/locales/debug.js +163 -0
- package/data/build/dist/client/locales/debug.js.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts +9 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.js +153 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -0
- package/data/build/dist/client/locales/git.d.ts +9 -0
- package/data/build/dist/client/locales/git.d.ts.map +1 -0
- package/data/build/dist/client/locales/git.js +263 -0
- package/data/build/dist/client/locales/git.js.map +1 -0
- package/data/build/dist/client/locales/nativeApproval.d.ts +3 -0
- package/data/build/dist/client/locales/nativeApproval.d.ts.map +1 -0
- package/data/build/dist/client/locales/nativeApproval.js +51 -0
- package/data/build/dist/client/locales/nativeApproval.js.map +1 -0
- package/data/build/dist/client/locales/panels.d.ts +9 -0
- package/data/build/dist/client/locales/panels.d.ts.map +1 -0
- package/data/build/dist/client/locales/panels.js +251 -0
- package/data/build/dist/client/locales/panels.js.map +1 -0
- package/data/build/dist/client/locales/pluginUpdate.d.ts +3 -0
- package/data/build/dist/client/locales/pluginUpdate.d.ts.map +1 -0
- package/data/build/dist/client/locales/pluginUpdate.js +131 -0
- package/data/build/dist/client/locales/pluginUpdate.js.map +1 -0
- package/data/build/dist/client/locales/subagentCollapsed.d.ts +53 -0
- package/data/build/dist/client/locales/subagentCollapsed.d.ts.map +1 -0
- package/data/build/dist/client/locales/subagentCollapsed.js +95 -0
- package/data/build/dist/client/locales/subagentCollapsed.js.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts +9 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.js +153 -0
- package/data/build/dist/client/locales/terminalAuth.js.map +1 -0
- package/data/build/dist/client/locales/usage.d.ts +9 -0
- package/data/build/dist/client/locales/usage.d.ts.map +1 -0
- package/data/build/dist/client/locales/usage.js +311 -0
- package/data/build/dist/client/locales/usage.js.map +1 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts +29 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.js +93 -0
- package/data/build/dist/client/mobile-rightbar-tabs-dom.js.map +1 -0
- package/data/build/dist/client/mobile-rightbar-visibility.d.ts +32 -0
- package/data/build/dist/client/mobile-rightbar-visibility.d.ts.map +1 -0
- package/data/build/dist/client/mobile-rightbar-visibility.js +188 -0
- package/data/build/dist/client/mobile-rightbar-visibility.js.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts +43 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.js +227 -0
- package/data/build/dist/client/mobile-session-interaction.js.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts +49 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js +152 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts +149 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js +623 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts +18 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.js +15 -0
- package/data/build/dist/client/mobile-sidebar-logo.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts +114 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js +452 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
- package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
- package/data/build/dist/client/mobile-vibration.d.ts +16 -0
- package/data/build/dist/client/mobile-vibration.d.ts.map +1 -0
- package/data/build/dist/client/mobile-vibration.js +20 -0
- package/data/build/dist/client/mobile-vibration.js.map +1 -0
- package/data/build/dist/client/model-catalog-cache.d.ts +28 -0
- package/data/build/dist/client/model-catalog-cache.d.ts.map +1 -0
- package/data/build/dist/client/model-catalog-cache.js +158 -0
- package/data/build/dist/client/model-catalog-cache.js.map +1 -0
- package/data/build/dist/client/model-priority-pool.d.ts +23 -0
- package/data/build/dist/client/model-priority-pool.d.ts.map +1 -0
- package/data/build/dist/client/model-priority-pool.js +245 -0
- package/data/build/dist/client/model-priority-pool.js.map +1 -0
- package/data/build/dist/client/native-approval-selector.d.ts +22 -0
- package/data/build/dist/client/native-approval-selector.d.ts.map +1 -0
- package/data/build/dist/client/native-approval-selector.js +39 -0
- package/data/build/dist/client/native-approval-selector.js.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts +6 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.js +62 -0
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -0
- package/data/build/dist/client/native-translation-default.d.ts +6 -0
- package/data/build/dist/client/native-translation-default.d.ts.map +1 -0
- package/data/build/dist/client/native-translation-default.js +30 -0
- package/data/build/dist/client/native-translation-default.js.map +1 -0
- package/data/build/dist/client/native-workspace-store.d.ts +29 -0
- package/data/build/dist/client/native-workspace-store.d.ts.map +1 -0
- package/data/build/dist/client/native-workspace-store.js +75 -0
- package/data/build/dist/client/native-workspace-store.js.map +1 -0
- package/data/build/dist/client/popup-dismiss.d.ts +48 -0
- package/data/build/dist/client/popup-dismiss.d.ts.map +1 -0
- package/data/build/dist/client/popup-dismiss.js +93 -0
- package/data/build/dist/client/popup-dismiss.js.map +1 -0
- package/data/build/dist/client/provider-icon-assets.d.ts +2 -0
- package/data/build/dist/client/provider-icon-assets.d.ts.map +1 -0
- package/data/build/dist/client/provider-icon-assets.js +7 -0
- package/data/build/dist/client/provider-icon-assets.js.map +1 -0
- package/data/build/dist/client/provider-icon-bridge.d.ts +6 -0
- package/data/build/dist/client/provider-icon-bridge.d.ts.map +1 -0
- package/data/build/dist/client/provider-icon-bridge.js +65 -0
- package/data/build/dist/client/provider-icon-bridge.js.map +1 -0
- package/data/build/dist/client/provider-icons.d.ts +43 -0
- package/data/build/dist/client/provider-icons.d.ts.map +1 -0
- package/data/build/dist/client/provider-icons.js +185 -0
- package/data/build/dist/client/provider-icons.js.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts +76 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.js +179 -0
- package/data/build/dist/client/pwa-install-prompt.js.map +1 -0
- package/data/build/dist/client/pwa-notifications.d.ts +105 -0
- package/data/build/dist/client/pwa-notifications.d.ts.map +1 -0
- package/data/build/dist/client/pwa-notifications.js +192 -0
- package/data/build/dist/client/pwa-notifications.js.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts +60 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.js +115 -0
- package/data/build/dist/client/quick-phrase-layout.js.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts +7 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.js +405 -0
- package/data/build/dist/client/quick-phrase-slot.js.map +1 -0
- package/data/build/dist/client/remote-web-context.d.ts +59 -0
- package/data/build/dist/client/remote-web-context.d.ts.map +1 -0
- package/data/build/dist/client/remote-web-context.js +1037 -0
- package/data/build/dist/client/remote-web-context.js.map +1 -0
- package/data/build/dist/client/rpc-call.d.ts +4 -0
- package/data/build/dist/client/rpc-call.d.ts.map +1 -0
- package/data/build/dist/client/rpc-call.js +23 -0
- package/data/build/dist/client/rpc-call.js.map +1 -0
- package/data/build/dist/client/serial-polling.d.ts +16 -0
- package/data/build/dist/client/serial-polling.d.ts.map +1 -0
- package/data/build/dist/client/serial-polling.js +50 -0
- package/data/build/dist/client/serial-polling.js.map +1 -0
- package/data/build/dist/client/service-tier.d.ts +65 -0
- package/data/build/dist/client/service-tier.d.ts.map +1 -0
- package/data/build/dist/client/service-tier.js +93 -0
- package/data/build/dist/client/service-tier.js.map +1 -0
- package/data/build/dist/client/session-adapter-cache.d.ts +20 -0
- package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -0
- package/data/build/dist/client/session-adapter-cache.js +105 -0
- package/data/build/dist/client/session-adapter-cache.js.map +1 -0
- package/data/build/dist/client/session-changed-files-view.d.ts +37 -0
- package/data/build/dist/client/session-changed-files-view.d.ts.map +1 -0
- package/data/build/dist/client/session-changed-files-view.js +528 -0
- package/data/build/dist/client/session-changed-files-view.js.map +1 -0
- package/data/build/dist/client/session-file-links.d.ts +11 -0
- package/data/build/dist/client/session-file-links.d.ts.map +1 -0
- package/data/build/dist/client/session-file-links.js +52 -0
- package/data/build/dist/client/session-file-links.js.map +1 -0
- package/data/build/dist/client/session-translation-chat.d.ts +73 -0
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-chat.js +889 -0
- package/data/build/dist/client/session-translation-chat.js.map +1 -0
- package/data/build/dist/client/session-translation-interactions.d.ts +40 -0
- package/data/build/dist/client/session-translation-interactions.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-interactions.js +222 -0
- package/data/build/dist/client/session-translation-interactions.js.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts +8 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.js +58 -0
- package/data/build/dist/client/session-translation-pending-dom.js.map +1 -0
- package/data/build/dist/client/session-translation-retry.d.ts +16 -0
- package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-retry.js +67 -0
- package/data/build/dist/client/session-translation-retry.js.map +1 -0
- package/data/build/dist/client/session-translation-rules.d.ts +13 -0
- package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-rules.js +58 -0
- package/data/build/dist/client/session-translation-rules.js.map +1 -0
- package/data/build/dist/client/settings-anchor.d.ts +73 -0
- package/data/build/dist/client/settings-anchor.d.ts.map +1 -0
- package/data/build/dist/client/settings-anchor.js +70 -0
- package/data/build/dist/client/settings-anchor.js.map +1 -0
- package/data/build/dist/client/settings-bridge.d.ts +62 -0
- package/data/build/dist/client/settings-bridge.d.ts.map +1 -0
- package/data/build/dist/client/settings-bridge.js +247 -0
- package/data/build/dist/client/settings-bridge.js.map +1 -0
- package/data/build/dist/client/settings-controls.d.ts +29 -0
- package/data/build/dist/client/settings-controls.d.ts.map +1 -0
- package/data/build/dist/client/settings-controls.js +80 -0
- package/data/build/dist/client/settings-controls.js.map +1 -0
- package/data/build/dist/client/settings-promo-styles.d.ts +33 -0
- package/data/build/dist/client/settings-promo-styles.d.ts.map +1 -0
- package/data/build/dist/client/settings-promo-styles.js +71 -0
- package/data/build/dist/client/settings-promo-styles.js.map +1 -0
- package/data/build/dist/client/settings-promo.d.ts +16 -0
- package/data/build/dist/client/settings-promo.d.ts.map +1 -0
- package/data/build/dist/client/settings-promo.js +68 -0
- package/data/build/dist/client/settings-promo.js.map +1 -0
- package/data/build/dist/client/settings-section.d.ts +31 -0
- package/data/build/dist/client/settings-section.d.ts.map +1 -0
- package/data/build/dist/client/settings-section.js +140 -0
- package/data/build/dist/client/settings-section.js.map +1 -0
- package/data/build/dist/client/settings-update.d.ts +8 -0
- package/data/build/dist/client/settings-update.d.ts.map +1 -0
- package/data/build/dist/client/settings-update.js +57 -0
- package/data/build/dist/client/settings-update.js.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts +11 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.js +6 -0
- package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
- package/data/build/dist/client/skill-command.d.ts +10 -0
- package/data/build/dist/client/skill-command.d.ts.map +1 -0
- package/data/build/dist/client/skill-command.js +282 -0
- package/data/build/dist/client/skill-command.js.map +1 -0
- package/data/build/dist/client/skill-reference-dom.d.ts +38 -0
- package/data/build/dist/client/skill-reference-dom.d.ts.map +1 -0
- package/data/build/dist/client/skill-reference-dom.js +187 -0
- package/data/build/dist/client/skill-reference-dom.js.map +1 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts +103 -0
- package/data/build/dist/client/subagent-collapsed-lineage.d.ts.map +1 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js +664 -0
- package/data/build/dist/client/subagent-collapsed-lineage.js.map +1 -0
- package/data/build/dist/client/subscription-slot.d.ts +49 -0
- package/data/build/dist/client/subscription-slot.d.ts.map +1 -0
- package/data/build/dist/client/subscription-slot.js +936 -0
- package/data/build/dist/client/subscription-slot.js.map +1 -0
- package/data/build/dist/client/terminal/index.d.ts +4 -0
- package/data/build/dist/client/terminal/index.d.ts.map +1 -0
- package/data/build/dist/client/terminal/index.js +3 -0
- package/data/build/dist/client/terminal/index.js.map +1 -0
- package/data/build/dist/client/terminal/log-preview.d.ts +14 -0
- package/data/build/dist/client/terminal/log-preview.d.ts.map +1 -0
- package/data/build/dist/client/terminal/log-preview.js +23 -0
- package/data/build/dist/client/terminal/log-preview.js.map +1 -0
- package/data/build/dist/client/terminal/model.d.ts +287 -0
- package/data/build/dist/client/terminal/model.d.ts.map +1 -0
- package/data/build/dist/client/terminal/model.js +1166 -0
- package/data/build/dist/client/terminal/model.js.map +1 -0
- package/data/build/dist/client/terminal/recovery.d.ts +69 -0
- package/data/build/dist/client/terminal/recovery.d.ts.map +1 -0
- package/data/build/dist/client/terminal/recovery.js +167 -0
- package/data/build/dist/client/terminal/recovery.js.map +1 -0
- package/data/build/dist/client/terminal/selection-actions.d.ts +63 -0
- package/data/build/dist/client/terminal/selection-actions.d.ts.map +1 -0
- package/data/build/dist/client/terminal/selection-actions.js +132 -0
- package/data/build/dist/client/terminal/selection-actions.js.map +1 -0
- package/data/build/dist/client/terminal/share-menu.d.ts +17 -0
- package/data/build/dist/client/terminal/share-menu.d.ts.map +1 -0
- package/data/build/dist/client/terminal/share-menu.js +131 -0
- package/data/build/dist/client/terminal/share-menu.js.map +1 -0
- package/data/build/dist/client/terminal/sharing.d.ts +42 -0
- package/data/build/dist/client/terminal/sharing.d.ts.map +1 -0
- package/data/build/dist/client/terminal/sharing.js +144 -0
- package/data/build/dist/client/terminal/sharing.js.map +1 -0
- package/data/build/dist/client/terminal/snapshot.d.ts +32 -0
- package/data/build/dist/client/terminal/snapshot.d.ts.map +1 -0
- package/data/build/dist/client/terminal/snapshot.js +108 -0
- package/data/build/dist/client/terminal/snapshot.js.map +1 -0
- package/data/build/dist/client/terminal/styles.d.ts +53 -0
- package/data/build/dist/client/terminal/styles.d.ts.map +1 -0
- package/data/build/dist/client/terminal/styles.js +134 -0
- package/data/build/dist/client/terminal/styles.js.map +1 -0
- package/data/build/dist/client/terminal/surface-cache.d.ts +10 -0
- package/data/build/dist/client/terminal/surface-cache.d.ts.map +1 -0
- package/data/build/dist/client/terminal/surface-cache.js +19 -0
- package/data/build/dist/client/terminal/surface-cache.js.map +1 -0
- package/data/build/dist/client/terminal/ui.d.ts +20 -0
- package/data/build/dist/client/terminal/ui.d.ts.map +1 -0
- package/data/build/dist/client/terminal/ui.js +618 -0
- package/data/build/dist/client/terminal/ui.js.map +1 -0
- package/data/build/dist/client/terminal/xterm-engine.d.ts +4 -0
- package/data/build/dist/client/terminal/xterm-engine.d.ts.map +1 -0
- package/data/build/dist/client/terminal/xterm-engine.js +5 -0
- package/data/build/dist/client/terminal/xterm-engine.js.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts +23 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.js +790 -0
- package/data/build/dist/client/terminal/xterm-view.js.map +1 -0
- package/data/build/dist/client/theme.d.ts +75 -0
- package/data/build/dist/client/theme.d.ts.map +1 -0
- package/data/build/dist/client/theme.js +247 -0
- package/data/build/dist/client/theme.js.map +1 -0
- package/data/build/dist/client/touch-input-focus.d.ts +30 -0
- package/data/build/dist/client/touch-input-focus.d.ts.map +1 -0
- package/data/build/dist/client/touch-input-focus.js +209 -0
- package/data/build/dist/client/touch-input-focus.js.map +1 -0
- package/data/build/dist/client/update-panel-styles.d.ts +29 -0
- package/data/build/dist/client/update-panel-styles.d.ts.map +1 -0
- package/data/build/dist/client/update-panel-styles.js +69 -0
- package/data/build/dist/client/update-panel-styles.js.map +1 -0
- package/data/build/dist/client/update-panel.d.ts +7 -0
- package/data/build/dist/client/update-panel.d.ts.map +1 -0
- package/data/build/dist/client/update-panel.js +52 -0
- package/data/build/dist/client/update-panel.js.map +1 -0
- package/data/build/dist/client/update-store.d.ts +43 -0
- package/data/build/dist/client/update-store.d.ts.map +1 -0
- package/data/build/dist/client/update-store.js +207 -0
- package/data/build/dist/client/update-store.js.map +1 -0
- package/data/build/dist/client/workspace-activity-dom.d.ts +8 -0
- package/data/build/dist/client/workspace-activity-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-activity-dom.js +140 -0
- package/data/build/dist/client/workspace-activity-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +58 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +749 -0
- package/data/build/dist/client/workspace-session-archive-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts +3 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.js +33 -0
- package/data/build/dist/client/workspace-session-fiber.js.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts +29 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.js +130 -0
- package/data/build/dist/client/workspace-session-logo-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts +28 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.js +282 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts +39 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js +712 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js +18 -0
- package/data/build/dist/dsh-capabilities/client/agent-permission-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js +71 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts +64 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js +162 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts +22 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js +33 -0
- package/data/build/dist/dsh-capabilities/client/context-menu-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js +6 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts +27 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js +109 -0
- package/data/build/dist/dsh-capabilities/client/global-panel-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts +33 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +99 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts +12 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +181 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts +9 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +49 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js +6 -0
- package/data/build/dist/dsh-capabilities/client/plugin-reload-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +76 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +180 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts +20 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js +65 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +9 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +79 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts +14 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js +39 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js +5 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts +32 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +90 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts +33 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js +186 -0
- package/data/build/dist/dsh-capabilities/client/terminal-sharing-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts +5 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +81 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +237 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts +12 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js +10 -0
- package/data/build/dist/dsh-capabilities/host/attachment-store-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts +40 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js +71 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +24 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js +13 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts +27 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js +101 -0
- package/data/build/dist/dsh-capabilities/host/llm-text-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts +23 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js +79 -0
- package/data/build/dist/dsh-capabilities/host/plugin-update-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts +16 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js +94 -0
- package/data/build/dist/dsh-capabilities/host/session-compaction-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +24 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +106 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +27 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +29 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +65 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts +11 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js +229 -0
- package/data/build/dist/dsh-capabilities/host/session-title-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js +47 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts +28 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js +123 -0
- package/data/build/dist/dsh-capabilities/host/sidebar-session-compat.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js +4 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/index.d.ts +6 -0
- package/data/build/dist/dsh-capabilities/index.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/index.js +6 -0
- package/data/build/dist/dsh-capabilities/index.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.js +91 -0
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts +22 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.js +200 -0
- package/data/build/dist/dsh-capabilities/registry.js.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.js +307 -0
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts +43 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.js +39 -0
- package/data/build/dist/dsh-capabilities/settings-store.js.map +1 -0
- package/data/build/dist/dsh-capabilities/types.d.ts +50 -0
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/types.js +23 -0
- package/data/build/dist/dsh-capabilities/types.js.map +1 -0
- package/data/build/dist/features/index.d.ts +3 -0
- package/data/build/dist/features/index.d.ts.map +1 -0
- package/data/build/dist/features/index.js +2 -0
- package/data/build/dist/features/index.js.map +1 -0
- package/data/build/dist/features/registry.d.ts +87 -0
- package/data/build/dist/features/registry.d.ts.map +1 -0
- package/data/build/dist/features/registry.js +525 -0
- package/data/build/dist/features/registry.js.map +1 -0
- package/data/build/dist/host/auth-session.d.ts +49 -0
- package/data/build/dist/host/auth-session.d.ts.map +1 -0
- package/data/build/dist/host/auth-session.js +208 -0
- package/data/build/dist/host/auth-session.js.map +1 -0
- package/data/build/dist/host/browser-text.d.ts +30 -0
- package/data/build/dist/host/browser-text.d.ts.map +1 -0
- package/data/build/dist/host/browser-text.js +119 -0
- package/data/build/dist/host/browser-text.js.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +156 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js +705 -0
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts +31 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.js +144 -0
- package/data/build/dist/host/cli-adapters/acp-elicitation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts +96 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.js +608 -0
- package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/antigravity-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts +122 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.js +545 -0
- package/data/build/dist/host/cli-adapters/antigravity-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.js +75 -0
- package/data/build/dist/host/cli-adapters/antigravity-updater.js.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +26 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js +189 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/binary-detection.js +75 -0
- package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +88 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +815 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js +109 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/claude-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/claude-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-performance.js +66 -0
- package/data/build/dist/host/cli-adapters/claude-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/claude-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-process.js +59 -0
- package/data/build/dist/host/cli-adapters/claude-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts +148 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js +1958 -0
- package/data/build/dist/host/cli-adapters/codebuddy-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts +53 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.js +778 -0
- package/data/build/dist/host/cli-adapters/codebuddy-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +155 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +2226 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js +271 -0
- package/data/build/dist/host/cli-adapters/codex-file-citations.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +179 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +135 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +2098 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-history.d.ts +174 -0
- package/data/build/dist/host/cli-adapters/command-code-history.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-history.js +789 -0
- package/data/build/dist/host/cli-adapters/command-code-history.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js +132 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.js +91 -0
- package/data/build/dist/host/cli-adapters/cursor-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts +67 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js +169 -0
- package/data/build/dist/host/cli-adapters/custom-upstream-classifier.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts +49 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js +112 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.js +49 -0
- package/data/build/dist/host/cli-adapters/delegation-authorization.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts +36 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js +126 -0
- package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +157 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/doubao-app.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-app.js +281 -0
- package/data/build/dist/host/cli-adapters/doubao-app.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.js +142 -0
- package/data/build/dist/host/cli-adapters/doubao-artifact-store.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.js +34 -0
- package/data/build/dist/host/cli-adapters/doubao-artifacts.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts +49 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.js +177 -0
- package/data/build/dist/host/cli-adapters/doubao-cdp.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.d.ts +33 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.js +294 -0
- package/data/build/dist/host/cli-adapters/doubao-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-events.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/doubao-events.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-events.js +126 -0
- package/data/build/dist/host/cli-adapters/doubao-events.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.js +176 -0
- package/data/build/dist/host/cli-adapters/doubao-runtime.js.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.d.ts +8 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.js +139 -0
- package/data/build/dist/host/cli-adapters/doubao-tools.js.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts +82 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.js +2 -0
- package/data/build/dist/host/cli-adapters/driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/dsh-config.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js +153 -0
- package/data/build/dist/host/cli-adapters/dsh-config.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +73 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +514 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.js +34 -0
- package/data/build/dist/host/cli-adapters/dsh-model-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +52 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +528 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts +27 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +100 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts +28 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.js +2418 -0
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js +507 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js +1118 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js +99 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js +80 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +93 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +375 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +416 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.d.ts +12 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.js +18 -0
- package/data/build/dist/host/cli-adapters/kiro-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +28 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +142 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js +167 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js.map +1 -0
- package/data/build/dist/host/cli-adapters/log-files.d.ts +3 -0
- package/data/build/dist/host/cli-adapters/log-files.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/log-files.js +32 -0
- package/data/build/dist/host/cli-adapters/log-files.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
- package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
- package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.js +62 -0
- package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management.js +177 -0
- package/data/build/dist/host/cli-adapters/management.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts +23 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js +120 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts +60 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js +621 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +113 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js +526 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +159 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +566 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts +41 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js +140 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +175 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts +75 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.js +869 -0
- package/data/build/dist/host/cli-adapters/new-api-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts +29 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js +361 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +112 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +1270 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts +30 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +828 -0
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js +616 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.js +7 -0
- package/data/build/dist/host/cli-adapters/pi-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance.d.ts +15 -0
- package/data/build/dist/host/cli-adapters/pi-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-performance.js +94 -0
- package/data/build/dist/host/cli-adapters/pi-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +53 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.js +242 -0
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts +33 -0
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js +83 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +189 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +1616 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.d.ts +86 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.js +707 -0
- package/data/build/dist/host/cli-adapters/qoder-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts +36 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.js +207 -0
- package/data/build/dist/host/cli-adapters/qoder-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js +111 -0
- package/data/build/dist/host/cli-adapters/r4-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.js +79 -0
- package/data/build/dist/host/cli-adapters/reasoning-content.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js +9 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +194 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.js +1412 -0
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +120 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +80 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js +108 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts +20 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.js +139 -0
- package/data/build/dist/host/cli-adapters/session-probe.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +98 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.js +364 -0
- package/data/build/dist/host/cli-adapters/session-store.js.map +1 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.js +161 -0
- package/data/build/dist/host/cli-adapters/skill-filesystem.js.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +73 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +365 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +39 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +135 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js +38 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js +185 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -0
- package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/team-input.js +67 -0
- package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js +45 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.js +263 -0
- package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts +12 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.js +53 -0
- package/data/build/dist/host/cli-adapters/windows-command-environment.js.map +1 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js +212 -0
- package/data/build/dist/host/cli-adapters/workbuddy-credential-bootstrap.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts +10 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.js +84 -0
- package/data/build/dist/host/cli-adapters/zcode-credentials.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts +74 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js +1033 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.js +97 -0
- package/data/build/dist/host/cli-adapters/zcode-interactions.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts +29 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.js +147 -0
- package/data/build/dist/host/cli-adapters/zcode-provider-config.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts +23 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js +187 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.js +124 -0
- package/data/build/dist/host/cli-adapters/zcode-telemetry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +46 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js +98 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +56 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js +201 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts +52 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js +335 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts +19 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.js +199 -0
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts +34 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js +147 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts +119 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.js +491 -0
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +8 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +344 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js +9 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts +52 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js +315 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts +28 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js +177 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js +23 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +36 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js +243 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
- package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts +33 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.js +174 -0
- package/data/build/dist/host/cli-bridge/web-diagnostics.js.map +1 -0
- package/data/build/dist/host/control-api-client.d.ts +84 -0
- package/data/build/dist/host/control-api-client.d.ts.map +1 -0
- package/data/build/dist/host/control-api-client.js +131 -0
- package/data/build/dist/host/control-api-client.js.map +1 -0
- package/data/build/dist/host/credential-store.d.ts +54 -0
- package/data/build/dist/host/credential-store.d.ts.map +1 -0
- package/data/build/dist/host/credential-store.js +124 -0
- package/data/build/dist/host/credential-store.js.map +1 -0
- package/data/build/dist/host/credentials/broker.d.ts +73 -0
- package/data/build/dist/host/credentials/broker.d.ts.map +1 -0
- package/data/build/dist/host/credentials/broker.js +495 -0
- package/data/build/dist/host/credentials/broker.js.map +1 -0
- package/data/build/dist/host/credentials/index.d.ts +4 -0
- package/data/build/dist/host/credentials/index.d.ts.map +1 -0
- package/data/build/dist/host/credentials/index.js +4 -0
- package/data/build/dist/host/credentials/index.js.map +1 -0
- package/data/build/dist/host/credentials/service.d.ts +43 -0
- package/data/build/dist/host/credentials/service.d.ts.map +1 -0
- package/data/build/dist/host/credentials/service.js +432 -0
- package/data/build/dist/host/credentials/service.js.map +1 -0
- package/data/build/dist/host/credentials/store.d.ts +33 -0
- package/data/build/dist/host/credentials/store.d.ts.map +1 -0
- package/data/build/dist/host/credentials/store.js +238 -0
- package/data/build/dist/host/credentials/store.js.map +1 -0
- package/data/build/dist/host/credentials/tool.d.ts +3 -0
- package/data/build/dist/host/credentials/tool.d.ts.map +1 -0
- package/data/build/dist/host/credentials/tool.js +54 -0
- package/data/build/dist/host/credentials/tool.js.map +1 -0
- package/data/build/dist/host/debug.d.ts +79 -0
- package/data/build/dist/host/debug.d.ts.map +1 -0
- package/data/build/dist/host/debug.js +296 -0
- package/data/build/dist/host/debug.js.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts +45 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.js +155 -0
- package/data/build/dist/host/dsh-device-runtime.js.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts +5 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.js +78 -0
- package/data/build/dist/host/dsh-gateway-feature.js.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts +13 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.js +143 -0
- package/data/build/dist/host/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/host/features/auth.d.ts +11 -0
- package/data/build/dist/host/features/auth.d.ts.map +1 -0
- package/data/build/dist/host/features/auth.js +284 -0
- package/data/build/dist/host/features/auth.js.map +1 -0
- package/data/build/dist/host/features/credentials.d.ts +4 -0
- package/data/build/dist/host/features/credentials.d.ts.map +1 -0
- package/data/build/dist/host/features/credentials.js +90 -0
- package/data/build/dist/host/features/credentials.js.map +1 -0
- package/data/build/dist/host/features/debug.d.ts +5 -0
- package/data/build/dist/host/features/debug.d.ts.map +1 -0
- package/data/build/dist/host/features/debug.js +90 -0
- package/data/build/dist/host/features/debug.js.map +1 -0
- package/data/build/dist/host/features/file-management.d.ts +5 -0
- package/data/build/dist/host/features/file-management.d.ts.map +1 -0
- package/data/build/dist/host/features/file-management.js +282 -0
- package/data/build/dist/host/features/file-management.js.map +1 -0
- package/data/build/dist/host/features/git-commit-message.d.ts +5 -0
- package/data/build/dist/host/features/git-commit-message.d.ts.map +1 -0
- package/data/build/dist/host/features/git-commit-message.js +66 -0
- package/data/build/dist/host/features/git-commit-message.js.map +1 -0
- package/data/build/dist/host/features/git-management.d.ts +13 -0
- package/data/build/dist/host/features/git-management.d.ts.map +1 -0
- package/data/build/dist/host/features/git-management.js +576 -0
- package/data/build/dist/host/features/git-management.js.map +1 -0
- package/data/build/dist/host/features/host-status.d.ts +45 -0
- package/data/build/dist/host/features/host-status.d.ts.map +1 -0
- package/data/build/dist/host/features/host-status.js +122 -0
- package/data/build/dist/host/features/host-status.js.map +1 -0
- package/data/build/dist/host/features/index.d.ts +24 -0
- package/data/build/dist/host/features/index.d.ts.map +1 -0
- package/data/build/dist/host/features/index.js +46 -0
- package/data/build/dist/host/features/index.js.map +1 -0
- package/data/build/dist/host/features/interaction-translation.d.ts +10 -0
- package/data/build/dist/host/features/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/interaction-translation.js +222 -0
- package/data/build/dist/host/features/interaction-translation.js.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts +8 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.js +129 -0
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/features/plugin-update.d.ts +6 -0
- package/data/build/dist/host/features/plugin-update.d.ts.map +1 -0
- package/data/build/dist/host/features/plugin-update.js +51 -0
- package/data/build/dist/host/features/plugin-update.js.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts +10 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.js +236 -0
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
- package/data/build/dist/host/features/session-title-optimization.d.ts +5 -0
- package/data/build/dist/host/features/session-title-optimization.d.ts.map +1 -0
- package/data/build/dist/host/features/session-title-optimization.js +32 -0
- package/data/build/dist/host/features/session-title-optimization.js.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts +26 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.js +213 -0
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.js +123 -0
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts +23 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.js +62 -0
- package/data/build/dist/host/features/session-translation-runtime.js.map +1 -0
- package/data/build/dist/host/features/session-translation-service.d.ts +66 -0
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-service.js +664 -0
- package/data/build/dist/host/features/session-translation-service.js.map +1 -0
- package/data/build/dist/host/features/session-translation.d.ts +5 -0
- package/data/build/dist/host/features/session-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation.js +45 -0
- package/data/build/dist/host/features/session-translation.js.map +1 -0
- package/data/build/dist/host/features/terminal-process.d.ts +5 -0
- package/data/build/dist/host/features/terminal-process.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-process.js +110 -0
- package/data/build/dist/host/features/terminal-process.js.map +1 -0
- package/data/build/dist/host/features/terminal-status.d.ts +20 -0
- package/data/build/dist/host/features/terminal-status.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-status.js +58 -0
- package/data/build/dist/host/features/terminal-status.js.map +1 -0
- package/data/build/dist/host/features/types.d.ts +65 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -0
- package/data/build/dist/host/features/types.js +2 -0
- package/data/build/dist/host/features/types.js.map +1 -0
- package/data/build/dist/host/host-config.d.ts +17 -0
- package/data/build/dist/host/host-config.d.ts.map +1 -0
- package/data/build/dist/host/host-config.js +13 -0
- package/data/build/dist/host/host-config.js.map +1 -0
- package/data/build/dist/host/host-event-bridge.d.ts +11 -0
- package/data/build/dist/host/host-event-bridge.d.ts.map +1 -0
- package/data/build/dist/host/host-event-bridge.js +16 -0
- package/data/build/dist/host/host-event-bridge.js.map +1 -0
- package/data/build/dist/host/html-workspace-files.d.ts +3 -0
- package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/host/html-workspace-files.js +135 -0
- package/data/build/dist/host/html-workspace-files.js.map +1 -0
- package/data/build/dist/host/image-artifact-store.d.ts +21 -0
- package/data/build/dist/host/image-artifact-store.d.ts.map +1 -0
- package/data/build/dist/host/image-artifact-store.js +136 -0
- package/data/build/dist/host/image-artifact-store.js.map +1 -0
- package/data/build/dist/host/index-injection.d.ts +35 -0
- package/data/build/dist/host/index-injection.d.ts.map +1 -0
- package/data/build/dist/host/index-injection.js +78 -0
- package/data/build/dist/host/index-injection.js.map +1 -0
- package/data/build/dist/host/index.d.ts +64 -0
- package/data/build/dist/host/index.d.ts.map +1 -0
- package/data/build/dist/host/index.js +446 -0
- package/data/build/dist/host/index.js.map +1 -0
- package/data/build/dist/host/lan-access-dsh.d.ts +192 -0
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/lan-access-dsh.js +1322 -0
- package/data/build/dist/host/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/login-attempt-guard.d.ts +55 -0
- package/data/build/dist/host/login-attempt-guard.d.ts.map +1 -0
- package/data/build/dist/host/login-attempt-guard.js +201 -0
- package/data/build/dist/host/login-attempt-guard.js.map +1 -0
- package/data/build/dist/host/modules/pwa/index.d.ts +7 -0
- package/data/build/dist/host/modules/pwa/index.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/index.js +7 -0
- package/data/build/dist/host/modules/pwa/index.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts +50 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js +182 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js +40 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js +185 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts +74 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js +288 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts +17 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js +83 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts +12 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js +47 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +215 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -0
- package/data/build/dist/host/native-session-bridge.js +993 -0
- package/data/build/dist/host/native-session-bridge.js.map +1 -0
- package/data/build/dist/host/provider-icon-assets.d.ts +5 -0
- package/data/build/dist/host/provider-icon-assets.d.ts.map +1 -0
- package/data/build/dist/host/provider-icon-assets.js +61 -0
- package/data/build/dist/host/provider-icon-assets.js.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts +130 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.js +422 -0
- package/data/build/dist/host/relay-tunnel-runtime.js.map +1 -0
- package/data/build/dist/host/remote-web-runtime.d.ts +78 -0
- package/data/build/dist/host/remote-web-runtime.d.ts.map +1 -0
- package/data/build/dist/host/remote-web-runtime.js +607 -0
- package/data/build/dist/host/remote-web-runtime.js.map +1 -0
- package/data/build/dist/host/rpc-table.d.ts +32 -0
- package/data/build/dist/host/rpc-table.d.ts.map +1 -0
- package/data/build/dist/host/rpc-table.js +47 -0
- package/data/build/dist/host/rpc-table.js.map +1 -0
- package/data/build/dist/host/rpc.d.ts +43 -0
- package/data/build/dist/host/rpc.d.ts.map +1 -0
- package/data/build/dist/host/rpc.js +422 -0
- package/data/build/dist/host/rpc.js.map +1 -0
- package/data/build/dist/host/session-changes.d.ts +13 -0
- package/data/build/dist/host/session-changes.d.ts.map +1 -0
- package/data/build/dist/host/session-changes.js +374 -0
- package/data/build/dist/host/session-changes.js.map +1 -0
- package/data/build/dist/host/session-handle-eviction.d.ts +33 -0
- package/data/build/dist/host/session-handle-eviction.d.ts.map +1 -0
- package/data/build/dist/host/session-handle-eviction.js +429 -0
- package/data/build/dist/host/session-handle-eviction.js.map +1 -0
- package/data/build/dist/host/session-migration-repair.d.ts +23 -0
- package/data/build/dist/host/session-migration-repair.d.ts.map +1 -0
- package/data/build/dist/host/session-migration-repair.js +576 -0
- package/data/build/dist/host/session-migration-repair.js.map +1 -0
- package/data/build/dist/host/settings.d.ts +39 -0
- package/data/build/dist/host/settings.d.ts.map +1 -0
- package/data/build/dist/host/settings.js +352 -0
- package/data/build/dist/host/settings.js.map +1 -0
- package/data/build/dist/host/stage0-dev-hmr.d.ts +6 -0
- package/data/build/dist/host/stage0-dev-hmr.d.ts.map +1 -0
- package/data/build/dist/host/stage0-dev-hmr.js +20 -0
- package/data/build/dist/host/stage0-dev-hmr.js.map +1 -0
- package/data/build/dist/host/tar-archive.d.ts +8 -0
- package/data/build/dist/host/tar-archive.d.ts.map +1 -0
- package/data/build/dist/host/tar-archive.js +17 -0
- package/data/build/dist/host/tar-archive.js.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts +17 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.js +49 -0
- package/data/build/dist/host/terminal/attachment-registry.js.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts +39 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js +160 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts +36 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js +192 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +80 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js +467 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts +27 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js +154 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts +10 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js +147 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts +92 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js +134 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts +42 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.js +104 -0
- package/data/build/dist/host/terminal/controller-factory.js.map +1 -0
- package/data/build/dist/host/terminal/index.d.ts +17 -0
- package/data/build/dist/host/terminal/index.d.ts.map +1 -0
- package/data/build/dist/host/terminal/index.js +17 -0
- package/data/build/dist/host/terminal/index.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts +109 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.js +26 -0
- package/data/build/dist/host/terminal/runtime-adapter.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts +45 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.js +270 -0
- package/data/build/dist/host/terminal/runtime-manager.js.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts +23 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.js +105 -0
- package/data/build/dist/host/terminal/shell-detection.js.map +1 -0
- package/data/build/dist/host/terminal/startup.d.ts +38 -0
- package/data/build/dist/host/terminal/startup.d.ts.map +1 -0
- package/data/build/dist/host/terminal/startup.js +102 -0
- package/data/build/dist/host/terminal/startup.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts +93 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.js +467 -0
- package/data/build/dist/host/terminal/terminal-controller.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts +52 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.js +308 -0
- package/data/build/dist/host/terminal/terminal-process-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts +45 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.js +183 -0
- package/data/build/dist/host/terminal/terminal-process-store.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts +150 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.js +1171 -0
- package/data/build/dist/host/terminal/terminal-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts +49 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.js +242 -0
- package/data/build/dist/host/terminal/terminal-store.js.map +1 -0
- package/data/build/dist/host/update/application-result.d.ts +3 -0
- package/data/build/dist/host/update/application-result.d.ts.map +1 -0
- package/data/build/dist/host/update/application-result.js +13 -0
- package/data/build/dist/host/update/application-result.js.map +1 -0
- package/data/build/dist/host/update/http.d.ts +7 -0
- package/data/build/dist/host/update/http.d.ts.map +1 -0
- package/data/build/dist/host/update/http.js +55 -0
- package/data/build/dist/host/update/http.js.map +1 -0
- package/data/build/dist/host/update/metadata.d.ts +14 -0
- package/data/build/dist/host/update/metadata.d.ts.map +1 -0
- package/data/build/dist/host/update/metadata.js +75 -0
- package/data/build/dist/host/update/metadata.js.map +1 -0
- package/data/build/dist/host/update/release-notes.d.ts +6 -0
- package/data/build/dist/host/update/release-notes.d.ts.map +1 -0
- package/data/build/dist/host/update/release-notes.js +52 -0
- package/data/build/dist/host/update/release-notes.js.map +1 -0
- package/data/build/dist/host/update/service.d.ts +25 -0
- package/data/build/dist/host/update/service.d.ts.map +1 -0
- package/data/build/dist/host/update/service.js +209 -0
- package/data/build/dist/host/update/service.js.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.js +15 -0
- package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
- package/data/build/dist/host/workspace-root.d.ts +13 -0
- package/data/build/dist/host/workspace-root.d.ts.map +1 -0
- package/data/build/dist/host/workspace-root.js +98 -0
- package/data/build/dist/host/workspace-root.js.map +1 -0
- package/data/build/dist/index.d.ts +40 -0
- package/data/build/dist/index.d.ts.map +1 -0
- package/data/build/dist/index.js +31 -0
- package/data/build/dist/index.js.map +1 -0
- package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
- package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
- package/data/build/dist/shared/attachment-prompts.js +17 -0
- package/data/build/dist/shared/attachment-prompts.js.map +1 -0
- package/data/build/dist/shared/attachments.d.ts +18 -0
- package/data/build/dist/shared/attachments.d.ts.map +1 -0
- package/data/build/dist/shared/attachments.js +22 -0
- package/data/build/dist/shared/attachments.js.map +1 -0
- package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
- package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
- package/data/build/dist/shared/cli-provider-route.js +13 -0
- package/data/build/dist/shared/cli-provider-route.js.map +1 -0
- package/data/build/dist/shared/codex-performance.d.ts +3 -0
- package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
- package/data/build/dist/shared/codex-performance.js +2 -0
- package/data/build/dist/shared/codex-performance.js.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.js +51 -0
- package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
- package/data/build/dist/shared/contracts/auth.d.ts +122 -0
- package/data/build/dist/shared/contracts/auth.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/auth.js +8 -0
- package/data/build/dist/shared/contracts/auth.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +484 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.js +2 -0
- package/data/build/dist/shared/contracts/cli-adapter.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.js +2 -0
- package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
- package/data/build/dist/shared/contracts/command-code.d.ts +5 -0
- package/data/build/dist/shared/contracts/command-code.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/command-code.js +2 -0
- package/data/build/dist/shared/contracts/command-code.js.map +1 -0
- package/data/build/dist/shared/contracts/config.d.ts +363 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/config.js +302 -0
- package/data/build/dist/shared/contracts/config.js.map +1 -0
- package/data/build/dist/shared/contracts/credentials.d.ts +73 -0
- package/data/build/dist/shared/contracts/credentials.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/credentials.js +38 -0
- package/data/build/dist/shared/contracts/credentials.js.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts +28 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.js +78 -0
- package/data/build/dist/shared/contracts/debug-config.js.map +1 -0
- package/data/build/dist/shared/contracts/debug.d.ts +75 -0
- package/data/build/dist/shared/contracts/debug.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug.js +121 -0
- package/data/build/dist/shared/contracts/debug.js.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts +86 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.js +2 -0
- package/data/build/dist/shared/contracts/dsh-device.js.map +1 -0
- package/data/build/dist/shared/contracts/errors.d.ts +30 -0
- package/data/build/dist/shared/contracts/errors.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/errors.js +38 -0
- package/data/build/dist/shared/contracts/errors.js.map +1 -0
- package/data/build/dist/shared/contracts/feature.d.ts +93 -0
- package/data/build/dist/shared/contracts/feature.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/feature.js +2 -0
- package/data/build/dist/shared/contracts/feature.js.map +1 -0
- package/data/build/dist/shared/contracts/file-management.d.ts +6 -0
- package/data/build/dist/shared/contracts/file-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/file-management.js +3 -0
- package/data/build/dist/shared/contracts/file-management.js.map +1 -0
- package/data/build/dist/shared/contracts/git.d.ts +129 -0
- package/data/build/dist/shared/contracts/git.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/git.js +29 -0
- package/data/build/dist/shared/contracts/git.js.map +1 -0
- package/data/build/dist/shared/contracts/host-status.d.ts +32 -0
- package/data/build/dist/shared/contracts/host-status.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/host-status.js +2 -0
- package/data/build/dist/shared/contracts/host-status.js.map +1 -0
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts +32 -0
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js +2 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts +55 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.js +48 -0
- package/data/build/dist/shared/contracts/interaction-translation.js.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +53 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js +2 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js.map +1 -0
- package/data/build/dist/shared/contracts/llm-chat.d.ts +18 -0
- package/data/build/dist/shared/contracts/llm-chat.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/llm-chat.js +2 -0
- package/data/build/dist/shared/contracts/llm-chat.js.map +1 -0
- package/data/build/dist/shared/contracts/plugin-update.d.ts +93 -0
- package/data/build/dist/shared/contracts/plugin-update.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/plugin-update.js +128 -0
- package/data/build/dist/shared/contracts/plugin-update.js.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts +135 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.js +195 -0
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -0
- package/data/build/dist/shared/contracts/signaling.d.ts +67 -0
- package/data/build/dist/shared/contracts/signaling.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/signaling.js +2 -0
- package/data/build/dist/shared/contracts/signaling.js.map +1 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +206 -0
- package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/subscription.js +15 -0
- package/data/build/dist/shared/contracts/subscription.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts +65 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.js +2 -0
- package/data/build/dist/shared/contracts/terminal-process.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal-share.d.ts +27 -0
- package/data/build/dist/shared/contracts/terminal-share.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal-share.js +2 -0
- package/data/build/dist/shared/contracts/terminal-share.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal.d.ts +141 -0
- package/data/build/dist/shared/contracts/terminal.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal.js +2 -0
- package/data/build/dist/shared/contracts/terminal.js.map +1 -0
- package/data/build/dist/shared/contracts/transport.d.ts +45 -0
- package/data/build/dist/shared/contracts/transport.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/transport.js +3 -0
- package/data/build/dist/shared/contracts/transport.js.map +1 -0
- package/data/build/dist/shared/contracts/version.d.ts +25 -0
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/version.js +89 -0
- package/data/build/dist/shared/contracts/version.js.map +1 -0
- package/data/build/dist/shared/credential-carrier.d.ts +19 -0
- package/data/build/dist/shared/credential-carrier.d.ts.map +1 -0
- package/data/build/dist/shared/credential-carrier.js +90 -0
- package/data/build/dist/shared/credential-carrier.js.map +1 -0
- package/data/build/dist/shared/debug.d.ts +22 -0
- package/data/build/dist/shared/debug.d.ts.map +1 -0
- package/data/build/dist/shared/debug.js +89 -0
- package/data/build/dist/shared/debug.js.map +1 -0
- package/data/build/dist/shared/delegation-carrier.d.ts +24 -0
- package/data/build/dist/shared/delegation-carrier.d.ts.map +1 -0
- package/data/build/dist/shared/delegation-carrier.js +111 -0
- package/data/build/dist/shared/delegation-carrier.js.map +1 -0
- package/data/build/dist/shared/index.d.ts +29 -0
- package/data/build/dist/shared/index.d.ts.map +1 -0
- package/data/build/dist/shared/index.js +13 -0
- package/data/build/dist/shared/index.js.map +1 -0
- package/data/build/dist/shared/native-approval-modes.d.ts +7 -0
- package/data/build/dist/shared/native-approval-modes.d.ts.map +1 -0
- package/data/build/dist/shared/native-approval-modes.js +38 -0
- package/data/build/dist/shared/native-approval-modes.js.map +1 -0
- package/data/build/dist/shared/provider-icon-resources.d.ts +4 -0
- package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -0
- package/data/build/dist/shared/provider-icon-resources.js +25 -0
- package/data/build/dist/shared/provider-icon-resources.js.map +1 -0
- package/data/build/dist/shared/request-performance.d.ts +20 -0
- package/data/build/dist/shared/request-performance.d.ts.map +1 -0
- package/data/build/dist/shared/request-performance.js +6 -0
- package/data/build/dist/shared/request-performance.js.map +1 -0
- package/data/build/dist/shared/runtime-environment.d.ts +5 -0
- package/data/build/dist/shared/runtime-environment.d.ts.map +1 -0
- package/data/build/dist/shared/runtime-environment.js +7 -0
- package/data/build/dist/shared/runtime-environment.js.map +1 -0
- package/data/build/dist/shared/session-file-location.d.ts +11 -0
- package/data/build/dist/shared/session-file-location.d.ts.map +1 -0
- package/data/build/dist/shared/session-file-location.js +20 -0
- package/data/build/dist/shared/session-file-location.js.map +1 -0
- package/data/build/dist/shared/session-reference.d.ts +9 -0
- package/data/build/dist/shared/session-reference.d.ts.map +1 -0
- package/data/build/dist/shared/session-reference.js +27 -0
- package/data/build/dist/shared/session-reference.js.map +1 -0
- package/data/build/dist/shared/session-title.d.ts +12 -0
- package/data/build/dist/shared/session-title.d.ts.map +1 -0
- package/data/build/dist/shared/session-title.js +71 -0
- package/data/build/dist/shared/session-title.js.map +1 -0
- package/data/build/dist/shared/terminal-input.d.ts +8 -0
- package/data/build/dist/shared/terminal-input.d.ts.map +1 -0
- package/data/build/dist/shared/terminal-input.js +10 -0
- package/data/build/dist/shared/terminal-input.js.map +1 -0
- package/data/build/dist/shared/translation-effect.d.ts +8 -0
- package/data/build/dist/shared/translation-effect.d.ts.map +1 -0
- package/data/build/dist/shared/translation-effect.js +24 -0
- package/data/build/dist/shared/translation-effect.js.map +1 -0
- package/data/build/dist/shared/translation-indicator.d.ts +26 -0
- package/data/build/dist/shared/translation-indicator.d.ts.map +1 -0
- package/data/build/dist/shared/translation-indicator.js +29 -0
- package/data/build/dist/shared/translation-indicator.js.map +1 -0
- package/data/build/dist/transport/carrier.d.ts +48 -0
- package/data/build/dist/transport/carrier.d.ts.map +1 -0
- package/data/build/dist/transport/carrier.js +319 -0
- package/data/build/dist/transport/carrier.js.map +1 -0
- package/data/build/dist/transport/debug.d.ts +39 -0
- package/data/build/dist/transport/debug.d.ts.map +1 -0
- package/data/build/dist/transport/debug.js +97 -0
- package/data/build/dist/transport/debug.js.map +1 -0
- package/data/build/dist/transport/dsh-envelope.d.ts +41 -0
- package/data/build/dist/transport/dsh-envelope.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-envelope.js +107 -0
- package/data/build/dist/transport/dsh-envelope.js.map +1 -0
- package/data/build/dist/transport/dsh-gateway.d.ts +64 -0
- package/data/build/dist/transport/dsh-gateway.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-gateway.js +254 -0
- package/data/build/dist/transport/dsh-gateway.js.map +1 -0
- package/data/build/dist/transport/dsh-session.d.ts +72 -0
- package/data/build/dist/transport/dsh-session.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-session.js +291 -0
- package/data/build/dist/transport/dsh-session.js.map +1 -0
- package/data/build/dist/transport/dsh-transport.d.ts +59 -0
- package/data/build/dist/transport/dsh-transport.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-transport.js +136 -0
- package/data/build/dist/transport/dsh-transport.js.map +1 -0
- package/data/build/dist/transport/frame.d.ts +132 -0
- package/data/build/dist/transport/frame.d.ts.map +1 -0
- package/data/build/dist/transport/frame.js +168 -0
- package/data/build/dist/transport/frame.js.map +1 -0
- package/data/build/dist/transport/index.d.ts +11 -0
- package/data/build/dist/transport/index.d.ts.map +1 -0
- package/data/build/dist/transport/index.js +11 -0
- package/data/build/dist/transport/index.js.map +1 -0
- package/data/build/dist/transport/multiplexer.d.ts +63 -0
- package/data/build/dist/transport/multiplexer.d.ts.map +1 -0
- package/data/build/dist/transport/multiplexer.js +323 -0
- package/data/build/dist/transport/multiplexer.js.map +1 -0
- package/data/build/dist/transport/webrtc-client.d.ts +75 -0
- package/data/build/dist/transport/webrtc-client.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-client.js +382 -0
- package/data/build/dist/transport/webrtc-client.js.map +1 -0
- package/data/build/dist/transport/webrtc-host.d.ts +60 -0
- package/data/build/dist/transport/webrtc-host.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-host.js +259 -0
- package/data/build/dist/transport/webrtc-host.js.map +1 -0
- package/data/build/dist/typert.host.d.ts +25 -0
- package/data/build/dist/typert.host.d.ts.map +1 -0
- package/data/build/dist/typert.host.js +155 -0
- package/data/build/dist/typert.host.js.map +1 -0
- package/data/build/dist/typert.remote-client.d.ts +11 -0
- package/data/build/dist/typert.remote-client.d.ts.map +1 -0
- package/data/build/dist/typert.remote-client.js +7 -0
- package/data/build/dist/typert.remote-client.js.map +1 -0
- package/dsh.bundle.patch +23 -0
- package/package.json +227 -4
- package/profile/README.md +43 -0
- package/profile/cordis.patch.yml +2 -0
- package/profile/package.json +25 -0
- package/profile/scripts/check-dsh-install.mjs +126 -0
- package/profile/version.json +5 -0
- package/scripts/check-dsh-install.mjs +128 -0
- package/version.json +6 -0
|
@@ -0,0 +1,1037 @@
|
|
|
1
|
+
import { createDshTransportDebugLogger } from '../transport/debug.js';
|
|
2
|
+
import { PROVIDER_ICON_FILES, PROVIDER_ICON_PATH } from '../shared/provider-icon-resources.js';
|
|
3
|
+
import { installProviderIconImageBridge } from './provider-icon-bridge.js';
|
|
4
|
+
/**
|
|
5
|
+
* 一个 HostScope 对应一个独立 iframe。iframe 内的 fetch 和 WebSocket 都经由
|
|
6
|
+
* postMessage 回到父页面,再由 DSH Transport 走 web.* Envelope;页面本身不接触
|
|
7
|
+
* ticket、Control API 凭据或 Host 的本地地址。
|
|
8
|
+
*/
|
|
9
|
+
export class RemoteDshWebContext {
|
|
10
|
+
options;
|
|
11
|
+
objectUrls = new Set();
|
|
12
|
+
moduleUrls = new Map();
|
|
13
|
+
moduleLoads = new Map();
|
|
14
|
+
sockets = new Map();
|
|
15
|
+
/** 请求可能来自不同生命周期的 iframe;响应必须回到原发送窗口。 */
|
|
16
|
+
messageWindows = new Map();
|
|
17
|
+
socketWindows = new Map();
|
|
18
|
+
iframeWindows = new Set();
|
|
19
|
+
/** WebSocket 只有在 Host 本地 socket 真正打开后才允许 iframe 发送首帧。 */
|
|
20
|
+
socketReady = new Map();
|
|
21
|
+
iframeValue;
|
|
22
|
+
sessionIdValue;
|
|
23
|
+
disposed = false;
|
|
24
|
+
onMessageBound = (event) => { void this.onMessage(event); };
|
|
25
|
+
debug;
|
|
26
|
+
constructor(options) {
|
|
27
|
+
this.options = options;
|
|
28
|
+
if (typeof document === 'undefined')
|
|
29
|
+
throw new Error('Remote DSH Web Context 只能运行在浏览器');
|
|
30
|
+
this.debug = options.debug ?? createDshTransportDebugLogger({ side: 'h5', component: 'remote-web-bridge' });
|
|
31
|
+
}
|
|
32
|
+
get iframe() { return this.iframeValue; }
|
|
33
|
+
get sessionId() { return this.sessionIdValue; }
|
|
34
|
+
async open(signal) {
|
|
35
|
+
this.ensureOpen();
|
|
36
|
+
window.addEventListener('message', this.onMessageBound);
|
|
37
|
+
window.__AGENT_DOOR_REMOTE_TRANSPORT__ = this.options.transport;
|
|
38
|
+
const session = await this.options.transport.webRequest('web.session.open', {
|
|
39
|
+
...(this.options.workspaceId ? { workspaceId: this.options.workspaceId } : {}),
|
|
40
|
+
...(this.options.sessionId ? { sessionId: this.options.sessionId } : {}),
|
|
41
|
+
}, signal);
|
|
42
|
+
this.sessionIdValue = session.sessionId;
|
|
43
|
+
const boot = await this.options.transport.webRequest('web.boot.get', { sessionId: session.sessionId }, signal);
|
|
44
|
+
const iframe = document.createElement('iframe');
|
|
45
|
+
iframe.className = 'dsh-remote-web-context';
|
|
46
|
+
iframe.setAttribute('title', 'Remote DSH Web');
|
|
47
|
+
// Blob URL 由父页面创建;allow-same-origin 让 srcdoc 与父页面共享 origin,
|
|
48
|
+
// 否则浏览器会把 blob:https://host.example/... 视为跨 origin 本地资源并拒绝加载。
|
|
49
|
+
iframe.setAttribute('sandbox', 'allow-downloads allow-forms allow-modals allow-popups allow-scripts allow-same-origin');
|
|
50
|
+
iframe.setAttribute('referrerpolicy', 'no-referrer');
|
|
51
|
+
iframe.style.width = '100%';
|
|
52
|
+
iframe.style.height = '100%';
|
|
53
|
+
iframe.style.border = '0';
|
|
54
|
+
iframe.srcdoc = await this.prepareBootHtml(boot, signal);
|
|
55
|
+
this.options.container.replaceChildren(iframe);
|
|
56
|
+
this.iframeValue = iframe;
|
|
57
|
+
if (iframe.contentWindow !== null)
|
|
58
|
+
this.iframeWindows.add(iframe.contentWindow);
|
|
59
|
+
}
|
|
60
|
+
async dispose() {
|
|
61
|
+
if (this.disposed)
|
|
62
|
+
return;
|
|
63
|
+
this.disposed = true;
|
|
64
|
+
window.removeEventListener('message', this.onMessageBound);
|
|
65
|
+
for (const streamId of this.sockets.values())
|
|
66
|
+
this.options.transport.closeWebStream(streamId);
|
|
67
|
+
this.sockets.clear();
|
|
68
|
+
this.messageWindows.clear();
|
|
69
|
+
this.socketWindows.clear();
|
|
70
|
+
this.iframeWindows.clear();
|
|
71
|
+
for (const waiter of this.socketReady.values())
|
|
72
|
+
waiter.reject(new Error('Remote DSH Web Context 已关闭'));
|
|
73
|
+
this.socketReady.clear();
|
|
74
|
+
if (this.sessionIdValue !== undefined) {
|
|
75
|
+
try {
|
|
76
|
+
await this.options.transport.webRequest('web.session.close', { sessionId: this.sessionIdValue });
|
|
77
|
+
}
|
|
78
|
+
catch {
|
|
79
|
+
// 物理连接已断开时,Host 会随 generation 一并清理会话。
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
for (const url of this.objectUrls)
|
|
83
|
+
URL.revokeObjectURL(url);
|
|
84
|
+
this.objectUrls.clear();
|
|
85
|
+
this.iframeValue?.remove();
|
|
86
|
+
this.iframeValue = undefined;
|
|
87
|
+
const transportWindow = window;
|
|
88
|
+
if (transportWindow.__AGENT_DOOR_REMOTE_TRANSPORT__ === this.options.transport)
|
|
89
|
+
delete transportWindow.__AGENT_DOOR_REMOTE_TRANSPORT__;
|
|
90
|
+
this.sessionIdValue = undefined;
|
|
91
|
+
}
|
|
92
|
+
async prepareBootHtml(boot, signal) {
|
|
93
|
+
const parser = new DOMParser();
|
|
94
|
+
const documentValue = parser.parseFromString(boot.html, 'text/html');
|
|
95
|
+
relaxRemoteContentSecurityPolicy(documentValue);
|
|
96
|
+
// srcdoc 在 sandbox 中没有可访问的网络 origin;固定一个不可路由的基址,
|
|
97
|
+
// 让 DSH Web 生成的相对 URL 仍能被 bridge 归一化为路径。
|
|
98
|
+
const base = documentValue.createElement('base');
|
|
99
|
+
base.href = 'https://dsh.remote.invalid/';
|
|
100
|
+
documentValue.head.prepend(base);
|
|
101
|
+
const scriptNodes = [...documentValue.querySelectorAll('script[src]')];
|
|
102
|
+
const inlineScriptNodes = [...documentValue.querySelectorAll('script:not([src])')];
|
|
103
|
+
const styleNodes = [...documentValue.querySelectorAll('link[rel="stylesheet"][href]')];
|
|
104
|
+
// modulepreload、manifest 和 favicon 指向的是不可访问的 Host 地址;模块依赖
|
|
105
|
+
// 会由 loadScript 重写为 Blob URL,其他链接直接移除,避免浏览器绕过 Tunnel。
|
|
106
|
+
for (const node of [...documentValue.querySelectorAll('link')]) {
|
|
107
|
+
const rel = (node.getAttribute('rel') ?? '').toLowerCase();
|
|
108
|
+
const as = (node.getAttribute('as') ?? '').toLowerCase();
|
|
109
|
+
if (rel === 'modulepreload' || rel === 'manifest' || rel === 'icon' || (rel === 'preload' && as === 'script'))
|
|
110
|
+
node.remove();
|
|
111
|
+
}
|
|
112
|
+
await Promise.all([
|
|
113
|
+
...scriptNodes.map(async (node) => {
|
|
114
|
+
node.removeAttribute('integrity');
|
|
115
|
+
node.removeAttribute('crossorigin');
|
|
116
|
+
const path = resolveRemotePath(node.getAttribute('src') ?? '');
|
|
117
|
+
node.src = await this.loadScript(path, signal);
|
|
118
|
+
}),
|
|
119
|
+
...inlineScriptNodes.map(async (node) => {
|
|
120
|
+
const type = (node.getAttribute('type') ?? '').toLowerCase();
|
|
121
|
+
// JSON 数据脚本不是可执行代码,保留给 DSH 前端读取;其余内联脚本
|
|
122
|
+
// 转成 Blob 外链,以兼容 Bootstrap 的 script-src 无 unsafe-inline 策略。
|
|
123
|
+
if (type === 'application/json' || type === 'application/ld+json')
|
|
124
|
+
return;
|
|
125
|
+
const source = node.textContent ?? '';
|
|
126
|
+
node.textContent = '';
|
|
127
|
+
node.src = this.createObjectUrl(new TextEncoder().encode(source), 'text/javascript');
|
|
128
|
+
}),
|
|
129
|
+
...styleNodes.map(async (node) => {
|
|
130
|
+
node.removeAttribute('integrity');
|
|
131
|
+
node.removeAttribute('crossorigin');
|
|
132
|
+
const path = resolveRemotePath(node.getAttribute('href') ?? '');
|
|
133
|
+
node.href = await this.loadStyle(path, signal);
|
|
134
|
+
}),
|
|
135
|
+
]);
|
|
136
|
+
const bridge = documentValue.createElement('script');
|
|
137
|
+
bridge.src = this.createObjectUrl(new TextEncoder().encode(createBridgeScript()), 'text/javascript');
|
|
138
|
+
documentValue.head.prepend(bridge);
|
|
139
|
+
return `<!doctype html>${documentValue.documentElement.outerHTML}`;
|
|
140
|
+
}
|
|
141
|
+
async loadScript(path, signal) {
|
|
142
|
+
const cached = this.moduleUrls.get(path);
|
|
143
|
+
if (cached !== undefined)
|
|
144
|
+
return cached;
|
|
145
|
+
const pending = this.moduleLoads.get(path);
|
|
146
|
+
if (pending !== undefined)
|
|
147
|
+
return pending;
|
|
148
|
+
const load = (async () => {
|
|
149
|
+
const body = await this.options.transport.webRequest('web.asset.get', { sessionId: this.sessionIdValue, path }, signal);
|
|
150
|
+
let source = decodeText(body);
|
|
151
|
+
// DSH client-modules 的 `require.async("./client.foo.js")` 是包内懒加载
|
|
152
|
+
// 标记,必须保留给 loader 依据 manifest 生成带 ownerId/rev 的 URL;
|
|
153
|
+
// 如果按聚合 URL 直接归一化,会错误变成 `/plugins/client.foo.js`。
|
|
154
|
+
const references = collectRelativeReferences(source, /\.(?:js)(?:\?[^\s"'`)]*)?$/u)
|
|
155
|
+
.filter((reference) => !(path.startsWith('/plugins/') && /^\.\/client\.[A-Za-z0-9][A-Za-z0-9._-]*\.js(?:\?.*)?$/u.test(reference)));
|
|
156
|
+
const replacements = await Promise.all(references.map(async (reference) => {
|
|
157
|
+
const dependencyPath = resolveRelativeAssetPath(path, reference);
|
|
158
|
+
return [reference, await this.loadScript(dependencyPath, signal)];
|
|
159
|
+
}));
|
|
160
|
+
for (const [reference, url] of replacements)
|
|
161
|
+
source = source.split(reference).join(url);
|
|
162
|
+
const url = this.createObjectUrl(new TextEncoder().encode(source), 'text/javascript');
|
|
163
|
+
this.moduleUrls.set(path, url);
|
|
164
|
+
return url;
|
|
165
|
+
})();
|
|
166
|
+
this.moduleLoads.set(path, load);
|
|
167
|
+
// 断线失败不能永久占住在途缓存,否则原生 require.async 的重试也会立即失败。
|
|
168
|
+
try {
|
|
169
|
+
return await load;
|
|
170
|
+
}
|
|
171
|
+
finally {
|
|
172
|
+
if (this.moduleLoads.get(path) === load)
|
|
173
|
+
this.moduleLoads.delete(path);
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
async loadStyle(path, signal) {
|
|
177
|
+
const cached = this.moduleUrls.get(path);
|
|
178
|
+
if (cached !== undefined)
|
|
179
|
+
return cached;
|
|
180
|
+
const body = await this.options.transport.webRequest('web.asset.get', { sessionId: this.sessionIdValue, path }, signal);
|
|
181
|
+
let source = decodeText(body);
|
|
182
|
+
const references = collectCssReferences(source, /\.(?:woff2?|ttf|otf|png|svg)(?:\?[^\s"'`)]*)?$/u);
|
|
183
|
+
const replacements = await Promise.all(references.map(async (reference) => {
|
|
184
|
+
const dependencyPath = resolveRelativeAssetPath(path, reference);
|
|
185
|
+
const dependency = await this.options.transport.webRequest('web.asset.get', { sessionId: this.sessionIdValue, path: dependencyPath }, signal);
|
|
186
|
+
return [reference, this.createObjectUrl(dependency, contentTypeForPath(dependencyPath))];
|
|
187
|
+
}));
|
|
188
|
+
for (const [reference, url] of replacements)
|
|
189
|
+
source = source.split(reference).join(url);
|
|
190
|
+
const url = this.createObjectUrl(new TextEncoder().encode(source), 'text/css');
|
|
191
|
+
this.moduleUrls.set(path, url);
|
|
192
|
+
return url;
|
|
193
|
+
}
|
|
194
|
+
createObjectUrl(value, contentType) {
|
|
195
|
+
this.ensureOpen();
|
|
196
|
+
if (!(value instanceof Uint8Array))
|
|
197
|
+
throw new Error('Remote DSH Web 资源必须是二进制');
|
|
198
|
+
const copy = new Uint8Array(value.byteLength);
|
|
199
|
+
copy.set(value);
|
|
200
|
+
const url = URL.createObjectURL(new Blob([copy.buffer], { type: contentType }));
|
|
201
|
+
this.objectUrls.add(url);
|
|
202
|
+
return url;
|
|
203
|
+
}
|
|
204
|
+
/** 图片独立于脚本加载链,共享在途请求,关闭 iframe 后不再创建 Blob URL。 */
|
|
205
|
+
async loadImage(path) {
|
|
206
|
+
const pathname = new URL(path, 'https://dsh.remote.invalid/').pathname;
|
|
207
|
+
if (!Object.values(PROVIDER_ICON_FILES).some((filename) => pathname === PROVIDER_ICON_PATH + filename))
|
|
208
|
+
throw new Error('不支持的提供商图标');
|
|
209
|
+
const cached = this.moduleUrls.get(path);
|
|
210
|
+
if (cached !== undefined)
|
|
211
|
+
return cached;
|
|
212
|
+
const pending = this.moduleLoads.get(path);
|
|
213
|
+
if (pending !== undefined)
|
|
214
|
+
return pending;
|
|
215
|
+
const task = (async () => {
|
|
216
|
+
const body = await this.options.transport.webRequest('web.asset.get', { sessionId: this.sessionIdValue, path });
|
|
217
|
+
const url = this.createObjectUrl(body, contentTypeForPath(pathname));
|
|
218
|
+
this.moduleUrls.set(path, url);
|
|
219
|
+
return url;
|
|
220
|
+
})();
|
|
221
|
+
this.moduleLoads.set(path, task);
|
|
222
|
+
try {
|
|
223
|
+
return await task;
|
|
224
|
+
}
|
|
225
|
+
finally {
|
|
226
|
+
if (this.moduleLoads.get(path) === task)
|
|
227
|
+
this.moduleLoads.delete(path);
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
async onMessage(event) {
|
|
231
|
+
const sourceWindow = event.source;
|
|
232
|
+
if (this.disposed || sourceWindow === null || !this.iframeWindows.has(sourceWindow))
|
|
233
|
+
return;
|
|
234
|
+
if (!isRecord(event.data) || typeof event.data.kind !== 'string')
|
|
235
|
+
return;
|
|
236
|
+
const message = event.data;
|
|
237
|
+
if (message.kind !== 'dsh-web-debug' && typeof message.id !== 'string')
|
|
238
|
+
return;
|
|
239
|
+
if (typeof message.id === 'string')
|
|
240
|
+
this.messageWindows.set(message.id, sourceWindow);
|
|
241
|
+
if (message.kind !== 'dsh-web-debug') {
|
|
242
|
+
this.debug.log('bridge.message.accepted', { kind: message.kind, id: message.id });
|
|
243
|
+
}
|
|
244
|
+
try {
|
|
245
|
+
if (message.kind === 'dsh-web-debug') {
|
|
246
|
+
const eventName = typeof message.event === 'string' ? message.event : 'unknown';
|
|
247
|
+
const fields = isRecord(message.fields) ? message.fields : {};
|
|
248
|
+
this.debug.log(`iframe.${eventName}`, fields);
|
|
249
|
+
if (/^(bridge\.ws\.|client\.connection\.)/u.test(eventName)) {
|
|
250
|
+
await this.options.transport.webRequest('web.debug', { event: eventName, fields });
|
|
251
|
+
}
|
|
252
|
+
return;
|
|
253
|
+
}
|
|
254
|
+
if (message.kind === 'fetch') {
|
|
255
|
+
const input = isRecord(message.input) ? message.input : {};
|
|
256
|
+
const path = resolveRemotePath(typeof input.path === 'string' ? input.path : '/');
|
|
257
|
+
const body = typeof message.body === 'string'
|
|
258
|
+
? message.body
|
|
259
|
+
: typeof input.body === 'string'
|
|
260
|
+
? input.body
|
|
261
|
+
: undefined;
|
|
262
|
+
const response = path.startsWith('/assets/') || path.startsWith('/plugins/')
|
|
263
|
+
? { status: 200, headers: [['content-type', 'application/octet-stream']], body: await this.options.transport.webRequest('web.asset.get', { sessionId: this.sessionIdValue, path }) }
|
|
264
|
+
: await this.options.transport.webRequest('web.request', { sessionId: this.sessionIdValue, path, method: typeof input.method === 'string' ? input.method : 'GET', ...(Array.isArray(input.headers) ? { headers: input.headers } : {}), ...(body === undefined ? {} : { body }) });
|
|
265
|
+
this.postResponse(message.id, { ok: true, status: response.status, headers: response.headers, body: response.body instanceof Uint8Array ? response.body.buffer : response.body });
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
268
|
+
if (message.kind === 'script') {
|
|
269
|
+
const input = isRecord(message.input) ? message.input : {};
|
|
270
|
+
const path = resolveRemotePath(typeof input.path === 'string' ? input.path : '/');
|
|
271
|
+
const url = await this.loadScript(path, undefined);
|
|
272
|
+
this.postResponse(message.id, { ok: true, url });
|
|
273
|
+
return;
|
|
274
|
+
}
|
|
275
|
+
if (message.kind === 'image') {
|
|
276
|
+
const input = isRecord(message.input) ? message.input : {};
|
|
277
|
+
const path = resolveRemotePath(typeof input.path === 'string' ? input.path : '/');
|
|
278
|
+
const url = await this.loadImage(path);
|
|
279
|
+
this.postResponse(message.id, { ok: true, url });
|
|
280
|
+
return;
|
|
281
|
+
}
|
|
282
|
+
if (message.kind === 'style') {
|
|
283
|
+
const input = isRecord(message.input) ? message.input : {};
|
|
284
|
+
const path = resolveRemotePath(typeof input.path === 'string' ? input.path : '/');
|
|
285
|
+
const url = await this.loadStyle(path, undefined);
|
|
286
|
+
this.postResponse(message.id, { ok: true, url });
|
|
287
|
+
return;
|
|
288
|
+
}
|
|
289
|
+
if (message.kind === 'ws.open') {
|
|
290
|
+
const input = isRecord(message.input) ? message.input : {};
|
|
291
|
+
const opened = this.options.transport.openWebStreamWithId('web.ws.open', { sessionId: this.sessionIdValue, path: resolveRemotePath(typeof input.path === 'string' ? input.path : '/') });
|
|
292
|
+
this.sockets.set(message.id, opened.streamId);
|
|
293
|
+
this.socketWindows.set(message.id, sourceWindow);
|
|
294
|
+
this.debug.log('bridge.ws.register', { id: message.id, streamId: opened.streamId });
|
|
295
|
+
let resolveReady;
|
|
296
|
+
let rejectReady;
|
|
297
|
+
const ready = new Promise((resolve, reject) => { resolveReady = resolve; rejectReady = reject; });
|
|
298
|
+
this.socketReady.set(message.id, { resolve: resolveReady, reject: rejectReady });
|
|
299
|
+
this.debug.log('bridge.ws.open', { id: message.id, streamId: opened.streamId, path: resolveRemotePath(typeof input.path === 'string' ? input.path : '/') });
|
|
300
|
+
void this.consumeSocket(message.id, opened.streamId, opened.stream);
|
|
301
|
+
// 不再把 stream.open/stream.accepted 当作 WebSocket open。只有 Host
|
|
302
|
+
// 已完成本地 WebSocket 握手并发回 web.ws.open.response,iframe 才能
|
|
303
|
+
// 发送 /api/remote.mux 的首个 DSH Connection 帧。
|
|
304
|
+
await ready;
|
|
305
|
+
if (!this.disposed && this.sockets.get(message.id) === opened.streamId) {
|
|
306
|
+
this.debug.log('bridge.ws.open.response', { id: message.id, streamId: opened.streamId });
|
|
307
|
+
this.postResponse(message.id, { ok: true });
|
|
308
|
+
}
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
if (message.kind === 'ws.send') {
|
|
312
|
+
const streamId = this.sockets.get(message.id);
|
|
313
|
+
this.debug.log('bridge.ws.receive', { id: message.id, hasSocket: streamId !== undefined, streamId: streamId ?? null });
|
|
314
|
+
if (!streamId)
|
|
315
|
+
throw new Error('Remote DSH WebSocket 不存在');
|
|
316
|
+
const body = typeof message.body === 'string' ? new TextEncoder().encode(message.body) : toBytes(message.body);
|
|
317
|
+
this.debug.log('bridge.ws.send', { id: message.id, streamId, bytes: body.byteLength, encoding: typeof message.body === 'string' ? 'text' : 'binary' });
|
|
318
|
+
try {
|
|
319
|
+
this.options.transport.sendWebStream(streamId, 'web.ws.data', body, { ...(typeof message.body === 'string' ? { encoding: 'text' } : { binary: true }) });
|
|
320
|
+
this.debug.log('bridge.ws.data.sent', { id: message.id, streamId, bytes: body.byteLength });
|
|
321
|
+
}
|
|
322
|
+
catch (error) {
|
|
323
|
+
this.debug.log('bridge.ws.data.error', { id: message.id, streamId, error: error instanceof Error ? error.message : String(error) });
|
|
324
|
+
throw error;
|
|
325
|
+
}
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
if (message.kind === 'ws.close') {
|
|
329
|
+
const streamId = this.sockets.get(message.id);
|
|
330
|
+
if (streamId)
|
|
331
|
+
this.options.transport.closeWebStream(streamId);
|
|
332
|
+
this.debug.log('bridge.ws.close', { id: message.id, streamId });
|
|
333
|
+
this.sockets.delete(message.id);
|
|
334
|
+
this.socketWindows.delete(message.id);
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
catch (error) {
|
|
338
|
+
this.postResponse(message.id, { ok: false, error: error instanceof Error ? error.message : 'Remote DSH Web 请求失败' });
|
|
339
|
+
}
|
|
340
|
+
}
|
|
341
|
+
async consumeSocket(id, streamId, stream) {
|
|
342
|
+
let opened = false;
|
|
343
|
+
try {
|
|
344
|
+
for await (const value of stream) {
|
|
345
|
+
if (!opened) {
|
|
346
|
+
opened = true;
|
|
347
|
+
if (isRecord(value) && value.opened === true) {
|
|
348
|
+
this.socketReady.get(id)?.resolve();
|
|
349
|
+
this.socketReady.delete(id);
|
|
350
|
+
continue;
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
if (value instanceof Uint8Array) {
|
|
354
|
+
this.debug.log('bridge.ws.message', { id, streamId, bytes: value.byteLength, encoding: 'binary' });
|
|
355
|
+
this.postEvent(id, 'message', value.buffer);
|
|
356
|
+
}
|
|
357
|
+
else {
|
|
358
|
+
const body = typeof value === 'string' ? value : JSON.stringify(value);
|
|
359
|
+
this.debug.log('bridge.ws.message', { id, streamId, bytes: new TextEncoder().encode(body).byteLength, encoding: 'text' });
|
|
360
|
+
this.postEvent(id, 'message', body);
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
this.postEvent(id, 'close', undefined);
|
|
364
|
+
}
|
|
365
|
+
catch (error) {
|
|
366
|
+
const failure = error instanceof Error ? error : new Error('Remote DSH WebSocket 流失败');
|
|
367
|
+
this.socketReady.get(id)?.reject(failure);
|
|
368
|
+
this.socketReady.delete(id);
|
|
369
|
+
this.postEvent(id, 'error', error instanceof Error ? error.message : 'Remote DSH WebSocket 流失败');
|
|
370
|
+
}
|
|
371
|
+
finally {
|
|
372
|
+
if (!opened) {
|
|
373
|
+
const failure = new Error('Remote DSH WebSocket 未收到 Host open 响应');
|
|
374
|
+
this.socketReady.get(id)?.reject(failure);
|
|
375
|
+
this.socketReady.delete(id);
|
|
376
|
+
}
|
|
377
|
+
if (this.sockets.get(id) === streamId)
|
|
378
|
+
this.sockets.delete(id);
|
|
379
|
+
this.socketWindows.delete(id);
|
|
380
|
+
this.debug.log('bridge.ws.consume.finally', { id, streamId, hasSocket: this.sockets.has(id) });
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
postResponse(id, value) {
|
|
384
|
+
this.messageWindows.get(id)?.postMessage({ kind: 'dsh-web-response', id, ...value }, '*');
|
|
385
|
+
}
|
|
386
|
+
postEvent(id, type, body) {
|
|
387
|
+
this.socketWindows.get(id)?.postMessage({ kind: 'dsh-web-event', id, type, body }, '*');
|
|
388
|
+
}
|
|
389
|
+
ensureOpen() { if (this.disposed)
|
|
390
|
+
throw new Error('Remote DSH Web Context 已关闭'); }
|
|
391
|
+
}
|
|
392
|
+
function createBridgeScript() {
|
|
393
|
+
return `(() => {
|
|
394
|
+
// 远程 DSH Web 已经运行在外层 DshAgentDoor Tunnel 内。
|
|
395
|
+
// 内嵌的 dsh-agentdoor Client 仍需加载其插件代码和界面,但不能再次启动
|
|
396
|
+
// 自己的 Relay/WebRTC,否则会把信令 WebSocket 当成本地 DSH Web 路径转发,
|
|
397
|
+
// 形成递归连接并持续触发 /signaling/signal 失败。
|
|
398
|
+
globalThis.__AGENT_DOOR_REMOTE_WEB_CONTEXT__ = true;
|
|
399
|
+
const bridgeDebugLevel = (() => {
|
|
400
|
+
try {
|
|
401
|
+
const params = new URL(parent.location.href).searchParams;
|
|
402
|
+
const query = params.get('dshDebugLevel') || params.get('dshDebug') || '';
|
|
403
|
+
if (/^(warn|warning|error)$/iu.test(query)) return 'warn';
|
|
404
|
+
if (/^(1|true|yes|on|info|debug)$/iu.test(query)) return 'info';
|
|
405
|
+
} catch { /* 读取父页面地址失败时保持关闭。 */ }
|
|
406
|
+
return 'off';
|
|
407
|
+
})();
|
|
408
|
+
const bridgeLog = (event, fields = {}) => {
|
|
409
|
+
if (bridgeDebugLevel === 'off') return;
|
|
410
|
+
if (bridgeDebugLevel === 'warn' && !/(?:^|\\.)(?:warn|warning|error|failed|invalid|rejected|drop|unavailable|timeout)(?:$|\\.)/iu.test(String(event))) return;
|
|
411
|
+
const payload = { at: new Date().toISOString(), side: 'h5', component: 'remote-web-bridge', event, ...fields };
|
|
412
|
+
(bridgeDebugLevel === 'warn' ? console.warn : console.info)('[dsh-agentdoor:tunnel]', payload);
|
|
413
|
+
parent.postMessage({ kind: 'dsh-web-debug', event, fields: payload }, '*');
|
|
414
|
+
};
|
|
415
|
+
const pending = new Map();
|
|
416
|
+
// RPC、WebSocket 和远程 stream 必须使用各自的 ID 空间;资源 fetch
|
|
417
|
+
// 不能改变 WebSocket 的 ID,否则 ws.open 与 ws.send 会指向不同 key。
|
|
418
|
+
//
|
|
419
|
+
// 每个 ID 还必须带 kind 前缀:早期实现把 fetch/script 计数器和 ws.open 计数器
|
|
420
|
+
// 当成裸数字放进同一个 pending Map,两个计数器各自从 1 开始,页面启动时
|
|
421
|
+
// 「插件包 fetch」与「/api/remote.mux ws.open」几乎同时发生,后到的
|
|
422
|
+
// pending.set 会覆盖先到的在途请求。被覆盖的那条 Promise 永远不会落地:
|
|
423
|
+
// 如果它正好是原生设置页的 settings/describe,DSH 的设置镜像会一直停在
|
|
424
|
+
// loading,中继下的「模型」页就永久空白且没有任何报错。
|
|
425
|
+
let nextCallId = 0;
|
|
426
|
+
let nextSocketId = 0;
|
|
427
|
+
let nextStreamId = 0;
|
|
428
|
+
let remoteLoadChain = Promise.resolve();
|
|
429
|
+
const allocateId = (prefix, counter) => {
|
|
430
|
+
let value = counter + 1;
|
|
431
|
+
let id = prefix + String(value);
|
|
432
|
+
// 绝不覆盖未完成的请求:万一同前缀 ID 仍在使用就继续往后取。
|
|
433
|
+
while (pending.has(id)) {
|
|
434
|
+
value += 1;
|
|
435
|
+
id = prefix + String(value);
|
|
436
|
+
}
|
|
437
|
+
return { id, counter: value };
|
|
438
|
+
};
|
|
439
|
+
const call = (kind, input, body, explicitId) => new Promise((resolve, reject) => {
|
|
440
|
+
let id = explicitId;
|
|
441
|
+
if (id === undefined) {
|
|
442
|
+
const allocated = allocateId('req:', nextCallId);
|
|
443
|
+
nextCallId = allocated.counter;
|
|
444
|
+
id = allocated.id;
|
|
445
|
+
}
|
|
446
|
+
pending.set(id, { resolve, reject });
|
|
447
|
+
bridgeLog('bridge.call', { kind, id, path: input && typeof input.path === 'string' ? input.path : undefined });
|
|
448
|
+
parent.postMessage({ kind, id, input, body }, '*');
|
|
449
|
+
});
|
|
450
|
+
// srcdoc 的 location.href 是 about:srcdoc,不能作为相对 URL 的基址。
|
|
451
|
+
// prepareBootHtml 已写入固定 base,所有资源解析必须以 document.baseURI 为准。
|
|
452
|
+
const resourceBase = () => document.baseURI && document.baseURI !== 'about:srcdoc' ? document.baseURI : 'https://dsh.remote.invalid/';
|
|
453
|
+
(${installProviderIconImageBridge.toString()})(globalThis, ${JSON.stringify(PROVIDER_ICON_PATH)}, async (path) => {
|
|
454
|
+
const response = await call('image', { path });
|
|
455
|
+
if (typeof response.url !== 'string') throw new Error('提供商图标响应缺少地址');
|
|
456
|
+
return response.url;
|
|
457
|
+
});
|
|
458
|
+
const isRemoteResource = (value) => {
|
|
459
|
+
try {
|
|
460
|
+
const parsed = new URL(value, resourceBase());
|
|
461
|
+
return parsed.protocol !== 'blob:' && (parsed.origin === location.origin || parsed.origin === 'null' || parsed.origin === 'https://dsh.remote.invalid');
|
|
462
|
+
} catch {
|
|
463
|
+
return false;
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
const remotePath = (value) => {
|
|
467
|
+
const parsed = new URL(value, resourceBase());
|
|
468
|
+
return parsed.pathname + parsed.search;
|
|
469
|
+
};
|
|
470
|
+
const resourceAttribute = (node, attribute) => node && (node.getAttribute('data-dsh-bridge-source') || node.getAttribute(attribute) || node[attribute] || '');
|
|
471
|
+
const isRemoteScript = (node) => node && node.nodeType === 1 && node.tagName === 'SCRIPT' && node.getAttribute('data-dsh-bridge-loaded') !== '1' && isRemoteResource(resourceAttribute(node, 'src'));
|
|
472
|
+
const isRemoteStyle = (node) => node && node.nodeType === 1 && node.tagName === 'LINK' && (node.getAttribute('rel') || '').toLowerCase() === 'stylesheet' && node.getAttribute('data-dsh-bridge-loaded') !== '1' && isRemoteResource(resourceAttribute(node, 'href'));
|
|
473
|
+
const queueRemoteNode = (parentNode, node, beforeNode, kind, attribute) => {
|
|
474
|
+
const source = resourceAttribute(node, attribute);
|
|
475
|
+
const onload = node.onload;
|
|
476
|
+
const onerror = node.onerror;
|
|
477
|
+
remoteLoadChain = remoteLoadChain.then(async () => {
|
|
478
|
+
const response = await call(kind, { path: remotePath(source) });
|
|
479
|
+
if (!response || typeof response.url !== 'string') throw new Error('远程资源加载失败');
|
|
480
|
+
// 原地复用节点,保留 loader 通过 addEventListener 注册的 load/error 监听器。
|
|
481
|
+
// cloneNode 只复制属性,不复制监听器,会让 client-modules 永远等待。
|
|
482
|
+
node.removeAttribute('data-dsh-bridge-source');
|
|
483
|
+
node.setAttribute('data-dsh-bridge-loaded', '1');
|
|
484
|
+
node.setAttribute(attribute, response.url);
|
|
485
|
+
if (beforeNode) nativeInsertBefore.call(parentNode, node, beforeNode);
|
|
486
|
+
else nativeAppendChild.call(parentNode, node);
|
|
487
|
+
}).catch((error) => {
|
|
488
|
+
console.error('[dsh-agentdoor] remote resource load failed', error);
|
|
489
|
+
try {
|
|
490
|
+
if (typeof onerror === 'function') onerror.call(node, error);
|
|
491
|
+
else node.dispatchEvent(new Event('error'));
|
|
492
|
+
} catch {}
|
|
493
|
+
});
|
|
494
|
+
return node;
|
|
495
|
+
};
|
|
496
|
+
const nativeAppendChild = Node.prototype.appendChild;
|
|
497
|
+
const nativeInsertBefore = Node.prototype.insertBefore;
|
|
498
|
+
const nativeRemoveChild = Node.prototype.removeChild;
|
|
499
|
+
const nativeAppend = Element.prototype.append;
|
|
500
|
+
const nativePrepend = Element.prototype.prepend;
|
|
501
|
+
const nativeFragmentAppend = DocumentFragment.prototype.append;
|
|
502
|
+
const nativeFragmentPrepend = DocumentFragment.prototype.prepend;
|
|
503
|
+
const nativeInsertAdjacentHTML = Element.prototype.insertAdjacentHTML;
|
|
504
|
+
const nativeReplaceChildren = Element.prototype.replaceChildren;
|
|
505
|
+
const nativeDocumentWrite = Document.prototype.write;
|
|
506
|
+
const nativeDocumentWriteln = Document.prototype.writeln;
|
|
507
|
+
const scriptSrcDescriptor = Object.getOwnPropertyDescriptor(HTMLScriptElement.prototype, 'src');
|
|
508
|
+
const linkHrefDescriptor = Object.getOwnPropertyDescriptor(HTMLLinkElement.prototype, 'href');
|
|
509
|
+
if (scriptSrcDescriptor?.set && scriptSrcDescriptor.get) {
|
|
510
|
+
Object.defineProperty(HTMLScriptElement.prototype, 'src', {
|
|
511
|
+
configurable: true,
|
|
512
|
+
get() { return this.getAttribute('data-dsh-bridge-source') || scriptSrcDescriptor.get.call(this); },
|
|
513
|
+
set(value) {
|
|
514
|
+
const source = String(value);
|
|
515
|
+
if (isRemoteResource(source)) {
|
|
516
|
+
this.setAttribute('data-dsh-bridge-source', source);
|
|
517
|
+
scriptSrcDescriptor.set.call(this, 'about:blank');
|
|
518
|
+
} else scriptSrcDescriptor.set.call(this, value);
|
|
519
|
+
},
|
|
520
|
+
});
|
|
521
|
+
}
|
|
522
|
+
if (linkHrefDescriptor?.set && linkHrefDescriptor.get) {
|
|
523
|
+
Object.defineProperty(HTMLLinkElement.prototype, 'href', {
|
|
524
|
+
configurable: true,
|
|
525
|
+
get() { return this.getAttribute('data-dsh-bridge-source') || linkHrefDescriptor.get.call(this); },
|
|
526
|
+
set(value) {
|
|
527
|
+
const source = String(value);
|
|
528
|
+
if (isRemoteResource(source)) {
|
|
529
|
+
this.setAttribute('data-dsh-bridge-source', source);
|
|
530
|
+
linkHrefDescriptor.set.call(this, 'about:blank');
|
|
531
|
+
} else linkHrefDescriptor.set.call(this, value);
|
|
532
|
+
},
|
|
533
|
+
});
|
|
534
|
+
}
|
|
535
|
+
const queueFragmentResources = (parentNode, fragment) => {
|
|
536
|
+
if (!fragment || fragment.nodeType !== 11 || !fragment.querySelectorAll) return false;
|
|
537
|
+
const resources = [...fragment.querySelectorAll('script[src],link[rel="stylesheet"][href]')].filter((node) => isRemoteScript(node) || isRemoteStyle(node));
|
|
538
|
+
if (resources.length === 0) return false;
|
|
539
|
+
for (const node of resources) {
|
|
540
|
+
const resourceParent = node.parentNode;
|
|
541
|
+
if (!resourceParent) continue;
|
|
542
|
+
nativeRemoveChild.call(resourceParent, node);
|
|
543
|
+
queueRemoteNode(parentNode, node, null, isRemoteScript(node) ? 'script' : 'style', isRemoteScript(node) ? 'src' : 'href');
|
|
544
|
+
}
|
|
545
|
+
return true;
|
|
546
|
+
};
|
|
547
|
+
Node.prototype.appendChild = function(node) {
|
|
548
|
+
if (isRemoteScript(node)) return queueRemoteNode(this, node, null, 'script', 'src');
|
|
549
|
+
if (isRemoteStyle(node)) return queueRemoteNode(this, node, null, 'style', 'href');
|
|
550
|
+
return nativeAppendChild.call(this, node);
|
|
551
|
+
};
|
|
552
|
+
Node.prototype.insertBefore = function(node, beforeNode) {
|
|
553
|
+
if (isRemoteScript(node)) return queueRemoteNode(this, node, beforeNode, 'script', 'src');
|
|
554
|
+
if (isRemoteStyle(node)) return queueRemoteNode(this, node, beforeNode, 'style', 'href');
|
|
555
|
+
return nativeInsertBefore.call(this, node, beforeNode);
|
|
556
|
+
};
|
|
557
|
+
Element.prototype.append = function(...nodes) {
|
|
558
|
+
for (const node of nodes) {
|
|
559
|
+
if (isRemoteScript(node)) queueRemoteNode(this, node, null, 'script', 'src');
|
|
560
|
+
else if (isRemoteStyle(node)) queueRemoteNode(this, node, null, 'style', 'href');
|
|
561
|
+
else if (queueFragmentResources(this, node)) nativeAppend.call(this, node);
|
|
562
|
+
else if (typeof node === 'string' && /<(?:script|link)\b/iu.test(node)) {
|
|
563
|
+
const template = document.createElement('template');
|
|
564
|
+
template.innerHTML = node;
|
|
565
|
+
for (const child of [...template.content.childNodes]) {
|
|
566
|
+
if (isRemoteScript(child)) queueRemoteNode(this, child, null, 'script', 'src');
|
|
567
|
+
else if (isRemoteStyle(child)) queueRemoteNode(this, child, null, 'style', 'href');
|
|
568
|
+
else nativeAppendChild.call(this, child);
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
else nativeAppend.call(this, node);
|
|
572
|
+
}
|
|
573
|
+
};
|
|
574
|
+
Element.prototype.prepend = function(...nodes) {
|
|
575
|
+
for (const node of [...nodes].reverse()) {
|
|
576
|
+
if (isRemoteScript(node)) queueRemoteNode(this, node, this.firstChild, 'script', 'src');
|
|
577
|
+
else if (isRemoteStyle(node)) queueRemoteNode(this, node, this.firstChild, 'style', 'href');
|
|
578
|
+
else if (queueFragmentResources(this, node)) nativePrepend.call(this, node);
|
|
579
|
+
else if (typeof node === 'string' && /<(?:script|link)\b/iu.test(node)) {
|
|
580
|
+
const template = document.createElement('template');
|
|
581
|
+
template.innerHTML = node;
|
|
582
|
+
for (const child of [...template.content.childNodes].reverse()) {
|
|
583
|
+
if (isRemoteScript(child)) queueRemoteNode(this, child, this.firstChild, 'script', 'src');
|
|
584
|
+
else if (isRemoteStyle(child)) queueRemoteNode(this, child, this.firstChild, 'style', 'href');
|
|
585
|
+
else nativeInsertBefore.call(this, child, this.firstChild);
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
else nativePrepend.call(this, node);
|
|
589
|
+
}
|
|
590
|
+
};
|
|
591
|
+
// 部分插件 loader 先把 script 放进 DocumentFragment,再一次性挂到 head。
|
|
592
|
+
// DocumentFragment 不继承 Element.prototype,这条路径必须单独接管。
|
|
593
|
+
DocumentFragment.prototype.append = function(...nodes) {
|
|
594
|
+
for (const node of nodes) {
|
|
595
|
+
if (isRemoteScript(node)) queueRemoteNode(this, node, null, 'script', 'src');
|
|
596
|
+
else if (isRemoteStyle(node)) queueRemoteNode(this, node, null, 'style', 'href');
|
|
597
|
+
else if (queueFragmentResources(this, node)) nativeFragmentAppend.call(this, node);
|
|
598
|
+
else nativeFragmentAppend.call(this, node);
|
|
599
|
+
}
|
|
600
|
+
};
|
|
601
|
+
DocumentFragment.prototype.prepend = function(...nodes) {
|
|
602
|
+
for (const node of [...nodes].reverse()) {
|
|
603
|
+
if (isRemoteScript(node)) queueRemoteNode(this, node, this.firstChild, 'script', 'src');
|
|
604
|
+
else if (isRemoteStyle(node)) queueRemoteNode(this, node, this.firstChild, 'style', 'href');
|
|
605
|
+
else if (queueFragmentResources(this, node)) nativeFragmentPrepend.call(this, node);
|
|
606
|
+
else nativeFragmentPrepend.call(this, node);
|
|
607
|
+
}
|
|
608
|
+
};
|
|
609
|
+
Element.prototype.replaceChildren = function(...nodes) {
|
|
610
|
+
const remoteNodes = nodes.filter((node) => isRemoteScript(node) || isRemoteStyle(node));
|
|
611
|
+
nativeReplaceChildren.call(this, ...nodes.filter((node) => !isRemoteScript(node) && !isRemoteStyle(node)));
|
|
612
|
+
for (const node of remoteNodes) queueRemoteNode(this, node, null, isRemoteScript(node) ? 'script' : 'style', isRemoteScript(node) ? 'src' : 'href');
|
|
613
|
+
};
|
|
614
|
+
Element.prototype.insertAdjacentHTML = function(position, html) {
|
|
615
|
+
if (typeof html !== 'string' || !/(?:<script\b|<link\b)/iu.test(html)) {
|
|
616
|
+
return nativeInsertAdjacentHTML.call(this, position, html);
|
|
617
|
+
}
|
|
618
|
+
const template = document.createElement('template');
|
|
619
|
+
template.innerHTML = html;
|
|
620
|
+
const target = position === 'beforebegin' || position === 'afterend' ? this.parentNode : this;
|
|
621
|
+
if (!target) return nativeInsertAdjacentHTML.call(this, position, html);
|
|
622
|
+
const children = [...template.content.childNodes];
|
|
623
|
+
const ordered = position === 'afterbegin' ? children.reverse() : children;
|
|
624
|
+
for (const child of ordered) {
|
|
625
|
+
if (isRemoteScript(child)) {
|
|
626
|
+
queueRemoteNode(target, child, position === 'beforebegin' ? this : position === 'afterbegin' ? this.firstChild : null, 'script', 'src');
|
|
627
|
+
} else if (isRemoteStyle(child)) {
|
|
628
|
+
queueRemoteNode(target, child, position === 'beforebegin' ? this : position === 'afterbegin' ? this.firstChild : null, 'style', 'href');
|
|
629
|
+
} else if (position === 'beforebegin') nativeInsertBefore.call(target, child, this);
|
|
630
|
+
else if (position === 'afterend') nativeInsertBefore.call(target, child, this.nextSibling);
|
|
631
|
+
else if (position === 'afterbegin') nativeInsertBefore.call(target, child, this.firstChild);
|
|
632
|
+
else nativeAppendChild.call(target, child);
|
|
633
|
+
}
|
|
634
|
+
};
|
|
635
|
+
const writeRemoteMarkup = (documentNode, html) => {
|
|
636
|
+
if (typeof html !== 'string' || !/(?:<script\b|<link\b)/iu.test(html)) return false;
|
|
637
|
+
const template = documentNode.createElement('template');
|
|
638
|
+
template.innerHTML = html;
|
|
639
|
+
const parent = documentNode.head || documentNode.documentElement;
|
|
640
|
+
for (const child of [...template.content.childNodes]) {
|
|
641
|
+
if (isRemoteScript(child)) queueRemoteNode(parent, child, null, 'script', 'src');
|
|
642
|
+
else if (isRemoteStyle(child)) queueRemoteNode(parent, child, null, 'style', 'href');
|
|
643
|
+
else nativeAppendChild.call(parent, child);
|
|
644
|
+
}
|
|
645
|
+
return true;
|
|
646
|
+
};
|
|
647
|
+
Document.prototype.write = function(html) {
|
|
648
|
+
if (!writeRemoteMarkup(this, html)) nativeDocumentWrite.call(this, html);
|
|
649
|
+
};
|
|
650
|
+
Document.prototype.writeln = function(html) {
|
|
651
|
+
if (!writeRemoteMarkup(this, html)) nativeDocumentWriteln.call(this, html);
|
|
652
|
+
};
|
|
653
|
+
const handleAddedNode = (node) => {
|
|
654
|
+
if (!node || node.nodeType !== 1) return;
|
|
655
|
+
if (isRemoteScript(node) || isRemoteStyle(node)) {
|
|
656
|
+
const parentNode = node.parentNode;
|
|
657
|
+
if (!parentNode) return;
|
|
658
|
+
nativeRemoveChild.call(parentNode, node);
|
|
659
|
+
queueRemoteNode(parentNode, node, null, isRemoteScript(node) ? 'script' : 'style', isRemoteScript(node) ? 'src' : 'href');
|
|
660
|
+
}
|
|
661
|
+
if (node.querySelectorAll) for (const child of node.querySelectorAll('script[src],link[rel="stylesheet"][href]')) handleAddedNode(child);
|
|
662
|
+
};
|
|
663
|
+
new MutationObserver((records) => {
|
|
664
|
+
for (const record of records) for (const node of record.addedNodes) handleAddedNode(node);
|
|
665
|
+
}).observe(document, { childList: true, subtree: true });
|
|
666
|
+
// 远程模式的 DSH Web 使用 memory persistence,欢迎声明在每次 iframe
|
|
667
|
+
// 重建时都会重新出现。通过点击 DSH 自己的确认按钮关闭它,既能让
|
|
668
|
+
// DSH 完成状态更新,也能触发 OnboardingModal 恢复 #root.inert。
|
|
669
|
+
const welcomeTitles = new Set(['内测声明', 'Welcome Notice', 'Beta Notice', 'Internal Testing Notice']);
|
|
670
|
+
const welcomeButtons = new Set(['继续', 'Continue']);
|
|
671
|
+
const normalizeText = (value) => String(value || '').replace(/\s+/gu, ' ').trim();
|
|
672
|
+
const welcomeTitle = (root) => normalizeText(root.querySelector('h1,h2,h3,[role="heading"],[data-testid="modal-title"]')?.textContent || root.getAttribute('aria-label'));
|
|
673
|
+
const welcomeRoots = () => {
|
|
674
|
+
const roots = new Set(document.querySelectorAll('[role="dialog"],dialog,[class*="onboardingOverlay"]'));
|
|
675
|
+
// 兼容没有 role/aria-modal 的旧版 Modal:从标题向上找到包含按钮的最近容器。
|
|
676
|
+
for (const heading of document.querySelectorAll('h1,h2,h3,[role="heading"]')) {
|
|
677
|
+
if (!welcomeTitles.has(normalizeText(heading.textContent))) continue;
|
|
678
|
+
let root = heading;
|
|
679
|
+
for (let depth = 0; depth < 8 && root; depth += 1, root = root.parentElement) {
|
|
680
|
+
if (root.querySelector('button')) {
|
|
681
|
+
roots.add(root);
|
|
682
|
+
break;
|
|
683
|
+
}
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
return roots;
|
|
687
|
+
};
|
|
688
|
+
const hideWelcomeRoot = (root) => {
|
|
689
|
+
root.setAttribute('hidden', '');
|
|
690
|
+
root.setAttribute('aria-hidden', 'true');
|
|
691
|
+
if (root instanceof HTMLElement) root.style.display = 'none';
|
|
692
|
+
// CSS 隐藏不会触发 DSH OnboardingModal 的 cleanup,必须同步解除 inert。
|
|
693
|
+
const appRoot = document.getElementById('root');
|
|
694
|
+
if (appRoot) appRoot.inert = false;
|
|
695
|
+
};
|
|
696
|
+
const acknowledgeRemoteWelcome = () => {
|
|
697
|
+
for (const root of welcomeRoots()) {
|
|
698
|
+
if (!welcomeTitles.has(welcomeTitle(root))) continue;
|
|
699
|
+
const button = [...root.querySelectorAll('button')].find((candidate) => !candidate.disabled && welcomeButtons.has(normalizeText(candidate.textContent)));
|
|
700
|
+
if (!button || button.dataset.dshAgentDoorAutoAcknowledged === '1') {
|
|
701
|
+
if (!button) hideWelcomeRoot(root);
|
|
702
|
+
continue;
|
|
703
|
+
}
|
|
704
|
+
button.dataset.dshAgentDoorAutoAcknowledged = '1';
|
|
705
|
+
// 等待当前 React 提交完成后再触发事件,确保 onClick 已经绑定。
|
|
706
|
+
queueMicrotask(() => {
|
|
707
|
+
if (button.isConnected && !button.disabled) button.click();
|
|
708
|
+
setTimeout(() => {
|
|
709
|
+
// 某些构建把 React 事件委托绑定放在 effect 中,首个 click 可能早于委托注册;
|
|
710
|
+
// 若弹窗仍在 DOM 中,补一次点击,仍未关闭则直接隐藏并解除 inert。
|
|
711
|
+
if (button.isConnected && !button.disabled) button.click();
|
|
712
|
+
if (root.isConnected) hideWelcomeRoot(root);
|
|
713
|
+
}, 0);
|
|
714
|
+
});
|
|
715
|
+
}
|
|
716
|
+
};
|
|
717
|
+
acknowledgeRemoteWelcome();
|
|
718
|
+
new MutationObserver(acknowledgeRemoteWelcome).observe(document, { childList: true, subtree: true });
|
|
719
|
+
addEventListener('message', (event) => {
|
|
720
|
+
const value = event.data;
|
|
721
|
+
if (!value || value.kind === undefined) return;
|
|
722
|
+
if (value.kind === 'dsh-web-response') {
|
|
723
|
+
const item = pending.get(value.id);
|
|
724
|
+
if (!item) return;
|
|
725
|
+
pending.delete(value.id);
|
|
726
|
+
if (value.ok === false) item.reject(new Error(value.error || 'Remote DSH Web 请求失败'));
|
|
727
|
+
else item.resolve(value);
|
|
728
|
+
}
|
|
729
|
+
if (value.kind === 'dsh-web-event') {
|
|
730
|
+
const item = pending.get(value.id);
|
|
731
|
+
if (item && value.type === 'error') item.reject(new Error(value.body || 'Remote DSH WebSocket 失败'));
|
|
732
|
+
const target = window.__dshRemoteSockets && window.__dshRemoteSockets.get(value.id);
|
|
733
|
+
if (target) {
|
|
734
|
+
if (value.type === 'message') target._emit?.('message', { data: value.body });
|
|
735
|
+
if (value.type === 'close') {
|
|
736
|
+
target.readyState = 3;
|
|
737
|
+
target._emit?.('close', new CloseEvent('close'));
|
|
738
|
+
}
|
|
739
|
+
if (value.type === 'error') target._emit?.('error', new Event('error'));
|
|
740
|
+
}
|
|
741
|
+
}
|
|
742
|
+
});
|
|
743
|
+
const originalFetch = window.fetch.bind(window);
|
|
744
|
+
window.fetch = async (input, init) => {
|
|
745
|
+
// DSH client-connection 使用 URL 对象调用 fetch;Request 则提供 url。
|
|
746
|
+
// 两者都必须保留原始路径,否则会把请求错误地转成 /undefined。
|
|
747
|
+
const url = typeof input === 'string'
|
|
748
|
+
? input
|
|
749
|
+
: input instanceof URL
|
|
750
|
+
? input.href
|
|
751
|
+
: input && typeof input.url === 'string'
|
|
752
|
+
? input.url
|
|
753
|
+
: String(input);
|
|
754
|
+
const parsed = new URL(url, resourceBase());
|
|
755
|
+
// DSH 官方 client-connection 使用 http://dsh.internal 作为逻辑 API 基址;
|
|
756
|
+
// 这是 iframe 内的虚拟地址,必须和 remote.invalid 一样转入 Web Tunnel,
|
|
757
|
+
// 不能让浏览器按真实网络请求处理并被 CSP 拦截。
|
|
758
|
+
if (parsed.origin === location.origin || parsed.origin === 'null' || parsed.origin === 'https://dsh.remote.invalid' || parsed.origin === 'http://dsh.internal') {
|
|
759
|
+
const request = typeof input === 'string' ? undefined : input;
|
|
760
|
+
const method = init?.method ?? request?.method;
|
|
761
|
+
const headers = init?.headers ?? request?.headers;
|
|
762
|
+
let body = typeof init?.body === 'string' ? init.body : undefined;
|
|
763
|
+
if (body === undefined && init?.body instanceof URLSearchParams) body = init.body.toString();
|
|
764
|
+
if (body === undefined && init === undefined && request && request.method !== 'GET' && request.method !== 'HEAD') {
|
|
765
|
+
body = await request.clone().text();
|
|
766
|
+
}
|
|
767
|
+
const response = await call('fetch', { path: parsed.pathname + parsed.search, method, headers: headers ? [...new Headers(headers).entries()] : undefined }, body);
|
|
768
|
+
return new Response(response.body, { status: response.status, headers: response.headers });
|
|
769
|
+
}
|
|
770
|
+
return originalFetch(input, init);
|
|
771
|
+
};
|
|
772
|
+
window.__dshRemoteSockets = new Map();
|
|
773
|
+
const RemoteWebSocket = class {
|
|
774
|
+
static CONNECTING = 0;
|
|
775
|
+
static OPEN = 1;
|
|
776
|
+
static CLOSING = 2;
|
|
777
|
+
static CLOSED = 3;
|
|
778
|
+
constructor(url) {
|
|
779
|
+
this.url = String(url);
|
|
780
|
+
this.readyState = RemoteWebSocket.CONNECTING;
|
|
781
|
+
this._listeners = new Map();
|
|
782
|
+
const allocated = allocateId('ws:', nextSocketId);
|
|
783
|
+
nextSocketId = allocated.counter;
|
|
784
|
+
window.__dshRemoteSockets.set(this._id = allocated.id, this);
|
|
785
|
+
bridgeLog('bridge.ws.open', { id: this._id, path: new URL(this.url, resourceBase()).pathname });
|
|
786
|
+
call('ws.open', { path: new URL(this.url, resourceBase()).pathname }, undefined, this._id).then(() => {
|
|
787
|
+
if (this.readyState !== RemoteWebSocket.CONNECTING) return;
|
|
788
|
+
this.readyState = RemoteWebSocket.OPEN;
|
|
789
|
+
bridgeLog('bridge.ws.open.response', { id: this._id });
|
|
790
|
+
this._emit('open', new Event('open'));
|
|
791
|
+
}).catch((error) => {
|
|
792
|
+
bridgeLog('bridge.ws.open.error', { id: this._id, error: error instanceof Error ? error.message : String(error) });
|
|
793
|
+
this.readyState = RemoteWebSocket.CLOSED;
|
|
794
|
+
this._emit('error', new Error(error));
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
send(value) {
|
|
798
|
+
if (this.readyState !== RemoteWebSocket.OPEN) throw new Error('WebSocket is not open');
|
|
799
|
+
bridgeLog('bridge.ws.send', { id: this._id, bytes: typeof value === 'string' ? new TextEncoder().encode(value).byteLength : value?.byteLength, encoding: typeof value === 'string' ? 'text' : 'binary' });
|
|
800
|
+
parent.postMessage({ kind: 'ws.send', id: this._id, body: typeof value === 'string' ? value : value }, '*');
|
|
801
|
+
}
|
|
802
|
+
close(code, reason) {
|
|
803
|
+
if (this.readyState === RemoteWebSocket.CLOSING || this.readyState === RemoteWebSocket.CLOSED) return;
|
|
804
|
+
this.readyState = RemoteWebSocket.CLOSING;
|
|
805
|
+
bridgeLog('bridge.ws.close', { id: this._id, code: code || 1000 });
|
|
806
|
+
parent.postMessage({ kind: 'ws.close', id: this._id, input: { code, reason } }, '*');
|
|
807
|
+
this.readyState = RemoteWebSocket.CLOSED;
|
|
808
|
+
this._emit('close', new CloseEvent('close', { code: code || 1000, reason: reason || '' }));
|
|
809
|
+
}
|
|
810
|
+
addEventListener(type, listener, options) {
|
|
811
|
+
const listeners = this._listeners.get(type) || [];
|
|
812
|
+
if (!listeners.some((item) => item.listener === listener)) listeners.push({ listener, once: options?.once === true });
|
|
813
|
+
this._listeners.set(type, listeners);
|
|
814
|
+
}
|
|
815
|
+
removeEventListener(type, listener) {
|
|
816
|
+
const listeners = this._listeners.get(type) || [];
|
|
817
|
+
this._listeners.set(type, listeners.filter((item) => item.listener !== listener));
|
|
818
|
+
}
|
|
819
|
+
_emit(type, event) {
|
|
820
|
+
const listeners = [...(this._listeners.get(type) || [])];
|
|
821
|
+
for (const item of listeners) {
|
|
822
|
+
try { item.listener.call(this, event); } catch (error) { setTimeout(() => { throw error; }, 0); }
|
|
823
|
+
if (item.once) this.removeEventListener(type, item.listener);
|
|
824
|
+
}
|
|
825
|
+
const handler = this['on' + type];
|
|
826
|
+
if (typeof handler === 'function') handler.call(this, event);
|
|
827
|
+
}
|
|
828
|
+
};
|
|
829
|
+
window.WebSocket = RemoteWebSocket;
|
|
830
|
+
const openRemoteStream = (endpoint, payload, signal) => {
|
|
831
|
+
const streamId = 'remote_' + String(++nextStreamId) + '_' + Math.random().toString(36).slice(2);
|
|
832
|
+
return (async function*() {
|
|
833
|
+
const socket = new RemoteWebSocket(new URL('/api/remote.mux', resourceBase()).href);
|
|
834
|
+
const frames = [];
|
|
835
|
+
let wake;
|
|
836
|
+
let ended = false;
|
|
837
|
+
let failure;
|
|
838
|
+
const notify = () => { const resolve = wake; wake = undefined; resolve?.(); };
|
|
839
|
+
const onMessage = (event) => {
|
|
840
|
+
try {
|
|
841
|
+
const frame = JSON.parse(String(event.data));
|
|
842
|
+
if (!frame || frame.streamId !== streamId) return;
|
|
843
|
+
if (frame.type === 'end') ended = true;
|
|
844
|
+
else if (frame.type === 'error') failure = new Error(frame.error?.message || '远程 DSH Stream 失败');
|
|
845
|
+
else if (frame.type === 'item') frames.push(frame.value);
|
|
846
|
+
notify();
|
|
847
|
+
} catch (error) {
|
|
848
|
+
failure = error instanceof Error ? error : new Error(String(error));
|
|
849
|
+
notify();
|
|
850
|
+
}
|
|
851
|
+
};
|
|
852
|
+
const onError = () => { failure = new Error('远程 DSH Stream WebSocket 失败'); notify(); };
|
|
853
|
+
const onAbort = () => { failure = signal.reason instanceof Error ? signal.reason : new Error('远程 DSH Stream 已取消'); notify(); };
|
|
854
|
+
socket.addEventListener('message', onMessage);
|
|
855
|
+
signal?.addEventListener('abort', onAbort, { once: true });
|
|
856
|
+
try {
|
|
857
|
+
await new Promise((resolve, reject) => {
|
|
858
|
+
const opened = () => resolve(undefined);
|
|
859
|
+
const failed = () => reject(new Error('远程 DSH Stream WebSocket 打开失败'));
|
|
860
|
+
socket.addEventListener('open', opened, { once: true });
|
|
861
|
+
socket.addEventListener('error', failed, { once: true });
|
|
862
|
+
});
|
|
863
|
+
socket.addEventListener('error', onError);
|
|
864
|
+
signal?.throwIfAborted();
|
|
865
|
+
socket.send(JSON.stringify({ type: 'open', streamId, endpoint, payload }));
|
|
866
|
+
while (!ended) {
|
|
867
|
+
if (failure) throw failure;
|
|
868
|
+
if (frames.length === 0) await new Promise((resolve) => { wake = resolve; });
|
|
869
|
+
while (frames.length > 0) yield frames.shift();
|
|
870
|
+
}
|
|
871
|
+
if (failure) throw failure;
|
|
872
|
+
} finally {
|
|
873
|
+
signal?.removeEventListener('abort', onAbort);
|
|
874
|
+
socket.close(1000, 'stream closed');
|
|
875
|
+
}
|
|
876
|
+
})();
|
|
877
|
+
};
|
|
878
|
+
const parentTransport = (() => {
|
|
879
|
+
try { return parent.__AGENT_DOOR_REMOTE_TRANSPORT__; } catch { return undefined; }
|
|
880
|
+
})();
|
|
881
|
+
const bridgedTransport = {
|
|
882
|
+
fetch: window.fetch.bind(window),
|
|
883
|
+
openStream: openRemoteStream,
|
|
884
|
+
// 仅作为 iframe 内 RemoteWebSocket 的虚拟基址,实际请求仍回到父窗口。
|
|
885
|
+
streamBaseUrl: resourceBase(),
|
|
886
|
+
// 声明 Host 所有权,保持原生设置存储可用。
|
|
887
|
+
ownsHost: true,
|
|
888
|
+
generation: parentTransport?.getGeneration?.bind(parentTransport),
|
|
889
|
+
onGenerationChange: parentTransport?.onGenerationChange?.bind(parentTransport),
|
|
890
|
+
reconnect: parentTransport?.reconnect?.bind(parentTransport),
|
|
891
|
+
close: parentTransport?.close?.bind(parentTransport),
|
|
892
|
+
};
|
|
893
|
+
// 远程 DSH Web 的启动页自带 Host 注入的 __DSH_TRANSPORT__ 行,它在本脚本之后
|
|
894
|
+
// 执行:直接赋值会覆盖桥接 Transport,丢掉 openStream 和 streamBaseUrl,让
|
|
895
|
+
// /api/remote.mux 退回 iframe 自己的 WebSocket(CSP connect-src 为 none),
|
|
896
|
+
// 会话列表和原生设置页面会一起加载失败。这里改为合并写入,后到的赋值只能补充
|
|
897
|
+
// 字段,桥接能力始终保留。
|
|
898
|
+
const mergeTransport = (next) => Object.assign(
|
|
899
|
+
{},
|
|
900
|
+
next !== null && typeof next === 'object' ? next : {},
|
|
901
|
+
bridgedTransport,
|
|
902
|
+
);
|
|
903
|
+
let transportValue = mergeTransport(globalThis.__DSH_TRANSPORT__);
|
|
904
|
+
try {
|
|
905
|
+
Object.defineProperty(globalThis, '__DSH_TRANSPORT__', {
|
|
906
|
+
configurable: true,
|
|
907
|
+
enumerable: true,
|
|
908
|
+
get: () => transportValue,
|
|
909
|
+
set: (next) => { transportValue = mergeTransport(next); },
|
|
910
|
+
});
|
|
911
|
+
} catch {
|
|
912
|
+
// 同名属性不可配置时退化为一次合并赋值,同样保留桥接字段。
|
|
913
|
+
globalThis.__DSH_TRANSPORT__ = mergeTransport(globalThis.__DSH_TRANSPORT__);
|
|
914
|
+
}
|
|
915
|
+
globalThis.__AGENT_DOOR_DEBUG__ = (event, fields = {}) => {
|
|
916
|
+
bridgeLog('client.' + String(event), fields);
|
|
917
|
+
};
|
|
918
|
+
const NativeEventSource = globalThis.EventSource;
|
|
919
|
+
class RemoteEventSource {
|
|
920
|
+
static CONNECTING = 0;
|
|
921
|
+
static OPEN = 1;
|
|
922
|
+
static CLOSED = 2;
|
|
923
|
+
constructor(url) {
|
|
924
|
+
this.url = String(url);
|
|
925
|
+
this.readyState = 0;
|
|
926
|
+
this.withCredentials = false;
|
|
927
|
+
this._listeners = new Map();
|
|
928
|
+
const path = new URL(this.url, resourceBase()).pathname;
|
|
929
|
+
// HMR 的 /plugins/events 只负责开发期热更新;远程 Web 通过 Tunnel
|
|
930
|
+
// 运行时没有可用的 SSE 端点,模拟已打开的空事件源即可避免它触发
|
|
931
|
+
// DSH 主连接的重试逻辑。其它 EventSource 仍交给原生实现。
|
|
932
|
+
if (path === '/plugins/events') {
|
|
933
|
+
queueMicrotask(() => {
|
|
934
|
+
this.readyState = 1;
|
|
935
|
+
this._emit('open', new Event('open'));
|
|
936
|
+
});
|
|
937
|
+
return;
|
|
938
|
+
}
|
|
939
|
+
if (typeof NativeEventSource !== 'function') throw new Error('远程 DSH Web 不支持 EventSource');
|
|
940
|
+
this._native = new NativeEventSource(this.url);
|
|
941
|
+
this.readyState = this._native.readyState;
|
|
942
|
+
}
|
|
943
|
+
addEventListener(type, listener) {
|
|
944
|
+
const list = this._listeners.get(type) || [];
|
|
945
|
+
list.push(listener);
|
|
946
|
+
this._listeners.set(type, list);
|
|
947
|
+
this._native?.addEventListener(type, listener);
|
|
948
|
+
}
|
|
949
|
+
removeEventListener(type, listener) {
|
|
950
|
+
const list = this._listeners.get(type) || [];
|
|
951
|
+
this._listeners.set(type, list.filter((item) => item !== listener));
|
|
952
|
+
this._native?.removeEventListener(type, listener);
|
|
953
|
+
}
|
|
954
|
+
_emit(type, event) {
|
|
955
|
+
for (const listener of this._listeners.get(type) || []) listener.call(this, event);
|
|
956
|
+
const handler = this['on' + type];
|
|
957
|
+
if (typeof handler === 'function') handler.call(this, event);
|
|
958
|
+
}
|
|
959
|
+
close() {
|
|
960
|
+
this.readyState = 2;
|
|
961
|
+
this._native?.close();
|
|
962
|
+
}
|
|
963
|
+
}
|
|
964
|
+
globalThis.EventSource = RemoteEventSource;
|
|
965
|
+
})();`;
|
|
966
|
+
}
|
|
967
|
+
function resolveRemotePath(value) {
|
|
968
|
+
const parsed = new URL(value, 'https://dsh.remote.invalid');
|
|
969
|
+
if (parsed.origin !== 'https://dsh.remote.invalid' || parsed.pathname.includes('..'))
|
|
970
|
+
throw new Error('远程 DSH Web 路径无效');
|
|
971
|
+
return parsed.pathname + parsed.search;
|
|
972
|
+
}
|
|
973
|
+
/**
|
|
974
|
+
* DSH Web 原本的 CSP 面向真实站点;srcdoc 中的插件代码已经被搬到 Blob,
|
|
975
|
+
* 动态请求也由父页面 Tunnel 代理,因此必须把不再成立的站点限制换成
|
|
976
|
+
* 适用于沙箱 iframe 的策略。connect-src 保持关闭,防止页面绕过 bridge 直连。
|
|
977
|
+
*/
|
|
978
|
+
function relaxRemoteContentSecurityPolicy(documentValue) {
|
|
979
|
+
const policy = "default-src 'self' blob: data:; script-src 'self' blob: data: 'unsafe-inline' 'unsafe-eval'; style-src 'self' blob: data: 'unsafe-inline'; img-src 'self' blob: data:; font-src 'self' blob: data:; media-src 'self' blob: data:; worker-src 'self' blob:; connect-src 'none'; frame-src 'self' blob: data:";
|
|
980
|
+
for (const node of documentValue.querySelectorAll('meta[http-equiv]')) {
|
|
981
|
+
if ((node.getAttribute('http-equiv') ?? '').toLowerCase() === 'content-security-policy')
|
|
982
|
+
node.setAttribute('content', policy);
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
function isRecord(value) { return typeof value === 'object' && value !== null && !Array.isArray(value); }
|
|
986
|
+
function toBytes(value) {
|
|
987
|
+
if (value instanceof Uint8Array)
|
|
988
|
+
return value;
|
|
989
|
+
if (value instanceof ArrayBuffer)
|
|
990
|
+
return new Uint8Array(value);
|
|
991
|
+
if (ArrayBuffer.isView(value))
|
|
992
|
+
return new Uint8Array(value.buffer.slice(value.byteOffset, value.byteOffset + value.byteLength));
|
|
993
|
+
throw new TypeError('远程 WebSocket 消息必须是二进制或字符串');
|
|
994
|
+
}
|
|
995
|
+
function decodeText(value) {
|
|
996
|
+
if (!(value instanceof Uint8Array))
|
|
997
|
+
throw new TypeError('远程 DSH Web 资源必须是二进制');
|
|
998
|
+
return new TextDecoder().decode(value);
|
|
999
|
+
}
|
|
1000
|
+
function collectRelativeReferences(source, suffix) {
|
|
1001
|
+
const found = new Set();
|
|
1002
|
+
const pattern = /["'`]((?:\.\.?\/)[^"'`]+)["'`]/gu;
|
|
1003
|
+
for (const match of source.matchAll(pattern)) {
|
|
1004
|
+
const reference = match[1];
|
|
1005
|
+
if (reference !== undefined && suffix.test(reference))
|
|
1006
|
+
found.add(reference);
|
|
1007
|
+
}
|
|
1008
|
+
return [...found];
|
|
1009
|
+
}
|
|
1010
|
+
function collectCssReferences(source, suffix) {
|
|
1011
|
+
const found = new Set();
|
|
1012
|
+
const pattern = /url\(\s*(?:"([^"]+)"|'([^']+)'|([^)'\s]+))\s*\)/gu;
|
|
1013
|
+
for (const match of source.matchAll(pattern)) {
|
|
1014
|
+
const reference = match[1] ?? match[2] ?? match[3];
|
|
1015
|
+
if (reference?.startsWith('./') === true || reference?.startsWith('../') === true) {
|
|
1016
|
+
if (suffix.test(reference))
|
|
1017
|
+
found.add(reference);
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
return [...found];
|
|
1021
|
+
}
|
|
1022
|
+
function resolveRelativeAssetPath(sourcePath, reference) {
|
|
1023
|
+
const resolved = new URL(reference, `https://dsh.remote.invalid${sourcePath}`);
|
|
1024
|
+
return resolveRemotePath(resolved.pathname + resolved.search);
|
|
1025
|
+
}
|
|
1026
|
+
function contentTypeForPath(path) {
|
|
1027
|
+
if (/\.woff2?(?:$|\?)/u.test(path))
|
|
1028
|
+
return 'font/woff';
|
|
1029
|
+
if (/\.ttf(?:$|\?)/u.test(path))
|
|
1030
|
+
return 'font/ttf';
|
|
1031
|
+
if (/\.svg(?:$|\?)/u.test(path))
|
|
1032
|
+
return 'image/svg+xml';
|
|
1033
|
+
if (/\.png(?:$|\?)/u.test(path))
|
|
1034
|
+
return 'image/png';
|
|
1035
|
+
return 'application/octet-stream';
|
|
1036
|
+
}
|
|
1037
|
+
//# sourceMappingURL=remote-web-context.js.map
|