@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,1171 @@
|
|
|
1
|
+
import { randomUUID } from 'node:crypto';
|
|
2
|
+
import { debugInfo, debugWarn } from '../../shared/debug.js';
|
|
3
|
+
/**
|
|
4
|
+
* 持久终端生命周期服务。
|
|
5
|
+
*
|
|
6
|
+
* store 决定“终端是什么”,runtime manager 决定“当前如何连上它”。插件停用时
|
|
7
|
+
* dispose 只释放后者;只有 close 会调用 backend.terminate。
|
|
8
|
+
*/
|
|
9
|
+
export class AgentDoorTerminalService {
|
|
10
|
+
store;
|
|
11
|
+
runtimes;
|
|
12
|
+
now;
|
|
13
|
+
controllers = new Map();
|
|
14
|
+
residents = new Map();
|
|
15
|
+
residentPromises = new Map();
|
|
16
|
+
/** resident 断线重连期间暂存恢复任务,输入和 resize 必须等待它完成。 */
|
|
17
|
+
residentRecoveryPromises = new Map();
|
|
18
|
+
followers = new Map();
|
|
19
|
+
operations = new Map();
|
|
20
|
+
exitCallbacks = new Map();
|
|
21
|
+
historyReflowTimers = new Map();
|
|
22
|
+
initialized = false;
|
|
23
|
+
constructor(store, runtimes, now = () => new Date()) {
|
|
24
|
+
this.store = store;
|
|
25
|
+
this.runtimes = runtimes;
|
|
26
|
+
this.now = now;
|
|
27
|
+
}
|
|
28
|
+
async initialize() {
|
|
29
|
+
if (this.initialized)
|
|
30
|
+
return;
|
|
31
|
+
await this.store.load();
|
|
32
|
+
this.initialized = true;
|
|
33
|
+
debugInfo('dsh-agentdoor: terminal service initialized', {
|
|
34
|
+
recordCount: this.store.list().length,
|
|
35
|
+
records: this.store.list().map(recordSummary),
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
supportsRuntimeType(runtimeType) {
|
|
39
|
+
return this.runtimes.supports(runtimeType);
|
|
40
|
+
}
|
|
41
|
+
resolveRuntimeType(runtimeType) {
|
|
42
|
+
if (this.runtimes.supports(runtimeType))
|
|
43
|
+
return runtimeType;
|
|
44
|
+
if (this.runtimes.supports('local-pty'))
|
|
45
|
+
return 'local-pty';
|
|
46
|
+
return runtimeType;
|
|
47
|
+
}
|
|
48
|
+
list(scope) {
|
|
49
|
+
this.requireInitialized();
|
|
50
|
+
return this.store.list(scope)
|
|
51
|
+
.filter((record) => record.state !== 'closed')
|
|
52
|
+
.map((record) => this.info(record));
|
|
53
|
+
}
|
|
54
|
+
/** 兼容旧调用名;真正的持久归属只按 Host + workspace 查询。 */
|
|
55
|
+
listSession(hostId, dshSessionId, workspaceId) {
|
|
56
|
+
this.requireInitialized();
|
|
57
|
+
if (workspaceId !== undefined)
|
|
58
|
+
return this.listWorkspace(hostId, workspaceId);
|
|
59
|
+
return this.store.list()
|
|
60
|
+
.filter((record) => record.hostId === hostId && record.dshSessionId === dshSessionId && record.state !== 'closed')
|
|
61
|
+
.map((record) => this.info(record));
|
|
62
|
+
}
|
|
63
|
+
listWorkspace(hostId, workspaceId) {
|
|
64
|
+
this.requireInitialized();
|
|
65
|
+
return this.store.list({ hostId, workspaceId })
|
|
66
|
+
.filter((record) => record.state !== 'closed')
|
|
67
|
+
.map((record) => this.info(record));
|
|
68
|
+
}
|
|
69
|
+
findIdentity(hostId, dshSessionId, terminalId, workspaceId) {
|
|
70
|
+
this.requireInitialized();
|
|
71
|
+
const matches = this.store.list().filter((record) => record.hostId === hostId
|
|
72
|
+
&& (workspaceId === undefined ? record.dshSessionId === dshSessionId : record.workspaceId === workspaceId)
|
|
73
|
+
&& record.terminalId === terminalId
|
|
74
|
+
&& record.state !== 'closed');
|
|
75
|
+
if (matches.length !== 1)
|
|
76
|
+
throw new TerminalServiceError('TERMINAL_UNAVAILABLE', '终端不存在或作用域不唯一');
|
|
77
|
+
const record = matches[0];
|
|
78
|
+
return {
|
|
79
|
+
hostId: record.hostId,
|
|
80
|
+
workspaceId: record.workspaceId,
|
|
81
|
+
dshSessionId,
|
|
82
|
+
terminalId: record.terminalId,
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
async create(input) {
|
|
86
|
+
this.requireInitialized();
|
|
87
|
+
validateTerminalId(input.terminalId);
|
|
88
|
+
validateSize(input.cols, input.rows);
|
|
89
|
+
const identity = { ...input.scope, terminalId: input.terminalId };
|
|
90
|
+
debugInfo('dsh-agentdoor: terminal service create start', {
|
|
91
|
+
identity,
|
|
92
|
+
runtimeType: input.runtimeType,
|
|
93
|
+
shellProfileId: input.shell.profileId,
|
|
94
|
+
cols: input.cols,
|
|
95
|
+
rows: input.rows,
|
|
96
|
+
});
|
|
97
|
+
return this.enqueue(identity, async () => {
|
|
98
|
+
const existing = this.store.get(identity);
|
|
99
|
+
debugInfo('dsh-agentdoor: terminal service create queued', {
|
|
100
|
+
identity,
|
|
101
|
+
existing: existing === undefined ? null : recordSummary(existing),
|
|
102
|
+
});
|
|
103
|
+
if (existing !== undefined) {
|
|
104
|
+
if (existing.state === 'closed' || existing.state === 'closing') {
|
|
105
|
+
throw new TerminalServiceError('TERMINAL_UNAVAILABLE', '终端已关闭,不能复用相同标识');
|
|
106
|
+
}
|
|
107
|
+
const runtime = await this.runtimes.inspect(existing);
|
|
108
|
+
debugInfo('dsh-agentdoor: terminal service create existing inspect', {
|
|
109
|
+
identity,
|
|
110
|
+
record: recordSummary(existing),
|
|
111
|
+
runtime: runtimeSummary(runtime),
|
|
112
|
+
});
|
|
113
|
+
if (runtime.alive) {
|
|
114
|
+
const running = existing.state === 'running'
|
|
115
|
+
? existing
|
|
116
|
+
: await this.update(existing, { state: 'running', error: '' });
|
|
117
|
+
try {
|
|
118
|
+
await this.ensureResident(running);
|
|
119
|
+
}
|
|
120
|
+
catch (error) {
|
|
121
|
+
debugWarn('dsh-agentdoor: terminal resident connection warmup failed', {
|
|
122
|
+
identity,
|
|
123
|
+
error: errorMessage(error),
|
|
124
|
+
});
|
|
125
|
+
}
|
|
126
|
+
return this.info(running);
|
|
127
|
+
}
|
|
128
|
+
// 运行时确实没了:同一个 terminalId 允许重建,这样 Sidebar 标签、标题和
|
|
129
|
+
// 尺寸都能保留。旧实现只把记录标成 lost 再抛错,用户点"重建终端"永远失败。
|
|
130
|
+
return this.rebuild(existing, input);
|
|
131
|
+
}
|
|
132
|
+
const timestamp = this.now().toISOString();
|
|
133
|
+
const record = {
|
|
134
|
+
...input.scope,
|
|
135
|
+
terminalId: input.terminalId,
|
|
136
|
+
runtimeSessionKey: randomUUID(),
|
|
137
|
+
runtimeType: input.runtimeType,
|
|
138
|
+
shellPath: input.shell.path,
|
|
139
|
+
shellProfileId: input.shell.profileId,
|
|
140
|
+
shellName: input.shell.name,
|
|
141
|
+
shellArgs: [...input.shell.args],
|
|
142
|
+
...(input.commandPath === undefined ? {} : { commandPath: input.commandPath }),
|
|
143
|
+
...(input.commandArgs === undefined ? {} : { commandArgs: [...input.commandArgs] }),
|
|
144
|
+
...(input.commandEnv === undefined ? {} : { commandEnv: { ...input.commandEnv } }),
|
|
145
|
+
...(input.launchProfileId === undefined ? {} : { launchProfileId: input.launchProfileId }),
|
|
146
|
+
cwd: input.cwd,
|
|
147
|
+
title: input.title?.trim() || input.shell.name,
|
|
148
|
+
cols: input.cols,
|
|
149
|
+
rows: input.rows,
|
|
150
|
+
state: 'starting',
|
|
151
|
+
exitCode: null,
|
|
152
|
+
createdAt: timestamp,
|
|
153
|
+
updatedAt: timestamp,
|
|
154
|
+
};
|
|
155
|
+
await this.store.put(record);
|
|
156
|
+
debugInfo('dsh-agentdoor: terminal service record starting', { record: recordSummary(record) });
|
|
157
|
+
try {
|
|
158
|
+
const runtime = await this.runtimes.create(record);
|
|
159
|
+
debugInfo('dsh-agentdoor: terminal service runtime created', {
|
|
160
|
+
identity,
|
|
161
|
+
runtime: runtimeSummary(runtime),
|
|
162
|
+
});
|
|
163
|
+
if (!runtime.alive)
|
|
164
|
+
throw new Error('backend 创建后未报告存活状态');
|
|
165
|
+
if (input.onExit !== undefined)
|
|
166
|
+
this.exitCallbacks.set(identityKey(identity), input.onExit);
|
|
167
|
+
const running = await this.update(record, { state: 'running', error: '' });
|
|
168
|
+
// 常驻连接同时承担自然退出监听。这样普通终端和启动项终端都使用同一
|
|
169
|
+
// 条 Host 内存连接,浏览器 follow 不再反复创建 backend attach。
|
|
170
|
+
try {
|
|
171
|
+
await this.ensureResident(running);
|
|
172
|
+
}
|
|
173
|
+
catch (error) {
|
|
174
|
+
debugWarn('dsh-agentdoor: terminal resident connection warmup failed', {
|
|
175
|
+
identity,
|
|
176
|
+
error: errorMessage(error),
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
debugInfo('dsh-agentdoor: terminal service create success', { record: recordSummary(running) });
|
|
180
|
+
return this.info(running);
|
|
181
|
+
}
|
|
182
|
+
catch (error) {
|
|
183
|
+
this.exitCallbacks.delete(identityKey(identity));
|
|
184
|
+
const message = errorMessage(error);
|
|
185
|
+
debugWarn('dsh-agentdoor: terminal service create failed', {
|
|
186
|
+
identity,
|
|
187
|
+
record: recordSummary(record),
|
|
188
|
+
error: message,
|
|
189
|
+
});
|
|
190
|
+
await this.update(record, { state: 'error', error: message });
|
|
191
|
+
throw error;
|
|
192
|
+
}
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/** 返回 Host 侧完整记录,供进程服务读取 runtimeSessionKey 和运行身份。 */
|
|
196
|
+
getRecord(identity) {
|
|
197
|
+
this.requireInitialized();
|
|
198
|
+
return this.store.get(identity);
|
|
199
|
+
}
|
|
200
|
+
/**
|
|
201
|
+
* 用同一个 terminalId 重建已经丢失的运行时。
|
|
202
|
+
*
|
|
203
|
+
* 保留 cwd、标题、shell 与工作区归属,只换一个新的 runtimeSessionKey;旧的
|
|
204
|
+
* tmux 会话/PTY 已经不存在,先按幂等方式清理一次再创建。
|
|
205
|
+
*/
|
|
206
|
+
async rebuild(existing, input) {
|
|
207
|
+
await this.update(existing, { state: 'lost', error: '持久终端运行时不存在' });
|
|
208
|
+
// 重建会更换 runtimeSessionKey;旧 resident 即使 backend 已经丢失,也不能
|
|
209
|
+
// 留在内存映射里,否则后面的 ensureResident 会把新终端绑定到旧订阅。
|
|
210
|
+
await this.releaseResident(identityOfRecord(existing));
|
|
211
|
+
try {
|
|
212
|
+
await this.runtimes.terminate(existing);
|
|
213
|
+
}
|
|
214
|
+
catch { /* 旧运行时已经不存在 */ }
|
|
215
|
+
await this.runtimes.detachTerminal(existing);
|
|
216
|
+
this.exitCallbacks.delete(identityKey(existing));
|
|
217
|
+
const identity = { ...input.scope, terminalId: existing.terminalId };
|
|
218
|
+
const timestamp = this.now().toISOString();
|
|
219
|
+
const record = {
|
|
220
|
+
...existing,
|
|
221
|
+
...input.scope,
|
|
222
|
+
runtimeSessionKey: randomUUID(),
|
|
223
|
+
runtimeType: input.runtimeType,
|
|
224
|
+
shellPath: input.shell.path,
|
|
225
|
+
shellProfileId: input.shell.profileId,
|
|
226
|
+
shellName: input.shell.name,
|
|
227
|
+
shellArgs: [...input.shell.args],
|
|
228
|
+
...(input.commandPath === undefined ? {} : { commandPath: input.commandPath }),
|
|
229
|
+
...(input.commandArgs === undefined ? {} : { commandArgs: [...input.commandArgs] }),
|
|
230
|
+
...(input.commandEnv === undefined ? {} : { commandEnv: { ...input.commandEnv } }),
|
|
231
|
+
...(input.launchProfileId === undefined ? {} : { launchProfileId: input.launchProfileId }),
|
|
232
|
+
cwd: input.cwd,
|
|
233
|
+
title: input.title?.trim() || existing.title,
|
|
234
|
+
cols: input.cols,
|
|
235
|
+
rows: input.rows,
|
|
236
|
+
state: 'starting',
|
|
237
|
+
exitCode: null,
|
|
238
|
+
error: '',
|
|
239
|
+
updatedAt: timestamp,
|
|
240
|
+
};
|
|
241
|
+
await this.store.put(record);
|
|
242
|
+
try {
|
|
243
|
+
const runtime = await this.runtimes.create(record);
|
|
244
|
+
if (!runtime.alive)
|
|
245
|
+
throw new Error('backend 重建后未报告存活状态');
|
|
246
|
+
if (input.onExit !== undefined)
|
|
247
|
+
this.exitCallbacks.set(identityKey(identity), input.onExit);
|
|
248
|
+
const running = await this.update(record, { state: 'running', error: '' });
|
|
249
|
+
try {
|
|
250
|
+
await this.ensureResident(running);
|
|
251
|
+
}
|
|
252
|
+
catch (error) {
|
|
253
|
+
debugWarn('dsh-agentdoor: terminal resident connection warmup failed', {
|
|
254
|
+
identity,
|
|
255
|
+
error: errorMessage(error),
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
return this.info(running);
|
|
259
|
+
}
|
|
260
|
+
catch (error) {
|
|
261
|
+
this.exitCallbacks.delete(identityKey(identity));
|
|
262
|
+
await this.update(record, { state: 'error', error: errorMessage(error) });
|
|
263
|
+
throw error;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
async inspect(identity) {
|
|
267
|
+
const record = this.getRecord(identity);
|
|
268
|
+
if (record === undefined)
|
|
269
|
+
throw new TerminalServiceError('TERMINAL_UNAVAILABLE', '终端不存在');
|
|
270
|
+
return this.runtimes.inspect(record);
|
|
271
|
+
}
|
|
272
|
+
async recover() {
|
|
273
|
+
this.requireInitialized();
|
|
274
|
+
for (const record of this.store.list()) {
|
|
275
|
+
if (record.state === 'closed' || record.state === 'exited')
|
|
276
|
+
continue;
|
|
277
|
+
await this.enqueue(record, async () => {
|
|
278
|
+
const current = this.store.get(record);
|
|
279
|
+
if (current === undefined || current.state === 'closed')
|
|
280
|
+
return;
|
|
281
|
+
if (current.state === 'closing') {
|
|
282
|
+
await this.releaseResident(identityOfRecord(current));
|
|
283
|
+
await this.runtimes.terminate(current);
|
|
284
|
+
await this.runtimes.detachTerminal(current);
|
|
285
|
+
await this.update(current, { state: 'closed', exitCode: null, error: '' });
|
|
286
|
+
return;
|
|
287
|
+
}
|
|
288
|
+
try {
|
|
289
|
+
const identity = await this.runtimes.inspect(current);
|
|
290
|
+
if (identity.alive) {
|
|
291
|
+
await this.update(current, { state: 'running', error: '' });
|
|
292
|
+
// 恢复阶段提前建立常驻连接,用户第一次点击终端时直接收到已有状态。
|
|
293
|
+
try {
|
|
294
|
+
await this.ensureResident(this.store.get(current) ?? current);
|
|
295
|
+
}
|
|
296
|
+
catch (error) {
|
|
297
|
+
debugWarn('dsh-agentdoor: terminal resident connection restore failed', {
|
|
298
|
+
identity: identityOfRecord(current),
|
|
299
|
+
error: errorMessage(error),
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
return;
|
|
303
|
+
}
|
|
304
|
+
// 运行时不在了:有真实退出码才算 exited,否则只能报告 lost。
|
|
305
|
+
// 少了这一步,DSH 重启后会把"用户已经退出的终端"一直显示成丢失。
|
|
306
|
+
await this.update(current, identity.exitCode === undefined || identity.exitCode === null
|
|
307
|
+
? { state: 'lost', exitCode: null, error: identity.detail ?? '持久终端运行时不存在' }
|
|
308
|
+
: { state: 'exited', exitCode: identity.exitCode, error: '' });
|
|
309
|
+
}
|
|
310
|
+
catch (error) {
|
|
311
|
+
await this.update(current, { state: 'error', error: errorMessage(error) });
|
|
312
|
+
}
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
}
|
|
316
|
+
async *retain(identity, signal) {
|
|
317
|
+
this.requireAvailable(identity);
|
|
318
|
+
signal.throwIfAborted();
|
|
319
|
+
yield { type: 'retained' };
|
|
320
|
+
await untilAborted(signal);
|
|
321
|
+
}
|
|
322
|
+
async *follow(input) {
|
|
323
|
+
const record = this.requireAvailable(input.identity);
|
|
324
|
+
debugInfo('dsh-agentdoor: terminal service follow start', {
|
|
325
|
+
identity: input.identity,
|
|
326
|
+
attachmentId: input.attachmentId,
|
|
327
|
+
generation: input.generation,
|
|
328
|
+
record: recordSummary(record),
|
|
329
|
+
});
|
|
330
|
+
const key = identityKey(input.identity);
|
|
331
|
+
// create/recover 通常已经建立 resident;旧记录或连接抖动时在这里补建一次。
|
|
332
|
+
await this.ensureResident(record);
|
|
333
|
+
const resident = this.residents.get(key);
|
|
334
|
+
if (resident === undefined)
|
|
335
|
+
throw new TerminalServiceError('TERMINAL_RUNTIME_LOST', '终端常驻连接不可用');
|
|
336
|
+
const queue = new TerminalFrameQueue(2 * 1024 * 1024);
|
|
337
|
+
const follower = { attachmentId: input.attachmentId, generation: input.generation, queue };
|
|
338
|
+
// resident 已经存在时不再等待 backend attach;先从 tmux server 读取完整历史,
|
|
339
|
+
// 这样第一帧能真正填充 xterm scrollback,而不是只重放当前屏幕。
|
|
340
|
+
// 如果把它当作 output 增量发送,切换会话或 resident 重连时会把整屏再次追加,
|
|
341
|
+
// 造成 prompt 重复和 ANSI 内容错位。
|
|
342
|
+
let snapshot = resident.replay;
|
|
343
|
+
try {
|
|
344
|
+
const captured = await this.runtimes.captureHistory(record, RESIDENT_HISTORY_LINES);
|
|
345
|
+
if (captured !== undefined && (captured.length > 0 || snapshot.length === 0)) {
|
|
346
|
+
resident.replay = captured;
|
|
347
|
+
snapshot = captured;
|
|
348
|
+
debugInfo('dsh-agentdoor: terminal history snapshot ready', {
|
|
349
|
+
identity: input.identity,
|
|
350
|
+
source: 'runtime-capture',
|
|
351
|
+
historyLines: countLines(captured),
|
|
352
|
+
historyCharacters: captured.length,
|
|
353
|
+
});
|
|
354
|
+
}
|
|
355
|
+
else {
|
|
356
|
+
debugInfo('dsh-agentdoor: terminal history snapshot fallback', {
|
|
357
|
+
identity: input.identity,
|
|
358
|
+
source: 'resident-replay',
|
|
359
|
+
replayCharacters: snapshot.length,
|
|
360
|
+
});
|
|
361
|
+
}
|
|
362
|
+
}
|
|
363
|
+
catch (error) {
|
|
364
|
+
debugWarn('dsh-agentdoor: terminal history capture failed, using resident replay', {
|
|
365
|
+
identity: input.identity,
|
|
366
|
+
error: errorMessage(error),
|
|
367
|
+
replayCharacters: snapshot.length,
|
|
368
|
+
});
|
|
369
|
+
}
|
|
370
|
+
// 历史读取期间不登记 follower,避免极短竞态把 output 排在 snapshot 之前。
|
|
371
|
+
snapshot = resident.replay;
|
|
372
|
+
this.addFollower(key, follower);
|
|
373
|
+
this.addController(key, input.attachmentId, {
|
|
374
|
+
attachmentId: input.attachmentId,
|
|
375
|
+
subscriptionId: resident.subscriptionId,
|
|
376
|
+
generation: input.generation,
|
|
377
|
+
});
|
|
378
|
+
queue.pushSnapshot(this.info(record, input.attachmentId), snapshot);
|
|
379
|
+
queue.pushState(this.info(record, input.attachmentId));
|
|
380
|
+
try {
|
|
381
|
+
debugInfo('dsh-agentdoor: terminal service follow subscribed', {
|
|
382
|
+
identity: input.identity,
|
|
383
|
+
attachmentId: input.attachmentId,
|
|
384
|
+
residentSubscriptionId: resident.subscriptionId,
|
|
385
|
+
residentRuntimeAttachmentId: resident.runtimeAttachmentId,
|
|
386
|
+
});
|
|
387
|
+
const abort = () => queue.finish();
|
|
388
|
+
input.signal.addEventListener('abort', abort, { once: true });
|
|
389
|
+
if (input.signal.aborted)
|
|
390
|
+
abort();
|
|
391
|
+
yield* queue.read();
|
|
392
|
+
input.signal.removeEventListener('abort', abort);
|
|
393
|
+
}
|
|
394
|
+
finally {
|
|
395
|
+
this.removeFollower(key, follower);
|
|
396
|
+
this.removeController(key, input.attachmentId);
|
|
397
|
+
debugInfo('dsh-agentdoor: terminal service follow unsubscribed', {
|
|
398
|
+
identity: input.identity,
|
|
399
|
+
attachmentId: input.attachmentId,
|
|
400
|
+
residentSubscriptionId: resident.subscriptionId,
|
|
401
|
+
});
|
|
402
|
+
}
|
|
403
|
+
}
|
|
404
|
+
async write(identity, attachmentId, data) {
|
|
405
|
+
const controller = await this.waitForController(identity, attachmentId);
|
|
406
|
+
await this.runtimes.write(controller.subscriptionId, data);
|
|
407
|
+
}
|
|
408
|
+
/** Host 内部向持久终端发送一次输入,不改变浏览器 attach 控制权。 */
|
|
409
|
+
async writeInitialInput(identity, data) {
|
|
410
|
+
if (data.length === 0)
|
|
411
|
+
throw new TypeError('终端输入不能为空');
|
|
412
|
+
this.requireInitialized();
|
|
413
|
+
await this.enqueue(identity, async () => {
|
|
414
|
+
const record = this.requireAvailable(identity);
|
|
415
|
+
const resident = this.residents.get(identityKey(identity));
|
|
416
|
+
if (resident !== undefined) {
|
|
417
|
+
await this.runtimes.write(resident.subscriptionId, data);
|
|
418
|
+
return;
|
|
419
|
+
}
|
|
420
|
+
await this.runtimes.writeSession(record, data);
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
async readOutput(identity, maxBytes) {
|
|
424
|
+
if (!Number.isSafeInteger(maxBytes) || maxBytes < 1 || maxBytes > 64 * 1024) {
|
|
425
|
+
throw new TypeError('终端读取长度超出允许范围');
|
|
426
|
+
}
|
|
427
|
+
const record = this.requireAvailable(identity);
|
|
428
|
+
if (identity.dshSessionId !== undefined && record.dshSessionId !== identity.dshSessionId) {
|
|
429
|
+
throw new TerminalServiceError('TERMINAL_UNAVAILABLE', '终端不属于指定 DSH Session');
|
|
430
|
+
}
|
|
431
|
+
const resident = this.residents.get(identityKey(identity));
|
|
432
|
+
let output;
|
|
433
|
+
try {
|
|
434
|
+
output = await this.runtimes.captureHistory(record, RESIDENT_HISTORY_LINES);
|
|
435
|
+
}
|
|
436
|
+
catch {
|
|
437
|
+
if (resident !== undefined)
|
|
438
|
+
output = resident.replay;
|
|
439
|
+
}
|
|
440
|
+
if (output === undefined || output === '' && resident?.replay !== '')
|
|
441
|
+
output = resident?.replay ?? output;
|
|
442
|
+
if (output === undefined) {
|
|
443
|
+
const error = new TerminalServiceError('TERMINAL_OUTPUT_UNAVAILABLE', '终端运行时不支持读取输出历史');
|
|
444
|
+
throw error;
|
|
445
|
+
}
|
|
446
|
+
const bytes = Buffer.from(output, 'utf8');
|
|
447
|
+
if (bytes.byteLength <= maxBytes)
|
|
448
|
+
return { text: output, truncated: false };
|
|
449
|
+
let start = bytes.byteLength - maxBytes;
|
|
450
|
+
while (start < bytes.byteLength && (bytes[start] & 0xc0) === 0x80)
|
|
451
|
+
start += 1;
|
|
452
|
+
return { text: bytes.subarray(start).toString('utf8'), truncated: true };
|
|
453
|
+
}
|
|
454
|
+
async resize(identity, attachmentId, cols, rows) {
|
|
455
|
+
validateSize(cols, rows);
|
|
456
|
+
const controller = await this.waitForController(identity, attachmentId);
|
|
457
|
+
const record = this.requireAvailable(identity);
|
|
458
|
+
// ResizeObserver 可能重复报告同一尺寸;相同尺寸不应再次向 PTY 发送 SIGWINCH。
|
|
459
|
+
if (record.cols === cols && record.rows === rows)
|
|
460
|
+
return;
|
|
461
|
+
// 列宽变化必然改变 tmux 后续输出的换行;行数的大幅变化(移动端虚拟键盘收放、
|
|
462
|
+
// 拖拽窗口高度)同样会让 tmux 把可见区域按旧列宽的历史物理行重新光栅化给
|
|
463
|
+
// 客户端,覆盖上一次重排的结果,屏幕底部会残留旧列宽的“提前换行”行。两种
|
|
464
|
+
// 变化都要调度一次历史重排(防抖合并),让重排放置在最后一次屏幕重绘之后;
|
|
465
|
+
// ±1 行的可视区域抖动(移动端地址栏收放)不重排,避免频繁重置浏览位置。
|
|
466
|
+
const widthChanged = record.cols !== cols;
|
|
467
|
+
const rowsDelta = Math.abs(record.rows - rows);
|
|
468
|
+
await this.runtimes.resize(controller.subscriptionId, cols, rows);
|
|
469
|
+
await this.update(record, { cols, rows });
|
|
470
|
+
this.broadcastState(identity);
|
|
471
|
+
if (widthChanged || rowsDelta >= TERMINAL_REFLOW_ROWS_THRESHOLD)
|
|
472
|
+
this.scheduleHistoryReflow(identity);
|
|
473
|
+
}
|
|
474
|
+
/**
|
|
475
|
+
* tmux 只会按新宽度渲染后续输出,不会重排已有内容;浏览器端 xterm 收到的
|
|
476
|
+
* tmux 重绘行是逐行光栅化的,也不带可重排的换行标记。窗口宽度变化后必须
|
|
477
|
+
* 重新用 capture-pane -J 把历史合并成长逻辑行再重放,客户端才会按新列宽
|
|
478
|
+
* 整体重排,否则历史行永远停在旧宽度、右侧留白。
|
|
479
|
+
*/
|
|
480
|
+
scheduleHistoryReflow(identity) {
|
|
481
|
+
const key = identityKey(identity);
|
|
482
|
+
const pending = this.historyReflowTimers.get(key);
|
|
483
|
+
if (pending !== undefined)
|
|
484
|
+
clearTimeout(pending);
|
|
485
|
+
const timer = setTimeout(() => {
|
|
486
|
+
this.historyReflowTimers.delete(key);
|
|
487
|
+
void this.reflowHistory(identity);
|
|
488
|
+
}, HISTORY_REFLOW_DEBOUNCE_MS);
|
|
489
|
+
this.historyReflowTimers.set(key, timer);
|
|
490
|
+
}
|
|
491
|
+
async reflowHistory(identity) {
|
|
492
|
+
const key = identityKey(identity);
|
|
493
|
+
if ((this.followers.get(key)?.size ?? 0) === 0)
|
|
494
|
+
return;
|
|
495
|
+
const record = this.store.get(identity);
|
|
496
|
+
if (record === undefined || record.state !== 'running')
|
|
497
|
+
return;
|
|
498
|
+
try {
|
|
499
|
+
const captured = await this.runtimes.captureHistory(record, RESIDENT_HISTORY_LINES);
|
|
500
|
+
if (captured === undefined)
|
|
501
|
+
return;
|
|
502
|
+
const current = this.store.get(identity);
|
|
503
|
+
if (current === undefined || current.state !== 'running')
|
|
504
|
+
return;
|
|
505
|
+
const resident = this.residents.get(key);
|
|
506
|
+
if (resident !== undefined)
|
|
507
|
+
resident.replay = captured;
|
|
508
|
+
for (const follower of this.followers.get(key) ?? []) {
|
|
509
|
+
follower.queue.pushSnapshot(this.info(current, follower.attachmentId), captured);
|
|
510
|
+
}
|
|
511
|
+
debugInfo('dsh-agentdoor: terminal history reflow snapshot pushed', {
|
|
512
|
+
identity,
|
|
513
|
+
cols: current.cols,
|
|
514
|
+
historyLines: countLines(captured),
|
|
515
|
+
historyCharacters: captured.length,
|
|
516
|
+
});
|
|
517
|
+
}
|
|
518
|
+
catch (error) {
|
|
519
|
+
debugWarn('dsh-agentdoor: terminal history reflow failed', {
|
|
520
|
+
identity,
|
|
521
|
+
error: errorMessage(error),
|
|
522
|
+
});
|
|
523
|
+
}
|
|
524
|
+
}
|
|
525
|
+
async rename(identity, title) {
|
|
526
|
+
const normalized = title.trim();
|
|
527
|
+
if (normalized.length === 0 || normalized.length > 120)
|
|
528
|
+
throw new TypeError('终端标题必须包含 1 到 120 个字符');
|
|
529
|
+
const record = this.requireAvailable(identity);
|
|
530
|
+
await this.update(record, { title: normalized });
|
|
531
|
+
this.broadcastState(identity);
|
|
532
|
+
}
|
|
533
|
+
async close(identity) {
|
|
534
|
+
this.requireInitialized();
|
|
535
|
+
debugInfo('dsh-agentdoor: terminal service close start', { identity });
|
|
536
|
+
await this.enqueue(identity, async () => {
|
|
537
|
+
const record = this.store.get(identity);
|
|
538
|
+
if (record === undefined || record.state === 'closed') {
|
|
539
|
+
debugInfo('dsh-agentdoor: terminal service close noop', { identity, record: record === undefined ? null : recordSummary(record) });
|
|
540
|
+
return;
|
|
541
|
+
}
|
|
542
|
+
const closing = record.state === 'closing' ? record : await this.update(record, { state: 'closing' });
|
|
543
|
+
this.broadcastState(identity);
|
|
544
|
+
await this.releaseResident(identity);
|
|
545
|
+
await this.runtimes.terminate(closing);
|
|
546
|
+
debugInfo('dsh-agentdoor: terminal service runtime terminated', { identity, record: recordSummary(closing) });
|
|
547
|
+
await this.runtimes.detachTerminal(identity);
|
|
548
|
+
this.controllers.delete(identityKey(identity));
|
|
549
|
+
this.exitCallbacks.delete(identityKey(identity));
|
|
550
|
+
const closed = await this.update(closing, { state: 'closed', exitCode: null, error: '' });
|
|
551
|
+
this.broadcastState(identity, closed);
|
|
552
|
+
this.finishFollowers(identityKey(identity));
|
|
553
|
+
debugInfo('dsh-agentdoor: terminal service close success', { identity, record: recordSummary(closed) });
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
async detachGeneration(generation) {
|
|
557
|
+
// 浏览器 attach 已经只是 resident 的订阅,不再拥有 backend attachment;
|
|
558
|
+
// RuntimeManager 的 generation 清理仍保留,用于兼容旧的 monitor/调用方。
|
|
559
|
+
await this.runtimes.detachGeneration(generation);
|
|
560
|
+
const changed = new Set();
|
|
561
|
+
for (const [key, bindings] of this.controllers) {
|
|
562
|
+
for (const [attachmentId, binding] of bindings) {
|
|
563
|
+
if (binding.generation !== generation)
|
|
564
|
+
continue;
|
|
565
|
+
bindings.delete(attachmentId);
|
|
566
|
+
changed.add(key);
|
|
567
|
+
}
|
|
568
|
+
if (bindings.size === 0)
|
|
569
|
+
this.controllers.delete(key);
|
|
570
|
+
}
|
|
571
|
+
for (const [key, followers] of this.followers) {
|
|
572
|
+
for (const follower of followers) {
|
|
573
|
+
if (follower.generation === generation)
|
|
574
|
+
follower.queue.finish();
|
|
575
|
+
}
|
|
576
|
+
if ([...followers].some((follower) => follower.generation === generation))
|
|
577
|
+
changed.add(key);
|
|
578
|
+
}
|
|
579
|
+
for (const key of changed)
|
|
580
|
+
this.broadcastStateByKey(key);
|
|
581
|
+
}
|
|
582
|
+
/** 插件卸载只断开 attach,持久 backend 必须继续运行。 */
|
|
583
|
+
async dispose() {
|
|
584
|
+
for (const timer of this.historyReflowTimers.values())
|
|
585
|
+
clearTimeout(timer);
|
|
586
|
+
this.historyReflowTimers.clear();
|
|
587
|
+
for (const followers of this.followers.values())
|
|
588
|
+
for (const follower of followers)
|
|
589
|
+
follower.queue.finish();
|
|
590
|
+
this.followers.clear();
|
|
591
|
+
this.controllers.clear();
|
|
592
|
+
this.residentRecoveryPromises.clear();
|
|
593
|
+
this.residents.clear();
|
|
594
|
+
this.exitCallbacks.clear();
|
|
595
|
+
await this.runtimes.dispose();
|
|
596
|
+
}
|
|
597
|
+
/**
|
|
598
|
+
* resident 重连会短暂撤销旧 subscription 的控制权。
|
|
599
|
+
*
|
|
600
|
+
* 这不是用户失去输入权限,而是 Host 正在把同一持久终端重新挂回新连接。
|
|
601
|
+
* 等待这次恢复可以消除输入请求与控制权重绑之间的竞态,避免客户端收到一条
|
|
602
|
+
* 会永久留在界面底部的假错误。
|
|
603
|
+
*/
|
|
604
|
+
async waitForController(identity, attachmentId) {
|
|
605
|
+
this.requireAvailable(identity);
|
|
606
|
+
const key = identityKey(identity);
|
|
607
|
+
let controller = this.controllers.get(key)?.get(attachmentId);
|
|
608
|
+
const recovery = this.residentRecoveryPromises.get(key);
|
|
609
|
+
if (controller === undefined && recovery !== undefined) {
|
|
610
|
+
try {
|
|
611
|
+
await recovery;
|
|
612
|
+
}
|
|
613
|
+
catch { /* 恢复失败时由下面的统一错误收敛 */ }
|
|
614
|
+
controller = this.controllers.get(key)?.get(attachmentId);
|
|
615
|
+
}
|
|
616
|
+
this.requireAvailable(identity);
|
|
617
|
+
if (controller === undefined) {
|
|
618
|
+
throw new TerminalServiceError('TERMINAL_CONTROL_UNAVAILABLE', '当前 attach 没有终端输入控制权');
|
|
619
|
+
}
|
|
620
|
+
return controller;
|
|
621
|
+
}
|
|
622
|
+
requireAvailable(identity) {
|
|
623
|
+
this.requireInitialized();
|
|
624
|
+
const record = this.store.get(identity);
|
|
625
|
+
if (record === undefined || record.state !== 'running') {
|
|
626
|
+
throw new TerminalServiceError('TERMINAL_UNAVAILABLE', '终端不存在或当前不可用');
|
|
627
|
+
}
|
|
628
|
+
return record;
|
|
629
|
+
}
|
|
630
|
+
async refreshRuntimeState(identity) {
|
|
631
|
+
const record = this.store.get(identity);
|
|
632
|
+
if (record === undefined || record.state !== 'running')
|
|
633
|
+
return;
|
|
634
|
+
try {
|
|
635
|
+
const runtime = await this.runtimes.inspect(record);
|
|
636
|
+
if (!runtime.alive) {
|
|
637
|
+
const lost = await this.update(record, { state: 'lost', error: runtime.detail ?? '持久终端运行时不存在' });
|
|
638
|
+
this.broadcastState(identity, lost);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
catch (error) {
|
|
642
|
+
const failed = await this.update(record, { state: 'error', error: errorMessage(error) });
|
|
643
|
+
this.broadcastState(identity, failed);
|
|
644
|
+
}
|
|
645
|
+
}
|
|
646
|
+
/**
|
|
647
|
+
* 浏览器 attach 客户端结束了。
|
|
648
|
+
*
|
|
649
|
+
* tmux 客户端在"服务器消失""会话被销毁""只是这次连接断了"时都会退出,退出码
|
|
650
|
+
* 本身不能证明 shell 结束。因此这里必须回查运行时的真实状态:只有确实拿到
|
|
651
|
+
* shell 的退出码才算 `exited`,否则只能标记 `lost`,让用户重新连接而不是看到
|
|
652
|
+
* 一个假的"进程已退出(1)"。
|
|
653
|
+
*/
|
|
654
|
+
async handleAttachmentExit(identity, exitCode, queue) {
|
|
655
|
+
try {
|
|
656
|
+
await this.finishRuntime(identity, exitCode);
|
|
657
|
+
}
|
|
658
|
+
finally {
|
|
659
|
+
// 先发终态元数据,再结束 Remote 流;否则官方 Client 会把正常退出误判为 attach 故障。
|
|
660
|
+
queue.finish();
|
|
661
|
+
}
|
|
662
|
+
}
|
|
663
|
+
/** 以运行时的实际状态收尾:能确认真实退出码才算 exited,否则是 lost。 */
|
|
664
|
+
async finishRuntime(identity, exitCode) {
|
|
665
|
+
debugInfo('dsh-agentdoor: terminal service runtime exit observed', { identity, callbackExitCode: exitCode });
|
|
666
|
+
await this.enqueue(identity, async () => {
|
|
667
|
+
const record = this.store.get(identity);
|
|
668
|
+
if (record === undefined || record.state !== 'running')
|
|
669
|
+
return;
|
|
670
|
+
let runtime;
|
|
671
|
+
try {
|
|
672
|
+
runtime = await this.runtimes.inspect(record);
|
|
673
|
+
}
|
|
674
|
+
catch (error) {
|
|
675
|
+
const failed = await this.update(record, { state: 'error', error: errorMessage(error) });
|
|
676
|
+
this.broadcastState(identity, failed);
|
|
677
|
+
return;
|
|
678
|
+
}
|
|
679
|
+
debugInfo('dsh-agentdoor: terminal service runtime exit inspect', {
|
|
680
|
+
identity,
|
|
681
|
+
record: recordSummary(record),
|
|
682
|
+
runtime: runtimeSummary(runtime),
|
|
683
|
+
});
|
|
684
|
+
if (runtime.alive)
|
|
685
|
+
return;
|
|
686
|
+
const confirmed = runtime.exitCode ?? null;
|
|
687
|
+
const kind = runtime.exitCode === undefined || runtime.exitCode === null ? 'lost' : 'exited';
|
|
688
|
+
const finished = kind === 'exited'
|
|
689
|
+
? await this.update(record, { state: 'exited', exitCode: confirmed, error: '' })
|
|
690
|
+
: await this.update(record, {
|
|
691
|
+
state: 'lost',
|
|
692
|
+
exitCode: null,
|
|
693
|
+
error: runtime.detail ?? `持久终端连接中断(客户端退出码 ${exitCode ?? '未知'})`,
|
|
694
|
+
});
|
|
695
|
+
this.broadcastState(identity, finished);
|
|
696
|
+
const callback = this.exitCallbacks.get(identityKey(identity));
|
|
697
|
+
this.exitCallbacks.delete(identityKey(identity));
|
|
698
|
+
await callback?.(confirmed, kind);
|
|
699
|
+
debugInfo('dsh-agentdoor: terminal service runtime finalized', {
|
|
700
|
+
identity,
|
|
701
|
+
kind,
|
|
702
|
+
record: recordSummary(finished),
|
|
703
|
+
});
|
|
704
|
+
});
|
|
705
|
+
}
|
|
706
|
+
info(record, controllerId) {
|
|
707
|
+
const state = record.state === 'running' || record.state === 'starting'
|
|
708
|
+
? 'running'
|
|
709
|
+
: record.state === 'closed' || record.state === 'exited'
|
|
710
|
+
? 'exited'
|
|
711
|
+
: record.state === 'lost'
|
|
712
|
+
? 'lost'
|
|
713
|
+
: 'failed';
|
|
714
|
+
return {
|
|
715
|
+
id: record.terminalId,
|
|
716
|
+
title: record.title,
|
|
717
|
+
...(record.dshSessionId === undefined ? {} : { dshSessionId: record.dshSessionId }),
|
|
718
|
+
shell: shellInfo(record),
|
|
719
|
+
cwd: record.cwd,
|
|
720
|
+
cols: record.cols,
|
|
721
|
+
rows: record.rows,
|
|
722
|
+
state,
|
|
723
|
+
exitCode: record.exitCode,
|
|
724
|
+
...(record.error && record.state !== 'closed' ? { error: record.error } : {}),
|
|
725
|
+
...(controllerId === undefined ? {} : { controllerId }),
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
/**
|
|
729
|
+
* 确保一个终端只有一条 Host backend attachment。
|
|
730
|
+
*
|
|
731
|
+
* 这个连接不绑定某个浏览器 generation,直到显式 close 或 Host dispose 才释放。
|
|
732
|
+
* 多个会话的 follow 都复用同一条连接,避免每次点击都重新启动 tmux client/PTY。
|
|
733
|
+
*/
|
|
734
|
+
async ensureResident(record) {
|
|
735
|
+
const key = identityKey(record);
|
|
736
|
+
const existing = this.residents.get(key);
|
|
737
|
+
if (existing !== undefined)
|
|
738
|
+
return existing;
|
|
739
|
+
const pending = this.residentPromises.get(key);
|
|
740
|
+
if (pending !== undefined)
|
|
741
|
+
return pending;
|
|
742
|
+
const identity = identityOfRecord(record);
|
|
743
|
+
// 每次 resident 都使用独立 token。旧 backend attachment 的迟到回调不能
|
|
744
|
+
// 误删同一 terminalId 后面刚重建的新 resident。
|
|
745
|
+
const generation = `host-resident:${key}:${randomUUID()}`;
|
|
746
|
+
const requestedAttachmentId = `resident:${record.terminalId}`;
|
|
747
|
+
// resident 断线重连时,tmux attach 的首批输出是整屏重绘;它可能在
|
|
748
|
+
// backend.attach 返回后异步到达,不能只依赖 runtime-manager 的 earlyData。
|
|
749
|
+
// 在短暂启动窗口内先收集,随后以 snapshot 发给已有 follower。
|
|
750
|
+
const hadFollowers = (this.followers.get(key)?.size ?? 0) > 0;
|
|
751
|
+
// attach 尚未完成时先无限期收集 earlyData;真正的窗口从 attachment
|
|
752
|
+
// 建立后开始计算,避免慢机器上首屏在 100ms 后才到达而被误当增量。
|
|
753
|
+
let bootstrapDeadline = Number.POSITIVE_INFINITY;
|
|
754
|
+
let bootstrapReplay = '';
|
|
755
|
+
let replay = '';
|
|
756
|
+
let task;
|
|
757
|
+
task = this.runtimes.attach(record, {
|
|
758
|
+
identity,
|
|
759
|
+
generation,
|
|
760
|
+
streamId: requestedAttachmentId,
|
|
761
|
+
requestedAttachmentId,
|
|
762
|
+
cols: record.cols,
|
|
763
|
+
rows: record.rows,
|
|
764
|
+
onData: (data) => {
|
|
765
|
+
replay = boundedAppend(replay, data);
|
|
766
|
+
const resident = this.residents.get(key);
|
|
767
|
+
if (resident !== undefined)
|
|
768
|
+
resident.replay = replay;
|
|
769
|
+
if (hadFollowers && Date.now() < bootstrapDeadline) {
|
|
770
|
+
bootstrapReplay = boundedAppend(bootstrapReplay, data);
|
|
771
|
+
return;
|
|
772
|
+
}
|
|
773
|
+
this.broadcastOutput(key, data);
|
|
774
|
+
},
|
|
775
|
+
onExit: (exitCode) => { void this.handleResidentExit(identity, generation, exitCode); },
|
|
776
|
+
}).then(async (attachment) => {
|
|
777
|
+
const resident = {
|
|
778
|
+
subscriptionId: attachment.subscriptionId,
|
|
779
|
+
runtimeAttachmentId: attachment.runtimeAttachmentId,
|
|
780
|
+
generation,
|
|
781
|
+
replay,
|
|
782
|
+
};
|
|
783
|
+
this.residents.set(key, resident);
|
|
784
|
+
// tmux attach 的原始 ANSI 首屏不含 scrollback;把 server buffer 的纯文本历史
|
|
785
|
+
// 作为恢复快照,后续 output 仍由常驻连接增量推送。
|
|
786
|
+
try {
|
|
787
|
+
const captured = await this.runtimes.captureHistory(record, RESIDENT_HISTORY_LINES);
|
|
788
|
+
if (captured !== undefined && (captured.length > 0 || replay.length === 0)) {
|
|
789
|
+
replay = captured;
|
|
790
|
+
resident.replay = captured;
|
|
791
|
+
debugInfo('dsh-agentdoor: terminal resident history captured', {
|
|
792
|
+
identity,
|
|
793
|
+
historyLines: countLines(captured),
|
|
794
|
+
historyCharacters: captured.length,
|
|
795
|
+
});
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
catch (error) {
|
|
799
|
+
debugWarn('dsh-agentdoor: terminal resident history capture failed', {
|
|
800
|
+
identity,
|
|
801
|
+
error: errorMessage(error),
|
|
802
|
+
});
|
|
803
|
+
}
|
|
804
|
+
bootstrapDeadline = Date.now() + RESIDENT_BOOTSTRAP_WINDOW_MS;
|
|
805
|
+
if (hadFollowers) {
|
|
806
|
+
// 等待 tmux attach 的初始整屏重绘收齐,再替换已有 xterm 画面。
|
|
807
|
+
// 新 follow 不走这里,它会直接收到上面的 snapshot。
|
|
808
|
+
setTimeout(() => {
|
|
809
|
+
const current = this.residents.get(key);
|
|
810
|
+
if (current?.generation !== generation || bootstrapReplay === '')
|
|
811
|
+
return;
|
|
812
|
+
const currentRecord = this.store.get(identity);
|
|
813
|
+
if (currentRecord === undefined || currentRecord.state !== 'running')
|
|
814
|
+
return;
|
|
815
|
+
for (const follower of this.followers.get(key) ?? []) {
|
|
816
|
+
follower.queue.pushSnapshot(this.info(currentRecord, follower.attachmentId), current.replay);
|
|
817
|
+
}
|
|
818
|
+
debugInfo('dsh-agentdoor: terminal resident bootstrap replay promoted to snapshot', {
|
|
819
|
+
identity,
|
|
820
|
+
generation,
|
|
821
|
+
replayCharacters: current.replay.length,
|
|
822
|
+
});
|
|
823
|
+
}, RESIDENT_BOOTSTRAP_WINDOW_MS);
|
|
824
|
+
}
|
|
825
|
+
debugInfo('dsh-agentdoor: terminal resident connection ready', {
|
|
826
|
+
identity,
|
|
827
|
+
subscriptionId: resident.subscriptionId,
|
|
828
|
+
runtimeAttachmentId: resident.runtimeAttachmentId,
|
|
829
|
+
generation,
|
|
830
|
+
});
|
|
831
|
+
return resident;
|
|
832
|
+
}).finally(() => {
|
|
833
|
+
if (this.residentPromises.get(key) === task)
|
|
834
|
+
this.residentPromises.delete(key);
|
|
835
|
+
});
|
|
836
|
+
this.residentPromises.set(key, task);
|
|
837
|
+
return task;
|
|
838
|
+
}
|
|
839
|
+
async releaseResident(identity) {
|
|
840
|
+
const key = identityKey(identity);
|
|
841
|
+
const pending = this.residentPromises.get(key);
|
|
842
|
+
if (pending !== undefined) {
|
|
843
|
+
try {
|
|
844
|
+
await pending;
|
|
845
|
+
}
|
|
846
|
+
catch { /* 创建失败时没有可释放的连接 */ }
|
|
847
|
+
}
|
|
848
|
+
const resident = this.residents.get(key);
|
|
849
|
+
if (resident === undefined)
|
|
850
|
+
return;
|
|
851
|
+
this.residents.delete(key);
|
|
852
|
+
await this.runtimes.detach(resident.subscriptionId);
|
|
853
|
+
debugInfo('dsh-agentdoor: terminal resident connection released', {
|
|
854
|
+
identity,
|
|
855
|
+
subscriptionId: resident.subscriptionId,
|
|
856
|
+
runtimeAttachmentId: resident.runtimeAttachmentId,
|
|
857
|
+
});
|
|
858
|
+
}
|
|
859
|
+
async handleResidentExit(identity, generation, exitCode) {
|
|
860
|
+
const key = identityKey(identity);
|
|
861
|
+
const resident = this.residents.get(key);
|
|
862
|
+
if (resident === undefined || resident.generation !== generation) {
|
|
863
|
+
debugInfo('dsh-agentdoor: terminal resident stale exit ignored', {
|
|
864
|
+
identity,
|
|
865
|
+
generation,
|
|
866
|
+
currentGeneration: resident?.generation ?? null,
|
|
867
|
+
exitCode,
|
|
868
|
+
});
|
|
869
|
+
return;
|
|
870
|
+
}
|
|
871
|
+
this.residents.delete(key);
|
|
872
|
+
// 这条 backend 连接已经不能继续向浏览器送数据。先撤销输入控制权;
|
|
873
|
+
// 是否结束订阅要等 finishRuntime 判断出“连接断开”还是“Shell 退出”之后决定。
|
|
874
|
+
this.controllers.delete(key);
|
|
875
|
+
const recovery = this.recoverResidentAfterExit(identity, key, resident.subscriptionId, exitCode);
|
|
876
|
+
this.residentRecoveryPromises.set(key, recovery);
|
|
877
|
+
try {
|
|
878
|
+
await recovery;
|
|
879
|
+
}
|
|
880
|
+
finally {
|
|
881
|
+
if (this.residentRecoveryPromises.get(key) === recovery)
|
|
882
|
+
this.residentRecoveryPromises.delete(key);
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
/** 断线后确认运行时状态,并在仍存活时重建 resident 与浏览器控制权。 */
|
|
886
|
+
async recoverResidentAfterExit(identity, key, subscriptionId, exitCode) {
|
|
887
|
+
try {
|
|
888
|
+
await this.runtimes.detach(subscriptionId);
|
|
889
|
+
}
|
|
890
|
+
catch { /* backend 已经回收 attachment */ }
|
|
891
|
+
await this.finishRuntime(identity, exitCode);
|
|
892
|
+
const current = this.store.get(identity);
|
|
893
|
+
if (current?.state === 'running') {
|
|
894
|
+
// tmux client 断线不等于 Shell 结束。连接层恢复时保留已有 follower,
|
|
895
|
+
// 重新建立 resident;真正退出则由 finishRuntime 收敛并结束所有订阅。
|
|
896
|
+
try {
|
|
897
|
+
const nextResident = await this.ensureResident(current);
|
|
898
|
+
// resident 重建后 subscriptionId 已变化,原 follower 仍然有效,必须
|
|
899
|
+
// 重新绑定它们的输入与 resize 控制权。
|
|
900
|
+
for (const follower of this.followers.get(key) ?? []) {
|
|
901
|
+
this.addController(key, follower.attachmentId, {
|
|
902
|
+
attachmentId: follower.attachmentId,
|
|
903
|
+
subscriptionId: nextResident.subscriptionId,
|
|
904
|
+
generation: follower.generation,
|
|
905
|
+
});
|
|
906
|
+
}
|
|
907
|
+
debugInfo('dsh-agentdoor: terminal resident connection reattached', {
|
|
908
|
+
identity,
|
|
909
|
+
subscriptionId: nextResident.subscriptionId,
|
|
910
|
+
});
|
|
911
|
+
return;
|
|
912
|
+
}
|
|
913
|
+
catch (error) {
|
|
914
|
+
debugWarn('dsh-agentdoor: terminal resident connection reattach failed', {
|
|
915
|
+
identity,
|
|
916
|
+
error: errorMessage(error),
|
|
917
|
+
});
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
// finishRuntime 已经把 exited/lost 状态推入队列,队列此时才可结束,
|
|
921
|
+
// 保证 Client 先收到终态再看到流结束。
|
|
922
|
+
this.finishFollowers(key);
|
|
923
|
+
}
|
|
924
|
+
async update(record, patch) {
|
|
925
|
+
const next = await this.store.patch(record, { ...patch, updatedAt: this.now().toISOString() });
|
|
926
|
+
if (next === undefined)
|
|
927
|
+
throw new Error('终端记录在更新期间消失');
|
|
928
|
+
if (record.state !== next.state || patch.error !== undefined || patch.exitCode !== undefined) {
|
|
929
|
+
debugInfo('dsh-agentdoor: terminal service state update', {
|
|
930
|
+
identity: identityOfRecord(record),
|
|
931
|
+
before: recordSummary(record),
|
|
932
|
+
patch,
|
|
933
|
+
after: recordSummary(next),
|
|
934
|
+
});
|
|
935
|
+
}
|
|
936
|
+
return next;
|
|
937
|
+
}
|
|
938
|
+
broadcastState(identity, record = this.store.get(identity)) {
|
|
939
|
+
if (record === undefined)
|
|
940
|
+
return;
|
|
941
|
+
for (const follower of this.followers.get(identityKey(identity)) ?? []) {
|
|
942
|
+
follower.queue.pushState(this.info(record, follower.attachmentId));
|
|
943
|
+
}
|
|
944
|
+
}
|
|
945
|
+
broadcastStateByKey(key) {
|
|
946
|
+
const record = this.store.list().find((candidate) => identityKey(candidate) === key);
|
|
947
|
+
if (record !== undefined)
|
|
948
|
+
this.broadcastState(record, record);
|
|
949
|
+
}
|
|
950
|
+
addFollower(key, follower) {
|
|
951
|
+
let followers = this.followers.get(key);
|
|
952
|
+
if (followers === undefined) {
|
|
953
|
+
followers = new Set();
|
|
954
|
+
this.followers.set(key, followers);
|
|
955
|
+
}
|
|
956
|
+
followers.add(follower);
|
|
957
|
+
}
|
|
958
|
+
addController(key, attachmentId, binding) {
|
|
959
|
+
let bindings = this.controllers.get(key);
|
|
960
|
+
if (bindings === undefined) {
|
|
961
|
+
bindings = new Map();
|
|
962
|
+
this.controllers.set(key, bindings);
|
|
963
|
+
}
|
|
964
|
+
bindings.set(attachmentId, binding);
|
|
965
|
+
}
|
|
966
|
+
removeController(key, attachmentId) {
|
|
967
|
+
const bindings = this.controllers.get(key);
|
|
968
|
+
if (bindings === undefined)
|
|
969
|
+
return;
|
|
970
|
+
bindings.delete(attachmentId);
|
|
971
|
+
if (bindings.size === 0)
|
|
972
|
+
this.controllers.delete(key);
|
|
973
|
+
}
|
|
974
|
+
broadcastOutput(key, data) {
|
|
975
|
+
for (const follower of this.followers.get(key) ?? [])
|
|
976
|
+
follower.queue.pushOutput(data);
|
|
977
|
+
}
|
|
978
|
+
removeFollower(key, follower) {
|
|
979
|
+
const followers = this.followers.get(key);
|
|
980
|
+
followers?.delete(follower);
|
|
981
|
+
if (followers?.size === 0)
|
|
982
|
+
this.followers.delete(key);
|
|
983
|
+
}
|
|
984
|
+
finishFollowers(key) {
|
|
985
|
+
for (const follower of this.followers.get(key) ?? [])
|
|
986
|
+
follower.queue.finish();
|
|
987
|
+
}
|
|
988
|
+
enqueue(identity, operation) {
|
|
989
|
+
const key = identityKey(identity);
|
|
990
|
+
const previous = this.operations.get(key) ?? Promise.resolve();
|
|
991
|
+
const pending = previous.then(operation, operation);
|
|
992
|
+
const tail = pending.then(() => undefined, () => undefined);
|
|
993
|
+
this.operations.set(key, tail);
|
|
994
|
+
void tail.finally(() => {
|
|
995
|
+
if (this.operations.get(key) === tail)
|
|
996
|
+
this.operations.delete(key);
|
|
997
|
+
});
|
|
998
|
+
return pending;
|
|
999
|
+
}
|
|
1000
|
+
requireInitialized() {
|
|
1001
|
+
if (!this.initialized)
|
|
1002
|
+
throw new Error('终端服务尚未初始化');
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
export class TerminalServiceError extends Error {
|
|
1006
|
+
code;
|
|
1007
|
+
constructor(code, message) {
|
|
1008
|
+
super(message);
|
|
1009
|
+
this.code = code;
|
|
1010
|
+
this.name = 'TerminalServiceError';
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
class TerminalFrameQueue {
|
|
1014
|
+
maxBytes;
|
|
1015
|
+
frames = [];
|
|
1016
|
+
bytes = 0;
|
|
1017
|
+
sequence = 0;
|
|
1018
|
+
wake;
|
|
1019
|
+
ended = false;
|
|
1020
|
+
failure;
|
|
1021
|
+
constructor(maxBytes) {
|
|
1022
|
+
this.maxBytes = maxBytes;
|
|
1023
|
+
}
|
|
1024
|
+
pushSnapshot(info, screen = '') {
|
|
1025
|
+
// tmux capture-pane 返回纯文本 LF;xterm 的真实 PTY 模式不会自动把 LF
|
|
1026
|
+
// 转成 CRLF,必须在 wire 边界补回 CR,否则历史行会逐行继承上一行的列位置。
|
|
1027
|
+
this.push({ type: 'snapshot', sequence: this.sequence, screen: normalizeSnapshotLineEndings(screen), info });
|
|
1028
|
+
}
|
|
1029
|
+
pushOutput(data) {
|
|
1030
|
+
this.sequence += 1;
|
|
1031
|
+
// 增量 PTY 输出保留原始 VT 语义;只有 capture-pane 的纯文本快照需要补 CR。
|
|
1032
|
+
this.push({ type: 'output', sequence: this.sequence, data });
|
|
1033
|
+
}
|
|
1034
|
+
pushState(info) {
|
|
1035
|
+
this.push({ type: 'state', info });
|
|
1036
|
+
}
|
|
1037
|
+
finish() {
|
|
1038
|
+
this.ended = true;
|
|
1039
|
+
this.wake?.();
|
|
1040
|
+
}
|
|
1041
|
+
async *read() {
|
|
1042
|
+
while (!this.ended || this.frames.length > 0) {
|
|
1043
|
+
const frame = this.frames.shift();
|
|
1044
|
+
if (frame !== undefined) {
|
|
1045
|
+
this.bytes -= frameBytes(frame);
|
|
1046
|
+
yield frame;
|
|
1047
|
+
continue;
|
|
1048
|
+
}
|
|
1049
|
+
await new Promise((resolve) => { this.wake = resolve; });
|
|
1050
|
+
this.wake = undefined;
|
|
1051
|
+
}
|
|
1052
|
+
if (this.failure !== undefined)
|
|
1053
|
+
throw this.failure;
|
|
1054
|
+
}
|
|
1055
|
+
push(frame) {
|
|
1056
|
+
if (this.ended)
|
|
1057
|
+
return;
|
|
1058
|
+
const bytes = frameBytes(frame);
|
|
1059
|
+
if (this.bytes + bytes > this.maxBytes) {
|
|
1060
|
+
this.failure = new Error('终端输出消费者超过缓冲上限,请重新连接以恢复当前屏幕');
|
|
1061
|
+
this.frames.length = 0;
|
|
1062
|
+
this.bytes = 0;
|
|
1063
|
+
this.finish();
|
|
1064
|
+
return;
|
|
1065
|
+
}
|
|
1066
|
+
this.frames.push(frame);
|
|
1067
|
+
this.bytes += bytes;
|
|
1068
|
+
this.wake?.();
|
|
1069
|
+
}
|
|
1070
|
+
}
|
|
1071
|
+
function shellInfo(record) {
|
|
1072
|
+
const profileId = record.shellProfileId ?? (record.runtimeType === 'tmux'
|
|
1073
|
+
? record.shellPath.endsWith('/bash') ? 'bash' : 'zsh'
|
|
1074
|
+
: record.runtimeType === 'conpty-cmd'
|
|
1075
|
+
? 'cmd'
|
|
1076
|
+
: record.runtimeType === 'conpty-git-bash'
|
|
1077
|
+
? 'git-bash'
|
|
1078
|
+
: 'powershell');
|
|
1079
|
+
return {
|
|
1080
|
+
profileId,
|
|
1081
|
+
path: record.shellPath,
|
|
1082
|
+
args: record.shellArgs ?? (profileId === 'cmd' ? [] : profileId === 'powershell' ? ['-NoLogo'] : ['-i']),
|
|
1083
|
+
name: record.shellName ?? profileId,
|
|
1084
|
+
};
|
|
1085
|
+
}
|
|
1086
|
+
function identityKey(identity) {
|
|
1087
|
+
return JSON.stringify([identity.hostId, identity.workspaceId, identity.terminalId]);
|
|
1088
|
+
}
|
|
1089
|
+
function identityOfRecord(record) {
|
|
1090
|
+
return {
|
|
1091
|
+
hostId: record.hostId,
|
|
1092
|
+
workspaceId: record.workspaceId,
|
|
1093
|
+
terminalId: record.terminalId,
|
|
1094
|
+
};
|
|
1095
|
+
}
|
|
1096
|
+
function recordSummary(record) {
|
|
1097
|
+
return {
|
|
1098
|
+
...identityOfRecord(record),
|
|
1099
|
+
dshSessionId: record.dshSessionId ?? null,
|
|
1100
|
+
runtimeSessionKey: record.runtimeSessionKey,
|
|
1101
|
+
runtimeType: record.runtimeType,
|
|
1102
|
+
state: record.state,
|
|
1103
|
+
exitCode: record.exitCode,
|
|
1104
|
+
error: record.error || null,
|
|
1105
|
+
};
|
|
1106
|
+
}
|
|
1107
|
+
function runtimeSummary(runtime) {
|
|
1108
|
+
return {
|
|
1109
|
+
alive: runtime.alive,
|
|
1110
|
+
runtimePid: runtime.runtimePid ?? null,
|
|
1111
|
+
shellPid: runtime.shellPid ?? null,
|
|
1112
|
+
exitCode: runtime.exitCode ?? null,
|
|
1113
|
+
detail: runtime.detail ?? null,
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
function validateTerminalId(id) {
|
|
1117
|
+
if (!/^[\w-]{1,128}$/u.test(id))
|
|
1118
|
+
throw new TypeError('终端标识无效');
|
|
1119
|
+
}
|
|
1120
|
+
function validateSize(cols, rows) {
|
|
1121
|
+
if (!Number.isSafeInteger(cols) || cols < 2 || cols > 500 || !Number.isSafeInteger(rows) || rows < 1 || rows > 300) {
|
|
1122
|
+
throw new TypeError('终端尺寸超过允许范围');
|
|
1123
|
+
}
|
|
1124
|
+
}
|
|
1125
|
+
function frameBytes(frame) {
|
|
1126
|
+
return new TextEncoder().encode(JSON.stringify(frame)).byteLength;
|
|
1127
|
+
}
|
|
1128
|
+
function normalizeSnapshotLineEndings(value) {
|
|
1129
|
+
return value.replace(/\r?\n/gu, '\r\n');
|
|
1130
|
+
}
|
|
1131
|
+
/** 常驻连接只保留有限的原始输出,避免长期运行终端无限增长。 */
|
|
1132
|
+
const MAX_RESIDENT_REPLAY_CHARACTERS = 1024 * 1024;
|
|
1133
|
+
/** tmux attach 的首屏通常在一个很短的窗口内分片送达。 */
|
|
1134
|
+
const RESIDENT_BOOTSTRAP_WINDOW_MS = 100;
|
|
1135
|
+
/** 初次恢复读取的 tmux 历史行数;xterm 会再按自身 scrollback 上限裁剪。 */
|
|
1136
|
+
const RESIDENT_HISTORY_LINES = 2000;
|
|
1137
|
+
/**
|
|
1138
|
+
* 拖拽窗口/键盘动画会连续触发 resize;合并成一次历史重放,避免反复重放整块历史。
|
|
1139
|
+
*
|
|
1140
|
+
* 该值同时决定“尺寸变化结束”到“重放送达”的间隔:期间客户端显示的是 tmux 重绘的
|
|
1141
|
+
* 旧列宽物理行。取值要兼顾合并动画的连续事件与尽快恢复,150ms 在两端之间折衷。
|
|
1142
|
+
*/
|
|
1143
|
+
const HISTORY_REFLOW_DEBOUNCE_MS = 150;
|
|
1144
|
+
/**
|
|
1145
|
+
* 行数变化达到该幅度时同样值得重排历史。
|
|
1146
|
+
*
|
|
1147
|
+
* 行数的大幅变化(虚拟键盘收放)会让 tmux 重绘可见区域,把旧列宽的历史物理行
|
|
1148
|
+
* 重新带回客户端;±1 行的可视区域抖动(移动端地址栏收放)不触发重排,避免频繁
|
|
1149
|
+
* 重置用户的浏览位置。
|
|
1150
|
+
*/
|
|
1151
|
+
const TERMINAL_REFLOW_ROWS_THRESHOLD = 2;
|
|
1152
|
+
function countLines(value) {
|
|
1153
|
+
if (value.length === 0)
|
|
1154
|
+
return 0;
|
|
1155
|
+
return value.split('\n').length;
|
|
1156
|
+
}
|
|
1157
|
+
function boundedAppend(current, data) {
|
|
1158
|
+
const combined = current + data;
|
|
1159
|
+
return combined.length <= MAX_RESIDENT_REPLAY_CHARACTERS
|
|
1160
|
+
? combined
|
|
1161
|
+
: combined.slice(-MAX_RESIDENT_REPLAY_CHARACTERS);
|
|
1162
|
+
}
|
|
1163
|
+
function untilAborted(signal) {
|
|
1164
|
+
if (signal.aborted)
|
|
1165
|
+
return Promise.resolve();
|
|
1166
|
+
return new Promise((resolve) => signal.addEventListener('abort', () => resolve(), { once: true }));
|
|
1167
|
+
}
|
|
1168
|
+
function errorMessage(error) {
|
|
1169
|
+
return error instanceof Error ? error.message : String(error);
|
|
1170
|
+
}
|
|
1171
|
+
//# sourceMappingURL=terminal-service.js.map
|