@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
|
@@ -15,6 +15,8 @@ import { QoderCliDriver } from './qoder-driver.js';
|
|
|
15
15
|
import { AntigravityDriver } from './antigravity-driver.js';
|
|
16
16
|
import { DoubaoAppDriver } from './doubao-driver.js';
|
|
17
17
|
import { CodingNsCliAdapterRegistry } from './registry.js';
|
|
18
|
+
import { CliManagementService } from './management.js';
|
|
19
|
+
import { CliUpdateCheckService } from './update-check.js';
|
|
18
20
|
import { CodingNsCliSessionStore } from './session-store.js';
|
|
19
21
|
import { CodingNsDshMessageProjector } from './dsh-message-projector.js';
|
|
20
22
|
import { CommandCodeSubscriptionService } from './command-code-subscription.js';
|
|
@@ -24,7 +26,7 @@ import { setAdapterRegistry } from './registry-holder.js';
|
|
|
24
26
|
import { createDshVirtualProviderRegistration } from './dsh-virtual-providers.js';
|
|
25
27
|
import { dispatchBridgeSubagent } from '../cli-bridge/dispatch.js';
|
|
26
28
|
import { startSubagentBridgeServer } from '../cli-bridge/bridge-server.js';
|
|
27
|
-
import { setSubagentBridge } from '../cli-bridge/bridge-holder.js';
|
|
29
|
+
import { getSubagentBridge, setSubagentBridge } from '../cli-bridge/bridge-holder.js';
|
|
28
30
|
import { delegateCapability, dispatchDelegateSubagent } from './delegate-dispatch.js';
|
|
29
31
|
import { guardNativeSubagentParentTurn, markNativeSubagentParentTurnStarted, setMaxNativeSubagentsPerParent } from './native-subagent-dispatch.js';
|
|
30
32
|
import { containsDelegationCarrier, delegationAdapterIds, rewriteDelegationMessages } from './delegation-mention-rewrite.js';
|
|
@@ -34,11 +36,20 @@ import { hasLegacySessionAdapterHint } from './legacy-session-adapter.js';
|
|
|
34
36
|
import { DSH_NATIVE_SESSION_ADAPTER_ID, formatSessionTranslationOutput, readSessionTranslationMetrics, } from '../../shared/contracts/session-translation.js';
|
|
35
37
|
import { createInteractionTranslation } from '../features/interaction-translation.js';
|
|
36
38
|
import { createSessionTranslationRecovery, SessionTranslationCancelled } from '../features/session-translation-recovery.js';
|
|
39
|
+
import { isSessionTranslationInputEnabled } from '../features/session-translation-service.js';
|
|
37
40
|
import { ASSISTANT_AGENT_PREFIX } from '../../dsh-capabilities/host/assistant-agent-adapter.js';
|
|
38
41
|
import { createDshCapabilityRegistry } from '../../dsh-capabilities/routes.js';
|
|
39
42
|
import { attachmentFileNotice } from '../../shared/attachment-prompts.js';
|
|
40
43
|
import { sessionPromptScope } from '../../dsh-capabilities/host/session-prompt-adapter.js';
|
|
41
44
|
import { createSessionPromptTranslation } from '../features/session-prompt-translation.js';
|
|
45
|
+
import { codexPerformanceProjection } from './codex-performance-projection.js';
|
|
46
|
+
import { grokContextProjection, grokPerformanceProjection } from './grok-performance-projection.js';
|
|
47
|
+
import { fromCliProviderId, toCliProviderId } from '../../shared/cli-provider-route.js';
|
|
48
|
+
import { DshAgentTeamAdapter } from '../../dsh-capabilities/host/agent-team-adapter.js';
|
|
49
|
+
import { CodingNsTeamDispatcher } from '../cli-bridge/team-dispatch.js';
|
|
50
|
+
import { createAgentTeamTool } from '../cli-bridge/team-tool.js';
|
|
51
|
+
import { TeamInputTracker, isTeamInputMessage, pendingPeerInput } from './team-input.js';
|
|
52
|
+
import { withTeamSupport } from '../cli-bridge/team-adapters.js';
|
|
42
53
|
export function createCliAdaptersFeature(options = {}) {
|
|
43
54
|
return {
|
|
44
55
|
descriptor: {
|
|
@@ -47,7 +58,12 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
47
58
|
enabledByDefault: true,
|
|
48
59
|
dependencies: [],
|
|
49
60
|
runtime: 'host',
|
|
50
|
-
requires: [
|
|
61
|
+
requires: [
|
|
62
|
+
{ capability: 'agent-team.external-member', required: false, fallback: 'degrade' },
|
|
63
|
+
{ capability: 'agent-team.external-lead', required: false, fallback: 'degrade' },
|
|
64
|
+
{ capability: 'session.external-model-selection', required: false, fallback: 'degrade' },
|
|
65
|
+
{ capability: 'session.external-performance', required: false, fallback: 'degrade' },
|
|
66
|
+
],
|
|
51
67
|
},
|
|
52
68
|
async start(context) {
|
|
53
69
|
const lifetime = new AbortController();
|
|
@@ -63,6 +79,15 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
63
79
|
const sessionStore = options.registry?.sessionRecords
|
|
64
80
|
?? new CodingNsCliSessionStore(context.services.settings === undefined ? {} : { settings: context.services.settings });
|
|
65
81
|
const nativeSessions = context.services.nativeSessions;
|
|
82
|
+
if (context.services.dshContext !== undefined && context.services.dshVersion !== undefined) {
|
|
83
|
+
const performance = createDshCapabilityRegistry(context.services.dshVersion, 'host', context.services.dshContext)
|
|
84
|
+
.getProfile(context.services.dshContext).capabilities.get('session.external-performance')?.value;
|
|
85
|
+
if (performance !== undefined) {
|
|
86
|
+
for (const projection of [codexPerformanceProjection, grokPerformanceProjection, grokContextProjection]) {
|
|
87
|
+
context.resources.add(performance.install(projection));
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
66
91
|
const translation = context.services.sessionTranslation;
|
|
67
92
|
// 启动只恢复持久化索引;旧会话在打开时迁移,禁止在首屏扫描全部历史。
|
|
68
93
|
const registry = options.registry ?? new CodingNsCliAdapterRegistry([
|
|
@@ -90,6 +115,45 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
90
115
|
...(context.services.nativeSessions === undefined ? {} : { nativeSessions: context.services.nativeSessions }),
|
|
91
116
|
});
|
|
92
117
|
setAdapterRegistry(registry);
|
|
118
|
+
const teamInputs = new TeamInputTracker();
|
|
119
|
+
context.resources.add(() => teamInputs.clear());
|
|
120
|
+
let teamAdapter;
|
|
121
|
+
const teamDispatcher = new CodingNsTeamDispatcher({
|
|
122
|
+
adapter: () => teamAdapter,
|
|
123
|
+
registry,
|
|
124
|
+
enabled: () => !lifetime.signal.aborted && normalizeSubagentBridgeSettings(context.services.settings?.get().subagentBridge).enabled,
|
|
125
|
+
});
|
|
126
|
+
const versionSupported = context.services.dshVersion !== undefined && !createDshCapabilityRegistry(context.services.dshVersion, 'host', {}).getProfile({}).diagnostics.some(item => item.capability === 'agent-team.external-member' && item.code === 'CAPABILITY_VERSION_UNSUPPORTED');
|
|
127
|
+
const teamCatalog = (catalog) => withTeamSupport(catalog, !versionSupported ? 'version' : !normalizeSubagentBridgeSettings(context.services.settings?.get().subagentBridge).enabled ? 'disabled' : !teamAdapter ? 'profile' : undefined, teamAdapter?.supportsLead);
|
|
128
|
+
const dshContext = context.services.dshContext;
|
|
129
|
+
if (dshContext?.inject && context.services.dshVersion) {
|
|
130
|
+
const teamScope = dshContext.inject(['agentTeams', 'agents', 'subagents', 'tools'], scoped => {
|
|
131
|
+
const capability = createDshCapabilityRegistry(context.services.dshVersion, 'host', scoped).getProfile(scoped).capabilities.get('agent-team.external-member');
|
|
132
|
+
if (capability?.status !== 'ready')
|
|
133
|
+
return;
|
|
134
|
+
const adapter = capability.value;
|
|
135
|
+
teamAdapter = adapter;
|
|
136
|
+
const tools = scoped.get('tools');
|
|
137
|
+
const unregister = tools.register(createAgentTeamTool(teamDispatcher));
|
|
138
|
+
scoped.effect(() => () => {
|
|
139
|
+
adapter.dispose();
|
|
140
|
+
if (teamAdapter === adapter)
|
|
141
|
+
teamAdapter = undefined;
|
|
142
|
+
if (typeof unregister === 'function')
|
|
143
|
+
unregister();
|
|
144
|
+
}, 'CodingNS native Team bridge');
|
|
145
|
+
});
|
|
146
|
+
context.resources.add(() => teamScope.dispose());
|
|
147
|
+
}
|
|
148
|
+
if (dshContext?.on) {
|
|
149
|
+
const stopCreated = dshContext.on('agent/created', ((payload) => {
|
|
150
|
+
const agent = asRecord(payload)?.agent;
|
|
151
|
+
if (agent && typeof agent.id === 'string')
|
|
152
|
+
teamDispatcher.initializeNativeChild(agent);
|
|
153
|
+
}), { global: true });
|
|
154
|
+
if (typeof stopCreated === 'function')
|
|
155
|
+
context.resources.add(stopCreated);
|
|
156
|
+
}
|
|
93
157
|
context.resources.add(() => {
|
|
94
158
|
if (registry === undefined)
|
|
95
159
|
return;
|
|
@@ -97,9 +161,9 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
97
161
|
});
|
|
98
162
|
registry.applyEnabledSettings(context.services.settings?.get().agentAdapters);
|
|
99
163
|
const virtualProviders = createDshVirtualProviderRegistration(context.services.dshContext);
|
|
100
|
-
virtualProviders?.setProviders(registry.enabledAdapterIds());
|
|
101
164
|
if (virtualProviders !== undefined)
|
|
102
165
|
context.resources.add(() => virtualProviders.dispose());
|
|
166
|
+
virtualProviders?.setProviders(registry.enabledAdapterIds());
|
|
103
167
|
if (context.services.dshContext !== undefined && context.services.dshVersion !== undefined) {
|
|
104
168
|
const selection = createDshCapabilityRegistry(context.services.dshVersion, 'host', context.services.dshContext)
|
|
105
169
|
.getProfile(context.services.dshContext).capabilities.get('session.external-model-selection')
|
|
@@ -107,12 +171,20 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
107
171
|
if (selection !== undefined)
|
|
108
172
|
context.resources.add(selection.install((sessionId) => {
|
|
109
173
|
const config = registry.getSession(sessionId);
|
|
174
|
+
if (config.adapterId === 'dsh' && config.teamId && config.providerId && config.modelId)
|
|
175
|
+
return {
|
|
176
|
+
provider: config.providerId, model: config.modelId, ...(config.effortId ? { reasoningEffort: config.effortId } : {}),
|
|
177
|
+
};
|
|
110
178
|
if (config.adapterId === 'dsh' || !registry.isEnabled(config.adapterId))
|
|
111
179
|
return undefined;
|
|
112
|
-
return { provider: config.adapterId, model: config.modelId?.trim() || 'provider-default' };
|
|
180
|
+
return { provider: toCliProviderId(config.adapterId), model: config.modelId?.trim() || 'provider-default' };
|
|
113
181
|
}));
|
|
114
182
|
}
|
|
115
183
|
registry.warmCatalog();
|
|
184
|
+
const management = new CliManagementService(registry);
|
|
185
|
+
context.resources.add(() => management.dispose());
|
|
186
|
+
const updates = new CliUpdateCheckService(options.updateCheck);
|
|
187
|
+
context.resources.add(() => updates.dispose());
|
|
116
188
|
// 外部适配器没有经过 DSH 原生 Agent Loop,必须把同一套运行状态投影给
|
|
117
189
|
// subagentCatalog。这里集中去重,避免 llm/stream、原生 session/event 和
|
|
118
190
|
// agent/status 同时到达时反复刷新同一个子 Agent。
|
|
@@ -166,17 +238,23 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
166
238
|
if (adapter !== undefined)
|
|
167
239
|
context.resources.add(adapter.install((assembly, scope) => promptTranslation.translateAssembly(assembly, scope)));
|
|
168
240
|
}
|
|
169
|
-
registerDelegationAgentHooks(context.services.dshContext, registry, context.resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions);
|
|
241
|
+
registerDelegationAgentHooks(context.services.dshContext, registry, context.resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions, teamInputs);
|
|
170
242
|
const interactionTranslation = createInteractionTranslation(translation, sessionId => registry.getSession(sessionId));
|
|
171
243
|
context.resources.add(() => interactionTranslation.dispose());
|
|
172
244
|
context.resources.add(context.services.rpc.register('cli', (action, payload, rpcContext) => {
|
|
173
245
|
const rpcSignal = asRecord(rpcContext)?.signal;
|
|
174
246
|
const signal = isAbortSignal(rpcSignal) ? rpcSignal : undefined;
|
|
175
247
|
switch (action) {
|
|
176
|
-
case '
|
|
248
|
+
case 'management/plan':
|
|
249
|
+
case 'management/start':
|
|
250
|
+
case 'management/status':
|
|
251
|
+
case 'management/cancel': return management.rpc(action, payload);
|
|
252
|
+
case 'catalog': return registry.catalog().then(catalog => updates.catalog(teamCatalog(catalog)));
|
|
177
253
|
case 'catalog/refresh': return registry.refreshCatalog(asRecord(payload)?.adapterId === undefined ? undefined : readAdapterId(payload)).then((catalog) => {
|
|
178
254
|
subscriptions = buildSubscriptions(context.services.settings?.get());
|
|
179
|
-
return
|
|
255
|
+
return asRecord(payload)?.checkUpdates === true
|
|
256
|
+
? updates.refresh(teamCatalog(catalog), asRecord(payload)?.adapterId)
|
|
257
|
+
: updates.catalog(teamCatalog(catalog));
|
|
180
258
|
});
|
|
181
259
|
case 'models': {
|
|
182
260
|
const adapterId = readAdapterId(payload);
|
|
@@ -276,6 +354,8 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
276
354
|
try {
|
|
277
355
|
const agents = readOptionalContextService(context.services.dshContext, 'agents');
|
|
278
356
|
const server = await startSubagentBridgeServer({
|
|
357
|
+
teamAccess: (sessionId) => teamDispatcher.access(sessionId),
|
|
358
|
+
teamDispatch: (sessionId, input, signal) => teamDispatcher.dispatch(sessionId, input, signal),
|
|
279
359
|
dispatch: (request) => dispatchBridgeSubagent(request, {
|
|
280
360
|
agents: agents,
|
|
281
361
|
nativeSessions: context.services.nativeSessions,
|
|
@@ -314,7 +394,7 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
314
394
|
virtualProviders?.setProviders(registry.enabledAdapterIds());
|
|
315
395
|
registry.syncPreferences(next.agentAdapterPreferences);
|
|
316
396
|
sessionStore.sync(next.cliSessions);
|
|
317
|
-
translationRecovery.cancelDisabled(next.sessionTranslation
|
|
397
|
+
translationRecovery.cancelDisabled(next.sessionTranslation);
|
|
318
398
|
const nextSubscriptionSettings = JSON.stringify(next.subscriptionUsage ?? null);
|
|
319
399
|
if (nextSubscriptionSettings !== subscriptionSettings) {
|
|
320
400
|
subscriptionSettings = nextSubscriptionSettings;
|
|
@@ -373,7 +453,7 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
373
453
|
}
|
|
374
454
|
else if (sessionId !== '')
|
|
375
455
|
clearDelegationAuthorization(sessionId);
|
|
376
|
-
const selectedExternalAdapter = selectExternalAdapter(dshSelection.providerId, inferMessageAdapter(messages), registry);
|
|
456
|
+
const selectedExternalAdapter = storedConfig.adapterId === 'dsh' && storedConfig.teamId ? undefined : selectExternalAdapter(fromCliProviderId(dshSelection.providerId), inferMessageAdapter(messages), registry);
|
|
377
457
|
// DSH 的 modelSelection 只描述 DSH 自己那条模型路由(例如 glor/deepseek)。
|
|
378
458
|
// 只有它明确指向即将接管的外部适配器时,model/effort 才属于该适配器;
|
|
379
459
|
// 当适配器是从会话历史推断出来的(fork 子会话继承父会话的外部消息,而
|
|
@@ -381,7 +461,7 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
381
461
|
// 写进外部 Agent——Codex 会用它 thread/start 并直接 404,整个会话从此
|
|
382
462
|
// 无法继续。此时必须留空,由适配器自己的偏好决定模型。
|
|
383
463
|
const selectionOwnedByAdapter = selectedExternalAdapter !== undefined
|
|
384
|
-
&& dshSelection.providerId === selectedExternalAdapter;
|
|
464
|
+
&& (fromCliProviderId(dshSelection.providerId) ?? dshSelection.providerId) === selectedExternalAdapter;
|
|
385
465
|
let config = storedConfig.adapterId === 'dsh' && selectedExternalAdapter !== undefined
|
|
386
466
|
? {
|
|
387
467
|
adapterId: selectedExternalAdapter,
|
|
@@ -395,6 +475,9 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
395
475
|
if (sessionId !== '' && storedConfig.adapterId === 'dsh' && selectedExternalAdapter !== undefined) {
|
|
396
476
|
config = registry.setSession(sessionId, config);
|
|
397
477
|
}
|
|
478
|
+
if (config.teamId && !teamDispatcher.identity(sessionId)) {
|
|
479
|
+
throw Object.assign(new Error('The native Team identity is unavailable. Restore its Team profile and adapter before continuing.'), { code: 'TEAM_SERVICE_UNAVAILABLE' });
|
|
480
|
+
}
|
|
398
481
|
if (config.adapterId === 'dsh') {
|
|
399
482
|
const selection = dshSelection;
|
|
400
483
|
if (sessionId !== '' && (selection.modelId !== undefined || selection.effortId !== undefined)) {
|
|
@@ -416,13 +499,13 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
416
499
|
return;
|
|
417
500
|
}
|
|
418
501
|
const cwd = resolveSessionCwd(context.services.nativeSessions, sessionId, value);
|
|
419
|
-
const turnInput = extractTurnInput(messages, context.services.dshContext);
|
|
502
|
+
const turnInput = extractTurnInput(messages, context.services.dshContext, teamInputs.take(sessionId, messages));
|
|
420
503
|
const turnOptions = readCliTurnOptions(value);
|
|
421
504
|
const runtimeEnv = readCliRuntimeEnv(value);
|
|
422
505
|
const requestSignal = isAbortSignal(value?.signal)
|
|
423
506
|
? AbortSignal.any([value.signal, lifetime.signal])
|
|
424
507
|
: lifetime.signal;
|
|
425
|
-
const translationLanguage = translation?.enabled && translation.
|
|
508
|
+
const translationLanguage = translation?.enabled && isSessionTranslationInputEnabled(translation, config.adapterId) && config.translationEnabled === true ? readInputTargetLanguage(translation) : undefined;
|
|
426
509
|
let translatedPrompt = turnInput.translationPrompt;
|
|
427
510
|
if (turnInput.translatePrompt && turnInput.translationPrompt.trim() !== '' && translationLanguage !== undefined) {
|
|
428
511
|
try {
|
|
@@ -449,6 +532,7 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
449
532
|
sessionId,
|
|
450
533
|
messages: turnInput.messages,
|
|
451
534
|
prompt,
|
|
535
|
+
...(turnInput.peerInput ? { peerInput: true } : {}),
|
|
452
536
|
...(translationLanguage === undefined ? {} : { translationLanguage }),
|
|
453
537
|
...(turnInput.attachments.length === 0 ? {} : { attachments: turnInput.attachments }),
|
|
454
538
|
...(permission === undefined ? {} : { permission }),
|
|
@@ -548,6 +632,8 @@ export function createCliAdaptersFeature(options = {}) {
|
|
|
548
632
|
sessionStore.dispose();
|
|
549
633
|
// Close native interaction cards before unloading their provider transports.
|
|
550
634
|
lifetime.abort();
|
|
635
|
+
updates.dispose();
|
|
636
|
+
await management.dispose();
|
|
551
637
|
await registry.dispose();
|
|
552
638
|
await sessionStore.flush();
|
|
553
639
|
setAdapterRegistry(undefined);
|
|
@@ -602,7 +688,7 @@ function createExternalSessionStatusPublisher(events, registry, sessionStore) {
|
|
|
602
688
|
* `messages`,会直接抛出只读属性异常。`agent/pre-step` 返回的新消息保留用户原文,并把
|
|
603
689
|
* 译文写入 source 元数据;外部适配器再据此构造发给 Agent 的译文。
|
|
604
690
|
*/
|
|
605
|
-
function registerDelegationAgentHooks(dshContext, registry, resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions) {
|
|
691
|
+
function registerDelegationAgentHooks(dshContext, registry, resources, publishExternalStatus, translation, translationRecovery, promptTranslation, nativeSessions, teamInputs) {
|
|
606
692
|
if (dshContext === undefined || typeof dshContext.on !== 'function')
|
|
607
693
|
return;
|
|
608
694
|
const disposers = [];
|
|
@@ -630,10 +716,15 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
630
716
|
catch {
|
|
631
717
|
return config;
|
|
632
718
|
}
|
|
719
|
+
if (session.adapterId === 'dsh' && session.teamId && session.providerId && session.modelId) {
|
|
720
|
+
const { reasoningEffort: _effort, ...nativeConfig } = config;
|
|
721
|
+
return { ...nativeConfig, provider: session.providerId, model: session.modelId, ...(session.effortId ? { reasoningEffort: session.effortId } : {}) };
|
|
722
|
+
}
|
|
723
|
+
const providerAdapter = fromCliProviderId(config.provider);
|
|
633
724
|
const configuredAdapter = session.adapterId !== 'dsh' && registry.isEnabled(session.adapterId)
|
|
634
725
|
? session.adapterId
|
|
635
|
-
:
|
|
636
|
-
?
|
|
726
|
+
: providerAdapter !== undefined && registry.isEnabled(providerAdapter)
|
|
727
|
+
? providerAdapter
|
|
637
728
|
: undefined;
|
|
638
729
|
if (configuredAdapter === undefined)
|
|
639
730
|
return config;
|
|
@@ -649,7 +740,7 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
649
740
|
// UNSUPPORTED_REASONING_EFFORT 拒绝整轮;外部 Agent 的思考强度由适配器自己的
|
|
650
741
|
// effortId 偏好驱动,因此这里必须丢弃继承值,只改写 provider/model。
|
|
651
742
|
const { reasoningEffort: _inheritedReasoningEffort, ...routeConfig } = config;
|
|
652
|
-
return { ...routeConfig, provider: configuredAdapter, model };
|
|
743
|
+
return { ...routeConfig, provider: toCliProviderId(configuredAdapter), model };
|
|
653
744
|
});
|
|
654
745
|
register('agent/pre-step', async (payload, next) => {
|
|
655
746
|
const record = asRecord(payload);
|
|
@@ -674,8 +765,6 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
674
765
|
return { kind: 'reject' };
|
|
675
766
|
throw error;
|
|
676
767
|
}
|
|
677
|
-
if (translatedInput !== undefined)
|
|
678
|
-
messages = [...translatedInput];
|
|
679
768
|
const decision = await next();
|
|
680
769
|
if (!isEnterPreStepDecision(decision))
|
|
681
770
|
return decision;
|
|
@@ -683,8 +772,9 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
683
772
|
// instructions before the human message, so a positional prefix loses data.
|
|
684
773
|
const incoming = Array.isArray(record?.messages) ? record.messages.filter(isMessage) : [];
|
|
685
774
|
const replaced = new Set();
|
|
775
|
+
const replacements = translatedInput ?? messages;
|
|
686
776
|
const accepted = delegation?.kind === 'rewritten' || translatedInput !== undefined
|
|
687
|
-
? decision.messages.
|
|
777
|
+
? decision.messages.flatMap(message => {
|
|
688
778
|
const index = incoming.findIndex((original, position) => !replaced.has(position) && (original === message || typeof original.id === 'string' && original.id === message.id
|
|
689
779
|
// Legacy callers can return detached messages without durable IDs.
|
|
690
780
|
|| original.id === undefined && message.id === undefined && original.role === message.role
|
|
@@ -692,11 +782,17 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
692
782
|
&& JSON.stringify(original.content) === JSON.stringify(message.content)));
|
|
693
783
|
if (index >= 0)
|
|
694
784
|
replaced.add(index);
|
|
695
|
-
|
|
785
|
+
if (index < 0)
|
|
786
|
+
return [message];
|
|
787
|
+
const replacement = replacements[index];
|
|
788
|
+
return replacement === undefined ? [] : [replacement];
|
|
696
789
|
}) : decision.messages;
|
|
697
790
|
try {
|
|
698
791
|
const scope = sessionPromptScope(record?.agent, isAbortSignal(record?.signal) ? record.signal : undefined);
|
|
699
|
-
|
|
792
|
+
const translated = await promptTranslation.translateMessages(accepted, scope);
|
|
793
|
+
if (registry.getSession(sessionId).adapterId !== 'dsh')
|
|
794
|
+
teamInputs?.accept(sessionId, translated);
|
|
795
|
+
return { ...decision, messages: translated };
|
|
700
796
|
}
|
|
701
797
|
catch (error) {
|
|
702
798
|
if (error instanceof SessionTranslationCancelled || record?.signal?.aborted === true)
|
|
@@ -719,6 +815,8 @@ function registerDelegationAgentHooks(dshContext, registry, resources, publishEx
|
|
|
719
815
|
});
|
|
720
816
|
register('agent/disposed', (payload) => {
|
|
721
817
|
const sessionId = readAgentSessionId(asRecord(payload)?.agent);
|
|
818
|
+
teamInputs?.release(sessionId);
|
|
819
|
+
getSubagentBridge()?.revokeTeamSession?.(sessionId);
|
|
722
820
|
translationRecovery.cancelSession(sessionId);
|
|
723
821
|
// disposed 只代表运行时释放;subagentCatalog 没有删除语义,保留目录项并
|
|
724
822
|
// 把它标成 idle,后续若 DSH 重新激活会再次收到 running。
|
|
@@ -857,11 +955,11 @@ function isMeaningfulDshChunk(value) {
|
|
|
857
955
|
const record = asRecord(value);
|
|
858
956
|
if (record === null)
|
|
859
957
|
return false;
|
|
860
|
-
if (record.type === 'text-delta' || record.type === 'reasoning-delta' || record.type === 'usage' || record.type === 'tool-call' || record.type === 'tool-result')
|
|
958
|
+
if (record.type === 'text-delta' || record.type === 'reasoning-delta' || record.type === 'usage' || record.type === 'tool-call-delta' || record.type === 'tool-call' || record.type === 'tool-result')
|
|
861
959
|
return true;
|
|
862
960
|
if (record.type === 'block-end') {
|
|
863
961
|
const block = asRecord(record.block);
|
|
864
|
-
return typeof block?.text === 'string' && block.text !== '';
|
|
962
|
+
return block?.type === 'tool-call' || block?.type === 'tool-result' || typeof block?.text === 'string' && block.text !== '';
|
|
865
963
|
}
|
|
866
964
|
return false;
|
|
867
965
|
}
|
|
@@ -1061,13 +1159,14 @@ function selectExternalAdapter(selectedProvider, messageAdapter, registry) {
|
|
|
1061
1159
|
function inferMessageAdapter(messages) {
|
|
1062
1160
|
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
1063
1161
|
const source = asRecord(messages[index].source);
|
|
1064
|
-
// 旧会话和 DSH 原生投影的 source 形状不完全一致;只要是模型消息就读取
|
|
1065
|
-
// provider,最终仍由 selectExternalAdapter 校验是否为已启用外部适配器。
|
|
1066
1162
|
if (source?.kind !== 'model')
|
|
1067
1163
|
continue;
|
|
1068
|
-
const provider = source.provider;
|
|
1069
|
-
|
|
1070
|
-
|
|
1164
|
+
const provider = typeof source.provider === 'string' ? source.provider.trim() : undefined;
|
|
1165
|
+
// Legacy raw providers need explicit plugin metadata; native API brands can
|
|
1166
|
+
// have the same names as CLI adapters. The latest model source is decisive.
|
|
1167
|
+
return fromCliProviderId(provider)
|
|
1168
|
+
?? (typeof source.adapterId === 'string' ? source.adapterId : undefined)
|
|
1169
|
+
?? (source.plugin === 'codingns4dsh' ? provider : undefined);
|
|
1071
1170
|
}
|
|
1072
1171
|
return undefined;
|
|
1073
1172
|
}
|
|
@@ -1105,15 +1204,36 @@ async function translateSteerPrompt(translationRecovery, registry, sessionId, pr
|
|
|
1105
1204
|
* 记录在 source 元数据中供 Client 详情按钮读取。外部 CLI 边界也会移除该元数据。
|
|
1106
1205
|
*/
|
|
1107
1206
|
async function translatePreStepInput(translation, translationRecovery, registry, sessionId, messages, dshContext, signal, nativeSession) {
|
|
1108
|
-
if (translation === undefined || !translation.enabled ||
|
|
1207
|
+
if (translation === undefined || !translation.enabled || sessionId.trim() === '')
|
|
1109
1208
|
return undefined;
|
|
1209
|
+
if (messages.some(isTeamInputMessage)) {
|
|
1210
|
+
const next = [];
|
|
1211
|
+
for (const message of messages) {
|
|
1212
|
+
// Team protocol text keeps its sender and machine-owned body. Human
|
|
1213
|
+
// messages accepted at the same boundary still use submission recovery.
|
|
1214
|
+
try {
|
|
1215
|
+
const translated = isHumanUserMessage(message)
|
|
1216
|
+
? await translatePreStepInput(translation, translationRecovery, registry, sessionId, [message], dshContext, signal, nativeSession)
|
|
1217
|
+
: undefined;
|
|
1218
|
+
next.push(translated?.[0] ?? message);
|
|
1219
|
+
}
|
|
1220
|
+
catch (error) {
|
|
1221
|
+
if (!(error instanceof SessionTranslationCancelled) || signal?.aborted)
|
|
1222
|
+
throw error;
|
|
1223
|
+
// Cancelling one submission does not cancel independently accepted
|
|
1224
|
+
// Team work. Keep the original positions until pre-step producers merge.
|
|
1225
|
+
next.push(undefined);
|
|
1226
|
+
}
|
|
1227
|
+
}
|
|
1228
|
+
return next.some((message, index) => message !== messages[index]) ? next : undefined;
|
|
1229
|
+
}
|
|
1110
1230
|
const messageIndex = findLatestHumanMessage(messages);
|
|
1111
1231
|
const current = messageIndex < 0 ? undefined : messages[messageIndex];
|
|
1112
1232
|
if (current === undefined || readInputTranslation(current.source) !== undefined)
|
|
1113
1233
|
return undefined;
|
|
1114
1234
|
if (nativeSession !== undefined) {
|
|
1115
1235
|
// DSH 原生会话:消息本身就是发给 Provider 的正文,直接替换为译文并把原文留在元数据。
|
|
1116
|
-
if (nativeSession.translationEnabled !== true)
|
|
1236
|
+
if (nativeSession.translationEnabled !== true || !isSessionTranslationInputEnabled(translation, nativeSession.adapterId))
|
|
1117
1237
|
return undefined;
|
|
1118
1238
|
const input = extractTurnInput(messages, dshContext);
|
|
1119
1239
|
if (input.prompt.trim() === '')
|
|
@@ -1147,7 +1267,7 @@ async function translatePreStepInput(translation, translationRecovery, registry,
|
|
|
1147
1267
|
catch {
|
|
1148
1268
|
return undefined;
|
|
1149
1269
|
}
|
|
1150
|
-
if (session.adapterId === 'dsh' || session.translationEnabled !== true)
|
|
1270
|
+
if (session.adapterId === 'dsh' || session.translationEnabled !== true || !isSessionTranslationInputEnabled(translation, session.adapterId))
|
|
1151
1271
|
return undefined;
|
|
1152
1272
|
const input = extractTurnInput(messages, dshContext);
|
|
1153
1273
|
if (input.prompt.trim() === '')
|
|
@@ -1351,7 +1471,16 @@ async function* translateNativeStream(stream, translation, bilingual, signal) {
|
|
|
1351
1471
|
}
|
|
1352
1472
|
}
|
|
1353
1473
|
}
|
|
1354
|
-
function extractTurnInput(messages, dshContext) {
|
|
1474
|
+
function extractTurnInput(messages, dshContext, acceptedPeerInput = pendingPeerInput(messages)) {
|
|
1475
|
+
if (acceptedPeerInput.some(isTeamInputMessage)) {
|
|
1476
|
+
const parts = acceptedPeerInput.map(message => {
|
|
1477
|
+
const part = extractMessageInput(message.content, dshContext);
|
|
1478
|
+
const translated = isHumanUserMessage(message) ? readInputTranslation(message.source) : undefined;
|
|
1479
|
+
return translated ? { ...part, prompt: translated.translated } : part;
|
|
1480
|
+
});
|
|
1481
|
+
const prompt = parts.map(part => part.prompt).filter(text => text.trim() !== '').join('\n\n');
|
|
1482
|
+
return { prompt, peerInput: true, translationPrompt: prompt, untranslatedPrompt: '', attachments: parts.flatMap(part => part.attachments), translatePrompt: false, messages: stripInputTranslationDisplay(messages) };
|
|
1483
|
+
}
|
|
1355
1484
|
for (let index = messages.length - 1; index >= 0; index -= 1) {
|
|
1356
1485
|
const message = messages[index];
|
|
1357
1486
|
if (message !== undefined && isInjectedStepNotice(message)) {
|
|
@@ -1374,9 +1503,10 @@ function extractTurnInput(messages, dshContext) {
|
|
|
1374
1503
|
: messages.filter((_candidate, candidateIndex) => !referenceIndexes.includes(candidateIndex));
|
|
1375
1504
|
const translatedInput = readInputTranslation(message.source);
|
|
1376
1505
|
if (translatedInput !== undefined) {
|
|
1506
|
+
const prompt = [translatedInput.translated, ...referenceText].join('\n\n');
|
|
1377
1507
|
return {
|
|
1378
|
-
prompt
|
|
1379
|
-
translationPrompt:
|
|
1508
|
+
prompt,
|
|
1509
|
+
translationPrompt: prompt,
|
|
1380
1510
|
untranslatedPrompt: '',
|
|
1381
1511
|
attachments: direct.attachments,
|
|
1382
1512
|
translatePrompt: false,
|