@jingyi0605/codingns4dsh 0.2.1-beta.4 → 0.2.1-beta.6

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.
Files changed (459) hide show
  1. package/README.en.md +134 -159
  2. package/README.md +128 -261
  3. package/assets/provider-icons/doubao.png +0 -0
  4. package/data/build/dist/client/account-bar.d.ts +1 -1
  5. package/data/build/dist/client/account-bar.d.ts.map +1 -1
  6. package/data/build/dist/client/account-bar.js +22 -14
  7. package/data/build/dist/client/account-bar.js.map +1 -1
  8. package/data/build/dist/client/adapter-catalog-watch.d.ts +8 -0
  9. package/data/build/dist/client/adapter-catalog-watch.d.ts.map +1 -0
  10. package/data/build/dist/client/adapter-catalog-watch.js +79 -0
  11. package/data/build/dist/client/adapter-catalog-watch.js.map +1 -0
  12. package/data/build/dist/client/avatar/catalog-panel.d.ts +1 -1
  13. package/data/build/dist/client/avatar/catalog-panel.d.ts.map +1 -1
  14. package/data/build/dist/client/avatar/catalog-panel.js +13 -11
  15. package/data/build/dist/client/avatar/catalog-panel.js.map +1 -1
  16. package/data/build/dist/client/avatar/engine.d.ts.map +1 -1
  17. package/data/build/dist/client/avatar/engine.js +26 -7
  18. package/data/build/dist/client/avatar/engine.js.map +1 -1
  19. package/data/build/dist/client/avatar/live2d.d.ts +2 -0
  20. package/data/build/dist/client/avatar/live2d.d.ts.map +1 -1
  21. package/data/build/dist/client/avatar/live2d.js +16 -6
  22. package/data/build/dist/client/avatar/live2d.js.map +1 -1
  23. package/data/build/dist/client/avatar/manager.d.ts.map +1 -1
  24. package/data/build/dist/client/avatar/manager.js +8 -2
  25. package/data/build/dist/client/avatar/manager.js.map +1 -1
  26. package/data/build/dist/client/avatar/slot.d.ts.map +1 -1
  27. package/data/build/dist/client/avatar/slot.js +4 -1
  28. package/data/build/dist/client/avatar/slot.js.map +1 -1
  29. package/data/build/dist/client/bundle.js +48459 -98385
  30. package/data/build/dist/client/bundle.js.map +1 -1
  31. package/data/build/dist/client/cli-catalog.d.ts +5 -0
  32. package/data/build/dist/client/cli-catalog.d.ts.map +1 -1
  33. package/data/build/dist/client/cli-catalog.js +15 -0
  34. package/data/build/dist/client/cli-catalog.js.map +1 -1
  35. package/data/build/dist/client/cli-slots.d.ts.map +1 -1
  36. package/data/build/dist/client/cli-slots.js +7 -45
  37. package/data/build/dist/client/cli-slots.js.map +1 -1
  38. package/data/build/dist/client/client.assistant-configuration-view.js +4526 -0
  39. package/data/build/dist/client/client.assistant-configuration-view.js.map +1 -0
  40. package/data/build/dist/client/client.assistant-debug-workbench.js +764 -0
  41. package/data/build/dist/client/client.assistant-debug-workbench.js.map +1 -0
  42. package/data/build/dist/client/client.assistant-prompt-editor.js +76 -0
  43. package/data/build/dist/client/client.assistant-prompt-editor.js.map +1 -0
  44. package/data/build/dist/client/client.assistant-prompts.js +44 -0
  45. package/data/build/dist/client/client.assistant-prompts.js.map +1 -0
  46. package/data/build/dist/client/client.assistant-voice-sessions.js +144 -0
  47. package/data/build/dist/client/client.assistant-voice-sessions.js.map +1 -0
  48. package/data/build/dist/client/client.assistant-workbench.js +2929 -0
  49. package/data/build/dist/client/client.assistant-workbench.js.map +1 -0
  50. package/data/build/dist/client/client.delegate-command.js +1315 -0
  51. package/data/build/dist/client/client.delegate-command.js.map +1 -0
  52. package/data/build/dist/client/client.editor-engine.js +32486 -0
  53. package/data/build/dist/client/client.editor-engine.js.map +1 -0
  54. package/data/build/dist/client/client.manager.js +3454 -0
  55. package/data/build/dist/client/client.manager.js.map +1 -0
  56. package/data/build/dist/client/client.model-catalog-cache.js +543 -0
  57. package/data/build/dist/client/client.model-catalog-cache.js.map +1 -0
  58. package/data/build/dist/client/client.native-workspace-store.js +689 -0
  59. package/data/build/dist/client/client.native-workspace-store.js.map +1 -0
  60. package/data/build/dist/client/client.primitives-adapter.js +333 -0
  61. package/data/build/dist/client/client.primitives-adapter.js.map +1 -0
  62. package/data/build/dist/client/client.react-dom.js +7286 -0
  63. package/data/build/dist/client/client.react-dom.js.map +1 -0
  64. package/data/build/dist/client/client.rolldown-runtime.js +59 -0
  65. package/data/build/dist/client/client.theme.js +386 -0
  66. package/data/build/dist/client/client.theme.js.map +1 -0
  67. package/data/build/dist/client/client.transport.js +3323 -0
  68. package/data/build/dist/client/client.transport.js.map +1 -0
  69. package/data/build/dist/client/client.xterm-engine.js +13064 -0
  70. package/data/build/dist/client/client.xterm-engine.js.map +1 -0
  71. package/data/build/dist/client/debug/ui.d.ts.map +1 -1
  72. package/data/build/dist/client/debug/ui.js +14 -5
  73. package/data/build/dist/client/debug/ui.js.map +1 -1
  74. package/data/build/dist/client/desktop-assistant.js +19 -5
  75. package/data/build/dist/client/editor-engine.d.ts +4 -0
  76. package/data/build/dist/client/editor-engine.d.ts.map +1 -0
  77. package/data/build/dist/client/editor-engine.js +50 -0
  78. package/data/build/dist/client/editor-engine.js.map +1 -0
  79. package/data/build/dist/client/engine-loader.d.ts +5 -0
  80. package/data/build/dist/client/engine-loader.d.ts.map +1 -0
  81. package/data/build/dist/client/engine-loader.js +35 -0
  82. package/data/build/dist/client/engine-loader.js.map +1 -0
  83. package/data/build/dist/client/features/assistant-configuration-loader.d.ts +14 -0
  84. package/data/build/dist/client/features/assistant-configuration-loader.d.ts.map +1 -0
  85. package/data/build/dist/client/features/assistant-configuration-loader.js +13 -0
  86. package/data/build/dist/client/features/assistant-configuration-loader.js.map +1 -0
  87. package/data/build/dist/client/features/assistant-configuration-session.d.ts.map +1 -1
  88. package/data/build/dist/client/features/assistant-configuration-session.js +13 -4
  89. package/data/build/dist/client/features/assistant-configuration-session.js.map +1 -1
  90. package/data/build/dist/client/features/assistant-configuration-view.d.ts +66 -0
  91. package/data/build/dist/client/features/assistant-configuration-view.d.ts.map +1 -0
  92. package/data/build/dist/client/features/assistant-configuration-view.js +133 -0
  93. package/data/build/dist/client/features/assistant-configuration-view.js.map +1 -0
  94. package/data/build/dist/client/features/assistant-debug-workbench.d.ts +4 -11
  95. package/data/build/dist/client/features/assistant-debug-workbench.d.ts.map +1 -1
  96. package/data/build/dist/client/features/assistant-debug-workbench.js +41 -68
  97. package/data/build/dist/client/features/assistant-debug-workbench.js.map +1 -1
  98. package/data/build/dist/client/features/assistant-display-store.d.ts +57 -0
  99. package/data/build/dist/client/features/assistant-display-store.d.ts.map +1 -0
  100. package/data/build/dist/client/features/assistant-display-store.js +189 -0
  101. package/data/build/dist/client/features/assistant-display-store.js.map +1 -0
  102. package/data/build/dist/client/features/assistant-prompt-editor.d.ts +12 -0
  103. package/data/build/dist/client/features/assistant-prompt-editor.d.ts.map +1 -0
  104. package/data/build/dist/client/features/assistant-prompt-editor.js +14 -0
  105. package/data/build/dist/client/features/assistant-prompt-editor.js.map +1 -0
  106. package/data/build/dist/client/features/assistant-view-loader.d.ts +17 -0
  107. package/data/build/dist/client/features/assistant-view-loader.d.ts.map +1 -0
  108. package/data/build/dist/client/features/assistant-view-loader.js +49 -0
  109. package/data/build/dist/client/features/assistant-view-loader.js.map +1 -0
  110. package/data/build/dist/client/features/assistant-workbench.d.ts +1 -60
  111. package/data/build/dist/client/features/assistant-workbench.d.ts.map +1 -1
  112. package/data/build/dist/client/features/assistant-workbench.js +41 -169
  113. package/data/build/dist/client/features/assistant-workbench.js.map +1 -1
  114. package/data/build/dist/client/features/cli-adapters.d.ts.map +1 -1
  115. package/data/build/dist/client/features/cli-adapters.js +44 -13
  116. package/data/build/dist/client/features/cli-adapters.js.map +1 -1
  117. package/data/build/dist/client/features/global-voice-assistant.d.ts.map +1 -1
  118. package/data/build/dist/client/features/global-voice-assistant.js +33 -27
  119. package/data/build/dist/client/features/global-voice-assistant.js.map +1 -1
  120. package/data/build/dist/client/features/peer-host.d.ts +2 -1
  121. package/data/build/dist/client/features/peer-host.d.ts.map +1 -1
  122. package/data/build/dist/client/features/peer-host.js +124 -58
  123. package/data/build/dist/client/features/peer-host.js.map +1 -1
  124. package/data/build/dist/client/features/workspace-session-enhancement.d.ts.map +1 -1
  125. package/data/build/dist/client/features/workspace-session-enhancement.js +37 -10
  126. package/data/build/dist/client/features/workspace-session-enhancement.js.map +1 -1
  127. package/data/build/dist/client/file-management-dom.d.ts +3 -1
  128. package/data/build/dist/client/file-management-dom.d.ts.map +1 -1
  129. package/data/build/dist/client/file-management-dom.js +85 -79
  130. package/data/build/dist/client/file-management-dom.js.map +1 -1
  131. package/data/build/dist/client/git-management.d.ts +1 -1
  132. package/data/build/dist/client/git-management.d.ts.map +1 -1
  133. package/data/build/dist/client/git-management.js +46 -27
  134. package/data/build/dist/client/git-management.js.map +1 -1
  135. package/data/build/dist/client/locale.d.ts.map +1 -1
  136. package/data/build/dist/client/locale.js +10 -0
  137. package/data/build/dist/client/locale.js.map +1 -1
  138. package/data/build/dist/client/locales/assistantAvatar.d.ts +1 -1
  139. package/data/build/dist/client/locales/assistantAvatar.js +2 -2
  140. package/data/build/dist/client/locales/assistantAvatar.js.map +1 -1
  141. package/data/build/dist/client/locales/fileWorkspace.d.ts.map +1 -1
  142. package/data/build/dist/client/locales/fileWorkspace.js +2 -0
  143. package/data/build/dist/client/locales/fileWorkspace.js.map +1 -1
  144. package/data/build/dist/client/locales/peerHost.d.ts.map +1 -1
  145. package/data/build/dist/client/locales/peerHost.js +4 -0
  146. package/data/build/dist/client/locales/peerHost.js.map +1 -1
  147. package/data/build/dist/client/locales/peerHostWorkspace.js +2 -2
  148. package/data/build/dist/client/locales/peerHostWorkspace.js.map +1 -1
  149. package/data/build/dist/client/locales/usage.d.ts.map +1 -1
  150. package/data/build/dist/client/locales/usage.js +4 -0
  151. package/data/build/dist/client/locales/usage.js.map +1 -1
  152. package/data/build/dist/client/model-catalog-cache.d.ts.map +1 -1
  153. package/data/build/dist/client/model-catalog-cache.js +9 -2
  154. package/data/build/dist/client/model-catalog-cache.js.map +1 -1
  155. package/data/build/dist/client/peer-host-management-api.d.ts +2 -2
  156. package/data/build/dist/client/peer-host-management-api.d.ts.map +1 -1
  157. package/data/build/dist/client/peer-host-management-api.js +8 -5
  158. package/data/build/dist/client/peer-host-management-api.js.map +1 -1
  159. package/data/build/dist/client/provider-icon-assets.js +5 -39
  160. package/data/build/dist/client/provider-icon-assets.js.map +1 -1
  161. package/data/build/dist/client/provider-icon-bridge.d.ts +6 -0
  162. package/data/build/dist/client/provider-icon-bridge.d.ts.map +1 -0
  163. package/data/build/dist/client/provider-icon-bridge.js +65 -0
  164. package/data/build/dist/client/provider-icon-bridge.js.map +1 -0
  165. package/data/build/dist/client/provider-icons.d.ts +1 -0
  166. package/data/build/dist/client/provider-icons.d.ts.map +1 -1
  167. package/data/build/dist/client/provider-icons.js +2 -1
  168. package/data/build/dist/client/provider-icons.js.map +1 -1
  169. package/data/build/dist/client/remote-web-context.d.ts +2 -0
  170. package/data/build/dist/client/remote-web-context.d.ts.map +1 -1
  171. package/data/build/dist/client/remote-web-context.js +50 -2
  172. package/data/build/dist/client/remote-web-context.js.map +1 -1
  173. package/data/build/dist/client/rpc-call.d.ts +4 -0
  174. package/data/build/dist/client/rpc-call.d.ts.map +1 -0
  175. package/data/build/dist/client/rpc-call.js +23 -0
  176. package/data/build/dist/client/rpc-call.js.map +1 -0
  177. package/data/build/dist/client/serial-polling.d.ts +15 -0
  178. package/data/build/dist/client/serial-polling.d.ts.map +1 -0
  179. package/data/build/dist/client/serial-polling.js +48 -0
  180. package/data/build/dist/client/serial-polling.js.map +1 -0
  181. package/data/build/dist/client/session-adapter-cache.d.ts.map +1 -1
  182. package/data/build/dist/client/session-adapter-cache.js +11 -1
  183. package/data/build/dist/client/session-adapter-cache.js.map +1 -1
  184. package/data/build/dist/client/settings-section.js +8 -2
  185. package/data/build/dist/client/settings-section.js.map +1 -1
  186. package/data/build/dist/client/sherpa-voice-adapter.d.ts.map +1 -1
  187. package/data/build/dist/client/sherpa-voice-adapter.js +8 -8
  188. package/data/build/dist/client/sherpa-voice-adapter.js.map +1 -1
  189. package/data/build/dist/client/subscription-slot.d.ts +11 -0
  190. package/data/build/dist/client/subscription-slot.d.ts.map +1 -1
  191. package/data/build/dist/client/subscription-slot.js +42 -15
  192. package/data/build/dist/client/subscription-slot.js.map +1 -1
  193. package/data/build/dist/client/terminal/xterm-engine.d.ts +4 -0
  194. package/data/build/dist/client/terminal/xterm-engine.d.ts.map +1 -0
  195. package/data/build/dist/client/terminal/xterm-engine.js +5 -0
  196. package/data/build/dist/client/terminal/xterm-engine.js.map +1 -0
  197. package/data/build/dist/client/terminal/xterm-view.d.ts.map +1 -1
  198. package/data/build/dist/client/terminal/xterm-view.js +33 -25
  199. package/data/build/dist/client/terminal/xterm-view.js.map +1 -1
  200. package/data/build/dist/host/avatar/temporary-previews.d.ts +3 -1
  201. package/data/build/dist/host/avatar/temporary-previews.d.ts.map +1 -1
  202. package/data/build/dist/host/avatar/temporary-previews.js +7 -2
  203. package/data/build/dist/host/avatar/temporary-previews.js.map +1 -1
  204. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts +1 -1
  205. package/data/build/dist/host/cli-adapters/acp-cli-driver.d.ts.map +1 -1
  206. package/data/build/dist/host/cli-adapters/acp-cli-driver.js +3 -10
  207. package/data/build/dist/host/cli-adapters/acp-cli-driver.js.map +1 -1
  208. package/data/build/dist/host/cli-adapters/antigravity-driver.d.ts.map +1 -1
  209. package/data/build/dist/host/cli-adapters/antigravity-driver.js +2 -2
  210. package/data/build/dist/host/cli-adapters/antigravity-driver.js.map +1 -1
  211. package/data/build/dist/host/cli-adapters/antigravity-subscription.d.ts.map +1 -1
  212. package/data/build/dist/host/cli-adapters/antigravity-subscription.js +10 -10
  213. package/data/build/dist/host/cli-adapters/antigravity-subscription.js.map +1 -1
  214. package/data/build/dist/host/cli-adapters/binary-detection.d.ts +19 -0
  215. package/data/build/dist/host/cli-adapters/binary-detection.d.ts.map +1 -0
  216. package/data/build/dist/host/cli-adapters/binary-detection.js +71 -0
  217. package/data/build/dist/host/cli-adapters/binary-detection.js.map +1 -0
  218. package/data/build/dist/host/cli-adapters/claude-driver.d.ts +2 -0
  219. package/data/build/dist/host/cli-adapters/claude-driver.d.ts.map +1 -1
  220. package/data/build/dist/host/cli-adapters/claude-driver.js +11 -5
  221. package/data/build/dist/host/cli-adapters/claude-driver.js.map +1 -1
  222. package/data/build/dist/host/cli-adapters/claude-model-options.d.ts.map +1 -1
  223. package/data/build/dist/host/cli-adapters/claude-model-options.js +2 -1
  224. package/data/build/dist/host/cli-adapters/claude-model-options.js.map +1 -1
  225. package/data/build/dist/host/cli-adapters/claude-process.d.ts +7 -0
  226. package/data/build/dist/host/cli-adapters/claude-process.d.ts.map +1 -0
  227. package/data/build/dist/host/cli-adapters/claude-process.js +59 -0
  228. package/data/build/dist/host/cli-adapters/claude-process.js.map +1 -0
  229. package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts +3 -0
  230. package/data/build/dist/host/cli-adapters/codebuddy-driver.d.ts.map +1 -1
  231. package/data/build/dist/host/cli-adapters/codebuddy-driver.js +26 -12
  232. package/data/build/dist/host/cli-adapters/codebuddy-driver.js.map +1 -1
  233. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts +0 -1
  234. package/data/build/dist/host/cli-adapters/command-code-driver.d.ts.map +1 -1
  235. package/data/build/dist/host/cli-adapters/command-code-driver.js +10 -32
  236. package/data/build/dist/host/cli-adapters/command-code-driver.js.map +1 -1
  237. package/data/build/dist/host/cli-adapters/cursor-driver.d.ts.map +1 -1
  238. package/data/build/dist/host/cli-adapters/cursor-driver.js +4 -3
  239. package/data/build/dist/host/cli-adapters/cursor-driver.js.map +1 -1
  240. package/data/build/dist/host/cli-adapters/delegate-dispatch.js +1 -1
  241. package/data/build/dist/host/cli-adapters/delegate-dispatch.js.map +1 -1
  242. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts +2 -0
  243. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.d.ts.map +1 -1
  244. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js +5 -0
  245. package/data/build/dist/host/cli-adapters/delegation-mention-rewrite.js.map +1 -1
  246. package/data/build/dist/host/cli-adapters/desktop-app-runtime.d.ts.map +1 -1
  247. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js +2 -4
  248. package/data/build/dist/host/cli-adapters/desktop-app-runtime.js.map +1 -1
  249. package/data/build/dist/host/cli-adapters/doubao-app.d.ts +27 -0
  250. package/data/build/dist/host/cli-adapters/doubao-app.d.ts.map +1 -0
  251. package/data/build/dist/host/cli-adapters/doubao-app.js +110 -0
  252. package/data/build/dist/host/cli-adapters/doubao-app.js.map +1 -0
  253. package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts +16 -0
  254. package/data/build/dist/host/cli-adapters/doubao-artifact-store.d.ts.map +1 -0
  255. package/data/build/dist/host/cli-adapters/doubao-artifact-store.js +142 -0
  256. package/data/build/dist/host/cli-adapters/doubao-artifact-store.js.map +1 -0
  257. package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts +16 -0
  258. package/data/build/dist/host/cli-adapters/doubao-artifacts.d.ts.map +1 -0
  259. package/data/build/dist/host/cli-adapters/doubao-artifacts.js +34 -0
  260. package/data/build/dist/host/cli-adapters/doubao-artifacts.js.map +1 -0
  261. package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts +49 -0
  262. package/data/build/dist/host/cli-adapters/doubao-cdp.d.ts.map +1 -0
  263. package/data/build/dist/host/cli-adapters/doubao-cdp.js +177 -0
  264. package/data/build/dist/host/cli-adapters/doubao-cdp.js.map +1 -0
  265. package/data/build/dist/host/cli-adapters/doubao-driver.d.ts +33 -0
  266. package/data/build/dist/host/cli-adapters/doubao-driver.d.ts.map +1 -0
  267. package/data/build/dist/host/cli-adapters/doubao-driver.js +291 -0
  268. package/data/build/dist/host/cli-adapters/doubao-driver.js.map +1 -0
  269. package/data/build/dist/host/cli-adapters/doubao-events.d.ts +21 -0
  270. package/data/build/dist/host/cli-adapters/doubao-events.d.ts.map +1 -0
  271. package/data/build/dist/host/cli-adapters/doubao-events.js +126 -0
  272. package/data/build/dist/host/cli-adapters/doubao-events.js.map +1 -0
  273. package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts +6 -0
  274. package/data/build/dist/host/cli-adapters/doubao-runtime.d.ts.map +1 -0
  275. package/data/build/dist/host/cli-adapters/doubao-runtime.js +176 -0
  276. package/data/build/dist/host/cli-adapters/doubao-runtime.js.map +1 -0
  277. package/data/build/dist/host/cli-adapters/doubao-tools.d.ts +8 -0
  278. package/data/build/dist/host/cli-adapters/doubao-tools.d.ts.map +1 -0
  279. package/data/build/dist/host/cli-adapters/doubao-tools.js +139 -0
  280. package/data/build/dist/host/cli-adapters/doubao-tools.js.map +1 -0
  281. package/data/build/dist/host/cli-adapters/driver.d.ts +4 -3
  282. package/data/build/dist/host/cli-adapters/driver.d.ts.map +1 -1
  283. package/data/build/dist/host/cli-adapters/feature.d.ts.map +1 -1
  284. package/data/build/dist/host/cli-adapters/feature.js +30 -36
  285. package/data/build/dist/host/cli-adapters/feature.js.map +1 -1
  286. package/data/build/dist/host/cli-adapters/grok-driver.d.ts.map +1 -1
  287. package/data/build/dist/host/cli-adapters/grok-driver.js +2 -1
  288. package/data/build/dist/host/cli-adapters/grok-driver.js.map +1 -1
  289. package/data/build/dist/host/cli-adapters/json-rpc-process.d.ts.map +1 -1
  290. package/data/build/dist/host/cli-adapters/json-rpc-process.js +3 -1
  291. package/data/build/dist/host/cli-adapters/json-rpc-process.js.map +1 -1
  292. package/data/build/dist/host/cli-adapters/kimi-driver.d.ts.map +1 -1
  293. package/data/build/dist/host/cli-adapters/kimi-driver.js +4 -3
  294. package/data/build/dist/host/cli-adapters/kimi-driver.js.map +1 -1
  295. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts +2 -0
  296. package/data/build/dist/host/cli-adapters/legacy-session-adapter.d.ts.map +1 -1
  297. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js +11 -0
  298. package/data/build/dist/host/cli-adapters/legacy-session-adapter.js.map +1 -1
  299. package/data/build/dist/host/cli-adapters/log-files.d.ts +3 -0
  300. package/data/build/dist/host/cli-adapters/log-files.d.ts.map +1 -0
  301. package/data/build/dist/host/cli-adapters/log-files.js +32 -0
  302. package/data/build/dist/host/cli-adapters/log-files.js.map +1 -0
  303. package/data/build/dist/host/cli-adapters/model-catalog.d.ts +2 -0
  304. package/data/build/dist/host/cli-adapters/model-catalog.d.ts.map +1 -1
  305. package/data/build/dist/host/cli-adapters/model-catalog.js +10 -0
  306. package/data/build/dist/host/cli-adapters/model-catalog.js.map +1 -1
  307. package/data/build/dist/host/cli-adapters/native-team-subagent.js +1 -1
  308. package/data/build/dist/host/cli-adapters/native-team-subagent.js.map +1 -1
  309. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts +11 -0
  310. package/data/build/dist/host/cli-adapters/opencode-driver.d.ts.map +1 -1
  311. package/data/build/dist/host/cli-adapters/opencode-driver.js +132 -49
  312. package/data/build/dist/host/cli-adapters/opencode-driver.js.map +1 -1
  313. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts +29 -0
  314. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.d.ts.map +1 -0
  315. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js +471 -0
  316. package/data/build/dist/host/cli-adapters/opencode-v2-protocol.js.map +1 -0
  317. package/data/build/dist/host/cli-adapters/pi-driver.d.ts.map +1 -1
  318. package/data/build/dist/host/cli-adapters/pi-driver.js +2 -1
  319. package/data/build/dist/host/cli-adapters/pi-driver.js.map +1 -1
  320. package/data/build/dist/host/cli-adapters/process-utils.d.ts +12 -4
  321. package/data/build/dist/host/cli-adapters/process-utils.d.ts.map +1 -1
  322. package/data/build/dist/host/cli-adapters/process-utils.js +151 -17
  323. package/data/build/dist/host/cli-adapters/process-utils.js.map +1 -1
  324. package/data/build/dist/host/cli-adapters/qoder-driver.d.ts.map +1 -1
  325. package/data/build/dist/host/cli-adapters/qoder-driver.js +63 -100
  326. package/data/build/dist/host/cli-adapters/qoder-driver.js.map +1 -1
  327. package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts +6 -1
  328. package/data/build/dist/host/cli-adapters/qoder-subscription.d.ts.map +1 -1
  329. package/data/build/dist/host/cli-adapters/qoder-subscription.js +37 -10
  330. package/data/build/dist/host/cli-adapters/qoder-subscription.js.map +1 -1
  331. package/data/build/dist/host/cli-adapters/registry.d.ts +13 -21
  332. package/data/build/dist/host/cli-adapters/registry.d.ts.map +1 -1
  333. package/data/build/dist/host/cli-adapters/registry.js +102 -131
  334. package/data/build/dist/host/cli-adapters/registry.js.map +1 -1
  335. package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts +2 -10
  336. package/data/build/dist/host/cli-adapters/rpc-driver-utils.d.ts.map +1 -1
  337. package/data/build/dist/host/cli-adapters/rpc-driver-utils.js +1 -28
  338. package/data/build/dist/host/cli-adapters/rpc-driver-utils.js.map +1 -1
  339. package/data/build/dist/host/cli-adapters/session-store.d.ts +5 -1
  340. package/data/build/dist/host/cli-adapters/session-store.d.ts.map +1 -1
  341. package/data/build/dist/host/cli-adapters/session-store.js +68 -11
  342. package/data/build/dist/host/cli-adapters/session-store.js.map +1 -1
  343. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts +3 -3
  344. package/data/build/dist/host/cli-adapters/standard-stream-driver.d.ts.map +1 -1
  345. package/data/build/dist/host/cli-adapters/standard-stream-driver.js +14 -38
  346. package/data/build/dist/host/cli-adapters/standard-stream-driver.js.map +1 -1
  347. package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts +12 -0
  348. package/data/build/dist/host/cli-adapters/windows-command-environment.d.ts.map +1 -0
  349. package/data/build/dist/host/cli-adapters/windows-command-environment.js +53 -0
  350. package/data/build/dist/host/cli-adapters/windows-command-environment.js.map +1 -0
  351. package/data/build/dist/host/cli-bridge/dispatch.js +1 -1
  352. package/data/build/dist/host/cli-bridge/dispatch.js.map +1 -1
  353. package/data/build/dist/host/debug.d.ts.map +1 -1
  354. package/data/build/dist/host/debug.js +5 -4
  355. package/data/build/dist/host/debug.js.map +1 -1
  356. package/data/build/dist/host/dsh-runtime-version.d.ts +1 -1
  357. package/data/build/dist/host/dsh-runtime-version.d.ts.map +1 -1
  358. package/data/build/dist/host/dsh-runtime-version.js +22 -17
  359. package/data/build/dist/host/dsh-runtime-version.js.map +1 -1
  360. package/data/build/dist/host/features/assistant-avatar-runtime.d.ts.map +1 -1
  361. package/data/build/dist/host/features/assistant-avatar-runtime.js +43 -19
  362. package/data/build/dist/host/features/assistant-avatar-runtime.js.map +1 -1
  363. package/data/build/dist/host/features/assistant-background.d.ts +44 -0
  364. package/data/build/dist/host/features/assistant-background.d.ts.map +1 -0
  365. package/data/build/dist/host/features/assistant-background.js +116 -0
  366. package/data/build/dist/host/features/assistant-background.js.map +1 -0
  367. package/data/build/dist/host/features/assistant-index-updates.d.ts +5 -0
  368. package/data/build/dist/host/features/assistant-index-updates.d.ts.map +1 -1
  369. package/data/build/dist/host/features/assistant-index-updates.js +29 -6
  370. package/data/build/dist/host/features/assistant-index-updates.js.map +1 -1
  371. package/data/build/dist/host/features/assistant-source-cache.d.ts +12 -0
  372. package/data/build/dist/host/features/assistant-source-cache.d.ts.map +1 -0
  373. package/data/build/dist/host/features/assistant-source-cache.js +58 -0
  374. package/data/build/dist/host/features/assistant-source-cache.js.map +1 -0
  375. package/data/build/dist/host/features/global-voice-coordinator.d.ts.map +1 -1
  376. package/data/build/dist/host/features/global-voice-coordinator.js +15 -10
  377. package/data/build/dist/host/features/global-voice-coordinator.js.map +1 -1
  378. package/data/build/dist/host/features/global-voice-rpc.d.ts.map +1 -1
  379. package/data/build/dist/host/features/global-voice-rpc.js +288 -114
  380. package/data/build/dist/host/features/global-voice-rpc.js.map +1 -1
  381. package/data/build/dist/host/features/peer-host.d.ts.map +1 -1
  382. package/data/build/dist/host/features/peer-host.js +61 -21
  383. package/data/build/dist/host/features/peer-host.js.map +1 -1
  384. package/data/build/dist/host/features/sherpa-voice-worker.d.ts +18 -0
  385. package/data/build/dist/host/features/sherpa-voice-worker.d.ts.map +1 -0
  386. package/data/build/dist/host/features/sherpa-voice-worker.js +40 -0
  387. package/data/build/dist/host/features/sherpa-voice-worker.js.map +1 -0
  388. package/data/build/dist/host/features/sherpa-worker-runtime.d.ts +41 -0
  389. package/data/build/dist/host/features/sherpa-worker-runtime.d.ts.map +1 -0
  390. package/data/build/dist/host/features/sherpa-worker-runtime.js +200 -0
  391. package/data/build/dist/host/features/sherpa-worker-runtime.js.map +1 -0
  392. package/data/build/dist/host/features/types.d.ts +6 -4
  393. package/data/build/dist/host/features/types.d.ts.map +1 -1
  394. package/data/build/dist/host/index.d.ts +1 -1
  395. package/data/build/dist/host/index.d.ts.map +1 -1
  396. package/data/build/dist/host/index.js +31 -21
  397. package/data/build/dist/host/index.js.map +1 -1
  398. package/data/build/dist/host/lan-access-dsh.d.ts.map +1 -1
  399. package/data/build/dist/host/lan-access-dsh.js +5 -22
  400. package/data/build/dist/host/lan-access-dsh.js.map +1 -1
  401. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts +6 -46
  402. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.d.ts.map +1 -1
  403. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js +48 -28
  404. package/data/build/dist/host/modules/peer-host/host-api-proxy-service.js.map +1 -1
  405. package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.d.ts.map +1 -1
  406. package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.js +1 -0
  407. package/data/build/dist/host/modules/peer-host/peer-host-diagnostics.js.map +1 -1
  408. package/data/build/dist/host/modules/peer-host/peer-host-handshake.d.ts.map +1 -1
  409. package/data/build/dist/host/modules/peer-host/peer-host-handshake.js +4 -1
  410. package/data/build/dist/host/modules/peer-host/peer-host-handshake.js.map +1 -1
  411. package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts +7 -1
  412. package/data/build/dist/host/modules/peer-host/peer-host-session.d.ts.map +1 -1
  413. package/data/build/dist/host/modules/peer-host/peer-host-session.js +40 -13
  414. package/data/build/dist/host/modules/peer-host/peer-host-session.js.map +1 -1
  415. package/data/build/dist/host/provider-icon-assets.d.ts +5 -0
  416. package/data/build/dist/host/provider-icon-assets.d.ts.map +1 -0
  417. package/data/build/dist/host/provider-icon-assets.js +61 -0
  418. package/data/build/dist/host/provider-icon-assets.js.map +1 -0
  419. package/data/build/dist/host/rpc.js +2 -2
  420. package/data/build/dist/host/rpc.js.map +1 -1
  421. package/data/build/dist/host/session-migration-repair.d.ts +4 -0
  422. package/data/build/dist/host/session-migration-repair.d.ts.map +1 -1
  423. package/data/build/dist/host/session-migration-repair.js +75 -2
  424. package/data/build/dist/host/session-migration-repair.js.map +1 -1
  425. package/data/build/dist/host/terminal/backends/tmux-backend.d.ts +1 -1
  426. package/data/build/dist/host/terminal/backends/tmux-backend.d.ts.map +1 -1
  427. package/data/build/dist/host/terminal/backends/tmux-backend.js +15 -14
  428. package/data/build/dist/host/terminal/backends/tmux-backend.js.map +1 -1
  429. package/data/build/dist/shared/assistant-avatar-engine.d.ts +5 -0
  430. package/data/build/dist/shared/assistant-avatar-engine.d.ts.map +1 -1
  431. package/data/build/dist/shared/assistant-avatar-engine.js +14 -0
  432. package/data/build/dist/shared/assistant-avatar-engine.js.map +1 -1
  433. package/data/build/dist/shared/contracts/cli-adapter.d.ts +6 -0
  434. package/data/build/dist/shared/contracts/cli-adapter.d.ts.map +1 -1
  435. package/data/build/dist/shared/contracts/errors.d.ts +1 -0
  436. package/data/build/dist/shared/contracts/errors.d.ts.map +1 -1
  437. package/data/build/dist/shared/contracts/errors.js +1 -0
  438. package/data/build/dist/shared/contracts/errors.js.map +1 -1
  439. package/data/build/dist/shared/contracts/peer-host.d.ts +1 -0
  440. package/data/build/dist/shared/contracts/peer-host.d.ts.map +1 -1
  441. package/data/build/dist/shared/contracts/peer-host.js +1 -0
  442. package/data/build/dist/shared/contracts/peer-host.js.map +1 -1
  443. package/data/build/dist/shared/contracts/version.d.ts +3 -1
  444. package/data/build/dist/shared/contracts/version.d.ts.map +1 -1
  445. package/data/build/dist/shared/contracts/version.js +20 -7
  446. package/data/build/dist/shared/contracts/version.js.map +1 -1
  447. package/data/build/dist/shared/peer-host-http-routes.d.ts +62 -0
  448. package/data/build/dist/shared/peer-host-http-routes.d.ts.map +1 -0
  449. package/data/build/dist/shared/peer-host-http-routes.js +31 -0
  450. package/data/build/dist/shared/peer-host-http-routes.js.map +1 -0
  451. package/data/build/dist/shared/provider-icon-resources.d.ts +4 -0
  452. package/data/build/dist/shared/provider-icon-resources.d.ts.map +1 -0
  453. package/data/build/dist/shared/provider-icon-resources.js +24 -0
  454. package/data/build/dist/shared/provider-icon-resources.js.map +1 -0
  455. package/package.json +2 -2
  456. package/profile/README.md +2 -2
  457. package/profile/package.json +2 -2
  458. package/profile/version.json +1 -1
  459. package/version.json +1 -1
