@jingyi0605/codingns4dsh 0.2.1-beta.12 → 0.2.1-beta.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.en.md +5 -5
- package/README.md +6 -9
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +1 -1
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts.map +1 -1
- package/data/build/dist/bootstrap/index.d.ts +1 -1
- package/data/build/dist/bootstrap/index.d.ts.map +1 -1
- package/data/build/dist/client/account-bar.d.ts.map +1 -1
- package/data/build/dist/client/account-bar.js +24 -70
- package/data/build/dist/client/account-bar.js.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts +1 -1
- package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -1
- package/data/build/dist/client/adapter-catalog-watch.js +2 -2
- package/data/build/dist/client/adapter-catalog-watch.js.map +1 -1
- package/data/build/dist/client/bundle.js +40225 -25580
- package/data/build/dist/client/bundle.js.map +1 -1
- package/data/build/dist/client/cli-management-dialog.d.ts +21 -0
- package/data/build/dist/client/cli-management-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-dialog.js +215 -0
- package/data/build/dist/client/cli-management-dialog.js.map +1 -0
- package/data/build/dist/client/cli-management-terminal.d.ts +9 -0
- package/data/build/dist/client/cli-management-terminal.d.ts.map +1 -0
- package/data/build/dist/client/cli-management-terminal.js +30 -0
- package/data/build/dist/client/cli-management-terminal.js.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts +9 -0
- package/data/build/dist/client/cli-settings-dialog.d.ts.map +1 -0
- package/data/build/dist/client/cli-settings-dialog.js +45 -0
- package/data/build/dist/client/cli-settings-dialog.js.map +1 -0
- package/data/build/dist/client/cli-settings-rpc.js +1 -1
- package/data/build/dist/client/cli-settings-rpc.js.map +1 -1
- package/data/build/dist/client/cli-slots.d.ts +4 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -1
- package/data/build/dist/client/cli-slots.js +26 -10
- package/data/build/dist/client/cli-slots.js.map +1 -1
- package/data/build/dist/client/client.editor-engine.js +4 -1
- package/data/build/dist/client/client.editor-engine.js.map +1 -1
- package/data/build/dist/client/client.model-catalog-cache.js +9 -1
- package/data/build/dist/client/client.model-catalog-cache.js.map +1 -1
- package/data/build/dist/client/client.native-workspace-store.js +9 -15
- package/data/build/dist/client/client.native-workspace-store.js.map +1 -1
- package/data/build/dist/client/client.primitives-adapter.js +53 -0
- package/data/build/dist/client/client.primitives-adapter.js.map +1 -1
- package/data/build/dist/client/client.session-translation.js +16 -0
- package/data/build/dist/client/client.session-translation.js.map +1 -1
- package/data/build/dist/client/client.transport.js +487 -44
- package/data/build/dist/client/client.transport.js.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts +2 -1
- package/data/build/dist/client/conversation-translation-settings.d.ts.map +1 -1
- package/data/build/dist/client/conversation-translation-settings.js +7 -5
- package/data/build/dist/client/conversation-translation-settings.js.map +1 -1
- package/data/build/dist/client/desktop-assistant.js +595 -152
- package/data/build/dist/client/editor-engine.d.ts +1 -1
- package/data/build/dist/client/editor-engine.d.ts.map +1 -1
- package/data/build/dist/client/editor-engine.js +4 -1
- package/data/build/dist/client/editor-engine.js.map +1 -1
- package/data/build/dist/client/features/cli-adapters.d.ts +3 -1
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
- package/data/build/dist/client/features/cli-adapters.js +183 -105
- package/data/build/dist/client/features/cli-adapters.js.map +1 -1
- package/data/build/dist/client/features/file-management.d.ts.map +1 -1
- package/data/build/dist/client/features/file-management.js +2 -0
- package/data/build/dist/client/features/file-management.js.map +1 -1
- package/data/build/dist/client/features/index.d.ts.map +1 -1
- package/data/build/dist/client/features/index.js +2 -0
- package/data/build/dist/client/features/index.js.map +1 -1
- package/data/build/dist/client/features/mobile-access.d.ts.map +1 -1
- package/data/build/dist/client/features/mobile-access.js +7 -0
- package/data/build/dist/client/features/mobile-access.js.map +1 -1
- package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/client/features/peer-host.js +3 -0
- package/data/build/dist/client/features/peer-host.js.map +1 -1
- package/data/build/dist/client/features/quick-apps.d.ts +3 -0
- package/data/build/dist/client/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/client/features/quick-apps.js +14 -0
- package/data/build/dist/client/features/quick-apps.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
- package/data/build/dist/client/features/workspace-session-enhancement.js +6 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
- package/data/build/dist/client/git-management.d.ts.map +1 -1
- package/data/build/dist/client/git-management.js +11 -30
- package/data/build/dist/client/git-management.js.map +1 -1
- package/data/build/dist/client/git-panel-styles.d.ts +4 -0
- package/data/build/dist/client/git-panel-styles.d.ts.map +1 -1
- package/data/build/dist/client/git-panel-styles.js +14 -0
- package/data/build/dist/client/git-panel-styles.js.map +1 -1
- package/data/build/dist/client/html-workspace-files.d.ts +4 -0
- package/data/build/dist/client/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/client/html-workspace-files.js +114 -0
- package/data/build/dist/client/html-workspace-files.js.map +1 -0
- package/data/build/dist/client/locale.d.ts.map +1 -1
- package/data/build/dist/client/locale.js +14 -0
- package/data/build/dist/client/locale.js.map +1 -1
- package/data/build/dist/client/locales/cliManagement.d.ts +3 -0
- package/data/build/dist/client/locales/cliManagement.d.ts.map +1 -0
- package/data/build/dist/client/locales/cliManagement.js +155 -0
- package/data/build/dist/client/locales/cliManagement.js.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
- package/data/build/dist/client/locales/fileWorkspace.js +4 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
- package/data/build/dist/client/locales/panels.js +2 -2
- package/data/build/dist/client/locales/panels.js.map +1 -1
- package/data/build/dist/client/locales/quickApps.d.ts +132 -0
- package/data/build/dist/client/locales/quickApps.d.ts.map +1 -0
- package/data/build/dist/client/locales/quickApps.js +154 -0
- package/data/build/dist/client/locales/quickApps.js.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts +14 -0
- package/data/build/dist/client/mobile-team-panel-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-team-panel-dom.js +164 -0
- package/data/build/dist/client/mobile-team-panel-dom.js.map +1 -0
- package/data/build/dist/client/native-model-translation-menu.d.ts.map +1 -1
- package/data/build/dist/client/native-model-translation-menu.js +3 -1
- package/data/build/dist/client/native-model-translation-menu.js.map +1 -1
- package/data/build/dist/client/provider-icons.d.ts.map +1 -1
- package/data/build/dist/client/provider-icons.js +3 -1
- package/data/build/dist/client/provider-icons.js.map +1 -1
- package/data/build/dist/client/quick-apps/browser-storage.d.ts +24 -0
- package/data/build/dist/client/quick-apps/browser-storage.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/browser-storage.js +114 -0
- package/data/build/dist/client/quick-apps/browser-storage.js.map +1 -0
- package/data/build/dist/client/quick-apps/client.d.ts +31 -0
- package/data/build/dist/client/quick-apps/client.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/client.js +68 -0
- package/data/build/dist/client/quick-apps/client.js.map +1 -0
- package/data/build/dist/client/quick-apps/document.d.ts +26 -0
- package/data/build/dist/client/quick-apps/document.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/document.js +110 -0
- package/data/build/dist/client/quick-apps/document.js.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts +14 -0
- package/data/build/dist/client/quick-apps/file-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/file-picker.js +51 -0
- package/data/build/dist/client/quick-apps/file-picker.js.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts +7 -0
- package/data/build/dist/client/quick-apps/launcher.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/launcher.js +252 -0
- package/data/build/dist/client/quick-apps/launcher.js.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts +16 -0
- package/data/build/dist/client/quick-apps/presentation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/presentation.js +31 -0
- package/data/build/dist/client/quick-apps/presentation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts +6 -0
- package/data/build/dist/client/quick-apps/reorder-animation.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js +50 -0
- package/data/build/dist/client/quick-apps/reorder-animation.js.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts +26 -0
- package/data/build/dist/client/quick-apps/reorder.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/reorder.js +128 -0
- package/data/build/dist/client/quick-apps/reorder.js.map +1 -0
- package/data/build/dist/client/quick-apps/styles.d.ts +3 -0
- package/data/build/dist/client/quick-apps/styles.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/styles.js +143 -0
- package/data/build/dist/client/quick-apps/styles.js.map +1 -0
- package/data/build/dist/client/quick-apps/ui.d.ts +20 -0
- package/data/build/dist/client/quick-apps/ui.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/ui.js +21 -0
- package/data/build/dist/client/quick-apps/ui.js.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts +16 -0
- package/data/build/dist/client/quick-apps/viewer.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/viewer.js +165 -0
- package/data/build/dist/client/quick-apps/viewer.js.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts +19 -0
- package/data/build/dist/client/quick-apps/workspace-picker.d.ts.map +1 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js +30 -0
- package/data/build/dist/client/quick-apps/workspace-picker.js.map +1 -0
- package/data/build/dist/client/session-translation-chat.d.ts +1 -1
- package/data/build/dist/client/session-translation-chat.d.ts.map +1 -1
- package/data/build/dist/client/session-translation-chat.js +26 -22
- package/data/build/dist/client/session-translation-chat.js.map +1 -1
- package/data/build/dist/client/sidebar-footer-style.d.ts +13 -0
- package/data/build/dist/client/sidebar-footer-style.d.ts.map +1 -0
- package/data/build/dist/client/sidebar-footer-style.js +54 -0
- package/data/build/dist/client/sidebar-footer-style.js.map +1 -0
- package/data/build/dist/client/style.css +219 -219
- package/data/build/dist/client/terminal/model.d.ts.map +1 -1
- package/data/build/dist/client/terminal/model.js +2 -1
- package/data/build/dist/client/terminal/model.js.map +1 -1
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-rightbar-dom.js +12 -21
- package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts +3 -0
- package/data/build/dist/client/workspace-session-visibility-dom.d.ts.map +1 -1
- package/data/build/dist/client/workspace-session-visibility-dom.js +5 -4
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts +4 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js +8 -0
- package/data/build/dist/dsh-capabilities/client/composer-slot-selectors.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +21 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -1
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts +18 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js +11 -0
- package/data/build/dist/dsh-capabilities/client/quick-app-footer-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts +8 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js +100 -0
- package/data/build/dist/dsh-capabilities/client/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts +3 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js +22 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-footer-icon-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts +52 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js +109 -0
- package/data/build/dist/dsh-capabilities/host/agent-team-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts +11 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js +97 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-credentials.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts +36 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js +164 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-https-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts +44 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js +240 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-lan-ports.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts +37 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js +35 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-origin-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js +30 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts +21 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js +132 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-proxy-provider.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.js +33 -0
- package/data/build/dist/dsh-capabilities/host/quick-app-transport.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts +7 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js +18 -0
- package/data/build/dist/dsh-capabilities/host/session-performance-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts +13 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js +24 -0
- package/data/build/dist/dsh-capabilities/host/workspace-directory-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/matrix.js +16 -8
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.d.ts +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/routes.js +27 -6
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -1
- package/data/build/dist/dsh-capabilities/types.js.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js +6 -3
- package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/binary-detection.js +7 -3
- package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/claude-driver.js +183 -20
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +18 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-driver.js +110 -11
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts +91 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js +8 -0
- package/data/build/dist/host/cli-adapters/codex-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/codex-performance.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js +81 -0
- package/data/build/dist/host/cli-adapters/codex-performance.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js +11 -1
- package/data/build/dist/host/cli-adapters/command-code-acp-loader.js.map +1 -1
- package/data/build/dist/host/cli-adapters/command-code-driver.js +3 -2
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +3 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +41 -4
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +19 -5
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +3 -2
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/feature.js +164 -34
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/gemini-driver.js +4 -2
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +6 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-driver.js +327 -30
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts +123 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js +48 -0
- package/data/build/dist/host/cli-adapters/grok-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/grok-usage.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js +197 -0
- package/data/build/dist/host/cli-adapters/grok-usage.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +20 -3
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -1
- package/data/build/dist/host/cli-adapters/management-installation.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/management-installation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-installation.js +131 -0
- package/data/build/dist/host/cli-adapters/management-installation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/management-methods.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-methods.js +144 -0
- package/data/build/dist/host/cli-adapters/management-methods.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/management-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management-process.js +62 -0
- package/data/build/dist/host/cli-adapters/management-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/management.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/management.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/management.js +177 -0
- package/data/build/dist/host/cli-adapters/management.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/mcode-driver.js +11 -4
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/model-catalog.js +62 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +11 -3
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +7 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +4 -2
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/opencode-driver.js +105 -17
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/process-utils.js +16 -11
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.d.ts +7 -1
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/registry.js +98 -30
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts +74 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js +83 -0
- package/data/build/dist/host/cli-adapters/session-performance-projection.js.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +4 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +3 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +2 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js +1 -1
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -1
- package/data/build/dist/host/cli-adapters/team-input.d.ts +17 -0
- package/data/build/dist/host/cli-adapters/team-input.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/team-input.js +67 -0
- package/data/build/dist/host/cli-adapters/team-input.js.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts +34 -0
- package/data/build/dist/host/cli-adapters/update-check.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/update-check.js +263 -0
- package/data/build/dist/host/cli-adapters/update-check.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -1
- package/data/build/dist/host/cli-adapters/zcode-driver.js +6 -1
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -1
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts +8 -0
- package/data/build/dist/host/cli-adapters/zcode-update.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js +149 -0
- package/data/build/dist/host/cli-adapters/zcode-update.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +14 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-holder.js +53 -6
- package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +4 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/bridge-server.js +34 -6
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/command-code-mod.js +43 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.js +1 -1
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -1
- package/data/build/dist/host/cli-bridge/injections.js +23 -7
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -1
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +22 -3
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -1
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts +11 -0
- package/data/build/dist/host/cli-bridge/team-adapters.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js +22 -0
- package/data/build/dist/host/cli-bridge/team-adapters.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts +28 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js +208 -0
- package/data/build/dist/host/cli-bridge/team-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts +3 -0
- package/data/build/dist/host/cli-bridge/team-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/team-tool.js +18 -0
- package/data/build/dist/host/cli-bridge/team-tool.js.map +1 -0
- package/data/build/dist/host/features/file-management.d.ts.map +1 -1
- package/data/build/dist/host/features/file-management.js +8 -0
- package/data/build/dist/host/features/file-management.js.map +1 -1
- package/data/build/dist/host/features/index.d.ts.map +1 -1
- package/data/build/dist/host/features/index.js +2 -0
- package/data/build/dist/host/features/index.js.map +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js +1 -1
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
- package/data/build/dist/host/features/peer-host.js +7 -0
- package/data/build/dist/host/features/peer-host.js.map +1 -1
- package/data/build/dist/host/features/quick-apps.d.ts +4 -0
- package/data/build/dist/host/features/quick-apps.d.ts.map +1 -0
- package/data/build/dist/host/features/quick-apps.js +158 -0
- package/data/build/dist/host/features/quick-apps.js.map +1 -0
- package/data/build/dist/host/features/session-prompt-translation.d.ts +1 -1
- package/data/build/dist/host/features/session-prompt-translation.d.ts.map +1 -1
- package/data/build/dist/host/features/session-prompt-translation.js +13 -4
- package/data/build/dist/host/features/session-prompt-translation.js.map +1 -1
- package/data/build/dist/host/features/session-translation-protection.d.ts +6 -0
- package/data/build/dist/host/features/session-translation-protection.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-protection.js +21 -0
- package/data/build/dist/host/features/session-translation-protection.js.map +1 -1
- package/data/build/dist/host/features/session-translation-recovery.d.ts +3 -2
- package/data/build/dist/host/features/session-translation-recovery.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-recovery.js +6 -3
- package/data/build/dist/host/features/session-translation-recovery.js.map +1 -1
- package/data/build/dist/host/features/session-translation-service.d.ts +3 -0
- package/data/build/dist/host/features/session-translation-service.d.ts.map +1 -1
- package/data/build/dist/host/features/session-translation-service.js +14 -8
- package/data/build/dist/host/features/session-translation-service.js.map +1 -1
- package/data/build/dist/host/features/types.d.ts +10 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -1
- package/data/build/dist/host/html-workspace-files.d.ts +3 -0
- package/data/build/dist/host/html-workspace-files.d.ts.map +1 -0
- package/data/build/dist/host/html-workspace-files.js +135 -0
- package/data/build/dist/host/html-workspace-files.js.map +1 -0
- package/data/build/dist/host/index.d.ts.map +1 -1
- package/data/build/dist/host/index.js +27 -2
- package/data/build/dist/host/index.js.map +1 -1
- package/data/build/dist/host/lan-access-dsh.d.ts +5 -1
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
- package/data/build/dist/host/lan-access-dsh.js +43 -2
- package/data/build/dist/host/lan-access-dsh.js.map +1 -1
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts +5 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js +27 -0
- package/data/build/dist/host/modules/peer-host/quick-app-gateway.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts +5 -0
- package/data/build/dist/host/modules/quick-apps/browse.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/browse.js +37 -0
- package/data/build/dist/host/modules/quick-apps/browse.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts +4 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js +39 -0
- package/data/build/dist/host/modules/quick-apps/code-revision.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/documents.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/documents.js +87 -0
- package/data/build/dist/host/modules/quick-apps/documents.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/errors.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/errors.js +15 -0
- package/data/build/dist/host/modules/quick-apps/errors.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/file-api.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js +149 -0
- package/data/build/dist/host/modules/quick-apps/file-api.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts +35 -0
- package/data/build/dist/host/modules/quick-apps/launches.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/launches.js +80 -0
- package/data/build/dist/host/modules/quick-apps/launches.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts +14 -0
- package/data/build/dist/host/modules/quick-apps/paths.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/paths.js +72 -0
- package/data/build/dist/host/modules/quick-apps/paths.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts +30 -0
- package/data/build/dist/host/modules/quick-apps/registry.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/registry.js +186 -0
- package/data/build/dist/host/modules/quick-apps/registry.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts +38 -0
- package/data/build/dist/host/modules/quick-apps/remote.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/remote.js +238 -0
- package/data/build/dist/host/modules/quick-apps/remote.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts +27 -0
- package/data/build/dist/host/modules/quick-apps/service.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/service.js +174 -0
- package/data/build/dist/host/modules/quick-apps/service.js.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts +8 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.d.ts.map +1 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js +190 -0
- package/data/build/dist/host/modules/quick-apps/static-handler.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts +5 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -1
- package/data/build/dist/host/native-session-bridge.js +3 -0
- package/data/build/dist/host/native-session-bridge.js.map +1 -1
- package/data/build/dist/host/rpc.d.ts.map +1 -1
- package/data/build/dist/host/rpc.js +8 -3
- package/data/build/dist/host/rpc.js.map +1 -1
- package/data/build/dist/host/session-migration-repair.js +48 -35
- package/data/build/dist/host/session-migration-repair.js.map +1 -1
- package/data/build/dist/host/settings.d.ts.map +1 -1
- package/data/build/dist/host/settings.js +13 -0
- package/data/build/dist/host/settings.js.map +1 -1
- package/data/build/dist/host/workspace-file-mutations.d.ts +2 -0
- package/data/build/dist/host/workspace-file-mutations.d.ts.map +1 -0
- package/data/build/dist/host/workspace-file-mutations.js +15 -0
- package/data/build/dist/host/workspace-file-mutations.js.map +1 -0
- package/data/build/dist/shared/cli-provider-route.d.ts +7 -0
- package/data/build/dist/shared/cli-provider-route.d.ts.map +1 -0
- package/data/build/dist/shared/cli-provider-route.js +13 -0
- package/data/build/dist/shared/cli-provider-route.js.map +1 -0
- package/data/build/dist/shared/codex-performance.d.ts +3 -0
- package/data/build/dist/shared/codex-performance.d.ts.map +1 -0
- package/data/build/dist/shared/codex-performance.js +2 -0
- package/data/build/dist/shared/codex-performance.js.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts +14 -0
- package/data/build/dist/shared/contracts/agent-team.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/agent-team.js +48 -0
- package/data/build/dist/shared/contracts/agent-team.js.map +1 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +35 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/cli-management.d.ts +29 -0
- package/data/build/dist/shared/contracts/cli-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/cli-management.js +2 -0
- package/data/build/dist/shared/contracts/cli-management.js.map +1 -0
- package/data/build/dist/shared/contracts/config.d.ts +2 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/config.js.map +1 -1
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/quick-apps.d.ts +68 -0
- package/data/build/dist/shared/contracts/quick-apps.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/quick-apps.js +4 -0
- package/data/build/dist/shared/contracts/quick-apps.js.map +1 -0
- package/data/build/dist/shared/contracts/session-translation.d.ts +8 -3
- package/data/build/dist/shared/contracts/session-translation.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/session-translation.js +14 -0
- package/data/build/dist/shared/contracts/session-translation.js.map +1 -1
- package/data/build/dist/shared/contracts/version.d.ts +9 -15
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
- package/data/build/dist/shared/contracts/version.js +8 -14
- package/data/build/dist/shared/contracts/version.js.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.d.ts +4 -0
- package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -1
- package/data/build/dist/shared/peer-host-http-routes.js +4 -0
- package/data/build/dist/shared/peer-host-http-routes.js.map +1 -1
- package/data/build/dist/shared/quick-app-browser-storage.d.ts +33 -0
- package/data/build/dist/shared/quick-app-browser-storage.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-browser-storage.js +33 -0
- package/data/build/dist/shared/quick-app-browser-storage.js.map +1 -0
- package/data/build/dist/shared/quick-app-proxy-path.d.ts +6 -0
- package/data/build/dist/shared/quick-app-proxy-path.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-proxy-path.js +18 -0
- package/data/build/dist/shared/quick-app-proxy-path.js.map +1 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts +9 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.d.ts.map +1 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.js +186 -0
- package/data/build/dist/shared/quick-app-storage-bootstrap.js.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts +7 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.d.ts.map +1 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js +10 -0
- package/data/build/dist/shared/quick-apps-bootstrap-locale.js.map +1 -0
- package/data/build/dist/shared/request-performance.d.ts +15 -0
- package/data/build/dist/shared/request-performance.d.ts.map +1 -0
- package/data/build/dist/shared/request-performance.js +3 -0
- package/data/build/dist/shared/request-performance.js.map +1 -0
- package/package.json +32 -32
- package/profile/README.md +2 -2
- package/profile/package.json +3 -3
- package/profile/version.json +3 -3
- package/version.json +3 -3
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
import { QUICK_APP_STORAGE_LIMITS, QUICK_APP_STORAGE_PROTOCOL } from './quick-app-browser-storage.js';
|
|
2
|
+
/** Self-contained because the Host serializes this function into an opaque sandbox document. */
|
|
3
|
+
export function quickAppStorageRuntime(token, protocol, limits) {
|
|
4
|
+
const source = fetch(location.href, { headers: { Accept: 'text/html' } }).then(response => {
|
|
5
|
+
if (!response.ok)
|
|
6
|
+
throw new Error('The application HTML could not be loaded.');
|
|
7
|
+
return response.text();
|
|
8
|
+
});
|
|
9
|
+
const documentId = Array.from(crypto.getRandomValues(new Uint8Array(16)), byte => byte.toString(16).padStart(2, '0')).join('');
|
|
10
|
+
const connect = new Promise((resolve, reject) => {
|
|
11
|
+
const send = () => parent.postMessage({ type: protocol, token, documentId }, '*');
|
|
12
|
+
const receive = (event) => {
|
|
13
|
+
if (event.source !== parent || event.data?.type !== protocol || event.data.token !== token || event.data.documentId !== documentId || event.ports.length !== 1)
|
|
14
|
+
return;
|
|
15
|
+
clearInterval(retry);
|
|
16
|
+
clearTimeout(timeout);
|
|
17
|
+
removeEventListener('message', receive);
|
|
18
|
+
resolve(event);
|
|
19
|
+
};
|
|
20
|
+
const retry = setInterval(send, 100);
|
|
21
|
+
const timeout = setTimeout(() => {
|
|
22
|
+
clearInterval(retry);
|
|
23
|
+
removeEventListener('message', receive);
|
|
24
|
+
reject(new Error('Open this application through the updated Quick Apps viewer to use browser storage.'));
|
|
25
|
+
}, limits.timeoutMs);
|
|
26
|
+
addEventListener('message', receive);
|
|
27
|
+
send();
|
|
28
|
+
});
|
|
29
|
+
void Promise.all([source, connect]).then(([html, event]) => {
|
|
30
|
+
const port = event.ports[0];
|
|
31
|
+
const pending = new Map();
|
|
32
|
+
const baseline = { local: new Map(event.data.snapshot.local ?? []), session: new Map(event.data.snapshot.session ?? []) };
|
|
33
|
+
const mirror = { local: new Map(baseline.local), session: new Map(baseline.session) };
|
|
34
|
+
const errors = {};
|
|
35
|
+
const writeErrors = {};
|
|
36
|
+
for (const area of ['local', 'session'])
|
|
37
|
+
if (event.data.errors[area]) {
|
|
38
|
+
errors[area] = new DOMException(event.data.errors[area].message, event.data.errors[area].name);
|
|
39
|
+
}
|
|
40
|
+
let sequence = 0;
|
|
41
|
+
let closed = false;
|
|
42
|
+
const mutation = (operation) => ['setItem', 'removeItem', 'clear'].includes(operation);
|
|
43
|
+
const apply = (map, request) => {
|
|
44
|
+
if (request.operation === 'setItem')
|
|
45
|
+
map.set(request.key, request.value);
|
|
46
|
+
else if (request.operation === 'removeItem')
|
|
47
|
+
map.delete(request.key);
|
|
48
|
+
else if (request.operation === 'clear')
|
|
49
|
+
map.clear();
|
|
50
|
+
};
|
|
51
|
+
const reconcile = (area) => {
|
|
52
|
+
mirror[area] = new Map(baseline[area]);
|
|
53
|
+
for (const { request } of pending.values())
|
|
54
|
+
if (request.area === area)
|
|
55
|
+
apply(mirror[area], request);
|
|
56
|
+
};
|
|
57
|
+
const report = (error, area) => {
|
|
58
|
+
dispatchEvent(new CustomEvent('appstorageerror', { detail: { area, name: error.name, message: error.message } }));
|
|
59
|
+
};
|
|
60
|
+
const finish = (id, value, entries, error) => {
|
|
61
|
+
const item = pending.get(id);
|
|
62
|
+
if (!item)
|
|
63
|
+
return;
|
|
64
|
+
clearTimeout(item.timer);
|
|
65
|
+
pending.delete(id);
|
|
66
|
+
const area = item.request.area;
|
|
67
|
+
if (entries) {
|
|
68
|
+
baseline[area] = new Map(entries);
|
|
69
|
+
delete errors[area];
|
|
70
|
+
}
|
|
71
|
+
if (error && mutation(item.request.operation))
|
|
72
|
+
writeErrors[area] = error;
|
|
73
|
+
reconcile(area);
|
|
74
|
+
if (error)
|
|
75
|
+
item.reject(error);
|
|
76
|
+
else
|
|
77
|
+
item.resolve(value);
|
|
78
|
+
};
|
|
79
|
+
port.onmessage = message => {
|
|
80
|
+
const reply = message.data;
|
|
81
|
+
if (reply?.type === 'closed') {
|
|
82
|
+
closed = true;
|
|
83
|
+
for (const id of [...pending.keys()])
|
|
84
|
+
finish(id, undefined, undefined, new DOMException(reply.error.message, reply.error.name));
|
|
85
|
+
port.close();
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (!reply || !Number.isSafeInteger(reply.id))
|
|
89
|
+
return;
|
|
90
|
+
const error = reply.error ? new DOMException(reply.error.message, reply.error.name) : undefined;
|
|
91
|
+
finish(reply.id, reply.value, reply.entries, error);
|
|
92
|
+
};
|
|
93
|
+
const string = (value) => {
|
|
94
|
+
if (typeof value === 'symbol')
|
|
95
|
+
throw new TypeError('Storage keys and values cannot be symbols.');
|
|
96
|
+
return String(value);
|
|
97
|
+
};
|
|
98
|
+
const request = (area, operation, key, value) => {
|
|
99
|
+
if (closed)
|
|
100
|
+
throw new DOMException('The application storage channel was closed.', 'SecurityError');
|
|
101
|
+
if (pending.size >= limits.pending)
|
|
102
|
+
throw new DOMException('Too many pending storage operations.', 'QuotaExceededError');
|
|
103
|
+
const item = { id: ++sequence, area, operation, ...(key !== undefined ? { key } : {}), ...(value !== undefined ? { value } : {}) };
|
|
104
|
+
if (mutation(operation)) {
|
|
105
|
+
const next = new Map(mirror[area]);
|
|
106
|
+
apply(next, item);
|
|
107
|
+
if (next.size > limits.keys || JSON.stringify([...next]).length * 2 > limits.bytes)
|
|
108
|
+
throw new DOMException('Application storage quota exceeded.', 'QuotaExceededError');
|
|
109
|
+
}
|
|
110
|
+
const result = new Promise((resolve, reject) => {
|
|
111
|
+
const timer = setTimeout(() => finish(item.id, undefined, undefined, new DOMException('Application storage acknowledgement timed out.', 'TimeoutError')), limits.timeoutMs);
|
|
112
|
+
pending.set(item.id, { request: item, resolve, reject, timer });
|
|
113
|
+
try {
|
|
114
|
+
port.postMessage(item);
|
|
115
|
+
}
|
|
116
|
+
catch (error) {
|
|
117
|
+
finish(item.id, undefined, undefined, error);
|
|
118
|
+
}
|
|
119
|
+
});
|
|
120
|
+
reconcile(area);
|
|
121
|
+
return result;
|
|
122
|
+
};
|
|
123
|
+
const asyncArea = (area) => Object.freeze({
|
|
124
|
+
async getItem(key) { return await request(area, 'getItem', string(key)); },
|
|
125
|
+
async setItem(key, value) { await request(area, 'setItem', string(key), string(value)); },
|
|
126
|
+
async removeItem(key) { await request(area, 'removeItem', string(key)); },
|
|
127
|
+
async clear() { await request(area, 'clear'); },
|
|
128
|
+
async keys() { return await request(area, 'keys'); },
|
|
129
|
+
async flush() {
|
|
130
|
+
await request(area, 'flush');
|
|
131
|
+
const error = writeErrors[area];
|
|
132
|
+
delete writeErrors[area];
|
|
133
|
+
if (error)
|
|
134
|
+
throw error;
|
|
135
|
+
},
|
|
136
|
+
});
|
|
137
|
+
const facade = (area) => {
|
|
138
|
+
const available = () => { if (errors[area])
|
|
139
|
+
throw errors[area]; };
|
|
140
|
+
const write = (operation, key, value) => {
|
|
141
|
+
available();
|
|
142
|
+
void request(area, operation, key, value).catch(error => report(error, area));
|
|
143
|
+
};
|
|
144
|
+
const methods = {
|
|
145
|
+
get length() { available(); return mirror[area].size; },
|
|
146
|
+
key(index) { available(); return [...mirror[area].keys()][Number(index) >>> 0] ?? null; },
|
|
147
|
+
getItem(key) { available(); return mirror[area].get(string(key)) ?? null; },
|
|
148
|
+
setItem(key, value) { write('setItem', string(key), string(value)); },
|
|
149
|
+
removeItem(key) { write('removeItem', string(key)); },
|
|
150
|
+
clear() { write('clear'); },
|
|
151
|
+
};
|
|
152
|
+
return new Proxy(Object.create(methods), {
|
|
153
|
+
get(target, key, receiver) { return Reflect.has(target, key) ? Reflect.get(target, key, receiver) : typeof key === 'string' ? methods.getItem(key) ?? undefined : undefined; },
|
|
154
|
+
set(_target, key, value) { methods.setItem(key, value); return true; },
|
|
155
|
+
deleteProperty(_target, key) { methods.removeItem(key); return true; },
|
|
156
|
+
ownKeys() { available(); return [...mirror[area].keys()]; },
|
|
157
|
+
has(target, key) { available(); return Reflect.has(target, key) || typeof key === 'string' && mirror[area].has(key); },
|
|
158
|
+
getOwnPropertyDescriptor(_target, key) { available(); return typeof key === 'string' && mirror[area].has(key) ? { configurable: true, enumerable: true, writable: true, value: mirror[area].get(key) } : undefined; },
|
|
159
|
+
defineProperty(_target, key, descriptor) { if (!('value' in descriptor) || descriptor.get || descriptor.set)
|
|
160
|
+
return false; methods.setItem(key, descriptor.value); return true; },
|
|
161
|
+
preventExtensions() { return false; },
|
|
162
|
+
});
|
|
163
|
+
};
|
|
164
|
+
Object.defineProperties(window, {
|
|
165
|
+
appStorage: { value: Object.freeze({ ...asyncArea('local'), session: asyncArea('session') }) },
|
|
166
|
+
localStorage: { value: facade('local') },
|
|
167
|
+
sessionStorage: { value: facade('session') },
|
|
168
|
+
});
|
|
169
|
+
// Parse at the original URL, after hydration, so ordinary resource URLs and script order survive.
|
|
170
|
+
// MessagePort listeners remain attached when document.open clears Window/Document listeners.
|
|
171
|
+
document.open();
|
|
172
|
+
document.write(html);
|
|
173
|
+
document.close();
|
|
174
|
+
}).catch(error => {
|
|
175
|
+
const message = document.createElement('p');
|
|
176
|
+
message.setAttribute('role', 'alert');
|
|
177
|
+
message.textContent = error instanceof Error ? error.message : 'Application storage initialization failed.';
|
|
178
|
+
document.body.replaceChildren(message);
|
|
179
|
+
});
|
|
180
|
+
}
|
|
181
|
+
export function quickAppStorageBootstrap(token) {
|
|
182
|
+
if (!/^[a-f0-9-]{36}$/u.test(token))
|
|
183
|
+
throw new Error('Invalid storage launch token.');
|
|
184
|
+
return `<!DOCTYPE html><html><head><meta charset="utf-8"><title>Quick App</title></head><body><script>(${quickAppStorageRuntime.toString()})(${JSON.stringify(token)},${JSON.stringify(QUICK_APP_STORAGE_PROTOCOL)},${JSON.stringify(QUICK_APP_STORAGE_LIMITS)});</script></body></html>`;
|
|
185
|
+
}
|
|
186
|
+
//# sourceMappingURL=quick-app-storage-bootstrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-app-storage-bootstrap.js","sourceRoot":"","sources":["../../../../src/shared/quick-app-storage-bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,gCAAgC,CAAA;AAErG,gGAAgG;AAChG,MAAM,UAAU,sBAAsB,CAAC,KAAa,EAAE,QAAgB,EAAE,MAA2E;IAMjJ,MAAM,MAAM,GAAG,KAAK,CAAC,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C,OAAO,CAAC,CAAC,CAAC,4CAA4C,CAAA;QAClJ,QAAQ,CAAC,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAA;IACxC,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAC,KAAa;IACpD,IAAI,CAAC,kBAAkB,CAAC,IAAI,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAA;IACrF,OAAO,kGAAkG,sBAAsB,CAAC,QAAQ,EAAE,KAAK,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,0BAA0B,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,2BAA2B,CAAA;AAC3R,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Shared by the client dictionary and the isolated credential landing page. */
|
|
2
|
+
export declare const quickAppBootstrapEn: {
|
|
3
|
+
'quickApps.opening': string;
|
|
4
|
+
'quickApps.bootstrapFailed': string;
|
|
5
|
+
};
|
|
6
|
+
export declare const quickAppBootstrapZh: Record<keyof typeof quickAppBootstrapEn, string>;
|
|
7
|
+
//# sourceMappingURL=quick-apps-bootstrap-locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-apps-bootstrap-locale.d.ts","sourceRoot":"","sources":["../../../../src/shared/quick-apps-bootstrap-locale.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAA;AACD,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,OAAO,mBAAmB,EAAE,MAAM,CAGhF,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Shared by the client dictionary and the isolated credential landing page. */
|
|
2
|
+
export const quickAppBootstrapEn = {
|
|
3
|
+
'quickApps.opening': 'Opening application…',
|
|
4
|
+
'quickApps.bootstrapFailed': 'Application access could not be established. Reopen it from Quick Apps and check browser cookie settings.',
|
|
5
|
+
};
|
|
6
|
+
export const quickAppBootstrapZh = {
|
|
7
|
+
'quickApps.opening': '正在打开应用…',
|
|
8
|
+
'quickApps.bootstrapFailed': '无法建立应用访问,请从快捷应用重新打开并检查浏览器 Cookie 设置。',
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=quick-apps-bootstrap-locale.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"quick-apps-bootstrap-locale.js","sourceRoot":"","sources":["../../../../src/shared/quick-apps-bootstrap-locale.ts"],"names":[],"mappings":"AAAA,gFAAgF;AAChF,MAAM,CAAC,MAAM,mBAAmB,GAAG;IACjC,mBAAmB,EAAE,sBAAsB;IAC3C,2BAA2B,EAAE,2GAA2G;CACzI,CAAA;AACD,MAAM,CAAC,MAAM,mBAAmB,GAAqD;IACnF,mBAAmB,EAAE,SAAS;IAC9B,2BAA2B,EAAE,sCAAsC;CACpE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/** A completed provider request, measured before translation and stream delivery. */
|
|
2
|
+
export interface RequestPerformance {
|
|
3
|
+
readonly id: string;
|
|
4
|
+
readonly startedAt: number;
|
|
5
|
+
readonly firstTokenAt: number;
|
|
6
|
+
readonly completedAt: number;
|
|
7
|
+
readonly outputTokens: number;
|
|
8
|
+
}
|
|
9
|
+
export interface RequestPerformanceBatch {
|
|
10
|
+
readonly id: string;
|
|
11
|
+
readonly samples: readonly RequestPerformance[];
|
|
12
|
+
}
|
|
13
|
+
export declare const GROK_PERFORMANCE_PROJECTION = "codingnsGrokStats";
|
|
14
|
+
export declare const GROK_CONTEXT_PROJECTION = "codingnsGrokContext";
|
|
15
|
+
//# sourceMappingURL=request-performance.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-performance.d.ts","sourceRoot":"","sources":["../../../../src/shared/request-performance.ts"],"names":[],"mappings":"AAAA,qFAAqF;AACrF,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;IAC7B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,OAAO,EAAE,SAAS,kBAAkB,EAAE,CAAA;CAChD;AAED,eAAO,MAAM,2BAA2B,sBAAsB,CAAA;AAC9D,eAAO,MAAM,uBAAuB,wBAAwB,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"request-performance.js","sourceRoot":"","sources":["../../../../src/shared/request-performance.ts"],"names":[],"mappings":"AAcA,MAAM,CAAC,MAAM,2BAA2B,GAAG,mBAAmB,CAAA;AAC9D,MAAM,CAAC,MAAM,uBAAuB,GAAG,qBAAqB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jingyi0605/codingns4dsh",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.14",
|
|
4
4
|
"description": "为 DSH 集成多种编程 Agent、项目管理、智能助理与远程访问。",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"./package.json": "./package.json"
|
|
55
55
|
},
|
|
56
56
|
"engines": {
|
|
57
|
-
"dsh": ">=0.2.0-rc.2 <=0.2.1-
|
|
57
|
+
"dsh": ">=0.2.0-rc.2 <=0.2.1-rc.2",
|
|
58
58
|
"node": ">=22.19.0"
|
|
59
59
|
},
|
|
60
60
|
"peerDependencies": {
|
|
61
61
|
"@deepseek-ai/cordis": "~4.0.4 || ~4.0.5-alpha.1",
|
|
62
|
-
"@deepseek-ai/dsh": ">=0.2.0-rc.2 <=0.2.1-
|
|
62
|
+
"@deepseek-ai/dsh": ">=0.2.0-rc.2 <=0.2.1-rc.2",
|
|
63
63
|
"l2d": "2.1.1"
|
|
64
64
|
},
|
|
65
65
|
"peerDependenciesMeta": {
|
|
@@ -145,34 +145,34 @@
|
|
|
145
145
|
"scripts/check-dsh-install.mjs"
|
|
146
146
|
],
|
|
147
147
|
"devDependencies": {
|
|
148
|
-
"@deepseek-ai/cordis": "4.0.5
|
|
149
|
-
"@deepseek-ai/cordis-plugin-group": "1.0.5
|
|
150
|
-
"@deepseek-ai/cordis-plugin-include": "1.0.10
|
|
151
|
-
"@deepseek-ai/dsh-api-remotes": "0.2.1-
|
|
152
|
-
"@deepseek-ai/dsh-api-session-controller": "0.2.1-
|
|
153
|
-
"@deepseek-ai/dsh-app-boot": "0.2.1-
|
|
154
|
-
"@deepseek-ai/dsh-client-connection": "0.2.1-
|
|
155
|
-
"@deepseek-ai/dsh-client-locale": "0.2.1-
|
|
156
|
-
"@deepseek-ai/dsh-client-store": "0.2.1-
|
|
157
|
-
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-
|
|
158
|
-
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-
|
|
159
|
-
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-
|
|
160
|
-
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-
|
|
161
|
-
"@deepseek-ai/dsh-client-ui-reference": "0.2.1-
|
|
162
|
-
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-
|
|
163
|
-
"@deepseek-ai/dsh-client-ui-session": "0.2.1-
|
|
164
|
-
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-
|
|
165
|
-
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-
|
|
166
|
-
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-
|
|
167
|
-
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-
|
|
168
|
-
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-
|
|
169
|
-
"@deepseek-ai/dsh-home-paths": "0.2.1-
|
|
170
|
-
"@deepseek-ai/dsh-launch-environment": "0.2.1-
|
|
171
|
-
"@deepseek-ai/dsh-scope": "0.2.1-
|
|
172
|
-
"@deepseek-ai/dsh-settings": "0.2.1-
|
|
173
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.1-
|
|
174
|
-
"@deepseek-ai/dsh-util-code-language": "0.2.1-
|
|
175
|
-
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-
|
|
148
|
+
"@deepseek-ai/cordis": "4.0.5",
|
|
149
|
+
"@deepseek-ai/cordis-plugin-group": "1.0.5",
|
|
150
|
+
"@deepseek-ai/cordis-plugin-include": "1.0.10",
|
|
151
|
+
"@deepseek-ai/dsh-api-remotes": "0.2.1-rc.2",
|
|
152
|
+
"@deepseek-ai/dsh-api-session-controller": "0.2.1-rc.2",
|
|
153
|
+
"@deepseek-ai/dsh-app-boot": "0.2.1-rc.2",
|
|
154
|
+
"@deepseek-ai/dsh-client-connection": "0.2.1-rc.2",
|
|
155
|
+
"@deepseek-ai/dsh-client-locale": "0.2.1-rc.2",
|
|
156
|
+
"@deepseek-ai/dsh-client-store": "0.2.1-rc.2",
|
|
157
|
+
"@deepseek-ai/dsh-client-ui-conversation": "0.2.1-rc.2",
|
|
158
|
+
"@deepseek-ai/dsh-client-ui-input-trigger": "0.2.1-rc.2",
|
|
159
|
+
"@deepseek-ai/dsh-client-ui-layout": "0.2.1-rc.2",
|
|
160
|
+
"@deepseek-ai/dsh-client-ui-primitives": "0.2.1-rc.2",
|
|
161
|
+
"@deepseek-ai/dsh-client-ui-reference": "0.2.1-rc.2",
|
|
162
|
+
"@deepseek-ai/dsh-client-ui-renderer": "0.2.1-rc.2",
|
|
163
|
+
"@deepseek-ai/dsh-client-ui-session": "0.2.1-rc.2",
|
|
164
|
+
"@deepseek-ai/dsh-client-ui-settings": "0.2.1-rc.2",
|
|
165
|
+
"@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.1-rc.2",
|
|
166
|
+
"@deepseek-ai/dsh-client-ui-slots": "0.2.1-rc.2",
|
|
167
|
+
"@deepseek-ai/dsh-client-ui-theme": "0.2.1-rc.2",
|
|
168
|
+
"@deepseek-ai/dsh-client-ui-tool": "0.2.1-rc.2",
|
|
169
|
+
"@deepseek-ai/dsh-home-paths": "0.2.1-rc.2",
|
|
170
|
+
"@deepseek-ai/dsh-launch-environment": "0.2.1-rc.2",
|
|
171
|
+
"@deepseek-ai/dsh-scope": "0.2.1-rc.2",
|
|
172
|
+
"@deepseek-ai/dsh-settings": "0.2.1-rc.2",
|
|
173
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.1-rc.2",
|
|
174
|
+
"@deepseek-ai/dsh-util-code-language": "0.2.1-rc.2",
|
|
175
|
+
"@deepseek-ai/dsh-util-workspace-path": "0.2.1-rc.2",
|
|
176
176
|
"@shikijs/langs": "^4.3.1",
|
|
177
177
|
"@tsdown/css": "0.22.14",
|
|
178
178
|
"@types/mdast": "^4.0.4",
|
|
@@ -213,7 +213,7 @@
|
|
|
213
213
|
"@codemirror/lang-markdown": "^6.5.2",
|
|
214
214
|
"@codemirror/lang-python": "^6.2.1",
|
|
215
215
|
"@codemirror/lang-sql": "^6.10.0",
|
|
216
|
-
"@deepseek-ai/dsh-typert-protocol": "0.2.1-
|
|
216
|
+
"@deepseek-ai/dsh-typert-protocol": "0.2.1-rc.2",
|
|
217
217
|
"@deepseek-ai/schemastery": "^3.18.4 || ~3.18.5-alpha.1",
|
|
218
218
|
"@lydell/node-pty": "1.1.0",
|
|
219
219
|
"@xterm/addon-fit": "^0.11.0",
|
package/profile/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Codingns4DSH Profile
|
|
2
2
|
|
|
3
|
-
这是独立的 Codingns4DSH Profile,插件版本为 `0.2.1-beta.
|
|
3
|
+
这是独立的 Codingns4DSH Profile,插件版本为 `0.2.1-beta.14`,兼容 DSH `>=0.2.0-rc.2 <=0.2.1-rc.2`,已验证 `0.2.1-rc.2`。
|
|
4
4
|
|
|
5
5
|
Profile 选择 `dsh-multi-model-provider` 和 `codingns4dsh` Bundle。
|
|
6
6
|
全局语音助理由 CodingNS 自己负责 Host 租约、浏览器设备、PCM 数据面、摘要和动作闭环,
|
|
@@ -12,7 +12,7 @@ Profile 选择 `dsh-multi-model-provider` 和 `codingns4dsh` Bundle。
|
|
|
12
12
|
发布后,在 DSH 的 Profile 中安装精确版本的插件 Bundle:
|
|
13
13
|
|
|
14
14
|
```bash
|
|
15
|
-
dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.2.1-beta.
|
|
15
|
+
dsh plugin --profile codingns4dsh add @jingyi0605/codingns4dsh@0.2.1-beta.14
|
|
16
16
|
```
|
|
17
17
|
|
|
18
18
|
Profile 安装完成后,使用 DSH 官方启动器启动:
|
package/profile/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codingns4dsh-profile",
|
|
3
|
-
"version": "0.2.1-beta.
|
|
3
|
+
"version": "0.2.1-beta.14",
|
|
4
4
|
"license": "GPL-3.0-or-later",
|
|
5
5
|
"private": true,
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"dsh": ">=0.2.0-rc.2 <=0.2.1-
|
|
8
|
+
"dsh": ">=0.2.0-rc.2 <=0.2.1-rc.2"
|
|
9
9
|
},
|
|
10
10
|
"scripts": {
|
|
11
11
|
"preinstall": "node scripts/check-dsh-install.mjs"
|
|
12
12
|
},
|
|
13
13
|
"dependencies": {
|
|
14
|
-
"@jingyi0605/codingns4dsh": "0.2.1-beta.
|
|
14
|
+
"@jingyi0605/codingns4dsh": "0.2.1-beta.14",
|
|
15
15
|
"dsh-multi-model-provider": "0.1.0-rc.11"
|
|
16
16
|
},
|
|
17
17
|
"dsh": {
|
package/profile/version.json
CHANGED
package/version.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"pluginVersion": "0.2.1-beta.
|
|
3
|
-
"dshCompatibility": ">=0.2.0-rc.2 <=0.2.1-
|
|
4
|
-
"dshTestedVersion": "0.2.1-
|
|
2
|
+
"pluginVersion": "0.2.1-beta.14",
|
|
3
|
+
"dshCompatibility": ">=0.2.0-rc.2 <=0.2.1-rc.2",
|
|
4
|
+
"dshTestedVersion": "0.2.1-rc.2",
|
|
5
5
|
"dshProtocolVersion": 1
|
|
6
6
|
}
|