@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,1314 @@
|
|
|
1
|
+
window.__ModuleLoader__.load({
|
|
2
|
+
id: "@evanbobo/dsh-agentdoor",
|
|
3
|
+
chunk: "client.delegate-command.js",
|
|
4
|
+
factory: (require) => {
|
|
5
|
+
var module = { exports: {} };
|
|
6
|
+
var exports = module.exports;
|
|
7
|
+
const require_primitives_adapter = require("@evanbobo/dsh-agentdoor/client.primitives-adapter.js");
|
|
8
|
+
const require_command_token = require("@evanbobo/dsh-agentdoor/client.command-token.js");
|
|
9
|
+
// src/shared/delegation-carrier.ts
|
|
10
|
+
const CARRIER_PREFIX = "<!--agentdoor:delegate:v1:";
|
|
11
|
+
const CARRIER_V2_PREFIX = "<!--agentdoor:delegate:v2:";
|
|
12
|
+
const CARRIER_V1_PATTERN = /<!--agentdoor:delegate:v1:([^:>]+):([^>]+)-->/gu;
|
|
13
|
+
const CARRIER_V2_PATTERN = /<!--agentdoor:delegate:v2:([^:>]+):([^:>]+):([^>]+)-->/gu;
|
|
14
|
+
const MALFORMED_CARRIER_PATTERN = /<!--agentdoor:delegate:[^>]*-->/gu;
|
|
15
|
+
function encodeDelegationCarrier(adapterId, label, modelId) {
|
|
16
|
+
const normalizedId = adapterId.trim();
|
|
17
|
+
const normalizedLabel = label.trim() || normalizedId;
|
|
18
|
+
const normalizedModel = modelId?.trim() || "";
|
|
19
|
+
if (normalizedId === "") throw new Error("The delegation carrier adapterId cannot be empty.");
|
|
20
|
+
if (normalizedModel !== "") return `@${normalizedLabel}${CARRIER_V2_PREFIX}${encodeURIComponent(normalizedId)}:${encodeURIComponent(normalizedModel)}:${encodeURIComponent(normalizedLabel)}-->`;
|
|
21
|
+
return `@${normalizedLabel}${CARRIER_PREFIX}${encodeURIComponent(normalizedId)}:${encodeURIComponent(normalizedLabel)}-->`;
|
|
22
|
+
}
|
|
23
|
+
function insertDelegationCarrier(draft, adapterId, label, modelId) {
|
|
24
|
+
if (parseDelegationCarriers(draft).carriers.some((item) => item.adapterId === adapterId.trim())) return draft;
|
|
25
|
+
const carrier = encodeDelegationCarrier(adapterId, label, modelId);
|
|
26
|
+
const trimmed = draft.trimEnd();
|
|
27
|
+
return trimmed === "" ? carrier : `${trimmed} ${carrier}`;
|
|
28
|
+
}
|
|
29
|
+
/** 解析并移除草稿中的全部委派 carrier;不依据显示名称猜测目标。 */
|
|
30
|
+
function parseDelegationCarriers(input) {
|
|
31
|
+
const text = typeof input === "string" ? input : "";
|
|
32
|
+
const carriers = [];
|
|
33
|
+
const errors = [];
|
|
34
|
+
const ranges = [];
|
|
35
|
+
let found = false;
|
|
36
|
+
for (const match of text.matchAll(CARRIER_V2_PATTERN)) {
|
|
37
|
+
found = true;
|
|
38
|
+
const rawId = match[1] ?? "";
|
|
39
|
+
const rawModel = match[2] ?? "";
|
|
40
|
+
const rawLabel = match[3] ?? "";
|
|
41
|
+
const index = match.index ?? -1;
|
|
42
|
+
if (index < 0) continue;
|
|
43
|
+
let adapterId = "";
|
|
44
|
+
let modelId = "";
|
|
45
|
+
let label = "";
|
|
46
|
+
try {
|
|
47
|
+
adapterId = decodeURIComponent(rawId).trim();
|
|
48
|
+
modelId = decodeURIComponent(rawModel).trim();
|
|
49
|
+
label = decodeURIComponent(rawLabel).trim();
|
|
50
|
+
} catch {
|
|
51
|
+
errors.push("DELEGATE_CARRIER_INVALID: carrier encoding is corrupted");
|
|
52
|
+
}
|
|
53
|
+
if (adapterId === "" || modelId === "" || label === "") errors.push("DELEGATE_CARRIER_INVALID: carrier is missing a target identifier");
|
|
54
|
+
const mention = label === "" ? "" : `@${label}`;
|
|
55
|
+
const start = mention !== "" && text.slice(Math.max(0, index - mention.length), index) === mention ? index - mention.length : index;
|
|
56
|
+
ranges.push([start, index + match[0].length]);
|
|
57
|
+
if (adapterId !== "" && modelId !== "" && label !== "" && !carriers.some((item) => item.adapterId === adapterId)) carriers.push({
|
|
58
|
+
version: 2,
|
|
59
|
+
adapterId,
|
|
60
|
+
label,
|
|
61
|
+
modelId
|
|
62
|
+
});
|
|
63
|
+
}
|
|
64
|
+
for (const match of text.matchAll(CARRIER_V1_PATTERN)) {
|
|
65
|
+
found = true;
|
|
66
|
+
const rawId = match[1] ?? "";
|
|
67
|
+
const rawLabel = match[2] ?? "";
|
|
68
|
+
const index = match.index ?? -1;
|
|
69
|
+
if (index < 0) continue;
|
|
70
|
+
let adapterId = "";
|
|
71
|
+
let label = "";
|
|
72
|
+
try {
|
|
73
|
+
adapterId = decodeURIComponent(rawId).trim();
|
|
74
|
+
label = decodeURIComponent(rawLabel).trim();
|
|
75
|
+
} catch {
|
|
76
|
+
errors.push("DELEGATE_CARRIER_INVALID: carrier encoding is corrupted");
|
|
77
|
+
}
|
|
78
|
+
if (adapterId === "" || label === "") errors.push("DELEGATE_CARRIER_INVALID: carrier is missing a target identifier");
|
|
79
|
+
const mention = label === "" ? "" : `@${label}`;
|
|
80
|
+
const start = mention !== "" && text.slice(Math.max(0, index - mention.length), index) === mention ? index - mention.length : index;
|
|
81
|
+
ranges.push([start, index + match[0].length]);
|
|
82
|
+
if (adapterId !== "" && label !== "" && !carriers.some((item) => item.adapterId === adapterId)) carriers.push({
|
|
83
|
+
version: 1,
|
|
84
|
+
adapterId,
|
|
85
|
+
label
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
for (const match of text.matchAll(MALFORMED_CARRIER_PATTERN)) {
|
|
89
|
+
const index = match.index ?? -1;
|
|
90
|
+
if (index < 0 || /^<!--agentdoor:delegate:v1:[^:>]+:[^>]+-->$/u.test(match[0]) || /^<!--agentdoor:delegate:v2:[^:>]+:[^:>]+:[^>]+-->$/u.test(match[0])) continue;
|
|
91
|
+
found = true;
|
|
92
|
+
errors.push("DELEGATE_CARRIER_INVALID: carrier format is not supported");
|
|
93
|
+
ranges.push([index, index + match[0].length]);
|
|
94
|
+
}
|
|
95
|
+
if (ranges.length === 0) return {
|
|
96
|
+
carriers: [],
|
|
97
|
+
text,
|
|
98
|
+
errors,
|
|
99
|
+
found
|
|
100
|
+
};
|
|
101
|
+
ranges.sort((a, b) => a[0] - b[0]);
|
|
102
|
+
let clean = "";
|
|
103
|
+
let cursor = 0;
|
|
104
|
+
for (const [start, end] of ranges) {
|
|
105
|
+
if (start < cursor) continue;
|
|
106
|
+
clean += text.slice(cursor, start);
|
|
107
|
+
cursor = end;
|
|
108
|
+
}
|
|
109
|
+
clean += text.slice(cursor);
|
|
110
|
+
return {
|
|
111
|
+
carriers,
|
|
112
|
+
text: clean.replace(/[ \t]{2,}/gu, " ").trim(),
|
|
113
|
+
errors,
|
|
114
|
+
found
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
// src/client/delegate-plan.ts
|
|
118
|
+
/**
|
|
119
|
+
* `/委派` 命令的纯逻辑层。
|
|
120
|
+
*
|
|
121
|
+
* 这里不导入任何 DSH Client 包,因此可以被 Node 单测直接加载;命令注册、
|
|
122
|
+
* DSH 服务探测和界面文案留在 `delegate-command.ts`。
|
|
123
|
+
*/
|
|
124
|
+
/** 命令名(不带前导斜杠);`/` 菜单里的稳定标识。 */
|
|
125
|
+
const DELEGATE_COMMAND_NAME = "delegate";
|
|
126
|
+
/**
|
|
127
|
+
* 把适配器目录映射为委派选项。
|
|
128
|
+
*
|
|
129
|
+
* 只列出已安装且已启用的 Agent。`dsh` 由 Host 作为内置适配器提供,和外部 CLI
|
|
130
|
+
* 一样允许用户明确选择;未安装或已停用的适配器即使出现在目录里也会在 Host 侧拒绝。
|
|
131
|
+
*/
|
|
132
|
+
function delegateAdapterOptions(catalog) {
|
|
133
|
+
const options = [];
|
|
134
|
+
for (const adapter of catalog) {
|
|
135
|
+
if (!adapter.installed || !adapter.enabled) continue;
|
|
136
|
+
const detail = adapter.version?.trim();
|
|
137
|
+
options.push({
|
|
138
|
+
id: adapter.id,
|
|
139
|
+
label: adapter.name.trim() === "" ? adapter.id : adapter.name,
|
|
140
|
+
...detail === void 0 || detail === "" ? {} : { detail }
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
return options;
|
|
144
|
+
}
|
|
145
|
+
/** 把选择结果追加到草稿;重复目标按 adapterId 去重。 */
|
|
146
|
+
function appendDelegateCarrier(draft, adapterId, adapterName, modelId) {
|
|
147
|
+
return insertDelegationCarrier(draft, adapterId, adapterName, modelId);
|
|
148
|
+
}
|
|
149
|
+
// src/client/delegate-ui-dom.ts
|
|
150
|
+
/**
|
|
151
|
+
* `/委派` 的界面增强(DOM 注入)。
|
|
152
|
+
*
|
|
153
|
+
* DSH 的 `/` 菜单把「添加」分类写死在 `sectionRows` 的名单里(file/goal/plan/feedback),
|
|
154
|
+
* 客户端贡献项只能落到「指令」分类;popupSelect 的 `SelectOption` 契约也没有图标字段。
|
|
155
|
+
* 这两点都无法通过公开 API 表达,因此这里按仓库既有的 DOM 注入惯例做两件事:
|
|
156
|
+
*
|
|
157
|
+
* 1. 把插件自己的委派行放进「添加」分类。真实行由 React 拥有,插件**只加属性隐藏它**,
|
|
158
|
+
* 绝不搬动它;「添加」分类末尾放一个克隆行,交互事件转发回真实行。
|
|
159
|
+
* - 不用 CSS `order` 让真实行「看起来」在添加分类里:`order` 只改视觉位置,
|
|
160
|
+
* 而菜单高亮由 store 的候选顺序(等于 DOM 顺序)驱动,两者会分叉——方向键
|
|
161
|
+
* 走到委派时高亮会突然跳到上面去。克隆行则让视觉与键盘顺序保持一致。
|
|
162
|
+
* - 绝不移动 React 拥有的节点,否则下一次协调时 React 的 insertBefore 会抛
|
|
163
|
+
* NotFoundError 打断整个菜单。
|
|
164
|
+
* - 克隆行**不能继承**隐藏标记,否则真实行和克隆行都被隐藏,委派入口整个消失;
|
|
165
|
+
* 隐藏规则本身也用 `:not()` 排除克隆行作为第二道保险。
|
|
166
|
+
* 2. 给委派弹层里的适配器行补上 Provider 图标。
|
|
167
|
+
*
|
|
168
|
+
* 依赖的 DSH 0.2.0-rc.2 契约(任何一条不成立都只是不生效,不会误改宿主界面):
|
|
169
|
+
* - `/` 菜单行是 `button[role="option"]`,id 前缀 `dsh-slash-option-`,标题在
|
|
170
|
+
* `span[class*="itemName"]`;分类标题在 `div[class*="sectionTitle"]`,「添加」恒为首个;
|
|
171
|
+
* - 委派弹层的搜索框 placeholder 由插件自己提供,行标题在 `span[class*="labelText"]`。
|
|
172
|
+
*/
|
|
173
|
+
/** 被打在真实委派菜单行上的隐藏标记。 */
|
|
174
|
+
const DELEGATE_MENU_ROW_ATTRIBUTE = "data-agent-door-delegate-row";
|
|
175
|
+
/** 插件在「添加」分类里创建的克隆行标记。 */
|
|
176
|
+
const DELEGATE_MENU_PROXY_ATTRIBUTE = "data-agent-door-delegate-proxy";
|
|
177
|
+
/** 插件在委派弹层适配器行前插入的图标标记。 */
|
|
178
|
+
const DELEGATE_POPUP_LOGO_ATTRIBUTE = "data-agent-door-delegate-logo";
|
|
179
|
+
/** 委派输入 chip 前插入的 Provider Logo 标记。 */
|
|
180
|
+
const DELEGATE_CHIP_LOGO_ATTRIBUTE = "data-agent-door-delegate-chip-logo";
|
|
181
|
+
/** DSH 消息时间线中由插件投影的委派 Agent chip 标记。 */
|
|
182
|
+
const DELEGATE_TIMELINE_CHIP_ATTRIBUTE = "data-agent-door-delegate-timeline-chip";
|
|
183
|
+
/** 时间线 chip 保存的原始 carrier,停用插件时用于恢复 React 之外的 DOM。 */
|
|
184
|
+
const DELEGATE_TIMELINE_RAW_ATTRIBUTE = "data-agent-door-delegate-timeline-raw";
|
|
185
|
+
/** DSH 时间线中由 Host 改写消息投影的委派任务卡片标记。 */
|
|
186
|
+
const DELEGATE_TIMELINE_CARD_ATTRIBUTE = "data-agent-door-delegation-card";
|
|
187
|
+
/** 委派卡片保存原始指令,停用插件时用于恢复 React 之外的 DOM。 */
|
|
188
|
+
const DELEGATE_TIMELINE_CARD_RAW_ATTRIBUTE = "data-agent-door-delegation-card-raw";
|
|
189
|
+
/** DSH 空状态输入提示保存原始文案的标记。 */
|
|
190
|
+
const DELEGATE_PLACEHOLDER_BASE_ATTRIBUTE = "data-agent-door-delegate-placeholder-base";
|
|
191
|
+
const DELEGATE_PLACEHOLDER_MARK_ATTRIBUTE = "data-agent-door-delegate-placeholder";
|
|
192
|
+
/** 插件样式标签的幂等键。 */
|
|
193
|
+
const DELEGATE_UI_STYLE_ID = "dsh-agentdoor-delegate-ui-style";
|
|
194
|
+
const MENU_OPTION_SELECTOR = "[role=\"option\"]";
|
|
195
|
+
const MENU_LISTBOX_SELECTOR = "[role=\"listbox\"]";
|
|
196
|
+
const MENU_OPTION_ID_PREFIX = "dsh-slash-option-";
|
|
197
|
+
const ITEM_NAME_SELECTOR = "[class*=\"itemName\"]";
|
|
198
|
+
const SECTION_TITLE_SELECTOR = "[class*=\"sectionTitle\"]";
|
|
199
|
+
const LABEL_TEXT_SELECTOR = "[class*=\"labelText\"]";
|
|
200
|
+
const DELEGATION_INSTRUCTION_MARKER = "[AgentDoor 委派指令]";
|
|
201
|
+
const DELEGATE_UI_STYLE_TEXT = `[${DELEGATE_MENU_ROW_ATTRIBUTE}]:not([${DELEGATE_MENU_PROXY_ATTRIBUTE}]){display:none!important}[${DELEGATE_MENU_PROXY_ATTRIBUTE}][data-active="true"]{background:var(--dsw-alias-interactive-bg-hover)}[${DELEGATE_POPUP_LOGO_ATTRIBUTE}]{width:16px;height:16px;flex:none;object-fit:contain;border-radius:3px;margin-right:2px}[${DELEGATE_CHIP_LOGO_ATTRIBUTE}]{width:14px;height:14px;flex:none;align-self:center;object-fit:contain;border-radius:3px;margin-right:2px}[data-composer-chip="agent-door-delegate"]:has([${DELEGATE_CHIP_LOGO_ATTRIBUTE}]) svg{display:none!important}[${DELEGATE_TIMELINE_CHIP_ATTRIBUTE}]{display:inline-flex;align-items:center;vertical-align:baseline;gap:3px;padding:0 5px;border-radius:999px;background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-primary);white-space:nowrap;font-size:.95em;line-height:1.45}[${DELEGATE_TIMELINE_CHIP_ATTRIBUTE}] img{width:14px;height:14px;flex:none;object-fit:contain;border-radius:3px}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}]{box-sizing:border-box;display:flex;flex-direction:column;align-self:stretch;width:100%;max-width:100%;min-width:0;gap:8px;margin:2px 0;padding:10px 12px;border:1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.2));border-radius:10px;background:var(--dsw-alias-bg-layer-2,rgba(127,127,127,.06));line-height:1.5;overflow-wrap:anywhere}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-title]{display:flex;align-items:center;min-width:0;gap:6px;font-weight:600;overflow-wrap:anywhere}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-targets]{display:flex;flex-wrap:wrap;min-width:0;width:100%;max-width:100%;gap:5px}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-target]{box-sizing:border-box;display:inline-flex;align-items:center;flex:0 1 auto;min-width:0;max-width:100%;gap:3px;padding:1px 7px;border-radius:999px;background:var(--dsw-alias-interactive-bg-hover);font-size:.9em;white-space:normal;overflow-wrap:anywhere;word-break:break-word}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-target] img{flex:0 0 auto;width:14px;height:14px;object-fit:contain;border-radius:3px}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-target] span{min-width:0;overflow-wrap:anywhere;word-break:break-word}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-task]{box-sizing:border-box;width:100%;max-width:100%;min-width:0;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-status]{min-width:0;color:var(--dsw-alias-label-secondary,GrayText);font-size:.88em;overflow-wrap:anywhere;word-break:break-word}@media (max-width:768px){[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}]{gap:6px;margin:2px 0;padding:8px 10px;border-radius:8px;font-size:.95em}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-targets]{gap:4px}[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}] [data-agent-door-delegation-card-target]{padding:2px 6px;font-size:.88em}}`;
|
|
202
|
+
/** 克隆行 → 真实行;真实行被 React 重建时据此判定需要重建克隆。 */
|
|
203
|
+
const proxySources = /* @__PURE__ */ new WeakMap();
|
|
204
|
+
let popupOptions = [];
|
|
205
|
+
let requestRefresh;
|
|
206
|
+
/**
|
|
207
|
+
* 登记当前委派弹层的适配器选项。
|
|
208
|
+
*
|
|
209
|
+
* `/委派` 的 `options()` 每次加载后调用;图标注入据此把行标题反查回适配器 id。
|
|
210
|
+
* 行标题就是适配器显示名,因此这张表同时充当标题到 id 的映射。
|
|
211
|
+
*/
|
|
212
|
+
function setDelegatePopupOptions(options) {
|
|
213
|
+
popupOptions = options;
|
|
214
|
+
requestRefresh?.();
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* 安装 `/委派` 的界面增强。
|
|
218
|
+
*
|
|
219
|
+
* @param options - 注入点(document/观察器/本地化文案/图标表),便于单测替换。
|
|
220
|
+
* @returns 控制器;`document` 缺失时退化为空操作。
|
|
221
|
+
*/
|
|
222
|
+
function startDelegateUiDom(options) {
|
|
223
|
+
const dom = options.document ?? (typeof document === "undefined" ? void 0 : document);
|
|
224
|
+
const Observer = options.MutationObserver ?? (typeof MutationObserver === "undefined" ? void 0 : MutationObserver);
|
|
225
|
+
const iconUrl = options.iconUrlForAdapter ?? require_primitives_adapter.providerIconUrl;
|
|
226
|
+
let disposed = false;
|
|
227
|
+
let scanQueued = false;
|
|
228
|
+
let observer;
|
|
229
|
+
const observe = () => {
|
|
230
|
+
if (disposed || dom === void 0 || observer === void 0) return;
|
|
231
|
+
observer.observe(dom.documentElement, {
|
|
232
|
+
childList: true,
|
|
233
|
+
subtree: true,
|
|
234
|
+
attributes: true,
|
|
235
|
+
attributeFilter: ["aria-selected"]
|
|
236
|
+
});
|
|
237
|
+
};
|
|
238
|
+
const runScan = () => {
|
|
239
|
+
if (disposed || dom === void 0) return;
|
|
240
|
+
const listboxes = [...dom.querySelectorAll(MENU_LISTBOX_SELECTOR)];
|
|
241
|
+
if (listboxes.length > 0) {
|
|
242
|
+
relocateMenuRow(listboxes, options.menuLabel());
|
|
243
|
+
decoratePopupRows(listboxes, options.popupPlaceholder(), iconUrl);
|
|
244
|
+
}
|
|
245
|
+
decorateReferenceChips(dom, iconUrl);
|
|
246
|
+
decorateTimelineMessages(dom, iconUrl, options);
|
|
247
|
+
decorateComposerPlaceholders(dom, options.composerPlaceholder);
|
|
248
|
+
};
|
|
249
|
+
const scan = () => {
|
|
250
|
+
if (disposed || dom === void 0) return;
|
|
251
|
+
observer?.disconnect();
|
|
252
|
+
try {
|
|
253
|
+
runScan();
|
|
254
|
+
} finally {
|
|
255
|
+
observe();
|
|
256
|
+
}
|
|
257
|
+
};
|
|
258
|
+
const scheduleScan = () => {
|
|
259
|
+
if (disposed || scanQueued) return;
|
|
260
|
+
scanQueued = true;
|
|
261
|
+
queueMicrotask(() => {
|
|
262
|
+
scanQueued = false;
|
|
263
|
+
scan();
|
|
264
|
+
});
|
|
265
|
+
};
|
|
266
|
+
requestRefresh = scheduleScan;
|
|
267
|
+
if (dom !== void 0) installDelegateUiStyles(dom);
|
|
268
|
+
observer = dom === void 0 || Observer === void 0 ? void 0 : new Observer(scheduleScan);
|
|
269
|
+
observe();
|
|
270
|
+
scan();
|
|
271
|
+
return {
|
|
272
|
+
refresh: scheduleScan,
|
|
273
|
+
dispose() {
|
|
274
|
+
if (disposed) return;
|
|
275
|
+
disposed = true;
|
|
276
|
+
observer?.disconnect();
|
|
277
|
+
if (requestRefresh === scheduleScan) requestRefresh = void 0;
|
|
278
|
+
if (dom !== void 0) removeDelegateNodes(dom);
|
|
279
|
+
}
|
|
280
|
+
};
|
|
281
|
+
}
|
|
282
|
+
/** 把插件自己的 `/` 菜单行搬进「添加」分类。 */
|
|
283
|
+
function relocateMenuRow(listboxes, label) {
|
|
284
|
+
const listbox = findSlashMenuListbox(listboxes);
|
|
285
|
+
if (listbox === void 0) return;
|
|
286
|
+
const row = findMenuRow(listbox, label);
|
|
287
|
+
const section = findAddSectionTitle(listbox);
|
|
288
|
+
if (row === void 0 || section === void 0) {
|
|
289
|
+
removeProxies(listbox);
|
|
290
|
+
if (row !== void 0) row.removeAttribute(DELEGATE_MENU_ROW_ATTRIBUTE);
|
|
291
|
+
return;
|
|
292
|
+
}
|
|
293
|
+
const existing = listbox.querySelector(`[${DELEGATE_MENU_PROXY_ATTRIBUTE}]`);
|
|
294
|
+
let proxy = existing !== null && proxySources.get(existing) === row ? existing : void 0;
|
|
295
|
+
if (proxy === void 0) {
|
|
296
|
+
existing?.remove();
|
|
297
|
+
proxy = buildProxyRow(row);
|
|
298
|
+
insertAfterSectionOptions(section, proxy);
|
|
299
|
+
proxySources.set(proxy, row);
|
|
300
|
+
}
|
|
301
|
+
if (proxy.parentNode === null) row.removeAttribute(DELEGATE_MENU_ROW_ATTRIBUTE);
|
|
302
|
+
else row.setAttribute(DELEGATE_MENU_ROW_ATTRIBUTE, "");
|
|
303
|
+
syncProxyActive(row, proxy);
|
|
304
|
+
}
|
|
305
|
+
/** 克隆真实行:视觉、图标与文案与原生行完全一致,交互转发回真实行。 */
|
|
306
|
+
function buildProxyRow(row) {
|
|
307
|
+
const proxy = row.cloneNode(true);
|
|
308
|
+
proxy.removeAttribute(DELEGATE_MENU_ROW_ATTRIBUTE);
|
|
309
|
+
proxy.removeAttribute("id");
|
|
310
|
+
proxy.removeAttribute("aria-selected");
|
|
311
|
+
stripActiveClass(proxy);
|
|
312
|
+
proxy.setAttribute(DELEGATE_MENU_PROXY_ATTRIBUTE, "");
|
|
313
|
+
proxy.setAttribute("data-active", "false");
|
|
314
|
+
forwardEvent(proxy, row, "mousemove");
|
|
315
|
+
forwardEvent(proxy, row, "mousedown");
|
|
316
|
+
proxy.addEventListener("click", (event) => {
|
|
317
|
+
event.preventDefault();
|
|
318
|
+
event.stopPropagation();
|
|
319
|
+
});
|
|
320
|
+
return proxy;
|
|
321
|
+
}
|
|
322
|
+
function forwardEvent(proxy, target, type) {
|
|
323
|
+
proxy.addEventListener(type, (event) => {
|
|
324
|
+
event.preventDefault();
|
|
325
|
+
dispatchLike(target, type);
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/** 在真实行上派发一次可冒泡事件,让 React 的合成事件把它当成真实交互。 */
|
|
329
|
+
function dispatchLike(target, type) {
|
|
330
|
+
const MouseEventCtor = (target.ownerDocument?.defaultView)?.MouseEvent ?? (typeof MouseEvent === "undefined" ? void 0 : MouseEvent);
|
|
331
|
+
const event = MouseEventCtor === void 0 ? new Event(type, {
|
|
332
|
+
bubbles: true,
|
|
333
|
+
cancelable: true
|
|
334
|
+
}) : new MouseEventCtor(type, {
|
|
335
|
+
bubbles: true,
|
|
336
|
+
cancelable: true
|
|
337
|
+
});
|
|
338
|
+
target.dispatchEvent(event);
|
|
339
|
+
}
|
|
340
|
+
/**
|
|
341
|
+
* 去掉克隆行上的原生高亮类。
|
|
342
|
+
*
|
|
343
|
+
* 类名带 CSS Modules 哈希(如 `_3e4SsG_active`),不能硬编码;这里按「最后一个下划线
|
|
344
|
+
* 片段等于 active」识别,同时兼容没有哈希的 `active`。
|
|
345
|
+
*/
|
|
346
|
+
function stripActiveClass(proxy) {
|
|
347
|
+
const classes = proxy.getAttribute("class");
|
|
348
|
+
if (classes === null || classes === "") return;
|
|
349
|
+
const kept = classes.split(/\s+/u).filter((name) => name !== "active" && !name.endsWith("_active"));
|
|
350
|
+
proxy.setAttribute("class", kept.join(" "));
|
|
351
|
+
}
|
|
352
|
+
/**
|
|
353
|
+
* 真实行被方向键/悬停高亮时,克隆行同步高亮。
|
|
354
|
+
*
|
|
355
|
+
* 每次写入前都必须先比较现值:这里的属性正是观察器盯着的那个,多余的写会白白
|
|
356
|
+
* 触发一轮重扫(真正的死循环由 scan() 的断开-重连兜住,这里只减少无谓触发)。
|
|
357
|
+
*/
|
|
358
|
+
function syncProxyActive(row, proxy) {
|
|
359
|
+
const active = row.getAttribute("aria-selected") === "true";
|
|
360
|
+
const next = String(active);
|
|
361
|
+
if (proxy.getAttribute("data-active") !== next) proxy.setAttribute("data-active", next);
|
|
362
|
+
const current = proxy.getAttribute("aria-selected");
|
|
363
|
+
if (active) {
|
|
364
|
+
if (current !== "true") proxy.setAttribute("aria-selected", "true");
|
|
365
|
+
proxy.scrollIntoView?.({ block: "nearest" });
|
|
366
|
+
} else if (current !== null) proxy.removeAttribute("aria-selected");
|
|
367
|
+
}
|
|
368
|
+
function findSlashMenuListbox(listboxes) {
|
|
369
|
+
for (const listbox of listboxes) if (listbox.querySelector(`[id^="${MENU_OPTION_ID_PREFIX}"]`) !== null) return listbox;
|
|
370
|
+
}
|
|
371
|
+
/**
|
|
372
|
+
* 定位插件自己的菜单行。
|
|
373
|
+
*
|
|
374
|
+
* 必须跳过克隆行:它与真实行同名,先命中克隆行会让后续判定全部错位。
|
|
375
|
+
*/
|
|
376
|
+
function findMenuRow(listbox, label) {
|
|
377
|
+
for (const row of listbox.querySelectorAll(MENU_OPTION_SELECTOR)) {
|
|
378
|
+
if (row.hasAttribute("data-agent-door-delegate-proxy")) continue;
|
|
379
|
+
if (row.getAttribute("id")?.startsWith(MENU_OPTION_ID_PREFIX) !== true) continue;
|
|
380
|
+
const name = row.querySelector(ITEM_NAME_SELECTOR);
|
|
381
|
+
if (name !== null && (name.textContent ?? "").trim() === label) return row;
|
|
382
|
+
}
|
|
383
|
+
for (const row of listbox.querySelectorAll(MENU_OPTION_SELECTOR)) {
|
|
384
|
+
if (row.hasAttribute("data-agent-door-delegate-proxy")) continue;
|
|
385
|
+
if (row.getAttribute("id")?.startsWith(MENU_OPTION_ID_PREFIX) !== true) continue;
|
|
386
|
+
if ((row.textContent ?? "").includes(label)) return row;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
/**
|
|
390
|
+
* 「添加」分类标题。
|
|
391
|
+
*
|
|
392
|
+
* DSH 的 `sectionRows` 恒把添加分类排在指令分类之前,因此首个分类标题就是它;
|
|
393
|
+
* 这里不硬编码「添加」字样,避免绑定语言。
|
|
394
|
+
*/
|
|
395
|
+
function findAddSectionTitle(listbox) {
|
|
396
|
+
return listbox.querySelectorAll(SECTION_TITLE_SELECTOR)[0];
|
|
397
|
+
}
|
|
398
|
+
/** 插入到该分类最后一行之后;分类为空时紧贴标题。 */
|
|
399
|
+
function insertAfterSectionOptions(section, proxy) {
|
|
400
|
+
let anchor = section;
|
|
401
|
+
let sibling = section.nextElementSibling;
|
|
402
|
+
while (sibling !== null && sibling.matches(MENU_OPTION_SELECTOR)) {
|
|
403
|
+
anchor = sibling;
|
|
404
|
+
sibling = sibling.nextElementSibling;
|
|
405
|
+
}
|
|
406
|
+
const parent = anchor.parentNode;
|
|
407
|
+
if (parent === null) return;
|
|
408
|
+
parent.insertBefore(proxy, anchor.nextSibling);
|
|
409
|
+
}
|
|
410
|
+
/** 给委派弹层里的适配器行补图标。 */
|
|
411
|
+
function decoratePopupRows(listboxes, placeholder, iconUrl) {
|
|
412
|
+
const listbox = findDelegatePopupListbox(listboxes, placeholder);
|
|
413
|
+
if (listbox === void 0) return;
|
|
414
|
+
for (const row of listbox.querySelectorAll(MENU_OPTION_SELECTOR)) {
|
|
415
|
+
if (row.querySelector(`[data-agent-door-delegate-logo]`) !== null) continue;
|
|
416
|
+
const adapterId = adapterIdForLabel(readPopupOptionLabel(row));
|
|
417
|
+
if (adapterId === void 0) continue;
|
|
418
|
+
const url = iconUrl(adapterId);
|
|
419
|
+
if (url === void 0) continue;
|
|
420
|
+
const image = listbox.ownerDocument.createElement("img");
|
|
421
|
+
image.setAttribute("src", url);
|
|
422
|
+
image.setAttribute("alt", "");
|
|
423
|
+
image.setAttribute("aria-hidden", "true");
|
|
424
|
+
image.setAttribute(DELEGATE_POPUP_LOGO_ATTRIBUTE, adapterId);
|
|
425
|
+
row.insertBefore(image, row.firstChild);
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* 给 DSH 原生 ReferenceChip 补上外部 Agent 的品牌图标。
|
|
430
|
+
*
|
|
431
|
+
* ReferenceInsert 的 appearance 只支持 session/file/folder,不能传入
|
|
432
|
+
* Provider 资产。只扫描本插件自己的 chip,并按 chip 标题反查委派目录;
|
|
433
|
+
* 目录尚未就绪时保留 DSH 的通用 session 图标,避免误标其它引用。
|
|
434
|
+
*/
|
|
435
|
+
function decorateReferenceChips(dom, iconUrl) {
|
|
436
|
+
for (const chip of dom.querySelectorAll("[data-composer-chip=\"agent-door-delegate\"]")) {
|
|
437
|
+
const labelNode = chip.querySelector("[title]");
|
|
438
|
+
const adapterId = adapterIdForLabel(labelNode?.getAttribute("title")?.trim() || labelNode?.textContent?.trim() || chip.textContent?.trim() || "");
|
|
439
|
+
if (adapterId === void 0) continue;
|
|
440
|
+
const src = iconUrl(adapterId);
|
|
441
|
+
if (src === void 0 || src === "") continue;
|
|
442
|
+
const existing = chip.querySelector(`[${DELEGATE_CHIP_LOGO_ATTRIBUTE}]`);
|
|
443
|
+
if (existing !== null) {
|
|
444
|
+
if (existing.getAttribute("src") !== src) existing.setAttribute("src", src);
|
|
445
|
+
continue;
|
|
446
|
+
}
|
|
447
|
+
const logo = dom.createElement("img");
|
|
448
|
+
logo.setAttribute(DELEGATE_CHIP_LOGO_ATTRIBUTE, adapterId);
|
|
449
|
+
logo.setAttribute("src", src);
|
|
450
|
+
logo.setAttribute("alt", "");
|
|
451
|
+
logo.setAttribute("aria-hidden", "true");
|
|
452
|
+
chip.insertBefore(logo, chip.firstChild);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
/**
|
|
456
|
+
* 统一 DSH 新建会话和已有会话的输入框提示。
|
|
457
|
+
*
|
|
458
|
+
* DSH 没有公开修改内置 placeholder 的接口,因此保存原文后更新显示文本。
|
|
459
|
+
* 观察器会在 React 重绘或会话切换后重新应用,确保两种会话状态始终一致。
|
|
460
|
+
*/
|
|
461
|
+
function decorateComposerPlaceholders(dom, textFactory) {
|
|
462
|
+
const text = textFactory?.().trim();
|
|
463
|
+
if (text === void 0 || text === "") return;
|
|
464
|
+
for (const placeholder of dom.querySelectorAll("[data-composer-placeholder]")) {
|
|
465
|
+
const base = placeholder.getAttribute("data-agent-door-delegate-placeholder-base") ?? placeholder.textContent?.trim() ?? "";
|
|
466
|
+
if (base === "") continue;
|
|
467
|
+
if (!placeholder.hasAttribute("data-agent-door-delegate-placeholder-base")) placeholder.setAttribute(DELEGATE_PLACEHOLDER_BASE_ATTRIBUTE, base);
|
|
468
|
+
placeholder.setAttribute(DELEGATE_PLACEHOLDER_MARK_ATTRIBUTE, "");
|
|
469
|
+
if (placeholder.textContent !== text) placeholder.textContent = text;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
/**
|
|
473
|
+
* 将已经提交到 DSH 时间线的 carrier 投影为可读的 Agent chip。
|
|
474
|
+
*
|
|
475
|
+
* DSH 的输入 codec 只有一个序列化结果:Host 需要的 carrier;因此 durable
|
|
476
|
+
* `user/message` 也会携带这段传输文本。这里仅处理 DSH 的 userRow/bubble,
|
|
477
|
+
* 不触碰 assistant、代码块和普通页面文本,避免把模型内容中的 carrier 改写。
|
|
478
|
+
*/
|
|
479
|
+
function decorateTimelineMessages(dom, iconUrl, options) {
|
|
480
|
+
const rows = [...dom.querySelectorAll("[class*=\"userRow\"]")];
|
|
481
|
+
for (const row of dom.querySelectorAll("[data-submission-echo]")) if (!rows.includes(row)) rows.push(row);
|
|
482
|
+
for (const row of rows) {
|
|
483
|
+
const bubble = row.querySelector("[class*=\"bubble\"]") ?? row.querySelector("[class*=\"preview\"]");
|
|
484
|
+
if (bubble === null) continue;
|
|
485
|
+
decorateTimelineNode(bubble, dom, iconUrl, options);
|
|
486
|
+
}
|
|
487
|
+
}
|
|
488
|
+
function decorateTimelineNode(node, dom, iconUrl, options) {
|
|
489
|
+
if (node.nodeType === 3) {
|
|
490
|
+
const value = node.nodeValue ?? "";
|
|
491
|
+
if (value.includes("<!--agentdoor:delegate:") || value.includes(DELEGATION_INSTRUCTION_MARKER)) replaceTimelineTextNode(node, value, dom, iconUrl, options);
|
|
492
|
+
return;
|
|
493
|
+
}
|
|
494
|
+
if (node.nodeType !== 1 || node.hasAttribute("data-agent-door-delegate-timeline-chip") || node.hasAttribute("data-agent-door-delegation-card")) return;
|
|
495
|
+
for (const child of [...node.childNodes]) decorateTimelineNode(child, dom, iconUrl, options);
|
|
496
|
+
}
|
|
497
|
+
const TIMELINE_CARRIER_V1_PATTERN = /<!--agentdoor:delegate:v1:([^:>]+):([^>]+)-->/gu;
|
|
498
|
+
const TIMELINE_CARRIER_V2_PATTERN = /<!--agentdoor:delegate:v2:([^:>]+):([^:>]+):([^>]+)-->/gu;
|
|
499
|
+
const DELEGATION_INSTRUCTION_PATTERN = /\[AgentDoor 委派指令\]\s*\n任务:([\s\S]*?)\n允许使用的外部 Agent:\s*\n([\s\S]*?)(?=\n请先根据任务语义制定简短的角色和步骤计划:|\n然后调用已有 agent_subagent 工具执行委派。|$)/u;
|
|
500
|
+
const DEFAULT_ADAPTER_MODEL_LABEL = String.fromCodePoint(36866, 37197, 22120, 40664, 35748);
|
|
501
|
+
const DELEGATION_TARGET_PATTERN = /^-\s*([^\s((]+)\s*[((]([^,,))]+)(?:[,,]\s*模型:([^,,))]*))?(?:[,,][^))]*)?[))]\s*$/gmu;
|
|
502
|
+
/** 解析 Host 改写后的委派指令,提取用户真正关心的任务和目标 Agent。 */
|
|
503
|
+
function parseDelegationTimelineCard(value) {
|
|
504
|
+
const match = DELEGATION_INSTRUCTION_PATTERN.exec(value);
|
|
505
|
+
if (match === null) return void 0;
|
|
506
|
+
const task = (match[1] ?? "").trim().replace(/^\/\s*/u, "").trim();
|
|
507
|
+
if (task === "") return void 0;
|
|
508
|
+
const targets = [];
|
|
509
|
+
for (const target of (match[2] ?? "").matchAll(DELEGATION_TARGET_PATTERN)) {
|
|
510
|
+
const adapterId = target[1]?.trim() ?? "";
|
|
511
|
+
const label = target[2]?.trim() ?? "";
|
|
512
|
+
const modelId = target[3]?.trim() ?? "";
|
|
513
|
+
if (adapterId === "" || label === "" || targets.some((item) => item.adapterId === adapterId)) continue;
|
|
514
|
+
targets.push({
|
|
515
|
+
adapterId,
|
|
516
|
+
label,
|
|
517
|
+
...modelId !== "" && modelId !== DEFAULT_ADAPTER_MODEL_LABEL ? { modelId } : {}
|
|
518
|
+
});
|
|
519
|
+
}
|
|
520
|
+
if (targets.length === 0) return void 0;
|
|
521
|
+
return {
|
|
522
|
+
raw: value,
|
|
523
|
+
task,
|
|
524
|
+
targets
|
|
525
|
+
};
|
|
526
|
+
}
|
|
527
|
+
/** 解析时间线文本中的有效 carrier;无效编码原样保留,避免误删用户内容。 */
|
|
528
|
+
function parseDelegationTimelineCarriers(value) {
|
|
529
|
+
const mentions = [];
|
|
530
|
+
const collect = (pattern, labelGroup) => {
|
|
531
|
+
for (const match of value.matchAll(pattern)) {
|
|
532
|
+
const carrierStart = match.index ?? -1;
|
|
533
|
+
const carrier = match[0] ?? "";
|
|
534
|
+
const adapterId = decodeCarrierPart(match[1]);
|
|
535
|
+
const label = decodeCarrierPart(match[labelGroup]);
|
|
536
|
+
if (carrierStart < 0 || carrier === "" || adapterId === void 0 || label === void 0) continue;
|
|
537
|
+
const mention = `@${label}`;
|
|
538
|
+
const start = carrierStart >= mention.length && value.slice(carrierStart - mention.length, carrierStart) === mention ? carrierStart - mention.length : carrierStart;
|
|
539
|
+
const raw = value.slice(start, carrierStart + carrier.length);
|
|
540
|
+
mentions.push({
|
|
541
|
+
raw,
|
|
542
|
+
adapterId,
|
|
543
|
+
label,
|
|
544
|
+
start,
|
|
545
|
+
end: start + raw.length
|
|
546
|
+
});
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
collect(TIMELINE_CARRIER_V1_PATTERN, 2);
|
|
550
|
+
collect(TIMELINE_CARRIER_V2_PATTERN, 3);
|
|
551
|
+
return mentions.sort((a, b) => a.start - b.start);
|
|
552
|
+
}
|
|
553
|
+
function replaceTimelineTextNode(node, value, dom, iconUrl, options) {
|
|
554
|
+
const card = parseDelegationTimelineCard(value);
|
|
555
|
+
if (card !== void 0 && node.parentNode !== null) {
|
|
556
|
+
node.parentNode.replaceChild(buildTimelineCard(dom, card, iconUrl, options.cardTitle, options.cardStatus, options.cardTarget), node);
|
|
557
|
+
return;
|
|
558
|
+
}
|
|
559
|
+
const matches = parseDelegationTimelineCarriers(value);
|
|
560
|
+
if (matches.length === 0 || node.parentNode === null) return;
|
|
561
|
+
const fragment = dom.createDocumentFragment();
|
|
562
|
+
let cursor = 0;
|
|
563
|
+
for (const match of matches) {
|
|
564
|
+
if (match.start < cursor) continue;
|
|
565
|
+
if (match.start > cursor) fragment.append(dom.createTextNode(value.slice(cursor, match.start)));
|
|
566
|
+
fragment.append(buildTimelineChip(dom, match.raw, match.adapterId, match.label, iconUrl(match.adapterId)));
|
|
567
|
+
cursor = match.end;
|
|
568
|
+
}
|
|
569
|
+
if (cursor === 0) return;
|
|
570
|
+
if (cursor < value.length) fragment.append(dom.createTextNode(value.slice(cursor)));
|
|
571
|
+
node.parentNode.replaceChild(fragment, node);
|
|
572
|
+
}
|
|
573
|
+
function buildTimelineCard(dom, card, iconUrl, cardTitle = () => "Delegation task", cardStatus = () => "Delegating", cardTarget = ({ label, adapterId, modelId }) => `${label} (${adapterId}${modelId === void 0 ? "" : ` · ${modelId}`})`) {
|
|
574
|
+
const root = dom.createElement("div");
|
|
575
|
+
root.setAttribute(DELEGATE_TIMELINE_CARD_ATTRIBUTE, "");
|
|
576
|
+
root.setAttribute(DELEGATE_TIMELINE_CARD_RAW_ATTRIBUTE, card.raw);
|
|
577
|
+
const title = dom.createElement("div");
|
|
578
|
+
title.setAttribute("data-agent-door-delegation-card-title", "");
|
|
579
|
+
title.textContent = cardTitle();
|
|
580
|
+
const targets = dom.createElement("div");
|
|
581
|
+
targets.setAttribute("data-agent-door-delegation-card-targets", "");
|
|
582
|
+
for (const target of card.targets) {
|
|
583
|
+
const badge = dom.createElement("span");
|
|
584
|
+
badge.setAttribute("data-agent-door-delegation-card-target", target.adapterId);
|
|
585
|
+
const logoUrl = iconUrl(target.adapterId);
|
|
586
|
+
if (logoUrl !== void 0 && logoUrl !== "") {
|
|
587
|
+
const logo = dom.createElement("img");
|
|
588
|
+
logo.src = logoUrl;
|
|
589
|
+
logo.alt = "";
|
|
590
|
+
logo.setAttribute("aria-hidden", "true");
|
|
591
|
+
badge.append(logo);
|
|
592
|
+
}
|
|
593
|
+
const label = dom.createElement("span");
|
|
594
|
+
label.textContent = cardTarget(target);
|
|
595
|
+
badge.append(label);
|
|
596
|
+
targets.append(badge);
|
|
597
|
+
}
|
|
598
|
+
const task = dom.createElement("div");
|
|
599
|
+
task.setAttribute("data-agent-door-delegation-card-task", "");
|
|
600
|
+
task.textContent = card.task;
|
|
601
|
+
const status = dom.createElement("div");
|
|
602
|
+
status.setAttribute("data-agent-door-delegation-card-status", "");
|
|
603
|
+
status.textContent = cardStatus();
|
|
604
|
+
root.append(title, targets, task, status);
|
|
605
|
+
return root;
|
|
606
|
+
}
|
|
607
|
+
function decodeCarrierPart(value) {
|
|
608
|
+
if (value === void 0 || value === "") return void 0;
|
|
609
|
+
try {
|
|
610
|
+
const decoded = decodeURIComponent(value).trim();
|
|
611
|
+
return decoded === "" ? void 0 : decoded;
|
|
612
|
+
} catch {
|
|
613
|
+
return;
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
function buildTimelineChip(dom, raw, adapterId, label, iconUrl) {
|
|
617
|
+
const chip = dom.createElement("span");
|
|
618
|
+
chip.setAttribute(DELEGATE_TIMELINE_CHIP_ATTRIBUTE, adapterId);
|
|
619
|
+
chip.setAttribute(DELEGATE_TIMELINE_RAW_ATTRIBUTE, raw);
|
|
620
|
+
chip.setAttribute("title", `@${label}`);
|
|
621
|
+
if (iconUrl !== void 0 && iconUrl !== "") {
|
|
622
|
+
const logo = dom.createElement("img");
|
|
623
|
+
logo.setAttribute("src", iconUrl);
|
|
624
|
+
logo.setAttribute("alt", "");
|
|
625
|
+
logo.setAttribute("aria-hidden", "true");
|
|
626
|
+
chip.append(logo);
|
|
627
|
+
}
|
|
628
|
+
const text = dom.createElement("span");
|
|
629
|
+
text.textContent = `@${label}`;
|
|
630
|
+
chip.append(text);
|
|
631
|
+
return chip;
|
|
632
|
+
}
|
|
633
|
+
/** 通过插件自己的搜索占位符识别委派弹层,避免影响其它 popupSelect 命令。 */
|
|
634
|
+
function findDelegatePopupListbox(listboxes, placeholder) {
|
|
635
|
+
for (const listbox of listboxes) {
|
|
636
|
+
if (listbox.querySelector(`[id^="${MENU_OPTION_ID_PREFIX}"]`) !== null) continue;
|
|
637
|
+
if ((listbox.parentNode?.querySelector?.("input") ?? null)?.getAttribute("placeholder") === placeholder) return listbox;
|
|
638
|
+
}
|
|
639
|
+
}
|
|
640
|
+
function readPopupOptionLabel(row) {
|
|
641
|
+
return (row.querySelector(LABEL_TEXT_SELECTOR)?.textContent ?? row.textContent ?? "").trim();
|
|
642
|
+
}
|
|
643
|
+
function adapterIdForLabel(label) {
|
|
644
|
+
if (label === "") return void 0;
|
|
645
|
+
return popupOptions.find((option) => option.label === label)?.id;
|
|
646
|
+
}
|
|
647
|
+
function removeProxies(scope) {
|
|
648
|
+
for (const proxy of scope.querySelectorAll(`[${DELEGATE_MENU_PROXY_ATTRIBUTE}]`)) proxy.remove();
|
|
649
|
+
}
|
|
650
|
+
function removeDelegateNodes(dom) {
|
|
651
|
+
for (const proxy of dom.querySelectorAll(`[${DELEGATE_MENU_PROXY_ATTRIBUTE}]`)) proxy.remove();
|
|
652
|
+
for (const logo of dom.querySelectorAll(`[${DELEGATE_POPUP_LOGO_ATTRIBUTE}]`)) logo.remove();
|
|
653
|
+
for (const logo of dom.querySelectorAll(`[${DELEGATE_CHIP_LOGO_ATTRIBUTE}]`)) logo.remove();
|
|
654
|
+
for (const chip of dom.querySelectorAll(`[${DELEGATE_TIMELINE_CHIP_ATTRIBUTE}]`)) {
|
|
655
|
+
const raw = chip.getAttribute(DELEGATE_TIMELINE_RAW_ATTRIBUTE);
|
|
656
|
+
const parent = chip.parentNode;
|
|
657
|
+
if (raw !== null && parent !== null) parent.replaceChild(dom.createTextNode(raw), chip);
|
|
658
|
+
}
|
|
659
|
+
for (const card of dom.querySelectorAll(`[${DELEGATE_TIMELINE_CARD_ATTRIBUTE}]`)) {
|
|
660
|
+
const raw = card.getAttribute(DELEGATE_TIMELINE_CARD_RAW_ATTRIBUTE);
|
|
661
|
+
const parent = card.parentNode;
|
|
662
|
+
if (raw !== null && parent !== null) parent.replaceChild(dom.createTextNode(raw), card);
|
|
663
|
+
}
|
|
664
|
+
for (const placeholder of dom.querySelectorAll(`[${DELEGATE_PLACEHOLDER_MARK_ATTRIBUTE}]`)) {
|
|
665
|
+
const base = placeholder.getAttribute(DELEGATE_PLACEHOLDER_BASE_ATTRIBUTE);
|
|
666
|
+
if (base !== null) placeholder.textContent = base;
|
|
667
|
+
placeholder.removeAttribute(DELEGATE_PLACEHOLDER_BASE_ATTRIBUTE);
|
|
668
|
+
placeholder.removeAttribute(DELEGATE_PLACEHOLDER_MARK_ATTRIBUTE);
|
|
669
|
+
}
|
|
670
|
+
for (const row of dom.querySelectorAll(`[${DELEGATE_MENU_ROW_ATTRIBUTE}]`)) row.removeAttribute(DELEGATE_MENU_ROW_ATTRIBUTE);
|
|
671
|
+
dom.querySelector(`style[data-plugin-css="${DELEGATE_UI_STYLE_ID}"]`)?.remove();
|
|
672
|
+
}
|
|
673
|
+
/** 样式只装一次;重复安装由 data-plugin-css 幂等键挡住。 */
|
|
674
|
+
function installDelegateUiStyles(dom) {
|
|
675
|
+
if (dom.querySelector(`style[data-plugin-css="dsh-agentdoor-delegate-ui-style"]`) !== null) return;
|
|
676
|
+
const style = dom.createElement("style");
|
|
677
|
+
style.setAttribute("data-plugin", "dsh-agentdoor");
|
|
678
|
+
style.setAttribute("data-plugin-css", DELEGATE_UI_STYLE_ID);
|
|
679
|
+
style.textContent = DELEGATE_UI_STYLE_TEXT;
|
|
680
|
+
dom.head.appendChild(style);
|
|
681
|
+
}
|
|
682
|
+
// src/client/delegate-command.ts
|
|
683
|
+
const DELEGATE_REFERENCE_SOURCE = "agent-door-delegate";
|
|
684
|
+
const delegateReferenceLabels = /* @__PURE__ */ new Map();
|
|
685
|
+
const delegateReferenceSelections = /* @__PURE__ */ new Map();
|
|
686
|
+
function delegateReferenceKey(adapterId, modelId) {
|
|
687
|
+
return modelId?.trim() ? `${adapterId}\u0000${modelId.trim()}` : adapterId;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* 把 `/委派` 注册进 `/` 菜单。
|
|
691
|
+
*
|
|
692
|
+
* @param ctx - Client 根 Context;只用于解析 `commandUi` 等 DSH 服务。
|
|
693
|
+
* @param options - RPC 边界与语言运行时。
|
|
694
|
+
* @returns 注销函数;`commandUi` 不可用时返回空操作。
|
|
695
|
+
*/
|
|
696
|
+
function registerDelegateCommand(ctx, options) {
|
|
697
|
+
const t = options.locale.bind("agentdoor");
|
|
698
|
+
const ui = startDelegateUiDom({
|
|
699
|
+
menuLabel: () => t("delegate.label"),
|
|
700
|
+
popupPlaceholder: () => t("delegate.searchPlaceholder"),
|
|
701
|
+
composerPlaceholder: () => t("delegate.composerPlaceholder"),
|
|
702
|
+
cardTitle: () => t("delegate.cardTitle"),
|
|
703
|
+
cardStatus: () => t("delegate.cardStatus"),
|
|
704
|
+
cardTarget: (value) => t("delegate.cardTarget", {
|
|
705
|
+
label: value.label,
|
|
706
|
+
adapter: value.adapterId,
|
|
707
|
+
model: value.modelId === void 0 ? "" : ` · ${value.modelId}`
|
|
708
|
+
})
|
|
709
|
+
});
|
|
710
|
+
const fiber = ctx.inject(["commandUi"], (scope) => {
|
|
711
|
+
registerDelegateCommandIn(scope, options);
|
|
712
|
+
});
|
|
713
|
+
return () => {
|
|
714
|
+
ui.dispose();
|
|
715
|
+
fiber.dispose();
|
|
716
|
+
};
|
|
717
|
+
}
|
|
718
|
+
/** 在 commandUi 就绪的作用域内注册 `/委派`;失败只降级为不注册。 */
|
|
719
|
+
function registerDelegateCommandIn(ctx, options) {
|
|
720
|
+
const commandUi = readCommandUi(ctx);
|
|
721
|
+
if (commandUi === void 0) {
|
|
722
|
+
require_primitives_adapter.debugWarn("dsh-agentdoor: /委派 未注册,当前 DSH 未提供 commandUi 服务");
|
|
723
|
+
return;
|
|
724
|
+
}
|
|
725
|
+
const t = options.locale.bind("agentdoor");
|
|
726
|
+
try {
|
|
727
|
+
registerDelegateReferenceCodec(ctx, options);
|
|
728
|
+
ctx.effect(() => commandUi.register({
|
|
729
|
+
name: DELEGATE_COMMAND_NAME,
|
|
730
|
+
label: () => t("delegate.label"),
|
|
731
|
+
description: () => t("delegate.description"),
|
|
732
|
+
icon: require_primitives_adapter.resolveDelegateIcon(),
|
|
733
|
+
available: () => true,
|
|
734
|
+
ui: {
|
|
735
|
+
kind: "popupSelect",
|
|
736
|
+
searchMode: "fuzzy-label",
|
|
737
|
+
searchLabels: () => ({
|
|
738
|
+
placeholder: t("delegate.searchPlaceholder"),
|
|
739
|
+
empty: t("delegate.searchEmpty"),
|
|
740
|
+
noResults: t("delegate.searchNoResults")
|
|
741
|
+
}),
|
|
742
|
+
async options(session) {
|
|
743
|
+
const capability = await require_primitives_adapter.callCliRpc(options.rpc, "delegate/capability", { sessionId: session.sessionId });
|
|
744
|
+
if (!capability.supported) throw new Error(capability.message);
|
|
745
|
+
const catalog = await require_primitives_adapter.callCliRpc(options.rpc, "catalog", { sessionId: session.sessionId });
|
|
746
|
+
const list = delegateAdapterOptions(require_primitives_adapter.adapterCatalogWithDsh(catalog, options.dshVersion));
|
|
747
|
+
setDelegatePopupOptions(list);
|
|
748
|
+
return list;
|
|
749
|
+
},
|
|
750
|
+
async onSelect(option, session) {
|
|
751
|
+
const input = readSessionInput(ctx, session.sessionId);
|
|
752
|
+
if (input === void 0) return;
|
|
753
|
+
const snapshot = input.state.getSnapshot();
|
|
754
|
+
const draft = snapshot.draft ?? "";
|
|
755
|
+
delegateReferenceLabels.set(option.id, option.label);
|
|
756
|
+
const selection = input.caretSpan?.();
|
|
757
|
+
const span = snapshot.draftRev === void 0 ? void 0 : delegateCommandSpan(draft, snapshot.draftRev, selection) ?? require_command_token.bareSlashSpanAtCaret(draft, snapshot.draftRev, selection) ?? (selection === void 0 ? void 0 : {
|
|
758
|
+
...selection,
|
|
759
|
+
draftRev: snapshot.draftRev
|
|
760
|
+
});
|
|
761
|
+
if (span !== void 0 && input.insertReference?.({
|
|
762
|
+
source: DELEGATE_REFERENCE_SOURCE,
|
|
763
|
+
ref: option.id,
|
|
764
|
+
label: option.label,
|
|
765
|
+
appearance: "session",
|
|
766
|
+
clipboardText: `@${option.label}`
|
|
767
|
+
}, span) === true) return;
|
|
768
|
+
if (input.setDraft === void 0) {
|
|
769
|
+
input?.notify("error", t("delegate.draftUnsupported"));
|
|
770
|
+
return;
|
|
771
|
+
}
|
|
772
|
+
input.setDraft(appendDelegateCarrier(draft, option.id, option.label));
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}), "dsh-agentdoor: delegate command");
|
|
776
|
+
require_primitives_adapter.debugInfo("dsh-agentdoor: /委派 命令已注册");
|
|
777
|
+
} catch (error) {
|
|
778
|
+
require_primitives_adapter.debugWarn("dsh-agentdoor: /委派 命令注册失败", { error: error instanceof Error ? error.message : String(error) });
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
/**
|
|
782
|
+
* 找到当前 `/委派` 命令令牌,供 popupSelect 选择结果直接替换为 chip。
|
|
783
|
+
* 命令弹层的 onSelect 在消费令牌前触发,此时公开的 caretSpan 可能只是折叠光标,
|
|
784
|
+
* 因而不能依赖它来推断命令范围。
|
|
785
|
+
*/
|
|
786
|
+
function delegateCommandSpan(draft, draftRev, selection) {
|
|
787
|
+
const caret = selection?.end ?? draft.length;
|
|
788
|
+
const token = /\/(?:delegate|委派)(?=\s|$)/gu;
|
|
789
|
+
let match;
|
|
790
|
+
while ((match = token.exec(draft)) !== null) {
|
|
791
|
+
const start = match.index;
|
|
792
|
+
const end = start + match[0].length;
|
|
793
|
+
const before = draft[start - 1];
|
|
794
|
+
if (start > 0 && before !== void 0 && !/\s/u.test(before)) continue;
|
|
795
|
+
if (caret >= start && caret <= end + 1) return {
|
|
796
|
+
start,
|
|
797
|
+
end,
|
|
798
|
+
draftRev
|
|
799
|
+
};
|
|
800
|
+
if (caret > end && draft.slice(end, caret).trim() === "") return {
|
|
801
|
+
start,
|
|
802
|
+
end,
|
|
803
|
+
draftRev
|
|
804
|
+
};
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
/**
|
|
808
|
+
* 注册结构化 Agent 引用的内部编解码器。
|
|
809
|
+
*
|
|
810
|
+
* 委派入口由 `#` 弹层提供,不能再把适配器目录挂到原生 `@` 菜单。这里仍向
|
|
811
|
+
* inputTriggers 登记 codec,是因为 DSH 在提交 ReferenceChip 时按 source 查找
|
|
812
|
+
* 序列化器;候选列表固定为空,并隐藏分组标题,因此不会产生可见的 `@` 菜单项。
|
|
813
|
+
*/
|
|
814
|
+
function registerDelegateReferenceCodec(ctx, options) {
|
|
815
|
+
const inputTriggers = readService(ctx, "inputTriggers");
|
|
816
|
+
const source = {
|
|
817
|
+
trigger: "@",
|
|
818
|
+
name: DELEGATE_REFERENCE_SOURCE,
|
|
819
|
+
showGroupTitle: false,
|
|
820
|
+
async candidates() {
|
|
821
|
+
return [];
|
|
822
|
+
},
|
|
823
|
+
onPick(pick) {
|
|
824
|
+
const ref = pick.candidate.value ?? pick.candidate.name;
|
|
825
|
+
const selection = delegateReferenceSelections.get(ref);
|
|
826
|
+
const label = pick.candidate.label?.trim() || selection?.label || delegateReferenceLabels.get(ref) || ref;
|
|
827
|
+
delegateReferenceLabels.set(ref, label);
|
|
828
|
+
return { insert: {
|
|
829
|
+
source: DELEGATE_REFERENCE_SOURCE,
|
|
830
|
+
ref,
|
|
831
|
+
label,
|
|
832
|
+
appearance: "session",
|
|
833
|
+
clipboardText: `@${label}`
|
|
834
|
+
} };
|
|
835
|
+
},
|
|
836
|
+
codec: {
|
|
837
|
+
clipboardText(ref) {
|
|
838
|
+
return `@${delegateReferenceLabels.get(ref) || ref}`;
|
|
839
|
+
},
|
|
840
|
+
async serialize(ref) {
|
|
841
|
+
const selection = delegateReferenceSelections.get(ref);
|
|
842
|
+
const adapterId = selection?.adapterId || ref.split("\0", 1)[0] || ref;
|
|
843
|
+
return encodeDelegationCarrier(adapterId, selection?.label || delegateReferenceLabels.get(ref) || adapterId, selection?.modelId);
|
|
844
|
+
}
|
|
845
|
+
}
|
|
846
|
+
};
|
|
847
|
+
try {
|
|
848
|
+
ctx.effect(() => {
|
|
849
|
+
const disposeHashShortcut = registerDelegateHashShortcut(ctx, options);
|
|
850
|
+
const disposeSource = inputTriggers !== void 0 && typeof inputTriggers.registerSource === "function" ? inputTriggers.registerSource(source) : void 0;
|
|
851
|
+
return () => {
|
|
852
|
+
disposeHashShortcut();
|
|
853
|
+
disposeSource?.();
|
|
854
|
+
};
|
|
855
|
+
}, "dsh-agentdoor: delegate reference source");
|
|
856
|
+
} catch (error) {
|
|
857
|
+
require_primitives_adapter.debugWarn("dsh-agentdoor: Agent 引用源注册失败", { error: error instanceof Error ? error.message : String(error) });
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
/**
|
|
861
|
+
* 为 DSH 输入框补充 `#` 委派快捷入口。
|
|
862
|
+
*
|
|
863
|
+
* 原生 inputTriggers 只有 `/` 与 `@` 两个触发字符,而且 onPick 是同步契约,无法在
|
|
864
|
+
* 选择适配器后等待 `cli/models` 再切换二级目录。因此这里使用插件自己的轻量弹层:
|
|
865
|
+
* `#` 触发适配器列表,点击适配器后立即请求它的模型目录,点击模型时才写入结构化
|
|
866
|
+
* ReferenceChip。草稿里不会留下“已选择,请继续输入”的持久提示。
|
|
867
|
+
*/
|
|
868
|
+
function registerDelegateHashShortcut(ctx, options) {
|
|
869
|
+
if (typeof document === "undefined" || typeof window === "undefined") return () => void 0;
|
|
870
|
+
const t = options.locale.bind("agentdoor");
|
|
871
|
+
let popup;
|
|
872
|
+
let popupSessionId = "";
|
|
873
|
+
let popupMode = "adapter";
|
|
874
|
+
let popupAdapter;
|
|
875
|
+
let popupOptions = [];
|
|
876
|
+
let popupModels = [];
|
|
877
|
+
let popupEditor;
|
|
878
|
+
let popupToken;
|
|
879
|
+
let popupQuery = "";
|
|
880
|
+
let popupRequestId = 0;
|
|
881
|
+
let refreshTimer;
|
|
882
|
+
const cancelRefresh = () => {
|
|
883
|
+
if (refreshTimer === void 0) return;
|
|
884
|
+
clearTimeout(refreshTimer);
|
|
885
|
+
refreshTimer = void 0;
|
|
886
|
+
};
|
|
887
|
+
const close = () => {
|
|
888
|
+
popupRequestId += 1;
|
|
889
|
+
popup?.remove();
|
|
890
|
+
popup = void 0;
|
|
891
|
+
popupEditor = void 0;
|
|
892
|
+
popupToken = void 0;
|
|
893
|
+
popupAdapter = void 0;
|
|
894
|
+
popupOptions = [];
|
|
895
|
+
popupModels = [];
|
|
896
|
+
popupMode = "adapter";
|
|
897
|
+
popupQuery = "";
|
|
898
|
+
};
|
|
899
|
+
const inputFor = (sessionId) => {
|
|
900
|
+
try {
|
|
901
|
+
const conversation = readConversation(ctx);
|
|
902
|
+
const actx = readSessions(ctx)?.scope(sessionId);
|
|
903
|
+
if (actx !== void 0 && conversation !== void 0) return conversation.input.for(actx);
|
|
904
|
+
return conversation?.input.shell?.(sessionId);
|
|
905
|
+
} catch {
|
|
906
|
+
return;
|
|
907
|
+
}
|
|
908
|
+
};
|
|
909
|
+
const position = () => {
|
|
910
|
+
if (popup === void 0 || popupEditor === void 0) return;
|
|
911
|
+
const rect = popupEditor.getBoundingClientRect();
|
|
912
|
+
const viewport = window.visualViewport;
|
|
913
|
+
const viewportLeft = viewport?.offsetLeft ?? 0;
|
|
914
|
+
const viewportTop = viewport?.offsetTop ?? 0;
|
|
915
|
+
const viewportWidth = viewport?.width ?? window.innerWidth;
|
|
916
|
+
const viewportHeight = viewport?.height ?? window.innerHeight;
|
|
917
|
+
const popupWidth = Math.min(340, Math.max(220, rect.width));
|
|
918
|
+
const gap = 6;
|
|
919
|
+
const minEdge = 8;
|
|
920
|
+
const below = rect.bottom + gap;
|
|
921
|
+
const above = rect.top - gap - popup.offsetHeight;
|
|
922
|
+
const maxTop = viewportTop + viewportHeight - minEdge - popup.offsetHeight;
|
|
923
|
+
const top = above >= viewportTop + minEdge ? above : Math.min(maxTop, Math.max(viewportTop + minEdge, below));
|
|
924
|
+
const left = Math.max(viewportLeft + minEdge, Math.min(rect.left, viewportLeft + viewportWidth - popupWidth - minEdge));
|
|
925
|
+
Object.assign(popup.style, {
|
|
926
|
+
left: `${left}px`,
|
|
927
|
+
top: `${top}px`,
|
|
928
|
+
minWidth: `${popupWidth}px`
|
|
929
|
+
});
|
|
930
|
+
};
|
|
931
|
+
const ensurePopup = (editor, sessionId) => {
|
|
932
|
+
if (popup !== void 0 && popupSessionId === sessionId) {
|
|
933
|
+
popupEditor = editor;
|
|
934
|
+
position();
|
|
935
|
+
return popup;
|
|
936
|
+
}
|
|
937
|
+
close();
|
|
938
|
+
popupSessionId = sessionId;
|
|
939
|
+
popupEditor = editor;
|
|
940
|
+
popup = document.createElement("div");
|
|
941
|
+
popup.setAttribute("data-agent-door-delegate-hash-popup", "");
|
|
942
|
+
popup.setAttribute("role", "listbox");
|
|
943
|
+
Object.assign(popup.style, {
|
|
944
|
+
position: "fixed",
|
|
945
|
+
zIndex: "2147483647",
|
|
946
|
+
maxWidth: "min(360px, calc(100vw - 16px))",
|
|
947
|
+
maxHeight: "min(420px, calc(100vh - 24px))",
|
|
948
|
+
overflowY: "auto",
|
|
949
|
+
padding: "6px",
|
|
950
|
+
border: "1px solid var(--dsw-alias-border-l2,rgba(127,127,127,.35))",
|
|
951
|
+
borderRadius: "10px",
|
|
952
|
+
background: "var(--dsw-alias-bg-layer-3,#242526)",
|
|
953
|
+
color: "var(--dsw-alias-label-primary,#f5f5f5)",
|
|
954
|
+
boxShadow: "0 10px 30px rgba(0,0,0,.28)",
|
|
955
|
+
font: "13px var(--dsw-font,system-ui,sans-serif)"
|
|
956
|
+
});
|
|
957
|
+
document.body.append(popup);
|
|
958
|
+
position();
|
|
959
|
+
return popup;
|
|
960
|
+
};
|
|
961
|
+
const render = (title, rows) => {
|
|
962
|
+
if (popup === void 0) return;
|
|
963
|
+
popup.replaceChildren();
|
|
964
|
+
const heading = document.createElement("div");
|
|
965
|
+
heading.textContent = title;
|
|
966
|
+
Object.assign(heading.style, {
|
|
967
|
+
padding: "5px 8px 7px",
|
|
968
|
+
color: "var(--dsw-alias-label-secondary,#a9adb5)",
|
|
969
|
+
fontSize: "12px",
|
|
970
|
+
fontWeight: "600"
|
|
971
|
+
});
|
|
972
|
+
popup.append(heading);
|
|
973
|
+
if (rows.length === 0) {
|
|
974
|
+
const empty = document.createElement("div");
|
|
975
|
+
empty.textContent = t("delegate.popupNoResults");
|
|
976
|
+
Object.assign(empty.style, {
|
|
977
|
+
padding: "8px",
|
|
978
|
+
color: "var(--dsw-alias-label-secondary,#a9adb5)"
|
|
979
|
+
});
|
|
980
|
+
popup.append(empty);
|
|
981
|
+
position();
|
|
982
|
+
return;
|
|
983
|
+
}
|
|
984
|
+
for (const row of rows) {
|
|
985
|
+
const button = document.createElement("button");
|
|
986
|
+
button.type = "button";
|
|
987
|
+
button.setAttribute("role", "option");
|
|
988
|
+
button.dataset.value = row.id;
|
|
989
|
+
Object.assign(button.style, {
|
|
990
|
+
display: "flex",
|
|
991
|
+
width: "100%",
|
|
992
|
+
minWidth: "0",
|
|
993
|
+
gap: "8px",
|
|
994
|
+
alignItems: "center",
|
|
995
|
+
padding: "8px",
|
|
996
|
+
border: "0",
|
|
997
|
+
borderRadius: "7px",
|
|
998
|
+
background: "transparent",
|
|
999
|
+
color: "inherit",
|
|
1000
|
+
textAlign: "left",
|
|
1001
|
+
cursor: "pointer"
|
|
1002
|
+
});
|
|
1003
|
+
button.addEventListener("mouseenter", () => {
|
|
1004
|
+
button.style.background = "var(--dsw-alias-interactive-bg-hover,rgba(127,127,127,.16))";
|
|
1005
|
+
});
|
|
1006
|
+
button.addEventListener("mouseleave", () => {
|
|
1007
|
+
button.style.background = "transparent";
|
|
1008
|
+
});
|
|
1009
|
+
button.addEventListener("click", row.onClick);
|
|
1010
|
+
const iconUrl = row.iconId === void 0 ? void 0 : require_primitives_adapter.providerIconUrl(row.iconId);
|
|
1011
|
+
if (iconUrl !== void 0 && iconUrl !== "" && row.iconId !== void 0) {
|
|
1012
|
+
const image = document.createElement("img");
|
|
1013
|
+
image.setAttribute("src", iconUrl);
|
|
1014
|
+
image.setAttribute("alt", "");
|
|
1015
|
+
image.setAttribute("aria-hidden", "true");
|
|
1016
|
+
image.setAttribute(DELEGATE_POPUP_LOGO_ATTRIBUTE, row.iconId);
|
|
1017
|
+
Object.assign(image.style, {
|
|
1018
|
+
width: "16px",
|
|
1019
|
+
height: "16px",
|
|
1020
|
+
flex: "0 0 16px",
|
|
1021
|
+
objectFit: "contain",
|
|
1022
|
+
borderRadius: "3px"
|
|
1023
|
+
});
|
|
1024
|
+
button.append(image);
|
|
1025
|
+
}
|
|
1026
|
+
const text = document.createElement("span");
|
|
1027
|
+
text.textContent = row.label;
|
|
1028
|
+
Object.assign(text.style, {
|
|
1029
|
+
minWidth: "0",
|
|
1030
|
+
overflowWrap: "anywhere",
|
|
1031
|
+
flex: "1 1 auto"
|
|
1032
|
+
});
|
|
1033
|
+
button.append(text);
|
|
1034
|
+
if (row.detail) {
|
|
1035
|
+
const detail = document.createElement("span");
|
|
1036
|
+
detail.textContent = row.detail;
|
|
1037
|
+
Object.assign(detail.style, {
|
|
1038
|
+
flex: "0 1 auto",
|
|
1039
|
+
minWidth: "0",
|
|
1040
|
+
maxWidth: "45%",
|
|
1041
|
+
overflowWrap: "anywhere",
|
|
1042
|
+
color: "var(--dsw-alias-label-secondary,#a9adb5)",
|
|
1043
|
+
fontSize: "12px"
|
|
1044
|
+
});
|
|
1045
|
+
button.append(detail);
|
|
1046
|
+
}
|
|
1047
|
+
popup.append(button);
|
|
1048
|
+
}
|
|
1049
|
+
position();
|
|
1050
|
+
};
|
|
1051
|
+
const selectModel = (model) => {
|
|
1052
|
+
const input = inputFor(popupSessionId);
|
|
1053
|
+
const token = popupToken;
|
|
1054
|
+
const adapter = popupAdapter;
|
|
1055
|
+
if (input === void 0 || token === void 0 || adapter === void 0) return;
|
|
1056
|
+
const ref = delegateReferenceKey(adapter.id, model.id);
|
|
1057
|
+
delegateReferenceSelections.set(ref, {
|
|
1058
|
+
adapterId: adapter.id,
|
|
1059
|
+
label: adapter.label,
|
|
1060
|
+
modelId: model.id
|
|
1061
|
+
});
|
|
1062
|
+
delegateReferenceLabels.set(ref, adapter.label);
|
|
1063
|
+
if (!(input.insertReference?.({
|
|
1064
|
+
source: DELEGATE_REFERENCE_SOURCE,
|
|
1065
|
+
ref,
|
|
1066
|
+
label: adapter.label,
|
|
1067
|
+
appearance: "session",
|
|
1068
|
+
clipboardText: `@${adapter.label}`
|
|
1069
|
+
}, token) === true)) {
|
|
1070
|
+
const draft = input.state.getSnapshot().draft ?? "";
|
|
1071
|
+
const replacement = encodeDelegationCarrier(adapter.id, adapter.label, model.id);
|
|
1072
|
+
input.setDraft?.(`${draft.slice(0, token.start)}${replacement}${draft.slice(token.end)}`);
|
|
1073
|
+
}
|
|
1074
|
+
close();
|
|
1075
|
+
};
|
|
1076
|
+
const renderModelCatalog = (catalog, query = popupQuery) => {
|
|
1077
|
+
const adapter = popupAdapter;
|
|
1078
|
+
if (popup === void 0 || popupMode !== "model" || adapter === void 0) return;
|
|
1079
|
+
popupModels = catalog.groups.flatMap((group) => group.models.map((model) => {
|
|
1080
|
+
const efforts = model.efforts.map((effort) => model.effortLabels?.[effort] ?? effort);
|
|
1081
|
+
const effortsLabel = efforts.length === 0 ? void 0 : t("cli.thinkingLevel", { value: efforts.join(t("common.listSeparator")) });
|
|
1082
|
+
const details = [model.description, effortsLabel].filter((value) => value !== void 0 && value.trim() !== "");
|
|
1083
|
+
return {
|
|
1084
|
+
id: model.id,
|
|
1085
|
+
label: model.name || model.id,
|
|
1086
|
+
...details.length === 0 ? {} : { detail: details.join(" · ") }
|
|
1087
|
+
};
|
|
1088
|
+
}));
|
|
1089
|
+
render(t("delegate.selectModel", { name: adapter.label }), popupModels.filter((model) => query === "" || model.id.toLowerCase().includes(query) || model.label.toLowerCase().includes(query)).map((model) => ({
|
|
1090
|
+
...model,
|
|
1091
|
+
onClick: () => selectModel(model)
|
|
1092
|
+
})));
|
|
1093
|
+
};
|
|
1094
|
+
const selectAdapter = async (adapter) => {
|
|
1095
|
+
cancelRefresh();
|
|
1096
|
+
popupAdapter = adapter;
|
|
1097
|
+
popupMode = "model";
|
|
1098
|
+
popupQuery = "";
|
|
1099
|
+
const requestId = ++popupRequestId;
|
|
1100
|
+
const sessionId = popupSessionId;
|
|
1101
|
+
render(t("delegate.selectModel", { name: adapter.label }), [{
|
|
1102
|
+
id: "loading",
|
|
1103
|
+
label: t("delegate.loadingModels"),
|
|
1104
|
+
onClick: () => void 0
|
|
1105
|
+
}]);
|
|
1106
|
+
try {
|
|
1107
|
+
const catalog = await require_primitives_adapter.loadModelCatalog(options.rpc, adapter.id, sessionId);
|
|
1108
|
+
if (popup === void 0 || popupMode !== "model" || popupRequestId !== requestId || popupSessionId !== sessionId || popupAdapter?.id !== adapter.id) return;
|
|
1109
|
+
renderModelCatalog(catalog, "");
|
|
1110
|
+
} catch (error) {
|
|
1111
|
+
if (popup === void 0 || popupMode !== "model" || popupRequestId !== requestId || popupSessionId !== sessionId || popupAdapter?.id !== adapter.id) return;
|
|
1112
|
+
render(t("delegate.selectModel", { name: adapter.label }), [{
|
|
1113
|
+
id: "error",
|
|
1114
|
+
label: error instanceof Error ? error.message : t("delegate.modelCatalogFailed"),
|
|
1115
|
+
onClick: () => void 0
|
|
1116
|
+
}]);
|
|
1117
|
+
}
|
|
1118
|
+
};
|
|
1119
|
+
const sessionIdFor = (element) => {
|
|
1120
|
+
const direct = element?.closest("[data-conversation-session]")?.getAttribute("data-conversation-session")?.trim();
|
|
1121
|
+
if (direct) return direct;
|
|
1122
|
+
const editor = element?.closest("[contenteditable=\"true\"], textarea, input, [role=\"textbox\"], [data-composer-input=\"true\"]");
|
|
1123
|
+
if (editor === null || editor === void 0) return void 0;
|
|
1124
|
+
const candidates = [...document.querySelectorAll("[data-conversation-session]")].filter((root) => root.querySelector("[contenteditable=\"true\"], textarea, input, [role=\"textbox\"], [data-composer-input=\"true\"]") !== null);
|
|
1125
|
+
return candidates.length === 1 ? candidates[0]?.getAttribute("data-conversation-session")?.trim() : void 0;
|
|
1126
|
+
};
|
|
1127
|
+
const refresh = (target) => {
|
|
1128
|
+
const element = target instanceof Element ? target : target instanceof Node ? target.parentElement : null;
|
|
1129
|
+
const editor = element?.closest("[contenteditable=\"true\"], textarea, input, [role=\"textbox\"], [data-composer-input=\"true\"]");
|
|
1130
|
+
const sessionId = sessionIdFor(element);
|
|
1131
|
+
if (!(editor instanceof HTMLElement) || sessionId === void 0 || sessionId === "") return;
|
|
1132
|
+
const input = inputFor(sessionId);
|
|
1133
|
+
if (input === void 0) return;
|
|
1134
|
+
const snapshot = input.state.getSnapshot();
|
|
1135
|
+
if (snapshot.phase !== void 0 && snapshot.phase !== "plain") {
|
|
1136
|
+
close();
|
|
1137
|
+
return;
|
|
1138
|
+
}
|
|
1139
|
+
const snapshotDraft = snapshot.draft ?? "";
|
|
1140
|
+
const selection = input.caretSpan?.();
|
|
1141
|
+
const domCaret = editorCaretOffset(editor);
|
|
1142
|
+
const caret = Math.max(0, selection?.end ?? domCaret ?? snapshotDraft.length);
|
|
1143
|
+
const domDraft = editorDraft(editor);
|
|
1144
|
+
const snapshotToken = hashTokenAtCaret(snapshotDraft, caret);
|
|
1145
|
+
const token = (domDraft === void 0 ? void 0 : hashTokenAtCaret(domDraft, caret)) ?? snapshotToken;
|
|
1146
|
+
if (token === void 0) {
|
|
1147
|
+
close();
|
|
1148
|
+
return;
|
|
1149
|
+
}
|
|
1150
|
+
popupSessionId = sessionId;
|
|
1151
|
+
popupToken = {
|
|
1152
|
+
...token,
|
|
1153
|
+
end: caret,
|
|
1154
|
+
draftRev: selection?.draftRev ?? snapshot.draftRev ?? 0
|
|
1155
|
+
};
|
|
1156
|
+
const root = ensurePopup(editor, sessionId);
|
|
1157
|
+
const query = token.query.trim().toLowerCase();
|
|
1158
|
+
popupQuery = query;
|
|
1159
|
+
if (popupMode === "model" && popupAdapter !== void 0) {
|
|
1160
|
+
render(t("delegate.selectModel", { name: popupAdapter.label }), popupModels.filter((model) => query === "" || model.id.toLowerCase().includes(query) || model.label.toLowerCase().includes(query)).map((model) => ({
|
|
1161
|
+
...model,
|
|
1162
|
+
onClick: () => selectModel(model)
|
|
1163
|
+
})));
|
|
1164
|
+
return;
|
|
1165
|
+
}
|
|
1166
|
+
popupMode = "adapter";
|
|
1167
|
+
popupAdapter = void 0;
|
|
1168
|
+
const requestId = ++popupRequestId;
|
|
1169
|
+
require_primitives_adapter.callCliRpc(options.rpc, "catalog", { sessionId }).then((catalog) => {
|
|
1170
|
+
if (popup === void 0 || popupSessionId !== sessionId || popupMode !== "adapter" || popupRequestId !== requestId) return;
|
|
1171
|
+
popupOptions = delegateAdapterOptions(require_primitives_adapter.adapterCatalogWithDsh(catalog, options.dshVersion));
|
|
1172
|
+
setDelegatePopupOptions(popupOptions);
|
|
1173
|
+
const rows = popupOptions.filter((item) => query === "" || item.id.toLowerCase().includes(query) || item.label.toLowerCase().includes(query)).map((item) => {
|
|
1174
|
+
const row = {
|
|
1175
|
+
id: item.id,
|
|
1176
|
+
label: item.label,
|
|
1177
|
+
iconId: item.id,
|
|
1178
|
+
onClick: () => {
|
|
1179
|
+
selectAdapter(item);
|
|
1180
|
+
}
|
|
1181
|
+
};
|
|
1182
|
+
if (item.detail !== void 0) row.detail = item.detail;
|
|
1183
|
+
return row;
|
|
1184
|
+
});
|
|
1185
|
+
render(t("delegate.selectAdapter"), rows);
|
|
1186
|
+
}).catch(() => {
|
|
1187
|
+
if (popup === root && popupRequestId === requestId) render(t("delegate.selectAdapter"), []);
|
|
1188
|
+
});
|
|
1189
|
+
};
|
|
1190
|
+
const scheduleRefresh = (target) => {
|
|
1191
|
+
queueMicrotask(() => refresh(target));
|
|
1192
|
+
cancelRefresh();
|
|
1193
|
+
refreshTimer = setTimeout(() => {
|
|
1194
|
+
refreshTimer = void 0;
|
|
1195
|
+
refresh(target);
|
|
1196
|
+
}, 32);
|
|
1197
|
+
};
|
|
1198
|
+
const onInput = (event) => {
|
|
1199
|
+
scheduleRefresh(event.target);
|
|
1200
|
+
};
|
|
1201
|
+
const onCompositionEnd = (event) => {
|
|
1202
|
+
scheduleRefresh(event.target);
|
|
1203
|
+
};
|
|
1204
|
+
const onFocus = (event) => {
|
|
1205
|
+
scheduleRefresh(event.target);
|
|
1206
|
+
};
|
|
1207
|
+
const onKeyup = (event) => {
|
|
1208
|
+
if (event.key.length === 1 || event.key === "Backspace" || event.key === "Delete") scheduleRefresh(event.target);
|
|
1209
|
+
};
|
|
1210
|
+
const onPointer = (event) => {
|
|
1211
|
+
const target = event.target;
|
|
1212
|
+
if (popup !== void 0 && target instanceof Node && !popup.contains(target)) {
|
|
1213
|
+
if (!(target instanceof Element ? target : target.parentElement)?.closest("[contenteditable=\"true\"], textarea, input, [role=\"textbox\"], [data-composer-input=\"true\"]")) close();
|
|
1214
|
+
}
|
|
1215
|
+
};
|
|
1216
|
+
const onKey = (event) => {
|
|
1217
|
+
if (event.key === "Escape") close();
|
|
1218
|
+
};
|
|
1219
|
+
const onResize = () => position();
|
|
1220
|
+
const unsubscribeCatalog = require_primitives_adapter.subscribeAdapterCatalogChanged(options.rpc, (change) => {
|
|
1221
|
+
if (change.kind !== "models" || popup === void 0 || popupMode !== "model" || popupAdapter === void 0 || popupAdapter.id !== change.adapterId) return;
|
|
1222
|
+
const catalog = require_primitives_adapter.getModelCatalogCache(options.rpc).get(popupAdapter.id);
|
|
1223
|
+
if (catalog !== void 0) renderModelCatalog(catalog);
|
|
1224
|
+
});
|
|
1225
|
+
document.addEventListener("input", onInput, true);
|
|
1226
|
+
document.addEventListener("compositionend", onCompositionEnd, true);
|
|
1227
|
+
document.addEventListener("focusin", onFocus, true);
|
|
1228
|
+
document.addEventListener("keyup", onKeyup, true);
|
|
1229
|
+
document.addEventListener("pointerdown", onPointer, true);
|
|
1230
|
+
document.addEventListener("keydown", onKey, true);
|
|
1231
|
+
window.addEventListener("resize", onResize);
|
|
1232
|
+
window.visualViewport?.addEventListener("resize", onResize);
|
|
1233
|
+
window.visualViewport?.addEventListener("scroll", onResize);
|
|
1234
|
+
return () => {
|
|
1235
|
+
unsubscribeCatalog();
|
|
1236
|
+
close();
|
|
1237
|
+
cancelRefresh();
|
|
1238
|
+
document.removeEventListener("input", onInput, true);
|
|
1239
|
+
document.removeEventListener("compositionend", onCompositionEnd, true);
|
|
1240
|
+
document.removeEventListener("focusin", onFocus, true);
|
|
1241
|
+
document.removeEventListener("keyup", onKeyup, true);
|
|
1242
|
+
document.removeEventListener("pointerdown", onPointer, true);
|
|
1243
|
+
document.removeEventListener("keydown", onKey, true);
|
|
1244
|
+
window.removeEventListener("resize", onResize);
|
|
1245
|
+
window.visualViewport?.removeEventListener("resize", onResize);
|
|
1246
|
+
window.visualViewport?.removeEventListener("scroll", onResize);
|
|
1247
|
+
};
|
|
1248
|
+
}
|
|
1249
|
+
/** 读取编辑器当前文本;状态快照发布前先用 DOM 文本识别本轮输入。 */
|
|
1250
|
+
function editorDraft(editor) {
|
|
1251
|
+
if ("value" in editor && typeof editor.value === "string") return editor.value;
|
|
1252
|
+
return typeof editor.textContent === "string" ? editor.textContent : void 0;
|
|
1253
|
+
}
|
|
1254
|
+
/** 返回光标在 contenteditable 文本投影中的偏移;无法读取时由调用方回退到 draft 末尾。 */
|
|
1255
|
+
function editorCaretOffset(editor) {
|
|
1256
|
+
if ("selectionStart" in editor && typeof editor.selectionStart === "number") return editor.selectionStart;
|
|
1257
|
+
const selection = window.getSelection();
|
|
1258
|
+
if (selection === null || selection.rangeCount === 0 || selection.anchorNode === null || !editor.contains(selection.anchorNode)) return void 0;
|
|
1259
|
+
try {
|
|
1260
|
+
const range = selection.getRangeAt(0).cloneRange();
|
|
1261
|
+
range.selectNodeContents(editor);
|
|
1262
|
+
range.setEnd(selection.anchorNode, selection.anchorOffset);
|
|
1263
|
+
return range.toString().length;
|
|
1264
|
+
} catch {
|
|
1265
|
+
return;
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
/** 匹配光标前最后一个以边界开头的 `#name` token;跨空格后停止,避免误触发。 */
|
|
1269
|
+
function hashTokenAtCaret(draft, caret) {
|
|
1270
|
+
const before = draft.slice(0, Math.max(0, caret));
|
|
1271
|
+
const hash = before.lastIndexOf("#");
|
|
1272
|
+
if (hash < 0 || /\s/u.test(before.slice(hash + 1))) return void 0;
|
|
1273
|
+
const previous = before[hash - 1];
|
|
1274
|
+
if (hash > 0 && previous !== void 0 && /[\p{L}\p{N}_]/u.test(previous)) return void 0;
|
|
1275
|
+
return {
|
|
1276
|
+
start: hash,
|
|
1277
|
+
query: before.slice(hash + 1)
|
|
1278
|
+
};
|
|
1279
|
+
}
|
|
1280
|
+
function readSessionInput(ctx, sessionId) {
|
|
1281
|
+
try {
|
|
1282
|
+
const actx = readSessions(ctx)?.scope(sessionId);
|
|
1283
|
+
if (actx === void 0) return void 0;
|
|
1284
|
+
return readConversation(ctx)?.input.for(actx);
|
|
1285
|
+
} catch {
|
|
1286
|
+
return;
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
function readCommandUi(ctx) {
|
|
1290
|
+
const service = readService(ctx, "commandUi");
|
|
1291
|
+
return service !== void 0 && typeof service.register === "function" ? service : void 0;
|
|
1292
|
+
}
|
|
1293
|
+
function readSessions(ctx) {
|
|
1294
|
+
const service = readService(ctx, "sessions");
|
|
1295
|
+
return service !== void 0 && typeof service.scope === "function" ? service : void 0;
|
|
1296
|
+
}
|
|
1297
|
+
function readConversation(ctx) {
|
|
1298
|
+
const service = readService(ctx, "conversation");
|
|
1299
|
+
return service !== void 0 && typeof service.input?.for === "function" ? service : void 0;
|
|
1300
|
+
}
|
|
1301
|
+
/** Cordis 直接读取未声明的服务会抛 without-inject;探测统一走这里。 */
|
|
1302
|
+
function readService(ctx, name) {
|
|
1303
|
+
try {
|
|
1304
|
+
return ctx.get(name);
|
|
1305
|
+
} catch {
|
|
1306
|
+
return;
|
|
1307
|
+
}
|
|
1308
|
+
}
|
|
1309
|
+
exports.registerDelegateCommand = registerDelegateCommand;
|
|
1310
|
+
return module.exports;
|
|
1311
|
+
}
|
|
1312
|
+
});
|
|
1313
|
+
|
|
1314
|
+
//# sourceMappingURL=client.delegate-command.js.map
|