@jingyi0605/codingns4dsh 0.2.1-beta.9 → 0.2.1-rc.2
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 +8 -6
- package/README.md +11 -8
- package/assets/provider-icons/magpie.png +0 -0
- 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 +10 -2
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.js +16 -4
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
- package/data/build/dist/client/bundle.js +54516 -35293
- 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 +17 -3
- package/data/build/dist/client/cli-slots.d.ts.map +1 -1
- package/data/build/dist/client/cli-slots.js +300 -41
- package/data/build/dist/client/cli-slots.js.map +1 -1
- package/data/build/dist/client/client.assistant-configuration-view.js +4 -3
- package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -1
- package/data/build/dist/client/client.delegate-command.js +44 -26
- package/data/build/dist/client/client.delegate-command.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 → client.magpie-model-tag.js} +241 -12
- package/data/build/dist/client/client.magpie-model-tag.js.map +1 -0
- package/data/build/dist/client/client.moss-voice-output.js +415 -0
- package/data/build/dist/client/client.moss-voice-output.js.map +1 -0
- package/data/build/dist/client/client.native-workspace-store.js +65 -15
- package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
- package/data/build/dist/client/client.primitives-adapter.js +128 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
- package/data/build/dist/client/client.react-dom.js +0 -404
- package/data/build/dist/client/client.react-dom.js.map +1 -1
- package/data/build/dist/client/client.session-translation.js +121 -2
- package/data/build/dist/client/client.session-translation.js.map +1 -1
- package/data/build/dist/client/client.transport.js +738 -57
- package/data/build/dist/client/client.transport.js.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts +11 -0
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -0
- package/data/build/dist/client/conversation-translation-settings.js +54 -0
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -0
- package/data/build/dist/client/delegate-command.d.ts.map +1 -1
- package/data/build/dist/client/delegate-command.js +36 -7
- package/data/build/dist/client/delegate-command.js.map +1 -1
- package/data/build/dist/client/desktop-assistant.js +1202 -494
- 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 +207 -112
- 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 +18 -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/lan-access-panel.d.ts.map +1 -1
- package/data/build/dist/client/features/lan-access-panel.js +1 -0
- package/data/build/dist/client/features/lan-access-panel.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 +6 -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/session-translation.d.ts.map +1 -1
- package/data/build/dist/client/features/session-translation.js +50 -49
- package/data/build/dist/client/features/session-translation.js.map +1 -1
- 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/file-management-dom.d.ts +20 -1
- package/data/build/dist/client/file-management-dom.d.ts.map +1 -1
- package/data/build/dist/client/file-management-dom.js +94 -18
- package/data/build/dist/client/file-management-dom.js.map +1 -1
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts +27 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.d.ts.map +1 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js +101 -0
- package/data/build/dist/client/file-viewer-copy-path-menu.js.map +1 -0
- package/data/build/dist/client/git-management-settings.d.ts +4 -0
- package/data/build/dist/client/git-management-settings.d.ts.map +1 -0
- package/data/build/dist/client/git-management-settings.js +73 -0
- package/data/build/dist/client/git-management-settings.js.map +1 -0
- package/data/build/dist/client/git-management.d.ts +2 -1
- package/data/build/dist/client/git-management.d.ts.map +1 -1
- package/data/build/dist/client/git-management.js +55 -34
- 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 +22 -2
- 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 +8 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
- package/data/build/dist/client/locales/git.d.ts.map +1 -1
- package/data/build/dist/client/locales/git.js +30 -2
- package/data/build/dist/client/locales/git.js.map +1 -1
- package/data/build/dist/client/locales/panels.d.ts.map +1 -1
- package/data/build/dist/client/locales/panels.js +103 -11
- package/data/build/dist/client/locales/panels.js.map +1 -1
- package/data/build/dist/client/locales/peerHost.d.ts.map +1 -1
- package/data/build/dist/client/locales/peerHost.js +2 -0
- package/data/build/dist/client/locales/peerHost.js.map +1 -1
- package/data/build/dist/client/locales/quickApps.d.ts +136 -0
- package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
- package/data/build/dist/client/locales/quickApps.js +162 -0
- package/data/build/dist/client/locales/quickApps.js.map +1 -0
- package/data/build/dist/client/locales/usage.d.ts.map +1 -1
- package/data/build/dist/client/locales/usage.js +98 -0
- package/data/build/dist/client/locales/usage.js.map +1 -1
- package/data/build/dist/client/magpie-model-tag.d.ts +8 -0
- package/data/build/dist/client/magpie-model-tag.d.ts.map +1 -0
- package/data/build/dist/client/magpie-model-tag.js +50 -0
- package/data/build/dist/client/magpie-model-tag.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/model-catalog-cache.d.ts.map +1 -1
- package/data/build/dist/client/model-catalog-cache.js +66 -12
- package/data/build/dist/client/model-catalog-cache.js.map +1 -1
- package/data/build/dist/client/model-priority-pool.d.ts +23 -0
- package/data/build/dist/client/model-priority-pool.d.ts.map +1 -0
- package/data/build/dist/client/model-priority-pool.js +245 -0
- package/data/build/dist/client/model-priority-pool.js.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts +13 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.js +159 -0
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -0
- package/data/build/dist/client/native-translation-default.d.ts +6 -0
- package/data/build/dist/client/native-translation-default.d.ts.map +1 -0
- package/data/build/dist/client/native-translation-default.js +30 -0
- package/data/build/dist/client/native-translation-default.js.map +1 -0
- package/data/build/dist/client/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 +267 -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 +47 -0
- package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
- package/data/build/dist/client/quick-apps/rail-preference.d.ts +5 -0
- package/data/build/dist/client/quick-apps/rail-preference.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/rail-preference.js +19 -0
- package/data/build/dist/client/quick-apps/rail-preference.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 +153 -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 +68 -2
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
- package/data/build/dist/client/session-translation-chat.js +297 -109
- package/data/build/dist/client/session-translation-chat.js.map +1 -1
- package/data/build/dist/client/session-translation-interactions.d.ts +31 -0
- package/data/build/dist/client/session-translation-interactions.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-interactions.js +158 -0
- package/data/build/dist/client/session-translation-interactions.js.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts +8 -0
- package/data/build/dist/client/session-translation-pending-dom.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-pending-dom.js +58 -0
- package/data/build/dist/client/session-translation-pending-dom.js.map +1 -0
- package/data/build/dist/client/session-translation-retry.d.ts +16 -0
- package/data/build/dist/client/session-translation-retry.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-retry.js +66 -0
- package/data/build/dist/client/session-translation-retry.js.map +1 -0
- package/data/build/dist/client/session-translation-rules.d.ts +13 -0
- package/data/build/dist/client/session-translation-rules.d.ts.map +1 -0
- package/data/build/dist/client/session-translation-rules.js +58 -0
- package/data/build/dist/client/session-translation-rules.js.map +1 -0
- package/data/build/dist/client/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 +276 -276
- package/data/build/dist/client/subscription-slot.d.ts +6 -2
- package/data/build/dist/client/subscription-slot.d.ts.map +1 -1
- package/data/build/dist/client/subscription-slot.js +373 -21
- package/data/build/dist/client/subscription-slot.js.map +1 -1
- 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-archive-dom.d.ts +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-archive-dom.js +68 -8
- package/data/build/dist/client/workspace-session-archive-dom.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 +43 -10
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js +71 -0
- package/data/build/dist/dsh-capabilities/client/composer-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts +30 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js +93 -0
- package/data/build/dist/dsh-capabilities/client/interaction-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts +12 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js +181 -0
- package/data/build/dist/dsh-capabilities/client/interaction-text-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts +19 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js +39 -0
- package/data/build/dist/dsh-capabilities/client/message-presentation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.d.ts +3 -0
- package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.js +27 -0
- package/data/build/dist/dsh-capabilities/client/peer-host-attachment-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +36 -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 +88 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts +20 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js +65 -0
- package/data/build/dist/dsh-capabilities/client/question-history-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/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 +9 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +75 -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/client/slot-presentation-mirror.d.ts +32 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js +90 -0
- package/data/build/dist/dsh-capabilities/client/slot-presentation-mirror.js.map +1 -0
- package/data/build/dist/dsh-capabilities/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/connection-peer-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js +34 -0
- package/data/build/dist/dsh-capabilities/host/connection-peer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-adapter.js +11 -0
- package/data/build/dist/dsh-capabilities/host/native-dispatch-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-activation-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js +37 -0
- package/data/build/dist/dsh-capabilities/host/session-activation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts +17 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js +45 -0
- package/data/build/dist/dsh-capabilities/host/session-model-selection-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts +28 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-adapter.js +31 -0
- package/data/build/dist/dsh-capabilities/host/session-prompt-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 +22 -5
- 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 +47 -3
- 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/antigravity-driver.js +1 -1
- package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +4 -3
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/attachment-utils.js +9 -8
- package/data/build/dist/host/cli-adapters/attachment-utils.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 +184 -21
- 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 +126 -21
- 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 +4 -1
- 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 +137 -25
- 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 +7 -4
- 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/driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +5 -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 +51 -16
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +3 -2
- package/data/build/dist/host/cli-adapters/dsh-tool-history.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 +4 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.js +587 -101
- 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 +5 -3
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +7 -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 +458 -59
- 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/kimi-driver.js +2 -2
- package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -1
- 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/magpie-session-routing.d.ts +9 -0
- package/data/build/dist/host/cli-adapters/magpie-session-routing.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/magpie-session-routing.js +90 -0
- package/data/build/dist/host/cli-adapters/magpie-session-routing.js.map +1 -0
- package/data/build/dist/host/cli-adapters/magpie-usage.d.ts +90 -0
- package/data/build/dist/host/cli-adapters/magpie-usage.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/magpie-usage.js +986 -0
- package/data/build/dist/host/cli-adapters/magpie-usage.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
- package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
- package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.js +62 -0
- package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management.js +177 -0
- package/data/build/dist/host/cli-adapters/management.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/mcode-driver.js +12 -5
- 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 +70 -7
- 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 +13 -5
- 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 +6 -3
- 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/opencode-v2-protocol.js +4 -1
- package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/pi-driver.js +45 -11
- package/data/build/dist/host/cli-adapters/pi-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 +141 -51
- 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-descriptions.d.ts +26 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js +30 -0
- package/data/build/dist/host/cli-adapters/subagent-tool-descriptions.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js +7 -6
- 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 +7 -2
- 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 +8 -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 +63 -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 +128 -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/fetch-dispatch.d.ts +23 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js +73 -0
- package/data/build/dist/host/cli-bridge/fetch-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts +14 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.js +69 -7
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +1 -1
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +102 -7
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js +9 -0
- package/data/build/dist/host/cli-bridge/pi-extension-entry.js.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts +52 -0
- package/data/build/dist/host/cli-bridge/pi-extension.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js +311 -0
- package/data/build/dist/host/cli-bridge/pi-extension.js.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts +20 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js +61 -0
- package/data/build/dist/host/cli-bridge/search-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js +23 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +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 +10 -1
- package/data/build/dist/host/features/file-management.js.map +1 -1
- package/data/build/dist/host/features/git-commit-message.d.ts +5 -0
- package/data/build/dist/host/features/git-commit-message.d.ts.map +1 -0
- package/data/build/dist/host/features/git-commit-message.js +66 -0
- package/data/build/dist/host/features/git-commit-message.js.map +1 -0
- package/data/build/dist/host/features/git-management.d.ts +11 -2
- package/data/build/dist/host/features/git-management.d.ts.map +1 -1
- package/data/build/dist/host/features/git-management.js +61 -7
- package/data/build/dist/host/features/git-management.js.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
- package/data/build/dist/host/features/global-voice-rpc.js +2 -3
- package/data/build/dist/host/features/global-voice-rpc.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/interaction-translation.d.ts +10 -0
- package/data/build/dist/host/features/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/interaction-translation.js +219 -0
- package/data/build/dist/host/features/interaction-translation.js.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js +3 -3
- 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 +13 -6
- 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 +10 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.js +227 -0
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts +22 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-protection.js +204 -0
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts +21 -0
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-recovery.js +125 -0
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts +16 -0
- package/data/build/dist/host/features/session-translation-runtime.d.ts.map +1 -0
- package/data/build/dist/host/features/session-translation-runtime.js +85 -0
- package/data/build/dist/host/features/session-translation-runtime.js.map +1 -0
- package/data/build/dist/host/features/session-translation-service.d.ts +19 -4
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-service.js +249 -210
- package/data/build/dist/host/features/session-translation-service.js.map +1 -1
- package/data/build/dist/host/features/session-translation.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation.js +6 -3
- package/data/build/dist/host/features/session-translation.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 +32 -39
- package/data/build/dist/host/index.js.map +1 -1
- package/data/build/dist/host/lan-access-dsh.d.ts +14 -2
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/lan-access-dsh.js +81 -13
- package/data/build/dist/host/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +2 -2
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +10 -9
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts +3 -3
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.d.ts.map +1 -1
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.js +26 -14
- package/data/build/dist/host/modules/peer-host/peer-host-native-streams.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/egress.d.ts +35 -0
- package/data/build/dist/host/modules/quick-apps/egress.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/egress.js +244 -0
- package/data/build/dist/host/modules/quick-apps/egress.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 +195 -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 +213 -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 +7 -1
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
- package/data/build/dist/host/native-session-bridge.js +10 -15
- 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 +23 -12
- package/data/build/dist/host/rpc.js.map +1 -1
- package/data/build/dist/host/session-changes.d.ts.map +1 -1
- package/data/build/dist/host/session-changes.js +6 -2
- package/data/build/dist/host/session-changes.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 +31 -2
- 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/host/workspace-root.d.ts +14 -0
- package/data/build/dist/host/workspace-root.d.ts.map +1 -0
- package/data/build/dist/host/workspace-root.js +99 -0
- package/data/build/dist/host/workspace-root.js.map +1 -0
- package/data/build/dist/shared/attachment-prompts.d.ts +11 -0
- package/data/build/dist/shared/attachment-prompts.d.ts.map +1 -0
- package/data/build/dist/shared/attachment-prompts.js +17 -0
- package/data/build/dist/shared/attachment-prompts.js.map +1 -0
- package/data/build/dist/shared/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 +62 -1
- 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 +7 -1
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.js +3 -0
- 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/git.d.ts +17 -0
- package/data/build/dist/shared/contracts/git.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/git.js +27 -1
- package/data/build/dist/shared/contracts/git.js.map +1 -1
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts +32 -0
- package/data/build/dist/shared/contracts/interaction-presentation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js +2 -0
- package/data/build/dist/shared/contracts/interaction-presentation.js.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts +53 -0
- package/data/build/dist/shared/contracts/interaction-translation.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/interaction-translation.js +44 -0
- package/data/build/dist/shared/contracts/interaction-translation.js.map +1 -0
- package/data/build/dist/shared/contracts/quick-apps.d.ts +70 -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 +82 -9
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/session-translation.js +146 -2
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
- package/data/build/dist/shared/contracts/subscription.d.ts +87 -0
- package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/subscription.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/index.d.ts +3 -2
- package/data/build/dist/shared/index.d.ts.map +1 -1
- package/data/build/dist/shared/index.js +3 -2
- package/data/build/dist/shared/index.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/provider-icon-resources.d.ts.map +1 -1
- package/data/build/dist/shared/provider-icon-resources.js +1 -0
- package/data/build/dist/shared/provider-icon-resources.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-network-allow.d.ts +8 -0
- package/data/build/dist/shared/quick-app-network-allow.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-network-allow.js +192 -0
- package/data/build/dist/shared/quick-app-network-allow.js.map +1 -0
- package/data/build/dist/shared/quick-app-network-bootstrap.d.ts +9 -0
- package/data/build/dist/shared/quick-app-network-bootstrap.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-network-bootstrap.js +134 -0
- package/data/build/dist/shared/quick-app-network-bootstrap.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 +189 -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/data/build/dist/shared/translation-indicator.d.ts +26 -0
- package/data/build/dist/shared/translation-indicator.d.ts.map +1 -0
- package/data/build/dist/shared/translation-indicator.js +29 -0
- package/data/build/dist/shared/translation-indicator.js.map +1 -0
- package/package.json +35 -34
- package/profile/README.md +2 -2
- package/profile/package.json +3 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
- package/data/build/dist/client/client.model-catalog-cache.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction-presentation-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/interaction-presentation-adapter.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAClH,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAA8C,MAAM,+BAA+B,CAAA;AAmB3I,MAAM,UAAU,+BAA+B,CAAC,OAAgB;IAC9D,MAAM,KAAK,GAAI,OAA8D,EAAE,KAAK,CAAA;IACpF,OAAO,OAAO,KAAK,EAAE,MAAM,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,OAAO,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,SAAS,KAAK,UAAU,CAAA;AACpK,CAAC;AAED,wEAA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E,CAAC,CAAA;AAClI,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { InteractionTranslationField, InteractionTranslationResult } from '../../shared/contracts/interaction-translation.js';
|
|
2
|
+
export type NativeInteractionTextKind = 'question' | 'todo';
|
|
3
|
+
type TranslationStatus = 'pending' | 'complete' | 'failed';
|
|
4
|
+
/** Keep React's text nodes in place; only their visible value and an owned marker change. */
|
|
5
|
+
export declare function watchNativeInteractionText(root: HTMLElement, kind: NativeInteractionTextKind, onFields: (fields: readonly InteractionTranslationField[]) => void): {
|
|
6
|
+
update(next: InteractionTranslationResult | undefined): void;
|
|
7
|
+
dispose(): void;
|
|
8
|
+
};
|
|
9
|
+
/** Hover reveals the source; the marker cannot focus, select, or submit its parent option. */
|
|
10
|
+
export declare function createTranslationMarker(doc: Document, original: string, status?: TranslationStatus): HTMLElement;
|
|
11
|
+
export {};
|
|
12
|
+
//# sourceMappingURL=interaction-text-dom.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction-text-dom.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/interaction-text-dom.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,2BAA2B,EAAE,4BAA4B,EAAE,MAAM,mDAAmD,CAAA;AAGlI,MAAM,MAAM,yBAAyB,GAAG,UAAU,GAAG,MAAM,CAAA;AAC3D,KAAK,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,QAAQ,CAAA;AAwB1D,6FAA6F;AAC7F,wBAAgB,0BAA0B,CACxC,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,yBAAyB,EAClD,QAAQ,EAAE,CAAC,MAAM,EAAE,SAAS,2BAA2B,EAAE,KAAK,IAAI;iBAwGnD,4BAA4B,GAAG,SAAS;;EAUxD;AAED,8FAA8F;AAC9F,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,GAAE,iBAA8B,GAAG,WAAW,CAyB5H"}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { TRANSLATION_GLYPH_PATHS, TRANSLATION_GLYPH_SIZE, TRANSLATION_PENDING_BADGE_STYLE, TRANSLATION_STATUS_BADGE_STYLE } from '../../shared/translation-indicator.js';
|
|
2
|
+
// Scoped to the inspected rc.2 through alpha.3 fields, never controls or editable drafts.
|
|
3
|
+
const SELECTORS = {
|
|
4
|
+
question: [
|
|
5
|
+
'[data-question-key] h2', '[data-question-key] [class$="_eyebrow"]',
|
|
6
|
+
'[data-question-key] [class$="_optionLabel"]', '[data-question-key] [class$="_description"]',
|
|
7
|
+
'[data-question-key] [class$="_detail"]',
|
|
8
|
+
'[data-plan-review-key] h3', '[data-plan-review-key] [class$="_description"]',
|
|
9
|
+
].join(','),
|
|
10
|
+
todo: '[data-testid="todo-panel"] [class$="_content"]',
|
|
11
|
+
};
|
|
12
|
+
const MARKER = 'data-codingns-translation-marker';
|
|
13
|
+
const EXCLUDED = `code,pre,textarea,input,svg,[contenteditable="true"],[${MARKER}]`;
|
|
14
|
+
/** Keep React's text nodes in place; only their visible value and an owned marker change. */
|
|
15
|
+
export function watchNativeInteractionText(root, kind, onFields) {
|
|
16
|
+
const doc = root.ownerDocument;
|
|
17
|
+
const targets = new Map();
|
|
18
|
+
const markers = new Map();
|
|
19
|
+
let nextKey = 0;
|
|
20
|
+
let result;
|
|
21
|
+
let signature = '';
|
|
22
|
+
let disposed = false;
|
|
23
|
+
const restore = (target) => {
|
|
24
|
+
if (target.node.nodeValue === target.displayed)
|
|
25
|
+
target.node.nodeValue = target.original;
|
|
26
|
+
if (target.option?.getAttribute('aria-label') === target.displayed && target.originalLabel !== undefined) {
|
|
27
|
+
target.option.setAttribute('aria-label', target.originalLabel);
|
|
28
|
+
}
|
|
29
|
+
target.displayed = target.original;
|
|
30
|
+
};
|
|
31
|
+
const apply = (target) => {
|
|
32
|
+
const record = result?.enabled ? result.records[target.key] : undefined;
|
|
33
|
+
if (record === undefined || record.failed || record.original !== target.original || record.translated === target.original || record.translated.trim() === '') {
|
|
34
|
+
restore(target);
|
|
35
|
+
return;
|
|
36
|
+
}
|
|
37
|
+
target.displayed = record.translated;
|
|
38
|
+
target.node.nodeValue = target.displayed;
|
|
39
|
+
if (target.option !== undefined)
|
|
40
|
+
target.option.setAttribute('aria-label', target.displayed);
|
|
41
|
+
};
|
|
42
|
+
const observe = () => observer?.observe(root, { childList: true, subtree: true, characterData: true });
|
|
43
|
+
const scan = () => {
|
|
44
|
+
if (disposed)
|
|
45
|
+
return;
|
|
46
|
+
observer?.disconnect();
|
|
47
|
+
const nodes = new Set();
|
|
48
|
+
const visit = (node) => {
|
|
49
|
+
if (node.nodeType === 3) {
|
|
50
|
+
if (node.nodeValue?.trim())
|
|
51
|
+
nodes.add(node);
|
|
52
|
+
}
|
|
53
|
+
else if (node.nodeType === 1 && !node.matches(EXCLUDED)) {
|
|
54
|
+
for (const child of node.childNodes)
|
|
55
|
+
visit(child);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
for (const field of root.querySelectorAll(SELECTORS[kind]))
|
|
59
|
+
visit(field);
|
|
60
|
+
for (const [node, target] of targets) {
|
|
61
|
+
if (!nodes.has(node)) {
|
|
62
|
+
restore(target);
|
|
63
|
+
targets.delete(node);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
const groups = new Map();
|
|
67
|
+
for (const node of nodes) {
|
|
68
|
+
let target = targets.get(node);
|
|
69
|
+
if (target !== undefined && node.nodeValue !== target.displayed) {
|
|
70
|
+
restore(target);
|
|
71
|
+
targets.delete(node);
|
|
72
|
+
target = undefined;
|
|
73
|
+
}
|
|
74
|
+
if (target === undefined) {
|
|
75
|
+
const original = node.nodeValue ?? '';
|
|
76
|
+
target = { key: `text.${nextKey++}`, node, original, displayed: original };
|
|
77
|
+
const parent = node.parentElement;
|
|
78
|
+
const option = parent?.matches('[class$="_optionLabel"]') ? parent.closest('[role="radio"],[role="checkbox"]') : null;
|
|
79
|
+
const label = option?.getAttribute('aria-label');
|
|
80
|
+
if (option && label !== null && label !== undefined) {
|
|
81
|
+
target.option = option;
|
|
82
|
+
target.originalLabel = label;
|
|
83
|
+
}
|
|
84
|
+
targets.set(node, target);
|
|
85
|
+
}
|
|
86
|
+
const parent = node.parentElement;
|
|
87
|
+
const group = parent?.closest('[role="radio"],[role="checkbox"]')
|
|
88
|
+
?? parent?.closest('[data-question-key],[data-plan-review-key],[data-status]') ?? parent;
|
|
89
|
+
if (group !== null && group !== undefined) {
|
|
90
|
+
const members = groups.get(group) ?? [];
|
|
91
|
+
members.push(target);
|
|
92
|
+
groups.set(group, members);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
const fields = [...targets.values()].map(target => ({ key: target.key, text: target.original }));
|
|
96
|
+
const next = JSON.stringify(fields);
|
|
97
|
+
const changed = signature !== next;
|
|
98
|
+
// Newly mounted pages or changed native text need their own pending indicators.
|
|
99
|
+
if (changed && result?.enabled !== false)
|
|
100
|
+
result = undefined;
|
|
101
|
+
for (const target of targets.values())
|
|
102
|
+
apply(target);
|
|
103
|
+
for (const [group, marker] of markers) {
|
|
104
|
+
if (!groups.has(group) || result?.enabled === false) {
|
|
105
|
+
marker.element.remove();
|
|
106
|
+
markers.delete(group);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
for (const [group, members] of groups) {
|
|
110
|
+
if (result?.enabled === false)
|
|
111
|
+
continue;
|
|
112
|
+
const original = members.map(target => target.original).join('\n');
|
|
113
|
+
const status = result === undefined ? 'pending' : members.some(target => {
|
|
114
|
+
const record = result?.records[target.key];
|
|
115
|
+
return record === undefined || record.failed || record.original !== target.original || record.translated.trim() === '';
|
|
116
|
+
}) ? 'failed' : 'complete';
|
|
117
|
+
let marker = markers.get(group);
|
|
118
|
+
if (marker === undefined || marker.original !== original || marker.status !== status) {
|
|
119
|
+
marker?.element.remove();
|
|
120
|
+
marker = { element: createTranslationMarker(doc, original, status), original, status };
|
|
121
|
+
markers.set(group, marker);
|
|
122
|
+
}
|
|
123
|
+
// Grouping changes only the indicator: each field is still translated independently.
|
|
124
|
+
const last = members[members.length - 1].node;
|
|
125
|
+
if (last.nextSibling !== marker.element)
|
|
126
|
+
last.parentNode?.insertBefore(marker.element, last.nextSibling);
|
|
127
|
+
}
|
|
128
|
+
if (changed) {
|
|
129
|
+
signature = next;
|
|
130
|
+
onFields(fields);
|
|
131
|
+
}
|
|
132
|
+
observe();
|
|
133
|
+
};
|
|
134
|
+
const Observer = doc.defaultView?.MutationObserver;
|
|
135
|
+
const observer = Observer === undefined ? undefined : new Observer(scan);
|
|
136
|
+
scan();
|
|
137
|
+
return {
|
|
138
|
+
update(next) { result = next; scan(); },
|
|
139
|
+
dispose() {
|
|
140
|
+
disposed = true;
|
|
141
|
+
observer?.disconnect();
|
|
142
|
+
for (const target of targets.values())
|
|
143
|
+
restore(target);
|
|
144
|
+
for (const marker of markers.values())
|
|
145
|
+
marker.element.remove();
|
|
146
|
+
markers.clear();
|
|
147
|
+
targets.clear();
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
}
|
|
151
|
+
/** Hover reveals the source; the marker cannot focus, select, or submit its parent option. */
|
|
152
|
+
export function createTranslationMarker(doc, original, status = 'complete') {
|
|
153
|
+
const marker = doc.createElement('span');
|
|
154
|
+
marker.setAttribute(MARKER, '');
|
|
155
|
+
marker.title = original;
|
|
156
|
+
marker.setAttribute('aria-label', original);
|
|
157
|
+
marker.style.cssText = 'position:relative;display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;vertical-align:middle;margin-inline-start:2px;color:var(--dsw-alias-label-tertiary, GrayText);cursor:help;user-select:none;line-height:1';
|
|
158
|
+
const icon = doc.createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
159
|
+
for (const [key, value] of Object.entries({ viewBox: '0 0 24 24', width: String(TRANSLATION_GLYPH_SIZE), height: String(TRANSLATION_GLYPH_SIZE), fill: 'none', stroke: 'currentColor', 'stroke-width': '1.5', 'stroke-linecap': 'round', 'stroke-linejoin': 'round', 'aria-hidden': 'true' }))
|
|
160
|
+
icon.setAttribute(key, value);
|
|
161
|
+
for (const d of TRANSLATION_GLYPH_PATHS) {
|
|
162
|
+
const path = doc.createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
163
|
+
path.setAttribute('d', d);
|
|
164
|
+
icon.append(path);
|
|
165
|
+
}
|
|
166
|
+
marker.append(icon);
|
|
167
|
+
const badge = doc.createElement('span');
|
|
168
|
+
badge.setAttribute('aria-hidden', 'true');
|
|
169
|
+
if (status === 'pending')
|
|
170
|
+
badge.setAttribute('data-codingns-translation-pending', '');
|
|
171
|
+
Object.assign(badge.style, TRANSLATION_STATUS_BADGE_STYLE, {
|
|
172
|
+
background: status === 'failed' ? 'var(--dsw-alias-state-error-primary, #b42318)' : 'var(--dsw-alias-state-success-primary, #16803c)',
|
|
173
|
+
}, status === 'pending' ? TRANSLATION_PENDING_BADGE_STYLE : {});
|
|
174
|
+
badge.textContent = status === 'pending' ? '' : status === 'failed' ? '!' : '✓';
|
|
175
|
+
marker.append(badge);
|
|
176
|
+
const stop = (event) => { event.preventDefault(); event.stopPropagation(); };
|
|
177
|
+
for (const name of ['pointerdown', 'mousedown', 'click', 'dblclick'])
|
|
178
|
+
marker.addEventListener(name, stop);
|
|
179
|
+
return marker;
|
|
180
|
+
}
|
|
181
|
+
//# sourceMappingURL=interaction-text-dom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"interaction-text-dom.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/interaction-text-dom.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,uBAAuB,EAAE,sBAAsB,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,MAAM,uCAAuC,CAAA;AAKxK,0FAA0F;AAC1F,MAAM,SAAS,GAA8C;IAC3D,QAAQ,EAAE;QACR,wBAAwB,EAAE,yCAAyC;QACnE,6CAA6C,EAAE,6CAA6C;QAC5F,wCA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skillLabel: string, actions?: {
|
|
3
|
+
openFile: (...args: any[]) => unknown;
|
|
4
|
+
openSkill: (...args: any[]) => unknown;
|
|
5
|
+
}) => ReactNode;
|
|
6
|
+
export interface MessagePresentation {
|
|
7
|
+
readonly kind: 'legacy' | 'factory';
|
|
8
|
+
mount(register: () => () => void): () => void;
|
|
9
|
+
projectText: ProjectText;
|
|
10
|
+
userContent(owner: any, content: Record<string, unknown>, facts: Record<string, unknown>): ReactNode;
|
|
11
|
+
images(owner: any, props: Record<string, unknown>): ReactNode;
|
|
12
|
+
}
|
|
13
|
+
export declare function supportsLegacyMessagePresentation(context: unknown, exports?: unknown): boolean;
|
|
14
|
+
export declare function supportsFactoryMessagePresentation(context: unknown): boolean;
|
|
15
|
+
export declare function createLegacyMessagePresentation(exports: unknown): MessagePresentation;
|
|
16
|
+
/** Native factories preserve the host's text transforms, reference actions and image authorization. */
|
|
17
|
+
export declare function createFactoryMessagePresentation(context: unknown): MessagePresentation;
|
|
18
|
+
export {};
|
|
19
|
+
//# sourceMappingURL=message-presentation-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-presentation-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/message-presentation-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAEtC,KAAK,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE;IAAE,QAAQ,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAC;IAAC,SAAS,EAAE,CAAC,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,OAAO,CAAA;CAAE,KAAK,SAAS,CAAA;AACrN,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAA;IACnC,KAAK,CAAC,QAAQ,EAAE,MAAM,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;IAC7C,WAAW,EAAE,WAAW,CAAA;IACxB,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;IACpG,MAAM,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAA;CAC9D;AAYD,wBAAgB,iCAAiC,CAAC,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAI9F;AAED,wBAAgB,kCAAkC,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAI5E;AAED,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAQrF;AAED,uGAAuG;AACvG,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,OAAO,GAAG,mBAAmB,CAetF"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
function slotsOf(context) {
|
|
2
|
+
return context?.slots;
|
|
3
|
+
}
|
|
4
|
+
export function supportsLegacyMessagePresentation(context, exports) {
|
|
5
|
+
const slots = slotsOf(context);
|
|
6
|
+
return typeof slots?.inject === 'function' && typeof slots.register === 'function'
|
|
7
|
+
&& typeof exports?.projectUserText === 'function';
|
|
8
|
+
}
|
|
9
|
+
export function supportsFactoryMessagePresentation(context) {
|
|
10
|
+
const slots = slotsOf(context);
|
|
11
|
+
return typeof slots?.inject === 'function' && typeof slots.register === 'function'
|
|
12
|
+
&& typeof slots.registerFactory === 'function';
|
|
13
|
+
}
|
|
14
|
+
export function createLegacyMessagePresentation(exports) {
|
|
15
|
+
return {
|
|
16
|
+
kind: 'legacy',
|
|
17
|
+
mount: register => register(),
|
|
18
|
+
projectText: exports.projectUserText,
|
|
19
|
+
userContent: () => null,
|
|
20
|
+
images: (owner, props) => owner.renderMessageImages(props),
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
/** Native factories preserve the host's text transforms, reference actions and image authorization. */
|
|
24
|
+
export function createFactoryMessagePresentation(context) {
|
|
25
|
+
const slots = slotsOf(context);
|
|
26
|
+
return {
|
|
27
|
+
kind: 'factory',
|
|
28
|
+
// These public child declarations share the native factories' lifetime.
|
|
29
|
+
// SlotRegistry exposes no factory subscription; the image outlet itself
|
|
30
|
+
// reacts to image-factory registration, so it need not delay text rendering.
|
|
31
|
+
mount: register => slots.inject('conversation.user.text.node', () => slots.inject('conversation.chat.user.images', register)),
|
|
32
|
+
projectText: () => null,
|
|
33
|
+
userContent: (owner, content, facts) => owner.renderFactorySlot('conversation.chat.user.content', {
|
|
34
|
+
content, facts, loadImage: owner.loadImage, interactive: true,
|
|
35
|
+
}),
|
|
36
|
+
images: (owner, props) => owner.renderFactorySlot('conversation.images.content', { ...props, loadImage: owner.loadImage }),
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
//# sourceMappingURL=message-presentation-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"message-presentation-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/message-presentation-adapter.ts"],"names":[],"mappings":"AAiBA,SAAS,OAAO,CAAC,OAAgB;IAC/B,OAAQ,OAAyC,EAAE,KAAK,CAAA;AAC1D,CAAC;AAED,MAAM,UAAU,iCAAiC,CAAC,OAAgB,EAAE,OAAiB;IACnF,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IAC9B,OAAO,OAAO,KAAK,EAAE,MAAM,KAAK,UAAU,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU;WAC7E,OAAQ,OAAyC,EAAE,eAAe,KAAK,UAAU,CAAA;AACxF,CAAC;AA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CAAC,KAAK,CAAC,iBAAiB,CAAC,6BAA6B,EAAE,EAAE,GAAG,KAAK,EAAE,SAAS,EAAE,KAAK,CAAC,SAAS,EAAE,CAAC;KAC3H,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peer-host-attachment-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/peer-host-attachment-adapter.ts"],"names":[],"mappings":"AAKA,wFAAwF;AACxF,wBAAgB,+BAA+B,CAAC,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,GAAG,MAAM,IAAI,CAmBjG"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { createElement, useMemo, useSyncExternalStore } from 'react';
|
|
2
|
+
import { parseVirtualSessionId } from '../../shared/contracts/peer-host.js';
|
|
3
|
+
import { installComposerPresentation } from './composer-presentation-adapter.js';
|
|
4
|
+
/** Native file paths describe the client machine; remote sessions must upload bytes. */
|
|
5
|
+
export function installPeerHostAttachmentIntake(context, folderError) {
|
|
6
|
+
const slots = context?.get?.('slots');
|
|
7
|
+
if (slots === undefined || !['inject', 'register', 'entries', 'subscribe'].every(key => typeof slots[key] === 'function'))
|
|
8
|
+
return () => undefined;
|
|
9
|
+
return installComposerPresentation(context, slots, Native => function PeerHostComposer(props) {
|
|
10
|
+
if (typeof props.sessionId !== 'string' || parseVirtualSessionId(props.sessionId) === null || typeof props.addFiles !== 'function') {
|
|
11
|
+
return createElement(Native, props);
|
|
12
|
+
}
|
|
13
|
+
return createElement(Native, {
|
|
14
|
+
...props,
|
|
15
|
+
addFiles: (files, directories) => {
|
|
16
|
+
if (files.some(file => directories?.has(file)))
|
|
17
|
+
return folderError;
|
|
18
|
+
// A browser-created File retains bytes and display metadata without the native
|
|
19
|
+
// path association that would turn the original File into a local reference.
|
|
20
|
+
return props.addFiles(files.map(file => new File([file], file.name, {
|
|
21
|
+
type: file.type, lastModified: file.lastModified,
|
|
22
|
+
})));
|
|
23
|
+
},
|
|
24
|
+
});
|
|
25
|
+
}, createElement, { useMemo, useSyncExternalStore });
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=peer-host-attachment-adapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"peer-host-attachment-adapter.js","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/peer-host-attachment-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AACpE,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAA;AAC3E,OAAO,EAAE,2BAA2B,EAAE,MAAM,oCAAoC,CAAA;AAGhF,wFAAwF;AACxF,MAAM,UAAU,+BAA+B,CAAC,OAAgB,EAAE,WAAmB;IACnF,MAAM,KAAK,GAAI,OAA2D,EAAE,GAAG,EAAE,CAAC,OAAO,CAA2C,CAAA;IACpI,IAAI,KAAK,KAAK,SAAS,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,OAAO,KAAK,CAAC,GAA8B,CAAC,KAAK,UAAU,CAAC;QAAE,OAAO,GAAG,EAAE,CAAC,SAAS,CAAA;IAC5K,OAAO,2BAA2B,CAAC,OAAiB,EAAE,KAA0B,EAAE,MAAM,CAAC,EAAE,CAAC,SAAS,gBAAgB,CAAC,KAAK;QACzH,IAAI,OAAO,KAAK,CAAC,SAAS,KAAK,QAAQ,IAAI,qBAAqB,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,IAAI,IAAI,OAAO,KAAK,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACnI,OAAO,aAAa,CAAC,MAAM,EAAE,KAAK,CAAC,CAAA;QACrC,CAAC;QACD,OAAO,aAAa,CAAC,MAAM,EAAE;YAC3B,GAAG,KAAK;YACR,QAAQ,EAAE,CAAC,KAAsB,EAAE,WAA+B,EAAW,EAAE;gBAC7E,IAAI,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC,CAAC;oBAAE,OAAO,WAAW,CAAA;gBAClE,+EAA+E;gBAC/E,6EAA6E;gBAC7E,OAAO,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,CAAC,IAAI,EAAE;oBAClE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY;iBACjD,CAAC,CAAC,CAAC,CAAA;YACN,CAAC;SACF,CAAC,CAAA;IACJ,CAAC,EAAE,aAAa,EAAE,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC,CAAA;AACtD,CAAC"}
|
|
@@ -1,6 +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';
|
|
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;
|
|
4
19
|
type IconComponent = ComponentType<{
|
|
5
20
|
readonly size?: number;
|
|
6
21
|
readonly className?: string;
|
|
@@ -19,6 +34,10 @@ export declare function resolvePlusIcon(): IconComponent;
|
|
|
19
34
|
export declare function resolveChevronDownIcon(): IconComponent;
|
|
20
35
|
/** 终端工具栏使用的原生刷新图标。 */
|
|
21
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;
|
|
22
41
|
/** 终端工具栏入口使用的原生工具图标。 */
|
|
23
42
|
export declare function resolveToolIcon(): IconComponent;
|
|
24
43
|
/** 终端快捷操作的方向图标。 */
|
|
@@ -35,4 +54,21 @@ export declare function resolveDataIcon(): IconComponent;
|
|
|
35
54
|
* data 图标,保证旧版 DSH 仍能渲染出一行可识别的委派入口。
|
|
36
55
|
*/
|
|
37
56
|
export declare function resolveDelegateIcon(): IconComponent;
|
|
57
|
+
/**
|
|
58
|
+
* 模型搜索框的清除按钮图标,与内置模型选择器的搜索清除按钮同一字形;
|
|
59
|
+
* 旧版 DSH 缺少该导出时退化为不回退图标,清除按钮的文字标签仍然可用。
|
|
60
|
+
*/
|
|
61
|
+
export declare function resolveCloseFillIcon(): IconComponent;
|
|
62
|
+
/**
|
|
63
|
+
* 模型搜索的模糊排序。
|
|
64
|
+
*
|
|
65
|
+
* 内置模型选择器用 primitives 的 `rankByName` 排名搜索结构:查询必须是名称的
|
|
66
|
+
* 大小写不敏感子序列,前缀命中优先,其次按对齐分数。插件模型选择器复用同一
|
|
67
|
+
* 排序,保证同一查询在内置与外部 Agent 两个选择器里得到相同的顺序;旧版 DSH
|
|
68
|
+
* 缺少该导出时退回等价的本地实现,行为不变。
|
|
69
|
+
*/
|
|
70
|
+
export type RankModelByName = <T extends {
|
|
71
|
+
readonly name: string;
|
|
72
|
+
}>(items: readonly T[], rawQuery: string) => readonly T[];
|
|
73
|
+
export declare const rankModelByName: RankModelByName;
|
|
38
74
|
//# sourceMappingURL=primitives-adapter.d.ts.map
|
|
@@ -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,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a,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;AAED;;;GAGG;AACH,wBAAgB,oBAAoB,IAAI,aAAa,CAGpD;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,SAAS;IAAE,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC,EAAE,CAAA;AAE1H,eAAO,MAAM,eAAe,EAAE,eAI7B,CAAA"}
|
|
@@ -2,6 +2,16 @@ import * as primitives from '@deepseek-ai/dsh-client-ui-primitives';
|
|
|
2
2
|
import { createElement } from 'react';
|
|
3
3
|
/** 富文本菜单沿用宿主的键盘导航、焦点归还和外部点击关闭行为。 */
|
|
4
4
|
export { Menu as DshMenu } from '@deepseek-ai/dsh-client-ui-primitives';
|
|
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));
|
|
5
15
|
const unavailableIcon = () => null;
|
|
6
16
|
const fallbackShortcutKeys = ({ keys }) => createElement('span', undefined, keys.join(' + '));
|
|
7
17
|
/** 助理控件优先共用宿主图标,缺少的电话与普通对话采用相同 16px 画布和细描边。 */
|
|
@@ -44,6 +54,18 @@ export function resolveRefreshIcon() {
|
|
|
44
54
|
const value = primitives;
|
|
45
55
|
return value.IconRefreshOutlineRegular ?? value.IconRefreshOutlineMedium ?? unavailableIcon;
|
|
46
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
|
+
}
|
|
47
69
|
/** 终端工具栏入口使用的原生工具图标。 */
|
|
48
70
|
export function resolveToolIcon() {
|
|
49
71
|
const value = primitives;
|
|
@@ -89,4 +111,70 @@ export function resolveDelegateIcon() {
|
|
|
89
111
|
?? value.IconSendOutlineMedium
|
|
90
112
|
?? resolveDataIcon();
|
|
91
113
|
}
|
|
114
|
+
/**
|
|
115
|
+
* 模型搜索框的清除按钮图标,与内置模型选择器的搜索清除按钮同一字形;
|
|
116
|
+
* 旧版 DSH 缺少该导出时退化为不回退图标,清除按钮的文字标签仍然可用。
|
|
117
|
+
*/
|
|
118
|
+
export function resolveCloseFillIcon() {
|
|
119
|
+
const value = primitives;
|
|
120
|
+
return value.IconCloseFillRegular ?? value.IconCloseFillMedium ?? unavailableIcon;
|
|
121
|
+
}
|
|
122
|
+
export const rankModelByName = (items, rawQuery) => {
|
|
123
|
+
const exported = primitives.rankByName;
|
|
124
|
+
if (typeof exported === 'function')
|
|
125
|
+
return exported(items, rawQuery);
|
|
126
|
+
return rankByNameFallback(items, rawQuery);
|
|
127
|
+
};
|
|
128
|
+
/** 名称起始与 `-`/`_` 分隔处额外加分,与宿主实现保持一致。 */
|
|
129
|
+
function boundaryBonus(name, index) {
|
|
130
|
+
return index === 0 || name.charAt(index - 1) === '-' || name.charAt(index - 1) === '_' ? 8 : 0;
|
|
131
|
+
}
|
|
132
|
+
/** 有序子序列的最强对齐分数;查询不是子序列时返回 undefined。 */
|
|
133
|
+
function alignmentScore(name, query) {
|
|
134
|
+
if (query.length > name.length)
|
|
135
|
+
return undefined;
|
|
136
|
+
const noMatch = Number.NEGATIVE_INFINITY;
|
|
137
|
+
let previous = Array.from({ length: name.length }, () => noMatch).map((_, index) => name.charAt(index) === query.charAt(0) ? 1 + boundaryBonus(name, index) - index : noMatch);
|
|
138
|
+
for (let queryIndex = 1; queryIndex < query.length; queryIndex++) {
|
|
139
|
+
const current = Array.from({ length: name.length }, () => noMatch);
|
|
140
|
+
let left = noMatch;
|
|
141
|
+
let leftLeft = noMatch;
|
|
142
|
+
let bestGapped = noMatch;
|
|
143
|
+
for (const [index, prior] of previous.entries()) {
|
|
144
|
+
if (leftLeft !== noMatch)
|
|
145
|
+
bestGapped = Math.max(bestGapped, leftLeft + index - 2);
|
|
146
|
+
if (name.charAt(index) === query.charAt(queryIndex)) {
|
|
147
|
+
const bonus = 1 + boundaryBonus(name, index);
|
|
148
|
+
let score = noMatch;
|
|
149
|
+
if (left !== noMatch)
|
|
150
|
+
score = left + bonus + 4;
|
|
151
|
+
if (bestGapped !== noMatch)
|
|
152
|
+
score = Math.max(score, bestGapped + bonus + 1 - index);
|
|
153
|
+
current[index] = score;
|
|
154
|
+
}
|
|
155
|
+
leftLeft = left;
|
|
156
|
+
left = prior;
|
|
157
|
+
}
|
|
158
|
+
previous = current;
|
|
159
|
+
}
|
|
160
|
+
let best = noMatch;
|
|
161
|
+
for (const score of previous)
|
|
162
|
+
best = Math.max(best, score);
|
|
163
|
+
return best === noMatch ? undefined : best;
|
|
164
|
+
}
|
|
165
|
+
function rankByNameFallback(items, rawQuery) {
|
|
166
|
+
const query = rawQuery.toLowerCase();
|
|
167
|
+
if (query === '')
|
|
168
|
+
return items;
|
|
169
|
+
const ranked = [];
|
|
170
|
+
items.forEach((item, index) => {
|
|
171
|
+
const lower = item.name.toLowerCase();
|
|
172
|
+
const score = alignmentScore(lower, query);
|
|
173
|
+
if (score === undefined)
|
|
174
|
+
return;
|
|
175
|
+
ranked.push({ item, index, prefix: lower.startsWith(query), score });
|
|
176
|
+
});
|
|
177
|
+
ranked.sort((left, right) => Number(right.prefix) - Number(left.prefix) || right.score - left.score || left.index - right.index);
|
|
178
|
+
return ranked.map((match) => match.item);
|
|
179
|
+
}
|
|
92
180
|
//# sourceMappingURL=primitives-adapter.js.map
|
|
@@ -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,IAA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,CAAC,WAAW,EAAE,CAAA;QACrC,MAAM,KAAK,GAAG,cAAc,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;QAC1C,IAAI,KAAK,KAAK,SAAS;YAAE,OAAM;QAC/B,MAAM,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IACtE,CAAC,CAAC,CAAA;IACF,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,IAAI,KAAK,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,CAAA;IAChI,OAAO,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;AAC1C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type InteractionAnswer, type InteractionTranslationField, type InteractionTranslationResult, type TranslatableQuestion } from '../../shared/contracts/interaction-translation.js';
|
|
2
|
+
/** Read complete recorded JSON only. Preparing or unrecognized tool shapes remain native. */
|
|
3
|
+
export declare function readQuestionHistory(block: any, settled?: InteractionAnswer['answers']): {
|
|
4
|
+
args: Record<string, any>;
|
|
5
|
+
questions: readonly TranslatableQuestion[];
|
|
6
|
+
answers: InteractionAnswer["answers"];
|
|
7
|
+
output: Record<string, any> | undefined;
|
|
8
|
+
call: any;
|
|
9
|
+
} | undefined;
|
|
10
|
+
export declare function questionHistoryFields(history: NonNullable<ReturnType<typeof readQuestionHistory>>): InteractionTranslationField[];
|
|
11
|
+
/** Clones for rendering only: callbacks, logged arguments, and wire answers keep their source values. */
|
|
12
|
+
export declare function displayQuestionHistory(block: any, history: NonNullable<ReturnType<typeof readQuestionHistory>>, result: InteractionTranslationResult): {
|
|
13
|
+
answers: {
|
|
14
|
+
custom?: string;
|
|
15
|
+
selected: string[];
|
|
16
|
+
id: string;
|
|
17
|
+
}[];
|
|
18
|
+
block: any;
|
|
19
|
+
};
|
|
20
|
+
//# sourceMappingURL=question-history-adapter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"question-history-adapter.d.ts","sourceRoot":"","sources":["../../../../../src/dsh-capabilities/client/question-history-adapter.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAAE,KAAK,2BAA2B,EAAE,KAAK,4BAA4B,EAAE,KAAK,oBAAoB,EACvH,MAAM,mDAAmD,CAAA;AAE1D,6FAA6F;AAC7F,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,iBAAiB,CAAC,SAAS,CAAC;;eAQtC,SAAS,oBAAoB,EAAE;aAAsB,iBAAiB,CAAC,SAAS,CAAC;;;cAChI;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,GAAG,2BAA2B,EAAE,CAKjI;AAED,yGAAyG;AACzG,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,WAAW,CAAC,UAAU,CAAC,OAAO,mBAAmB,CAAC,CAAC,EAAE,MAAM,EAAE,4BAA4B;;;;;;;EAuBpJ"}
|