@jingyi0605/codingns4dsh 0.2.0-beta.1 → 0.2.0-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 +29 -12
- package/README.md +22 -13
- package/assets/provider-icons/minimax-code.svg +4 -0
- package/assets/provider-icons/zcode.svg +14 -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 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js.map +1 -0
- package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.d.ts +50 -0
- package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.d.ts.map +1 -0
- package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.js +239 -0
- package/data/build/dist/bootstrap/dsh-peer-host-preboot-shim.js.map +1 -0
- package/data/build/dist/bootstrap/index.d.ts +3 -1
- package/data/build/dist/bootstrap/index.d.ts.map +1 -0
- package/data/build/dist/bootstrap/index.js +1 -0
- package/data/build/dist/bootstrap/index.js.map +1 -0
- package/data/build/dist/client/account-bar.d.ts +8 -1
- package/data/build/dist/client/account-bar.d.ts.map +1 -0
- package/data/build/dist/client/account-bar.js +166 -79
- package/data/build/dist/client/account-bar.js.map +1 -0
- package/data/build/dist/client/bundle.js +16641 -8889
- package/data/build/dist/client/bundle.js.map +1 -0
- package/data/build/dist/client/cli-catalog.d.ts.map +1 -0
- package/data/build/dist/client/cli-catalog.js.map +1 -0
- package/data/build/dist/client/cli-slots.d.ts.map +1 -0
- package/data/build/dist/client/cli-slots.js +32 -13
- package/data/build/dist/client/cli-slots.js.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.d.ts.map +1 -0
- package/data/build/dist/client/context-breakdown-dom.js.map +1 -0
- package/data/build/dist/client/debug/ui.d.ts +2 -1
- package/data/build/dist/client/debug/ui.d.ts.map +1 -0
- package/data/build/dist/client/debug/ui.js +40 -33
- package/data/build/dist/client/debug/ui.js.map +1 -0
- package/data/build/dist/client/delegate-command.d.ts +16 -0
- package/data/build/dist/client/delegate-command.d.ts.map +1 -0
- package/data/build/dist/client/delegate-command.js +138 -0
- package/data/build/dist/client/delegate-command.js.map +1 -0
- package/data/build/dist/client/delegate-plan.d.ts +31 -0
- package/data/build/dist/client/delegate-plan.d.ts.map +1 -0
- package/data/build/dist/client/delegate-plan.js +59 -0
- package/data/build/dist/client/delegate-plan.js.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts +40 -0
- package/data/build/dist/client/delegate-ui-dom.d.ts.map +1 -0
- package/data/build/dist/client/delegate-ui-dom.js +363 -0
- package/data/build/dist/client/delegate-ui-dom.js.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts.map +1 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +12 -5
- package/data/build/dist/client/dsh-h5-bootstrap.js.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts +3 -2
- package/data/build/dist/client/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/client/dsh-runtime-version.js +7 -6
- package/data/build/dist/client/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/client/external-tool-stream.d.ts.map +1 -0
- package/data/build/dist/client/external-tool-stream.js +44 -36
- package/data/build/dist/client/external-tool-stream.js.map +1 -0
- package/data/build/dist/client/features/cli-adapters.d.ts +7 -2
- package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -0
- package/data/build/dist/client/features/cli-adapters.js +59 -105
- package/data/build/dist/client/features/cli-adapters.js.map +1 -0
- package/data/build/dist/client/features/debug.d.ts.map +1 -0
- package/data/build/dist/client/features/debug.js +6 -4
- package/data/build/dist/client/features/debug.js.map +1 -0
- package/data/build/dist/client/features/file-management-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management-panel.js.map +1 -0
- package/data/build/dist/client/features/file-management.d.ts.map +1 -0
- package/data/build/dist/client/features/file-management.js +8 -5
- package/data/build/dist/client/features/file-management.js.map +1 -0
- package/data/build/dist/client/features/index.d.ts +4 -2
- package/data/build/dist/client/features/index.d.ts.map +1 -0
- package/data/build/dist/client/features/index.js +5 -2
- package/data/build/dist/client/features/index.js.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-panel.js +89 -11
- package/data/build/dist/client/features/lan-access-panel.js.map +1 -0
- package/data/build/dist/client/features/lan-access-status.d.ts +40 -0
- package/data/build/dist/client/features/lan-access-status.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access-status.js +118 -0
- package/data/build/dist/client/features/lan-access-status.js.map +1 -0
- package/data/build/dist/client/features/lan-access.d.ts +4 -1
- package/data/build/dist/client/features/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/features/lan-access.js +35 -5
- package/data/build/dist/client/features/lan-access.js.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-panel.js +9 -7
- package/data/build/dist/client/features/login-protection-panel.js.map +1 -0
- package/data/build/dist/client/features/login-protection-session.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection-session.js.map +1 -0
- package/data/build/dist/client/features/login-protection.d.ts.map +1 -0
- package/data/build/dist/client/features/login-protection.js +3 -3
- package/data/build/dist/client/features/login-protection.js.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts +12 -0
- package/data/build/dist/client/features/mobile-access-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access-panel.js +259 -0
- package/data/build/dist/client/features/mobile-access-panel.js.map +1 -0
- package/data/build/dist/client/features/mobile-access.d.ts +13 -0
- package/data/build/dist/client/features/mobile-access.d.ts.map +1 -0
- package/data/build/dist/client/features/mobile-access.js +79 -0
- package/data/build/dist/client/features/mobile-access.js.map +1 -0
- package/data/build/dist/client/features/peer-host.d.ts +35 -1
- package/data/build/dist/client/features/peer-host.d.ts.map +1 -0
- package/data/build/dist/client/features/peer-host.js +599 -56
- package/data/build/dist/client/features/peer-host.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js +2 -1
- package/data/build/dist/client/features/reverse-proxy-panel.js.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts.map +1 -0
- package/data/build/dist/client/features/reverse-proxy.js +3 -3
- package/data/build/dist/client/features/reverse-proxy.js.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/subscription-usage-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/terminal-enhancement.js +3 -3
- package/data/build/dist/client/features/terminal-enhancement.js.map +1 -0
- package/data/build/dist/client/features/types.d.ts +12 -0
- package/data/build/dist/client/features/types.d.ts.map +1 -0
- package/data/build/dist/client/features/types.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +5 -2
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js +24 -6
- package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -0
- package/data/build/dist/client/file-management-dom.d.ts +5 -0
- package/data/build/dist/client/file-management-dom.d.ts.map +1 -0
- package/data/build/dist/client/file-management-dom.js +78 -38
- package/data/build/dist/client/file-management-dom.js.map +1 -0
- package/data/build/dist/client/git-history-graph.d.ts +81 -0
- package/data/build/dist/client/git-history-graph.d.ts.map +1 -0
- package/data/build/dist/client/git-history-graph.js +195 -0
- package/data/build/dist/client/git-history-graph.js.map +1 -0
- package/data/build/dist/client/git-management.d.ts +2 -0
- package/data/build/dist/client/git-management.d.ts.map +1 -0
- package/data/build/dist/client/git-management.js +284 -108
- package/data/build/dist/client/git-management.js.map +1 -0
- package/data/build/dist/client/git-panel-styles.d.ts +28 -0
- package/data/build/dist/client/git-panel-styles.d.ts.map +1 -0
- package/data/build/dist/client/git-panel-styles.js +95 -0
- package/data/build/dist/client/git-panel-styles.js.map +1 -0
- package/data/build/dist/client/git-workspace-events.d.ts +7 -0
- package/data/build/dist/client/git-workspace-events.d.ts.map +1 -0
- package/data/build/dist/client/git-workspace-events.js +32 -0
- package/data/build/dist/client/git-workspace-events.js.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts.map +1 -0
- package/data/build/dist/client/h5-bootstrap-entry.js.map +1 -0
- package/data/build/dist/client/host-router.d.ts.map +1 -0
- package/data/build/dist/client/host-router.js.map +1 -0
- package/data/build/dist/client/index.d.ts +7 -4
- package/data/build/dist/client/index.d.ts.map +1 -0
- package/data/build/dist/client/index.js +16 -9
- package/data/build/dist/client/index.js.map +1 -0
- package/data/build/dist/client/lan-access.d.ts.map +1 -0
- package/data/build/dist/client/lan-access.js.map +1 -0
- package/data/build/dist/client/locale.d.ts +7 -0
- package/data/build/dist/client/locale.d.ts.map +1 -0
- package/data/build/dist/client/locale.js +231 -47
- package/data/build/dist/client/locale.js.map +1 -0
- package/data/build/dist/client/locales/debug.d.ts +9 -0
- package/data/build/dist/client/locales/debug.d.ts.map +1 -0
- package/data/build/dist/client/locales/debug.js +163 -0
- package/data/build/dist/client/locales/debug.js.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts +9 -0
- package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -0
- package/data/build/dist/client/locales/fileWorkspace.js +139 -0
- package/data/build/dist/client/locales/fileWorkspace.js.map +1 -0
- package/data/build/dist/client/locales/git.d.ts +9 -0
- package/data/build/dist/client/locales/git.d.ts.map +1 -0
- package/data/build/dist/client/locales/git.js +223 -0
- package/data/build/dist/client/locales/git.js.map +1 -0
- package/data/build/dist/client/locales/panels.d.ts +9 -0
- package/data/build/dist/client/locales/panels.d.ts.map +1 -0
- package/data/build/dist/client/locales/panels.js +33 -0
- package/data/build/dist/client/locales/panels.js.map +1 -0
- package/data/build/dist/client/locales/peerHost.d.ts +9 -0
- package/data/build/dist/client/locales/peerHost.d.ts.map +1 -0
- package/data/build/dist/client/locales/peerHost.js +153 -0
- package/data/build/dist/client/locales/peerHost.js.map +1 -0
- package/data/build/dist/client/locales/peerHostWorkspace.d.ts +9 -0
- package/data/build/dist/client/locales/peerHostWorkspace.d.ts.map +1 -0
- package/data/build/dist/client/locales/peerHostWorkspace.js +69 -0
- package/data/build/dist/client/locales/peerHostWorkspace.js.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts +9 -0
- package/data/build/dist/client/locales/terminalAuth.d.ts.map +1 -0
- package/data/build/dist/client/locales/terminalAuth.js +67 -0
- package/data/build/dist/client/locales/terminalAuth.js.map +1 -0
- package/data/build/dist/client/locales/usage.d.ts +9 -0
- package/data/build/dist/client/locales/usage.d.ts.map +1 -0
- package/data/build/dist/client/locales/usage.js +195 -0
- package/data/build/dist/client/locales/usage.js.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts +44 -0
- package/data/build/dist/client/mobile-session-interaction.d.ts.map +1 -0
- package/data/build/dist/client/mobile-session-interaction.js +291 -0
- package/data/build/dist/client/mobile-session-interaction.js.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts +49 -0
- package/data/build/dist/client/mobile-settings-modal-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js +152 -0
- package/data/build/dist/client/mobile-settings-modal-dom.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts +97 -0
- package/data/build/dist/client/mobile-sidebar-gestures.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js +316 -0
- package/data/build/dist/client/mobile-sidebar-gestures.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts +18 -0
- package/data/build/dist/client/mobile-sidebar-logo.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-logo.js +15 -0
- package/data/build/dist/client/mobile-sidebar-logo.js.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts +114 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.d.ts.map +1 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js +452 -0
- package/data/build/dist/client/mobile-sidebar-rail-dom.js.map +1 -0
- package/data/build/dist/client/mobile-vibration.d.ts +16 -0
- package/data/build/dist/client/mobile-vibration.d.ts.map +1 -0
- package/data/build/dist/client/mobile-vibration.js +20 -0
- package/data/build/dist/client/mobile-vibration.js.map +1 -0
- package/data/build/dist/client/native-workspace-store.d.ts +29 -0
- package/data/build/dist/client/native-workspace-store.d.ts.map +1 -0
- package/data/build/dist/client/native-workspace-store.js +64 -0
- package/data/build/dist/client/native-workspace-store.js.map +1 -0
- package/data/build/dist/client/peer-host-aggregate-refresh.d.ts +13 -0
- package/data/build/dist/client/peer-host-aggregate-refresh.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-aggregate-refresh.js +14 -0
- package/data/build/dist/client/peer-host-aggregate-refresh.js.map +1 -0
- package/data/build/dist/client/peer-host-color.d.ts +13 -0
- package/data/build/dist/client/peer-host-color.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-color.js +57 -0
- package/data/build/dist/client/peer-host-color.js.map +1 -0
- package/data/build/dist/client/peer-host-connection-button.d.ts +14 -1
- package/data/build/dist/client/peer-host-connection-button.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-connection-button.js +18 -7
- package/data/build/dist/client/peer-host-connection-button.js.map +1 -0
- package/data/build/dist/client/peer-host-management-api.d.ts +34 -0
- package/data/build/dist/client/peer-host-management-api.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-management-api.js +12 -0
- package/data/build/dist/client/peer-host-management-api.js.map +1 -0
- package/data/build/dist/client/peer-host-management-panel.d.ts +4 -1
- package/data/build/dist/client/peer-host-management-panel.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-management-panel.js +533 -94
- package/data/build/dist/client/peer-host-management-panel.js.map +1 -0
- package/data/build/dist/client/peer-host-native-projection.d.ts +47 -0
- package/data/build/dist/client/peer-host-native-projection.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-native-projection.js +142 -0
- package/data/build/dist/client/peer-host-native-projection.js.map +1 -0
- package/data/build/dist/client/peer-host-native-store-projection.d.ts +21 -0
- package/data/build/dist/client/peer-host-native-store-projection.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-native-store-projection.js +114 -0
- package/data/build/dist/client/peer-host-native-store-projection.js.map +1 -0
- package/data/build/dist/client/peer-host-scoped-client.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-scoped-client.js +5 -5
- package/data/build/dist/client/peer-host-scoped-client.js.map +1 -0
- package/data/build/dist/client/peer-host-session-controller.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-session-controller.js.map +1 -0
- package/data/build/dist/client/peer-host-workspace-tab.d.ts +52 -0
- package/data/build/dist/client/peer-host-workspace-tab.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-workspace-tab.js +492 -0
- package/data/build/dist/client/peer-host-workspace-tab.js.map +1 -0
- package/data/build/dist/client/peer-host-workspace-tag.d.ts +47 -0
- package/data/build/dist/client/peer-host-workspace-tag.d.ts.map +1 -0
- package/data/build/dist/client/peer-host-workspace-tag.js +207 -0
- package/data/build/dist/client/peer-host-workspace-tag.js.map +1 -0
- package/data/build/dist/client/popup-dismiss.d.ts +48 -0
- package/data/build/dist/client/popup-dismiss.d.ts.map +1 -0
- package/data/build/dist/client/popup-dismiss.js +93 -0
- package/data/build/dist/client/popup-dismiss.js.map +1 -0
- package/data/build/dist/client/provider-icon-assets.d.ts.map +1 -0
- package/data/build/dist/client/provider-icon-assets.js +4 -0
- package/data/build/dist/client/provider-icon-assets.js.map +1 -0
- package/data/build/dist/client/provider-icons.d.ts +18 -3
- package/data/build/dist/client/provider-icons.d.ts.map +1 -0
- package/data/build/dist/client/provider-icons.js +30 -14
- package/data/build/dist/client/provider-icons.js.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts +76 -0
- package/data/build/dist/client/pwa-install-prompt.d.ts.map +1 -0
- package/data/build/dist/client/pwa-install-prompt.js +179 -0
- package/data/build/dist/client/pwa-install-prompt.js.map +1 -0
- package/data/build/dist/client/pwa-notifications.d.ts +105 -0
- package/data/build/dist/client/pwa-notifications.d.ts.map +1 -0
- package/data/build/dist/client/pwa-notifications.js +192 -0
- package/data/build/dist/client/pwa-notifications.js.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts +11 -0
- package/data/build/dist/client/quick-phrase-layout.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-layout.js +20 -0
- package/data/build/dist/client/quick-phrase-layout.js.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.d.ts.map +1 -0
- package/data/build/dist/client/quick-phrase-slot.js +20 -8
- package/data/build/dist/client/quick-phrase-slot.js.map +1 -0
- package/data/build/dist/client/remote-web-context.d.ts.map +1 -0
- package/data/build/dist/client/remote-web-context.js.map +1 -0
- package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -0
- package/data/build/dist/client/session-adapter-cache.js.map +1 -0
- package/data/build/dist/client/session-changed-files-view.d.ts +8 -1
- package/data/build/dist/client/session-changed-files-view.d.ts.map +1 -0
- package/data/build/dist/client/session-changed-files-view.js +71 -28
- package/data/build/dist/client/session-changed-files-view.js.map +1 -0
- package/data/build/dist/client/settings-anchor.d.ts +73 -0
- package/data/build/dist/client/settings-anchor.d.ts.map +1 -0
- package/data/build/dist/client/settings-anchor.js +70 -0
- package/data/build/dist/client/settings-anchor.js.map +1 -0
- package/data/build/dist/client/settings-bridge.d.ts.map +1 -0
- package/data/build/dist/client/settings-bridge.js.map +1 -0
- package/data/build/dist/client/settings-section.d.ts.map +1 -0
- package/data/build/dist/client/settings-section.js +19 -5
- package/data/build/dist/client/settings-section.js.map +1 -0
- package/data/build/dist/client/subscription-slot.d.ts +4 -1
- package/data/build/dist/client/subscription-slot.d.ts.map +1 -0
- package/data/build/dist/client/subscription-slot.js +328 -69
- package/data/build/dist/client/subscription-slot.js.map +1 -0
- package/data/build/dist/client/terminal/index.d.ts.map +1 -0
- package/data/build/dist/client/terminal/index.js.map +1 -0
- package/data/build/dist/client/terminal/model.d.ts +13 -2
- package/data/build/dist/client/terminal/model.d.ts.map +1 -0
- package/data/build/dist/client/terminal/model.js +27 -7
- package/data/build/dist/client/terminal/model.js.map +1 -0
- package/data/build/dist/client/terminal/recovery.d.ts.map +1 -0
- package/data/build/dist/client/terminal/recovery.js.map +1 -0
- package/data/build/dist/client/terminal/styles.d.ts.map +1 -0
- package/data/build/dist/client/terminal/styles.js.map +1 -0
- package/data/build/dist/client/terminal/ui.d.ts.map +1 -0
- package/data/build/dist/client/terminal/ui.js +3 -1
- package/data/build/dist/client/terminal/ui.js.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts +4 -1
- package/data/build/dist/client/terminal/xterm-view.d.ts.map +1 -0
- package/data/build/dist/client/terminal/xterm-view.js +19 -17
- package/data/build/dist/client/terminal/xterm-view.js.map +1 -0
- package/data/build/dist/client/theme.d.ts +17 -5
- package/data/build/dist/client/theme.d.ts.map +1 -0
- package/data/build/dist/client/theme.js +35 -13
- package/data/build/dist/client/theme.js.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +17 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +192 -47
- package/data/build/dist/client/workspace-session-archive-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-fiber.js.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts +3 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-logo-dom.js +3 -1
- package/data/build/dist/client/workspace-session-logo-dom.js.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.d.ts.map +1 -0
- package/data/build/dist/client/workspace-session-rightbar-dom.js.map +1 -0
- 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 -0
- package/data/build/dist/client/workspace-session-visibility-dom.js +46 -17
- package/data/build/dist/client/workspace-session-visibility-dom.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/conversation-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/locale-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts +10 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js +20 -0
- package/data/build/dist/dsh-capabilities/client/primitives-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/sidebar-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/theme-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/client/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/config-forms-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/connection-rpc-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/settings-scope-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/host/typert-adapter.js.map +1 -0
- package/data/build/dist/dsh-capabilities/index.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/index.js.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/matrix.js +44 -31
- package/data/build/dist/dsh-capabilities/matrix.js.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/registry.js +6 -2
- package/data/build/dist/dsh-capabilities/registry.js.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/routes.js +96 -11
- package/data/build/dist/dsh-capabilities/routes.js.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/settings-store.js.map +1 -0
- package/data/build/dist/dsh-capabilities/types.d.ts +1 -1
- package/data/build/dist/dsh-capabilities/types.d.ts.map +1 -0
- package/data/build/dist/dsh-capabilities/types.js.map +1 -0
- package/data/build/dist/features/host-router.d.ts.map +1 -0
- package/data/build/dist/features/host-router.js.map +1 -0
- package/data/build/dist/features/index.d.ts.map +1 -0
- package/data/build/dist/features/index.js.map +1 -0
- package/data/build/dist/features/registry.d.ts.map +1 -0
- package/data/build/dist/features/registry.js.map +1 -0
- package/data/build/dist/features/resource-scope/index.d.ts.map +1 -0
- package/data/build/dist/features/resource-scope/index.js.map +1 -0
- package/data/build/dist/host/auth-session.d.ts.map +1 -0
- package/data/build/dist/host/auth-session.js.map +1 -0
- package/data/build/dist/host/browser-text.d.ts +30 -0
- package/data/build/dist/host/browser-text.d.ts.map +1 -0
- package/data/build/dist/host/browser-text.js +105 -0
- package/data/build/dist/host/browser-text.js.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts +14 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js +78 -0
- package/data/build/dist/host/cli-adapters/attachment-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +28 -2
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +78 -5
- package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/claude-model-options.js +22 -9
- package/data/build/dist/host/cli-adapters/claude-model-options.js.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +10 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +352 -49
- package/data/build/dist/host/cli-adapters/codex-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +24 -2
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +296 -34
- package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts +47 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js +158 -0
- package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts +32 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +121 -0
- package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +5 -4
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +49 -1
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js +73 -0
- package/data/build/dist/host/cli-adapters/dsh-virtual-providers.js.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/feature.js +348 -19
- package/data/build/dist/host/cli-adapters/feature.js.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js +27 -8
- package/data/build/dist/host/cli-adapters/gemini-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js +27 -9
- package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +22 -6
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +118 -21
- package/data/build/dist/host/cli-adapters/json-rpc-process.js.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +33 -7
- package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +11 -2
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +15 -6
- package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/legacy-session-settings.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts +23 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js +120 -0
- package/data/build/dist/host/cli-adapters/mcode-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts +56 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js +544 -0
- package/data/build/dist/host/cli-adapters/mcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +30 -5
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js +83 -8
- package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts +51 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js +193 -0
- package/data/build/dist/host/cli-adapters/native-subagent-dispatch.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js +4 -0
- package/data/build/dist/host/cli-adapters/native-subagent-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-proxy.js +18 -15
- package/data/build/dist/host/cli-adapters/native-team-proxy.js.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js +107 -0
- package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/official-provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +20 -4
- package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js +30 -8
- package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +8 -1
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +98 -2
- package/data/build/dist/host/cli-adapters/provider-subscription.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts +4 -0
- package/data/build/dist/host/cli-adapters/registry-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js +9 -0
- package/data/build/dist/host/cli-adapters/registry-holder.js.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +13 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/registry.js +37 -0
- package/data/build/dist/host/cli-adapters/registry.js.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-probe.js.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +6 -1
- package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/session-store.js +42 -4
- package/data/build/dist/host/cli-adapters/session-store.js.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +2 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +30 -4
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts +5 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js +66 -0
- package/data/build/dist/host/cli-adapters/subagent-tool.js.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts +57 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js +843 -0
- package/data/build/dist/host/cli-adapters/zcode-driver.js.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts +28 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.d.ts.map +1 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js +212 -0
- package/data/build/dist/host/cli-adapters/zcode-subscription.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts +27 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js +51 -0
- package/data/build/dist/host/cli-bridge/bridge-holder.js.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts +34 -0
- package/data/build/dist/host/cli-bridge/bridge-server.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js +135 -0
- package/data/build/dist/host/cli-bridge/bridge-server.js.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts +25 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js +60 -0
- package/data/build/dist/host/cli-bridge/command-code-mod.js.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts +19 -0
- package/data/build/dist/host/cli-bridge/dispatch.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/dispatch.js +90 -0
- package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts +28 -0
- package/data/build/dist/host/cli-bridge/injections.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/injections.js +131 -0
- package/data/build/dist/host/cli-bridge/injections.js.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts +8 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.d.ts.map +1 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js +151 -0
- package/data/build/dist/host/cli-bridge/mcp-stdio-entry.js.map +1 -0
- package/data/build/dist/host/control-api-client.d.ts.map +1 -0
- package/data/build/dist/host/control-api-client.js.map +1 -0
- package/data/build/dist/host/credential-store.d.ts.map +1 -0
- package/data/build/dist/host/credential-store.js.map +1 -0
- package/data/build/dist/host/debug.d.ts.map +1 -0
- package/data/build/dist/host/debug.js.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts.map +1 -0
- package/data/build/dist/host/dsh-device-runtime.js.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts.map +1 -0
- package/data/build/dist/host/dsh-gateway-feature.js.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts.map +1 -0
- package/data/build/dist/host/dsh-runtime-version.js.map +1 -0
- package/data/build/dist/host/features/auth.d.ts.map +1 -0
- package/data/build/dist/host/features/auth.js.map +1 -0
- package/data/build/dist/host/features/debug.d.ts.map +1 -0
- package/data/build/dist/host/features/debug.js.map +1 -0
- package/data/build/dist/host/features/file-management.d.ts.map +1 -0
- package/data/build/dist/host/features/file-management.js.map +1 -0
- package/data/build/dist/host/features/git-management.d.ts.map +1 -0
- package/data/build/dist/host/features/git-management.js +97 -10
- package/data/build/dist/host/features/git-management.js.map +1 -0
- package/data/build/dist/host/features/host-status.d.ts.map +1 -0
- package/data/build/dist/host/features/host-status.js.map +1 -0
- package/data/build/dist/host/features/index.d.ts.map +1 -0
- package/data/build/dist/host/features/index.js.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/features/lan-access-dsh.js +34 -1
- package/data/build/dist/host/features/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/features/peer-host.d.ts.map +1 -0
- package/data/build/dist/host/features/peer-host.js +341 -20
- package/data/build/dist/host/features/peer-host.js.map +1 -0
- package/data/build/dist/host/features/terminal-process.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-process.js.map +1 -0
- package/data/build/dist/host/features/terminal-status.d.ts.map +1 -0
- package/data/build/dist/host/features/terminal-status.js.map +1 -0
- package/data/build/dist/host/features/types.d.ts +3 -0
- package/data/build/dist/host/features/types.d.ts.map +1 -0
- package/data/build/dist/host/features/types.js.map +1 -0
- package/data/build/dist/host/host-router.d.ts.map +1 -0
- package/data/build/dist/host/host-router.js.map +1 -0
- package/data/build/dist/host/index-injection.d.ts +15 -0
- package/data/build/dist/host/index-injection.d.ts.map +1 -0
- package/data/build/dist/host/index-injection.js +45 -0
- package/data/build/dist/host/index-injection.js.map +1 -0
- package/data/build/dist/host/index.d.ts +12 -2
- package/data/build/dist/host/index.d.ts.map +1 -0
- package/data/build/dist/host/index.js +75 -3
- package/data/build/dist/host/index.js.map +1 -0
- package/data/build/dist/host/lan-access-dsh.d.ts +93 -2
- package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/host/lan-access-dsh.js +438 -27
- package/data/build/dist/host/lan-access-dsh.js.map +1 -0
- package/data/build/dist/host/login-attempt-guard.d.ts +55 -0
- package/data/build/dist/host/login-attempt-guard.d.ts.map +1 -0
- package/data/build/dist/host/login-attempt-guard.js +201 -0
- package/data/build/dist/host/login-attempt-guard.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.d.ts +146 -0
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.js +322 -0
- package/data/build/dist/host/modules/peer-host/aggregated-host-transport.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/dsh-native-summary-source.d.ts +8 -0
- package/data/build/dist/host/modules/peer-host/dsh-native-summary-source.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/dsh-native-summary-source.js +120 -0
- package/data/build/dist/host/modules/peer-host/dsh-native-summary-source.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts +25 -0
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js +26 -3
- package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-ws-connector.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-ws-connector.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/host-ws-proxy-service.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.d.ts +10 -0
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.js +27 -12
- package/data/build/dist/host/modules/peer-host/peer-host-aggregate-service.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.js +3 -0
- package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts +2 -0
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.js +6 -0
- package/data/build/dist/host/modules/peer-host/peer-host-handshake.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts +17 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js +52 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-dispatch.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts +25 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js +187 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-protocol.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.d.ts +30 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.js +120 -0
- package/data/build/dist/host/modules/peer-host/peer-host-native-transport.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-relay.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-relay.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.d.ts +60 -0
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.js +181 -0
- package/data/build/dist/host/modules/peer-host/peer-host-remote-summary-source.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts +20 -1
- package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-session.js +118 -37
- package/data/build/dist/host/modules/peer-host/peer-host-session.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-store.d.ts +21 -0
- package/data/build/dist/host/modules/peer-host/peer-host-store.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-store.js +65 -3
- package/data/build/dist/host/modules/peer-host/peer-host-store.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.d.ts +49 -0
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.js +174 -0
- package/data/build/dist/host/modules/peer-host/peer-host-virtual-registry.js.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-ws-gateway.d.ts.map +1 -0
- package/data/build/dist/host/modules/peer-host/peer-host-ws-gateway.js.map +1 -0
- package/data/build/dist/host/modules/pwa/index.d.ts +7 -0
- package/data/build/dist/host/modules/pwa/index.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/index.js +7 -0
- package/data/build/dist/host/modules/pwa/index.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts +50 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js +182 -0
- package/data/build/dist/host/modules/pwa/pwa-assets.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js +38 -0
- package/data/build/dist/host/modules/pwa/pwa-client-script.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts +10 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js +185 -0
- package/data/build/dist/host/modules/pwa/pwa-icons.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts +74 -0
- package/data/build/dist/host/modules/pwa/pwa-push.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js +288 -0
- package/data/build/dist/host/modules/pwa/pwa-push.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts +17 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js +82 -0
- package/data/build/dist/host/modules/pwa/pwa-session-notifications.js.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts +12 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.d.ts.map +1 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js +47 -0
- package/data/build/dist/host/modules/pwa/pwa-viewport.js.map +1 -0
- package/data/build/dist/host/native-session-bridge.d.ts.map +1 -0
- package/data/build/dist/host/native-session-bridge.js +86 -55
- package/data/build/dist/host/native-session-bridge.js.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts +33 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts.map +1 -0
- package/data/build/dist/host/relay-tunnel-runtime.js +71 -19
- package/data/build/dist/host/relay-tunnel-runtime.js.map +1 -0
- package/data/build/dist/host/remote-web-runtime.d.ts.map +1 -0
- package/data/build/dist/host/remote-web-runtime.js.map +1 -0
- package/data/build/dist/host/rpc-table.d.ts.map +1 -0
- package/data/build/dist/host/rpc-table.js.map +1 -0
- package/data/build/dist/host/rpc.d.ts.map +1 -0
- package/data/build/dist/host/rpc.js +21 -6
- package/data/build/dist/host/rpc.js.map +1 -0
- package/data/build/dist/host/session-changes.d.ts.map +1 -0
- package/data/build/dist/host/session-changes.js.map +1 -0
- package/data/build/dist/host/session-migration-repair.d.ts.map +1 -0
- package/data/build/dist/host/session-migration-repair.js.map +1 -0
- package/data/build/dist/host/settings.d.ts.map +1 -0
- package/data/build/dist/host/settings.js +33 -1
- package/data/build/dist/host/settings.js.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts.map +1 -0
- package/data/build/dist/host/terminal/attachment-registry.js.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts.map +1 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts.map +1 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts.map +1 -0
- package/data/build/dist/host/terminal/controller-factory.js.map +1 -0
- package/data/build/dist/host/terminal/index.d.ts.map +1 -0
- package/data/build/dist/host/terminal/index.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-adapter.js.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts.map +1 -0
- package/data/build/dist/host/terminal/runtime-manager.js.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts.map +1 -0
- package/data/build/dist/host/terminal/shell-detection.js.map +1 -0
- package/data/build/dist/host/terminal/startup.d.ts.map +1 -0
- package/data/build/dist/host/terminal/startup.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-controller.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-process-store.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-service.js.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts.map +1 -0
- package/data/build/dist/host/terminal/terminal-store.js.map +1 -0
- package/data/build/dist/index.d.ts +2 -2
- package/data/build/dist/index.d.ts.map +1 -0
- package/data/build/dist/index.js +2 -2
- package/data/build/dist/index.js.map +1 -0
- package/data/build/dist/shared/contracts/auth.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/auth.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 -0
- package/data/build/dist/shared/contracts/cli-adapter.js.map +1 -0
- package/data/build/dist/shared/contracts/command-code.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/command-code.js.map +1 -0
- package/data/build/dist/shared/contracts/config.d.ts +89 -0
- package/data/build/dist/shared/contracts/config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/config.js +92 -0
- package/data/build/dist/shared/contracts/config.js.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug-config.js.map +1 -0
- package/data/build/dist/shared/contracts/debug.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/debug.js.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/dsh-device.js.map +1 -0
- package/data/build/dist/shared/contracts/errors.d.ts +2 -2
- package/data/build/dist/shared/contracts/errors.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/errors.js.map +1 -0
- package/data/build/dist/shared/contracts/feature.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/feature.js.map +1 -0
- package/data/build/dist/shared/contracts/file-management.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/file-management.js.map +1 -0
- package/data/build/dist/shared/contracts/git.d.ts +15 -1
- package/data/build/dist/shared/contracts/git.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/git.js.map +1 -0
- package/data/build/dist/shared/contracts/host-status.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/host-status.js.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +23 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js.map +1 -0
- package/data/build/dist/shared/contracts/peer-host.d.ts +160 -1
- package/data/build/dist/shared/contracts/peer-host.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/peer-host.js +73 -0
- package/data/build/dist/shared/contracts/peer-host.js.map +1 -0
- package/data/build/dist/shared/contracts/signaling.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/signaling.js.map +1 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +15 -0
- package/data/build/dist/shared/contracts/subscription.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/subscription.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal-process.js.map +1 -0
- package/data/build/dist/shared/contracts/terminal.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/terminal.js.map +1 -0
- package/data/build/dist/shared/contracts/transport.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/transport.js.map +1 -0
- package/data/build/dist/shared/contracts/version.d.ts +14 -6
- package/data/build/dist/shared/contracts/version.d.ts.map +1 -0
- package/data/build/dist/shared/contracts/version.js +23 -8
- package/data/build/dist/shared/contracts/version.js.map +1 -0
- package/data/build/dist/shared/debug.d.ts.map +1 -0
- package/data/build/dist/shared/debug.js.map +1 -0
- package/data/build/dist/shared/index.d.ts +6 -6
- package/data/build/dist/shared/index.d.ts.map +1 -0
- package/data/build/dist/shared/index.js +3 -3
- package/data/build/dist/shared/index.js.map +1 -0
- package/data/build/dist/transport/carrier.d.ts.map +1 -0
- package/data/build/dist/transport/carrier.js.map +1 -0
- package/data/build/dist/transport/debug.d.ts.map +1 -0
- package/data/build/dist/transport/debug.js +2 -0
- package/data/build/dist/transport/debug.js.map +1 -0
- package/data/build/dist/transport/dsh-envelope.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-envelope.js.map +1 -0
- package/data/build/dist/transport/dsh-gateway.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-gateway.js.map +1 -0
- package/data/build/dist/transport/dsh-session.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-session.js.map +1 -0
- package/data/build/dist/transport/dsh-transport.d.ts.map +1 -0
- package/data/build/dist/transport/dsh-transport.js.map +1 -0
- package/data/build/dist/transport/frame.d.ts.map +1 -0
- package/data/build/dist/transport/frame.js.map +1 -0
- package/data/build/dist/transport/index.d.ts +1 -1
- package/data/build/dist/transport/index.d.ts.map +1 -0
- package/data/build/dist/transport/index.js +1 -1
- package/data/build/dist/transport/index.js.map +1 -0
- package/data/build/dist/transport/multiplexer.d.ts.map +1 -0
- package/data/build/dist/transport/multiplexer.js.map +1 -0
- package/data/build/dist/transport/webrtc-client.d.ts +8 -0
- package/data/build/dist/transport/webrtc-client.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-client.js +135 -9
- package/data/build/dist/transport/webrtc-client.js.map +1 -0
- package/data/build/dist/transport/webrtc-host.d.ts.map +1 -0
- package/data/build/dist/transport/webrtc-host.js +5 -1
- package/data/build/dist/transport/webrtc-host.js.map +1 -0
- package/data/build/dist/typert.host.d.ts.map +1 -0
- package/data/build/dist/typert.host.js.map +1 -0
- package/data/build/dist/typert.remote-client.d.ts.map +1 -0
- package/data/build/dist/typert.remote-client.js.map +1 -0
- package/package.json +36 -19
- package/profile/README.md +18 -5
- package/profile/package.json +3 -3
- package/profile/scripts/check-dsh-install.mjs +100 -9
- package/profile/version.json +3 -3
- package/scripts/check-dsh-install.mjs +98 -17
- package/version.json +3 -3
- package/data/build/dist/client/host-navigation.d.ts +0 -29
- package/data/build/dist/client/host-navigation.js +0 -29
- package/data/build/dist/client/peer-host-native-session-ui.d.ts +0 -60
- package/data/build/dist/client/peer-host-native-session-ui.js +0 -372
|
@@ -12,17 +12,29 @@ export declare const dshThemeColor: {
|
|
|
12
12
|
readonly labelCaption: "var(--dsw-alias-label-caption, GrayText)";
|
|
13
13
|
readonly border: "var(--dsw-alias-border-l2, #d9d9d9)";
|
|
14
14
|
readonly inputBackground: "var(--dsw-specific-input-major, Canvas)";
|
|
15
|
-
readonly surfaceSubtle: "var(--dsw-alias-bg-
|
|
15
|
+
readonly surfaceSubtle: "var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.06))";
|
|
16
16
|
readonly buttonBackground: "var(--dsw-alias-button-elevated-fill, transparent)";
|
|
17
|
-
readonly menuBackground: "var(--dsw-alias-bg-layer-3, var(--dsw-
|
|
18
|
-
readonly
|
|
17
|
+
readonly menuBackground: "var(--dsw-alias-bg-layer-3, var(--dsw-specific-menu, Canvas))";
|
|
18
|
+
readonly cardBackground: "var(--dsw-alias-bg-layer-1, Canvas)";
|
|
19
|
+
readonly pageBackground: "var(--dsw-alias-bg-base, Canvas)";
|
|
19
20
|
readonly overlay: "var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.45))";
|
|
20
21
|
readonly accent: "var(--dsw-alias-button-info-fill, #1677ff)";
|
|
22
|
+
readonly primaryBackground: "var(--dsw-alias-button-primary-fill, #1677ff)";
|
|
23
|
+
readonly primaryHoverBackground: "var(--dsw-alias-button-primary-hover, #4096ff)";
|
|
24
|
+
readonly primaryForeground: "var(--dsw-alias-label-primary-foreground, #fff)";
|
|
21
25
|
readonly success: "var(--dsw-alias-state-success-primary, #16803c)";
|
|
22
26
|
readonly error: "var(--dsw-alias-state-error-primary, #b42318)";
|
|
27
|
+
readonly fieldBorder: "var(--dsw-alias-border-l4, #d9d9d9)";
|
|
28
|
+
readonly menuBorder: "var(--dsw-alias-border-l3, #d9d9d9)";
|
|
23
29
|
readonly switchThumb: "var(--dsw-static-neutral-00, #fff)";
|
|
24
30
|
readonly prominentShadow: "var(--dsw-elevation-prominent, 0 12px 40px rgba(0, 0, 0, 0.25))";
|
|
25
|
-
readonly subtleShadow: "var(--dsw-elevation-
|
|
31
|
+
readonly subtleShadow: "var(--dsw-elevation-soft, 0 1px 2px rgba(0, 0, 0, 0.06))";
|
|
32
|
+
readonly hoverBackground: "var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08))";
|
|
33
|
+
readonly activeBackground: "var(--dsw-alias-interactive-bg-active, rgba(127, 127, 127, 0.14))";
|
|
34
|
+
readonly focusRing: "var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))";
|
|
35
|
+
readonly diffAddedBackground: "var(--dsw-alias-code-diff-added, rgba(34, 197, 94, 0.13))";
|
|
36
|
+
readonly diffDeletedBackground: "var(--dsw-alias-code-diff-deleted, rgba(239, 68, 68, 0.13))";
|
|
37
|
+
readonly codeFont: "var(--dsw-font-markdown-code-font-family, ui-monospace, SFMono-Regular, Menlo, monospace)";
|
|
26
38
|
};
|
|
27
39
|
/** 设置模块根节点显式接入 DSH 的主文字色。 */
|
|
28
40
|
export declare const dshFormRootStyle: CSSProperties;
|
|
@@ -30,7 +42,7 @@ export declare const dshFormRootStyle: CSSProperties;
|
|
|
30
42
|
export declare const dshFieldStyle: CSSProperties;
|
|
31
43
|
/** 普通表单按钮共用的主题表面。 */
|
|
32
44
|
export declare const dshButtonStyle: CSSProperties;
|
|
33
|
-
/** Codingns4DSH
|
|
45
|
+
/** Codingns4DSH 设置页共享外壳:占满宿主内容区,避免重复留白。 */
|
|
34
46
|
export declare const dshSettingsPageStyle: CSSProperties;
|
|
35
47
|
/** 设置页标题区,使用宿主主题颜色而不是独立品牌色。 */
|
|
36
48
|
export declare const dshSettingsHeaderStyle: CSSProperties;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../../../../src/client/theme.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAA;AAE1C;;;;;GAKG;AACH,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoChB,CAAA;AAEV,6BAA6B;AAC7B,eAAO,MAAM,gBAAgB,EAAE,aAE9B,CAAA;AAED,uCAAuC;AACvC,eAAO,MAAM,aAAa,EAAE,aAI3B,CAAA;AAED,qBAAqB;AACrB,eAAO,MAAM,cAAc,EAAE,aAI5B,CAAA;AAED,2CAA2C;AAC3C,eAAO,MAAM,oBAAoB,EAAE,aAclC,CAAA;AAED,+BAA+B;AAC/B,eAAO,MAAM,sBAAsB,EAAE,aAMpC,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,aAMnC,CAAA;AAED,eAAO,MAAM,wBAAwB,EAAE,aAKtC,CAAA;AAED,uBAAuB;AACvB,eAAO,MAAM,oBAAoB,EAAE,aAMlC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,aAUrC,CAAA;AAED,eAAO,MAAM,2BAA2B,EAAE,aAMzC,CAAA;AAED,eAAO,MAAM,4BAA4B,EAAE,aAK1C,CAAA;AAED,eAAO,MAAM,kCAAkC,EAAE,aAMhD,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,aAOlC,CAAA;AAED,eAAO,MAAM,0BAA0B,EAAE,aAKxC,CAAA;AAED,eAAO,MAAM,qBAAqB,EAAE,aAQnC,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,aAQpC,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,aAK3C,CAAA;AAED,eAAO,MAAM,mBAAmB,EAAE,aAKjC,CAAA;AAED,eAAO,MAAM,uBAAuB,EAAE,aAQrC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAA;AAED,eAAO,MAAM,oBAAoB,EAAE,aAQlC,CAAA;AAED,qBAAqB;AACrB,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAA;AAED,eAAO,MAAM,6BAA6B,EAAE,aAM3C,CAAA;AAED,qBAAqB;AACrB,eAAO,MAAM,qBAAqB,EAAE,aAenC,CAAA;AAED,6BAA6B;AAC7B,eAAO,MAAM,oBAAoB,EAAE,aAIlC,CAAA"}
|
|
@@ -11,18 +11,35 @@ export const dshThemeColor = {
|
|
|
11
11
|
labelCaption: 'var(--dsw-alias-label-caption, GrayText)',
|
|
12
12
|
border: 'var(--dsw-alias-border-l2, #d9d9d9)',
|
|
13
13
|
inputBackground: 'var(--dsw-specific-input-major, Canvas)',
|
|
14
|
-
surfaceSubtle: 'var(--dsw-alias-bg-
|
|
14
|
+
surfaceSubtle: 'var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.06))',
|
|
15
15
|
buttonBackground: 'var(--dsw-alias-button-elevated-fill, transparent)',
|
|
16
16
|
// 0.1.7 的 specific-menu 可能带透明度;layer-3 在 0.1.5 至 0.1.7 中均为弹层实底。
|
|
17
|
-
menuBackground: 'var(--dsw-alias-bg-layer-3, var(--dsw-
|
|
18
|
-
|
|
17
|
+
menuBackground: 'var(--dsw-alias-bg-layer-3, var(--dsw-specific-menu, Canvas))',
|
|
18
|
+
// 侧栏面板内嵌卡片比弹层低一层,暗色下只比侧栏表面亮一档,避免形成刺眼的色块。
|
|
19
|
+
cardBackground: 'var(--dsw-alias-bg-layer-1, Canvas)',
|
|
20
|
+
pageBackground: 'var(--dsw-alias-bg-base, Canvas)',
|
|
19
21
|
overlay: 'var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.45))',
|
|
20
22
|
accent: 'var(--dsw-alias-button-info-fill, #1677ff)',
|
|
23
|
+
// 主操作按钮沿用 DSH 品牌填充:暗色下是浅底深字,和内置主按钮完全一致。
|
|
24
|
+
primaryBackground: 'var(--dsw-alias-button-primary-fill, #1677ff)',
|
|
25
|
+
primaryHoverBackground: 'var(--dsw-alias-button-primary-hover, #4096ff)',
|
|
26
|
+
primaryForeground: 'var(--dsw-alias-label-primary-foreground, #fff)',
|
|
21
27
|
success: 'var(--dsw-alias-state-success-primary, #16803c)',
|
|
22
28
|
error: 'var(--dsw-alias-state-error-primary, #b42318)',
|
|
29
|
+
// 状态描边用 l3/l4:DSH 的输入控件是 0.5px,比 l2 更轻。
|
|
30
|
+
fieldBorder: 'var(--dsw-alias-border-l4, #d9d9d9)',
|
|
31
|
+
menuBorder: 'var(--dsw-alias-border-l3, #d9d9d9)',
|
|
23
32
|
switchThumb: 'var(--dsw-static-neutral-00, #fff)',
|
|
24
33
|
prominentShadow: 'var(--dsw-elevation-prominent, 0 12px 40px rgba(0, 0, 0, 0.25))',
|
|
25
|
-
subtleShadow: 'var(--dsw-elevation-
|
|
34
|
+
subtleShadow: 'var(--dsw-elevation-soft, 0 1px 2px rgba(0, 0, 0, 0.06))',
|
|
35
|
+
// 交互态令牌:内联样式无法表达 :hover/:active/:focus-visible,交给注入的插件样式表。
|
|
36
|
+
hoverBackground: 'var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08))',
|
|
37
|
+
activeBackground: 'var(--dsw-alias-interactive-bg-active, rgba(127, 127, 127, 0.14))',
|
|
38
|
+
focusRing: 'var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))',
|
|
39
|
+
// Diff 行背景直接复用 DSH DiffBlock 的同一组令牌,保证与内置 Diff 视图一致。
|
|
40
|
+
diffAddedBackground: 'var(--dsw-alias-code-diff-added, rgba(34, 197, 94, 0.13))',
|
|
41
|
+
diffDeletedBackground: 'var(--dsw-alias-code-diff-deleted, rgba(239, 68, 68, 0.13))',
|
|
42
|
+
codeFont: 'var(--dsw-font-markdown-code-font-family, ui-monospace, SFMono-Regular, Menlo, monospace)',
|
|
26
43
|
};
|
|
27
44
|
/** 设置模块根节点显式接入 DSH 的主文字色。 */
|
|
28
45
|
export const dshFormRootStyle = {
|
|
@@ -40,16 +57,20 @@ export const dshButtonStyle = {
|
|
|
40
57
|
background: dshThemeColor.buttonBackground,
|
|
41
58
|
border: `1px solid ${dshThemeColor.border}`,
|
|
42
59
|
};
|
|
43
|
-
/** Codingns4DSH
|
|
60
|
+
/** Codingns4DSH 设置页共享外壳:占满宿主内容区,避免重复留白。 */
|
|
44
61
|
export const dshSettingsPageStyle = {
|
|
45
62
|
...dshFormRootStyle,
|
|
46
63
|
display: 'flex',
|
|
47
64
|
flexDirection: 'column',
|
|
48
|
-
gap:
|
|
65
|
+
gap: 16,
|
|
49
66
|
width: '100%',
|
|
50
|
-
maxWidth:
|
|
51
|
-
margin:
|
|
52
|
-
padding:
|
|
67
|
+
maxWidth: 'none',
|
|
68
|
+
margin: 0,
|
|
69
|
+
padding: 0,
|
|
70
|
+
// 只保留设备刘海和 Home 指示条所需的安全区,不再叠加宿主留白。
|
|
71
|
+
paddingLeft: 'env(safe-area-inset-left, 0px)',
|
|
72
|
+
paddingRight: 'env(safe-area-inset-right, 0px)',
|
|
73
|
+
paddingBottom: 'env(safe-area-inset-bottom, 0px)',
|
|
53
74
|
boxSizing: 'border-box',
|
|
54
75
|
};
|
|
55
76
|
/** 设置页标题区,使用宿主主题颜色而不是独立品牌色。 */
|
|
@@ -85,18 +106,19 @@ export const dshSettingsSummaryStyle = {
|
|
|
85
106
|
display: 'flex',
|
|
86
107
|
alignItems: 'center',
|
|
87
108
|
justifyContent: 'space-between',
|
|
88
|
-
gap:
|
|
109
|
+
gap: 12,
|
|
89
110
|
minHeight: 58,
|
|
90
|
-
padding: '12px
|
|
111
|
+
padding: '12px 14px',
|
|
91
112
|
boxSizing: 'border-box',
|
|
92
113
|
cursor: 'pointer',
|
|
93
114
|
listStyle: 'none',
|
|
94
115
|
};
|
|
95
116
|
export const dshSettingsSummaryTextStyle = {
|
|
96
117
|
display: 'flex',
|
|
97
|
-
|
|
98
|
-
gap:
|
|
118
|
+
alignItems: 'center',
|
|
119
|
+
gap: 8,
|
|
99
120
|
minWidth: 0,
|
|
121
|
+
flex: '1 1 auto',
|
|
100
122
|
};
|
|
101
123
|
export const dshSettingsSummaryLabelStyle = {
|
|
102
124
|
color: dshThemeColor.labelPrimary,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme.js","sourceRoot":"","sources":["../../../../src/client/theme.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
import type { NativeWorkspaceSnapshot } from './native-workspace-store.js';
|
|
2
|
+
import { type CodingNsLocale } from './locale.js';
|
|
1
3
|
/** 归档入口和模态框节点使用的标记,便于重复扫描与停用时完整清理。 */
|
|
2
4
|
export declare const WORKSPACE_SESSION_ARCHIVE_ATTRIBUTE = "data-codingns-session-archive";
|
|
3
5
|
export declare const WORKSPACE_SESSION_ARCHIVE_MODAL_ATTRIBUTE = "data-codingns-session-archive-modal";
|
|
6
|
+
/** 模态框内每个会话行上的 Agent 彩色标签标记。 */
|
|
7
|
+
export declare const WORKSPACE_SESSION_ARCHIVE_AGENT_ATTRIBUTE = "data-codingns-session-archive-agent";
|
|
4
8
|
export interface ArchivedSessionItem {
|
|
5
9
|
readonly sessionId: string;
|
|
6
10
|
readonly title: string;
|
|
@@ -16,6 +20,19 @@ export interface WorkspaceSessionArchiveDomOptions {
|
|
|
16
20
|
readonly MutationObserver?: typeof MutationObserver;
|
|
17
21
|
readonly remote?: unknown;
|
|
18
22
|
readonly now?: () => number;
|
|
23
|
+
/** 会话到 Agent 的映射;默认读取与侧栏 Logo 同源的会话绑定缓存。 */
|
|
24
|
+
readonly adapterIdForSession?: (sessionId: string) => string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* 原生 Workspace 列表快照。
|
|
27
|
+
*
|
|
28
|
+
* 远端虚拟工作区只存在于原生 Store 投影里,`workspace/follow` 首帧只覆盖本机,
|
|
29
|
+
* 因此有原生快照时以它为准。
|
|
30
|
+
*/
|
|
31
|
+
readonly readNativeWorkspaceSnapshot?: () => NativeWorkspaceSnapshot | undefined;
|
|
32
|
+
/** 会话取消归档成功后的通知;返回的 Promise 会在远端聚合同步完成后兑现。 */
|
|
33
|
+
readonly onSessionUnarchived?: (sessionId: string) => void | Promise<void>;
|
|
34
|
+
/** DSH 语言运行时;归档入口、模态框和 Agent 兜底展示名都从它取词。 */
|
|
35
|
+
readonly locale?: CodingNsLocale;
|
|
19
36
|
}
|
|
20
37
|
/** 读取当前 DSH Workspace 的归档会话摘要,独立导出供契约测试和宿主探测使用。 */
|
|
21
38
|
export declare function loadWorkspaceArchivedSessions(remote: unknown, now?: () => number): Promise<ReadonlyMap<string, readonly ArchivedSessionItem[]>>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"workspace-session-archive-dom.d.ts","sourceRoot":"","sources":["../../../../src/client/workspace-session-archive-dom.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,6BAA6B,CAAA;AAC1E,OAAO,EAA6B,KAAK,cAAc,EAA2B,MAAM,aAAa,CAAA;AAErG,sCAAsC;AACtC,eAAO,MAAM,mCAAmC,kCAAkC,CAAA;AAClF,eAAO,MAAM,yCAAyC,wCAAwC,CAAA;AAC9F,gCAAgC;AAChC,eAAO,MAAM,yCAAyC,wCAAwC,CAAA;AAkB9F,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAC9B;AAED,MAAM,WAAW,oCAAoC;IACnD,OAAO,IAAI,IAAI,CAAA;IACf,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,iCAAiC;IAChD,QAAQ,CAAC,QAAQ,CAAC,EAAE,QAAQ,CAAA;IAC5B,QAAQ,CAAC,gBAAgB,CAAC,EAAE,OAAO,gBAAgB,CAAA;IACnD,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,MAAM,CAAA;IAC3B,4CAA4C;IAC5C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAA;IACxE;;;;;OAKG;IACH,QAAQ,CAAC,2BAA2B,CAAC,EAAE,MAAM,uBAAuB,GAAG,SAAS,CAAA;IAChF,8CAA8C;IAC9C,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC,SAAS,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;IAC1E,4CAA4C;IAC5C,QAAQ,CAAC,MAAM,CAAC,EAAE,cAAc,CAAA;CACjC;AAED,mDAAmD;AACnD,wBAAsB,6BAA6B,CACjD,MAAM,EAAE,OAAO,EACf,GAAG,GAAE,MAAM,MAAiB,GAC3B,OAAO,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,mBAAmB,EAAE,CAAC,CAAC,CAE9D;AAED;;;;;GAKG;AACH,wBAAgB,+BAA+B,CAC7C,OAAO,GAAE,iCAAsC,GAC9C,oCAAoC,CAmJtC;AAwCD,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAA;IAC5B,QAAQ,CAAC,IAAI,CAAC,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,UAAU,EAAE,SAAS,MAAM,EAAE,CAAA;IACtC,QAAQ,CAAC,kBAAkB,EAAE,SAAS,MAAM,EAAE,CAAA;CAC/C;AAWD,2CAA2C;AAC3C,wBAAsB,oBAAoB,CAAC,MAAM,EAAE,OAAO,GAAG,OAAO,CAAC,SAAS,eAAe,EAAE,CAAC,CAE/F;AAwFD,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,kBAAkB,CAAC,GAAG,WAAW,EAAE,CAE3F;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,CAcvE;AAuED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,GAAG,WAAW,GAAG,IAAI,CAqBnG"}
|
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
import { dshThemeColor } from './theme.js';
|
|
2
|
+
import { providerVisual } from './provider-icons.js';
|
|
3
|
+
import { sessionAdapterId } from './session-adapter-cache.js';
|
|
4
|
+
import { resolveCodingNsTranslator } from './locale.js';
|
|
2
5
|
/** 归档入口和模态框节点使用的标记,便于重复扫描与停用时完整清理。 */
|
|
3
6
|
export const WORKSPACE_SESSION_ARCHIVE_ATTRIBUTE = 'data-codingns-session-archive';
|
|
4
7
|
export const WORKSPACE_SESSION_ARCHIVE_MODAL_ATTRIBUTE = 'data-codingns-session-archive-modal';
|
|
8
|
+
/** 模态框内每个会话行上的 Agent 彩色标签标记。 */
|
|
9
|
+
export const WORKSPACE_SESSION_ARCHIVE_AGENT_ATTRIBUTE = 'data-codingns-session-archive-agent';
|
|
5
10
|
const MORE_SESSION_PATTERN = /(?:展开|显示|expand|show).*(?:其余|更多|remaining|more).*(?:会话|sessions?)/iu;
|
|
6
11
|
/** 读取当前 DSH Workspace 的归档会话摘要,独立导出供契约测试和宿主探测使用。 */
|
|
7
12
|
export async function loadWorkspaceArchivedSessions(remote, now = Date.now) {
|
|
@@ -19,6 +24,12 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
19
24
|
?? (typeof MutationObserver === 'undefined' ? undefined : MutationObserver);
|
|
20
25
|
const remote = normalizeRemote(options.remote);
|
|
21
26
|
const now = options.now ?? Date.now;
|
|
27
|
+
const t = resolveCodingNsTranslator(options.locale);
|
|
28
|
+
// SessionStore 只记录显式选择;没有外部绑定时,DSH Registry 的权威默认值就是 dsh。
|
|
29
|
+
const adapterIdForSession = options.adapterIdForSession
|
|
30
|
+
?? ((sessionId) => sessionAdapterId(sessionId) ?? 'dsh');
|
|
31
|
+
const readNativeWorkspaceSnapshot = options.readNativeWorkspaceSnapshot;
|
|
32
|
+
const onSessionUnarchived = options.onSessionUnarchived;
|
|
22
33
|
let disposed = false;
|
|
23
34
|
let scanQueued = false;
|
|
24
35
|
let loading;
|
|
@@ -30,7 +41,7 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
30
41
|
await loading;
|
|
31
42
|
return;
|
|
32
43
|
}
|
|
33
|
-
loading = loadArchiveSnapshot(remote, now).then((next) => {
|
|
44
|
+
loading = loadArchiveSnapshot(remote, now, readNativeWorkspaceSnapshot).then((next) => {
|
|
34
45
|
if (disposed)
|
|
35
46
|
return;
|
|
36
47
|
snapshot = next;
|
|
@@ -57,6 +68,16 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
57
68
|
const workspaceId = resolveWorkspaceId(header);
|
|
58
69
|
return workspaceId === undefined ? [] : [[workspaceId, header.getAttribute('aria-expanded') !== 'false']];
|
|
59
70
|
}));
|
|
71
|
+
const openModalFor = (workspaceId) => () => {
|
|
72
|
+
void refreshData().then(() => openArchiveModal(snapshot.byWorkspace.get(workspaceId) ?? [], {
|
|
73
|
+
dom,
|
|
74
|
+
remote,
|
|
75
|
+
adapterIdForSession,
|
|
76
|
+
t,
|
|
77
|
+
onChanged: () => { void refreshData(); },
|
|
78
|
+
onSessionUnarchived,
|
|
79
|
+
}));
|
|
80
|
+
};
|
|
60
81
|
for (const [index, button] of buttons.entries()) {
|
|
61
82
|
const workspaceId = resolveWorkspaceId(button)
|
|
62
83
|
?? onlyWorkspaceId
|
|
@@ -64,7 +85,7 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
64
85
|
if (workspaceId === undefined)
|
|
65
86
|
continue;
|
|
66
87
|
const items = snapshot.byWorkspace.get(workspaceId) ?? [];
|
|
67
|
-
if (insertArchiveEntry(button, items, dom, remote, workspaceId, expandedByWorkspace.get(workspaceId) ?? true, (
|
|
88
|
+
if (insertArchiveEntry(button, items, dom, remote, workspaceId, expandedByWorkspace.get(workspaceId) ?? true, openModalFor(workspaceId), t))
|
|
68
89
|
insertedWorkspaceIds.add(workspaceId);
|
|
69
90
|
}
|
|
70
91
|
// 某些窗口高度下 DSH 不渲染“展开其余会话”按钮。归档入口仍必须
|
|
@@ -74,7 +95,7 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
74
95
|
if (workspaceId === undefined || insertedWorkspaceIds.has(workspaceId))
|
|
75
96
|
continue;
|
|
76
97
|
const items = snapshot.byWorkspace.get(workspaceId) ?? [];
|
|
77
|
-
if (insertArchiveEntryAfterHeader(header, items, dom, remote, workspaceId, header.getAttribute('aria-expanded') !== 'false', (
|
|
98
|
+
if (insertArchiveEntryAfterHeader(header, items, dom, remote, workspaceId, header.getAttribute('aria-expanded') !== 'false', openModalFor(workspaceId), t))
|
|
78
99
|
insertedWorkspaceIds.add(workspaceId);
|
|
79
100
|
}
|
|
80
101
|
}
|
|
@@ -131,9 +152,9 @@ export function startWorkspaceSessionArchiveDom(options = {}) {
|
|
|
131
152
|
function emptyArchiveSnapshot() {
|
|
132
153
|
return { byWorkspace: new Map(), workspaceIds: [] };
|
|
133
154
|
}
|
|
134
|
-
async function loadArchiveSnapshot(remote, now) {
|
|
155
|
+
async function loadArchiveSnapshot(remote, now, readNativeSnapshot) {
|
|
135
156
|
const [workspaces, sessions] = await Promise.all([
|
|
136
|
-
|
|
157
|
+
readWorkspaceRecords(remote.workspace, readNativeSnapshot),
|
|
137
158
|
readSessionList(remote.session),
|
|
138
159
|
]);
|
|
139
160
|
const byId = new Map(sessions.map((item) => [item.sessionId, item]));
|
|
@@ -161,6 +182,20 @@ async function loadArchiveSnapshot(remote, now) {
|
|
|
161
182
|
export async function loadWorkspaceRecords(remote) {
|
|
162
183
|
return readWorkspaceBaseline(normalizeRemote(remote).workspace);
|
|
163
184
|
}
|
|
185
|
+
/**
|
|
186
|
+
* 读取工作区基线。
|
|
187
|
+
*
|
|
188
|
+
* 有原生 Store 快照时以它为准:远端虚拟工作区与虚拟归档集合只存在于这层投影里,
|
|
189
|
+
* `workspace/follow` 首帧只覆盖本机工作区。两者都不可用时保持空表。
|
|
190
|
+
*/
|
|
191
|
+
async function readWorkspaceRecords(api, readNativeSnapshot) {
|
|
192
|
+
const native = readNativeSnapshot?.();
|
|
193
|
+
if (native !== undefined && native.items.length > 0) {
|
|
194
|
+
// 原生归档集合是 Registry 级的一份列表,按工作区分发后由 workspaces 归属过滤。
|
|
195
|
+
return native.items.map((item) => ({ ...item, archivedSessionIds: native.archivedSessionIds }));
|
|
196
|
+
}
|
|
197
|
+
return readWorkspaceBaseline(api);
|
|
198
|
+
}
|
|
164
199
|
async function readWorkspaceBaseline(api) {
|
|
165
200
|
if (api?.follow === undefined)
|
|
166
201
|
return [];
|
|
@@ -279,26 +314,26 @@ function findWorkspaceIdInProps(value) {
|
|
|
279
314
|
}
|
|
280
315
|
return undefined;
|
|
281
316
|
}
|
|
282
|
-
function insertArchiveEntry(moreButton, items, dom, remote, workspaceId, expanded, onOpen) {
|
|
317
|
+
function insertArchiveEntry(moreButton, items, dom, remote, workspaceId, expanded, onOpen, t) {
|
|
283
318
|
if (items.length === 0)
|
|
284
319
|
return false;
|
|
285
320
|
const container = findWorkspaceContainer(moreButton, workspaceId);
|
|
286
321
|
if (container === null)
|
|
287
322
|
return false;
|
|
288
|
-
const entry = createArchiveEntry(items, dom, expanded, onOpen);
|
|
323
|
+
const entry = createArchiveEntry(items, dom, expanded, onOpen, t);
|
|
289
324
|
const anchor = directChildFor(container, moreButton);
|
|
290
325
|
if (anchor === null)
|
|
291
326
|
return false;
|
|
292
327
|
container.insertBefore(entry, anchor);
|
|
293
328
|
return true;
|
|
294
329
|
}
|
|
295
|
-
function insertArchiveEntryAfterHeader(header, items, dom, remote, workspaceId, expanded, onOpen) {
|
|
330
|
+
function insertArchiveEntryAfterHeader(header, items, dom, remote, workspaceId, expanded, onOpen, t) {
|
|
296
331
|
if (items.length === 0)
|
|
297
332
|
return false;
|
|
298
333
|
const container = findWorkspaceContainer(header, workspaceId);
|
|
299
334
|
if (container === null)
|
|
300
335
|
return false;
|
|
301
|
-
const entry = createArchiveEntry(items, dom, expanded, onOpen);
|
|
336
|
+
const entry = createArchiveEntry(items, dom, expanded, onOpen, t);
|
|
302
337
|
const moreButton = [...container.querySelectorAll('button')].find(isMoreSessionButton);
|
|
303
338
|
if (moreButton !== undefined) {
|
|
304
339
|
const anchor = directChildFor(container, moreButton);
|
|
@@ -350,14 +385,14 @@ function directChildFor(container, descendant) {
|
|
|
350
385
|
}
|
|
351
386
|
return current.parentElement === container ? current : null;
|
|
352
387
|
}
|
|
353
|
-
function createArchiveEntry(items, dom, expanded, onOpen) {
|
|
388
|
+
function createArchiveEntry(items, dom, expanded, onOpen, t) {
|
|
354
389
|
const entry = dom.createElement('button');
|
|
355
390
|
entry.type = 'button';
|
|
356
391
|
entry.setAttribute(WORKSPACE_SESSION_ARCHIVE_ATTRIBUTE, '');
|
|
357
|
-
entry.setAttribute('aria-label', '
|
|
392
|
+
entry.setAttribute('aria-label', t('archive.title'));
|
|
358
393
|
entry.hidden = !expanded;
|
|
359
394
|
entry.setAttribute('aria-hidden', expanded ? 'false' : 'true');
|
|
360
|
-
entry.textContent =
|
|
395
|
+
entry.textContent = t('archive.entryCount', { count: items.length });
|
|
361
396
|
Object.assign(entry.style, {
|
|
362
397
|
display: expanded ? 'block' : 'none',
|
|
363
398
|
width: '100%',
|
|
@@ -369,6 +404,7 @@ function createArchiveEntry(items, dom, expanded, onOpen) {
|
|
|
369
404
|
textAlign: 'left',
|
|
370
405
|
cursor: 'pointer',
|
|
371
406
|
font: 'inherit',
|
|
407
|
+
fontSize: '12px',
|
|
372
408
|
});
|
|
373
409
|
entry.addEventListener('click', onOpen);
|
|
374
410
|
return entry;
|
|
@@ -386,40 +422,43 @@ function removeArchiveEntries(dom) {
|
|
|
386
422
|
for (const node of dom.querySelectorAll(`[${WORKSPACE_SESSION_ARCHIVE_ATTRIBUTE}]`))
|
|
387
423
|
node.remove();
|
|
388
424
|
}
|
|
389
|
-
function openArchiveModal(items,
|
|
425
|
+
function openArchiveModal(items, context) {
|
|
426
|
+
const { dom } = context;
|
|
390
427
|
closeArchiveModal(dom);
|
|
391
428
|
if (dom.body === null || dom.body === undefined)
|
|
392
429
|
return;
|
|
430
|
+
const t = context.t;
|
|
393
431
|
const overlay = dom.createElement('div');
|
|
394
432
|
overlay.setAttribute(WORKSPACE_SESSION_ARCHIVE_MODAL_ATTRIBUTE, '');
|
|
395
433
|
Object.assign(overlay.style, {
|
|
396
434
|
position: 'fixed', inset: '0', zIndex: '9999', display: 'flex', alignItems: 'center', justifyContent: 'center',
|
|
397
|
-
|
|
435
|
+
// 窄屏用视口比例收紧留白,给会话行留出「标签 + 归档时间」同排所需的宽度。
|
|
436
|
+
padding: 'min(24px, 4vw)', boxSizing: 'border-box', background: 'var(--dsw-alias-bg-mask-1, rgba(0,0,0,.45))',
|
|
398
437
|
});
|
|
399
438
|
const surface = dom.createElement('section');
|
|
400
439
|
surface.setAttribute('role', 'dialog');
|
|
401
440
|
surface.setAttribute('aria-modal', 'true');
|
|
402
|
-
surface.setAttribute('aria-label', '
|
|
441
|
+
surface.setAttribute('aria-label', t('archive.title'));
|
|
403
442
|
Object.assign(surface.style, {
|
|
404
443
|
width: 'min(860px, 100%)', maxHeight: 'min(720px, 90vh)', overflow: 'auto', boxSizing: 'border-box',
|
|
405
|
-
padding: '28px 32px', borderRadius: '16px', color: dshThemeColor.labelPrimary,
|
|
444
|
+
padding: 'min(28px, 5vw) min(32px, 4vw)', borderRadius: '16px', color: dshThemeColor.labelPrimary,
|
|
406
445
|
background: dshThemeColor.menuBackground, boxShadow: dshThemeColor.prominentShadow,
|
|
407
446
|
});
|
|
408
447
|
const header = dom.createElement('div');
|
|
409
448
|
Object.assign(header.style, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '16px', marginBottom: '18px' });
|
|
410
449
|
const title = dom.createElement('h2');
|
|
411
|
-
title.textContent = '
|
|
450
|
+
title.textContent = t('archive.title');
|
|
412
451
|
Object.assign(title.style, { margin: '0', fontSize: '22px', fontWeight: '600' });
|
|
413
452
|
const close = dom.createElement('button');
|
|
414
453
|
close.type = 'button';
|
|
415
|
-
close.setAttribute('aria-label', '
|
|
454
|
+
close.setAttribute('aria-label', t('archive.close'));
|
|
416
455
|
close.textContent = '×';
|
|
417
456
|
Object.assign(close.style, { border: '0', background: 'transparent', color: 'inherit', fontSize: '30px', lineHeight: '1', cursor: 'pointer' });
|
|
418
457
|
header.append(title, close);
|
|
419
458
|
const search = dom.createElement('input');
|
|
420
459
|
search.type = 'search';
|
|
421
|
-
search.placeholder = '
|
|
422
|
-
search.setAttribute('aria-label', '
|
|
460
|
+
search.placeholder = t('archive.searchPlaceholder');
|
|
461
|
+
search.setAttribute('aria-label', t('archive.searchPlaceholder'));
|
|
423
462
|
Object.assign(search.style, { width: '100%', boxSizing: 'border-box', padding: '11px 14px', marginBottom: '16px', border: '1px solid var(--dsw-alias-border-l2, #d9d9d9)', borderRadius: '8px', color: 'inherit', background: 'var(--dsw-specific-input-major, Canvas)', font: 'inherit' });
|
|
424
463
|
const list = dom.createElement('div');
|
|
425
464
|
Object.assign(list.style, { display: 'flex', flexDirection: 'column', gap: '4px' });
|
|
@@ -428,16 +467,17 @@ function openArchiveModal(items, dom, remote, onChanged) {
|
|
|
428
467
|
const keyword = search.value.trim().toLocaleLowerCase();
|
|
429
468
|
const filtered = items.filter((item) => item.title.toLocaleLowerCase().includes(keyword));
|
|
430
469
|
for (const item of filtered)
|
|
431
|
-
list.appendChild(createArchiveRow(item,
|
|
470
|
+
list.appendChild(createArchiveRow(item, context));
|
|
432
471
|
if (filtered.length === 0) {
|
|
433
472
|
const empty = dom.createElement('p');
|
|
434
|
-
empty.textContent = '
|
|
473
|
+
empty.textContent = t('archive.empty');
|
|
435
474
|
Object.assign(empty.style, { margin: '20px 0', color: 'var(--dsw-alias-label-secondary, GrayText)', textAlign: 'center' });
|
|
436
475
|
list.appendChild(empty);
|
|
437
476
|
}
|
|
438
477
|
};
|
|
439
478
|
close.addEventListener('click', () => closeArchiveModal(dom));
|
|
440
|
-
|
|
479
|
+
// 与插件其它弹层一致:按下遮罩即关闭,点在面板内部不关闭。
|
|
480
|
+
overlay.addEventListener('pointerdown', (event) => { if (event.target === overlay)
|
|
441
481
|
closeArchiveModal(dom); });
|
|
442
482
|
overlay.addEventListener('keydown', (event) => {
|
|
443
483
|
if (event.key === 'Escape')
|
|
@@ -450,55 +490,160 @@ function openArchiveModal(items, dom, remote, onChanged) {
|
|
|
450
490
|
render();
|
|
451
491
|
search.focus();
|
|
452
492
|
}
|
|
453
|
-
function createArchiveRow(item,
|
|
493
|
+
function createArchiveRow(item, context) {
|
|
494
|
+
const { dom, adapterIdForSession, t } = context;
|
|
454
495
|
const row = dom.createElement('div');
|
|
455
|
-
Object.assign(row.style, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '
|
|
496
|
+
Object.assign(row.style, { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: '12px', padding: '12px 0', borderBottom: '1px solid var(--dsw-alias-border-l1, rgba(0,0,0,.08))' });
|
|
456
497
|
const content = dom.createElement('div');
|
|
457
|
-
Object.assign(content.style, { minWidth: '0', display: 'flex', flexDirection: 'column', gap: '4px' });
|
|
498
|
+
Object.assign(content.style, { minWidth: '0', flex: '1 1 auto', display: 'flex', flexDirection: 'column', gap: '4px' });
|
|
499
|
+
// 移动端窄屏下第一行只保留标题,独占整行以避免被标签与时间挤压截断。
|
|
458
500
|
const name = dom.createElement('strong');
|
|
459
501
|
name.textContent = item.title;
|
|
460
502
|
name.title = item.title;
|
|
461
|
-
Object.assign(name.style, { overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '15px' });
|
|
503
|
+
Object.assign(name.style, { minWidth: '0', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', fontSize: '15px' });
|
|
504
|
+
// 第二行放类型标签与归档时间,强制同排:标签不收缩、时间不折行,
|
|
505
|
+
// 极端窄屏只截断时间尾部,不允许整行换行。
|
|
506
|
+
const meta = dom.createElement('div');
|
|
507
|
+
Object.assign(meta.style, { minWidth: '0', display: 'flex', alignItems: 'center', gap: '8px' });
|
|
462
508
|
const time = dom.createElement('span');
|
|
463
|
-
time.textContent =
|
|
464
|
-
Object.assign(time.style, { color: 'var(--dsw-alias-label-secondary, GrayText)', fontSize: '13px' });
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
restore
|
|
468
|
-
|
|
509
|
+
time.textContent = formatArchiveTime(item.archivedAt);
|
|
510
|
+
Object.assign(time.style, { minWidth: '0', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', color: 'var(--dsw-alias-label-secondary, GrayText)', fontSize: '13px' });
|
|
511
|
+
meta.append(createAgentBadge(adapterIdForSession(item.sessionId), dom, t), time);
|
|
512
|
+
content.append(name, meta);
|
|
513
|
+
const restore = createRestoreButton(item, row, context);
|
|
514
|
+
row.append(content, restore);
|
|
515
|
+
return row;
|
|
516
|
+
}
|
|
517
|
+
/**
|
|
518
|
+
* 行尾的取消归档按钮:图标按钮,不再占用一整行宽度。
|
|
519
|
+
*
|
|
520
|
+
* 图形沿用 DSH 原生归档行的 `IconUnarchiveOutlineRegular`,让插件模态框与原生
|
|
521
|
+
* 界面语言一致;文字只保留在 `aria-label` 与 `title` 里。
|
|
522
|
+
*/
|
|
523
|
+
function createRestoreButton(item, row, context) {
|
|
524
|
+
const { dom, remote, t, onChanged, onSessionUnarchived } = context;
|
|
469
525
|
const unarchive = remote.workspace?.unarchiveSession;
|
|
470
526
|
const canUnarchive = typeof unarchive === 'function';
|
|
527
|
+
const label = canUnarchive ? t('archive.restore') : t('archive.restoreUnsupported');
|
|
528
|
+
const restore = dom.createElement('button');
|
|
529
|
+
restore.type = 'button';
|
|
471
530
|
restore.disabled = !canUnarchive;
|
|
472
|
-
restore.
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
531
|
+
restore.setAttribute('aria-label', label);
|
|
532
|
+
restore.title = canUnarchive ? t('archive.restore') : t('archive.restoreUnsupportedTitle');
|
|
533
|
+
Object.assign(restore.style, {
|
|
534
|
+
flex: '0 0 auto',
|
|
535
|
+
display: 'inline-flex',
|
|
536
|
+
alignItems: 'center',
|
|
537
|
+
justifyContent: 'center',
|
|
538
|
+
width: '32px',
|
|
539
|
+
height: '32px',
|
|
540
|
+
padding: '0',
|
|
541
|
+
border: '0',
|
|
542
|
+
borderRadius: '8px',
|
|
543
|
+
color: 'var(--dsw-alias-label-secondary, GrayText)',
|
|
544
|
+
background: 'transparent',
|
|
545
|
+
cursor: canUnarchive ? 'pointer' : 'not-allowed',
|
|
546
|
+
opacity: canUnarchive ? '1' : '0.55',
|
|
547
|
+
font: 'inherit',
|
|
548
|
+
});
|
|
549
|
+
restore.append(createUnarchiveIcon(dom));
|
|
550
|
+
// 内联 style 表达不了 :hover,与插件其它自绘按钮一致用监听器补齐交互态。
|
|
551
|
+
if (canUnarchive) {
|
|
552
|
+
restore.addEventListener('mouseenter', () => {
|
|
553
|
+
restore.style.background = 'var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08))';
|
|
554
|
+
});
|
|
555
|
+
restore.addEventListener('mouseleave', () => {
|
|
556
|
+
restore.style.background = 'transparent';
|
|
557
|
+
});
|
|
558
|
+
}
|
|
476
559
|
restore.addEventListener('click', async () => {
|
|
477
560
|
if (!canUnarchive || unarchive === undefined)
|
|
478
561
|
return;
|
|
479
562
|
restore.disabled = true;
|
|
480
|
-
restore.
|
|
563
|
+
restore.style.opacity = '0.55';
|
|
564
|
+
restore.setAttribute('aria-label', t('archive.processing'));
|
|
481
565
|
try {
|
|
482
566
|
await unarchive({ sessionId: item.sessionId });
|
|
483
567
|
row.remove();
|
|
568
|
+
await onSessionUnarchived?.(item.sessionId);
|
|
484
569
|
onChanged();
|
|
485
570
|
}
|
|
486
571
|
catch {
|
|
487
572
|
restore.disabled = false;
|
|
488
|
-
restore.
|
|
573
|
+
restore.style.opacity = '1';
|
|
574
|
+
restore.setAttribute('aria-label', label);
|
|
489
575
|
}
|
|
490
576
|
});
|
|
491
|
-
|
|
492
|
-
|
|
577
|
+
return restore;
|
|
578
|
+
}
|
|
579
|
+
/**
|
|
580
|
+
* DSH 官方“取消归档”图标几何。
|
|
581
|
+
*
|
|
582
|
+
* 取值自 `@deepseek-ai/dsh-client-ui-primitives` 的 `IconUnarchiveOutlineRegular`
|
|
583
|
+
* (DSH 0.2.0-rc.2,20×20 viewBox)。不 import primitives 的原因与
|
|
584
|
+
* `mobile-sidebar-logo.ts` 相同:本模块是纯 DOM 控制器,要在没有 React 的 Node
|
|
585
|
+
* 测试里直接运行;内联同一份路径才能保持与原生归档行的视觉一致。
|
|
586
|
+
*/
|
|
587
|
+
const UNARCHIVE_ICON_VIEWBOX = '0 0 20 20';
|
|
588
|
+
const UNARCHIVE_ICON_BOX_PATH = 'M15.8659 2.05975C17.2603 2.05995 18.3913 3.19096 18.3914 4.58527V5.4874C18.3914 6.02747 18.2192 6.52672 17.9303 6.93735C17.9336 6.96524 17.9388 6.99318 17.9388 7.02195V12.8884C17.9388 13.6345 17.9395 14.2379 17.8996 14.7254C17.8642 15.1593 17.7936 15.5499 17.6373 15.9141L17.5654 16.0685C17.278 16.6328 16.8405 17.1046 16.3038 17.434L16.0679 17.5661C15.66 17.7739 15.2196 17.8598 14.7237 17.9003C14.2362 17.9401 13.6327 17.9405 12.8867 17.9405H7.11122C6.36511 17.9405 5.76171 17.9401 5.27418 17.9003C4.84051 17.8649 4.44949 17.7952 4.08545 17.6391L3.93104 17.5661C3.36673 17.2785 2.89392 16.8414 2.56465 16.3044L2.43245 16.0685C2.22473 15.6608 2.13878 15.2211 2.09825 14.7254C2.05841 14.2379 2.05912 13.6345 2.05912 12.8884V7.02195C2.05912 6.99284 2.06422 6.96449 2.06758 6.93629C1.77931 6.52592 1.60858 6.02687 1.60858 5.4874V4.58527C1.60876 3.19084 2.73962 2.05975 4.1341 2.05975H15.8659ZM16.4984 7.92936C16.296 7.98169 16.0847 8.01288 15.8659 8.01291H4.1341C3.91478 8.01291 3.70246 7.98194 3.49955 7.92936V12.8884C3.49955 13.6582 3.50053 14.1927 3.53445 14.608C3.56769 15.0146 3.62923 15.244 3.71635 15.415L3.7925 15.5514C3.98339 15.8627 4.25749 16.1165 4.58464 16.2833L4.72529 16.3435C4.88095 16.3993 5.08638 16.4402 5.39158 16.4651C5.80685 16.4991 6.34138 16.5001 7.11122 16.5001H12.8867C13.6564 16.5001 14.1911 16.499 14.6063 16.4651C15.0128 16.432 15.2423 16.3703 15.4133 16.2833L15.5508 16.2061C15.8618 16.0152 16.116 15.7419 16.2827 15.415L16.3429 15.2732C16.3985 15.1177 16.4396 14.9128 16.4645 14.608C16.4985 14.1927 16.4984 13.6583 16.4984 12.8884V7.92936ZM4.1341 3.50019C3.53511 3.50019 3.0492 3.98631 3.04902 4.58527V5.4874C3.04902 6.08649 3.535 6.57248 4.1341 6.57248H15.8659C16.4648 6.57228 16.951 6.08638 16.951 5.4874V4.58527C16.9509 3.98644 16.4647 3.50038 15.8659 3.50019H4.1341Z';
|
|
589
|
+
const UNARCHIVE_ICON_ARROW_PATH = 'M10 14.1V10.1M7.85 12.05L10 9.9L12.15 12.05';
|
|
590
|
+
/** 内联取消归档 SVG;`createElementNS` 不可用时退回字符占位。 */
|
|
591
|
+
function createUnarchiveIcon(dom) {
|
|
592
|
+
const createElementNS = dom.createElementNS?.bind(dom);
|
|
593
|
+
if (createElementNS === undefined) {
|
|
594
|
+
const fallback = dom.createElement('span');
|
|
595
|
+
fallback.textContent = '↩';
|
|
596
|
+
fallback.setAttribute('aria-hidden', 'true');
|
|
597
|
+
return fallback;
|
|
598
|
+
}
|
|
599
|
+
const svg = createElementNS('http://www.w3.org/2000/svg', 'svg');
|
|
600
|
+
svg.setAttribute('width', '16');
|
|
601
|
+
svg.setAttribute('height', '16');
|
|
602
|
+
svg.setAttribute('viewBox', UNARCHIVE_ICON_VIEWBOX);
|
|
603
|
+
svg.setAttribute('fill', 'none');
|
|
604
|
+
svg.setAttribute('aria-hidden', 'true');
|
|
605
|
+
svg.style.display = 'block';
|
|
606
|
+
svg.style.pointerEvents = 'none';
|
|
607
|
+
const box = createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
608
|
+
box.setAttribute('fill-rule', 'evenodd');
|
|
609
|
+
box.setAttribute('clip-rule', 'evenodd');
|
|
610
|
+
box.setAttribute('fill', 'currentColor');
|
|
611
|
+
box.setAttribute('d', UNARCHIVE_ICON_BOX_PATH);
|
|
612
|
+
const arrow = createElementNS('http://www.w3.org/2000/svg', 'path');
|
|
613
|
+
arrow.setAttribute('d', UNARCHIVE_ICON_ARROW_PATH);
|
|
614
|
+
arrow.setAttribute('stroke', 'currentColor');
|
|
615
|
+
arrow.setAttribute('stroke-width', '1');
|
|
616
|
+
arrow.setAttribute('stroke-linecap', 'round');
|
|
617
|
+
arrow.setAttribute('stroke-linejoin', 'round');
|
|
618
|
+
svg.append(box, arrow);
|
|
619
|
+
return svg;
|
|
620
|
+
}
|
|
621
|
+
function createAgentBadge(adapterId, dom, t) {
|
|
622
|
+
const visual = providerVisual(adapterId, t);
|
|
623
|
+
const badge = dom.createElement('span');
|
|
624
|
+
badge.setAttribute(WORKSPACE_SESSION_ARCHIVE_AGENT_ATTRIBUTE, visual.adapterId ?? '');
|
|
625
|
+
badge.textContent = visual.displayName;
|
|
626
|
+
Object.assign(badge.style, {
|
|
627
|
+
flex: '0 0 auto',
|
|
628
|
+
padding: '1px 8px',
|
|
629
|
+
borderRadius: '999px',
|
|
630
|
+
// 与插件其它徽章一致:实心文字色 + 同色低透明度底,深浅主题下都可读。
|
|
631
|
+
color: visual.color,
|
|
632
|
+
background: `color-mix(in srgb, ${visual.color} 14%, transparent)`,
|
|
633
|
+
fontSize: '11px',
|
|
634
|
+
fontWeight: '600',
|
|
635
|
+
lineHeight: '18px',
|
|
636
|
+
whiteSpace: 'nowrap',
|
|
637
|
+
});
|
|
638
|
+
return badge;
|
|
493
639
|
}
|
|
494
640
|
function formatArchiveTime(timestamp) {
|
|
495
641
|
const value = timestamp < 10_000_000_000 ? timestamp * 1000 : timestamp;
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
}
|
|
642
|
+
const date = new Date(value);
|
|
643
|
+
if (Number.isNaN(date.getTime()))
|
|
644
|
+
return '';
|
|
645
|
+
const pad = (part) => String(part).padStart(2, '0');
|
|
646
|
+
return `${date.getFullYear()}/${pad(date.getMonth() + 1)}/${pad(date.getDate())} ${pad(date.getHours())}:${pad(date.getMinutes())}`;
|
|
502
647
|
}
|
|
503
648
|
function closeArchiveModal(dom) {
|
|
504
649
|
dom.querySelector(`[${WORKSPACE_SESSION_ARCHIVE_MODAL_ATTRIBUTE}]`)?.remove();
|