@jingyi0605/codingns4dsh 0.1.0
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.md +1114 -0
- package/assets/provider-icons/claude-code.png +0 -0
- package/assets/provider-icons/codex.png +0 -0
- package/assets/provider-icons/command-code.svg +5 -0
- package/assets/provider-icons/deepseek-harness.svg +9 -0
- package/assets/provider-icons/gemini.png +0 -0
- package/assets/provider-icons/grok.png +0 -0
- package/assets/provider-icons/kimi.png +0 -0
- package/assets/provider-icons/opencode.png +0 -0
- package/assets/provider-icons/pi.svg +7 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.d.ts +97 -0
- package/data/build/dist/bootstrap/dsh-connection-adapter.js +169 -0
- package/data/build/dist/bootstrap/index.d.ts +38 -0
- package/data/build/dist/bootstrap/index.js +44 -0
- package/data/build/dist/client/account-bar.d.ts +9 -0
- package/data/build/dist/client/account-bar.js +398 -0
- package/data/build/dist/client/bundle.js +26167 -0
- package/data/build/dist/client/cli-catalog.d.ts +24 -0
- package/data/build/dist/client/cli-catalog.js +108 -0
- package/data/build/dist/client/cli-slots.d.ts +38 -0
- package/data/build/dist/client/cli-slots.js +297 -0
- package/data/build/dist/client/debug/ui.d.ts +12 -0
- package/data/build/dist/client/debug/ui.js +451 -0
- package/data/build/dist/client/dsh-h5-bootstrap.d.ts +64 -0
- package/data/build/dist/client/dsh-h5-bootstrap.js +293 -0
- package/data/build/dist/client/dsh-runtime-version.d.ts +3 -0
- package/data/build/dist/client/dsh-runtime-version.js +11 -0
- package/data/build/dist/client/external-tool-stream.d.ts +24 -0
- package/data/build/dist/client/external-tool-stream.js +114 -0
- package/data/build/dist/client/features/cli-adapters.d.ts +7 -0
- package/data/build/dist/client/features/cli-adapters.js +215 -0
- package/data/build/dist/client/features/debug.d.ts +4 -0
- package/data/build/dist/client/features/debug.js +24 -0
- package/data/build/dist/client/features/index.d.ts +33 -0
- package/data/build/dist/client/features/index.js +44 -0
- package/data/build/dist/client/features/lan-access-panel.d.ts +5 -0
- package/data/build/dist/client/features/lan-access-panel.js +146 -0
- package/data/build/dist/client/features/lan-access.d.ts +9 -0
- package/data/build/dist/client/features/lan-access.js +30 -0
- package/data/build/dist/client/features/login-protection-panel.d.ts +5 -0
- package/data/build/dist/client/features/login-protection-panel.js +91 -0
- package/data/build/dist/client/features/login-protection-session.d.ts +6 -0
- package/data/build/dist/client/features/login-protection-session.js +25 -0
- package/data/build/dist/client/features/login-protection.d.ts +4 -0
- package/data/build/dist/client/features/login-protection.js +23 -0
- package/data/build/dist/client/features/reverse-proxy-panel.d.ts +9 -0
- package/data/build/dist/client/features/reverse-proxy-panel.js +159 -0
- package/data/build/dist/client/features/reverse-proxy.d.ts +12 -0
- package/data/build/dist/client/features/reverse-proxy.js +112 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/terminal-enhancement-panel.js +160 -0
- package/data/build/dist/client/features/terminal-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/terminal-enhancement.js +24 -0
- package/data/build/dist/client/features/types.d.ts +58 -0
- package/data/build/dist/client/features/types.js +2 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.d.ts +5 -0
- package/data/build/dist/client/features/workspace-session-enhancement-panel.js +66 -0
- package/data/build/dist/client/features/workspace-session-enhancement.d.ts +4 -0
- package/data/build/dist/client/features/workspace-session-enhancement.js +101 -0
- package/data/build/dist/client/h5-bootstrap-entry.d.ts +2 -0
- package/data/build/dist/client/h5-bootstrap-entry.js +17 -0
- package/data/build/dist/client/index.d.ts +31 -0
- package/data/build/dist/client/index.js +98 -0
- package/data/build/dist/client/lan-access.d.ts +28 -0
- package/data/build/dist/client/lan-access.js +68 -0
- package/data/build/dist/client/locale.d.ts +20 -0
- package/data/build/dist/client/locale.js +393 -0
- package/data/build/dist/client/provider-icon-assets.d.ts +2 -0
- package/data/build/dist/client/provider-icon-assets.js +23 -0
- package/data/build/dist/client/provider-icons.d.ts +19 -0
- package/data/build/dist/client/provider-icons.js +39 -0
- package/data/build/dist/client/remote-web-context.d.ts +57 -0
- package/data/build/dist/client/remote-web-context.js +939 -0
- package/data/build/dist/client/session-adapter-cache.d.ts +18 -0
- package/data/build/dist/client/session-adapter-cache.js +84 -0
- package/data/build/dist/client/settings-bridge.d.ts +32 -0
- package/data/build/dist/client/settings-bridge.js +126 -0
- package/data/build/dist/client/settings-section.d.ts +30 -0
- package/data/build/dist/client/settings-section.js +93 -0
- package/data/build/dist/client/subscription-slot.d.ts +18 -0
- package/data/build/dist/client/subscription-slot.js +223 -0
- package/data/build/dist/client/terminal/index.d.ts +4 -0
- package/data/build/dist/client/terminal/index.js +3 -0
- package/data/build/dist/client/terminal/model.d.ts +116 -0
- package/data/build/dist/client/terminal/model.js +435 -0
- package/data/build/dist/client/terminal/styles.d.ts +21 -0
- package/data/build/dist/client/terminal/styles.js +51 -0
- package/data/build/dist/client/terminal/ui.d.ts +19 -0
- package/data/build/dist/client/terminal/ui.js +257 -0
- package/data/build/dist/client/terminal/xterm-view.d.ts +13 -0
- package/data/build/dist/client/terminal/xterm-view.js +213 -0
- package/data/build/dist/client/theme.d.ts +56 -0
- package/data/build/dist/client/theme.js +186 -0
- package/data/build/dist/client/workspace-session-archive-dom.d.ts +29 -0
- package/data/build/dist/client/workspace-session-archive-dom.js +525 -0
- package/data/build/dist/client/workspace-session-fiber.d.ts +3 -0
- package/data/build/dist/client/workspace-session-fiber.js +33 -0
- package/data/build/dist/client/workspace-session-logo-dom.d.ts +26 -0
- package/data/build/dist/client/workspace-session-logo-dom.js +128 -0
- package/data/build/dist/features/index.d.ts +3 -0
- package/data/build/dist/features/index.js +2 -0
- package/data/build/dist/features/registry.d.ts +74 -0
- package/data/build/dist/features/registry.js +382 -0
- package/data/build/dist/features/resource-scope/index.d.ts +39 -0
- package/data/build/dist/features/resource-scope/index.js +161 -0
- package/data/build/dist/host/auth-session.d.ts +42 -0
- package/data/build/dist/host/auth-session.js +186 -0
- package/data/build/dist/host/cli-adapters/claude-driver.d.ts +14 -0
- package/data/build/dist/host/cli-adapters/claude-driver.js +103 -0
- package/data/build/dist/host/cli-adapters/codex-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/codex-driver.js +534 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +38 -0
- package/data/build/dist/host/cli-adapters/command-code-driver.js +394 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.d.ts +19 -0
- package/data/build/dist/host/cli-adapters/command-code-subscription.js +126 -0
- package/data/build/dist/host/cli-adapters/driver.d.ts +41 -0
- package/data/build/dist/host/cli-adapters/driver.js +2 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.d.ts +37 -0
- package/data/build/dist/host/cli-adapters/dsh-message-projector.js +180 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.d.ts +48 -0
- package/data/build/dist/host/cli-adapters/dsh-tool-history.js +373 -0
- package/data/build/dist/host/cli-adapters/feature.d.ts +7 -0
- package/data/build/dist/host/cli-adapters/feature.js +335 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/gemini-driver.js +427 -0
- package/data/build/dist/host/cli-adapters/grok-driver.d.ts +38 -0
- package/data/build/dist/host/cli-adapters/grok-driver.js +372 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/http-sse-client.js +99 -0
- package/data/build/dist/host/cli-adapters/interaction-events.d.ts +11 -0
- package/data/build/dist/host/cli-adapters/interaction-events.js +80 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts +65 -0
- package/data/build/dist/host/cli-adapters/json-rpc-process.js +256 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.d.ts +21 -0
- package/data/build/dist/host/cli-adapters/kimi-driver.js +382 -0
- package/data/build/dist/host/cli-adapters/model-catalog.d.ts +22 -0
- package/data/build/dist/host/cli-adapters/model-catalog.js +89 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +55 -0
- package/data/build/dist/host/cli-adapters/opencode-driver.js +728 -0
- package/data/build/dist/host/cli-adapters/pi-driver.d.ts +43 -0
- package/data/build/dist/host/cli-adapters/pi-driver.js +312 -0
- package/data/build/dist/host/cli-adapters/process-utils.d.ts +16 -0
- package/data/build/dist/host/cli-adapters/process-utils.js +27 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.d.ts +82 -0
- package/data/build/dist/host/cli-adapters/provider-subscription.js +610 -0
- package/data/build/dist/host/cli-adapters/registry.d.ts +95 -0
- package/data/build/dist/host/cli-adapters/registry.js +659 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +24 -0
- package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +119 -0
- package/data/build/dist/host/cli-adapters/session-probe.d.ts +20 -0
- package/data/build/dist/host/cli-adapters/session-probe.js +139 -0
- package/data/build/dist/host/cli-adapters/session-store.d.ts +68 -0
- package/data/build/dist/host/cli-adapters/session-store.js +180 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +45 -0
- package/data/build/dist/host/cli-adapters/standard-stream-driver.js +205 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.d.ts +25 -0
- package/data/build/dist/host/cli-adapters/stream-normalizer.js +83 -0
- package/data/build/dist/host/cli-adapters/tool-observation.d.ts +9 -0
- package/data/build/dist/host/cli-adapters/tool-observation.js +39 -0
- package/data/build/dist/host/control-api-client.d.ts +84 -0
- package/data/build/dist/host/control-api-client.js +130 -0
- package/data/build/dist/host/credential-store.d.ts +54 -0
- package/data/build/dist/host/credential-store.js +114 -0
- package/data/build/dist/host/debug.d.ts +79 -0
- package/data/build/dist/host/debug.js +295 -0
- package/data/build/dist/host/dsh-device-runtime.d.ts +39 -0
- package/data/build/dist/host/dsh-device-runtime.js +118 -0
- package/data/build/dist/host/dsh-gateway-feature.d.ts +5 -0
- package/data/build/dist/host/dsh-gateway-feature.js +55 -0
- package/data/build/dist/host/dsh-runtime-version.d.ts +12 -0
- package/data/build/dist/host/dsh-runtime-version.js +69 -0
- package/data/build/dist/host/features/auth.d.ts +11 -0
- package/data/build/dist/host/features/auth.js +273 -0
- package/data/build/dist/host/features/debug.d.ts +5 -0
- package/data/build/dist/host/features/debug.js +90 -0
- package/data/build/dist/host/features/host-status.d.ts +12 -0
- package/data/build/dist/host/features/host-status.js +54 -0
- package/data/build/dist/host/features/index.d.ts +19 -0
- package/data/build/dist/host/features/index.js +29 -0
- package/data/build/dist/host/features/lan-access-dsh.d.ts +8 -0
- package/data/build/dist/host/features/lan-access-dsh.js +45 -0
- package/data/build/dist/host/features/terminal-process.d.ts +5 -0
- package/data/build/dist/host/features/terminal-process.js +110 -0
- package/data/build/dist/host/features/terminal-status.d.ts +18 -0
- package/data/build/dist/host/features/terminal-status.js +56 -0
- package/data/build/dist/host/features/types.d.ts +41 -0
- package/data/build/dist/host/features/types.js +2 -0
- package/data/build/dist/host/index.d.ts +43 -0
- package/data/build/dist/host/index.js +135 -0
- package/data/build/dist/host/lan-access-dsh.d.ts +83 -0
- package/data/build/dist/host/lan-access-dsh.js +831 -0
- package/data/build/dist/host/native-session-bridge.d.ts +130 -0
- package/data/build/dist/host/native-session-bridge.js +317 -0
- package/data/build/dist/host/relay-tunnel-runtime.d.ts +97 -0
- package/data/build/dist/host/relay-tunnel-runtime.js +361 -0
- package/data/build/dist/host/remote-web-runtime.d.ts +78 -0
- package/data/build/dist/host/remote-web-runtime.js +559 -0
- package/data/build/dist/host/rpc-table.d.ts +32 -0
- package/data/build/dist/host/rpc-table.js +47 -0
- package/data/build/dist/host/rpc.d.ts +18 -0
- package/data/build/dist/host/rpc.js +248 -0
- package/data/build/dist/host/settings.d.ts +19 -0
- package/data/build/dist/host/settings.js +80 -0
- package/data/build/dist/host/terminal/attachment-registry.d.ts +17 -0
- package/data/build/dist/host/terminal/attachment-registry.js +49 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.d.ts +39 -0
- package/data/build/dist/host/terminal/backends/conpty-backend.js +160 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.d.ts +36 -0
- package/data/build/dist/host/terminal/backends/local-pty-backend.js +178 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +40 -0
- package/data/build/dist/host/terminal/backends/tmux-backend.js +191 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.d.ts +27 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-client.js +154 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.d.ts +10 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-process.js +147 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.d.ts +92 -0
- package/data/build/dist/host/terminal/broker/conpty-broker-protocol.js +134 -0
- package/data/build/dist/host/terminal/controller-factory.d.ts +37 -0
- package/data/build/dist/host/terminal/controller-factory.js +82 -0
- package/data/build/dist/host/terminal/index.d.ts +17 -0
- package/data/build/dist/host/terminal/index.js +17 -0
- package/data/build/dist/host/terminal/runtime-adapter.d.ts +77 -0
- package/data/build/dist/host/terminal/runtime-adapter.js +18 -0
- package/data/build/dist/host/terminal/runtime-manager.d.ts +41 -0
- package/data/build/dist/host/terminal/runtime-manager.js +179 -0
- package/data/build/dist/host/terminal/shell-detection.d.ts +23 -0
- package/data/build/dist/host/terminal/shell-detection.js +105 -0
- package/data/build/dist/host/terminal/startup.d.ts +33 -0
- package/data/build/dist/host/terminal/startup.js +100 -0
- package/data/build/dist/host/terminal/terminal-controller.d.ts +78 -0
- package/data/build/dist/host/terminal/terminal-controller.js +324 -0
- package/data/build/dist/host/terminal/terminal-process-service.d.ts +30 -0
- package/data/build/dist/host/terminal/terminal-process-service.js +194 -0
- package/data/build/dist/host/terminal/terminal-process-store.d.ts +45 -0
- package/data/build/dist/host/terminal/terminal-process-store.js +183 -0
- package/data/build/dist/host/terminal/terminal-service.d.ts +87 -0
- package/data/build/dist/host/terminal/terminal-service.js +528 -0
- package/data/build/dist/host/terminal/terminal-store.d.ts +49 -0
- package/data/build/dist/host/terminal/terminal-store.js +242 -0
- package/data/build/dist/index.d.ts +37 -0
- package/data/build/dist/index.js +26 -0
- package/data/build/dist/shared/contracts/auth.d.ts +122 -0
- package/data/build/dist/shared/contracts/auth.js +8 -0
- package/data/build/dist/shared/contracts/cli-adapter.d.ts +192 -0
- package/data/build/dist/shared/contracts/cli-adapter.js +2 -0
- package/data/build/dist/shared/contracts/command-code.d.ts +5 -0
- package/data/build/dist/shared/contracts/command-code.js +2 -0
- package/data/build/dist/shared/contracts/config.d.ts +113 -0
- package/data/build/dist/shared/contracts/config.js +86 -0
- package/data/build/dist/shared/contracts/debug-config.d.ts +28 -0
- package/data/build/dist/shared/contracts/debug-config.js +78 -0
- package/data/build/dist/shared/contracts/debug.d.ts +75 -0
- package/data/build/dist/shared/contracts/debug.js +121 -0
- package/data/build/dist/shared/contracts/dsh-device.d.ts +72 -0
- package/data/build/dist/shared/contracts/dsh-device.js +2 -0
- package/data/build/dist/shared/contracts/errors.d.ts +33 -0
- package/data/build/dist/shared/contracts/errors.js +41 -0
- package/data/build/dist/shared/contracts/feature.d.ts +71 -0
- package/data/build/dist/shared/contracts/feature.js +2 -0
- package/data/build/dist/shared/contracts/host-status.d.ts +14 -0
- package/data/build/dist/shared/contracts/host-status.js +2 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.d.ts +30 -0
- package/data/build/dist/shared/contracts/lan-access-dsh.js +2 -0
- package/data/build/dist/shared/contracts/peer-host.d.ts +37 -0
- package/data/build/dist/shared/contracts/peer-host.js +9 -0
- package/data/build/dist/shared/contracts/signaling.d.ts +67 -0
- package/data/build/dist/shared/contracts/signaling.js +2 -0
- package/data/build/dist/shared/contracts/subscription.d.ts +69 -0
- package/data/build/dist/shared/contracts/subscription.js +2 -0
- package/data/build/dist/shared/contracts/terminal-process.d.ts +65 -0
- package/data/build/dist/shared/contracts/terminal-process.js +2 -0
- package/data/build/dist/shared/contracts/terminal.d.ts +127 -0
- package/data/build/dist/shared/contracts/terminal.js +2 -0
- package/data/build/dist/shared/contracts/transport.d.ts +45 -0
- package/data/build/dist/shared/contracts/transport.js +3 -0
- package/data/build/dist/shared/contracts/version.d.ts +19 -0
- package/data/build/dist/shared/contracts/version.js +74 -0
- package/data/build/dist/shared/index.d.ts +22 -0
- package/data/build/dist/shared/index.js +9 -0
- package/data/build/dist/transport/carrier.d.ts +38 -0
- package/data/build/dist/transport/carrier.js +268 -0
- package/data/build/dist/transport/debug.d.ts +22 -0
- package/data/build/dist/transport/debug.js +57 -0
- package/data/build/dist/transport/dsh-envelope.d.ts +41 -0
- package/data/build/dist/transport/dsh-envelope.js +107 -0
- package/data/build/dist/transport/dsh-gateway.d.ts +64 -0
- package/data/build/dist/transport/dsh-gateway.js +254 -0
- package/data/build/dist/transport/dsh-session.d.ts +55 -0
- package/data/build/dist/transport/dsh-session.js +256 -0
- package/data/build/dist/transport/dsh-transport.d.ts +57 -0
- package/data/build/dist/transport/dsh-transport.js +125 -0
- package/data/build/dist/transport/frame.d.ts +132 -0
- package/data/build/dist/transport/frame.js +168 -0
- package/data/build/dist/transport/index.d.ts +11 -0
- package/data/build/dist/transport/index.js +11 -0
- package/data/build/dist/transport/multiplexer.d.ts +63 -0
- package/data/build/dist/transport/multiplexer.js +323 -0
- package/data/build/dist/transport/webrtc-client.d.ts +65 -0
- package/data/build/dist/transport/webrtc-client.js +255 -0
- package/data/build/dist/transport/webrtc-host.d.ts +58 -0
- package/data/build/dist/transport/webrtc-host.js +252 -0
- package/data/build/dist/typert.host.d.ts +25 -0
- package/data/build/dist/typert.host.js +150 -0
- package/dsh.bundle.patch +12 -0
- package/package.json +135 -0
- package/profile/README.md +27 -0
- package/profile/cordis.patch.yml +2 -0
- package/profile/package.json +20 -0
- package/profile/scripts/check-dsh-install.mjs +71 -0
- package/profile/version.json +5 -0
- package/scripts/check-dsh-install.mjs +88 -0
- package/version.json +6 -0
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSH 0.1.6 暴露的主题令牌。
|
|
3
|
+
*
|
|
4
|
+
* 回退值只服务于独立测试或宿主尚未加载主题的瞬间;正常运行时由 DSH 的明暗
|
|
5
|
+
* 主题覆盖。所有表单表面必须同时设置背景和前景,避免再次出现白底白字。
|
|
6
|
+
*/
|
|
7
|
+
export const dshThemeColor = {
|
|
8
|
+
labelPrimary: 'var(--dsw-alias-label-primary, CanvasText)',
|
|
9
|
+
labelSecondary: 'var(--dsw-alias-label-secondary, GrayText)',
|
|
10
|
+
labelTertiary: 'var(--dsw-alias-label-tertiary, GrayText)',
|
|
11
|
+
labelCaption: 'var(--dsw-alias-label-caption, GrayText)',
|
|
12
|
+
border: 'var(--dsw-alias-border-l2, #d9d9d9)',
|
|
13
|
+
inputBackground: 'var(--dsw-specific-input-major, Canvas)',
|
|
14
|
+
surfaceSubtle: 'var(--dsw-alias-bg-secondary, rgba(127, 127, 127, 0.06))',
|
|
15
|
+
buttonBackground: 'var(--dsw-alias-button-elevated-fill, transparent)',
|
|
16
|
+
menuBackground: 'var(--dsw-specific-menu, Canvas)',
|
|
17
|
+
pageBackground: 'var(--dsw-alias-bg-primary, Canvas)',
|
|
18
|
+
overlay: 'var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.45))',
|
|
19
|
+
accent: 'var(--dsw-alias-button-info-fill, #1677ff)',
|
|
20
|
+
success: 'var(--dsw-alias-state-success-primary, #16803c)',
|
|
21
|
+
error: 'var(--dsw-alias-state-error-primary, #b42318)',
|
|
22
|
+
switchThumb: 'var(--dsw-static-neutral-00, #fff)',
|
|
23
|
+
prominentShadow: 'var(--dsw-elevation-prominent, 0 12px 40px rgba(0, 0, 0, 0.25))',
|
|
24
|
+
subtleShadow: 'var(--dsw-elevation-l1, 0 1px 2px rgba(0, 0, 0, 0.06))',
|
|
25
|
+
};
|
|
26
|
+
/** 设置模块根节点显式接入 DSH 的主文字色。 */
|
|
27
|
+
export const dshFormRootStyle = {
|
|
28
|
+
color: dshThemeColor.labelPrimary,
|
|
29
|
+
};
|
|
30
|
+
/** input、select 和 textarea 共用的主题表面。 */
|
|
31
|
+
export const dshFieldStyle = {
|
|
32
|
+
color: dshThemeColor.labelPrimary,
|
|
33
|
+
background: dshThemeColor.inputBackground,
|
|
34
|
+
border: `1px solid ${dshThemeColor.border}`,
|
|
35
|
+
};
|
|
36
|
+
/** 普通表单按钮共用的主题表面。 */
|
|
37
|
+
export const dshButtonStyle = {
|
|
38
|
+
color: dshThemeColor.labelPrimary,
|
|
39
|
+
background: dshThemeColor.buttonBackground,
|
|
40
|
+
border: `1px solid ${dshThemeColor.border}`,
|
|
41
|
+
};
|
|
42
|
+
/** Codingns4DSH 设置页共享外壳:保持紧凑宽度,避免挤压宿主设置导航。 */
|
|
43
|
+
export const dshSettingsPageStyle = {
|
|
44
|
+
...dshFormRootStyle,
|
|
45
|
+
display: 'flex',
|
|
46
|
+
flexDirection: 'column',
|
|
47
|
+
gap: 20,
|
|
48
|
+
width: '100%',
|
|
49
|
+
maxWidth: 900,
|
|
50
|
+
margin: '0 auto',
|
|
51
|
+
padding: '20px clamp(16px, 3vw, 32px) 28px',
|
|
52
|
+
boxSizing: 'border-box',
|
|
53
|
+
};
|
|
54
|
+
/** 设置页标题区,使用宿主主题颜色而不是独立品牌色。 */
|
|
55
|
+
export const dshSettingsHeaderStyle = {
|
|
56
|
+
display: 'flex',
|
|
57
|
+
flexDirection: 'column',
|
|
58
|
+
gap: 5,
|
|
59
|
+
paddingBottom: 16,
|
|
60
|
+
borderBottom: `1px solid ${dshThemeColor.border}`,
|
|
61
|
+
};
|
|
62
|
+
export const dshSettingsTitleStyle = {
|
|
63
|
+
margin: 0,
|
|
64
|
+
color: dshThemeColor.labelPrimary,
|
|
65
|
+
fontSize: 21,
|
|
66
|
+
lineHeight: 1.3,
|
|
67
|
+
fontWeight: 700,
|
|
68
|
+
};
|
|
69
|
+
export const dshSettingsSubtitleStyle = {
|
|
70
|
+
margin: 0,
|
|
71
|
+
color: dshThemeColor.labelSecondary,
|
|
72
|
+
fontSize: 13,
|
|
73
|
+
lineHeight: 1.5,
|
|
74
|
+
};
|
|
75
|
+
/** 模块卡片和标题栏共享的结构样式。 */
|
|
76
|
+
export const dshSettingsCardStyle = {
|
|
77
|
+
background: dshThemeColor.pageBackground,
|
|
78
|
+
border: `1px solid ${dshThemeColor.border}`,
|
|
79
|
+
borderRadius: 8,
|
|
80
|
+
overflow: 'hidden',
|
|
81
|
+
boxShadow: dshThemeColor.subtleShadow,
|
|
82
|
+
};
|
|
83
|
+
export const dshSettingsSummaryStyle = {
|
|
84
|
+
display: 'flex',
|
|
85
|
+
alignItems: 'center',
|
|
86
|
+
justifyContent: 'space-between',
|
|
87
|
+
gap: 14,
|
|
88
|
+
minHeight: 58,
|
|
89
|
+
padding: '12px 16px',
|
|
90
|
+
boxSizing: 'border-box',
|
|
91
|
+
cursor: 'pointer',
|
|
92
|
+
listStyle: 'none',
|
|
93
|
+
};
|
|
94
|
+
export const dshSettingsSummaryTextStyle = {
|
|
95
|
+
display: 'flex',
|
|
96
|
+
flexDirection: 'column',
|
|
97
|
+
gap: 3,
|
|
98
|
+
minWidth: 0,
|
|
99
|
+
};
|
|
100
|
+
export const dshSettingsSummaryLabelStyle = {
|
|
101
|
+
color: dshThemeColor.labelPrimary,
|
|
102
|
+
fontSize: 14,
|
|
103
|
+
lineHeight: 1.35,
|
|
104
|
+
fontWeight: 650,
|
|
105
|
+
};
|
|
106
|
+
export const dshSettingsSummaryDescriptionStyle = {
|
|
107
|
+
color: dshThemeColor.labelSecondary,
|
|
108
|
+
fontSize: 12,
|
|
109
|
+
lineHeight: 1.45,
|
|
110
|
+
overflow: 'hidden',
|
|
111
|
+
textOverflow: 'ellipsis',
|
|
112
|
+
};
|
|
113
|
+
export const dshSettingsBodyStyle = {
|
|
114
|
+
display: 'flex',
|
|
115
|
+
flexDirection: 'column',
|
|
116
|
+
gap: 16,
|
|
117
|
+
padding: '18px 20px 20px',
|
|
118
|
+
borderTop: `1px solid ${dshThemeColor.border}`,
|
|
119
|
+
boxSizing: 'border-box',
|
|
120
|
+
};
|
|
121
|
+
export const dshSettingsFieldLabelStyle = {
|
|
122
|
+
color: dshThemeColor.labelSecondary,
|
|
123
|
+
fontSize: 12,
|
|
124
|
+
lineHeight: 1.4,
|
|
125
|
+
fontWeight: 600,
|
|
126
|
+
};
|
|
127
|
+
export const dshSettingsFieldStyle = {
|
|
128
|
+
...dshFieldStyle,
|
|
129
|
+
width: '100%',
|
|
130
|
+
minHeight: 36,
|
|
131
|
+
boxSizing: 'border-box',
|
|
132
|
+
padding: '8px 10px',
|
|
133
|
+
borderRadius: 6,
|
|
134
|
+
fontSize: 13,
|
|
135
|
+
};
|
|
136
|
+
export const dshSettingsButtonStyle = {
|
|
137
|
+
...dshButtonStyle,
|
|
138
|
+
minHeight: 36,
|
|
139
|
+
padding: '8px 14px',
|
|
140
|
+
borderRadius: 6,
|
|
141
|
+
fontSize: 13,
|
|
142
|
+
lineHeight: 1.3,
|
|
143
|
+
cursor: 'pointer',
|
|
144
|
+
};
|
|
145
|
+
export const dshSettingsPrimaryButtonStyle = {
|
|
146
|
+
...dshSettingsButtonStyle,
|
|
147
|
+
color: dshThemeColor.switchThumb,
|
|
148
|
+
background: dshThemeColor.accent,
|
|
149
|
+
borderColor: dshThemeColor.accent,
|
|
150
|
+
};
|
|
151
|
+
export const dshSettingsRowStyle = {
|
|
152
|
+
display: 'flex',
|
|
153
|
+
alignItems: 'center',
|
|
154
|
+
gap: 8,
|
|
155
|
+
width: '100%',
|
|
156
|
+
};
|
|
157
|
+
export const dshSettingsListRowStyle = {
|
|
158
|
+
display: 'flex',
|
|
159
|
+
alignItems: 'center',
|
|
160
|
+
gap: 12,
|
|
161
|
+
minHeight: 52,
|
|
162
|
+
padding: '10px 0',
|
|
163
|
+
borderBottom: `1px solid ${dshThemeColor.border}`,
|
|
164
|
+
boxSizing: 'border-box',
|
|
165
|
+
};
|
|
166
|
+
export const dshSettingsHelpStyle = {
|
|
167
|
+
color: dshThemeColor.labelTertiary,
|
|
168
|
+
fontSize: 12,
|
|
169
|
+
lineHeight: 1.5,
|
|
170
|
+
};
|
|
171
|
+
export const dshSettingsNoteStyle = {
|
|
172
|
+
padding: '10px 12px',
|
|
173
|
+
border: `1px solid ${dshThemeColor.border}`,
|
|
174
|
+
borderRadius: 6,
|
|
175
|
+
color: dshThemeColor.labelSecondary,
|
|
176
|
+
background: dshThemeColor.surfaceSubtle,
|
|
177
|
+
fontSize: 12,
|
|
178
|
+
lineHeight: 1.5,
|
|
179
|
+
};
|
|
180
|
+
/** 模态框和弹出菜单必须成对设置前景色与背景色。 */
|
|
181
|
+
export const dshPopupSurfaceStyle = {
|
|
182
|
+
color: dshThemeColor.labelPrimary,
|
|
183
|
+
background: dshThemeColor.menuBackground,
|
|
184
|
+
boxShadow: dshThemeColor.prominentShadow,
|
|
185
|
+
};
|
|
186
|
+
//# sourceMappingURL=theme.js.map
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/** 归档入口和模态框节点使用的标记,便于重复扫描与停用时完整清理。 */
|
|
2
|
+
export declare const WORKSPACE_SESSION_ARCHIVE_ATTRIBUTE = "data-codingns-session-archive";
|
|
3
|
+
export declare const WORKSPACE_SESSION_ARCHIVE_MODAL_ATTRIBUTE = "data-codingns-session-archive-modal";
|
|
4
|
+
export interface ArchivedSessionItem {
|
|
5
|
+
readonly sessionId: string;
|
|
6
|
+
readonly title: string;
|
|
7
|
+
readonly archivedAt: number;
|
|
8
|
+
readonly workspaceId?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface WorkspaceSessionArchiveDomController {
|
|
11
|
+
refresh(): void;
|
|
12
|
+
dispose(): void;
|
|
13
|
+
}
|
|
14
|
+
export interface WorkspaceSessionArchiveDomOptions {
|
|
15
|
+
readonly document?: Document;
|
|
16
|
+
readonly MutationObserver?: typeof MutationObserver;
|
|
17
|
+
readonly remote?: unknown;
|
|
18
|
+
readonly now?: () => number;
|
|
19
|
+
}
|
|
20
|
+
/** 读取当前 DSH Workspace 的归档会话摘要,独立导出供契约测试和宿主探测使用。 */
|
|
21
|
+
export declare function loadWorkspaceArchivedSessions(remote: unknown, now?: () => number): Promise<ReadonlyMap<string, readonly ArchivedSessionItem[]>>;
|
|
22
|
+
/**
|
|
23
|
+
* 在原生工作区会话列表的“展开更多会话”按钮前插入归档入口。
|
|
24
|
+
*
|
|
25
|
+
* DSH 0.1.6 的侧栏没有可供插件追加内容的 Slot,因此这里只读 DOM 和 Fiber
|
|
26
|
+
* 身份;真正的归档和取消归档仍交给 DSH Workspace Controller,避免旁路修改存储。
|
|
27
|
+
*/
|
|
28
|
+
export declare function startWorkspaceSessionArchiveDom(options?: WorkspaceSessionArchiveDomOptions): WorkspaceSessionArchiveDomController;
|
|
29
|
+
//# sourceMappingURL=workspace-session-archive-dom.d.ts.map
|