@@ -0,0 +1,59 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "@jingyi0605/codingns4dsh",
3
+ chunk: "client.rolldown-runtime.js",
4
+ factory: (require) => {
5
+ var module = { exports: {} };
6
+ var exports = module.exports;
7
+ //#region \0rolldown/runtime.js
8
+ var __create = Object.create;
9
+ var __defProp = Object.defineProperty;
10
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
11
+ var __getOwnPropNames = Object.getOwnPropertyNames;
12
+ var __getProtoOf = Object.getPrototypeOf;
13
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
14
+ var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
15
+ var __exportAll = (all, no_symbols) => {
16
+ let target = {};
17
+ for (var name in all) __defProp(target, name, {
18
+ get: all[name],
19
+ enumerable: true
20
+ });
21
+ if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
22
+ return target;
23
+ };
24
+ var __copyProps = (to, from, except, desc) => {
25
+ if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
26
+ key = keys[i];
27
+ if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
28
+ get: ((k) => from[k]).bind(null, key),
29
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
30
+ });
31
+ }
32
+ return to;
33
+ };
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
35
+ value: mod,
36
+ enumerable: true
37
+ }) : target, mod));
38
+ //#endregion
39
+ Object.defineProperty(exports, "__commonJSMin", {
40
+ enumerable: true,
41
+ get: function() {
42
+ return __commonJSMin;
43
+ }
44
+ });
45
+ Object.defineProperty(exports, "__exportAll", {
46
+ enumerable: true,
47
+ get: function() {
48
+ return __exportAll;
49
+ }
50
+ });
51
+ Object.defineProperty(exports, "__toESM", {
52
+ enumerable: true,
53
+ get: function() {
54
+ return __toESM;
55
+ }
56
+ });
57
+ return module.exports;
58
+ }
59
+ });
@@ -0,0 +1,386 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "@jingyi0605/codingns4dsh",
3
+ chunk: "client.theme.js",
4
+ factory: (require) => {
5
+ var module = { exports: {} };
6
+ var exports = module.exports;
7
+ //#region src/client/theme.ts
8
+ /**
9
+ * DSH 0.1.6 暴露的主题令牌。
10
+ *
11
+ * 回退值只服务于独立测试或宿主尚未加载主题的瞬间;正常运行时由 DSH 的明暗
12
+ * 主题覆盖。所有表单表面必须同时设置背景和前景,避免再次出现白底白字。
13
+ */
14
+ const dshThemeColor = {
15
+ labelPrimary: "var(--dsw-alias-label-primary, CanvasText)",
16
+ labelSecondary: "var(--dsw-alias-label-secondary, GrayText)",
17
+ labelTertiary: "var(--dsw-alias-label-tertiary, GrayText)",
18
+ labelCaption: "var(--dsw-alias-label-caption, GrayText)",
19
+ border: "var(--dsw-alias-border-l2, #d9d9d9)",
20
+ inputBackground: "var(--dsw-specific-input-major, Canvas)",
21
+ surfaceSubtle: "var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.06))",
22
+ buttonBackground: "var(--dsw-alias-button-elevated-fill, transparent)",
23
+ menuBackground: "var(--dsw-alias-bg-layer-3, var(--dsw-specific-menu, Canvas))",
24
+ cardBackground: "var(--dsw-alias-bg-layer-1, Canvas)",
25
+ pageBackground: "var(--dsw-alias-bg-base, Canvas)",
26
+ overlay: "var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.45))",
27
+ accent: "var(--dsw-alias-button-info-fill, #1677ff)",
28
+ primaryBackground: "var(--dsw-alias-button-primary-fill, #1677ff)",
29
+ primaryHoverBackground: "var(--dsw-alias-button-primary-hover, #4096ff)",
30
+ primaryForeground: "var(--dsw-alias-label-primary-foreground, #fff)",
31
+ success: "var(--dsw-alias-state-success-primary, #16803c)",
32
+ error: "var(--dsw-alias-state-error-primary, #b42318)",
33
+ fieldBorder: "var(--dsw-alias-border-l4, #d9d9d9)",
34
+ menuBorder: "var(--dsw-alias-border-l3, #d9d9d9)",
35
+ switchThumb: "var(--dsw-static-neutral-00, #fff)",
36
+ prominentShadow: "var(--dsw-elevation-prominent, 0 12px 40px rgba(0, 0, 0, 0.25))",
37
+ subtleShadow: "var(--dsw-elevation-soft, 0 1px 2px rgba(0, 0, 0, 0.06))",
38
+ hoverBackground: "var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08))",
39
+ activeBackground: "var(--dsw-alias-interactive-bg-active, rgba(127, 127, 127, 0.14))",
40
+ focusRing: "var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))",
41
+ diffAddedBackground: "var(--dsw-alias-code-diff-added, rgba(34, 197, 94, 0.13))",
42
+ diffDeletedBackground: "var(--dsw-alias-code-diff-deleted, rgba(239, 68, 68, 0.13))",
43
+ codeFont: "var(--dsw-font-markdown-code-font-family, ui-monospace, SFMono-Regular, Menlo, monospace)"
44
+ };
45
+ /** 设置模块根节点显式接入 DSH 的主文字色。 */
46
+ const dshFormRootStyle = { color: dshThemeColor.labelPrimary };
47
+ /** input、select 和 textarea 共用的主题表面。 */
48
+ const dshFieldStyle = {
49
+ color: dshThemeColor.labelPrimary,
50
+ background: dshThemeColor.inputBackground,
51
+ border: `1px solid ${dshThemeColor.border}`
52
+ };
53
+ /** 普通表单按钮共用的主题表面。 */
54
+ const dshButtonStyle = {
55
+ color: dshThemeColor.labelPrimary,
56
+ background: dshThemeColor.buttonBackground,
57
+ border: `1px solid ${dshThemeColor.border}`
58
+ };
59
+ /** Codingns4DSH 设置页共享外壳:占满宿主内容区,避免重复留白。 */
60
+ const dshSettingsPageStyle = {
61
+ ...dshFormRootStyle,
62
+ display: "flex",
63
+ flexDirection: "column",
64
+ gap: 16,
65
+ width: "100%",
66
+ maxWidth: "none",
67
+ margin: 0,
68
+ padding: 0,
69
+ paddingLeft: "env(safe-area-inset-left, 0px)",
70
+ paddingRight: "env(safe-area-inset-right, 0px)",
71
+ paddingBottom: "env(safe-area-inset-bottom, 0px)",
72
+ boxSizing: "border-box"
73
+ };
74
+ /** 设置页标题区,使用宿主主题颜色而不是独立品牌色。 */
75
+ const dshSettingsHeaderStyle = {
76
+ display: "flex",
77
+ flexDirection: "column",
78
+ gap: 5,
79
+ paddingBottom: 16,
80
+ borderBottom: `1px solid ${dshThemeColor.border}`
81
+ };
82
+ dshThemeColor.labelPrimary;
83
+ const dshSettingsSubtitleStyle = {
84
+ margin: 0,
85
+ color: dshThemeColor.labelSecondary,
86
+ fontSize: 13,
87
+ lineHeight: 1.5
88
+ };
89
+ /** 模块卡片和标题栏共享的结构样式。 */
90
+ const dshSettingsCardStyle = {
91
+ background: dshThemeColor.pageBackground,
92
+ border: `1px solid ${dshThemeColor.border}`,
93
+ borderRadius: 8,
94
+ overflow: "hidden",
95
+ boxShadow: dshThemeColor.subtleShadow
96
+ };
97
+ const dshSettingsSummaryStyle = {
98
+ display: "flex",
99
+ alignItems: "center",
100
+ justifyContent: "space-between",
101
+ gap: 12,
102
+ minHeight: 58,
103
+ padding: "12px 14px",
104
+ boxSizing: "border-box",
105
+ cursor: "pointer",
106
+ listStyle: "none"
107
+ };
108
+ const dshSettingsSummaryTextStyle = {
109
+ display: "flex",
110
+ alignItems: "center",
111
+ gap: 8,
112
+ minWidth: 0,
113
+ flex: "1 1 auto"
114
+ };
115
+ const dshSettingsSummaryLabelStyle = {
116
+ color: dshThemeColor.labelPrimary,
117
+ fontSize: 14,
118
+ lineHeight: 1.35,
119
+ fontWeight: 650
120
+ };
121
+ const dshSettingsSummaryDescriptionStyle = {
122
+ color: dshThemeColor.labelSecondary,
123
+ fontSize: 12,
124
+ lineHeight: 1.45,
125
+ overflow: "hidden",
126
+ textOverflow: "ellipsis"
127
+ };
128
+ const dshSettingsBodyStyle = {
129
+ display: "flex",
130
+ flexDirection: "column",
131
+ gap: 16,
132
+ padding: "18px 20px 20px",
133
+ borderTop: `1px solid ${dshThemeColor.border}`,
134
+ boxSizing: "border-box"
135
+ };
136
+ const dshSettingsFieldLabelStyle = {
137
+ color: dshThemeColor.labelSecondary,
138
+ fontSize: 12,
139
+ lineHeight: 1.4,
140
+ fontWeight: 600
141
+ };
142
+ const dshSettingsFieldStyle = {
143
+ ...dshFieldStyle,
144
+ width: "100%",
145
+ minHeight: 36,
146
+ boxSizing: "border-box",
147
+ padding: "8px 10px",
148
+ borderRadius: 6,
149
+ fontSize: 13
150
+ };
151
+ const dshSettingsButtonStyle = {
152
+ ...dshButtonStyle,
153
+ minHeight: 36,
154
+ padding: "8px 14px",
155
+ borderRadius: 6,
156
+ fontSize: 13,
157
+ lineHeight: 1.3,
158
+ cursor: "pointer"
159
+ };
160
+ const dshSettingsPrimaryButtonStyle = {
161
+ ...dshSettingsButtonStyle,
162
+ color: dshThemeColor.switchThumb,
163
+ background: dshThemeColor.accent,
164
+ borderColor: dshThemeColor.accent
165
+ };
166
+ const dshSettingsRowStyle = {
167
+ display: "flex",
168
+ alignItems: "center",
169
+ gap: 8,
170
+ width: "100%"
171
+ };
172
+ const dshSettingsListRowStyle = {
173
+ display: "flex",
174
+ alignItems: "center",
175
+ gap: 12,
176
+ minHeight: 52,
177
+ padding: "10px 0",
178
+ borderBottom: `1px solid ${dshThemeColor.border}`,
179
+ boxSizing: "border-box"
180
+ };
181
+ const dshSettingsHelpStyle = {
182
+ color: dshThemeColor.labelTertiary,
183
+ fontSize: 12,
184
+ lineHeight: 1.5
185
+ };
186
+ const dshSettingsNoteStyle = {
187
+ padding: "10px 12px",
188
+ border: `1px solid ${dshThemeColor.border}`,
189
+ borderRadius: 6,
190
+ color: dshThemeColor.labelSecondary,
191
+ background: dshThemeColor.surfaceSubtle,
192
+ fontSize: 12,
193
+ lineHeight: 1.5
194
+ };
195
+ /** 终端外观设置的紧凑双列布局。 */
196
+ const dshSettingsGridStyle = {
197
+ display: "grid",
198
+ gridTemplateColumns: "repeat(2, minmax(0, 1fr))",
199
+ gap: 12
200
+ };
201
+ const dshSettingsSectionHeaderStyle = {
202
+ display: "flex",
203
+ alignItems: "center",
204
+ justifyContent: "space-between",
205
+ gap: 12,
206
+ paddingBottom: 2
207
+ };
208
+ /** 设置写入结果的顶部浮动提示。 */
209
+ const dshSettingsToastStyle = {
210
+ position: "sticky",
211
+ top: 8,
212
+ zIndex: 20,
213
+ alignSelf: "center",
214
+ width: "min(300px, calc(100% - 24px))",
215
+ padding: "9px 14px",
216
+ border: `1px solid ${dshThemeColor.border}`,
217
+ borderRadius: 8,
218
+ background: dshThemeColor.menuBackground,
219
+ boxShadow: dshThemeColor.prominentShadow,
220
+ color: dshThemeColor.labelPrimary,
221
+ fontSize: 13,
222
+ lineHeight: 1.4,
223
+ textAlign: "center"
224
+ };
225
+ /** 模态框和弹出菜单必须成对设置前景色与背景色。 */
226
+ const dshPopupSurfaceStyle = {
227
+ color: dshThemeColor.labelPrimary,
228
+ background: dshThemeColor.menuBackground,
229
+ boxShadow: dshThemeColor.prominentShadow
230
+ };
231
+ //#endregion
232
+ Object.defineProperty(exports, "dshButtonStyle", {
233
+ enumerable: true,
234
+ get: function() {
235
+ return dshButtonStyle;
236
+ }
237
+ });
238
+ Object.defineProperty(exports, "dshFieldStyle", {
239
+ enumerable: true,
240
+ get: function() {
241
+ return dshFieldStyle;
242
+ }
243
+ });
244
+ Object.defineProperty(exports, "dshFormRootStyle", {
245
+ enumerable: true,
246
+ get: function() {
247
+ return dshFormRootStyle;
248
+ }
249
+ });
250
+ Object.defineProperty(exports, "dshPopupSurfaceStyle", {
251
+ enumerable: true,
252
+ get: function() {
253
+ return dshPopupSurfaceStyle;
254
+ }
255
+ });
256
+ Object.defineProperty(exports, "dshSettingsBodyStyle", {
257
+ enumerable: true,
258
+ get: function() {
259
+ return dshSettingsBodyStyle;
260
+ }
261
+ });
262
+ Object.defineProperty(exports, "dshSettingsButtonStyle", {
263
+ enumerable: true,
264
+ get: function() {
265
+ return dshSettingsButtonStyle;
266
+ }
267
+ });
268
+ Object.defineProperty(exports, "dshSettingsCardStyle", {
269
+ enumerable: true,
270
+ get: function() {
271
+ return dshSettingsCardStyle;
272
+ }
273
+ });
274
+ Object.defineProperty(exports, "dshSettingsFieldLabelStyle", {
275
+ enumerable: true,
276
+ get: function() {
277
+ return dshSettingsFieldLabelStyle;
278
+ }
279
+ });
280
+ Object.defineProperty(exports, "dshSettingsFieldStyle", {
281
+ enumerable: true,
282
+ get: function() {
283
+ return dshSettingsFieldStyle;
284
+ }
285
+ });
286
+ Object.defineProperty(exports, "dshSettingsGridStyle", {
287
+ enumerable: true,
288
+ get: function() {
289
+ return dshSettingsGridStyle;
290
+ }
291
+ });
292
+ Object.defineProperty(exports, "dshSettingsHeaderStyle", {
293
+ enumerable: true,
294
+ get: function() {
295
+ return dshSettingsHeaderStyle;
296
+ }
297
+ });
298
+ Object.defineProperty(exports, "dshSettingsHelpStyle", {
299
+ enumerable: true,
300
+ get: function() {
301
+ return dshSettingsHelpStyle;
302
+ }
303
+ });
304
+ Object.defineProperty(exports, "dshSettingsListRowStyle", {
305
+ enumerable: true,
306
+ get: function() {
307
+ return dshSettingsListRowStyle;
308
+ }
309
+ });
310
+ Object.defineProperty(exports, "dshSettingsNoteStyle", {
311
+ enumerable: true,
312
+ get: function() {
313
+ return dshSettingsNoteStyle;
314
+ }
315
+ });
316
+ Object.defineProperty(exports, "dshSettingsPageStyle", {
317
+ enumerable: true,
318
+ get: function() {
319
+ return dshSettingsPageStyle;
320
+ }
321
+ });
322
+ Object.defineProperty(exports, "dshSettingsPrimaryButtonStyle", {
323
+ enumerable: true,
324
+ get: function() {
325
+ return dshSettingsPrimaryButtonStyle;
326
+ }
327
+ });
328
+ Object.defineProperty(exports, "dshSettingsRowStyle", {
329
+ enumerable: true,
330
+ get: function() {
331
+ return dshSettingsRowStyle;
332
+ }
333
+ });
334
+ Object.defineProperty(exports, "dshSettingsSectionHeaderStyle", {
335
+ enumerable: true,
336
+ get: function() {
337
+ return dshSettingsSectionHeaderStyle;
338
+ }
339
+ });
340
+ Object.defineProperty(exports, "dshSettingsSubtitleStyle", {
341
+ enumerable: true,
342
+ get: function() {
343
+ return dshSettingsSubtitleStyle;
344
+ }
345
+ });
346
+ Object.defineProperty(exports, "dshSettingsSummaryDescriptionStyle", {
347
+ enumerable: true,
348
+ get: function() {
349
+ return dshSettingsSummaryDescriptionStyle;
350
+ }
351
+ });
352
+ Object.defineProperty(exports, "dshSettingsSummaryLabelStyle", {
353
+ enumerable: true,
354
+ get: function() {
355
+ return dshSettingsSummaryLabelStyle;
356
+ }
357
+ });
358
+ Object.defineProperty(exports, "dshSettingsSummaryStyle", {
359
+ enumerable: true,
360
+ get: function() {
361
+ return dshSettingsSummaryStyle;
362
+ }
363
+ });
364
+ Object.defineProperty(exports, "dshSettingsSummaryTextStyle", {
365
+ enumerable: true,
366
+ get: function() {
367
+ return dshSettingsSummaryTextStyle;
368
+ }
369
+ });
370
+ Object.defineProperty(exports, "dshSettingsToastStyle", {
371
+ enumerable: true,
372
+ get: function() {
373
+ return dshSettingsToastStyle;
374
+ }
375
+ });
376
+ Object.defineProperty(exports, "dshThemeColor", {
377
+ enumerable: true,
378
+ get: function() {
379
+ return dshThemeColor;
380
+ }
381
+ });
382
+ return module.exports;
383
+ }
384
+ });
385
+
386
+ //# sourceMappingURL=client.theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.theme.js","names":[],"sources":["../../../../src/client/theme.ts"],"sourcesContent":["import type { CSSProperties } from 'react'\n\n/**\n * DSH 0.1.6 暴露的主题令牌。\n *\n * 回退值只服务于独立测试或宿主尚未加载主题的瞬间;正常运行时由 DSH 的明暗\n * 主题覆盖。所有表单表面必须同时设置背景和前景,避免再次出现白底白字。\n */\nexport const dshThemeColor = {\n labelPrimary: 'var(--dsw-alias-label-primary, CanvasText)',\n labelSecondary: 'var(--dsw-alias-label-secondary, GrayText)',\n labelTertiary: 'var(--dsw-alias-label-tertiary, GrayText)',\n labelCaption: 'var(--dsw-alias-label-caption, GrayText)',\n border: 'var(--dsw-alias-border-l2, #d9d9d9)',\n inputBackground: 'var(--dsw-specific-input-major, Canvas)',\n surfaceSubtle: 'var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.06))',\n buttonBackground: 'var(--dsw-alias-button-elevated-fill, transparent)',\n // 0.1.7 的 specific-menu 可能带透明度;layer-3 在 0.1.5 至 0.1.7 中均为弹层实底。\n menuBackground: 'var(--dsw-alias-bg-layer-3, var(--dsw-specific-menu, Canvas))',\n // 侧栏面板内嵌卡片比弹层低一层,暗色下只比侧栏表面亮一档,避免形成刺眼的色块。\n cardBackground: 'var(--dsw-alias-bg-layer-1, Canvas)',\n pageBackground: 'var(--dsw-alias-bg-base, Canvas)',\n overlay: 'var(--dsw-alias-bg-mask-1, rgba(0, 0, 0, 0.45))',\n accent: 'var(--dsw-alias-button-info-fill, #1677ff)',\n // 主操作按钮沿用 DSH 品牌填充:暗色下是浅底深字,和内置主按钮完全一致。\n primaryBackground: 'var(--dsw-alias-button-primary-fill, #1677ff)',\n primaryHoverBackground: 'var(--dsw-alias-button-primary-hover, #4096ff)',\n primaryForeground: 'var(--dsw-alias-label-primary-foreground, #fff)',\n success: 'var(--dsw-alias-state-success-primary, #16803c)',\n error: 'var(--dsw-alias-state-error-primary, #b42318)',\n // 状态描边用 l3/l4:DSH 的输入控件是 0.5px,比 l2 更轻。\n fieldBorder: 'var(--dsw-alias-border-l4, #d9d9d9)',\n menuBorder: 'var(--dsw-alias-border-l3, #d9d9d9)',\n switchThumb: 'var(--dsw-static-neutral-00, #fff)',\n prominentShadow: 'var(--dsw-elevation-prominent, 0 12px 40px rgba(0, 0, 0, 0.25))',\n subtleShadow: 'var(--dsw-elevation-soft, 0 1px 2px rgba(0, 0, 0, 0.06))',\n // 交互态令牌:内联样式无法表达 :hover/:active/:focus-visible,交给注入的插件样式表。\n hoverBackground: 'var(--dsw-alias-interactive-bg-hover, rgba(127, 127, 127, 0.08))',\n activeBackground: 'var(--dsw-alias-interactive-bg-active, rgba(127, 127, 127, 0.14))',\n focusRing: 'var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color, var(--dsw-alias-state-business-primary))',\n // Diff 行背景直接复用 DSH DiffBlock 的同一组令牌,保证与内置 Diff 视图一致。\n diffAddedBackground: 'var(--dsw-alias-code-diff-added, rgba(34, 197, 94, 0.13))',\n diffDeletedBackground: 'var(--dsw-alias-code-diff-deleted, rgba(239, 68, 68, 0.13))',\n codeFont: 'var(--dsw-font-markdown-code-font-family, ui-monospace, SFMono-Regular, Menlo, monospace)',\n} as const\n\n/** 设置模块根节点显式接入 DSH 的主文字色。 */\nexport const dshFormRootStyle: CSSProperties = {\n color: dshThemeColor.labelPrimary,\n}\n\n/** input、select 和 textarea 共用的主题表面。 */\nexport const dshFieldStyle: CSSProperties = {\n color: dshThemeColor.labelPrimary,\n background: dshThemeColor.inputBackground,\n border: `1px solid ${dshThemeColor.border}`,\n}\n\n/** 普通表单按钮共用的主题表面。 */\nexport const dshButtonStyle: CSSProperties = {\n color: dshThemeColor.labelPrimary,\n background: dshThemeColor.buttonBackground,\n border: `1px solid ${dshThemeColor.border}`,\n}\n\n/** Codingns4DSH 设置页共享外壳:占满宿主内容区,避免重复留白。 */\nexport const dshSettingsPageStyle: CSSProperties = {\n ...dshFormRootStyle,\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n width: '100%',\n maxWidth: 'none',\n margin: 0,\n padding: 0,\n // 只保留设备刘海和 Home 指示条所需的安全区,不再叠加宿主留白。\n paddingLeft: 'env(safe-area-inset-left, 0px)',\n paddingRight: 'env(safe-area-inset-right, 0px)',\n paddingBottom: 'env(safe-area-inset-bottom, 0px)',\n boxSizing: 'border-box',\n}\n\n/** 设置页标题区,使用宿主主题颜色而不是独立品牌色。 */\nexport const dshSettingsHeaderStyle: CSSProperties = {\n display: 'flex',\n flexDirection: 'column',\n gap: 5,\n paddingBottom: 16,\n borderBottom: `1px solid ${dshThemeColor.border}`,\n}\n\nexport const dshSettingsTitleStyle: CSSProperties = {\n margin: 0,\n color: dshThemeColor.labelPrimary,\n fontSize: 21,\n lineHeight: 1.3,\n fontWeight: 700,\n}\n\nexport const dshSettingsSubtitleStyle: CSSProperties = {\n margin: 0,\n color: dshThemeColor.labelSecondary,\n fontSize: 13,\n lineHeight: 1.5,\n}\n\n/** 模块卡片和标题栏共享的结构样式。 */\nexport const dshSettingsCardStyle: CSSProperties = {\n background: dshThemeColor.pageBackground,\n border: `1px solid ${dshThemeColor.border}`,\n borderRadius: 8,\n overflow: 'hidden',\n boxShadow: dshThemeColor.subtleShadow,\n}\n\nexport const dshSettingsSummaryStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n minHeight: 58,\n padding: '12px 14px',\n boxSizing: 'border-box',\n cursor: 'pointer',\n listStyle: 'none',\n}\n\nexport const dshSettingsSummaryTextStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n minWidth: 0,\n flex: '1 1 auto',\n}\n\nexport const dshSettingsSummaryLabelStyle: CSSProperties = {\n color: dshThemeColor.labelPrimary,\n fontSize: 14,\n lineHeight: 1.35,\n fontWeight: 650,\n}\n\nexport const dshSettingsSummaryDescriptionStyle: CSSProperties = {\n color: dshThemeColor.labelSecondary,\n fontSize: 12,\n lineHeight: 1.45,\n overflow: 'hidden',\n textOverflow: 'ellipsis',\n}\n\nexport const dshSettingsBodyStyle: CSSProperties = {\n display: 'flex',\n flexDirection: 'column',\n gap: 16,\n padding: '18px 20px 20px',\n borderTop: `1px solid ${dshThemeColor.border}`,\n boxSizing: 'border-box',\n}\n\nexport const dshSettingsFieldLabelStyle: CSSProperties = {\n color: dshThemeColor.labelSecondary,\n fontSize: 12,\n lineHeight: 1.4,\n fontWeight: 600,\n}\n\nexport const dshSettingsFieldStyle: CSSProperties = {\n ...dshFieldStyle,\n width: '100%',\n minHeight: 36,\n boxSizing: 'border-box',\n padding: '8px 10px',\n borderRadius: 6,\n fontSize: 13,\n}\n\nexport const dshSettingsButtonStyle: CSSProperties = {\n ...dshButtonStyle,\n minHeight: 36,\n padding: '8px 14px',\n borderRadius: 6,\n fontSize: 13,\n lineHeight: 1.3,\n cursor: 'pointer',\n}\n\nexport const dshSettingsPrimaryButtonStyle: CSSProperties = {\n ...dshSettingsButtonStyle,\n color: dshThemeColor.switchThumb,\n background: dshThemeColor.accent,\n borderColor: dshThemeColor.accent,\n}\n\nexport const dshSettingsRowStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 8,\n width: '100%',\n}\n\nexport const dshSettingsListRowStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n gap: 12,\n minHeight: 52,\n padding: '10px 0',\n borderBottom: `1px solid ${dshThemeColor.border}`,\n boxSizing: 'border-box',\n}\n\nexport const dshSettingsHelpStyle: CSSProperties = {\n color: dshThemeColor.labelTertiary,\n fontSize: 12,\n lineHeight: 1.5,\n}\n\nexport const dshSettingsNoteStyle: CSSProperties = {\n padding: '10px 12px',\n border: `1px solid ${dshThemeColor.border}`,\n borderRadius: 6,\n color: dshThemeColor.labelSecondary,\n background: dshThemeColor.surfaceSubtle,\n fontSize: 12,\n lineHeight: 1.5,\n}\n\n/** 终端外观设置的紧凑双列布局。 */\nexport const dshSettingsGridStyle: CSSProperties = {\n display: 'grid',\n gridTemplateColumns: 'repeat(2, minmax(0, 1fr))',\n gap: 12,\n}\n\nexport const dshSettingsSectionHeaderStyle: CSSProperties = {\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n gap: 12,\n paddingBottom: 2,\n}\n\n/** 设置写入结果的顶部浮动提示。 */\nexport const dshSettingsToastStyle: CSSProperties = {\n position: 'sticky',\n top: 8,\n zIndex: 20,\n alignSelf: 'center',\n width: 'min(300px, calc(100% - 24px))',\n padding: '9px 14px',\n border: `1px solid ${dshThemeColor.border}`,\n borderRadius: 8,\n background: dshThemeColor.menuBackground,\n boxShadow: dshThemeColor.prominentShadow,\n color: dshThemeColor.labelPrimary,\n fontSize: 13,\n lineHeight: 1.4,\n textAlign: 'center',\n}\n\n/** 模态框和弹出菜单必须成对设置前景色与背景色。 */\nexport const dshPopupSurfaceStyle: CSSProperties = {\n color: dshThemeColor.labelPrimary,\n background: dshThemeColor.menuBackground,\n boxShadow: dshThemeColor.prominentShadow,\n}\n"],"mappings":"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"}