@jingyi0605/codingns4dsh 0.2.1-beta.12 → 0.2.1-beta.14
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/README.en.md +5 -5
- package/README.md +6 -9
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -1
- package/data/build/dist/bootstrap/index.d.ts +1 -1
- package/data/build/dist/bootstrap/index.d.ts.map +1 -1
- package/data/build/dist/client/account-bar.d.ts.map +1 -1
- package/data/build/dist/client/account-bar.js +24 -70
- package/data/build/dist/client/account-bar.js.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.js +2 -2
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
- package/data/build/dist/client/bundle.js +40225 -25580
- package/data/build/dist/client/bundle.js.map +1 -1
- 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-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-settings-rpc.js +1 -1
- package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
- package/data/build/dist/client/cli-slots.d.ts +4 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -1
- package/data/build/dist/client/cli-slots.js +26 -10
- package/data/build/dist/client/cli-slots.js.map +1 -1
- package/data/build/dist/client/client.editor-engine.js +4 -1
- package/data/build/dist/client/client.editor-engine.js.map +1 -1
- package/data/build/dist/client/client.model-catalog-cache.js +9 -1
- package/data/build/dist/client/client.model-catalog-cache.js.map +1 -1
- package/data/build/dist/client/client.native-workspace-store.js +9 -15
- package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
- package/data/build/dist/client/client.primitives-adapter.js +53 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
- package/data/build/dist/client/client.session-translation.js +16 -0
- package/data/build/dist/client/client.session-translation.js.map +1 -1
- package/data/build/dist/client/client.transport.js +487 -44
- package/data/build/dist/client/client.transport.js.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts +2 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.js +7 -5
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -1
- package/data/build/dist/client/desktop-assistant.js +595 -152
- package/data/build/dist/client/editor-engine.d.ts +1 -1
- package/data/build/dist/client/editor-engine.d.ts.map +1 -1
- package/data/build/dist/client/editor-engine.js +4 -1
- package/data/build/dist/client/editor-engine.js.map +1 -1
- package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
- package/data/build/dist/client/features/cli-adapters.js +183 -105
- package/data/build/dist/client/features/cli-adapters.js.map +1 -1
- package/data/build/dist/client/features/file-management.d.ts.map +1 -1
- package/data/build/dist/client/features/file-management.js +2 -0
- package/data/build/dist/client/features/file-management.js.map +1 -1
- package/data/build/dist/client/features/index.d.ts.map +1 -1
- package/data/build/dist/client/features/index.js +2 -0
- package/data/build/dist/client/features/index.js.map +1 -1
- package/data/build/dist/client/features/mobile-access.d.ts.map +1 -1
- package/data/build/dist/client/features/mobile-access.js +7 -0
- package/data/build/dist/client/features/mobile-access.js.map +1 -1
- package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/client/features/peer-host.js +3 -0
- package/data/build/dist/client/features/peer-host.js.map +1 -1
- package/data/build/dist/client/features/quick-apps.d.ts +3 -0
- package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/client/features/quick-apps.js +14 -0
- package/data/build/dist/client/features/quick-apps.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
- package/data/build/dist/client/features/workspace-session-enhancement.js +6 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
- package/data/build/dist/client/git-management.d.ts.map +1 -1
- package/data/build/dist/client/git-management.js +11 -30
- package/data/build/dist/client/git-management.js.map +1 -1
- package/data/build/dist/client/git-panel-styles.d.ts +4 -0
- package/data/build/dist/client/git-panel-styles.d.ts.map +1 -1
- package/data/build/dist/client/git-panel-styles.js +14 -0
- package/data/build/dist/client/git-panel-styles.js.map +1 -1
- 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/locale.d.ts.map +1 -1
- package/data/build/dist/client/locale.js +14 -0
- package/data/build/dist/client/locale.js.map +1 -1
- 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/fileWorkspace.d.ts.map +1 -1
- package/data/build/dist/client/locales/fileWorkspace.js +4 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
- package/data/build/dist/client/locales/panels.js +2 -2
- package/data/build/dist/client/locales/panels.js.map +1 -1
- package/data/build/dist/client/locales/quickApps.d.ts +132 -0
- package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
- package/data/build/dist/client/locales/quickApps.js +154 -0
- package/data/build/dist/client/locales/quickApps.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/native-model-translation-menu.d.ts.map +1 -1
- package/data/build/dist/client/native-model-translation-menu.js +3 -1
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -1
- package/data/build/dist/client/provider-icons.d.ts.map +1 -1
- package/data/build/dist/client/provider-icons.js +3 -1
- package/data/build/dist/client/provider-icons.js.map +1 -1
- package/data/build/dist/client/quick-apps/browser-storage.d.ts +24 -0
- package/data/build/dist/client/quick-apps/browser-storage.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/browser-storage.js +114 -0
- package/data/build/dist/client/quick-apps/browser-storage.js.map +1 -0
- package/data/build/dist/client/quick-apps/client.d.ts +31 -0
- package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/client.js +68 -0
- package/data/build/dist/client/quick-apps/client.js.map +1 -0
- package/data/build/dist/client/quick-apps/document.d.ts +26 -0
- package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/document.js +110 -0
- package/data/build/dist/client/quick-apps/document.js.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.js +51 -0
- package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.js +252 -0
- package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.js +31 -0
- package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.js +128 -0
- package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
- package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
- package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/styles.js +143 -0
- package/data/build/dist/client/quick-apps/styles.js.map +1 -0
- package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
- package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/ui.js +21 -0
- package/data/build/dist/client/quick-apps/ui.js.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.js +165 -0
- package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
- package/data/build/dist/client/session-translation-chat.d.ts +1 -1
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
- package/data/build/dist/client/session-translation-chat.js +26 -22
- package/data/build/dist/client/session-translation-chat.js.map +1 -1
- package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.js +54 -0
- package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
- package/data/build/dist/client/style.css +219 -219
- package/data/build/dist/client/terminal/model.d.ts.map +1 -1
- package/data/build/dist/client/terminal/model.js +2 -1
- package/data/build/dist/client/terminal/model.js.map +1 -1
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-rightbar-dom.js +12 -21
- package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts +3 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.js +5 -4
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
- 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/primitives-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +21 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +8 -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 +100 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-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/host/agent-team-adapter.d.ts +52 -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 +109 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.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 +18 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/matrix.js +16 -8
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.js +27 -6
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/types.js.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js +6 -3
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
- package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.js +183 -20
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.js +110 -11
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
- 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.map +1 -1
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +11 -1
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -1
- package/data/build/dist/host/cli-adapters/command-code-driver.js +3 -2
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +3 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +41 -4
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +19 -5
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +3 -2
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.js +164 -34
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.js +4 -2
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.js +327 -30
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
- 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/legacy-session-adapter.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +20 -3
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -1
- 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-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/mcode-driver.js +11 -4
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.js +62 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +11 -3
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +7 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +4 -2
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.js +105 -17
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.d.ts +7 -1
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.js +98 -30
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -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 +83 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +4 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -1
- 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/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/zcode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/zcode-driver.js +6 -1
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
- 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 +14 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-holder.js +53 -6
- package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +4 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.js +34 -6
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.js +43 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.js +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.js +23 -7
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +22 -3
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
- 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 +22 -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 +28 -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 +208 -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/features/file-management.d.ts.map +1 -1
- package/data/build/dist/host/features/file-management.js +8 -0
- package/data/build/dist/host/features/file-management.js.map +1 -1
- package/data/build/dist/host/features/index.d.ts.map +1 -1
- package/data/build/dist/host/features/index.js +2 -0
- package/data/build/dist/host/features/index.js.map +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/host/features/peer-host.js +7 -0
- package/data/build/dist/host/features/peer-host.js.map +1 -1
- package/data/build/dist/host/features/quick-apps.d.ts +4 -0
- package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/host/features/quick-apps.js +158 -0
- package/data/build/dist/host/features/quick-apps.js.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts +1 -1
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -1
- package/data/build/dist/host/features/session-prompt-translation.js +13 -4
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -1
- package/data/build/dist/host/features/session-translation-protection.d.ts +6 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-protection.js +21 -0
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -1
- package/data/build/dist/host/features/session-translation-recovery.d.ts +3 -2
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-recovery.js +6 -3
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -1
- package/data/build/dist/host/features/session-translation-service.d.ts +3 -0
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-service.js +14 -8
- package/data/build/dist/host/features/session-translation-service.js.map +1 -1
- package/data/build/dist/host/features/types.d.ts +10 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -1
- 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/index.d.ts.map +1 -1
- package/data/build/dist/host/index.js +27 -2
- package/data/build/dist/host/index.js.map +1 -1
- package/data/build/dist/host/lan-access-dsh.d.ts +5 -1
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/lan-access-dsh.js +43 -2
- package/data/build/dist/host/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
- package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
- package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
- package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
- package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
- package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.js +186 -0
- package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.js +238 -0
- package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.js +174 -0
- package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js +190 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +5 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
- package/data/build/dist/host/native-session-bridge.js +3 -0
- package/data/build/dist/host/native-session-bridge.js.map +1 -1
- package/data/build/dist/host/rpc.d.ts.map +1 -1
- package/data/build/dist/host/rpc.js +8 -3
- package/data/build/dist/host/rpc.js.map +1 -1
- package/data/build/dist/host/session-migration-repair.js +48 -35
- package/data/build/dist/host/session-migration-repair.js.map +1 -1
- package/data/build/dist/host/settings.d.ts.map +1 -1
- package/data/build/dist/host/settings.js +13 -0
- package/data/build/dist/host/settings.js.map +1 -1
- 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/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 +48 -0
- package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +35 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
- 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/config.d.ts +2 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.js.map +1 -1
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/quick-apps.d.ts +68 -0
- package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/quick-apps.js +4 -0
- package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts +8 -3
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/session-translation.js +14 -0
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
- package/data/build/dist/shared/contracts/version.d.ts +9 -15
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/version.js +8 -14
- package/data/build/dist/shared/contracts/version.js.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
- package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.js +4 -0
- package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
- package/data/build/dist/shared/quick-app-browser-storage.d.ts +33 -0
- package/data/build/dist/shared/quick-app-browser-storage.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-browser-storage.js +33 -0
- package/data/build/dist/shared/quick-app-browser-storage.js.map +1 -0
- package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
- package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
- package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts +9 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.js +186 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.js.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
- package/data/build/dist/shared/request-performance.d.ts +15 -0
- package/data/build/dist/shared/request-performance.d.ts.map +1 -0
- package/data/build/dist/shared/request-performance.js +3 -0
- package/data/build/dist/shared/request-performance.js.map +1 -0
- package/package.json +32 -32
- package/profile/README.md +2 -2
- package/profile/package.json +3 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
/** Keep DOM consumers aligned with the context presentation's owned child slots. */
|
|
2
|
+
export declare function contextComposerSlotName(name: string): string;
|
|
3
|
+
export declare function composerSlotSelector(name: string): string;
|
|
4
|
+
//# sourceMappingURL=composer-slot-selectors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer-slot-selectors.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/composer-slot-selectors.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAE5D;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAEzD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Keep DOM consumers aligned with the context presentation's owned child slots. */
|
|
2
|
+
export function contextComposerSlotName(name) {
|
|
3
|
+
return `codingns.grok-context.${name}`;
|
|
4
|
+
}
|
|
5
|
+
export function composerSlotSelector(name) {
|
|
6
|
+
return `:is([data-slot="${name}"],[data-slot="${contextComposerSlotName(name)}"])`;
|
|
7
|
+
}
|
|
8
|
+
//# sourceMappingURL=composer-slot-selectors.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"composer-slot-selectors.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/composer-slot-selectors.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,MAAM,UAAU,uBAAuB,CAAC,IAAY;IAClD,OAAO,yBAAyB,IAAI,EAAE,CAAA;AACxC,CAAC;AAED,MAAM,UAAU,oBAAoB,CAAC,IAAY;IAC/C,OAAO,mBAAmB,IAAI,kBAAkB,uBAAuB,CAAC,IAAI,CAAC,KAAK,CAAA;AACpF,CAAC"}
|
|
@@ -1,7 +1,21 @@
|
|
|
1
|
+
import * as primitives from '@deepseek-ai/dsh-client-ui-primitives';
|
|
1
2
|
import { type ComponentType } from 'react';
|
|
2
3
|
/** 富文本菜单沿用宿主的键盘导航、焦点归还和外部点击关闭行为。 */
|
|
3
4
|
export { Menu as DshMenu } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
4
5
|
export { Button as DshButton, Checkbox as DshCheckbox, Input as DshInput, Modal as DshModal } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
6
|
+
export { FileTypeIcon as DshFileTypeIcon, classifyFileType as classifyDshFileType, IconFolderCloseRegular as DshFolderIcon } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
7
|
+
export { PathLabel as DshPathLabel, Tooltip as DshTooltip } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
8
|
+
/** Older primitive packages may lack Markdown delegation. Do not fail the whole footer. */
|
|
9
|
+
export declare function hasNativeMarkdown(source?: object): boolean;
|
|
10
|
+
export declare const DshMarkdownText: import("react").MemoExoticComponent<({ text, streaming, labels, fileMentions, pathImages, variant, }: {
|
|
11
|
+
text: string;
|
|
12
|
+
streaming?: boolean;
|
|
13
|
+
labels: primitives.MarkdownLabels;
|
|
14
|
+
fileMentions?: primitives.MarkdownFileMentions | undefined;
|
|
15
|
+
pathImages?: primitives.MarkdownPathImages | undefined;
|
|
16
|
+
variant?: "body" | "compact";
|
|
17
|
+
}) => import("react").JSX.Element>;
|
|
18
|
+
export declare const DshMarkdownDelegate: typeof primitives.MarkdownDelegateProvider;
|
|
5
19
|
type IconComponent = ComponentType<{
|
|
6
20
|
readonly size?: number;
|
|
7
21
|
readonly className?: string;
|
|
@@ -20,6 +34,10 @@ export declare function resolvePlusIcon(): IconComponent;
|
|
|
20
34
|
export declare function resolveChevronDownIcon(): IconComponent;
|
|
21
35
|
/** 终端工具栏使用的原生刷新图标。 */
|
|
22
36
|
export declare function resolveRefreshIcon(): IconComponent;
|
|
37
|
+
/** Document toolbar glyphs shared with the native text preview. */
|
|
38
|
+
export declare function resolveTextWrapIcon(wrapped: boolean): IconComponent;
|
|
39
|
+
/** Native viewer controls; keep optional glyph compatibility at the adapter boundary. */
|
|
40
|
+
export declare function resolveViewerIcon(name: 'edit' | 'save' | 'fullscreen' | 'restore' | 'back' | 'home'): IconComponent;
|
|
23
41
|
/** 终端工具栏入口使用的原生工具图标。 */
|
|
24
42
|
export declare function resolveToolIcon(): IconComponent;
|
|
25
43
|
/** 终端快捷操作的方向图标。 */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/primitives-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"primitives-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/primitives-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,uCAAuC,CAAA;AACnE,OAAO,EAAiB,KAAK,aAAa,EAAuC,MAAM,OAAO,CAAA;AAE9F,oCAAoC;AACpC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,QAAQ,IAAI,WAAW,EAAE,KAAK,IAAI,QAAQ,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,uCAAuC,CAAA;AAC1I,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,sBAAsB,IAAI,aAAa,EAAE,MAAM,uCAAuC,CAAA;AACzK,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAA;AAExG,2FAA2F;AAC3F,wBAAgB,iBAAiB,CAAC,MAAM,GAAE,MAAmB,GAAG,OAAO,CAGtE;AACD,eAAO,MAAM,eAAe;;aA8B1B,CAAF;;gBACM,CAAC;cACD,CAAC;WACL,CAAC;kCAjCuJ,CAAA;AAC1J,eAAO,MAAM,mBAAmB,4CAA2H,CAAA;AAE3J,KAAK,aAAa,GAAG,aAAa,CAAC;IAAE,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CAAA;AAC3F,KAAK,qBAAqB,GAAG,aAAa,CAAC;IAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,MAAM,EAAE,CAAA;CAAE,CAAC,CAAA;AA2ChF,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,OAAO,GAAG,UAAU,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAA;AAC9G,+CAA+C;AAC/C,wBAAgB,2BAA2B,CAAC,IAAI,EAAE,oBAAoB,GAAG,aAAa,CAYrF;AAcD;;;GAGG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAG/C;AAED,wBAAgB,sBAAsB,IAAI,aAAa,CAGtD;AAED,sBAAsB;AACtB,wBAAgB,kBAAkB,IAAI,aAAa,CAGlD;AAED,mEAAmE;AACnE,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,aAAa,CAGnE;AAED,yFAAyF;AACzF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,aAAa,CAKnH;AAED,wBAAwB;AACxB,wBAAgB,eAAe,IAAI,aAAa,CAO/C;AAED,mBAAmB;AACnB,wBAAgB,wBAAwB,CAAC,SAAS,EAAE,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,aAAa,CAMnG;AAED,gDAAgD;AAChD,wBAAgB,mBAAmB,IAAI,qBAAqB,CAG3D;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,aAAa,CAG/C;AAED;;;GAGG;AACH,wBAAgB,mBAAmB,IAAI,aAAa,CAOnD"}
|
|
@@ -3,6 +3,15 @@ import { createElement } from 'react';
|
|
|
3
3
|
/** 富文本菜单沿用宿主的键盘导航、焦点归还和外部点击关闭行为。 */
|
|
4
4
|
export { Menu as DshMenu } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
5
5
|
export { Button as DshButton, Checkbox as DshCheckbox, Input as DshInput, Modal as DshModal } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
6
|
+
export { FileTypeIcon as DshFileTypeIcon, classifyFileType as classifyDshFileType, IconFolderCloseRegular as DshFolderIcon } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
7
|
+
export { PathLabel as DshPathLabel, Tooltip as DshTooltip } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
8
|
+
/** Older primitive packages may lack Markdown delegation. Do not fail the whole footer. */
|
|
9
|
+
export function hasNativeMarkdown(source = primitives) {
|
|
10
|
+
const value = source;
|
|
11
|
+
return value.MarkdownText !== undefined && typeof value.MarkdownDelegateProvider === 'function';
|
|
12
|
+
}
|
|
13
|
+
export const DshMarkdownText = primitives.MarkdownText ?? (({ text }) => createElement('pre', null, text));
|
|
14
|
+
export const DshMarkdownDelegate = primitives.MarkdownDelegateProvider ?? (({ children }) => createElement('div', null, children));
|
|
6
15
|
const unavailableIcon = () => null;
|
|
7
16
|
const fallbackShortcutKeys = ({ keys }) => createElement('span', undefined, keys.join(' + '));
|
|
8
17
|
/** 助理控件优先共用宿主图标,缺少的电话与普通对话采用相同 16px 画布和细描边。 */
|
|
@@ -45,6 +54,18 @@ export function resolveRefreshIcon() {
|
|
|
45
54
|
const value = primitives;
|
|
46
55
|
return value.IconRefreshOutlineRegular ?? value.IconRefreshOutlineMedium ?? unavailableIcon;
|
|
47
56
|
}
|
|
57
|
+
/** Document toolbar glyphs shared with the native text preview. */
|
|
58
|
+
export function resolveTextWrapIcon(wrapped) {
|
|
59
|
+
const value = primitives;
|
|
60
|
+
return (wrapped ? value.IconNowrapFillRegular : value.IconWrapFillRegular) ?? unavailableIcon;
|
|
61
|
+
}
|
|
62
|
+
/** Native viewer controls; keep optional glyph compatibility at the adapter boundary. */
|
|
63
|
+
export function resolveViewerIcon(name) {
|
|
64
|
+
const icons = primitives;
|
|
65
|
+
const key = { edit: 'IconEditOutlineRegular', save: 'IconCheckOutlineRegular', fullscreen: 'IconFullscreenOutlineRegular',
|
|
66
|
+
restore: 'IconFullscreenOutlineRegular', back: 'IconChevronLeftOutlineRegular', home: 'IconFileOutlineRegular' }[name];
|
|
67
|
+
return icons[key] ?? resolveRefreshIcon();
|
|
68
|
+
}
|
|
48
69
|
/** 终端工具栏入口使用的原生工具图标。 */
|
|
49
70
|
export function resolveToolIcon() {
|
|
50
71
|
const value = primitives;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"primitives-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/primitives-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,uCAAuC,CAAA;AACnE,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"primitives-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/primitives-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,UAAU,MAAM,uCAAuC,CAAA;AACnE,OAAO,EAAE,aAAa,EAA2D,MAAM,OAAO,CAAA;AAE9F,oCAAoC;AACpC,OAAO,EAAE,IAAI,IAAI,OAAO,EAAE,MAAM,uCAAuC,CAAA;AACvE,OAAO,EAAE,MAAM,IAAI,SAAS,EAAE,QAAQ,IAAI,WAAW,EAAE,KAAK,IAAI,QAAQ,EAAE,KAAK,IAAI,QAAQ,EAAE,MAAM,uCAAuC,CAAA;AAC1I,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,gBAAgB,IAAI,mBAAmB,EAAE,sBAAsB,IAAI,aAAa,EAAE,MAAM,uCAAuC,CAAA;AACzK,OAAO,EAAE,SAAS,IAAI,YAAY,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,uCAAuC,CAAA;AAExG,2FAA2F;AAC3F,MAAM,UAAU,iBAAiB,CAAC,SAAiB,UAAU;IAC3D,MAAM,KAAK,GAAG,MAAoC,CAAA;IAClD,OAAO,KAAK,CAAC,YAAY,KAAK,SAAS,IAAI,OAAO,KAAK,CAAC,wBAAwB,KAAK,UAAU,CAAA;AACjG,CAAC;AACD,MAAM,CAAC,MAAM,eAAe,GAAG,UAAU,CAAC,YAAY,IAAI,CAAC,CAAC,EAAE,IA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AC,qBAAqB;WAC3B,eAAe,EAAE,CAAA;AACxB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
interface FooterSlots {
|
|
3
|
+
inject(name: string, install: () => () => void): () => void;
|
|
4
|
+
register(options: {
|
|
5
|
+
name: string;
|
|
6
|
+
id: string;
|
|
7
|
+
order: number;
|
|
8
|
+
}, component: ComponentType<{
|
|
9
|
+
wide: boolean;
|
|
10
|
+
}>): () => void;
|
|
11
|
+
}
|
|
12
|
+
export declare function supportsQuickAppFooter(value: unknown): value is FooterSlots;
|
|
13
|
+
/** Wait for the native declaration; releasing the module also cancels a pending registration. */
|
|
14
|
+
export declare function registerQuickAppFooter(slots: unknown, component: ComponentType<{
|
|
15
|
+
wide: boolean;
|
|
16
|
+
}>): () => void;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=quick-app-footer-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-app-footer-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/quick-app-footer-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C,UAAU,WAAW;IACnB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;IAC3D,QAAQ,CAAC,OAAO,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,EAAE,SAAS,EAAE,aAAa,CAAC;QAAE,IAAI,EAAE,OAAO,CAAA;KAAE,CAAC,GAAG,MAAM,IAAI,CAAA;CACxH;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,WAAW,CAG3E;AAED,iGAAiG;AACjG,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC;IAAE,IAAI,EAAE,OAAO,CAAA;CAAE,CAAC,GAAG,MAAM,IAAI,CAG9G"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export function supportsQuickAppFooter(value) {
|
|
2
|
+
const slots = value;
|
|
3
|
+
return typeof slots?.inject === 'function' && typeof slots.register === 'function';
|
|
4
|
+
}
|
|
5
|
+
/** Wait for the native declaration; releasing the module also cancels a pending registration. */
|
|
6
|
+
export function registerQuickAppFooter(slots, component) {
|
|
7
|
+
if (!supportsQuickAppFooter(slots))
|
|
8
|
+
return () => undefined;
|
|
9
|
+
return slots.inject('sidebar.footer.action', () => slots.register({ name: 'sidebar.footer.action', id: 'codingns-quick-apps', order: 40 }, component));
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=quick-app-footer-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-app-footer-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/quick-app-footer-adapter.ts"],"names":[],"mappings":"AAOA,MAAM,UAAU,sBAAsB,CAAC,KAAc;IACnD,MAAM,KAAK,GAAG,KAAyC,CAAA;IACvD,OAAO,OAAO,KAAK,EAAE,MAAM,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU,CAAA;AACpF,CAAC;AAED,iGAAiG;AACjG,MAAM,UAAU,sBAAsB,CAAC,KAAc,EAAE,SAA2C;IAChG,IAAI,CAAC,sBAAsB,CAAC,KAAK,CAAC;QAAE,OAAO,GAAG,EAAE,CAAC,SAAS,CAAA;IAC1D,OAAO,KAAK,CAAC,MAAM,CAAC,uBAAuB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,QAAQ,CAAC,EAAE,IAAI,EAAE,uBAAuB,EAAE,EAAE,EAAE,qBAAqB,EAAE,KAAK,EAAE,EAAE,EAAE,EAAE,SAAS,CAAC,CAAC,CAAA;AACxJ,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { type RenderElement } from './slot-presentation-mirror.js';
|
|
2
|
+
export interface SessionPerformancePresentation {
|
|
3
|
+
install(useAdapter: (id: string) => string | undefined, element: RenderElement): () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function supportsSessionPerformancePresentation(context: unknown): boolean;
|
|
6
|
+
/** Reuse the native activity pill, dialog, localization, settings, and session binding. */
|
|
7
|
+
export declare function createSessionPerformancePresentation(context: unknown): SessionPerformancePresentation;
|
|
8
|
+
//# sourceMappingURL=session-performance-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-performance-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/session-performance-adapter.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2E,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAA;AAE3I,MAAM,WAAW,8BAA8B;IAC7C,OAAO,CAAC,UAAU,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,EAAE,OAAO,EAAE,aAAa,GAAG,MAAM,IAAI,CAAA;CAC5F;AAED,wBAAgB,sCAAsC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAGhF;AAED,2FAA2F;AAC3F,wBAAgB,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,8BAA8B,CAuCrG"}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { CODEX_PERFORMANCE_PROJECTION } from '../../shared/codex-performance.js';
|
|
2
|
+
import { GROK_CONTEXT_PROJECTION, GROK_PERFORMANCE_PROJECTION } from '../../shared/request-performance.js';
|
|
3
|
+
import { contextComposerSlotName } from './composer-slot-selectors.js';
|
|
4
|
+
import { followPresentationEntry, mirrorPresentationSlot } from './slot-presentation-mirror.js';
|
|
5
|
+
export function supportsSessionPerformancePresentation(context) {
|
|
6
|
+
const slots = context?.slots;
|
|
7
|
+
return slots !== undefined && ['inject', 'register', 'entries', 'subscribe'].every(key => typeof slots[key] === 'function');
|
|
8
|
+
}
|
|
9
|
+
/** Reuse the native activity pill, dialog, localization, settings, and session binding. */
|
|
10
|
+
export function createSessionPerformancePresentation(context) {
|
|
11
|
+
const slots = context.slots;
|
|
12
|
+
return {
|
|
13
|
+
install(useAdapter, element) {
|
|
14
|
+
const wrappers = new Set();
|
|
15
|
+
const removeActivity = followPresentationEntry(slots, 'conversation.composer.dock', entry => entry.options.id === 'activity' && !wrappers.has(entry.component), native => {
|
|
16
|
+
const Activity = native.component;
|
|
17
|
+
function ActivityWithSourceTiming(props) {
|
|
18
|
+
const adapter = useAdapter(props.sessionId);
|
|
19
|
+
return element(Activity, {
|
|
20
|
+
...props,
|
|
21
|
+
useProjection: (key, ...args) => {
|
|
22
|
+
const original = props.useProjection(key, ...args);
|
|
23
|
+
if (key !== 'sessionStats')
|
|
24
|
+
return original;
|
|
25
|
+
// Read both sources on every render, including adapter changes and cold loading.
|
|
26
|
+
const value = props.useProjection(adapter === 'grok' ? GROK_PERFORMANCE_PROJECTION : CODEX_PERFORMANCE_PROJECTION, ...args);
|
|
27
|
+
if (adapter !== 'codex' && adapter !== 'grok')
|
|
28
|
+
return original;
|
|
29
|
+
// Old histories have no recoverable source timing. Keep counts but omit a fabricated speed.
|
|
30
|
+
return value ?? { turns: 0, steps: 0, toolMs: 0, ...original, llmMs: 0, decodeTokens: 0, decodeMs: 0, ttftMs: 0, ttftSteps: 0 };
|
|
31
|
+
},
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
wrappers.add(ActivityWithSourceTiming);
|
|
35
|
+
const remove = slots.register({
|
|
36
|
+
name: 'conversation.composer.dock', ...native.options,
|
|
37
|
+
priority: (native.options.priority ?? 0) - 1,
|
|
38
|
+
...(native.inject === undefined ? {} : { inject: native.inject }),
|
|
39
|
+
...(native.locale === undefined ? {} : { locale: native.locale }),
|
|
40
|
+
}, ActivityWithSourceTiming);
|
|
41
|
+
return () => { remove(); wrappers.delete(ActivityWithSourceTiming); };
|
|
42
|
+
});
|
|
43
|
+
try {
|
|
44
|
+
const removeContext = installGrokContextPresentation(slots, useAdapter, element);
|
|
45
|
+
return () => { removeContext(); removeActivity(); };
|
|
46
|
+
}
|
|
47
|
+
catch (error) {
|
|
48
|
+
removeActivity();
|
|
49
|
+
throw error;
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
/** ContextMeter lives inside the native composer bar, rather than in its own slot. */
|
|
55
|
+
function installGrokContextPresentation(slots, useAdapter, element) {
|
|
56
|
+
return followPresentationEntry(slots, 'conversation.composer.bar', entry => entry.children?.['conversation.composer.dock'] !== undefined, native => {
|
|
57
|
+
const names = Object.fromEntries(Object.keys(native.children ?? {}).map(name => [name, contextComposerSlotName(name)]));
|
|
58
|
+
const removers = [];
|
|
59
|
+
const remove = slots.register({
|
|
60
|
+
name: 'conversation.composer.bar', ...native.options,
|
|
61
|
+
priority: (native.options.priority ?? 0) - 1,
|
|
62
|
+
locale: native.locale, inject: native.inject, store: native.store, select: native.select,
|
|
63
|
+
children: Object.fromEntries(Object.entries(native.children ?? {}).map(([name, spec]) => [names[name], spec])),
|
|
64
|
+
}, props => {
|
|
65
|
+
const adapter = useAdapter(props.sessionId ?? '');
|
|
66
|
+
return element(native.component, {
|
|
67
|
+
...props,
|
|
68
|
+
renderSlot: (name, ...args) => props.renderSlot(names[name] ?? name, ...args),
|
|
69
|
+
...(props.renderSlotChain === undefined ? {} : {
|
|
70
|
+
renderSlotChain: (name, ...args) => props.renderSlotChain(names[name] ?? name, ...args),
|
|
71
|
+
}),
|
|
72
|
+
useProjection: (key, ...args) => {
|
|
73
|
+
const original = props.useProjection(key, ...args);
|
|
74
|
+
if (key === 'contextBreakdown' && adapter === 'grok')
|
|
75
|
+
return undefined;
|
|
76
|
+
if (key !== 'contextPressure')
|
|
77
|
+
return original;
|
|
78
|
+
const value = props.useProjection(GROK_CONTEXT_PROJECTION);
|
|
79
|
+
if (adapter !== 'grok')
|
|
80
|
+
return original;
|
|
81
|
+
const pressure = value ?? {};
|
|
82
|
+
return typeof args[0] === 'function' ? args[0](pressure) : pressure;
|
|
83
|
+
},
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
try {
|
|
87
|
+
for (const [source, target] of Object.entries(names))
|
|
88
|
+
removers.push(mirrorPresentationSlot(slots, source, target, element));
|
|
89
|
+
}
|
|
90
|
+
catch (error) {
|
|
91
|
+
for (const dispose of removers.reverse())
|
|
92
|
+
dispose();
|
|
93
|
+
remove();
|
|
94
|
+
throw error;
|
|
95
|
+
}
|
|
96
|
+
return () => { for (const dispose of removers.reverse())
|
|
97
|
+
dispose(); remove(); };
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
//# sourceMappingURL=session-performance-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"session-performance-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/session-performance-adapter.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,4BAA4B,EAAE,MAAM,mCAAmC,CAAA;AAChF,OAAO,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAA;AAC1G,OAAO,EAAE,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AACtE,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAA8C,MAAM,+BAA+B,CAAA;AAM3I,MAAM,UAAU,sCAAsC,CAAC,OAAgB;IACrE,MAAM,KAAK,GAAI,OAAkD,EAAE,KAAK,CAAA;IACxE,OAAO,KAAK,KAAK,SAAS,IAAI,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,KAAK,CAAC,GAA8B,CAAC,KAAK,UAAU,CAAC,CAAA;AACxJ,CAAC;AAED,2FAA2F;AAC3F,MAAM,UAAU,oCAAoC,CAAC,OAAg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,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE;gBAAE,OAAO,EAAE,CAAA;YACnD,MAAM,EAAE,CAAA;YACR,MAAM,KAAK,CAAA;QACb,CAAC;QACD,OAAO,GAAG,EAAE,GAAG,KAAK,MAAM,OAAO,IAAI,QAAQ,CAAC,OAAO,EAAE;YAAE,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAA,CAAC,CAAC,CAAA;IAChF,CAAC,CAAC,CAAA;AACN,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-footer-icon-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/sidebar-footer-icon-adapter.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,GAAG,YAAY,GAAG,aAAa,CAkBjG"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/** DOM counterparts of DSH's regular User and Link outline artwork. */
|
|
2
|
+
export function createSidebarFooterIcon(dom, kind) {
|
|
3
|
+
const svg = dom.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
4
|
+
for (const [name, value] of Object.entries({ width: '16', height: '16', viewBox: '0 0 16 16', fill: 'none',
|
|
5
|
+
stroke: 'currentColor', 'stroke-width': '1', 'stroke-linecap': 'round', 'stroke-linejoin': 'round', 'aria-hidden': 'true', focusable: 'false' }))
|
|
6
|
+
svg.setAttribute(name, value);
|
|
7
|
+
svg.style.pointerEvents = 'none';
|
|
8
|
+
const paths = kind === 'user' ? [
|
|
9
|
+
'M8 8.25C9.51878 8.25 10.75 7.01878 10.75 5.5C10.75 3.98122 9.51878 2.75 8 2.75C6.48122 2.75 5.25 3.98122 5.25 5.5C5.25 7.01878 6.48122 8.25 8 8.25Z',
|
|
10
|
+
'M2.5 14.5C2.5 11.5 5.25 10.25 8 10.25C10.75 10.25 13.5 11.5 13.5 14.5',
|
|
11
|
+
] : [
|
|
12
|
+
'M6.59961 9.40051C6.82779 9.6334 7.10015 9.81842 7.40074 9.94472C7.70132 10.071 8.02409 10.1361 8.35013 10.1361C8.67618 10.1361 8.99894 10.071 9.29953 9.94472C9.60011 9.81842 9.87247 9.6334 10.1007 9.40051L12.9015 6.59967C13.3658 6.13541 13.6266 5.50572 13.6266 4.84915C13.6266 4.19258 13.3658 3.56289 12.9015 3.09863C12.4372 2.63436 11.8075 2.37354 11.151 2.37354C10.4944 2.37354 9.86472 2.63436 9.40045 3.09863L9.05034 3.44873',
|
|
13
|
+
'M9.40051 6.59959C9.17233 6.3667 8.89997 6.18169 8.59939 6.05538C8.2988 5.92907 7.97603 5.86401 7.64999 5.86401C7.32395 5.86401 7.00118 5.92907 6.70059 6.05538C6.40001 6.18169 6.12765 6.3667 5.89946 6.59959L3.09863 9.40043C2.63436 9.8647 2.37354 10.4944 2.37354 11.151C2.37354 11.8075 2.63436 12.4372 3.09863 12.9015C3.56289 13.3657 4.19258 13.6266 4.84915 13.6266C5.50572 13.6266 6.13541 13.3657 6.59967 12.9015L6.94978 12.5514',
|
|
14
|
+
];
|
|
15
|
+
for (const d of paths) {
|
|
16
|
+
const path = dom.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
17
|
+
path.setAttribute('d', d);
|
|
18
|
+
svg.append(path);
|
|
19
|
+
}
|
|
20
|
+
return svg;
|
|
21
|
+
}
|
|
22
|
+
//# sourceMappingURL=sidebar-footer-icon-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sidebar-footer-icon-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/sidebar-footer-icon-adapter.ts"],"names":[],"mappings":"AAAA,uEAAuE;AACvE,MAAM,UAAU,uBAAuB,CAAC,GAAa,EAAE,IAA2B;IAChF,MAAM,GAAG,GAAG,GAAG,CAAC,eAAe,CAAC,4BAA4B,EAAE,KAAK,CAAC,CAAA;IACpE,KAAK,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,EAAE,MAAM;QACxG,MAAM,EAAE,cAAc,EAAE,cAAc,EAAE,GAAG,EAAE,gBAAgB,EAAE,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC;QAAE,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC,CAAA;IACjL,GAAG,CAAC,KAAK,CAAC,aAAa,GAAG,MAAM,CAAA;IAChC,MAAM,KAAK,GAAG,IAAI,KAAK,MAAM,CAAC,CAAC,CAAC;QAC9B,qJAAqJ;QACrJ,uEAAuE;KACxE,CAAC,CAAC,CAAC;QACF,6aAA6a;QAC7a,6aAA6a;KAC9a,CAAA;IACD,KAAK,MAAM,CAAC,IAAI,KAAK,EAAE,CAAC;QACtB,MAAM,IAAI,GAAG,GAAG,CAAC,eAAe,CAAC,4BAA4B,EAAE,MAAM,CAAC,CAAA;QACtE,IAAI,CAAC,YAAY,CAAC,GAAG,EAAE,CAAC,CAAC,CAAA;QACzB,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAA;IAClB,CAAC;IACD,OAAO,GAAG,CAAA;AACZ,CAAC"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import type { CodingNsTeamAction, CodingNsTeamIdentity } from '../../shared/contracts/agent-team.js';
|
|
2
|
+
export interface TeamAgent {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly session?: {
|
|
5
|
+
readonly header?: {
|
|
6
|
+
readonly id?: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
}
|
|
10
|
+
export interface TeamAgentRegistry {
|
|
11
|
+
get(id: string): unknown;
|
|
12
|
+
list(): readonly unknown[];
|
|
13
|
+
}
|
|
14
|
+
export interface NativeAgentTeamService {
|
|
15
|
+
membership(agent: unknown): unknown;
|
|
16
|
+
listMembers(agent: unknown): unknown;
|
|
17
|
+
sendMessage(agent: unknown, request: Record<string, unknown>): unknown;
|
|
18
|
+
listTasks(agent: unknown): unknown;
|
|
19
|
+
getTask(agent: unknown, id: string): unknown;
|
|
20
|
+
createTask(agent: unknown, request: Record<string, unknown>): unknown;
|
|
21
|
+
updateTask(agent: unknown, request: Record<string, unknown>): unknown;
|
|
22
|
+
waitForChange(agent: unknown, timeoutMs: number, signal: AbortSignal): unknown;
|
|
23
|
+
spawnTeammate?(agent: unknown, request: Record<string, unknown>): unknown;
|
|
24
|
+
interrupt?(agent: unknown, target: string): unknown;
|
|
25
|
+
}
|
|
26
|
+
export declare function supportsExternalAgentTeam(context: unknown, lead?: boolean): boolean;
|
|
27
|
+
export declare function createAgentTeamAdapter(context: unknown): DshAgentTeamAdapter;
|
|
28
|
+
/** Exact Agent identity and all DSH-specific calls stay at this boundary. */
|
|
29
|
+
export declare class DshAgentTeamAdapter {
|
|
30
|
+
private readonly service;
|
|
31
|
+
private readonly agents;
|
|
32
|
+
private readonly controller?;
|
|
33
|
+
private readonly lifetime;
|
|
34
|
+
readonly supportsLead: boolean;
|
|
35
|
+
constructor(service: NativeAgentTeamService, agents: TeamAgentRegistry, controller?: unknown | undefined);
|
|
36
|
+
get signal(): AbortSignal;
|
|
37
|
+
nativeRoute(model?: string, effort?: string, provider?: string): Promise<{
|
|
38
|
+
provider: string;
|
|
39
|
+
model: string;
|
|
40
|
+
reasoningEffort?: string;
|
|
41
|
+
}>;
|
|
42
|
+
resolveAgent(sessionId: string): TeamAgent | undefined;
|
|
43
|
+
identity(agent: TeamAgent): CodingNsTeamIdentity;
|
|
44
|
+
invoke(agent: TeamAgent, action: CodingNsTeamAction, input: Record<string, unknown>, signal?: AbortSignal): unknown;
|
|
45
|
+
dispose(): void;
|
|
46
|
+
private isCurrent;
|
|
47
|
+
}
|
|
48
|
+
export declare function sessionIdOf(agent: TeamAgent): string;
|
|
49
|
+
export declare function teamError(code: string, message: string): Error & {
|
|
50
|
+
code: string;
|
|
51
|
+
};
|
|
52
|
+
//# sourceMappingURL=agent-team-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-team-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/agent-team-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,sCAAsC,CAAA;AAEpG,MAAM,WAAW,SAAS;IACxB,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,CAAC,EAAE;QAAE,QAAQ,CAAC,MAAM,CAAC,EAAE;YAAE,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAA;SAAE,CAAA;KAAE,CAAA;CAClE;AAED,MAAM,WAAW,iBAAiB;IAChC,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;IACxB,IAAI,IAAI,SAAS,OAAO,EAAE,CAAA;CAC3B;AAED,MAAM,WAAW,sBAAsB;IACrC,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;IACnC,WAAW,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;IACpC,WAAW,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAA;IACtE,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAA;IAClC,OAAO,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAA;IAC5C,UAAU,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAA;IACrE,UAAU,C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D,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,oBAAoB;IAUhD,MAAM,CAAC,KAAK,EAAE,SAAS,EAAE,MAAM,EAAE,kBAAkB,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO;IAyBnH,OAAO,IAAI,IAAI;IAEf,OAAO,CAAC,SAAS;CAClB;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,SAAS,GAAG,MAAM,CAAyD;AAE9G,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,KAAK,GAAG;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAuD"}
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
const MEMBER_METHODS = ['membership', 'listMembers', 'sendMessage', 'listTasks', 'getTask', 'createTask', 'updateTask', 'waitForChange'];
|
|
2
|
+
export function supportsExternalAgentTeam(context, lead = false) {
|
|
3
|
+
const service = read(context, 'agentTeams');
|
|
4
|
+
return hasMethods(service, [...MEMBER_METHODS, ...(lead ? ['spawnTeammate', 'interrupt'] : [])])
|
|
5
|
+
&& hasMethods(read(context, 'agents'), ['get', 'list'])
|
|
6
|
+
&& hasMethods(read(context, 'subagents'), ['registerProvider', 'startActivation', 'sendMessage']);
|
|
7
|
+
}
|
|
8
|
+
export function createAgentTeamAdapter(context) {
|
|
9
|
+
return new DshAgentTeamAdapter(read(context, 'agentTeams'), read(context, 'agents'), () => read(context, 'sessionController'));
|
|
10
|
+
}
|
|
11
|
+
/** Exact Agent identity and all DSH-specific calls stay at this boundary. */
|
|
12
|
+
export class DshAgentTeamAdapter {
|
|
13
|
+
service;
|
|
14
|
+
agents;
|
|
15
|
+
controller;
|
|
16
|
+
lifetime = new AbortController();
|
|
17
|
+
supportsLead;
|
|
18
|
+
constructor(service, agents, controller) {
|
|
19
|
+
this.service = service;
|
|
20
|
+
this.agents = agents;
|
|
21
|
+
this.controller = controller;
|
|
22
|
+
this.supportsLead = hasMethods(service, ['spawnTeammate', 'interrupt']);
|
|
23
|
+
}
|
|
24
|
+
get signal() { return this.lifetime.signal; }
|
|
25
|
+
async nativeRoute(model, effort, provider) {
|
|
26
|
+
// The catalog service may be published after the Team service or replaced
|
|
27
|
+
// during reload. Resolve it at the operation boundary, not at activation.
|
|
28
|
+
const controller = (typeof this.controller === 'function' ? this.controller() : this.controller);
|
|
29
|
+
if (!controller?.modelCatalog)
|
|
30
|
+
throw teamError('TEAM_NATIVE_ROUTE_UNAVAILABLE', 'A native DSH model catalog is required for mixed Teams.');
|
|
31
|
+
const catalog = await controller.modelCatalog();
|
|
32
|
+
const selectedModel = model ?? catalog.default?.model;
|
|
33
|
+
const selectedProvider = provider ?? (model === undefined ? catalog.default?.provider : undefined);
|
|
34
|
+
const matches = (catalog.groups ?? []).flatMap(group => group.id.startsWith('codingns-cli-') || selectedProvider && group.id !== selectedProvider ? []
|
|
35
|
+
: (group.models ?? []).filter(item => item.id === selectedModel).map(item => ({ provider: group.id, item })));
|
|
36
|
+
if (matches.length !== 1)
|
|
37
|
+
throw teamError('TEAM_NATIVE_ROUTE_UNAVAILABLE', 'Select an unambiguous native DSH provider and model.');
|
|
38
|
+
const match = matches[0];
|
|
39
|
+
const reasoningEffort = effort ?? (model === undefined && match.provider === catalog.default?.provider ? catalog.default?.reasoningEffort : undefined);
|
|
40
|
+
if (reasoningEffort && !match.item.reasoning?.efforts?.some(item => item.id === reasoningEffort))
|
|
41
|
+
throw teamError('TEAM_MODEL_UNSUPPORTED', 'The requested native effort is unavailable.');
|
|
42
|
+
return { provider: match.provider, model: match.item.id, ...(reasoningEffort ? { reasoningEffort } : {}) };
|
|
43
|
+
}
|
|
44
|
+
resolveAgent(sessionId) {
|
|
45
|
+
if (this.signal.aborted || sessionId.trim() === '')
|
|
46
|
+
return undefined;
|
|
47
|
+
const direct = this.agents.get(sessionId);
|
|
48
|
+
if (isAgent(direct) && this.isCurrent(direct) && sessionIdOf(direct) === sessionId)
|
|
49
|
+
return direct;
|
|
50
|
+
return this.agents.list().find((candidate) => isAgent(candidate)
|
|
51
|
+
&& this.isCurrent(candidate) && sessionIdOf(candidate) === sessionId);
|
|
52
|
+
}
|
|
53
|
+
identity(agent) {
|
|
54
|
+
this.signal.throwIfAborted();
|
|
55
|
+
if (!this.isCurrent(agent))
|
|
56
|
+
throw teamError('TEAM_CALLER_UNAVAILABLE', 'The calling Agent is no longer live.');
|
|
57
|
+
const member = this.service.membership(agent);
|
|
58
|
+
if ((member?.role !== 'lead' && member?.role !== 'teammate') || typeof member.id !== 'string' || typeof member.name !== 'string') {
|
|
59
|
+
throw teamError('TEAM_NOT_MEMBER', 'The calling Agent is not a native Team member.');
|
|
60
|
+
}
|
|
61
|
+
return { sessionId: sessionIdOf(agent), teamId: member.id, role: member.role, name: member.name };
|
|
62
|
+
}
|
|
63
|
+
invoke(agent, action, input, signal) {
|
|
64
|
+
const identity = this.identity(agent);
|
|
65
|
+
if ((action === 'spawn' || action === 'interrupt' || action === 'task_update' && input.action === 'reassign') && identity.role !== 'lead') {
|
|
66
|
+
throw teamError('TEAM_LEAD_REQUIRED', 'Only the Team Lead may perform this operation.');
|
|
67
|
+
}
|
|
68
|
+
const combined = signal ? AbortSignal.any([signal, this.signal]) : this.signal;
|
|
69
|
+
combined.throwIfAborted();
|
|
70
|
+
switch (action) {
|
|
71
|
+
case 'status': return { identity, supportsLead: this.supportsLead };
|
|
72
|
+
case 'members': return this.service.listMembers(agent);
|
|
73
|
+
case 'message': return this.service.sendMessage(agent, { ...input, signal: combined });
|
|
74
|
+
case 'tasks': return this.service.listTasks(agent);
|
|
75
|
+
case 'task': return this.service.getTask(agent, String(input.taskId));
|
|
76
|
+
case 'task_create': return this.service.createTask(agent, input);
|
|
77
|
+
case 'task_update': return this.service.updateTask(agent, input);
|
|
78
|
+
case 'wait': return this.service.waitForChange(agent, Number(input.timeoutMs), combined);
|
|
79
|
+
case 'spawn':
|
|
80
|
+
if (!this.service.spawnTeammate)
|
|
81
|
+
throw teamError('TEAM_OPERATION_UNAVAILABLE', 'Teammate creation is unavailable.');
|
|
82
|
+
return this.service.spawnTeammate(agent, { ...input, signal: combined });
|
|
83
|
+
case 'interrupt':
|
|
84
|
+
if (!this.service.interrupt)
|
|
85
|
+
throw teamError('TEAM_OPERATION_UNAVAILABLE', 'Team interruption is unavailable.');
|
|
86
|
+
return this.service.interrupt(agent, String(input.target));
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
dispose() { this.lifetime.abort(teamError('TEAM_SERVICE_UNAVAILABLE', 'The native Team service was removed.')); }
|
|
90
|
+
isCurrent(agent) { return this.agents.get(agent.id) === agent; }
|
|
91
|
+
}
|
|
92
|
+
export function sessionIdOf(agent) { return agent.session?.header?.id?.trim() || agent.id; }
|
|
93
|
+
export function teamError(code, message) { return Object.assign(new Error(message), { code }); }
|
|
94
|
+
function isAgent(value) { return typeof value === 'object' && value !== null && typeof Reflect.get(value, 'id') === 'string'; }
|
|
95
|
+
function hasMethods(value, methods) {
|
|
96
|
+
return value !== null && (typeof value === 'object' || typeof value === 'function') && methods.every(method => typeof Reflect.get(value, method) === 'function');
|
|
97
|
+
}
|
|
98
|
+
function read(context, name) {
|
|
99
|
+
if (typeof context !== 'object' || context === null)
|
|
100
|
+
return undefined;
|
|
101
|
+
try {
|
|
102
|
+
const get = Reflect.get(context, 'get');
|
|
103
|
+
return typeof get === 'function' ? get.call(context, name) : Reflect.get(context, name);
|
|
104
|
+
}
|
|
105
|
+
catch {
|
|
106
|
+
return undefined;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
//# sourceMappingURL=agent-team-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agent-team-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/agent-team-adapter.ts"],"names":[],"mappings":"AAyBA,MAAM,cAAc,GAAG,CAAC,YAAY,EAAE,aAAa,EAAE,aAA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AAC,OAAO,KAAK,KAAK,QAAQ,IAAI,OAAO,KAAK,KAAK,UAAU,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,OAAO,CAAC,GAAG,CAAC,KAAK,EAAE,MAAM,CAAC,KAAK,UAAU,CAAC,CAAA;AAClK,CAAC;AACD,SAAS,IAAI,CAAC,OAAgB,EAAE,IAAY;IAC1C,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,IAAI;QAAE,OAAO,SAAS,CAAA;IACrE,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,KAAK,CAAC,CAAA;QACvC,OAAO,OAAO,GAAG,KAAK,UAAU,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,OAAO,EAAE,IAAI,CAAC,CAAA;IACzF,CAAC;IAAC,MAAM,CAAC;QAAC,OAAO,SAAS,CAAA;IAAC,CAAC;AAC9B,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { IncomingMessage, ServerResponse } from 'node:http';
|
|
2
|
+
/** Shared credential landing page; application files are never rewritten. */
|
|
3
|
+
export declare function quickAppCredentials(origin: string, uiOrigin: string, cookieName: string): {
|
|
4
|
+
handle(request: IncomingMessage, response: ServerResponse): Promise<boolean>;
|
|
5
|
+
activate(credential: string, entryPath: string): Promise<{
|
|
6
|
+
url: string;
|
|
7
|
+
}>;
|
|
8
|
+
dispose(): void;
|
|
9
|
+
};
|
|
10
|
+
export declare function endQuickAppResponse(response: ServerResponse, status: number): void;
|
|
11
|
+
//# sourceMappingURL=quick-app-credentials.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-app-credentials.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/host/quick-app-credentials.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,WAAW,CAAA;AAShE,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM;oBAK9D,eAAe,YAAY,cAAc,GAAG,OAAO,CAAC,OAAO,CAAC;yBAkCvD,MAAM,aAAa,MAAM,GAAG,OAAO,CAAC;QAAE,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC;;EAQlF;AAED,wBAAgB,mBAAmB,CAAC,QAAQ,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAIlF"}
|