@songtonyli/dsh-cli 0.1.39 → 0.1.41

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 (1238) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
  10. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  11. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
  13. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
  14. package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
  16. package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
  17. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
  18. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  19. package/node_modules/@deepseek-ai/dsh/package.json +116 -113
  20. package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
  21. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  22. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
  23. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  24. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
  25. package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
  26. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
  27. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
  34. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
  35. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
  36. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
  37. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
  38. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
  39. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
  40. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
  41. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
  42. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
  43. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
  44. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
  45. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
  46. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
  47. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
  48. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
  49. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
  50. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
  51. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
  52. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
  54. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
  55. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  56. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
  57. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  58. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
  59. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
  60. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
  61. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
  62. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
  63. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
  64. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
  65. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
  66. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
  67. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
  68. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
  69. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
  70. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
  71. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
  72. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
  73. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
  74. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
  75. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
  77. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
  78. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
  79. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1268 -217
  80. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  81. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
  82. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  83. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
  84. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
  85. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
  86. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
  87. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
  88. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
  89. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
  90. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
  91. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
  92. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
  93. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
  94. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
  95. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
  96. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
  97. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
  98. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
  99. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
  100. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
  101. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  102. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
  103. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
  104. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
  105. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
  106. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
  107. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
  108. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
  109. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
  110. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
  111. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
  112. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
  113. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  115. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
  116. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
  117. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
  118. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
  119. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
  120. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
  121. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
  122. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
  125. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  126. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
  127. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
  128. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
  129. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +460 -60
  130. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
  131. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
  132. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
  133. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
  134. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
  135. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
  136. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  137. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
  138. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  139. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
  140. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  141. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
  142. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  143. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
  144. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
  145. package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
  146. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
  147. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  148. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
  149. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  150. package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
  151. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  152. package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
  153. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  154. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
  155. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  156. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
  157. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
  158. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  159. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
  160. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  161. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
  162. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
  163. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
  164. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
  165. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
  166. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
  167. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +103 -17
  168. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
  169. package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
  170. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
  171. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
  172. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
  173. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
  174. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
  175. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
  176. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
  177. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
  178. package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
  179. package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
  180. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
  181. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
  182. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
  183. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
  184. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
  185. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
  186. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
  187. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
  188. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
  189. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
  190. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
  191. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  192. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  193. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
  194. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  195. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
  196. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  197. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
  198. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
  199. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
  200. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
  201. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
  202. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
  203. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
  204. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
  208. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
  209. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
  210. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
  211. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
  212. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
  213. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
  214. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
  217. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  218. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
  219. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
  220. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
  221. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
  222. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
  223. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
  224. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
  225. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
  226. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  227. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
  228. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
  230. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  232. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
  233. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
  234. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
  235. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
  236. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
  237. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
  238. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
  239. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
  240. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  241. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
  242. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
  243. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
  246. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
  247. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
  248. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
  249. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
  250. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
  251. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
  252. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
  253. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
  254. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
  255. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
  256. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
  257. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
  258. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
  259. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
  260. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
  261. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
  262. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
  263. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
  264. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
  265. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
  266. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
  267. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
  268. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
  269. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
  270. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
  271. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
  306. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
  308. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
  309. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
  310. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
  311. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
  313. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
  314. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
  315. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
  316. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
  317. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
  319. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
  320. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
  321. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
  322. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
  323. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
  324. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
  325. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
  326. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
  327. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
  328. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
  329. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
  330. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
  331. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
  332. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
  333. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
  334. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
  335. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
  336. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
  337. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
  338. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
  339. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
  340. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  341. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
  342. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  343. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
  345. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
  346. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
  347. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
  348. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
  349. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
  350. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
  351. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
  352. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
  353. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
  354. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
  355. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
  357. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
  358. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
  359. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
  360. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
  361. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
  362. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
  363. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
  364. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
  365. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
  366. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
  367. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
  368. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
  369. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
  371. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
  372. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
  373. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
  374. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  375. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
  376. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
  377. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  378. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
  379. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
  380. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
  381. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
  382. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
  383. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
  384. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
  385. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
  386. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
  387. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
  388. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
  389. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
  390. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
  393. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
  396. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
  397. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
  398. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
  399. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
  400. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
  401. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
  403. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
  404. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
  405. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
  407. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
  408. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
  409. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
  410. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
  411. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  412. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
  413. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
  415. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
  416. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
  417. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
  418. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
  419. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
  420. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
  421. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
  422. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
  423. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
  424. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
  425. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
  426. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  427. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
  428. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
  429. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
  431. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
  432. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  433. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
  434. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  435. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
  436. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  437. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  438. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
  439. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  440. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
  441. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
  442. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
  443. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
  444. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
  445. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
  446. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
  447. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
  448. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
  449. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
  450. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
  451. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  452. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  453. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
  454. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
  455. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
  456. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
  457. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
  458. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
  459. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  460. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
  461. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
  462. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
  463. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
  464. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
  465. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
  466. package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
  467. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  468. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
  469. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  470. package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
  471. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  472. package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
  473. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  474. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
  475. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
  476. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  477. package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
  478. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  479. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
  480. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
  481. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
  482. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
  483. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  484. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
  485. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  486. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
  487. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  488. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
  489. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  490. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
  491. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
  492. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
  493. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
  494. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  495. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
  496. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
  497. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  498. package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
  499. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  500. package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
  501. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  502. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
  503. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
  504. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
  505. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
  506. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
  507. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
  508. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
  509. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
  510. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
  511. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
  512. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
  513. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
  514. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
  515. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
  516. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  517. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
  518. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  519. package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
  520. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  521. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
  522. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
  523. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
  524. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
  525. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
  526. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  527. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
  528. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
  529. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
  530. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
  531. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
  532. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
  533. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
  534. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  535. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
  536. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
  537. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
  538. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
  539. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
  540. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
  541. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
  542. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  543. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
  544. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
  545. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
  546. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  547. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
  548. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +508 -0
  549. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
  550. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
  551. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
  552. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
  553. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
  554. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
  555. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
  556. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
  557. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
  558. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
  559. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
  560. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
  561. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
  562. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
  563. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
  564. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
  565. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
  566. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
  567. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
  568. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
  569. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
  570. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
  571. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
  572. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
  573. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  574. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
  575. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
  576. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
  577. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
  578. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  579. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
  580. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  581. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
  582. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  583. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
  584. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  585. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
  586. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  587. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
  588. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  589. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
  590. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  591. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
  592. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  593. package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
  594. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
  595. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  596. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
  597. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  598. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
  599. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  600. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
  601. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  602. package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
  603. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
  605. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  606. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
  607. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  608. package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
  609. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
  611. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  612. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +57 -5
  613. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  614. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
  615. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  616. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
  617. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  618. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
  619. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  620. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
  621. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
  622. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
  623. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
  625. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  626. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
  627. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  628. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
  629. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  630. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
  631. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  632. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
  633. package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
  634. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
  635. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  636. package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
  637. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  638. package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
  639. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  640. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
  641. package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
  642. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
  643. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
  644. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
  645. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  646. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
  647. package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
  648. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
  649. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  650. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
  651. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +1 -1
  652. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +1 -1
  653. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +40 -0
  654. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
  655. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
  656. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
  657. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
  658. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
  659. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
  660. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
  661. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
  662. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
  663. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
  664. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
  665. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
  666. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
  667. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
  668. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
  669. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
  670. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
  671. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
  672. package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
  673. package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
  674. package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
  675. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
  676. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
  677. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
  678. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
  679. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
  680. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  681. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
  682. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  683. package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
  684. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  685. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
  686. package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
  687. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
  688. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
  689. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
  690. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
  691. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  692. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
  693. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
  694. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
  695. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
  696. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
  697. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
  698. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
  699. package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
  700. package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
  701. package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
  702. package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
  703. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  704. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
  705. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  706. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
  707. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
  708. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
  709. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
  710. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
  711. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  712. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
  713. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  714. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
  715. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  716. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
  717. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
  718. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
  719. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  720. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
  721. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
  722. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
  723. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
  724. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
  725. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
  726. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
  727. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
  728. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
  729. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
  730. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
  731. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
  732. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
  733. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
  734. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
  735. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
  736. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  737. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
  738. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  739. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
  740. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  741. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
  742. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  743. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
  744. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  745. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
  746. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
  747. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  748. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
  749. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
  750. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
  751. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
  752. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  753. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
  754. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  755. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
  756. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  757. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
  758. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  759. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
  760. package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
  761. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
  762. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
  763. package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
  764. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
  765. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
  766. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
  767. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
  768. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
  769. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
  770. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
  771. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
  772. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
  773. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
  774. package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
  775. package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
  776. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  777. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
  778. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
  779. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
  780. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
  781. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  782. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  783. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
  784. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
  785. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  786. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
  787. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  788. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
  789. package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
  790. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
  791. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +89 -0
  792. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
  793. package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
  794. package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
  795. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
  796. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  797. package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
  798. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  799. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
  800. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  801. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
  802. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  803. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
  804. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  805. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/README.i18n.yaml +78 -5
  806. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  807. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +90 -5
  808. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
  809. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
  810. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  811. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
  812. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
  813. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
  814. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
  815. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
  816. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
  817. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
  818. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
  819. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
  820. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  821. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
  822. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
  823. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
  824. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
  825. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
  826. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
  827. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
  828. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
  829. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
  830. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
  831. package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
  832. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
  833. package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
  834. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  835. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
  836. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
  837. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  838. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
  839. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  840. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
  841. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  842. package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
  843. package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
  844. package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
  845. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
  846. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  847. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
  848. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  849. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
  850. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
  851. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  852. package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
  853. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  854. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
  855. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  856. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
  857. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  858. package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
  859. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  860. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
  861. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
  862. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
  863. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  864. package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
  865. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  866. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
  867. package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
  868. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
  869. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  870. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
  871. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  872. package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
  873. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  874. package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
  875. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  876. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
  877. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  878. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
  879. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
  880. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
  881. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
  882. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
  883. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
  884. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
  885. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
  886. package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
  887. package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
  888. package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
  889. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  890. package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
  891. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  892. package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
  893. package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
  894. package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
  895. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
  896. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
  897. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
  898. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
  899. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
  900. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
  901. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  902. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
  903. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  904. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
  905. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
  906. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  907. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
  908. package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
  909. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
  910. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
  911. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
  912. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
  913. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
  914. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
  915. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
  916. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
  917. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  918. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +81 -5
  919. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  920. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
  921. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  922. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
  923. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
  924. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
  925. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  926. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
  927. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
  928. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
  929. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
  930. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
  931. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
  932. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  933. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  934. package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
  935. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  936. package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
  937. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  938. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
  939. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  940. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
  941. package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
  942. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
  943. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
  944. package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
  945. package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
  946. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  947. package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
  948. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
  949. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  950. package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
  951. package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
  952. package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
  953. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
  954. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
  955. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
  956. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  957. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
  958. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
  959. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
  960. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
  961. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  962. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
  963. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
  964. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
  965. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
  966. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  967. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
  968. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
  969. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
  970. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
  971. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
  972. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
  973. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +37 -86
  974. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
  975. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
  976. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
  977. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
  978. package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
  979. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  980. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
  981. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
  982. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
  983. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
  984. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  985. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
  986. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
  987. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
  988. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
  989. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  990. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
  991. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  992. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  993. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
  994. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
  995. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  996. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
  997. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
  998. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
  999. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
  1000. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  1001. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
  1002. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
  1003. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
  1004. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
  1005. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
  1006. package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
  1007. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1008. package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
  1009. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
  1010. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1011. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
  1012. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
  1013. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
  1014. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
  1015. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1016. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1017. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
  1018. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
  1019. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
  1020. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1021. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1022. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
  1023. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
  1024. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
  1025. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1026. package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
  1027. package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
  1028. package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
  1029. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
  1030. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
  1031. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1032. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
  1033. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
  1034. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
  1035. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
  1036. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
  1037. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
  1038. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
  1039. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
  1040. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
  1041. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
  1042. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
  1043. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
  1044. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
  1045. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
  1046. package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
  1047. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
  1048. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
  1049. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
  1050. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1051. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
  1052. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1053. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
  1054. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +8 -5
  1055. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +8 -5
  1056. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +413 -21
  1057. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
  1058. package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
  1059. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1060. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
  1061. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  1062. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
  1063. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1064. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
  1065. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
  1066. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
  1067. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1068. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
  1069. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1070. package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
  1071. package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
  1072. package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
  1073. package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
  1074. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
  1075. package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
  1076. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1077. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
  1078. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1079. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
  1080. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1081. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
  1082. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
  1083. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
  1084. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
  1085. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
  1086. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1087. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
  1088. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1089. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
  1090. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  1091. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  1092. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
  1093. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
  1094. package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
  1095. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
  1096. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1097. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
  1098. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
  1099. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
  1100. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
  1101. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
  1102. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
  1103. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
  1104. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
  1105. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
  1106. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
  1107. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
  1108. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
  1109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
  1110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
  1111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
  1112. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
  1113. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
  1114. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
  1115. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
  1116. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
  1117. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
  1119. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
  1120. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
  1121. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
  1122. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
  1123. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
  1124. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
  1125. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
  1126. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
  1127. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
  1128. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
  1129. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
  1130. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
  1131. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
  1132. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
  1133. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
  1134. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
  1135. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
  1136. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
  1137. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
  1138. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
  1139. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
  1140. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
  1141. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
  1142. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  1143. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
  1144. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
  1145. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
  1146. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
  1147. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1148. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
  1149. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1150. package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
  1151. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1152. package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
  1153. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1154. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
  1155. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1156. package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
  1157. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1158. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
  1159. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
  1160. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
  1161. package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
  1162. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
  1163. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
  1164. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
  1165. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1166. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
  1167. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1168. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
  1169. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
  1170. package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
  1171. package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
  1172. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
  1173. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
  1174. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
  1175. package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
  1176. package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
  1177. package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
  1178. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1179. package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  1180. package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  1181. package/node_modules/@js-temporal/polyfill/README.md +90 -0
  1182. package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  1183. package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  1184. package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  1185. package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  1186. package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  1187. package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  1188. package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  1189. package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  1190. package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  1191. package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  1192. package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  1193. package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  1194. package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  1195. package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  1196. package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  1197. package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  1198. package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  1199. package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  1200. package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  1201. package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  1202. package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  1203. package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  1204. package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  1205. package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  1206. package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  1207. package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  1208. package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  1209. package/node_modules/@js-temporal/polyfill/package.json +125 -0
  1210. package/node_modules/fflate/CHANGELOG.md +0 -10
  1211. package/node_modules/fflate/LICENSE +1 -1
  1212. package/node_modules/fflate/README.md +10 -10
  1213. package/node_modules/fflate/esm/browser.js +55 -82
  1214. package/node_modules/fflate/esm/index.mjs +56 -87
  1215. package/node_modules/fflate/lib/browser.cjs +77 -106
  1216. package/node_modules/fflate/lib/index.cjs +77 -106
  1217. package/node_modules/fflate/lib/node-worker.cjs +1 -5
  1218. package/node_modules/fflate/lib/node.cjs +78 -111
  1219. package/node_modules/fflate/package.json +10 -11
  1220. package/node_modules/fflate/umd/index.js +1 -1
  1221. package/node_modules/jsbi/LICENSE +176 -0
  1222. package/node_modules/jsbi/README.md +173 -0
  1223. package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  1224. package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  1225. package/node_modules/jsbi/dist/jsbi.mjs +2 -0
  1226. package/node_modules/jsbi/package.json +25 -0
  1227. package/package.json +305 -289
  1228. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
  1229. package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
  1230. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
  1231. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
  1232. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
  1233. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
  1234. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
  1235. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
  1236. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
  1237. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
  1238. /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
@@ -1,7 +1,7 @@
1
1
  import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
2
  import clsx from "clsx";
3
3
  import css from "./StateDot.module.css";
4
- import { Fragment as Fragment$1, cloneElement, createContext, createElement, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
4
+ import { Fragment as Fragment$1, cloneElement, createContext, createElement, forwardRef, memo, useCallback, useContext, useEffect, useId, useLayoutEffect, useMemo, useRef, useState, useSyncExternalStore } from "react";
5
5
  import css$1 from "./TextShimmer.module.css";
6
6
  import css$2 from "./DisclosureRow.module.css";
7
7
  import css$3 from "./Button.module.css";
@@ -15,33 +15,36 @@ import css$9 from "./SegmentedControl.module.css";
15
15
  import css$10 from "./Checkbox.module.css";
16
16
  import css$11 from "./Input.module.css";
17
17
  import { createPortal } from "react-dom";
18
- import css$12 from "./Menu.module.css";
19
- import css$13 from "./HoverCard.module.css";
20
- import css$14 from "./Modal.module.css";
21
- import css$15 from "./OnboardingSurface.module.css";
22
- import css$16 from "./RiskConfirmation.module.css";
23
- import css$17 from "./ConnectionIndicator.module.css";
24
- import css$18 from "./FileTypeIcon.module.css";
18
+ import css$12 from "./ShortcutKeys.module.css";
19
+ import css$13 from "./MenuSurface.module.css";
20
+ import css$14 from "./Menu.module.css";
21
+ import css$15 from "./Tooltip.module.css";
22
+ import css$16 from "./HoverCard.module.css";
23
+ import css$17 from "./Modal.module.css";
24
+ import css$18 from "./RiskConfirmation.module.css";
25
+ import css$19 from "./ConnectionIndicator.module.css";
26
+ import css$20 from "./FileTypeIcon.module.css";
25
27
  import { siAliexpress, siApple, siBaidu, siBilibili, siCsdn, siDuckduckgo, siEbay, siFacebook, siGithub, siGitlab, siGoogle, siInstagram, siJuejin, siMdnwebdocs, siNetflix, siNpm, siPypi, siQq, siQuora, siReddit, siSinaweibo, siSpotify, siStackoverflow, siTaobao, siTelegram, siTiktok, siV2ex, siWechat, siWhatsapp, siWikipedia, siX, siYcombinator, siYoutube, siZhihu } from "simple-icons";
26
- import css$19 from "./user-text.module.css";
28
+ import css$21 from "./user-text.module.css";
27
29
  import markdownCss from "./markdown/MarkdownText.module.css";
28
- import css$20 from "./Tooltip.module.css";
29
- import css$21 from "./Toast.module.css";
30
- import css$22 from "./settings-form/SettingsForm.module.css";
31
- import css$23 from "./settings-form/fields.module.css";
30
+ import css$22 from "./Toast.module.css";
31
+ import css$23 from "./settings-form/SettingsForm.module.css";
32
+ import css$24 from "./settings-form/fields.module.css";
32
33
  import { createSnapshotStore } from "@deepseek-ai/dsh-client-store";
33
34
  import { createCssVariablesTheme, createHighlighterCoreSync } from "shiki/core";
34
35
  import { createJavaScriptRegexEngine, defaultJavaScriptRegexConstructor } from "shiki/engine/javascript";
35
36
  import langTs from "@shikijs/langs/typescript";
36
37
  import langBash from "@shikijs/langs/shellscript";
37
38
  import langJson from "@shikijs/langs/json";
38
- import css$24 from "./JsonTree.module.css";
39
+ import { CODE_HIGHLIGHT_EXTENSIONS, languageForPath } from "@deepseek-ai/dsh-util-code-language";
40
+ import css$25 from "./JsonTree.module.css";
39
41
  import Anser from "anser";
40
- import css$25 from "./TerminalBlock.module.css";
41
- import css$26 from "./ReadBlock.module.css";
42
+ import css$26 from "./TerminalBlock.module.css";
43
+ import cardCss from "./CodeCard.module.css";
44
+ import css$27 from "./ReadBlock.module.css";
42
45
  import { structuredPatch } from "diff";
43
- import css$27 from "./DiffBlock.module.css";
44
- import css$28 from "./SearchBlock.module.css";
46
+ import css$28 from "./DiffBlock.module.css";
47
+ import css$29 from "./SearchBlock.module.css";
45
48
  import { fromMarkdown } from "mdast-util-from-markdown";
46
49
  import { gfmFromMarkdown } from "mdast-util-gfm";
47
50
  import { mathFromMarkdown } from "mdast-util-math";
@@ -53,14 +56,16 @@ import { classifyCharacter } from "micromark-util-classify-character";
53
56
  import { codes, constants, types } from "micromark-util-symbol";
54
57
  import { factorySpace } from "micromark-factory-space";
55
58
  import { normalizeUri } from "micromark-util-sanitize-uri";
56
- import css$29 from "./markdown/CodeBlock.module.css";
59
+ import css$30 from "./markdown/CodeBlock.module.css";
57
60
  import katex from "katex";
61
+ import css$31 from "./ImageLightbox.module.css";
62
+ import css$32 from "./ImagePreview.module.css";
58
63
  import "katex/dist/katex.min.css";
59
- import css$30 from "./WebBlock.module.css";
60
- import css$31 from "./markdown/JsonBlock.module.css";
64
+ import css$33 from "./WebBlock.module.css";
65
+ import css$34 from "./markdown/JsonBlock.module.css";
61
66
  //#region lib/types/icons/shared-artwork.js
62
67
  /**
63
- * Render shared new-conversation geometry for product and reference icons.
68
+ * Render new-conversation geometry — the bubble around a plus — for product icons.
64
69
  * @param props - Size, optional CSS class, and inherited stroke width.
65
70
  * @returns The decorative SVG artwork.
66
71
  */
@@ -89,6 +94,36 @@ const NewChatOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs("s
89
94
  ]
90
95
  });
91
96
  /**
97
+ * Render shared conversation geometry — the chat bubble around two text
98
+ * lines — for the queue product icon and session reference icons.
99
+ * @param props - Size, optional CSS class, and inherited stroke width.
100
+ * @returns The decorative SVG artwork.
101
+ */
102
+ const ChatLinesOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs("svg", {
103
+ width: size,
104
+ height: size,
105
+ className,
106
+ viewBox: "0 0 16 16",
107
+ fill: "none",
108
+ xmlns: "http://www.w3.org/2000/svg",
109
+ "aria-hidden": "true",
110
+ strokeWidth,
111
+ children: [
112
+ jsx("path", {
113
+ d: "M5 6.75H11",
114
+ stroke: "currentColor"
115
+ }),
116
+ jsx("path", {
117
+ d: "M5 9H8",
118
+ stroke: "currentColor"
119
+ }),
120
+ jsx("path", {
121
+ d: "M2.37067 11.2497C1.5872 9.89252 1.32042 8.29798 1.61945 6.7597C1.91847 5.22141 2.76317 3.84293 3.99801 2.87809C5.23285 1.91325 6.7747 1.427 8.33964 1.50888C9.90458 1.59076 11.3873 2.23526 12.5147 3.32369C13.6422 4.41232 14.3384 5.8717 14.4751 7.43304C14.6118 8.99438 14.1797 10.5525 13.2585 11.8205C12.3372 13.0885 10.9889 13.9809 9.4617 14.3334C8.18666 14.6277 6.8587 14.529 5.64964 14.0601C5.17095 13.8745 4.76937 13.4929 4.26509 13.3963C3.67389 13.2832 2.95232 13.5595 2.0377 14.3334",
122
+ stroke: "currentColor"
123
+ })
124
+ ]
125
+ });
126
+ /**
92
127
  * Render shared globe geometry for product and link icons.
93
128
  * @param props - Size, optional CSS class, and inherited stroke width.
94
129
  * @returns The decorative SVG artwork.
@@ -204,6 +239,10 @@ const FolderCloseArtwork = ({ size = 16, className, strokeWidth }) => jsxs("svg"
204
239
  });
205
240
  //#endregion
206
241
  //#region lib/types/icons/index.js
242
+ /**
243
+ * Shared current-color product icons. Names identify the glyph and weight;
244
+ * rendered size remains a prop instead of part of the component name.
245
+ */
207
246
  /** Shared shield contour used by composite icons outside this module. */
208
247
  const SHIELD_OUTLINE_PATH = "M6.80132 2.14853C7.70663 1.80917 8.70422 1.80919 9.60952 2.14859L14.1296 3.84317V7.11961C14.1296 11.6089 10.7615 13.5975 8.20543 14.5779C5.64931 13.5975 2.28052 11.6089 2.28052 7.11961V3.84317L6.80132 2.14853Z";
209
248
  /** Regular stroke width used by the product icon set. */
@@ -1242,10 +1281,10 @@ const IconUserOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs("
1242
1281
  "aria-hidden": "true",
1243
1282
  strokeWidth,
1244
1283
  children: [jsx("path", {
1245
- d: "M8 8.5C9.65685 8.5 11 7.15685 11 5.5C11 3.84315 9.65685 2.5 8 2.5C6.34315 2.5 5 3.84315 5 5.5C5 7.15685 6.34315 8.5 8 8.5Z",
1284
+ d: "M8 8.25C9.51878 8.25 10.75 7.01878 10.75 5.5C10.75 3.98122 9.51878 2.75 8 2.75C6.48122 2.75 5.25 3.98122 5.25 5.5C5.25 7.01878 6.48122 8.25 8 8.25Z",
1246
1285
  stroke: "currentColor"
1247
1286
  }), jsx("path", {
1248
- d: "M1.5 14.5C1.5 11.25 4.25 10 8 10C11.75 10 14.5 11.25 14.5 14.5",
1287
+ d: "M2.5 14.5C2.5 11.5 5.25 10.25 8 10.25C10.75 10.25 13.5 11.5 13.5 14.5",
1249
1288
  stroke: "currentColor"
1250
1289
  })]
1251
1290
  });
@@ -1259,6 +1298,44 @@ const IconUserOutlineMedium = (props) => jsx(IconUserOutlineArtwork, {
1259
1298
  ...props,
1260
1299
  strokeWidth: ICON_MEDIUM_STROKE
1261
1300
  });
1301
+ const IconUsersOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs("svg", {
1302
+ width: size,
1303
+ height: size,
1304
+ className,
1305
+ viewBox: "0 0 16 16",
1306
+ fill: "none",
1307
+ xmlns: "http://www.w3.org/2000/svg",
1308
+ "aria-hidden": "true",
1309
+ strokeWidth,
1310
+ children: [
1311
+ jsx("path", {
1312
+ d: "M6 8.25C7.51878 8.25 8.75 7.01878 8.75 5.5C8.75 3.98122 7.51878 2.75 6 2.75C4.48122 2.75 3.25 3.98122 3.25 5.5C3.25 7.01878 4.48122 8.25 6 8.25Z",
1313
+ stroke: "currentColor"
1314
+ }),
1315
+ jsx("path", {
1316
+ d: "M1 14.5C1 11.5 3.5 10.25 6 10.25C8.5 10.25 11 11.5 11 14.5",
1317
+ stroke: "currentColor"
1318
+ }),
1319
+ jsx("path", {
1320
+ d: "M10.5 2.9C11.65 3.35 12.45 4.35 12.45 5.5C12.45 6.65 11.65 7.65 10.5 8.1",
1321
+ stroke: "currentColor"
1322
+ }),
1323
+ jsx("path", {
1324
+ d: "M12.4 10.6C13.9 11.3 15 12.6 15 14.5",
1325
+ stroke: "currentColor"
1326
+ })
1327
+ ]
1328
+ });
1329
+ /** Regular one-pixel IconUsersOutline artwork: a front person with a second person behind. */
1330
+ const IconUsersOutlineRegular = (props) => jsx(IconUsersOutlineArtwork, {
1331
+ ...props,
1332
+ strokeWidth: 1
1333
+ });
1334
+ /** Medium IconUsersOutline artwork with a 1.3px stroke. */
1335
+ const IconUsersOutlineMedium = (props) => jsx(IconUsersOutlineArtwork, {
1336
+ ...props,
1337
+ strokeWidth: ICON_MEDIUM_STROKE
1338
+ });
1262
1339
  const IconPaperPlaneOutlineArtwork = ({ size = 14, className, strokeWidth }) => jsxs("svg", {
1263
1340
  width: size,
1264
1341
  height: size,
@@ -1952,10 +2029,10 @@ const IconClockOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs(
1952
2029
  "aria-hidden": "true",
1953
2030
  strokeWidth,
1954
2031
  children: [jsx("path", {
1955
- d: "M8 14.5C11.5899 14.5 14.5 11.5899 14.5 8C14.5 4.41015 11.5899 1.5 8 1.5C4.41015 1.5 1.5 4.41015 1.5 8C1.5 11.5899 4.41015 14.5 8 14.5Z",
2032
+ d: "M8 14C11.3137 14 14 11.3137 14 8C14 4.68629 11.3137 2 8 2C4.68629 2 2 4.68629 2 8C2 11.3137 4.68629 14 8 14Z",
1956
2033
  stroke: "currentColor"
1957
2034
  }), jsx("path", {
1958
- d: "M8 4V8.5L11.25 10.25",
2035
+ d: "M8 4.31V8.46L11 10.08",
1959
2036
  stroke: "currentColor"
1960
2037
  })]
1961
2038
  });
@@ -2030,29 +2107,9 @@ const IconSendOutlineMedium = (props) => jsx(IconSendOutlineArtwork, {
2030
2107
  ...props,
2031
2108
  strokeWidth: ICON_MEDIUM_STROKE
2032
2109
  });
2033
- const IconQueueOutlineArtwork = ({ size = 14, className, strokeWidth }) => jsxs("svg", {
2034
- width: size,
2035
- height: size,
2036
- className,
2037
- viewBox: "0 0 16 16",
2038
- fill: "none",
2039
- xmlns: "http://www.w3.org/2000/svg",
2040
- "aria-hidden": "true",
2041
- strokeWidth,
2042
- children: [
2043
- jsx("path", {
2044
- d: "M5 6.75H11",
2045
- stroke: "currentColor"
2046
- }),
2047
- jsx("path", {
2048
- d: "M5 9H8",
2049
- stroke: "currentColor"
2050
- }),
2051
- jsx("path", {
2052
- d: "M2.37067 11.2497C1.5872 9.89252 1.32042 8.29798 1.61945 6.7597C1.91847 5.22141 2.76317 3.84293 3.99801 2.87809C5.23285 1.91325 6.7747 1.427 8.33964 1.50888C9.90458 1.59076 11.3873 2.23526 12.5147 3.32369C13.6422 4.41232 14.3384 5.8717 14.4751 7.43304C14.6118 8.99438 14.1797 10.5525 13.2585 11.8205C12.3372 13.0885 10.9889 13.9809 9.4617 14.3334C8.18666 14.6277 6.8587 14.529 5.64964 14.0601C5.17095 13.8745 4.76937 13.4929 4.26509 13.3963C3.67389 13.2832 2.95232 13.5595 2.0377 14.3334",
2053
- stroke: "currentColor"
2054
- })
2055
- ]
2110
+ const IconQueueOutlineArtwork = ({ size = 14, ...rest }) => jsx(ChatLinesOutlineArtwork, {
2111
+ size,
2112
+ ...rest
2056
2113
  });
2057
2114
  /** Regular one-pixel IconQueueOutline artwork. */
2058
2115
  const IconQueueOutlineRegular = (props) => jsx(IconQueueOutlineArtwork, {
@@ -2825,6 +2882,64 @@ const IconChevronsUpDownOutlineMedium = (props) => jsx(IconChevronsUpDownOutline
2825
2882
  ...props,
2826
2883
  strokeWidth: ICON_MEDIUM_STROKE
2827
2884
  });
2885
+ const IconArchiveOffOutlineArtwork = ({ size = 16, className, strokeWidth }) => {
2886
+ const maskId = `dsh-archive-off-${useId().replaceAll(":", "")}`;
2887
+ return jsxs("svg", {
2888
+ width: size,
2889
+ height: size,
2890
+ className,
2891
+ viewBox: "0 0 16 16",
2892
+ fill: "none",
2893
+ stroke: "currentColor",
2894
+ strokeLinecap: "round",
2895
+ strokeLinejoin: "round",
2896
+ "aria-hidden": "true",
2897
+ strokeWidth,
2898
+ children: [
2899
+ jsxs("mask", {
2900
+ id: maskId,
2901
+ maskUnits: "userSpaceOnUse",
2902
+ x: "0",
2903
+ y: "0",
2904
+ width: "16",
2905
+ height: "16",
2906
+ children: [jsx("rect", {
2907
+ x: "0",
2908
+ y: "0",
2909
+ width: "16",
2910
+ height: "16",
2911
+ fill: "white",
2912
+ stroke: "none"
2913
+ }), jsx("path", {
2914
+ d: "m2.2 1.3 11.6 12.8",
2915
+ stroke: "black",
2916
+ strokeWidth: strokeWidth + 3
2917
+ })]
2918
+ }),
2919
+ jsxs("g", {
2920
+ mask: `url(#${maskId})`,
2921
+ children: [jsx("rect", {
2922
+ x: "1.9",
2923
+ y: "2.1",
2924
+ width: "12.2",
2925
+ height: "3.4",
2926
+ rx: "1.1"
2927
+ }), jsx("path", { d: "M2.95 5.7v4.8a2.9 2.9 0 0 0 2.9 2.9h4.3a2.9 2.9 0 0 0 2.9-2.9V5.7" })]
2928
+ }),
2929
+ jsx("path", { d: "m2.2 1.3 11.6 12.8" })
2930
+ ]
2931
+ });
2932
+ };
2933
+ /** Regular one-pixel IconArchiveOffOutline artwork. */
2934
+ const IconArchiveOffOutlineRegular = (props) => jsx(IconArchiveOffOutlineArtwork, {
2935
+ ...props,
2936
+ strokeWidth: 1
2937
+ });
2938
+ /** Medium IconArchiveOffOutline artwork with a 1.3px stroke. */
2939
+ const IconArchiveOffOutlineMedium = (props) => jsx(IconArchiveOffOutlineArtwork, {
2940
+ ...props,
2941
+ strokeWidth: ICON_MEDIUM_STROKE
2942
+ });
2828
2943
  const IconArchiveCheckOutlineArtwork = ({ size = 16, className, strokeWidth }) => jsxs("svg", {
2829
2944
  width: size,
2830
2945
  height: size,
@@ -3056,12 +3171,14 @@ const DisclosureRow = memo(function DisclosureRow({ icon, title, open, expandabl
3056
3171
  /**
3057
3172
  * Render a button.
3058
3173
  * @param props.variant - visual family (default 'ghost').
3059
- * @param props.size - 'md' 36px capsule (figma Button) or 'sm' 28px compact.
3174
+ * @param props.size - 'md' 36px control with 12px corners or 'sm' 28px control with 8px corners.
3060
3175
  * @param props.icon - optional leading 16px icon node.
3176
+ * @param ref - native button for focus management and overlay anchors.
3061
3177
  * @returns the button element; native button attributes pass through.
3062
3178
  */
3063
- function Button({ variant = "ghost", size = "md", icon, className, children, ...rest }) {
3179
+ const Button = forwardRef(function Button({ variant = "ghost", size = "md", icon, className, children, ...rest }, ref) {
3064
3180
  return jsxs("button", {
3181
+ ref,
3065
3182
  type: "button",
3066
3183
  className: clsx(css$3.button, css$3[variant], css$3[size], className),
3067
3184
  ...rest,
@@ -3070,7 +3187,7 @@ function Button({ variant = "ghost", size = "md", icon, className, children, ...
3070
3187
  children: icon
3071
3188
  }), children]
3072
3189
  });
3073
- }
3190
+ });
3074
3191
  //#endregion
3075
3192
  //#region lib/types/Pill.js
3076
3193
  /**
@@ -3431,6 +3548,234 @@ function usePointerGrace(close) {
3431
3548
  };
3432
3549
  }
3433
3550
  //#endregion
3551
+ //#region lib/types/keyboard-composition.js
3552
+ /** Composition lifetime for local keyboard handlers, including a late closing keydown. */
3553
+ /**
3554
+ * Observe composition until its closing key is released or consumed.
3555
+ * @param document - document whose input events belong to the caller.
3556
+ * @returns an event guard and a disposer for all listeners.
3557
+ */
3558
+ function observeComposition(document) {
3559
+ let composing = false;
3560
+ let ended = false;
3561
+ const start = () => {
3562
+ composing = true;
3563
+ };
3564
+ const end = () => {
3565
+ composing = false;
3566
+ ended = true;
3567
+ };
3568
+ const release = () => {
3569
+ ended = false;
3570
+ };
3571
+ const blur = () => {
3572
+ composing = false;
3573
+ ended = false;
3574
+ };
3575
+ document.addEventListener("compositionstart", start, true);
3576
+ document.addEventListener("compositionend", end, true);
3577
+ document.addEventListener("keyup", release, true);
3578
+ document.defaultView?.addEventListener("blur", blur);
3579
+ return {
3580
+ guards: (event) => {
3581
+ const guarded = composing || ended || event.isComposing || event.keyCode === 229;
3582
+ ended = false;
3583
+ return guarded;
3584
+ },
3585
+ dispose: () => {
3586
+ document.removeEventListener("compositionstart", start, true);
3587
+ document.removeEventListener("compositionend", end, true);
3588
+ document.removeEventListener("keyup", release, true);
3589
+ document.defaultView?.removeEventListener("blur", blur);
3590
+ }
3591
+ };
3592
+ }
3593
+ //#endregion
3594
+ //#region lib/types/focus.js
3595
+ /** Focus presentation for automatic entry and restoration. */
3596
+ const releases = /* @__PURE__ */ new WeakMap();
3597
+ const navigationKeys = new Set([
3598
+ "Tab",
3599
+ "ArrowUp",
3600
+ "ArrowDown",
3601
+ "ArrowLeft",
3602
+ "ArrowRight",
3603
+ "Home",
3604
+ "End"
3605
+ ]);
3606
+ /**
3607
+ * Focus an automatic destination without a focus outline until keyboard navigation or blur.
3608
+ * The theme suppresses outlines while data-dsh-automatic-focus is present; borders and shadows remain intact.
3609
+ * Tab and directional navigation restore normal focus styling.
3610
+ * @param element - control or container receiving automatic focus.
3611
+ * @param options - browser focus options, including scroll preservation.
3612
+ */
3613
+ function focusWithoutRing(element, options) {
3614
+ releases.get(element)?.();
3615
+ const release = () => {
3616
+ element.removeAttribute("data-dsh-automatic-focus");
3617
+ element.removeEventListener("blur", release);
3618
+ element.removeEventListener("keydown", navigate, true);
3619
+ releases.delete(element);
3620
+ };
3621
+ const navigate = (event) => {
3622
+ if (!event.isComposing && !event.ctrlKey && !event.altKey && !event.metaKey && navigationKeys.has(event.key)) release();
3623
+ };
3624
+ releases.set(element, release);
3625
+ element.setAttribute("data-dsh-automatic-focus", "");
3626
+ element.addEventListener("blur", release);
3627
+ element.addEventListener("keydown", navigate, true);
3628
+ element.focus(options);
3629
+ if (!element.matches(":focus")) release();
3630
+ }
3631
+ //#endregion
3632
+ //#region lib/types/useModalLayer.js
3633
+ /** Shared modal keyboard ownership and focus lifetime. */
3634
+ /** Dialog and menu elements whose document order determines foreground shortcut ownership. */
3635
+ const modalSelector = "[role=\"dialog\"][aria-modal=\"true\"], [role=\"menu\"]";
3636
+ const layers = /* @__PURE__ */ new WeakMap();
3637
+ /**
3638
+ * Request closure of the foreground registered modal using its current onClose callback.
3639
+ * A newer menu or unregistered dialog blocks dismissal of the modal behind it.
3640
+ * @param document - product document whose modal owns the close command.
3641
+ */
3642
+ function closeTopModal(document) {
3643
+ const top = layers.get(document)?.at(-1);
3644
+ if (top === void 0) return;
3645
+ if ([...document.querySelectorAll("[role=\"dialog\"][aria-modal=\"true\"], [role=\"menu\"]")].at(-1) === top.element) top.close();
3646
+ }
3647
+ /**
3648
+ * Whether an anchor belongs behind the current modal and must yield keyboard input.
3649
+ * @param anchor - local control owning the input handler.
3650
+ * @returns true when another modal owns the foreground.
3651
+ */
3652
+ function isBehindModal(anchor) {
3653
+ if (anchor === null) return false;
3654
+ const top = layers.get(anchor.ownerDocument)?.at(-1);
3655
+ return top !== void 0 && !top.element.contains(anchor);
3656
+ }
3657
+ const focusable = "button:not(:disabled), input:not(:disabled), textarea:not(:disabled), select:not(:disabled), a[href], [tabindex=\"0\"]";
3658
+ /**
3659
+ * Give only the top modal Escape and Tab ownership, then restore its previous focus.
3660
+ * Automatic entry and return focus omit outlines; keyboard traversal retains its indicators.
3661
+ * Controls mounted with the dialog use data-modal-autofocus for initial focus;
3662
+ * React autoFocus runs before this layer can capture the invoking control.
3663
+ * Local menus handle their Escape during capture before this bubble listener.
3664
+ * @param dialog - mounted dialog element.
3665
+ * @param open - whether this layer is active.
3666
+ * @param onClose - top-layer Escape or application close action.
3667
+ */
3668
+ function useModalLayer(dialog, open, onClose) {
3669
+ const close = useRef(onClose);
3670
+ close.current = onClose;
3671
+ useLayoutEffect(() => {
3672
+ const element = dialog.current;
3673
+ if (!open || element === null) return;
3674
+ const document = element.ownerDocument;
3675
+ const composition = observeComposition(document);
3676
+ const previous = document.activeElement;
3677
+ const stack = layers.get(document) ?? [];
3678
+ layers.set(document, stack);
3679
+ const layer = {
3680
+ element,
3681
+ close: () => {
3682
+ close.current();
3683
+ }
3684
+ };
3685
+ stack.push(layer);
3686
+ const initial = element.querySelector("[data-modal-autofocus]") ?? element.querySelector(focusable) ?? element;
3687
+ if (!element.contains(document.activeElement)) focusWithoutRing(initial);
3688
+ const keydown = (event) => {
3689
+ const composing = composition.guards(event);
3690
+ if (stack.at(-1) !== layer || event.defaultPrevented || composing || event.ctrlKey || event.altKey || event.metaKey) return;
3691
+ if (event.key === "Escape" && !event.shiftKey) {
3692
+ event.preventDefault();
3693
+ if (!event.repeat) close.current();
3694
+ }
3695
+ if (event.key !== "Tab") return;
3696
+ if (document.activeElement?.closest("[role=\"menu\"]")) return;
3697
+ const items = [...element.querySelectorAll(focusable)].filter((item) => !item.closest("[inert], [hidden]"));
3698
+ const first = items[0] ?? element;
3699
+ const last = items.at(-1) ?? element;
3700
+ const atEdge = event.shiftKey ? document.activeElement === first : document.activeElement === last;
3701
+ if (document.activeElement === element || !element.contains(document.activeElement) || atEdge) {
3702
+ event.preventDefault();
3703
+ (event.shiftKey ? last : first).focus();
3704
+ }
3705
+ };
3706
+ document.addEventListener("keydown", keydown);
3707
+ return () => {
3708
+ composition.dispose();
3709
+ const wasTop = stack.at(-1) === layer;
3710
+ stack.splice(stack.indexOf(layer), 1);
3711
+ document.removeEventListener("keydown", keydown);
3712
+ if (stack.length === 0) layers.delete(document);
3713
+ if (wasTop) {
3714
+ const target = previous instanceof HTMLElement && previous.isConnected ? previous : stack.at(-1)?.element;
3715
+ if (target !== void 0) focusWithoutRing(target);
3716
+ }
3717
+ };
3718
+ }, [dialog, open]);
3719
+ }
3720
+ //#endregion
3721
+ //#region lib/types/ShortcutKeys.js
3722
+ /** Shared shortcut keycaps; callers supply the effective platform presentation. */
3723
+ /**
3724
+ * Render one command's keycaps without owning binding defaults or localized copy.
3725
+ * @param props - effective key labels, presentation variant and optional interaction styling.
3726
+ * @returns unboxed keys by default, or tooltip keycaps with plus-separated combinations grouped together.
3727
+ */
3728
+ function ShortcutKeys({ keys, variant = "plain", className }) {
3729
+ return jsx("span", {
3730
+ className: clsx(css$12.keys, variant === "tooltip" && css$12.tooltip, variant === "tooltip" && keys.includes("+") && css$12.joined, className),
3731
+ children: keys.map((key, index) => jsx("kbd", {
3732
+ className: key === "+" ? css$12.separator : css$12.key,
3733
+ children: key
3734
+ }, index))
3735
+ });
3736
+ }
3737
+ //#endregion
3738
+ //#region lib/types/MenuSurface.js
3739
+ /** Shared menu material and the macOS backing that lets Chromium blur transparent windows. */
3740
+ /**
3741
+ * Paint a menu and, on macOS, an opaque backing behind the page content within its bounds.
3742
+ * CSS anchors keep each backing aligned during placement, resizing, and nested-menu movement.
3743
+ * @param props - Div content and placement, and compact geometry.
3744
+ * @param ref - The visible menu div, excluding the non-interactive backing.
3745
+ * @returns Menu content plus a backing portal removed with the menu.
3746
+ */
3747
+ const MenuSurface = forwardRef(function MenuSurface({ compact = false, className, style, children, ...props }, ref) {
3748
+ const id = useId();
3749
+ const backingRef = useRef(null);
3750
+ useLayoutEffect(() => {
3751
+ document.body.appendChild(backingRef.current);
3752
+ }, []);
3753
+ const anchorStyle = { "--dsh-menu-anchor": `--dsh-menu-${id.replaceAll(":", "")}` };
3754
+ return jsxs(Fragment, { children: [jsxs("div", {
3755
+ ...props,
3756
+ ref,
3757
+ "data-menu-material": "translucent",
3758
+ className: clsx(css$13.surface, compact && css$13.compact, className),
3759
+ style: {
3760
+ ...style,
3761
+ ...anchorStyle
3762
+ },
3763
+ children: [jsx("div", {
3764
+ "aria-hidden": "true",
3765
+ className: css$13.material
3766
+ }), children]
3767
+ }), createPortal(jsx("div", {
3768
+ ref: backingRef,
3769
+ "aria-hidden": "true",
3770
+ "data-menu-backing": "",
3771
+ className: clsx(css$13.backing, compact && css$13.compact),
3772
+ style: {
3773
+ ...anchorStyle,
3774
+ visibility: style?.visibility
3775
+ }
3776
+ }), document.body)] });
3777
+ });
3778
+ //#endregion
3434
3779
  //#region lib/types/Menu.js
3435
3780
  /**
3436
3781
  * Render one `role="menuitem"` row for a {@link Menu} whose rows are
@@ -3439,6 +3784,7 @@ function usePointerGrace(close) {
3439
3784
  * without any shared state. Closing the menu stays the owner's decision, as
3440
3785
  * it is for data rows.
3441
3786
  * @param props.children - visible row label.
3787
+ * @param props.shortcut - effective key labels and accessible combination.
3442
3788
  * @param props.icon - optional leading icon.
3443
3789
  * @param props.disabled - whether the row cannot be activated.
3444
3790
  * @param props.danger - whether to use the destructive row colors.
@@ -3446,25 +3792,37 @@ function usePointerGrace(close) {
3446
3792
  * @param props.onSelect - row activation callback.
3447
3793
  * @returns one menu-item row.
3448
3794
  */
3449
- function MenuItemButton({ children, icon, disabled = false, danger = false, separatorBefore = false, onSelect }) {
3795
+ function MenuItemButton({ children, shortcut, icon, disabled = false, danger = false, separatorBefore = false, onSelect }) {
3450
3796
  return jsxs("div", {
3451
- className: css$12.itemWrap,
3797
+ className: css$14.itemWrap,
3452
3798
  children: [separatorBefore && jsx("div", {
3453
- className: css$12.separator,
3799
+ className: css$14.separator,
3454
3800
  role: "separator"
3455
3801
  }), jsxs("button", {
3456
3802
  type: "button",
3457
3803
  role: "menuitem",
3458
- className: clsx(css$12.item, danger && css$12.danger),
3804
+ className: clsx(css$14.item, danger && css$14.danger),
3459
3805
  disabled,
3806
+ "aria-keyshortcuts": shortcut?.aria,
3460
3807
  onClick: onSelect,
3461
- children: [icon !== void 0 && jsx("span", {
3462
- className: css$12.itemIcon,
3463
- children: icon
3464
- }), jsx("span", {
3465
- className: css$12.itemLabel,
3466
- children
3467
- })]
3808
+ children: [
3809
+ icon !== void 0 && jsx("span", {
3810
+ className: css$14.itemIcon,
3811
+ children: icon
3812
+ }),
3813
+ jsx("span", {
3814
+ className: css$14.itemLabel,
3815
+ children
3816
+ }),
3817
+ shortcut !== void 0 && jsx("span", {
3818
+ "aria-hidden": "true",
3819
+ className: css$14.shortcut,
3820
+ children: jsx(ShortcutKeys, {
3821
+ keys: shortcut.keys,
3822
+ className: css$14.shortcutKeys
3823
+ })
3824
+ })
3825
+ ]
3468
3826
  })]
3469
3827
  });
3470
3828
  }
@@ -3500,7 +3858,7 @@ const MEASURE_STYLE = {
3500
3858
  * @param props.align - list alignment against the anchor (default 'start').
3501
3859
  * @param props.side - open below (`bottom`, default) or above (`top`) the anchor.
3502
3860
  * @param props.portal - render the list into document.body, fixed-positioned
3503
- * from the anchor rect (repositions on scroll/resize while open). Use when an
3861
+ * from the anchor rect (follows movement and resizing while open). Use when an
3504
3862
  * ancestor's overflow clipping would crop the in-place list; default false
3505
3863
  * keeps the pure-CSS in-place behavior.
3506
3864
  * @param props.closeOnPointerLeave - close the list once the pointer has left
@@ -3513,8 +3871,8 @@ const MEASURE_STYLE = {
3513
3871
  * directly (e.g. from a host-owned trigger button) instead of measuring the
3514
3872
  * Menu's own wrapper span. Required when the wrapper isn't itself laid out at
3515
3873
  * the trigger (render-prop anchors, effect-positioned proxies — measuring the
3516
- * wrapper there races the host's layout effects). Called on open and on every
3517
- * scroll/resize; return null to skip placement for that frame.
3874
+ * wrapper there races the host's layout effects). Called on open, each animation
3875
+ * frame, and scroll/resize; return null to skip placement for that frame.
3518
3876
  * @param props.footer - rows pinned below the scrolling items area, separated
3519
3877
  * by a hairline; they stay visible while the items above scroll.
3520
3878
  * @param props.children - component rows rendered after `items` in the same
@@ -3542,19 +3900,20 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3542
3900
  * able to name by position.
3543
3901
  */
3544
3902
  const triggerRef = useRef(null);
3903
+ const selectingWithTab = useRef(false);
3545
3904
  /**
3546
3905
  * Hand the keyboard back to the trigger that opened the menu — or, when the
3547
3906
  * anchor never held it, to the anchor's first button. Focus left on a removed
3548
3907
  * row otherwise falls to the page body, where the next Tab restarts from the
3549
3908
  * top of the page.
3909
+ * @param navigation - whether explicit keyboard traversal should retain its focus indicator.
3550
3910
  */
3551
- const refocusAnchor = () => {
3911
+ const refocusAnchor = (navigation = false) => {
3552
3912
  const trigger = triggerRef.current;
3553
- if (trigger !== null && document.contains(trigger) && !trigger.disabled) {
3554
- trigger.focus();
3555
- return;
3556
- }
3557
- rootRef.current?.querySelector("button:not(:disabled)")?.focus();
3913
+ const target = trigger !== null && document.contains(trigger) && !trigger.disabled ? trigger : rootRef.current?.querySelector("button:not(:disabled)");
3914
+ if (target == null) return;
3915
+ if (navigation) target.focus();
3916
+ else focusWithoutRing(target);
3558
3917
  };
3559
3918
  /**
3560
3919
  * Post-selection focus, for the paths where the rows unmount with the list.
@@ -3564,10 +3923,11 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3564
3923
  * its removal produced) comes back to the trigger.
3565
3924
  */
3566
3925
  const refocusAfterSelection = () => {
3926
+ const navigation = selectingWithTab.current;
3567
3927
  queueMicrotask(() => {
3568
3928
  if (openRef.current) return;
3569
3929
  const active = document.activeElement;
3570
- if (active === null || active === document.body || listRef.current?.contains(active) === true) refocusAnchor();
3930
+ if (active === null || active === document.body || listRef.current?.contains(active) === true) refocusAnchor(navigation);
3571
3931
  });
3572
3932
  };
3573
3933
  const openRef = useRef(open);
@@ -3607,15 +3967,21 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3607
3967
  }
3608
3968
  if (lw > 0) x = Math.min(Math.max(x, MARGIN), vw - lw - MARGIN);
3609
3969
  if (lh > 0) y = Math.min(Math.max(y, overlayTopMargin(MARGIN)), vh - lh - MARGIN);
3610
- setFixedPos({
3970
+ setFixedPos((current) => current?.left === x && current.top === y ? current : {
3611
3971
  left: x,
3612
3972
  top: y
3613
3973
  });
3614
3974
  };
3615
3975
  place();
3976
+ const track = () => {
3977
+ place();
3978
+ frame = requestAnimationFrame(track);
3979
+ };
3980
+ let frame = requestAnimationFrame(track);
3616
3981
  window.addEventListener("scroll", place, true);
3617
3982
  window.addEventListener("resize", place);
3618
3983
  return () => {
3984
+ cancelAnimationFrame(frame);
3619
3985
  window.removeEventListener("scroll", place, true);
3620
3986
  window.removeEventListener("resize", place);
3621
3987
  };
@@ -3638,7 +4004,7 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3638
4004
  if (!open || !autoFocus) return;
3639
4005
  const first = listRef.current?.querySelector("button:not(:disabled)");
3640
4006
  walkIndex.current = first === void 0 || first === null ? null : 0;
3641
- first?.focus();
4007
+ if (first != null) focusWithoutRing(first);
3642
4008
  }, [open, autoFocus]);
3643
4009
  useEffect(() => {
3644
4010
  if (!open) {
@@ -3646,6 +4012,7 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3646
4012
  walkIndex.current = null;
3647
4013
  return;
3648
4014
  }
4015
+ const composition = observeComposition(document);
3649
4016
  const onPointerDown = (e) => {
3650
4017
  if (!(e.target instanceof Node)) return;
3651
4018
  if (rootRef.current?.contains(e.target) === true) return;
@@ -3653,10 +4020,13 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3653
4020
  onClose();
3654
4021
  };
3655
4022
  const onKeyDown = (e) => {
4023
+ if (composition.guards(e) || isBehindModal(rootRef.current) || e.defaultPrevented || e.ctrlKey || e.altKey || e.metaKey) return;
3656
4024
  const focused = document.activeElement;
3657
4025
  const insideList = listRef.current?.contains(focused) === true;
3658
4026
  const anchored = rootRef.current?.contains(focused) === true || insideList;
3659
- if (e.key === "Escape") {
4027
+ if (e.key === "Escape" && !e.shiftKey) {
4028
+ e.preventDefault();
4029
+ if (e.repeat) return;
3660
4030
  onClose();
3661
4031
  if (anchored || autoFocus) refocusAnchor();
3662
4032
  }
@@ -3666,13 +4036,18 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3666
4036
  if (e.shiftKey) {
3667
4037
  e.preventDefault();
3668
4038
  onClose();
3669
- refocusAnchor();
4039
+ refocusAnchor(true);
3670
4040
  return;
3671
4041
  }
3672
4042
  if (insideList) {
3673
4043
  if (focused instanceof Element && focused.getAttribute("role") === "menuitem") {
3674
4044
  e.preventDefault();
3675
- focused.click();
4045
+ selectingWithTab.current = true;
4046
+ try {
4047
+ focused.click();
4048
+ } finally {
4049
+ selectingWithTab.current = false;
4050
+ }
3676
4051
  }
3677
4052
  return;
3678
4053
  }
@@ -3704,11 +4079,20 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3704
4079
  if (document.activeElement instanceof HTMLIFrameElement) onClose();
3705
4080
  };
3706
4081
  document.addEventListener("pointerdown", onPointerDown);
3707
- document.addEventListener("keydown", onKeyDown);
4082
+ const onEscape = (event) => {
4083
+ if (event.key === "Escape") onKeyDown(event);
4084
+ };
4085
+ const onOtherKey = (event) => {
4086
+ if (event.key !== "Escape") onKeyDown(event);
4087
+ };
4088
+ document.addEventListener("keydown", onOtherKey);
4089
+ document.addEventListener("keydown", onEscape, true);
3708
4090
  window.addEventListener("blur", onWindowBlur);
3709
4091
  return () => {
4092
+ composition.dispose();
3710
4093
  document.removeEventListener("pointerdown", onPointerDown);
3711
- document.removeEventListener("keydown", onKeyDown);
4094
+ document.removeEventListener("keydown", onOtherKey);
4095
+ document.removeEventListener("keydown", onEscape, true);
3712
4096
  window.removeEventListener("blur", onWindowBlur);
3713
4097
  };
3714
4098
  }, [
@@ -3722,11 +4106,11 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3722
4106
  const scrollable = !items.some((entry) => !isSeparator(entry) && !isLabel(entry) && entry.submenu !== void 0 && entry.submenu.length > 0);
3723
4107
  const renderEntry = (entry) => {
3724
4108
  if (isSeparator(entry)) return jsx("div", {
3725
- className: css$12.separator,
4109
+ className: css$14.separator,
3726
4110
  role: "separator"
3727
4111
  }, entry.id);
3728
4112
  if (isLabel(entry)) return jsx("div", {
3729
- className: css$12.label,
4113
+ className: css$14.label,
3730
4114
  role: "presentation",
3731
4115
  children: entry.text
3732
4116
  }, entry.id);
@@ -3734,7 +4118,7 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3734
4118
  const subOpen = hasSub && openSubmenuId === entry.id;
3735
4119
  const selected = entry.id === selectedId || selectedIds?.includes(entry.id) === true;
3736
4120
  return jsxs("div", {
3737
- className: css$12.itemWrap,
4121
+ className: css$14.itemWrap,
3738
4122
  onMouseEnter: hasSub ? () => {
3739
4123
  setOpenSubmenuId(entry.id);
3740
4124
  } : void 0,
@@ -3744,8 +4128,9 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3744
4128
  children: [jsxs("button", {
3745
4129
  type: "button",
3746
4130
  role: "menuitem",
3747
- className: clsx(css$12.item, selected && (selection === "fill" ? css$12.selectedFill : css$12.selected), entry.danger === true && css$12.danger),
4131
+ className: clsx(css$14.item, selected && (selection === "fill" ? css$14.selectedFill : css$14.selected), entry.danger === true && css$14.danger),
3748
4132
  disabled: entry.disabled,
4133
+ "aria-keyshortcuts": entry.shortcut?.aria,
3749
4134
  "aria-haspopup": hasSub ? "menu" : void 0,
3750
4135
  "aria-expanded": hasSub ? subOpen : void 0,
3751
4136
  onFocus: hasSub ? () => {
@@ -3760,33 +4145,55 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3760
4145
  },
3761
4146
  children: [
3762
4147
  entry.icon !== void 0 && jsx("span", {
3763
- className: css$12.itemIcon,
4148
+ className: css$14.itemIcon,
3764
4149
  children: entry.icon
3765
4150
  }),
3766
4151
  jsx("span", {
3767
- className: css$12.itemLabel,
4152
+ className: css$14.itemLabel,
3768
4153
  children: entry.label
3769
4154
  }),
3770
- selected && selection === "check" && jsx(IconCheckOutlineRegular, { className: css$12.check })
4155
+ entry.shortcut !== void 0 && jsx("span", {
4156
+ "aria-hidden": "true",
4157
+ className: css$14.shortcut,
4158
+ children: jsx(ShortcutKeys, {
4159
+ keys: entry.shortcut.keys,
4160
+ className: css$14.shortcutKeys
4161
+ })
4162
+ }),
4163
+ selected && selection === "check" && jsx(IconCheckOutlineRegular, { className: css$14.check })
3771
4164
  ]
3772
- }), subOpen && entry.submenu !== void 0 && jsx("div", {
3773
- className: clsx(css$12.submenu, compact && css$12.compactList),
4165
+ }), subOpen && entry.submenu !== void 0 && jsx(MenuSurface, {
4166
+ compact,
4167
+ className: clsx(css$14.submenu, compact && css$14.compactList),
3774
4168
  role: "menu",
3775
4169
  children: entry.submenu.map((sub) => jsxs("button", {
3776
4170
  type: "button",
3777
4171
  role: "menuitem",
3778
- className: css$12.item,
4172
+ className: css$14.item,
3779
4173
  disabled: sub.disabled,
4174
+ "aria-keyshortcuts": sub.shortcut?.aria,
3780
4175
  onClick: () => {
3781
4176
  onSelect?.(sub.id);
4177
+ refocusAfterSelection();
3782
4178
  },
3783
- children: [sub.icon !== void 0 && jsx("span", {
3784
- className: css$12.itemIcon,
3785
- children: sub.icon
3786
- }), jsx("span", {
3787
- className: css$12.itemLabel,
3788
- children: sub.label
3789
- })]
4179
+ children: [
4180
+ sub.icon !== void 0 && jsx("span", {
4181
+ className: css$14.itemIcon,
4182
+ children: sub.icon
4183
+ }),
4184
+ jsx("span", {
4185
+ className: css$14.itemLabel,
4186
+ children: sub.label
4187
+ }),
4188
+ sub.shortcut !== void 0 && jsx("span", {
4189
+ "aria-hidden": "true",
4190
+ className: css$14.shortcut,
4191
+ children: jsx(ShortcutKeys, {
4192
+ keys: sub.shortcut.keys,
4193
+ className: css$14.shortcutKeys
4194
+ })
4195
+ })
4196
+ ]
3790
4197
  }, sub.id))
3791
4198
  })]
3792
4199
  }, entry.id);
@@ -3797,9 +4204,10 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3797
4204
  if (row.closest("[role=\"menu\"]") !== e.currentTarget) return;
3798
4205
  setOpenSubmenuId(null);
3799
4206
  };
3800
- const list = open && jsxs("div", {
4207
+ const list = open && jsxs(MenuSurface, {
4208
+ compact,
3801
4209
  ref: listRef,
3802
- className: clsx(css$12.list, listClassName, dense && css$12.denseList, compact && css$12.compactList, scrollable && css$12.scrollable, portal && css$12.portal, side === "top" && !portal && css$12.sideTop, align === "end" && !portal && css$12.alignEnd),
4210
+ className: clsx(css$14.list, listClassName, dense && css$14.denseList, compact && css$14.compactList, scrollable && css$14.scrollable, portal && css$14.portal, side === "top" && !portal && css$14.sideTop, align === "end" && !portal && css$14.alignEnd),
3803
4211
  style: portal ? fixedPos ?? MEASURE_STYLE : void 0,
3804
4212
  role: "menu",
3805
4213
  onClick: (e) => {
@@ -3810,18 +4218,18 @@ function Menu({ open, anchor, items = [], children, selectedId, selectedIds, onS
3810
4218
  onMouseOver: collapseSubmenuFrom,
3811
4219
  onFocus: collapseSubmenuFrom,
3812
4220
  children: [jsxs("div", {
3813
- className: css$12.viewport,
4221
+ className: css$14.viewport,
3814
4222
  role: "presentation",
3815
4223
  children: [items.map(renderEntry), children]
3816
4224
  }), footer !== void 0 && footer.length > 0 && jsx("div", {
3817
- className: css$12.footer,
4225
+ className: css$14.footer,
3818
4226
  role: "presentation",
3819
4227
  children: footer.map(renderEntry)
3820
4228
  })]
3821
4229
  });
3822
4230
  return jsxs("span", {
3823
4231
  ref: rootRef,
3824
- className: clsx(css$12.root, className),
4232
+ className: clsx(css$14.root, className),
3825
4233
  onPointerEnter: closeOnPointerLeave ? cancelClose : void 0,
3826
4234
  onPointerLeave: closeOnPointerLeave ? () => {
3827
4235
  if (open) armClose();
@@ -4011,76 +4419,348 @@ async function writeClipboard(text) {
4011
4419
  }
4012
4420
  }
4013
4421
  //#endregion
4014
- //#region lib/types/HoverCard.js
4015
- /** Preview opacity transition and retained lifetime during dismissal. */
4016
- const PREVIEW_FADE_MS = 100;
4017
- const PREVIEW_MAX_HEIGHT = 420;
4018
- const PREVIEW_INSET = 24;
4019
- const ANCHOR_GAP = 8;
4020
- const VIEWPORT_MARGIN = 8;
4422
+ //#region lib/types/input-modality.js
4021
4423
  /**
4022
- * Render an anchor with a hover-triggered preview card.
4023
- * @param props.anchor - the hover target (rendered in place inside a wrapper span).
4024
- * @param props.content - card content; the pointer may rest on it, so it is
4025
- * readable and selectable, but it carries no dismissal affordance of its own.
4026
- * @param props.openDelayMs - hover dwell before the card shows (default 500).
4027
- * @param props.variant - compact card beside the anchor, or a preview above/below it
4028
- * with 24px side insets, a 420px height cap, frame-top clearance, and 100ms opacity transitions.
4029
- * @param props.widthAnchorRef - optional element whose width and horizontal position size the preview.
4030
- * @param props.disabled - suppress opening; turning true dismisses an open card.
4031
- * @param props.copyText - optional primary value copied by activation and
4032
- * included in the card's accessible name.
4033
- * @param props.copyLabel - localized accessible activation-label prefix.
4034
- * @param props.copiedLabel - localized visible success label.
4035
- * @returns anchor wrapper with the conditional portaled card.
4424
+ * Document-wide input tracking shared by tooltips and focus-ring styles.
4425
+ * Tooltips follow the last input; rings follow navigation or a key followed by
4426
+ * focus on a different control. Modifiers and refocusing alone keep rings silent.
4427
+ * Module-level listeners live for the document lifetime; Node imports are inert.
4036
4428
  */
4037
- function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyText, copyLabel, copiedLabel, variant = "compact", widthAnchorRef }) {
4038
- const rootRef = useRef(null);
4039
- const cardRef = useRef(null);
4040
- const timerRef = useRef(null);
4041
- const copyTimerRef = useRef(null);
4042
- const copyHeightRef = useRef(null);
4043
- const copyEpochRef = useRef(0);
4044
- const copyingRef = useRef(false);
4045
- const mountedRef = useRef(true);
4046
- const [phase, setPhase] = useState("closed");
4047
- const open = phase !== "closed";
4048
- const closing = phase === "closing";
4049
- const [pos, setPos] = useState(null);
4050
- const positioned = pos !== null;
4051
- const [copied, setCopied] = useState(false);
4052
- const clearCopied = useCallback(() => {
4053
- if (copyTimerRef.current !== null) {
4054
- clearTimeout(copyTimerRef.current);
4055
- copyTimerRef.current = null;
4056
- }
4057
- copyHeightRef.current = null;
4058
- setCopied(false);
4059
- }, []);
4060
- const close = useCallback(() => {
4061
- copyEpochRef.current += 1;
4062
- clearCopied();
4063
- setPhase((current) => variant === "preview" && current !== "closed" ? "closing" : "closed");
4064
- }, [clearCopied, variant]);
4065
- const { arm: armClose, cancel: cancelClose } = usePointerGrace(close);
4066
- const clearTimer = () => {
4067
- if (timerRef.current !== null) {
4068
- clearTimeout(timerRef.current);
4069
- timerRef.current = null;
4429
+ /** Modality values published on the document element. */
4430
+ const INPUT_MODALITY = {
4431
+ pointer: "pointer",
4432
+ keyboard: "keyboard"
4433
+ };
4434
+ /** Attribute carrying whether focus navigation last owned focus. */
4435
+ const INPUT_MODALITY_ATTRIBUTE = "data-input-modality";
4436
+ const FOCUS_NAVIGATION = new Set([
4437
+ "Tab",
4438
+ "Home",
4439
+ "End",
4440
+ "PageUp",
4441
+ "PageDown"
4442
+ ]);
4443
+ let pointer = false;
4444
+ let pointerOwnsFocus = false;
4445
+ let keyFocusOrigin;
4446
+ function publish() {
4447
+ document.documentElement.setAttribute(INPUT_MODALITY_ATTRIBUTE, pointerOwnsFocus ? INPUT_MODALITY.pointer : INPUT_MODALITY.keyboard);
4448
+ }
4449
+ /**
4450
+ * Whether the last input came from a pointer, independently of ring visibility.
4451
+ * @returns True after pointer input; false after any key.
4452
+ */
4453
+ function pointerModality() {
4454
+ return pointer;
4455
+ }
4456
+ if (typeof window !== "undefined") {
4457
+ window.addEventListener("pointerdown", () => {
4458
+ pointer = true;
4459
+ pointerOwnsFocus = true;
4460
+ keyFocusOrigin = void 0;
4461
+ publish();
4462
+ }, true);
4463
+ window.addEventListener("keydown", (event) => {
4464
+ pointer = false;
4465
+ if (event.isComposing) {
4466
+ keyFocusOrigin = void 0;
4467
+ return;
4070
4468
  }
4071
- };
4072
- useEffect(() => {
4073
- if (!closing) return;
4074
- const timer = setTimeout(() => {
4075
- setPhase("closed");
4076
- }, PREVIEW_FADE_MS);
4077
- return () => {
4078
- clearTimeout(timer);
4079
- };
4080
- }, [closing]);
4081
- useEffect(() => {
4082
- if (!disabled) return;
4083
- clearTimer();
4469
+ keyFocusOrigin = event.composedPath()[0];
4470
+ if (!FOCUS_NAVIGATION.has(event.key) && !event.key.startsWith("Arrow")) return;
4471
+ pointerOwnsFocus = false;
4472
+ publish();
4473
+ }, true);
4474
+ window.addEventListener("focusin", (event) => {
4475
+ if (keyFocusOrigin === void 0 || event.composedPath()[0] === keyFocusOrigin) return;
4476
+ keyFocusOrigin = void 0;
4477
+ if (!pointerOwnsFocus) return;
4478
+ pointerOwnsFocus = false;
4479
+ publish();
4480
+ }, true);
4481
+ window.addEventListener("blur", () => {
4482
+ keyFocusOrigin = void 0;
4483
+ });
4484
+ }
4485
+ //#endregion
4486
+ //#region lib/types/Tooltip.js
4487
+ /** Anchor-preserving tooltips; an optional body portal escapes clipping containers and stacking contexts that cap the bubble's z-index. */
4488
+ /**
4489
+ * Suppression channel for enclosing tooltip and hover-card anchors: a visible
4490
+ * tooltip within an anchor withdraws the enclosing preview while its bubble is shown.
4491
+ */
4492
+ const TooltipSuppression = createContext(null);
4493
+ /**
4494
+ * Attach a hover/focus tooltip to an anchor element.
4495
+ * @param props.label - bubble text, or a resolver evaluated only while visible; an empty string shows only shortcut keys.
4496
+ * @param props.shortcutKeys - effective key labels rendered as platform-formatted keycaps after optional text.
4497
+ * @param props.side - placement relative to the anchor (default 'right').
4498
+ * @param props.align - horizontal anchor-edge alignment for 'bottom'/'top' bubbles: 'end' pins
4499
+ * the bubble's right edge to the anchor's (for anchors beside other hover surfaces the centered
4500
+ * bubble would overlap); default 'center'. Ignored for side 'right'.
4501
+ * @param props.portal - render the bubble under document.body, so an ancestor's clipping or its
4502
+ * stacking context (which confines the bubble's z-index to that context) cannot hide it.
4503
+ * @param props.delayMs - hover delay in milliseconds; keyboard focus remains immediate.
4504
+ * @param props.gap - anchor-to-bubble distance in pixels for 'bottom'/'top' bubbles (default 8);
4505
+ * ignored for side 'right'.
4506
+ * @param props.disabled - suppress the bubble while true; the anchor renders identically so
4507
+ * toggling never remounts it (which would cut its CSS transitions).
4508
+ * @param props.maxWidth - bubble width cap in pixels, for labels long enough that the default
4509
+ * half-viewport cap would render a slab wider than the surface the anchor sits on.
4510
+ * @param props.children - a single anchor element; its own ref (callback or object) is forwarded alongside the tooltip's.
4511
+ * @returns the cloned anchor plus a fixed-position bubble, optionally portaled to the body.
4512
+ * The bubble stays hidden until ResizeObserver supplies its size for viewport fitting; clicking the
4513
+ * anchor dismisses the bubble until the next trigger, and focus arriving after a pointer
4514
+ * interaction (a closing menu refocusing its trigger) never raises it.
4515
+ */
4516
+ function Tooltip({ label, shortcutKeys, side = "right", align = "center", delayMs = 0, gap = 8, disabled = false, portal = false, maxWidth, children }) {
4517
+ const anchor = useRef(null);
4518
+ const childRef = children.ref;
4519
+ const mergedRef = useCallback((el) => {
4520
+ anchor.current = el;
4521
+ if (typeof childRef === "function") childRef(el);
4522
+ else if (childRef != null) childRef.current = el;
4523
+ }, [childRef]);
4524
+ const [pos, setPos] = useState(null);
4525
+ const bubble = useRef(null);
4526
+ const resolvedLabel = pos === null ? null : typeof label === "function" ? label() : label;
4527
+ const y = pos === null ? 0 : side === "right" ? pos.top + (pos.bottom - pos.top) / 2 : side === "top" ? pos.top - gap : pos.bottom + gap;
4528
+ const showTimer = useRef(null);
4529
+ const triggers = useRef({
4530
+ hover: false,
4531
+ focus: false
4532
+ });
4533
+ const suppressAncestors = useContext(TooltipSuppression);
4534
+ const [suppressed, setSuppressed] = useState(false);
4535
+ const announce = useCallback((active) => {
4536
+ suppressAncestors?.(active);
4537
+ }, [suppressAncestors]);
4538
+ const visible = pos !== null && !disabled;
4539
+ useEffect(() => {
4540
+ const el = bubble.current;
4541
+ if (pos === null || !visible || suppressed || el === null) return;
4542
+ const edgeMargin = 12;
4543
+ let size;
4544
+ let placement = side;
4545
+ const fit = () => {
4546
+ if (size === void 0) return;
4547
+ const { inlineSize: width, blockSize: height } = size;
4548
+ const offset = side === "right" ? 0 : align === "end" ? width : width / 2;
4549
+ const left = Math.max(edgeMargin, Math.min(pos.x - offset, window.innerWidth - edgeMargin - width));
4550
+ const fitsBelow = pos.bottom + gap + height <= window.innerHeight - edgeMargin;
4551
+ const fitsAbove = pos.top - gap - height >= edgeMargin;
4552
+ if (placement === "bottom" && !fitsBelow && fitsAbove) placement = "top";
4553
+ else if (placement === "top" && !fitsAbove && fitsBelow) placement = "bottom";
4554
+ el.style.left = `${left + offset}px`;
4555
+ el.style.top = `${placement === "right" ? (pos.top + pos.bottom) / 2 : placement === "top" ? pos.top - gap : pos.bottom + gap}px`;
4556
+ el.dataset.side = placement;
4557
+ el.style.visibility = "visible";
4558
+ };
4559
+ const observer = new ResizeObserver((entries) => {
4560
+ size = entries[0]?.borderBoxSize[0];
4561
+ fit();
4562
+ });
4563
+ observer.observe(el, { box: "border-box" });
4564
+ window.addEventListener("resize", fit);
4565
+ return () => {
4566
+ observer.disconnect();
4567
+ window.removeEventListener("resize", fit);
4568
+ };
4569
+ }, [
4570
+ align,
4571
+ gap,
4572
+ pos,
4573
+ side,
4574
+ suppressed,
4575
+ visible
4576
+ ]);
4577
+ useEffect(() => {
4578
+ announce(visible);
4579
+ return () => {
4580
+ announce(false);
4581
+ };
4582
+ }, [announce, visible]);
4583
+ const cancelShow = useCallback(() => {
4584
+ if (showTimer.current === null) return;
4585
+ clearTimeout(showTimer.current);
4586
+ showTimer.current = null;
4587
+ }, []);
4588
+ useEffect(() => {
4589
+ if (disabled) {
4590
+ cancelShow();
4591
+ triggers.current = {
4592
+ hover: false,
4593
+ focus: false
4594
+ };
4595
+ setPos(null);
4596
+ }
4597
+ return cancelShow;
4598
+ }, [cancelShow, disabled]);
4599
+ const show = () => {
4600
+ if (disabled) return;
4601
+ const el = anchor.current;
4602
+ /* v8 ignore next -- the ref is attached by event time: events fire on the cloned anchor. */
4603
+ if (el === null) return;
4604
+ const r = el.getBoundingClientRect();
4605
+ setPos({
4606
+ x: side === "right" ? r.right + 10 : align === "end" ? r.right : r.left + r.width / 2,
4607
+ top: r.top,
4608
+ bottom: r.bottom
4609
+ });
4610
+ announce(true);
4611
+ };
4612
+ const showAfterHoverDelay = () => {
4613
+ cancelShow();
4614
+ if (delayMs <= 0) {
4615
+ show();
4616
+ return;
4617
+ }
4618
+ showTimer.current = setTimeout(() => {
4619
+ showTimer.current = null;
4620
+ show();
4621
+ }, delayMs);
4622
+ };
4623
+ const withdraw = () => {
4624
+ setPos(null);
4625
+ announce(false);
4626
+ };
4627
+ const hide = () => {
4628
+ cancelShow();
4629
+ if (!triggers.current.hover && !triggers.current.focus) withdraw();
4630
+ };
4631
+ const content = visible && !suppressed && jsxs("span", {
4632
+ ref: bubble,
4633
+ className: css$15.bubble,
4634
+ "data-side": side,
4635
+ "data-portal": portal || void 0,
4636
+ "data-align": align,
4637
+ "data-has-shortcut": shortcutKeys?.length ? true : void 0,
4638
+ style: {
4639
+ left: pos.x,
4640
+ top: y,
4641
+ visibility: "hidden",
4642
+ ...maxWidth === void 0 ? {} : { maxWidth }
4643
+ },
4644
+ role: "tooltip",
4645
+ "aria-label": shortcutKeys?.length ? [resolvedLabel, shortcutKeys.join(" ")].filter(Boolean).join(" ") : void 0,
4646
+ children: [resolvedLabel && jsx("span", {
4647
+ className: css$15.label,
4648
+ children: resolvedLabel
4649
+ }), shortcutKeys !== void 0 && shortcutKeys.length > 0 && jsx(ShortcutKeys, {
4650
+ keys: shortcutKeys,
4651
+ variant: "tooltip"
4652
+ })]
4653
+ });
4654
+ return jsxs(TooltipSuppression.Provider, {
4655
+ value: setSuppressed,
4656
+ children: [cloneElement(children, {
4657
+ ref: mergedRef,
4658
+ onMouseEnter: (e) => {
4659
+ children.props.onMouseEnter?.(e);
4660
+ triggers.current.hover = true;
4661
+ showAfterHoverDelay();
4662
+ },
4663
+ onMouseLeave: (e) => {
4664
+ children.props.onMouseLeave?.(e);
4665
+ triggers.current.hover = false;
4666
+ cancelShow();
4667
+ withdraw();
4668
+ },
4669
+ onClick: (e) => {
4670
+ children.props.onClick?.(e);
4671
+ triggers.current.focus = false;
4672
+ cancelShow();
4673
+ withdraw();
4674
+ },
4675
+ onFocus: (e) => {
4676
+ children.props.onFocus?.(e);
4677
+ if (pointerModality()) return;
4678
+ triggers.current.focus = true;
4679
+ cancelShow();
4680
+ show();
4681
+ },
4682
+ onBlur: (e) => {
4683
+ children.props.onBlur?.(e);
4684
+ triggers.current.focus = false;
4685
+ hide();
4686
+ }
4687
+ }), portal ? content !== false && createPortal(content, document.body) : content]
4688
+ });
4689
+ }
4690
+ //#endregion
4691
+ //#region lib/types/HoverCard.js
4692
+ /** Preview opacity transition and retained lifetime during dismissal. */
4693
+ const PREVIEW_FADE_MS = 100;
4694
+ const PREVIEW_MAX_HEIGHT = 420;
4695
+ const PREVIEW_INSET = 24;
4696
+ const INLINE_PREVIEW_WIDTH = 300;
4697
+ const ANCHOR_GAP = 8;
4698
+ const VIEWPORT_MARGIN = 8;
4699
+ /**
4700
+ * Render an anchor with a hover-triggered preview card, hidden while a tooltip within the anchor is visible.
4701
+ * @param props.anchor - the hover target (rendered in place inside a wrapper span).
4702
+ * @param props.content - card content; the pointer may rest on it, so it is
4703
+ * readable and selectable, but it carries no dismissal affordance of its own.
4704
+ * @param props.openDelayMs - hover dwell before the card shows (default 500).
4705
+ * @param props.variant - compact card beside the anchor, or a preview above/below it
4706
+ * with 24px side insets, a 420px height cap, frame-top clearance, and 100ms opacity transitions.
4707
+ * @param props.widthAnchorRef - optional element whose width and horizontal position size the preview.
4708
+ * @param props.inline - keep the anchor in prose; show a contained preview on hover or keyboard focus.
4709
+ * @param props.disabled - suppress opening; turning true dismisses an open card.
4710
+ * @param props.copyText - optional primary value copied by activation and
4711
+ * included in the card's accessible name.
4712
+ * @param props.copyLabel - localized accessible activation-label prefix.
4713
+ * @param props.copiedLabel - localized visible success label.
4714
+ * @returns anchor wrapper with the conditional portaled card.
4715
+ */
4716
+ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyText, copyLabel, copiedLabel, variant = "compact", widthAnchorRef, inline = false }) {
4717
+ const rootRef = useRef(null);
4718
+ const cardRef = useRef(null);
4719
+ const timerRef = useRef(null);
4720
+ const copyTimerRef = useRef(null);
4721
+ const copyHeightRef = useRef(null);
4722
+ const copyEpochRef = useRef(0);
4723
+ const copyingRef = useRef(false);
4724
+ const mountedRef = useRef(true);
4725
+ const [phase, setPhase] = useState("closed");
4726
+ const open = phase !== "closed";
4727
+ const closing = phase === "closing";
4728
+ const [pos, setPos] = useState(null);
4729
+ const positioned = pos !== null;
4730
+ const [copied, setCopied] = useState(false);
4731
+ const [suppressed, setSuppressed] = useState(false);
4732
+ const clearCopied = useCallback(() => {
4733
+ if (copyTimerRef.current !== null) {
4734
+ clearTimeout(copyTimerRef.current);
4735
+ copyTimerRef.current = null;
4736
+ }
4737
+ copyHeightRef.current = null;
4738
+ setCopied(false);
4739
+ }, []);
4740
+ const close = useCallback(() => {
4741
+ copyEpochRef.current += 1;
4742
+ clearCopied();
4743
+ setPhase((current) => variant === "preview" && current !== "closed" ? "closing" : "closed");
4744
+ }, [clearCopied, variant]);
4745
+ const { arm: armClose, cancel: cancelClose } = usePointerGrace(close);
4746
+ const clearTimer = () => {
4747
+ if (timerRef.current !== null) {
4748
+ clearTimeout(timerRef.current);
4749
+ timerRef.current = null;
4750
+ }
4751
+ };
4752
+ useEffect(() => {
4753
+ if (!closing) return;
4754
+ const timer = setTimeout(() => {
4755
+ setPhase("closed");
4756
+ }, PREVIEW_FADE_MS);
4757
+ return () => {
4758
+ clearTimeout(timer);
4759
+ };
4760
+ }, [closing]);
4761
+ useEffect(() => {
4762
+ if (!disabled) return;
4763
+ clearTimer();
4084
4764
  cancelClose();
4085
4765
  close();
4086
4766
  }, [
@@ -4101,19 +4781,22 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4101
4781
  };
4102
4782
  }, []);
4103
4783
  useEffect(() => {
4104
- if (!open || variant !== "preview") return;
4784
+ if (!open || variant !== "preview" && !inline) return;
4105
4785
  const dismiss = (event) => {
4106
4786
  if (event.key !== "Escape") return;
4787
+ if (inline) event.stopPropagation();
4788
+ clearTimer();
4107
4789
  cancelClose();
4108
4790
  close();
4109
4791
  };
4110
- window.addEventListener("keydown", dismiss);
4792
+ window.addEventListener("keydown", dismiss, inline);
4111
4793
  return () => {
4112
- window.removeEventListener("keydown", dismiss);
4794
+ window.removeEventListener("keydown", dismiss, inline);
4113
4795
  };
4114
4796
  }, [
4115
4797
  open,
4116
4798
  variant,
4799
+ inline,
4117
4800
  cancelClose,
4118
4801
  close
4119
4802
  ]);
@@ -4145,6 +4828,23 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4145
4828
  });
4146
4829
  return;
4147
4830
  }
4831
+ if (inline) {
4832
+ const height = Math.max(h, cardRef.current?.scrollHeight ?? 0);
4833
+ const width = Math.max(0, Math.min(INLINE_PREVIEW_WIDTH, window.innerWidth - VIEWPORT_MARGIN * 2));
4834
+ const topMargin = overlayTopMargin(VIEWPORT_MARGIN);
4835
+ const belowTop = Math.max(topMargin, r.bottom + ANCHOR_GAP);
4836
+ const above = Math.max(0, r.top - ANCHOR_GAP - topMargin);
4837
+ const below = Math.max(0, window.innerHeight - belowTop - VIEWPORT_MARGIN);
4838
+ const onTop = height > below && above > below;
4839
+ const maxHeight = onTop ? above : below;
4840
+ setPos({
4841
+ left: Math.max(VIEWPORT_MARGIN, Math.min(r.left, window.innerWidth - width - VIEWPORT_MARGIN)),
4842
+ top: onTop ? r.top - ANCHOR_GAP - Math.min(height, maxHeight) : belowTop,
4843
+ width,
4844
+ maxHeight
4845
+ });
4846
+ return;
4847
+ }
4148
4848
  const top = r.top + h > window.innerHeight - VIEWPORT_MARGIN ? window.innerHeight - h - VIEWPORT_MARGIN : r.top;
4149
4849
  setPos({
4150
4850
  left: r.right + ANCHOR_GAP,
@@ -4152,7 +4852,7 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4152
4852
  });
4153
4853
  };
4154
4854
  place();
4155
- const observer = variant === "preview" && typeof ResizeObserver !== "undefined" ? new ResizeObserver(place) : null;
4855
+ const observer = (variant === "preview" || inline) && typeof ResizeObserver !== "undefined" ? new ResizeObserver(place) : null;
4156
4856
  for (const element of [
4157
4857
  cardRef.current,
4158
4858
  rootRef.current,
@@ -4169,10 +4869,11 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4169
4869
  open,
4170
4870
  variant,
4171
4871
  widthAnchorRef,
4172
- positioned
4872
+ positioned,
4873
+ inline
4173
4874
  ]);
4174
4875
  useLayoutEffect(() => {
4175
- if (!open || pos === null || variant === "preview") return;
4876
+ if (!open || pos === null || variant === "preview" || inline || suppressed) return;
4176
4877
  /* v8 ignore next -- the card is mounted whenever pos is set, so the ref is attached here. */
4177
4878
  const h = cardRef.current?.offsetHeight ?? 0;
4178
4879
  if (pos.top + h > window.innerHeight - VIEWPORT_MARGIN) setPos({
@@ -4182,7 +4883,9 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4182
4883
  }, [
4183
4884
  open,
4184
4885
  pos,
4185
- variant
4886
+ variant,
4887
+ inline,
4888
+ suppressed
4186
4889
  ]);
4187
4890
  const copy = async (text) => {
4188
4891
  if (copied || copyingRef.current) return;
@@ -4204,9 +4907,9 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4204
4907
  cancelClose();
4205
4908
  close();
4206
4909
  };
4207
- const card = open && pos !== null && jsx("div", {
4910
+ const card = open && pos !== null && !suppressed && jsx("div", {
4208
4911
  ref: cardRef,
4209
- className: clsx(css$13.card, variant === "preview" && css$13.preview, copyable && css$13.copyable, copied && css$13.feedback),
4912
+ className: clsx(css$16.card, variant === "preview" && css$16.preview, inline && css$16.media, copyable && css$16.copyable, copied && css$16.feedback),
4210
4913
  "data-closing": closing || void 0,
4211
4914
  style: {
4212
4915
  ...pos,
@@ -4229,16 +4932,29 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4229
4932
  copy(copyText);
4230
4933
  } : void 0,
4231
4934
  children: copied ? jsx("span", {
4232
- className: css$13.copied,
4935
+ className: css$16.copied,
4233
4936
  "aria-hidden": "true",
4234
4937
  children: copiedLabel
4235
4938
  }) : content
4236
4939
  });
4237
4940
  return jsxs("span", {
4238
4941
  ref: rootRef,
4239
- className: css$13.root,
4240
- onPointerEnter: () => {
4241
- if (disabled) return;
4942
+ className: clsx(css$16.root, inline && css$16.inline),
4943
+ onFocus: inline ? (event) => {
4944
+ if (!disabled && event.target.matches(":focus-visible")) {
4945
+ cancelClose();
4946
+ setPhase("open");
4947
+ }
4948
+ } : void 0,
4949
+ onBlur: inline ? (event) => {
4950
+ if (!event.currentTarget.contains(event.relatedTarget)) {
4951
+ clearTimer();
4952
+ cancelClose();
4953
+ close();
4954
+ }
4955
+ } : void 0,
4956
+ onPointerEnter: (event) => {
4957
+ if (disabled || inline && event.pointerType === "touch") return;
4242
4958
  cancelClose();
4243
4959
  if (open) {
4244
4960
  setPhase("open");
@@ -4256,9 +4972,12 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4256
4972
  onPointerDownCapture: dismissFromAnchor,
4257
4973
  onClickCapture: dismissFromAnchor,
4258
4974
  children: [
4259
- anchor,
4260
- open && copyable && jsx("span", {
4261
- className: css$13.status,
4975
+ jsx(TooltipSuppression.Provider, {
4976
+ value: setSuppressed,
4977
+ children: anchor
4978
+ }),
4979
+ open && !suppressed && copyable && jsx("span", {
4980
+ className: css$16.status,
4262
4981
  role: "status",
4263
4982
  children: copied ? copiedLabel : ""
4264
4983
  }),
@@ -4271,104 +4990,77 @@ function HoverCard({ anchor, content, openDelayMs = 500, disabled = false, copyT
4271
4990
  /**
4272
4991
  * Render a centered, body-portaled modal over a blurred page mask.
4273
4992
  * @param props.open - whether the dialog is showing.
4274
- * @param props.onClose - Escape or mask click; while a menu is open inside the
4993
+ * @param props.onClose - application close command, Escape, or mask click; while a menu is open inside the
4275
4994
  * dialog, Escape belongs to that menu first.
4276
4995
  * @param props.title - dialog heading (aria-label in every mode).
4277
4996
  * @param props.closeLabel - localized accessible close-button label.
4278
4997
  * @param props.description - optional supporting sentence under the title.
4279
- * @param props.children - body (inputs, etc.).
4998
+ * @param props.children - dialog body; mark its initial-focus control with
4999
+ * data-modal-autofocus instead of React autoFocus to preserve return focus.
4280
5000
  * @param props.footer - action row (Cancel / Create).
4281
5001
  * @param props.contentClassName - optional class for a scrollable content region.
5002
+ * @param props.backdropBlur - disable when the caller already blurs the page; defaults to true.
5003
+ * @param props.shortcutModal - command scope allowed by shortcut owners; unnamed
5004
+ * dialogs block application commands unless their owner allows the "other" scope.
4282
5005
  * @param props.headless - render children directly in the card (no default
4283
5006
  * header/close/body chrome); mask, card, Escape, and aria-label remain.
5007
+ * @param props.onKeyDownCapture - handle a nested dialog's keys before the document Escape listeners.
4284
5008
  * @returns null when closed; otherwise the overlay tree.
4285
5009
  */
4286
- function Modal({ open, onClose, title, closeLabel, description, children, footer, className, contentClassName, headless = false }) {
4287
- useEffect(() => {
4288
- if (!open) return;
4289
- const onKeyDown = (e) => {
4290
- if (e.key === "Escape") onClose();
4291
- };
4292
- document.addEventListener("keydown", onKeyDown);
4293
- return () => {
4294
- document.removeEventListener("keydown", onKeyDown);
4295
- };
4296
- }, [open, onClose]);
5010
+ function Modal({ open, onClose, title, closeLabel, description, children, footer, className, contentClassName, onKeyDownCapture, headless = false, backdropBlur = true, shortcutModal }) {
5011
+ const dialog = useRef(null);
5012
+ useModalLayer(dialog, open, onClose);
4297
5013
  if (!open) return null;
4298
5014
  return createPortal(jsxs("div", {
4299
- className: css$14.root,
5015
+ className: css$17.root,
4300
5016
  role: "presentation",
5017
+ onKeyDownCapture,
4301
5018
  children: [jsx("div", {
4302
- className: css$14.mask,
5019
+ className: css$17.mask,
5020
+ style: backdropBlur ? void 0 : { backdropFilter: "none" },
4303
5021
  "aria-hidden": "true",
4304
5022
  onClick: onClose
4305
5023
  }), jsx("div", {
4306
- className: clsx(css$14.dialog, className),
5024
+ ref: dialog,
5025
+ tabIndex: -1,
5026
+ "data-shortcut-modal": shortcutModal,
5027
+ className: clsx(css$17.dialog, className),
4307
5028
  role: "dialog",
4308
5029
  "aria-modal": "true",
4309
5030
  "aria-label": title,
4310
5031
  children: headless ? children : jsxs(Fragment, { children: [jsxs("div", {
4311
- className: clsx(css$14.content, contentClassName),
5032
+ className: clsx(css$17.content, contentClassName),
4312
5033
  children: [
4313
5034
  jsxs("div", {
4314
- className: css$14.header,
5035
+ className: css$17.header,
4315
5036
  children: [jsx("h2", {
4316
- className: css$14.title,
5037
+ className: css$17.title,
4317
5038
  children: title
4318
5039
  }), jsx("button", {
4319
5040
  type: "button",
4320
- className: css$14.close,
5041
+ className: css$17.close,
4321
5042
  "aria-label": closeLabel,
4322
5043
  onClick: onClose,
4323
5044
  children: jsx(IconCloseOutlineRegular, { size: 14 })
4324
5045
  })]
4325
5046
  }),
4326
5047
  description !== void 0 && description !== "" && jsx("p", {
4327
- className: css$14.description,
5048
+ className: css$17.description,
4328
5049
  children: description
4329
5050
  }),
4330
5051
  children !== void 0 && jsx("div", {
4331
- className: css$14.body,
5052
+ className: css$17.body,
4332
5053
  children
4333
5054
  })
4334
5055
  ]
4335
5056
  }), footer !== void 0 && jsx("div", {
4336
- className: css$14.footer,
5057
+ className: css$17.footer,
4337
5058
  children: footer
4338
5059
  })] })
4339
5060
  })]
4340
5061
  }), document.body);
4341
5062
  }
4342
5063
  //#endregion
4343
- //#region lib/types/OnboardingSurface.js
4344
- /**
4345
- * Render a body-portaled onboarding stage and keep the application root inert
4346
- * while mounted.
4347
- * @param props.children - the step's page content, centered on the stage.
4348
- * @returns the body-portaled overlay tree.
4349
- */
4350
- function OnboardingSurface({ children }) {
4351
- useEffect(() => {
4352
- const appRoot = document.getElementById("root");
4353
- if (appRoot === null) return;
4354
- appRoot.inert = true;
4355
- return () => {
4356
- appRoot.inert = false;
4357
- };
4358
- }, []);
4359
- return createPortal(jsxs("div", {
4360
- className: css$15.onboardingOverlay,
4361
- role: "presentation",
4362
- children: [jsx("div", {
4363
- className: css$15.onboardingMask,
4364
- "aria-hidden": "true"
4365
- }), jsx("div", {
4366
- className: css$15.onboardingStage,
4367
- children
4368
- })]
4369
- }), document.body);
4370
- }
4371
- //#endregion
4372
5064
  //#region lib/types/RiskConfirmation.js
4373
5065
  /**
4374
5066
  * Controlled risk acknowledgement dialog shared by product surfaces that
@@ -4384,33 +5076,33 @@ function RiskConfirmation({ open, title, description, acknowledgeLabel, cancelLa
4384
5076
  onClose: onCancel,
4385
5077
  title,
4386
5078
  closeLabel,
4387
- className: css$16.confirmation ?? "",
4388
- contentClassName: css$16.confirmationContent ?? "",
5079
+ className: css$18.confirmation ?? "",
5080
+ contentClassName: css$18.confirmationContent ?? "",
4389
5081
  footer: jsxs(Fragment, { children: [jsx(Button, {
4390
5082
  variant: "outline",
4391
- className: css$16.modalAction,
5083
+ className: css$18.modalAction,
4392
5084
  onClick: onCancel,
4393
5085
  children: cancelLabel
4394
5086
  }), jsx(Button, {
4395
5087
  variant: "primary",
4396
- className: css$16.confirmAction,
5088
+ className: css$18.confirmAction,
4397
5089
  disabled: disabled || !acknowledged,
4398
5090
  onClick: onConfirm,
4399
5091
  children: confirmLabel
4400
5092
  })] }),
4401
5093
  children: [jsxs("div", {
4402
- className: css$16.warning,
5094
+ className: css$18.warning,
4403
5095
  children: [jsx(IconWarningOutlineRegular, {
4404
5096
  size: 18,
4405
- className: css$16.warningIcon
5097
+ className: css$18.warningIcon
4406
5098
  }), jsx("p", { children: description })]
4407
5099
  }), jsxs("label", {
4408
- className: css$16.acknowledgement,
5100
+ className: css$18.acknowledgement,
4409
5101
  children: [jsx("input", {
4410
5102
  type: "checkbox",
4411
5103
  checked: acknowledged,
4412
5104
  disabled,
4413
- autoFocus: true,
5105
+ "data-modal-autofocus": true,
4414
5106
  onChange: (event) => {
4415
5107
  onAcknowledgedChange(event.currentTarget.checked);
4416
5108
  }
@@ -4453,44 +5145,44 @@ function ConnectionIndicator({ state, disconnectedLabel, connectingLabel, recove
4453
5145
  };
4454
5146
  }, [state, rendered]);
4455
5147
  if (rendered === void 0) return null;
4456
- const leavingClass = leaving ? ` ${css$17.leaving}` : "";
5148
+ const leavingClass = leaving ? ` ${css$19.leaving}` : "";
4457
5149
  if (rendered === "recovered") return jsxs("div", {
4458
- className: `${css$17.indicator} ${css$17.success}${leavingClass}`,
5150
+ className: `${css$19.indicator} ${css$19.success}${leavingClass}`,
4459
5151
  role: "status",
4460
5152
  "aria-label": recoveredLabel,
4461
5153
  children: [jsx("span", {
4462
- className: css$17.icon,
5154
+ className: css$19.icon,
4463
5155
  "aria-hidden": "true",
4464
5156
  children: jsx(IconCheckOutlineRegular, { size: 14 })
4465
5157
  }), jsx("span", {
4466
- className: css$17.label,
5158
+ className: css$19.label,
4467
5159
  children: recoveredLabel
4468
5160
  })]
4469
5161
  });
4470
5162
  const connecting = rendered === "connecting";
4471
5163
  return jsxs("button", {
4472
5164
  type: "button",
4473
- className: `${css$17.indicator} ${css$17.warning}${leavingClass}`,
5165
+ className: `${css$19.indicator} ${css$19.warning}${leavingClass}`,
4474
5166
  "data-phase": rendered,
4475
5167
  "aria-label": connecting ? restartActionLabel : reconnectActionLabel,
4476
5168
  onClick: onReconnect,
4477
5169
  children: [jsx("span", {
4478
- className: css$17.icon,
5170
+ className: css$19.icon,
4479
5171
  "aria-hidden": "true",
4480
5172
  children: connecting ? jsx(StateDot, { state: "ongoing" }) : jsx(IconRefreshOutlineRegular, { size: 14 })
4481
5173
  }), jsx("span", {
4482
- className: css$17.label,
5174
+ className: css$19.label,
4483
5175
  children: connecting ? jsxs(Fragment, { children: [connectingLabel, jsxs("span", {
4484
- className: css$17.dots,
5176
+ className: css$19.dots,
4485
5177
  "aria-hidden": "true",
4486
5178
  children: [
4487
5179
  jsx("span", { children: "." }),
4488
5180
  jsx("span", {
4489
- className: css$17.secondDot,
5181
+ className: css$19.secondDot,
4490
5182
  children: "."
4491
5183
  }),
4492
5184
  jsx("span", {
4493
- className: css$17.thirdDot,
5185
+ className: css$19.thirdDot,
4494
5186
  children: "."
4495
5187
  })
4496
5188
  ]
@@ -4807,7 +5499,7 @@ function PermissionIconFullAccessMedium(props) {
4807
5499
  */
4808
5500
  function ReferenceIconArtwork({ kind, size = 16, className, strokeWidth }) {
4809
5501
  switch (kind) {
4810
- case "session": return jsx(NewChatOutlineArtwork, {
5502
+ case "session": return jsx(ChatLinesOutlineArtwork, {
4811
5503
  size,
4812
5504
  className,
4813
5505
  strokeWidth
@@ -5393,14 +6085,23 @@ function glyph(type, size, className) {
5393
6085
  case "code": return jsxs(FileGlyph, {
5394
6086
  size,
5395
6087
  className,
5396
- markTransform: FILE_MARK_TRANSFORM,
5397
- children: [jsx("path", {
5398
- d: "M8.61 16.3601L11.76 18.3901V20.1401L7 17.0601V15.6601L11.76 12.5801V14.3301L8.61 16.3601Z",
5399
- fill: "currentColor"
5400
- }), jsx("path", {
5401
- d: "M16.1918 14.3301V12.5801L20.9518 15.6601V17.0601L16.1918 20.1401V18.3901L19.3418 16.3601L16.1918 14.3301Z",
5402
- fill: "currentColor"
5403
- })]
6088
+ children: [
6089
+ jsx("path", {
6090
+ d: "M10.0053 13.126L7.0236 16.3788C6.96052 16.4476 6.96052 16.5532 7.0236 16.622L10.0053 19.8748",
6091
+ stroke: "currentColor",
6092
+ strokeWidth: "1.35"
6093
+ }),
6094
+ jsx("path", {
6095
+ d: "M17.9941 13.126L20.9759 16.3788C21.039 16.4476 21.039 16.5532 20.9759 16.622L17.9941 19.8748",
6096
+ stroke: "currentColor",
6097
+ strokeWidth: "1.35"
6098
+ }),
6099
+ jsx("path", {
6100
+ d: "M15.2652 12.957L12.7344 20.0433",
6101
+ stroke: "currentColor",
6102
+ strokeWidth: "1.35"
6103
+ })
6104
+ ]
5404
6105
  });
5405
6106
  case "excel": return jsx(SpreadsheetGlyph, {
5406
6107
  size,
@@ -5512,7 +6213,7 @@ function FileTypeIcon(props) {
5512
6213
  type: resolvedType,
5513
6214
  size,
5514
6215
  className
5515
- }) : glyph(resolvedType, size, clsx(css$18.icon, css$18[resolvedType], className));
6216
+ }) : glyph(resolvedType, size, clsx(css$20.icon, css$20[resolvedType], className));
5516
6217
  }
5517
6218
  //#endregion
5518
6219
  //#region lib/types/SiteGlyph.js
@@ -5813,274 +6514,79 @@ function projectUserText(text, sessionLabels, slashNames = [], slashKind = "skil
5813
6514
  while (start >= 0) {
5814
6515
  ranges.push({
5815
6516
  start,
5816
- end: start + label.length,
5817
- label,
5818
- kind: "session"
5819
- });
5820
- start = text.indexOf(label, start + label.length);
5821
- }
5822
- }
5823
- const re = /(^|\s)(\/[\w-]+(?=\s|$)|@"[^"\n]+"|@[^\s]+)/gu;
5824
- let m;
5825
- while ((m = re.exec(text)) !== null) {
5826
- const tokenStart = m.index + m[1].length;
5827
- const rawLabel = m[2];
5828
- const label = rawLabel.startsWith("@\"") ? rawLabel : rawLabel.replace(TRAILING_PUNCTUATION_RE, "");
5829
- if (label.length <= 1) continue;
5830
- if (label.startsWith("/") && !slashNames.includes(label.slice(1))) continue;
5831
- ranges.push({
5832
- start: tokenStart,
5833
- end: tokenStart + label.length,
5834
- label,
5835
- kind: "plain"
5836
- });
5837
- }
5838
- const rankOf = (range) => range.kind === "session" ? 0 : 1;
5839
- ranges.sort((a, b) => a.start - b.start || rankOf(a) - rankOf(b) || b.end - a.end);
5840
- const parts = [];
5841
- let cursor = 0;
5842
- const pushPlain = (from, to) => {
5843
- parts.push(jsx("span", {
5844
- className: css$19.plainRun,
5845
- children: text.slice(from, to)
5846
- }, `t${from}`));
5847
- };
5848
- for (const range of ranges) {
5849
- if (range.start < cursor) continue;
5850
- const { start: tokenStart, end, label, kind } = range;
5851
- if (tokenStart > cursor) pushPlain(cursor, tokenStart);
5852
- const referenceKind = kind === "session" ? "session" : label.startsWith("@") ? label.replace(/^@"|"$/gu, "").endsWith("/") ? "folder" : "file" : void 0;
5853
- const displayLabel = range.display ?? (referenceKind === void 0 ? label : referenceKind === "session" ? label.slice(1) : label.slice(1).replace(/^"|"$/gu, "").split(/[\\/]/u).filter(Boolean).at(-1) ?? label.slice(1));
5854
- const contents = jsxs(Fragment, { children: [referenceKind !== void 0 && jsx(ReferenceIconRegular, {
5855
- kind: referenceKind,
5856
- size: 16,
5857
- className: css$19.refIcon
5858
- }), displayLabel] });
5859
- const open = references === void 0 ? void 0 : referenceKind === "file" ? () => {
5860
- references.openFile(label.slice(1).replace(/^"|"$/gu, ""));
5861
- } : referenceKind === void 0 && slashKind === "skill" ? () => {
5862
- references.openSkill(label.slice(1));
5863
- } : void 0;
5864
- const className = clsx(css$19.refChip, referenceKind === void 0 && css$19.slashChip);
5865
- parts.push(open === void 0 ? jsx("span", {
5866
- className,
5867
- "data-ref-chip": referenceKind ?? slashKind,
5868
- title: label,
5869
- children: contents
5870
- }, tokenStart) : jsx("button", {
5871
- type: "button",
5872
- className: clsx(className, markdownCss.fileMention),
5873
- "data-ref-chip": referenceKind ?? slashKind,
5874
- title: label,
5875
- onClick: (event) => {
5876
- if (event.detail > 1 || event.detail !== 0 && event.currentTarget.ownerDocument.getSelection()?.isCollapsed === false) return;
5877
- open();
5878
- },
5879
- children: contents
5880
- }, tokenStart));
5881
- cursor = end;
5882
- }
5883
- if (parts.length === 0) return jsx("span", {
5884
- className: css$19.plainRun,
5885
- children: text
5886
- });
5887
- if (cursor < text.length) pushPlain(cursor, text.length);
5888
- return jsx(Fragment, { children: parts });
5889
- }
5890
- //#endregion
5891
- //#region lib/types/Tooltip.js
5892
- /** Anchor-preserving tooltips with optional body portals for clipping containers. */
5893
- /**
5894
- * Suppression channel from a tooltip to the tooltips above it: a tooltip hands
5895
- * this setter to its own descendants, and a visible descendant bubble calls it
5896
- * so the ancestor withdraws its bubble for as long as the descendant shows one.
5897
- */
5898
- const TooltipSuppression = createContext(null);
5899
- let pointerModality = false;
5900
- if (typeof window !== "undefined") {
5901
- window.addEventListener("pointerdown", () => {
5902
- pointerModality = true;
5903
- }, true);
5904
- window.addEventListener("keydown", () => {
5905
- pointerModality = false;
5906
- }, true);
5907
- }
5908
- /**
5909
- * Attach a hover/focus tooltip to an anchor element.
5910
- * @param props.label - bubble text, or a resolver evaluated only while the bubble is visible.
5911
- * @param props.side - placement relative to the anchor (default 'right').
5912
- * @param props.align - horizontal anchor-edge alignment for 'bottom'/'top' bubbles: 'end' pins
5913
- * the bubble's right edge to the anchor's (for anchors beside other hover surfaces the centered
5914
- * bubble would overlap); default 'center'. Ignored for side 'right'.
5915
- * @param props.portal - render the bubble under document.body to escape containing blocks and clipping ancestors.
5916
- * @param props.delayMs - hover delay in milliseconds; keyboard focus remains immediate.
5917
- * @param props.disabled - suppress the bubble while true; the anchor renders identically so
5918
- * toggling never remounts it (which would cut its CSS transitions).
5919
- * @param props.maxWidth - bubble width cap in pixels, for labels long enough that the default
5920
- * half-viewport cap would render a slab wider than the surface the anchor sits on.
5921
- * @param props.children - a single anchor element; its own ref (callback or object) is forwarded alongside the tooltip's.
5922
- * @returns the cloned anchor plus a fixed-position bubble, optionally portaled to the body; clicking the
5923
- * anchor dismisses the bubble until the next trigger, and focus arriving after a pointer
5924
- * interaction (a closing menu refocusing its trigger) never raises it.
5925
- */
5926
- function Tooltip({ label, side = "right", align = "center", delayMs = 0, disabled = false, portal = false, maxWidth, children }) {
5927
- const anchor = useRef(null);
5928
- const childRef = children.ref;
5929
- const mergedRef = useCallback((el) => {
5930
- anchor.current = el;
5931
- if (typeof childRef === "function") childRef(el);
5932
- else if (childRef != null) childRef.current = el;
5933
- }, [childRef]);
5934
- const [pos, setPos] = useState(null);
5935
- const [placement, setPlacement] = useState(side);
5936
- const bubble = useRef(null);
5937
- const resolvedLabel = pos === null ? null : typeof label === "function" ? label() : label;
5938
- const y = pos === null ? 0 : placement === "right" ? pos.top + (pos.bottom - pos.top) / 2 : placement === "top" ? pos.top - 8 : pos.bottom + 8;
5939
- const EDGE_MARGIN = 12;
5940
- useLayoutEffect(() => {
5941
- if (pos === null) return;
5942
- const fit = () => {
5943
- const el = bubble.current;
5944
- /* v8 ignore next -- pos is set only while the bubble is mounted. */
5945
- if (el === null) return;
5946
- el.style.left = `${pos.x}px`;
5947
- const r = el.getBoundingClientRect();
5948
- let dx = 0;
5949
- if (r.right > window.innerWidth - EDGE_MARGIN) dx = window.innerWidth - EDGE_MARGIN - r.right;
5950
- if (r.left + dx < EDGE_MARGIN) dx = EDGE_MARGIN - r.left;
5951
- el.style.left = `${pos.x + dx}px`;
5952
- if (side === "right") return;
5953
- const fitsBelow = pos.bottom + 8 + r.height <= window.innerHeight - EDGE_MARGIN;
5954
- const fitsAbove = pos.top - 8 - r.height >= EDGE_MARGIN;
5955
- if (placement === "bottom" && !fitsBelow && fitsAbove) setPlacement("top");
5956
- if (placement === "top" && !fitsAbove && fitsBelow) setPlacement("bottom");
5957
- };
5958
- fit();
5959
- window.addEventListener("resize", fit);
5960
- return () => {
5961
- window.removeEventListener("resize", fit);
5962
- };
5963
- }, [
5964
- placement,
5965
- pos,
5966
- resolvedLabel,
5967
- side
5968
- ]);
5969
- const showTimer = useRef(null);
5970
- const triggers = useRef({
5971
- hover: false,
5972
- focus: false
5973
- });
5974
- const suppressAncestors = useContext(TooltipSuppression);
5975
- const [suppressed, setSuppressed] = useState(false);
5976
- const announce = useCallback((active) => {
5977
- suppressAncestors?.(active);
5978
- }, [suppressAncestors]);
5979
- const visible = pos !== null && !disabled;
5980
- useEffect(() => {
5981
- announce(visible);
5982
- return () => {
5983
- announce(false);
5984
- };
5985
- }, [announce, visible]);
5986
- const cancelShow = useCallback(() => {
5987
- if (showTimer.current === null) return;
5988
- clearTimeout(showTimer.current);
5989
- showTimer.current = null;
5990
- }, []);
5991
- useEffect(() => {
5992
- if (disabled) {
5993
- cancelShow();
5994
- triggers.current = {
5995
- hover: false,
5996
- focus: false
5997
- };
5998
- setPos(null);
5999
- }
6000
- return cancelShow;
6001
- }, [cancelShow, disabled]);
6002
- const show = () => {
6003
- if (disabled) return;
6004
- const el = anchor.current;
6005
- /* v8 ignore next -- the ref is attached by event time: events fire on the cloned anchor. */
6006
- if (el === null) return;
6007
- const r = el.getBoundingClientRect();
6008
- setPlacement(side);
6009
- setPos({
6010
- x: side === "right" ? r.right + 10 : align === "end" ? r.right : r.left + r.width / 2,
6011
- top: r.top,
6012
- bottom: r.bottom
6013
- });
6014
- announce(true);
6015
- };
6016
- const showAfterHoverDelay = () => {
6017
- cancelShow();
6018
- if (delayMs <= 0) {
6019
- show();
6020
- return;
6021
- }
6022
- showTimer.current = setTimeout(() => {
6023
- showTimer.current = null;
6024
- show();
6025
- }, delayMs);
6026
- };
6027
- const withdraw = () => {
6028
- setPos(null);
6029
- announce(false);
6030
- };
6031
- const hide = () => {
6032
- cancelShow();
6033
- if (!triggers.current.hover && !triggers.current.focus) withdraw();
6034
- };
6035
- const content = visible && !suppressed && jsx("span", {
6036
- ref: bubble,
6037
- className: css$20.bubble,
6038
- "data-side": placement,
6039
- "data-portal": portal || void 0,
6040
- "data-align": align,
6041
- style: {
6042
- left: pos.x,
6043
- top: y,
6044
- ...maxWidth === void 0 ? {} : { maxWidth }
6045
- },
6046
- role: "tooltip",
6047
- children: resolvedLabel
6048
- });
6049
- return jsxs(TooltipSuppression.Provider, {
6050
- value: setSuppressed,
6051
- children: [cloneElement(children, {
6052
- ref: mergedRef,
6053
- onMouseEnter: (e) => {
6054
- children.props.onMouseEnter?.(e);
6055
- triggers.current.hover = true;
6056
- showAfterHoverDelay();
6057
- },
6058
- onMouseLeave: (e) => {
6059
- children.props.onMouseLeave?.(e);
6060
- triggers.current.hover = false;
6061
- cancelShow();
6062
- withdraw();
6063
- },
6064
- onClick: (e) => {
6065
- children.props.onClick?.(e);
6066
- triggers.current.focus = false;
6067
- cancelShow();
6068
- withdraw();
6069
- },
6070
- onFocus: (e) => {
6071
- children.props.onFocus?.(e);
6072
- if (pointerModality) return;
6073
- triggers.current.focus = true;
6074
- cancelShow();
6075
- show();
6517
+ end: start + label.length,
6518
+ label,
6519
+ kind: "session"
6520
+ });
6521
+ start = text.indexOf(label, start + label.length);
6522
+ }
6523
+ }
6524
+ const re = /(^|\s)(\/[\w-]+(?=\s|$)|@"[^"\n]+"|@[^\s]+)/gu;
6525
+ let m;
6526
+ while ((m = re.exec(text)) !== null) {
6527
+ const tokenStart = m.index + m[1].length;
6528
+ const rawLabel = m[2];
6529
+ const label = rawLabel.startsWith("@\"") ? rawLabel : rawLabel.replace(TRAILING_PUNCTUATION_RE, "");
6530
+ if (label.length <= 1) continue;
6531
+ if (label.startsWith("/") && !slashNames.includes(label.slice(1))) continue;
6532
+ ranges.push({
6533
+ start: tokenStart,
6534
+ end: tokenStart + label.length,
6535
+ label,
6536
+ kind: "plain"
6537
+ });
6538
+ }
6539
+ const rankOf = (range) => range.kind === "session" ? 0 : 1;
6540
+ ranges.sort((a, b) => a.start - b.start || rankOf(a) - rankOf(b) || b.end - a.end);
6541
+ const parts = [];
6542
+ let cursor = 0;
6543
+ const pushPlain = (from, to) => {
6544
+ parts.push(jsx("span", {
6545
+ className: css$21.plainRun,
6546
+ children: text.slice(from, to)
6547
+ }, `t${from}`));
6548
+ };
6549
+ for (const range of ranges) {
6550
+ if (range.start < cursor) continue;
6551
+ const { start: tokenStart, end, label, kind } = range;
6552
+ if (tokenStart > cursor) pushPlain(cursor, tokenStart);
6553
+ const referenceKind = kind === "session" ? "session" : label.startsWith("@") ? label.replace(/^@"|"$/gu, "").endsWith("/") ? "folder" : "file" : void 0;
6554
+ const displayLabel = range.display ?? (referenceKind === void 0 ? label : referenceKind === "session" ? label.slice(1) : label.slice(1).replace(/^"|"$/gu, "").split(/[\\/]/u).filter(Boolean).at(-1) ?? label.slice(1));
6555
+ const contents = jsxs(Fragment, { children: [referenceKind !== void 0 && jsx(ReferenceIconRegular, {
6556
+ kind: referenceKind,
6557
+ size: 16,
6558
+ className: css$21.refIcon
6559
+ }), displayLabel] });
6560
+ const open = references === void 0 ? void 0 : referenceKind === "file" ? () => {
6561
+ references.openFile(label.slice(1).replace(/^"|"$/gu, ""));
6562
+ } : referenceKind === void 0 && slashKind === "skill" ? () => {
6563
+ references.openSkill(label.slice(1));
6564
+ } : void 0;
6565
+ const className = clsx(css$21.refChip, referenceKind === void 0 && css$21.slashChip);
6566
+ parts.push(open === void 0 ? jsx("span", {
6567
+ className,
6568
+ "data-ref-chip": referenceKind ?? slashKind,
6569
+ title: label,
6570
+ children: contents
6571
+ }, tokenStart) : jsx("button", {
6572
+ type: "button",
6573
+ className: clsx(className, markdownCss.fileMention),
6574
+ "data-ref-chip": referenceKind ?? slashKind,
6575
+ title: label,
6576
+ onClick: (event) => {
6577
+ if (event.detail > 1 || event.detail !== 0 && event.currentTarget.ownerDocument.getSelection()?.isCollapsed === false) return;
6578
+ open();
6076
6579
  },
6077
- onBlur: (e) => {
6078
- children.props.onBlur?.(e);
6079
- triggers.current.focus = false;
6080
- hide();
6081
- }
6082
- }), portal ? content !== false && createPortal(content, document.body) : content]
6580
+ children: contents
6581
+ }, tokenStart));
6582
+ cursor = end;
6583
+ }
6584
+ if (parts.length === 0) return jsx("span", {
6585
+ className: css$21.plainRun,
6586
+ children: text
6083
6587
  });
6588
+ if (cursor < text.length) pushPlain(cursor, text.length);
6589
+ return jsx(Fragment, { children: parts });
6084
6590
  }
6085
6591
  //#endregion
6086
6592
  //#region lib/types/Toast.js
@@ -6149,25 +6655,25 @@ function Toast({ text, icon, tone, anchor, holdMs = HOLD_MS, actions, onDone })
6149
6655
  };
6150
6656
  }, [anchor]);
6151
6657
  return createPortal(jsxs("div", {
6152
- className: css$21.toast,
6658
+ className: css$22.toast,
6153
6659
  role: "alert",
6154
6660
  style: {
6155
6661
  ...left === null ? {} : { left },
6156
6662
  "--dsh-toast-hold": `${String(holdMs)}ms`
6157
6663
  },
6158
6664
  children: [tone === "success" ? jsx("span", {
6159
- className: `${css$21.icon} ${css$21.success}`,
6665
+ className: `${css$22.icon} ${css$22.success}`,
6160
6666
  "aria-hidden": true,
6161
6667
  children: jsx(IconCheckCircleOutlineRegular, {})
6162
6668
  }) : icon !== void 0 && jsx("span", {
6163
- className: css$21.icon,
6669
+ className: css$22.icon,
6164
6670
  "aria-hidden": true,
6165
6671
  children: icon
6166
6672
  }), jsxs("span", {
6167
- className: css$21.text,
6673
+ className: css$22.text,
6168
6674
  children: [text, actions?.map((action) => jsxs(Fragment$1, { children: [action.prefix, jsx("button", {
6169
6675
  type: "button",
6170
- className: css$21.action,
6676
+ className: css$22.action,
6171
6677
  onClick: action.onClick,
6172
6678
  children: action.label
6173
6679
  })] }, action.label))]
@@ -6217,29 +6723,29 @@ function SettingsForm(props) {
6217
6723
  discard.current();
6218
6724
  }, []);
6219
6725
  if (!state.available) return jsx("p", {
6220
- className: css$22.unavailable,
6726
+ className: css$23.unavailable,
6221
6727
  role: "status",
6222
6728
  children: labels.unavailable
6223
6729
  });
6224
6730
  const blocked = !state.dirty || state.invalid || state.saving;
6225
6731
  return jsxs("div", {
6226
- className: css$22.form,
6732
+ className: css$23.form,
6227
6733
  children: [
6228
6734
  !state.writable ? jsx("p", {
6229
- className: css$22.readOnly,
6735
+ className: css$23.readOnly,
6230
6736
  role: "status",
6231
6737
  children: labels.readOnly
6232
6738
  }) : null,
6233
6739
  props.children,
6234
6740
  jsxs("div", {
6235
- className: css$22.footer,
6741
+ className: css$23.footer,
6236
6742
  children: [state.failed ? jsx("p", {
6237
- className: css$22.failed,
6743
+ className: css$23.failed,
6238
6744
  role: "status",
6239
6745
  children: labels.saveFailed
6240
6746
  }) : null, jsx("button", {
6241
6747
  type: "button",
6242
- className: css$22.save,
6748
+ className: css$23.save,
6243
6749
  disabled: blocked,
6244
6750
  onClick: props.onSave,
6245
6751
  children: state.saving ? labels.saving : labels.save
@@ -6271,19 +6777,19 @@ function SettingsValueField(props) {
6271
6777
  const hasMessage = props.invalid || Boolean(props.hint);
6272
6778
  const description = [hasMessage ? messageId : "", helpOpen ? helpId : ""].filter(Boolean).join(" ");
6273
6779
  return jsxs("div", {
6274
- className: css$23.field,
6780
+ className: css$24.field,
6275
6781
  children: [
6276
6782
  jsxs("div", {
6277
- className: css$23.head,
6783
+ className: css$24.head,
6278
6784
  children: [jsxs("div", {
6279
- className: css$23.labelGroup,
6785
+ className: css$24.labelGroup,
6280
6786
  children: [jsx("label", {
6281
- className: css$23.label,
6787
+ className: css$24.label,
6282
6788
  htmlFor: props.id,
6283
6789
  children: props.label
6284
6790
  }), props.help !== void 0 ? jsx("button", {
6285
6791
  type: "button",
6286
- className: css$23.helpButton,
6792
+ className: css$24.helpButton,
6287
6793
  "aria-label": props.help.label,
6288
6794
  "aria-expanded": helpOpen,
6289
6795
  "aria-controls": helpId,
@@ -6293,13 +6799,13 @@ function SettingsValueField(props) {
6293
6799
  children: jsx(IconInfoOutlineRegular, { size: 12 })
6294
6800
  }) : null]
6295
6801
  }), props.overridden ? jsxs("span", {
6296
- className: css$23.badges,
6802
+ className: css$24.badges,
6297
6803
  children: [jsx(Tag, {
6298
6804
  tone: "neutral",
6299
6805
  children: props.overriddenLabel
6300
6806
  }), jsx("button", {
6301
6807
  type: "button",
6302
- className: css$23.reset,
6808
+ className: css$24.reset,
6303
6809
  disabled: props.disabled,
6304
6810
  onClick: props.onReset,
6305
6811
  children: props.resetLabel
@@ -6308,7 +6814,7 @@ function SettingsValueField(props) {
6308
6814
  }),
6309
6815
  jsx("input", {
6310
6816
  id: props.id,
6311
- className: css$23.input,
6817
+ className: css$24.input,
6312
6818
  type: "text",
6313
6819
  ...props.numeric === true ? { inputMode: "numeric" } : {},
6314
6820
  ...props.invalid ? { "aria-invalid": true } : {},
@@ -6322,12 +6828,12 @@ function SettingsValueField(props) {
6322
6828
  }),
6323
6829
  hasMessage ? jsx("p", {
6324
6830
  id: messageId,
6325
- className: props.invalid ? css$23.invalid : css$23.hint,
6831
+ className: props.invalid ? css$24.invalid : css$24.hint,
6326
6832
  children: props.invalid ? props.invalidLabel : props.hint
6327
6833
  }) : null,
6328
6834
  props.help !== void 0 && helpOpen ? jsx("div", {
6329
6835
  id: helpId,
6330
- className: css$23.help,
6836
+ className: css$24.help,
6331
6837
  role: "region",
6332
6838
  "aria-label": props.help.label,
6333
6839
  children: props.help.content
@@ -6339,21 +6845,22 @@ function SettingsValueField(props) {
6339
6845
  * A write-only credential control. The value never rides a response, so the
6340
6846
  * control reports only whether one is configured and starts blank; a blank
6341
6847
  * draft writes nothing, which keeps the stored key rather than clearing it.
6848
+ * The control asks browsers not to autofill saved login passwords.
6342
6849
  * @param props - the field's copy, its staged text, and the configured state.
6343
6850
  * @returns the labelled control.
6344
6851
  */
6345
6852
  function SettingsSecretField(props) {
6346
6853
  return jsxs("div", {
6347
- className: css$23.field,
6854
+ className: css$24.field,
6348
6855
  children: [
6349
6856
  jsxs("div", {
6350
- className: css$23.head,
6857
+ className: css$24.head,
6351
6858
  children: [jsx("label", {
6352
- className: css$23.label,
6859
+ className: css$24.label,
6353
6860
  htmlFor: props.id,
6354
6861
  children: props.label
6355
6862
  }), jsx("span", {
6356
- className: css$23.badges,
6863
+ className: css$24.badges,
6357
6864
  children: jsx(Tag, {
6358
6865
  tone: props.configured ? "neutral" : "quiet",
6359
6866
  children: props.stateLabel
@@ -6362,9 +6869,9 @@ function SettingsSecretField(props) {
6362
6869
  }),
6363
6870
  jsx("input", {
6364
6871
  id: props.id,
6365
- className: css$23.input,
6872
+ className: css$24.input,
6366
6873
  type: "password",
6367
- autoComplete: "off",
6874
+ autoComplete: "new-password",
6368
6875
  value: props.text,
6369
6876
  disabled: props.disabled,
6370
6877
  onChange: (event) => {
@@ -6372,7 +6879,7 @@ function SettingsSecretField(props) {
6372
6879
  }
6373
6880
  }),
6374
6881
  jsx("p", {
6375
- className: css$23.hint,
6882
+ className: css$24.hint,
6376
6883
  children: props.hint
6377
6884
  })
6378
6885
  ]
@@ -6678,16 +7185,16 @@ var SettingsFormModel = class {
6678
7185
  * dark blocks), never here — the repo's tokens-only styling rule.
6679
7186
  *
6680
7187
  * Only the three markdown-fence and `run_code` grammars (TypeScript, shell,
6681
- * JSON) load into the singleton at boot — the set every session renders. The
6682
- * read card's wider extension set (the file-extension language hints the read
6683
- * tool's `langFromPath` emits — `packages/fs/tool-fs`: python, rust, yaml,
6684
- * markup, …) is imported lazily and registered the first time such a language
6685
- * is requested, so a session that never opens a read card in one of those
6686
- * languages pays neither the ~1.6 MB of grammar modules nor their synchronous
6687
- * init. The first render of a lazy language falls back to plain text while its
6688
- * grammar loads, then {@link onGrammarLoaded} notifies subscribers to re-render
6689
- * with highlighting. An unknown or absent language falls back to plain text (no
6690
- * highlighting, still monospace) — never an error.
7188
+ * JSON) load into the singleton at boot — the set every session renders. Every
7189
+ * other language in the shared extension table
7190
+ * (`@deepseek-ai/dsh-util-code-language`: python, rust, yaml, markup, …) is
7191
+ * imported lazily and registered the first time such a language is requested,
7192
+ * so a session that never opens a code surface in one of those languages pays
7193
+ * neither the grammar modules nor their synchronous init. The first render of a
7194
+ * lazy language falls back to plain text while its grammar loads, then
7195
+ * {@link onGrammarLoaded} notifies subscribers to re-render with highlighting.
7196
+ * An unknown or absent language falls back to plain text (no highlighting, still
7197
+ * monospace) — never an error.
6691
7198
  */
6692
7199
  /**
6693
7200
  * Grammars the singleton loads at boot; each entry's own `name` is the id
@@ -6695,8 +7202,8 @@ var SettingsFormModel = class {
6695
7202
  * resolve to the TypeScript grammar rather than a separate one: it tokenizes
6696
7203
  * plain TS/JS exactly, and JSX/TSX approximately (shiki's TS grammar is not the
6697
7204
  * dedicated TSX grammar, so JSX elements tokenize imperfectly) — an accepted
6698
- * trade to keep the boot set to one JS-family grammar. The read card's wider
6699
- * set loads lazily through {@link LAZY_GRAMMARS}.
7205
+ * trade to keep the boot set to one JS-family grammar. Every other language in
7206
+ * the shared extension table loads lazily through {@link LAZY_GRAMMARS}.
6700
7207
  */
6701
7208
  const LANGS = [
6702
7209
  langTs,
@@ -6704,8 +7211,8 @@ const LANGS = [
6704
7211
  langJson
6705
7212
  ];
6706
7213
  /**
6707
- * The read card's extension grammars, each behind a dynamic import so its
6708
- * module stays out of the boot chunk until a read of that language renders.
7214
+ * The non-boot extension grammars, each behind a dynamic import so its module
7215
+ * stays out of the boot chunk until a code surface renders that language.
6709
7216
  * Keyed by the grammar id (`LanguageRegistration.name`) the aliases resolve to.
6710
7217
  * `@shikijs/langs`' default export is a `LanguageRegistration[]`; the loader
6711
7218
  * hands the whole array to `loadLanguageSync`, which registers each entry
@@ -6735,16 +7242,51 @@ const LAZY_GRAMMARS = new Map([
6735
7242
  ["less", () => import("@shikijs/langs/less")],
6736
7243
  ["sql", () => import("@shikijs/langs/sql")],
6737
7244
  ["xml", () => import("@shikijs/langs/xml")],
6738
- ["lua", () => import("@shikijs/langs/lua")]
7245
+ ["lua", () => import("@shikijs/langs/lua")],
7246
+ ["bat", () => import("@shikijs/langs/bat")],
7247
+ ["powershell", () => import("@shikijs/langs/powershell")],
7248
+ ["fish", () => import("@shikijs/langs/fish")],
7249
+ ["dotenv", () => import("@shikijs/langs/dotenv")],
7250
+ ["log", () => import("@shikijs/langs/log")],
7251
+ ["csv", () => import("@shikijs/langs/csv")],
7252
+ ["diff", () => import("@shikijs/langs/diff")],
7253
+ ["http", () => import("@shikijs/langs/http")],
7254
+ ["rst", () => import("@shikijs/langs/rst")],
7255
+ ["latex", () => import("@shikijs/langs/latex")],
7256
+ ["bibtex", () => import("@shikijs/langs/bibtex")],
7257
+ ["asciidoc", () => import("@shikijs/langs/asciidoc")],
7258
+ ["r", () => import("@shikijs/langs/r")],
7259
+ ["julia", () => import("@shikijs/langs/julia")],
7260
+ ["dart", () => import("@shikijs/langs/dart")],
7261
+ ["scala", () => import("@shikijs/langs/scala")],
7262
+ ["clojure", () => import("@shikijs/langs/clojure")],
7263
+ ["erlang", () => import("@shikijs/langs/erlang")],
7264
+ ["elixir", () => import("@shikijs/langs/elixir")],
7265
+ ["haskell", () => import("@shikijs/langs/haskell")],
7266
+ ["fsharp", () => import("@shikijs/langs/fsharp")],
7267
+ ["vb", () => import("@shikijs/langs/vb")],
7268
+ ["perl", () => import("@shikijs/langs/perl")],
7269
+ ["verilog", () => import("@shikijs/langs/verilog")],
7270
+ ["system-verilog", () => import("@shikijs/langs/system-verilog")],
7271
+ ["graphql", () => import("@shikijs/langs/graphql")],
7272
+ ["proto", () => import("@shikijs/langs/proto")],
7273
+ ["hcl", () => import("@shikijs/langs/hcl")],
7274
+ ["nix", () => import("@shikijs/langs/nix")],
7275
+ ["vue", () => import("@shikijs/langs/vue")],
7276
+ ["svelte", () => import("@shikijs/langs/svelte")],
7277
+ ["make", () => import("@shikijs/langs/make")],
7278
+ ["cmake", () => import("@shikijs/langs/cmake")],
7279
+ ["groovy", () => import("@shikijs/langs/groovy")]
6739
7280
  ]);
6740
7281
  /**
6741
7282
  * Language ids (and aliases) the highlighter accepts; everything else renders
6742
7283
  * plain. A Map, not an object: fence info strings are assistant-authored, so
6743
7284
  * a label like `constructor` or `__proto__` must miss instead of resolving an
6744
7285
  * inherited property and crashing the renderer inside shiki. Keys cover both
6745
- * the markdown-fence aliases `CodeBlock` uses and the file-extension hint ids
6746
- * the read tool's `langFromPath` emits, so both callers resolve the same
6747
- * grammars. The JS family maps to the TypeScript grammar (see {@link LANGS} for
7286
+ * the markdown-fence aliases `CodeBlock` uses, the file-extension language ids
7287
+ * `@deepseek-ai/dsh-util-code-language` resolves, and the short ids
7288
+ * `readLangHintForPath` persists, so every caller resolves the same grammars.
7289
+ * A new short name in the shared table must be aliased here too. The JS family maps to the TypeScript grammar (see {@link LANGS} for
6748
7290
  * the JSX/TSX approximation). A value not in {@link LANGS} names a
6749
7291
  * {@link LAZY_GRAMMARS} entry loaded on first use.
6750
7292
  */
@@ -6790,15 +7332,89 @@ const LANG_ALIASES = new Map([
6790
7332
  ["less", "less"],
6791
7333
  ["sql", "sql"],
6792
7334
  ["xml", "xml"],
6793
- ["lua", "lua"]
7335
+ ["lua", "lua"],
7336
+ ["bat", "bat"],
7337
+ ["batch", "bat"],
7338
+ ["powershell", "powershell"],
7339
+ ["ps1", "powershell"],
7340
+ ["ps", "powershell"],
7341
+ ["fish", "fish"],
7342
+ ["properties", "ini"],
7343
+ ["dotenv", "dotenv"],
7344
+ ["env", "dotenv"],
7345
+ ["log", "log"],
7346
+ ["csv", "csv"],
7347
+ ["diff", "diff"],
7348
+ ["patch", "diff"],
7349
+ ["http", "http"],
7350
+ ["rst", "rst"],
7351
+ ["latex", "latex"],
7352
+ ["tex", "latex"],
7353
+ ["bibtex", "bibtex"],
7354
+ ["bib", "bibtex"],
7355
+ ["asciidoc", "asciidoc"],
7356
+ ["adoc", "asciidoc"],
7357
+ ["r", "r"],
7358
+ ["julia", "julia"],
7359
+ ["jl", "julia"],
7360
+ ["dart", "dart"],
7361
+ ["scala", "scala"],
7362
+ ["clojure", "clojure"],
7363
+ ["clj", "clojure"],
7364
+ ["erlang", "erlang"],
7365
+ ["erl", "erlang"],
7366
+ ["elixir", "elixir"],
7367
+ ["ex", "elixir"],
7368
+ ["exs", "elixir"],
7369
+ ["haskell", "haskell"],
7370
+ ["hs", "haskell"],
7371
+ ["fsharp", "fsharp"],
7372
+ ["fs", "fsharp"],
7373
+ ["fsi", "fsharp"],
7374
+ ["fsx", "fsharp"],
7375
+ ["vb", "vb"],
7376
+ ["vbnet", "vb"],
7377
+ ["perl", "perl"],
7378
+ ["pl", "perl"],
7379
+ ["pm", "perl"],
7380
+ ["verilog", "verilog"],
7381
+ ["v", "verilog"],
7382
+ ["system-verilog", "system-verilog"],
7383
+ ["systemverilog", "system-verilog"],
7384
+ ["sv", "system-verilog"],
7385
+ ["svh", "system-verilog"],
7386
+ ["graphql", "graphql"],
7387
+ ["gql", "graphql"],
7388
+ ["proto", "proto"],
7389
+ ["protobuf", "proto"],
7390
+ ["hcl", "hcl"],
7391
+ ["tf", "hcl"],
7392
+ ["tfvars", "hcl"],
7393
+ ["nix", "nix"],
7394
+ ["vue", "vue"],
7395
+ ["svelte", "svelte"],
7396
+ ["make", "make"],
7397
+ ["makefile", "make"],
7398
+ ["mk", "make"],
7399
+ ["cmake", "cmake"],
7400
+ ["groovy", "groovy"],
7401
+ ["gradle", "groovy"]
6794
7402
  ]);
6795
7403
  /**
7404
+ * Resolve a language hint to the grammar id {@link LANG_ALIASES} selects.
7405
+ * @param lang - Language hint from a code surface: a canonical grammar id or the read card's persisted short id.
7406
+ * @returns The resolved grammar id, or `undefined` when the table aliases no grammar.
7407
+ */
7408
+ function grammarForHint(lang) {
7409
+ return lang === void 0 ? void 0 : LANG_ALIASES.get(lang.toLowerCase());
7410
+ }
7411
+ /**
6796
7412
  * Whether a language hint can use the shared syntax highlighter.
6797
7413
  * @param lang - Language hint from a code surface.
6798
7414
  * @returns Whether the hint resolves to a supported grammar.
6799
7415
  */
6800
7416
  function supportsHighlighting(lang) {
6801
- return lang !== void 0 && LANG_ALIASES.has(lang.toLowerCase());
7417
+ return grammarForHint(lang) !== void 0;
6802
7418
  }
6803
7419
  /** All token colors resolve through `--shiki-*` custom properties (theme package sheets). */
6804
7420
  const cssVariablesTheme = createCssVariablesTheme({
@@ -6919,7 +7535,7 @@ setTimeout(() => {
6919
7535
  * @returns the highlighted HTML, or `undefined` for unknown or not-yet-loaded languages.
6920
7536
  */
6921
7537
  function highlightToHtml(code, lang) {
6922
- const resolved = lang === void 0 ? void 0 : LANG_ALIASES.get(lang.toLowerCase());
7538
+ const resolved = grammarForHint(lang);
6923
7539
  if (resolved === void 0) return void 0;
6924
7540
  if (!ensureGrammar(resolved)) return void 0;
6925
7541
  return highlighter().codeToHtml(code, {
@@ -7031,7 +7647,7 @@ var StreamingHighlightSession = class {
7031
7647
  this.lastCode = code;
7032
7648
  this.lastLang = lang;
7033
7649
  this.lastResult = void 0;
7034
- const resolved = lang === void 0 ? void 0 : LANG_ALIASES.get(lang.toLowerCase());
7650
+ const resolved = grammarForHint(lang);
7035
7651
  if (resolved === void 0 || !ensureGrammar(resolved)) {
7036
7652
  this.reset(void 0);
7037
7653
  return;
@@ -7091,7 +7707,7 @@ var StreamingHighlightSession = class {
7091
7707
  * @returns one entry per source line (each an array of runs), or `undefined` for unknown or not-yet-loaded languages.
7092
7708
  */
7093
7709
  function highlightLines(code, lang) {
7094
- const resolved = lang === void 0 ? void 0 : LANG_ALIASES.get(lang.toLowerCase());
7710
+ const resolved = grammarForHint(lang);
7095
7711
  if (resolved === void 0) return void 0;
7096
7712
  if (!ensureGrammar(resolved)) return void 0;
7097
7713
  const { tokens } = highlighter().codeToTokens(code, {
@@ -7107,89 +7723,6 @@ function highlightLines(code, lang) {
7107
7723
  //#endregion
7108
7724
  //#region lib/types/code-highlighting.js
7109
7725
  /** Shared filename-to-grammar selection and lazy line highlighter for source views. */
7110
- const LANGUAGES = new Map(Object.entries({
7111
- typescript: [
7112
- "ts",
7113
- "tsx",
7114
- "mts",
7115
- "cts"
7116
- ],
7117
- javascript: [
7118
- "js",
7119
- "jsx",
7120
- "mjs",
7121
- "cjs"
7122
- ],
7123
- shellscript: [
7124
- "sh",
7125
- "bash",
7126
- "zsh"
7127
- ],
7128
- json: [
7129
- "json",
7130
- "jsonc",
7131
- "jsonl",
7132
- "ndjson"
7133
- ],
7134
- python: [
7135
- "py",
7136
- "pyw",
7137
- "pyi"
7138
- ],
7139
- ruby: [
7140
- "rb",
7141
- "rake",
7142
- "gemspec"
7143
- ],
7144
- go: ["go"],
7145
- rust: ["rs"],
7146
- java: ["java"],
7147
- c: ["c", "h"],
7148
- cpp: [
7149
- "cc",
7150
- "cpp",
7151
- "cxx",
7152
- "hh",
7153
- "hpp",
7154
- "hxx"
7155
- ],
7156
- csharp: ["cs"],
7157
- kotlin: ["kt", "kts"],
7158
- swift: ["swift"],
7159
- php: ["php"],
7160
- yaml: ["yaml", "yml"],
7161
- toml: ["toml"],
7162
- ini: ["ini"],
7163
- markdown: ["md", "markdown"],
7164
- mdx: ["mdx"],
7165
- html: [
7166
- "html",
7167
- "htm",
7168
- "xhtml"
7169
- ],
7170
- css: ["css"],
7171
- scss: ["scss"],
7172
- less: ["less"],
7173
- sql: ["sql"],
7174
- xml: [
7175
- "xml",
7176
- "xsd",
7177
- "xsl",
7178
- "xslt"
7179
- ],
7180
- lua: ["lua"]
7181
- }).flatMap(([language, extensions]) => extensions.map((extension) => [extension, language])));
7182
- /** Recognized filename suffixes whose source can use the shared syntax highlighter. */
7183
- const CODE_HIGHLIGHT_EXTENSIONS = [...LANGUAGES.keys()];
7184
- /**
7185
- * Select the shared syntax highlighter's grammar from a filename.
7186
- * @param path - decoded source filename or path.
7187
- * @returns a supported grammar hint, or `undefined` for other suffixes.
7188
- */
7189
- function languageForPath(path) {
7190
- const extension = /\.([^./]+)$/u.exec(path.replaceAll("\\", "/"))?.[1]?.toLowerCase();
7191
- return extension === void 0 ? void 0 : LANGUAGES.get(extension);
7192
- }
7193
7726
  /**
7194
7727
  * Bind the shared lazy highlighter to one language and refresh after its grammar loads.
7195
7728
  * @param language - grammar hint selected from the source filename.
@@ -7412,7 +7945,7 @@ function JsonCopyAction({ store, target, persistent, labels, onCopy, onClose })
7412
7945
  const object = typeof target.value === "object" && target.value !== null;
7413
7946
  const copyTitle = state === "copied" ? labels.copied : state === "failed" ? labels.copyFailed : object ? labels.copyPrettyJson : labels.copyValue;
7414
7947
  return jsx("span", {
7415
- className: css$24.copySlot,
7948
+ className: css$25.copySlot,
7416
7949
  children: (persistent || snapshot !== void 0) && jsx(Menu, {
7417
7950
  open: snapshot?.menuOpen === true,
7418
7951
  compact: true,
@@ -7421,7 +7954,7 @@ function JsonCopyAction({ store, target, persistent, labels, onCopy, onClose })
7421
7954
  anchor: jsx("button", {
7422
7955
  ref: buttonRef,
7423
7956
  type: "button",
7424
- className: css$24.actionButton,
7957
+ className: css$25.actionButton,
7425
7958
  "data-json-copy-button": true,
7426
7959
  "data-state": state,
7427
7960
  "aria-label": copyTitle,
@@ -7460,35 +7993,35 @@ function bracketOf(value) {
7460
7993
  }
7461
7994
  function previewPrimitive(value) {
7462
7995
  if (value === null) return jsx("span", {
7463
- className: css$24.keywordValue,
7996
+ className: css$25.keywordValue,
7464
7997
  children: "null"
7465
7998
  });
7466
7999
  if (typeof value === "string") return jsx("span", {
7467
- className: css$24.stringValue,
8000
+ className: css$25.stringValue,
7468
8001
  children: JSON.stringify(value)
7469
8002
  });
7470
8003
  if (typeof value === "number") return jsx("span", {
7471
- className: css$24.numberValue,
8004
+ className: css$25.numberValue,
7472
8005
  children: String(value)
7473
8006
  });
7474
8007
  if (typeof value === "boolean") return jsx("span", {
7475
- className: css$24.keywordValue,
8008
+ className: css$25.keywordValue,
7476
8009
  children: String(value)
7477
8010
  });
7478
8011
  if (typeof value === "bigint") return jsx("span", {
7479
- className: css$24.otherValue,
8012
+ className: css$25.otherValue,
7480
8013
  children: value.toString()
7481
8014
  });
7482
8015
  if (typeof value === "undefined") return jsx("span", {
7483
- className: css$24.otherValue,
8016
+ className: css$25.otherValue,
7484
8017
  children: "undefined"
7485
8018
  });
7486
8019
  if (typeof value === "symbol") return jsx("span", {
7487
- className: css$24.otherValue,
8020
+ className: css$25.otherValue,
7488
8021
  children: value.description ?? "Symbol"
7489
8022
  });
7490
8023
  if (typeof value === "function") return jsx("span", {
7491
- className: css$24.otherValue,
8024
+ className: css$25.otherValue,
7492
8025
  children: value.name || "Function"
7493
8026
  });
7494
8027
  return null;
@@ -7502,71 +8035,71 @@ function previewValue(value, depth) {
7502
8035
  const [open, close] = bracketOf(value);
7503
8036
  return jsxs(Fragment, { children: [
7504
8037
  jsx("span", {
7505
- className: css$24.punctuation,
8038
+ className: css$25.punctuation,
7506
8039
  children: open
7507
8040
  }),
7508
8041
  depth >= PREVIEW_DEPTH_LIMIT ? jsx("span", {
7509
- className: css$24.previewEllipsis,
8042
+ className: css$25.previewEllipsis,
7510
8043
  children: "…"
7511
8044
  }) : visible.map(([key, item], index) => jsxs("span", { children: [
7512
8045
  index > 0 && jsx("span", {
7513
- className: css$24.punctuation,
8046
+ className: css$25.punctuation,
7514
8047
  children: ", "
7515
8048
  }),
7516
8049
  !array && jsxs(Fragment, { children: [jsx("span", {
7517
- className: css$24.previewProperty,
8050
+ className: css$25.previewProperty,
7518
8051
  children: key
7519
8052
  }), jsx("span", {
7520
- className: css$24.punctuation,
8053
+ className: css$25.punctuation,
7521
8054
  children: ": "
7522
8055
  })] }),
7523
8056
  previewValue(item, depth + 1)
7524
8057
  ] }, key)),
7525
8058
  depth < PREVIEW_DEPTH_LIMIT && entries.length > limit && jsx("span", {
7526
- className: css$24.previewEllipsis,
8059
+ className: css$25.previewEllipsis,
7527
8060
  children: ", …"
7528
8061
  }),
7529
8062
  jsx("span", {
7530
- className: css$24.punctuation,
8063
+ className: css$25.punctuation,
7531
8064
  children: close
7532
8065
  })
7533
8066
  ] });
7534
8067
  }
7535
8068
  function primitiveValue(value) {
7536
8069
  if (value === null) return jsx("span", {
7537
- className: css$24.keywordValue,
8070
+ className: css$25.keywordValue,
7538
8071
  children: "null"
7539
8072
  });
7540
8073
  if (typeof value === "string") return jsx("span", {
7541
- className: css$24.stringValue,
8074
+ className: css$25.stringValue,
7542
8075
  children: JSON.stringify(value)
7543
8076
  });
7544
8077
  if (typeof value === "boolean") return jsx("span", {
7545
- className: css$24.keywordValue,
8078
+ className: css$25.keywordValue,
7546
8079
  children: String(value)
7547
8080
  });
7548
8081
  if (typeof value === "number") return jsx("span", {
7549
- className: css$24.numberValue,
8082
+ className: css$25.numberValue,
7550
8083
  children: String(value)
7551
8084
  });
7552
8085
  if (typeof value === "bigint") return jsx("span", {
7553
- className: css$24.numberValue,
8086
+ className: css$25.numberValue,
7554
8087
  children: `${value.toString()}n`
7555
8088
  });
7556
8089
  if (value instanceof Date) return jsx("span", {
7557
- className: css$24.otherValue,
8090
+ className: css$25.otherValue,
7558
8091
  children: value.toISOString()
7559
8092
  });
7560
8093
  if (typeof value === "function") return jsxs("span", {
7561
- className: css$24.otherValue,
8094
+ className: css$25.otherValue,
7562
8095
  children: ["function() ", "{ }"]
7563
8096
  });
7564
8097
  if (typeof value === "undefined") return jsx("span", {
7565
- className: css$24.otherValue,
8098
+ className: css$25.otherValue,
7566
8099
  children: "undefined"
7567
8100
  });
7568
8101
  return jsx("span", {
7569
- className: css$24.otherValue,
8102
+ className: css$25.otherValue,
7570
8103
  children: value.toString()
7571
8104
  });
7572
8105
  }
@@ -7594,7 +8127,7 @@ function moveFocus(button, direction) {
7594
8127
  function NodeField({ field, expandable, onToggle }) {
7595
8128
  if (field === void 0) return null;
7596
8129
  return jsxs("span", {
7597
- className: clsx(css$24.label, expandable && css$24.clickableLabel),
8130
+ className: clsx(css$25.label, expandable && css$25.clickableLabel),
7598
8131
  onClick: expandable ? onToggle : void 0,
7599
8132
  children: [fieldText(field), ":"]
7600
8133
  });
@@ -7631,7 +8164,7 @@ function JsonString({ collapsedStringLines, stringWrapping, field, labels, lastE
7631
8164
  if (!expanded) return;
7632
8165
  const raw = rawRef.current;
7633
8166
  const clips = [];
7634
- const tree = raw.closest(`.${css$24.root}`);
8167
+ const tree = raw.closest(`.${css$25.root}`);
7635
8168
  for (let parent = tree.parentElement; parent !== null; parent = parent.parentElement) if (/auto|scroll|hidden|clip/.test(getComputedStyle(parent).overflowY)) clips.push(parent);
7636
8169
  const measure = () => {
7637
8170
  let top = 0;
@@ -7660,33 +8193,33 @@ function JsonString({ collapsedStringLines, stringWrapping, field, labels, lastE
7660
8193
  if (expanded) {
7661
8194
  const fieldId = `${contentsId}-field`;
7662
8195
  return jsxs("div", {
7663
- className: css$24.stringField,
8196
+ className: css$25.stringField,
7664
8197
  "data-expanded": true,
7665
8198
  children: [
7666
8199
  field !== void 0 && jsxs("span", {
7667
8200
  id: fieldId,
7668
- className: css$24.label,
8201
+ className: css$25.label,
7669
8202
  children: [fieldText(field), ":"]
7670
8203
  }),
7671
8204
  jsx("pre", {
7672
8205
  ref: rawRef,
7673
8206
  id: contentsId,
7674
- className: css$24.stringRaw,
8207
+ className: css$25.stringRaw,
7675
8208
  "data-wrap": wrapped,
7676
8209
  tabIndex: 0,
7677
8210
  "aria-labelledby": field === void 0 ? void 0 : fieldId,
7678
8211
  children: value
7679
8212
  }),
7680
8213
  !lastElement && jsx("span", {
7681
- className: css$24.punctuation,
8214
+ className: css$25.punctuation,
7682
8215
  children: ","
7683
8216
  }),
7684
8217
  jsxs("div", {
7685
- className: css$24.stringActions,
8218
+ className: css$25.stringActions,
7686
8219
  children: [
7687
8220
  stringWrapping !== void 0 && jsx("button", {
7688
8221
  type: "button",
7689
- className: css$24.actionButton,
8222
+ className: css$25.actionButton,
7690
8223
  "aria-label": stringWrapping.label,
7691
8224
  title: stringWrapping.label,
7692
8225
  "aria-pressed": wrapped,
@@ -7700,7 +8233,7 @@ function JsonString({ collapsedStringLines, stringWrapping, field, labels, lastE
7700
8233
  }),
7701
8234
  jsx("button", {
7702
8235
  type: "button",
7703
- className: css$24.actionButton,
8236
+ className: css$25.actionButton,
7704
8237
  "aria-label": labels.collapseNode,
7705
8238
  title: labels.collapseNode,
7706
8239
  "aria-expanded": true,
@@ -7725,18 +8258,18 @@ function JsonString({ collapsedStringLines, stringWrapping, field, labels, lastE
7725
8258
  });
7726
8259
  }
7727
8260
  return jsxs(Fragment, { children: [renderCopy?.(), jsx("span", {
7728
- className: css$24.stringField,
8261
+ className: css$25.stringField,
7729
8262
  "data-expanded": expanded,
7730
8263
  children: jsxs("span", {
7731
8264
  ref: contentRef,
7732
8265
  id: contentsId,
7733
- className: css$24.stringText,
8266
+ className: css$25.stringText,
7734
8267
  children: [
7735
8268
  truncated && jsx("span", {
7736
- className: css$24.stringToggleSlot,
8269
+ className: css$25.stringToggleSlot,
7737
8270
  children: jsxs("button", {
7738
8271
  type: "button",
7739
- className: css$24.stringToggle,
8272
+ className: css$25.stringToggle,
7740
8273
  "aria-label": labels.expandNode,
7741
8274
  "aria-expanded": false,
7742
8275
  "aria-controls": contentsId,
@@ -7751,12 +8284,12 @@ function JsonString({ collapsedStringLines, stringWrapping, field, labels, lastE
7751
8284
  })
7752
8285
  }),
7753
8286
  field !== void 0 && jsxs("span", {
7754
- className: css$24.label,
8287
+ className: css$25.label,
7755
8288
  children: [fieldText(field), ":"]
7756
8289
  }),
7757
8290
  primitiveValue(value),
7758
8291
  !lastElement && jsx("span", {
7759
- className: css$24.punctuation,
8292
+ className: css$25.punctuation,
7760
8293
  children: ","
7761
8294
  })
7762
8295
  ]
@@ -7787,7 +8320,7 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7787
8320
  }
7788
8321
  };
7789
8322
  const row = (children, ariaExpanded) => jsxs("div", {
7790
- className: css$24.row,
8323
+ className: css$25.row,
7791
8324
  role: "treeitem",
7792
8325
  "aria-expanded": ariaExpanded,
7793
8326
  onMouseOver: (event) => {
@@ -7822,7 +8355,7 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7822
8355
  }),
7823
8356
  primitiveValue(value),
7824
8357
  !lastElement && jsx("span", {
7825
- className: css$24.punctuation,
8358
+ className: css$25.punctuation,
7826
8359
  children: ","
7827
8360
  })
7828
8361
  ] }));
@@ -7834,22 +8367,22 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7834
8367
  onToggle: toggle
7835
8368
  }),
7836
8369
  jsx("span", {
7837
- className: css$24.punctuation,
8370
+ className: css$25.punctuation,
7838
8371
  children: open
7839
8372
  }),
7840
8373
  jsx("span", {
7841
- className: css$24.punctuation,
8374
+ className: css$25.punctuation,
7842
8375
  children: close
7843
8376
  }),
7844
8377
  !lastElement && jsx("span", {
7845
- className: css$24.punctuation,
8378
+ className: css$25.punctuation,
7846
8379
  children: ","
7847
8380
  })
7848
8381
  ] }));
7849
8382
  return row(jsxs(Fragment, { children: [
7850
8383
  jsx("span", {
7851
8384
  ref: expanderRef,
7852
- className: clsx(css$24.expander, expanded ? css$24.collapseIcon : css$24.expandIcon),
8385
+ className: clsx(css$25.expander, expanded ? css$25.collapseIcon : css$25.expandIcon),
7853
8386
  "data-json-expander": true,
7854
8387
  role: "button",
7855
8388
  "aria-label": expanded ? labels.collapseNode : labels.expandNode,
@@ -7863,7 +8396,7 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7863
8396
  onKeyDown: onExpanderKeyDown
7864
8397
  }),
7865
8398
  jsxs("span", {
7866
- className: css$24.summary,
8399
+ className: css$25.summary,
7867
8400
  children: [
7868
8401
  jsx(NodeField, {
7869
8402
  field,
@@ -7871,11 +8404,11 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7871
8404
  onToggle: toggle
7872
8405
  }),
7873
8406
  jsx("span", {
7874
- className: css$24.preview,
8407
+ className: css$25.preview,
7875
8408
  children: previewValue(value, 0)
7876
8409
  }),
7877
8410
  !lastElement && jsx("span", {
7878
- className: css$24.punctuation,
8411
+ className: css$25.punctuation,
7879
8412
  children: ","
7880
8413
  })
7881
8414
  ]
@@ -7883,7 +8416,7 @@ function JsonTreeNode({ collapsedStringLines, stringWrapping, field, initialExpa
7883
8416
  expanded && jsx("ul", {
7884
8417
  id: contentsId,
7885
8418
  role: "group",
7886
- className: css$24.children,
8419
+ className: css$25.children,
7887
8420
  children: entries.map(([key, item], index) => jsx(JsonTreeNode, {
7888
8421
  collapsedStringLines,
7889
8422
  stringWrapping,
@@ -8015,17 +8548,17 @@ function JsonTree({ data, label, className, collapsedStringLines = 3, stringWrap
8015
8548
  onClose: clearCopyTarget
8016
8549
  }) : void 0;
8017
8550
  return jsx("div", {
8018
- className: clsx(css$24.root, className),
8551
+ className: clsx(css$25.root, className),
8019
8552
  style: { "--json-tree-collapsed-lines": collapsedStringLines },
8020
8553
  onMouseOver: handleRootMouseOver,
8021
8554
  onMouseLeave: () => {
8022
8555
  if (!copyStore.get()?.menuOpen) clearCopyTarget();
8023
8556
  },
8024
8557
  children: expandTopLevel ? jsxs("div", {
8025
- className: css$24.expandedTopLevel,
8558
+ className: css$25.expandedTopLevel,
8026
8559
  children: [
8027
8560
  jsxs("div", {
8028
- className: clsx(css$24.row, css$24.topLevelBracket),
8561
+ className: clsx(css$25.row, css$25.topLevelBracket),
8029
8562
  "data-json-root-row": true,
8030
8563
  onMouseOver: (event) => {
8031
8564
  event.stopPropagation();
@@ -8038,13 +8571,13 @@ function JsonTree({ data, label, className, collapsedStringLines = 3, stringWrap
8038
8571
  path: [],
8039
8572
  value: data
8040
8573
  }), jsx("span", {
8041
- className: css$24.punctuation,
8574
+ className: css$25.punctuation,
8042
8575
  children: rootOpen
8043
8576
  })]
8044
8577
  }),
8045
8578
  jsx("div", {
8046
8579
  "aria-label": label,
8047
- className: clsx(css$24.container, css$24.expandedTopLevelContainer),
8580
+ className: clsx(css$25.container, css$25.expandedTopLevelContainer),
8048
8581
  role: "tree",
8049
8582
  children: rootEntries.map(([key, value], index) => jsx(JsonTreeNode, {
8050
8583
  collapsedStringLines,
@@ -8062,16 +8595,16 @@ function JsonTree({ data, label, className, collapsedStringLines = 3, stringWrap
8062
8595
  }, key))
8063
8596
  }),
8064
8597
  jsx("div", {
8065
- className: clsx(css$24.row, css$24.topLevelBracket),
8598
+ className: clsx(css$25.row, css$25.topLevelBracket),
8066
8599
  children: jsx("span", {
8067
- className: css$24.punctuation,
8600
+ className: css$25.punctuation,
8068
8601
  children: rootClose
8069
8602
  })
8070
8603
  })
8071
8604
  ]
8072
8605
  }) : jsx("div", {
8073
8606
  "aria-label": label,
8074
- className: css$24.container,
8607
+ className: css$25.container,
8075
8608
  role: "tree",
8076
8609
  children: jsx(JsonTreeNode, {
8077
8610
  collapsedStringLines,
@@ -8634,67 +9167,67 @@ function TerminalBlock({ command, cwd, home, output, exitCode, signal, running =
8634
9167
  const { hidden, capped, headLines, tailLines } = headTailCap(lines.length, maxLines, expanded);
8635
9168
  const body = !running || !empty;
8636
9169
  return jsxs("div", {
8637
- className: clsx(css$25.block, className),
9170
+ className: clsx(css$26.block, className),
8638
9171
  "data-terminal": "",
8639
9172
  "data-running": running ? "" : void 0,
8640
9173
  "data-body": body ? "" : void 0,
8641
9174
  children: [jsxs("div", {
8642
- className: css$25.header,
9175
+ className: css$26.header,
8643
9176
  children: [
8644
9177
  jsxs("div", {
8645
- className: css$25.prompt,
9178
+ className: css$26.prompt,
8646
9179
  children: [runStateDot && jsx("span", {
8647
- className: css$25.runStateLabel,
9180
+ className: css$26.runStateLabel,
8648
9181
  children: state.label
8649
9182
  }), commandLines.map((line, index) => jsxs("div", {
8650
- className: css$25.promptLine,
9183
+ className: css$26.promptLine,
8651
9184
  children: [
8652
9185
  index === 0 && runStateDot && jsx(StateDot, {
8653
9186
  state: state.state,
8654
- className: css$25.runState
9187
+ className: css$26.runState
8655
9188
  }),
8656
9189
  jsx("span", {
8657
- className: css$25.cwd,
9190
+ className: css$26.cwd,
8658
9191
  children: index > 0 || cwd === void 0 ? "$" : promptLabel(cwd, home)
8659
9192
  }),
8660
9193
  jsx("span", {
8661
- className: css$25.command,
9194
+ className: css$26.command,
8662
9195
  children: line
8663
9196
  })
8664
9197
  ]
8665
9198
  }, index))]
8666
9199
  }),
8667
9200
  status !== void 0 && jsx(Pill, {
8668
- className: css$25.status,
9201
+ className: css$26.status,
8669
9202
  children: status
8670
9203
  }),
8671
9204
  (copyText !== void 0 || !running && !empty) && jsx("button", {
8672
9205
  type: "button",
8673
- className: css$25.copyButton,
9206
+ className: css$26.copyButton,
8674
9207
  onClick: onCopy,
8675
9208
  children: copied ? copy.copied : copy.copy
8676
9209
  })
8677
9210
  ]
8678
9211
  }), body && (empty ? jsx("div", {
8679
- className: css$25.empty,
9212
+ className: css$26.empty,
8680
9213
  children: copy.noOutput
8681
9214
  }) : jsxs("div", {
8682
- className: css$25.output,
9215
+ className: css$26.output,
8683
9216
  children: [
8684
9217
  (capped ? lines.slice(0, headLines) : lines).map((line, index) => jsx("div", {
8685
- className: css$25.line,
9218
+ className: css$26.line,
8686
9219
  children: renderLine$1(line)
8687
9220
  }, index)),
8688
9221
  hidden > 0 && jsx("button", {
8689
9222
  type: "button",
8690
- className: css$25.expand,
9223
+ className: css$26.expand,
8691
9224
  "aria-expanded": expanded,
8692
9225
  "aria-label": expanded ? copy.collapseAria : copy.expandAria(hidden),
8693
9226
  onClick: onToggle,
8694
9227
  children: expanded ? copy.collapse : copy.expand(hidden)
8695
9228
  }),
8696
9229
  capped && lines.slice(lines.length - tailLines).map((line, index) => jsx("div", {
8697
- className: css$25.line,
9230
+ className: css$26.line,
8698
9231
  children: renderLine$1(line)
8699
9232
  }, index))
8700
9233
  ]
@@ -8719,6 +9252,66 @@ function FoldToggle({ className, expanded, hidden, labels, onToggle }) {
8719
9252
  });
8720
9253
  }
8721
9254
  //#endregion
9255
+ //#region lib/types/CodeToolbar.js
9256
+ /** Shared language, wrapping, and clipboard controls for code cards. */
9257
+ /**
9258
+ * Render a language label and keyboard-accessible icon actions with tooltips.
9259
+ * @param props - Localized labels, current state, and card-owned actions.
9260
+ * @returns The shared code-card header.
9261
+ */
9262
+ function CodeToolbar({ lang, title, status, labels, copyLabel, copiedLabel, copied, wrapped, onCopy, onWrap }) {
9263
+ const wrapLabel = wrapped ? labels.unwrapLabel : labels.wrapLabel;
9264
+ const clipboardLabel = copied ? copiedLabel : copyLabel;
9265
+ return jsxs("div", {
9266
+ className: cardCss.header,
9267
+ "data-code-block-banner": true,
9268
+ children: [jsxs("div", {
9269
+ className: cardCss.heading,
9270
+ children: [jsx("span", {
9271
+ className: cardCss.language,
9272
+ children: supportsHighlighting(lang) ? lang : labels.codeLabel
9273
+ }), title !== void 0 && jsx("span", {
9274
+ className: cardCss.title,
9275
+ title,
9276
+ children: title
9277
+ })]
9278
+ }), jsxs("div", {
9279
+ className: cardCss.actions,
9280
+ children: [
9281
+ status !== void 0 && jsx("span", {
9282
+ className: cardCss.status,
9283
+ children: status
9284
+ }),
9285
+ onWrap !== void 0 && jsx(Tooltip, {
9286
+ label: wrapLabel,
9287
+ side: "top",
9288
+ portal: true,
9289
+ children: jsx("button", {
9290
+ type: "button",
9291
+ className: cardCss.action,
9292
+ "aria-label": labels.wrapLabel,
9293
+ "aria-pressed": wrapped,
9294
+ onClick: onWrap,
9295
+ children: wrapped ? jsx(IconNowrapFillRegular, { size: 14 }) : jsx(IconWrapFillRegular, { size: 14 })
9296
+ })
9297
+ }),
9298
+ onCopy !== void 0 && jsx(Tooltip, {
9299
+ label: clipboardLabel,
9300
+ side: "top",
9301
+ portal: true,
9302
+ children: jsx("button", {
9303
+ type: "button",
9304
+ className: cardCss.action,
9305
+ "aria-label": clipboardLabel,
9306
+ onClick: onCopy,
9307
+ children: copied ? jsx(IconCheckOutlineRegular, { size: 14 }) : jsx(IconCopyOutlineRegular, { size: 14 })
9308
+ })
9309
+ })
9310
+ ]
9311
+ })]
9312
+ });
9313
+ }
9314
+ //#endregion
8722
9315
  //#region lib/types/markdown/useViewportHighlighting.js
8723
9316
  const noop = () => {};
8724
9317
  /** One document-wide observer; activated elements leave it permanently. */
@@ -8817,6 +9410,7 @@ function ReadBlock({ label, labels, lines, totalLines, lang, maxLines = 16, clas
8817
9410
  ]);
8818
9411
  const [expanded, setExpanded] = useState(false);
8819
9412
  const [copied, setCopied] = useState(false);
9413
+ const [wrapped, setWrapped] = useState(false);
8820
9414
  const onCopy = useCallback(() => {
8821
9415
  if (copied) return;
8822
9416
  writeClipboard(raw).then((ok) => {
@@ -8836,51 +9430,43 @@ function ReadBlock({ label, labels, lines, totalLines, lang, maxLines = 16, clas
8836
9430
  const tailLines = maxLines - headLines;
8837
9431
  const windowed = lines.length < totalLines;
8838
9432
  const rows = (slice) => slice.map(([line, spans]) => jsxs("div", {
8839
- className: css$26.line,
9433
+ className: css$27.line,
8840
9434
  children: [jsx("span", {
8841
- className: css$26.gutter,
9435
+ className: css$27.gutter,
8842
9436
  "aria-hidden": true,
8843
9437
  children: line.number
8844
9438
  }), jsx("span", {
8845
- className: css$26.content,
9439
+ className: css$27.content,
8846
9440
  children: spans === void 0 ? line.text : renderSpans(spans)
8847
9441
  })]
8848
9442
  }, line.number));
9443
+ const gutterStyle = { "--dsl-read-gutter": `${lines.reduce((digits, line) => Math.max(digits, String(line.number).length), 3)}ch` };
8849
9444
  const paired = lines.map((line, index) => [line, highlighted?.[index]]);
8850
9445
  return jsxs("div", {
8851
9446
  ref: rootRef,
8852
- className: clsx(css$26.block, className),
9447
+ className: clsx(cardCss.card, css$27.block, className),
8853
9448
  "data-read": "",
8854
- children: [jsxs("div", {
8855
- className: css$26.banner,
8856
- children: [jsx("div", {
8857
- className: css$26.label,
8858
- children: label ?? ""
8859
- }), jsxs("div", {
8860
- className: css$26.action,
8861
- children: [
8862
- windowed && jsx("span", {
8863
- className: css$26.count,
8864
- children: labels.window(lines.length, totalLines)
8865
- }),
8866
- jsx("span", {
8867
- className: css$26.lang,
8868
- children: lang ?? ""
8869
- }),
8870
- lines.length > 0 && jsx("button", {
8871
- type: "button",
8872
- className: css$26.copyButton,
8873
- onClick: onCopy,
8874
- children: copied ? labels.copied : labels.copy
8875
- })
8876
- ]
8877
- })]
9449
+ "data-code-wrap": wrapped,
9450
+ style: gutterStyle,
9451
+ children: [jsx(CodeToolbar, {
9452
+ lang,
9453
+ title: label,
9454
+ status: windowed ? labels.window(lines.length, totalLines) : void 0,
9455
+ labels,
9456
+ copyLabel: labels.copy,
9457
+ copiedLabel: labels.copied,
9458
+ copied,
9459
+ wrapped,
9460
+ onCopy: lines.length > 0 ? onCopy : void 0,
9461
+ onWrap: () => {
9462
+ setWrapped((value) => !value);
9463
+ }
8878
9464
  }), jsxs("div", {
8879
- className: css$26.body,
9465
+ className: cardCss.body,
8880
9466
  children: [
8881
9467
  rows(capped ? paired.slice(0, headLines) : paired),
8882
9468
  hidden > 0 && jsx(FoldToggle, {
8883
- className: css$26.expand,
9469
+ className: css$27.expand,
8884
9470
  expanded,
8885
9471
  hidden,
8886
9472
  labels,
@@ -8902,11 +9488,11 @@ function assertNever(value) {
8902
9488
  }
8903
9489
  /** The dim class per row kind (path/gap chrome vs the diff's own +/- colors). */
8904
9490
  const ROW_CLASS = {
8905
- path: css$27.path,
8906
- del: css$27.del,
8907
- add: css$27.add,
8908
- context: css$27.context,
8909
- gap: css$27.gap
9491
+ path: css$28.path,
9492
+ del: css$28.del,
9493
+ add: css$28.add,
9494
+ context: css$28.context,
9495
+ gap: css$28.gap
8910
9496
  };
8911
9497
  /** Bound synchronous edit-graph search; one replacement consumes two edits. */
8912
9498
  const MAX_DIFF_EDIT_LENGTH = 256;
@@ -8925,7 +9511,7 @@ function localHunks(diff) {
8925
9511
  * comparisons exceeding the edit limit count both complete fragments as replaced.
8926
9512
  * Text follows {@link contentLines}'s terminator rule.
8927
9513
  * @param diffs - the hunks to count.
8928
- * @returns the +/- totals for summaries and the card footer.
9514
+ * @returns the +/- totals for tool summaries.
8929
9515
  */
8930
9516
  function diffTotals(diffs) {
8931
9517
  let added = 0;
@@ -8940,18 +9526,16 @@ function diffTotals(diffs) {
8940
9526
  };
8941
9527
  }
8942
9528
  /**
8943
- * Flatten local patches into rows and count only added and removed lines.
9529
+ * Flatten local patches into rows.
8944
9530
  * A path header opens each new file. A `⋯` gap separates consecutive same-file
8945
- * fragments and distant patches within a fragment. File counts use distinct paths.
9531
+ * fragments and distant patches within a fragment.
8946
9532
  * @param diffs - the hunks to render.
8947
- * @returns the body rows, the +/- totals, and the distinct-file count.
9533
+ * @returns the body rows.
8948
9534
  */
8949
9535
  function buildRows(diffs) {
8950
9536
  const rows = [];
8951
- const paths = /* @__PURE__ */ new Set();
8952
9537
  let prevPath;
8953
9538
  for (const diff of diffs) {
8954
- paths.add(diff.path);
8955
9539
  if (diff.path !== prevPath) rows.push({
8956
9540
  kind: "path",
8957
9541
  text: diff.path
@@ -8975,12 +9559,7 @@ function buildRows(diffs) {
8975
9559
  }
8976
9560
  }
8977
9561
  }
8978
- return {
8979
- rows,
8980
- added: rows.filter((row) => row.kind === "add").length,
8981
- removed: rows.filter((row) => row.kind === "del").length,
8982
- files: paths.size
8983
- };
9562
+ return rows;
8984
9563
  }
8985
9564
  /**
8986
9565
  * Split a side's text into its content lines. Empty text is zero lines (a full
@@ -9020,9 +9599,12 @@ function copyText$1(rows) {
9020
9599
  * @returns the diff block element.
9021
9600
  */
9022
9601
  function DiffBlock({ diffs, labels, maxLines = 16, className }) {
9023
- const { rows, added, removed, files } = useMemo(() => buildRows(diffs), [diffs]);
9602
+ const rows = useMemo(() => buildRows(diffs), [diffs]);
9024
9603
  const [expanded, setExpanded] = useState(false);
9025
9604
  const [copied, setCopied] = useState(false);
9605
+ const [wrapped, setWrapped] = useState(false);
9606
+ const firstLanguage = diffs[0] === void 0 ? void 0 : languageForPath(diffs[0].path);
9607
+ const language = diffs.every((diff) => languageForPath(diff.path) === firstLanguage) ? firstLanguage : void 0;
9026
9608
  const onCopy = useCallback(() => {
9027
9609
  if (copied) return;
9028
9610
  writeClipboard(copyText$1(rows)).then((ok) => {
@@ -9044,47 +9626,40 @@ function DiffBlock({ diffs, labels, maxLines = 16, className }) {
9044
9626
  const head = capped ? rows.slice(0, headLines) : rows;
9045
9627
  const tail = capped ? rows.slice(rows.length - tailLines) : [];
9046
9628
  return jsxs("div", {
9047
- className: clsx(css$27.block, className),
9629
+ className: clsx(cardCss.card, css$28.block, className),
9048
9630
  "data-diff": "",
9049
- children: [
9050
- jsx("button", {
9051
- type: "button",
9052
- className: css$27.copyButton,
9053
- onClick: onCopy,
9054
- children: copied ? labels.copied : labels.copy
9055
- }),
9056
- jsxs("div", {
9057
- className: css$27.body,
9058
- children: [
9059
- head.map((row, index) => jsx("div", {
9060
- className: clsx(css$27.line, ROW_CLASS[row.kind]),
9061
- children: row.text
9062
- }, index)),
9063
- hidden > 0 && jsx(FoldToggle, {
9064
- className: css$27.expand,
9065
- expanded,
9066
- hidden,
9067
- labels,
9068
- onToggle
9069
- }),
9070
- tail.map((row, index) => jsx("div", {
9071
- className: clsx(css$27.line, ROW_CLASS[row.kind]),
9072
- children: row.text
9073
- }, index))
9074
- ]
9075
- }),
9076
- jsxs("div", {
9077
- className: css$27.footer,
9078
- children: [
9079
- "└ +",
9080
- added,
9081
- " -",
9082
- removed,
9083
- " · ",
9084
- labels.files(files)
9085
- ]
9086
- })
9087
- ]
9631
+ "data-code-wrap": wrapped,
9632
+ children: [jsx(CodeToolbar, {
9633
+ lang: language,
9634
+ labels,
9635
+ copyLabel: labels.copy,
9636
+ copiedLabel: labels.copied,
9637
+ copied,
9638
+ wrapped,
9639
+ onCopy,
9640
+ onWrap: () => {
9641
+ setWrapped((value) => !value);
9642
+ }
9643
+ }), jsxs("div", {
9644
+ className: css$28.body,
9645
+ children: [
9646
+ head.map((row, index) => jsx("div", {
9647
+ className: clsx(css$28.line, ROW_CLASS[row.kind]),
9648
+ children: row.text
9649
+ }, index)),
9650
+ hidden > 0 && jsx(FoldToggle, {
9651
+ className: css$28.expand,
9652
+ expanded,
9653
+ hidden,
9654
+ labels,
9655
+ onToggle
9656
+ }),
9657
+ tail.map((row, index) => jsx("div", {
9658
+ className: clsx(css$28.line, ROW_CLASS[row.kind]),
9659
+ children: row.text
9660
+ }, index))
9661
+ ]
9662
+ })]
9088
9663
  });
9089
9664
  }
9090
9665
  //#endregion
@@ -9210,56 +9785,56 @@ function SearchBlock(props) {
9210
9785
  const tail = tailHeader === void 0 ? naturalTail : naturalTail.slice(1);
9211
9786
  const renderRow = (row) => {
9212
9787
  if (row.type === "path") return jsx("div", {
9213
- className: css$28.line,
9788
+ className: css$29.line,
9214
9789
  children: row.path
9215
9790
  });
9216
9791
  if (row.type === "match") return jsxs("div", {
9217
- className: css$28.line,
9792
+ className: css$29.line,
9218
9793
  children: [jsxs("span", {
9219
- className: css$28.lineNumber,
9794
+ className: css$29.lineNumber,
9220
9795
  children: [row.lineNumber, ": "]
9221
9796
  }), row.line]
9222
9797
  });
9223
9798
  return jsxs("button", {
9224
9799
  type: "button",
9225
- className: css$28.fileHeader,
9800
+ className: css$29.fileHeader,
9226
9801
  "aria-expanded": !row.collapsed,
9227
9802
  onClick: () => {
9228
9803
  toggleFile(row.index);
9229
9804
  },
9230
9805
  children: [jsx("span", {
9231
- className: css$28.filePath,
9806
+ className: css$29.filePath,
9232
9807
  children: row.path
9233
9808
  }), jsx("span", {
9234
- className: css$28.fileCount,
9809
+ className: css$29.fileCount,
9235
9810
  children: row.count
9236
9811
  })]
9237
9812
  });
9238
9813
  };
9239
9814
  return jsxs("div", {
9240
- className: clsx(css$28.block, className),
9815
+ className: clsx(css$29.block, className),
9241
9816
  "data-search": props.kind,
9242
9817
  children: [jsxs("div", {
9243
- className: css$28.header,
9818
+ className: css$29.header,
9244
9819
  children: [jsx("span", {
9245
- className: css$28.summary,
9820
+ className: css$29.summary,
9246
9821
  children: summaryText(props, shown, truncated, total)
9247
9822
  }), !empty && jsx("button", {
9248
9823
  type: "button",
9249
- className: css$28.copyButton,
9824
+ className: css$29.copyButton,
9250
9825
  onClick: onCopy,
9251
9826
  children: copied ? props.labels.copied : props.labels.copy
9252
9827
  })]
9253
9828
  }), empty ? jsx("div", {
9254
- className: css$28.empty,
9829
+ className: css$29.empty,
9255
9830
  children: props.labels.noResults
9256
9831
  }) : jsxs("div", {
9257
- className: css$28.body,
9832
+ className: css$29.body,
9258
9833
  children: [
9259
9834
  head.map((row) => jsx("div", { children: renderRow(row) }, rowKey(row))),
9260
9835
  hidden > 0 && jsx("button", {
9261
9836
  type: "button",
9262
- className: css$28.expand,
9837
+ className: css$29.expand,
9263
9838
  "aria-expanded": expanded,
9264
9839
  "aria-label": expanded ? props.labels.collapseAria : props.labels.expandAria(hidden),
9265
9840
  onClick: onToggle,
@@ -9570,6 +10145,32 @@ var IncrementalMarkdownParser = class {
9570
10145
  }
9571
10146
  };
9572
10147
  //#endregion
10148
+ //#region lib/types/markdown/local-image-syntax.js
10149
+ /**
10150
+ * Recover only unambiguous, unescaped image-only paragraphs containing a local path with spaces.
10151
+ * @param root - Parsed Markdown tree, modified in place.
10152
+ * @param source - Original source used to distinguish authored syntax from escaped examples.
10153
+ * @returns The same root with recovered image nodes.
10154
+ */
10155
+ function recoverLocalImages(root, source) {
10156
+ const visit = (node) => {
10157
+ if (node.type === "paragraph" && node.children.length === 1) {
10158
+ const [child] = node.children;
10159
+ if (child.type === "text" && child.position !== void 0 && source.slice(child.position.start.offset, child.position.end.offset) === child.value) {
10160
+ const match = /^!\[([^\]\n]*)\]\(((?:\/(?!\/)|\.{1,2}\/|[a-z]:[\\/])[^\n<>()[\]"']+\.[a-z\d]+)\)$/iu.exec(child.value);
10161
+ if (match !== null && match[2].includes(" ") && classifyFileType(match[2]) === "image") node.children = [{
10162
+ type: "image",
10163
+ alt: match[1],
10164
+ url: match[2],
10165
+ position: child.position
10166
+ }];
10167
+ }
10168
+ } else if ("children" in node) for (const child of node.children) visit(child);
10169
+ };
10170
+ visit(root);
10171
+ return root;
10172
+ }
10173
+ //#endregion
9573
10174
  //#region lib/types/markdown/cjkFriendlyStrong.js
9574
10175
  /** Let asterisk strong emphasis close after punctuation when CJK prose continues without whitespace. */
9575
10176
  const cjkCharacter = new RegExp([
@@ -9916,10 +10517,10 @@ function mathCompatibility() {
9916
10517
  * @returns The mdast root.
9917
10518
  */
9918
10519
  function parseGfm(text) {
9919
- return fromMarkdown(text, {
10520
+ return recoverLocalImages(fromMarkdown(text, {
9920
10521
  extensions: [gfm(), cjkFriendlyStrong()],
9921
10522
  mdastExtensions: [gfmFromMarkdown()]
9922
- });
10523
+ }), text);
9923
10524
  }
9924
10525
  /**
9925
10526
  * Parse GFM markdown plus TeX math with the compatibility delimiters
@@ -9928,7 +10529,7 @@ function parseGfm(text) {
9928
10529
  * @returns The mdast root.
9929
10530
  */
9930
10531
  function parseGfmWithMath(text) {
9931
- return fromMarkdown(text, {
10532
+ return recoverLocalImages(fromMarkdown(text, {
9932
10533
  extensions: [
9933
10534
  gfm(),
9934
10535
  cjkFriendlyStrong(),
@@ -9936,7 +10537,7 @@ function parseGfmWithMath(text) {
9936
10537
  math()
9937
10538
  ],
9938
10539
  mdastExtensions: [gfmFromMarkdown(), mathFromMarkdown()]
9939
- });
10540
+ }), text);
9940
10541
  }
9941
10542
  //#endregion
9942
10543
  //#region lib/types/markdown/CodeBlock.js
@@ -9965,7 +10566,7 @@ function renderLine(line, index) {
9965
10566
  }, spanIndex))
9966
10567
  })] }, index);
9967
10568
  }
9968
- function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers = false, showHeader = true, copyLabel, copiedLabel }) {
10569
+ function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers = false, showHeader = true, copyLabel, copiedLabel, toolbarLabels, wrap }) {
9969
10570
  const trimmed = code.endsWith("\n") ? code.slice(0, -1) : code;
9970
10571
  const sourceLines = lineNumbers ? trimmed.split("\n") : void 0;
9971
10572
  const rootRef = useRef(null);
@@ -10050,6 +10651,8 @@ function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers =
10050
10651
  loaded
10051
10652
  ]);
10052
10653
  const [copied, setCopied] = useState(false);
10654
+ const [localWrapped, setWrapped] = useState(true);
10655
+ const wrapped = wrap ?? localWrapped;
10053
10656
  const onCopy = useCallback(() => {
10054
10657
  if (copied) return;
10055
10658
  writeClipboard(rootRef.current?.querySelector("pre")?.textContent ?? trimmed).then((ok) => {
@@ -10061,7 +10664,7 @@ function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers =
10061
10664
  });
10062
10665
  }, [copied, trimmed]);
10063
10666
  const body = streamedBody !== void 0 ? streamedBody : html === void 0 ? jsx("pre", {
10064
- className: css$29.plain,
10667
+ className: css$30.plain,
10065
10668
  children: jsx("code", { children: sourceLines === void 0 ? trimmed : sourceLines.map((line, index) => jsxs(Fragment$1, { children: [index > 0 && "\n", jsx("span", {
10066
10669
  className: "line",
10067
10670
  children: line
@@ -10069,22 +10672,34 @@ function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers =
10069
10672
  }) : jsx("div", { dangerouslySetInnerHTML: { __html: html } });
10070
10673
  return jsxs("div", {
10071
10674
  ref: rootRef,
10072
- className: clsx(css$29.block, "md-code-block", lineNumbers && css$29.numbered, className),
10675
+ className: clsx(css$30.block, "md-code-block", lineNumbers && css$30.numbered, toolbarLabels !== void 0 && css$30.card, className),
10073
10676
  "data-line-numbers": lineNumbers || void 0,
10677
+ "data-code-wrap": toolbarLabels === void 0 ? void 0 : wrapped,
10074
10678
  style: sourceLines === void 0 ? void 0 : { "--dsl-code-block-line-number-width": `${Math.max(2, String(sourceLines.length).length)}ch` },
10075
10679
  children: [showHeader && jsx("div", {
10076
- className: css$29.bannerWrap,
10077
- children: jsxs("div", {
10078
- className: css$29.banner,
10680
+ className: css$30.bannerWrap,
10681
+ children: toolbarLabels !== void 0 ? jsx(CodeToolbar, {
10682
+ lang,
10683
+ labels: toolbarLabels,
10684
+ copyLabel,
10685
+ copiedLabel,
10686
+ copied,
10687
+ wrapped,
10688
+ onCopy,
10689
+ onWrap: wrap === void 0 ? () => {
10690
+ setWrapped((value) => !value);
10691
+ } : void 0
10692
+ }) : jsxs("div", {
10693
+ className: css$30.banner,
10079
10694
  "data-code-block-banner": true,
10080
10695
  children: [jsx("div", {
10081
- className: css$29.infostring,
10696
+ className: css$30.infostring,
10082
10697
  children: lang ?? ""
10083
10698
  }), jsx("div", {
10084
- className: css$29.action,
10699
+ className: css$30.action,
10085
10700
  children: jsx("button", {
10086
10701
  type: "button",
10087
- className: css$29.copyButton,
10702
+ className: css$30.copyButton,
10088
10703
  onClick: onCopy,
10089
10704
  children: copied ? copiedLabel : copyLabel
10090
10705
  })
@@ -10092,7 +10707,7 @@ function CodeBlock({ code, lang, streaming, className, contentRef, lineNumbers =
10092
10707
  })
10093
10708
  }), jsx("div", {
10094
10709
  ref: contentRef,
10095
- className: css$29.content,
10710
+ className: css$30.content,
10096
10711
  "data-code-block-content": true,
10097
10712
  children: body
10098
10713
  })]
@@ -10222,11 +10837,16 @@ const MarkdownDelegateContext = createContext({});
10222
10837
  * @param props - Child tree and its file and HTTP(S) link handlers.
10223
10838
  * @returns the scoped child tree.
10224
10839
  */
10225
- function MarkdownDelegateProvider({ children, openExternalLink, openFile }) {
10840
+ function MarkdownDelegateProvider({ children, openExternalLink, openFile, fileImages }) {
10226
10841
  const delegate = useMemo(() => ({
10227
10842
  openExternalLink,
10228
- openFile
10229
- }), [openExternalLink, openFile]);
10843
+ openFile,
10844
+ fileImages
10845
+ }), [
10846
+ openExternalLink,
10847
+ openFile,
10848
+ fileImages
10849
+ ]);
10230
10850
  return jsx(MarkdownDelegateContext.Provider, {
10231
10851
  value: delegate,
10232
10852
  children
@@ -10240,6 +10860,111 @@ function useMarkdownDelegate() {
10240
10860
  return useContext(MarkdownDelegateContext);
10241
10861
  }
10242
10862
  //#endregion
10863
+ //#region lib/types/ImageLightbox.js
10864
+ /**
10865
+ * Document-level original-image preview opened by clicking a thumbnail.
10866
+ * Closes on Escape, backdrop press, or the close control, and restores focus
10867
+ * to the opener on unmount. Rendered through a body portal: an opener inside
10868
+ * a transformed or filtered ancestor would otherwise trap the fixed backdrop
10869
+ * in that ancestor's box instead of covering the viewport.
10870
+ *
10871
+ * @param props.src - the original image URL.
10872
+ * @param props.alt - the image's alt text.
10873
+ * @param props.labels - dialog and close-control strings.
10874
+ * @param props.onClose - dismiss callback owned by the opener.
10875
+ * @returns the modal preview dialog.
10876
+ */
10877
+ function ImageLightbox({ src, alt, labels, onClose }) {
10878
+ const closeRef = useRef(null);
10879
+ const restoreRef = useRef(null);
10880
+ useEffect(() => {
10881
+ restoreRef.current = document.activeElement instanceof HTMLElement ? document.activeElement : null;
10882
+ closeRef.current?.focus();
10883
+ const onKeyDown = (event) => {
10884
+ if (event.key === "Escape") {
10885
+ event.stopPropagation();
10886
+ onClose();
10887
+ }
10888
+ if (event.key === "Tab") {
10889
+ event.preventDefault();
10890
+ closeRef.current?.focus();
10891
+ }
10892
+ };
10893
+ window.addEventListener("keydown", onKeyDown, true);
10894
+ return () => {
10895
+ window.removeEventListener("keydown", onKeyDown, true);
10896
+ restoreRef.current?.focus();
10897
+ };
10898
+ }, [onClose]);
10899
+ return createPortal(jsxs("div", {
10900
+ className: css$31.backdrop,
10901
+ role: "dialog",
10902
+ "aria-modal": "true",
10903
+ "aria-label": labels.dialog,
10904
+ children: [
10905
+ jsx("div", {
10906
+ className: css$31.mask,
10907
+ "aria-hidden": "true",
10908
+ onMouseDown: onClose
10909
+ }),
10910
+ jsx("img", {
10911
+ className: css$31.image,
10912
+ src,
10913
+ alt
10914
+ }),
10915
+ jsx("button", {
10916
+ ref: closeRef,
10917
+ type: "button",
10918
+ className: css$31.close,
10919
+ "aria-label": labels.close,
10920
+ onClick: onClose,
10921
+ children: jsx(IconCloseOutlineRegular, { size: 16 })
10922
+ })
10923
+ ]
10924
+ }), document.body);
10925
+ }
10926
+ //#endregion
10927
+ //#region lib/types/ImagePreview.js
10928
+ /** Passive, contained image preview for Markdown image links. */
10929
+ /**
10930
+ * Render an image without introducing a second activation target.
10931
+ * @param props - Source, accessible description, localized status.
10932
+ * @returns A contained preview with loading or failure status.
10933
+ */
10934
+ function ImagePreview({ src, alt, loadingLabel, failedLabel }) {
10935
+ return jsx(Preview, {
10936
+ src,
10937
+ alt,
10938
+ loadingLabel,
10939
+ failedLabel
10940
+ }, src);
10941
+ }
10942
+ function Preview({ src, alt, loadingLabel, failedLabel }) {
10943
+ const [state, setState] = useState("loading");
10944
+ return jsxs("span", {
10945
+ className: css$32.frame,
10946
+ children: [state !== "failed" && jsx("img", {
10947
+ src,
10948
+ alt,
10949
+ loading: "lazy",
10950
+ decoding: "async",
10951
+ referrerPolicy: "no-referrer",
10952
+ className: css$32.image,
10953
+ "data-ready": state === "ready" || void 0,
10954
+ onLoad: () => {
10955
+ setState("ready");
10956
+ },
10957
+ onError: () => {
10958
+ setState("failed");
10959
+ }
10960
+ }), state !== "ready" && jsxs("span", {
10961
+ className: css$32.status,
10962
+ role: "status",
10963
+ children: [state === "loading" && jsx(IconLoadingOutlineRegular, { size: 16 }), jsx("span", { children: state === "loading" ? loadingLabel : failedLabel })]
10964
+ })]
10965
+ });
10966
+ }
10967
+ //#endregion
10243
10968
  //#region lib/types/markdown/render.js
10244
10969
  /**
10245
10970
  * Direct mdast→React markdown renderer. Replaces the react-markdown /
@@ -10278,11 +11003,11 @@ function remoteImageUrl(url) {
10278
11003
  return;
10279
11004
  }
10280
11005
  }
10281
- /** Protocols a vocabulary-rewritten image destination may carry. */
11006
+ /** Rewritten images may use Web media protocols or the Desktop application's file route. */
10282
11007
  function vocabularyImageUrl(url) {
10283
11008
  try {
10284
11009
  const protocol = new URL(url).protocol;
10285
- return protocol === "http:" || protocol === "https:" || protocol === "blob:" || protocol === "data:" ? url : void 0;
11010
+ return protocol === "http:" || protocol === "https:" || protocol === "blob:" || protocol === "data:" || url.startsWith("dsh-app://app/api/file?") ? url : void 0;
10286
11011
  } catch {
10287
11012
  return;
10288
11013
  }
@@ -10434,7 +11159,8 @@ function renderCode(node, key, context) {
10434
11159
  lang,
10435
11160
  streaming: context.streaming,
10436
11161
  copyLabel: context.labels.code.copyLabel,
10437
- copiedLabel: context.labels.code.copiedLabel
11162
+ copiedLabel: context.labels.code.copiedLabel,
11163
+ toolbarLabels: context.labels.code.toolbarLabels
10438
11164
  }, key);
10439
11165
  }
10440
11166
  /** A list is loose when it or any of its items is spread; every item then keeps its paragraphs. */
@@ -10560,12 +11286,14 @@ function renderAnchor(url, children, key, glyph = true, streaming = false) {
10560
11286
  return renderSafeLink(normalizeUri(url), children, key, glyph);
10561
11287
  }
10562
11288
  function MarkdownFileLink({ file, glyph, children }) {
10563
- const { openFile } = useMarkdownDelegate();
11289
+ const { openFile, fileImages } = useMarkdownDelegate();
10564
11290
  if (openFile === void 0) return jsx(Fragment, { children });
10565
- return jsxs("button", {
11291
+ const preview = glyph && classifyLinkPath(file.path) === "image" ? fileImages : void 0;
11292
+ const src = preview?.resolve(file.path);
11293
+ const anchor = jsxs("button", {
10566
11294
  type: "button",
10567
11295
  className: clsx(markdownCss.fileMention, markdownCss.fileLink),
10568
- title: file.path,
11296
+ title: src === void 0 ? file.path : void 0,
10569
11297
  onClick: () => {
10570
11298
  openFile(file.path, file.line === void 0 ? void 0 : { line: file.line });
10571
11299
  },
@@ -10574,6 +11302,20 @@ function MarkdownFileLink({ file, glyph, children }) {
10574
11302
  className: markdownCss.linkIcon
10575
11303
  }), children]
10576
11304
  });
11305
+ if (src === void 0 || preview === void 0) return anchor;
11306
+ return jsx(HoverCard, {
11307
+ inline: true,
11308
+ anchor,
11309
+ content: jsxs(Fragment, { children: [jsx(ImagePreview, {
11310
+ src,
11311
+ alt: file.path,
11312
+ loadingLabel: preview.labels.loading,
11313
+ failedLabel: preview.labels.failed
11314
+ }), jsx("span", {
11315
+ className: markdownCss.previewName,
11316
+ children: file.path.split(/[\\/]/u).pop()
11317
+ })] })
11318
+ });
10577
11319
  }
10578
11320
  /**
10579
11321
  * The complete inline-code value when it is exactly an absolute HTTP(S) URL
@@ -10589,25 +11331,40 @@ function inlineCodeHttpUrl(value) {
10589
11331
  }
10590
11332
  }
10591
11333
  function renderImage(url, alt, key, context) {
10592
- const imageSrc = imageSource(url, context.pathImages);
10593
- if (imageSrc === void 0) return jsx("span", {
11334
+ return jsx(MarkdownImage, {
11335
+ destination: url,
11336
+ alt,
11337
+ pathImages: context.pathImages,
11338
+ streaming: context.streaming,
11339
+ inLink: context.inLink === true
11340
+ }, `${key}:${url}`);
11341
+ }
11342
+ function MarkdownImage({ destination, alt, pathImages, streaming, inLink }) {
11343
+ const { fileImages } = useMarkdownDelegate();
11344
+ const file = streaming ? void 0 : parseFileLink(destination);
11345
+ const src = (file === void 0 ? void 0 : fileImages?.resolve(file.path)) ?? imageSource(destination, pathImages);
11346
+ if (src === void 0) return jsx("span", {
10594
11347
  className: markdownCss.imageAlt,
10595
11348
  children: alt
10596
- }, key);
10597
- return jsx(MarkdownImage, {
10598
- src: imageSrc,
11349
+ });
11350
+ return jsx(LoadedMarkdownImage, {
11351
+ src,
10599
11352
  alt,
10600
- destination: url
10601
- }, `${key}:${imageSrc}`);
11353
+ destination,
11354
+ preview: inLink ? void 0 : fileImages
11355
+ }, src);
10602
11356
  }
10603
- /** Failed loads retain the authored alt or destination; a new source remounts the image. */
10604
- function MarkdownImage({ src, alt, destination }) {
11357
+ function LoadedMarkdownImage({ src, alt, destination, preview }) {
10605
11358
  const [failed, setFailed] = useState(false);
10606
- if (failed) return jsx("span", {
11359
+ const [open, setOpen] = useState(false);
11360
+ const close = useCallback(() => {
11361
+ setOpen(false);
11362
+ }, []);
11363
+ if (failed) return jsxs("span", {
10607
11364
  className: markdownCss.imageAlt,
10608
- children: alt || destination
11365
+ children: [preview === void 0 ? "" : `${preview.labels.failed} · `, alt || destination]
10609
11366
  });
10610
- return jsx("img", {
11367
+ const img = jsx("img", {
10611
11368
  className: markdownCss.image,
10612
11369
  src,
10613
11370
  alt,
@@ -10618,6 +11375,22 @@ function MarkdownImage({ src, alt, destination }) {
10618
11375
  decoding: "async",
10619
11376
  referrerPolicy: "no-referrer"
10620
11377
  });
11378
+ if (preview === void 0) return img;
11379
+ return jsxs(Fragment, { children: [jsx("button", {
11380
+ type: "button",
11381
+ className: markdownCss.imageButton,
11382
+ title: preview.labels.open,
11383
+ "aria-label": alt ? `${preview.labels.open}: ${alt}` : preview.labels.open,
11384
+ onClick: () => {
11385
+ setOpen(true);
11386
+ },
11387
+ children: img
11388
+ }), open && jsx(ImageLightbox, {
11389
+ src,
11390
+ alt,
11391
+ labels: preview.labels,
11392
+ onClose: close
11393
+ })] });
10621
11394
  }
10622
11395
  /** The bracketed source text a reference reverts to when its definition is missing. */
10623
11396
  function referenceSuffix(node) {
@@ -10924,7 +11697,7 @@ function SafeLink({ url, label, className }) {
10924
11697
  children: [jsx(LinkIconMedium, {
10925
11698
  kind: "url",
10926
11699
  href,
10927
- className: css$30.linkIcon
11700
+ className: css$33.linkIcon
10928
11701
  }), label]
10929
11702
  });
10930
11703
  }
@@ -10939,20 +11712,20 @@ function SafeLink({ url, label, className }) {
10939
11712
  */
10940
11713
  function SourceItem({ source, ordinal }) {
10941
11714
  return jsxs("li", {
10942
- className: css$30.source,
11715
+ className: css$33.source,
10943
11716
  value: ordinal,
10944
11717
  children: [
10945
11718
  jsx(SafeLink, {
10946
11719
  url: source.url,
10947
11720
  label: linkLabel(source.url, source.title),
10948
- className: css$30.sourceLink
11721
+ className: css$33.sourceLink
10949
11722
  }),
10950
11723
  source.snippet !== void 0 && source.snippet !== "" && jsx("div", {
10951
- className: css$30.snippet,
11724
+ className: css$33.snippet,
10952
11725
  children: source.snippet
10953
11726
  }),
10954
11727
  source.publishedAt !== void 0 && source.publishedAt !== "" && jsx("div", {
10955
- className: css$30.published,
11728
+ className: css$33.published,
10956
11729
  children: source.publishedAt
10957
11730
  })
10958
11731
  ]
@@ -10967,28 +11740,28 @@ function SourceItem({ source, ordinal }) {
10967
11740
  function WebSearchBlock({ answer, sources, truncated, labels, className }) {
10968
11741
  const empty = (answer === void 0 || answer === "") && sources.length === 0;
10969
11742
  return jsxs("div", {
10970
- className: clsx(css$30.block, className),
11743
+ className: clsx(css$33.block, className),
10971
11744
  "data-web": "search",
10972
11745
  children: [
10973
11746
  answer !== void 0 && answer !== "" && jsx("div", {
10974
- className: css$30.answer,
11747
+ className: css$33.answer,
10975
11748
  children: jsx(MarkdownText, {
10976
11749
  text: answer,
10977
11750
  labels: labels.markdown
10978
11751
  })
10979
11752
  }),
10980
11753
  empty ? jsx("div", {
10981
- className: css$30.empty,
11754
+ className: css$33.empty,
10982
11755
  children: labels.noResults
10983
11756
  }) : jsx("ol", {
10984
- className: css$30.sources,
11757
+ className: css$33.sources,
10985
11758
  children: sources.map((source, index) => jsx(SourceItem, {
10986
11759
  source,
10987
11760
  ordinal: index + 1
10988
11761
  }, index))
10989
11762
  }),
10990
11763
  truncated && jsx("div", {
10991
- className: css$30.truncated,
11764
+ className: css$33.truncated,
10992
11765
  children: labels.sourcesTruncated
10993
11766
  })
10994
11767
  ]
@@ -11001,23 +11774,23 @@ function WebSearchBlock({ answer, sources, truncated, labels, className }) {
11001
11774
  */
11002
11775
  function WebFetchBlock({ url, statusCode, truncated, labels, className }) {
11003
11776
  return jsxs("div", {
11004
- className: clsx(css$30.block, css$30.fetch, className),
11777
+ className: clsx(css$33.block, css$33.fetch, className),
11005
11778
  "data-web": "fetch",
11006
11779
  children: [jsx(SafeLink, {
11007
11780
  url,
11008
11781
  label: url,
11009
- className: css$30.fetchUrl
11782
+ className: css$33.fetchUrl
11010
11783
  }), jsxs("div", {
11011
- className: css$30.fetchMeta,
11784
+ className: css$33.fetchMeta,
11012
11785
  children: [jsxs("span", {
11013
- className: css$30.status,
11786
+ className: css$33.status,
11014
11787
  children: [
11015
11788
  labels.http,
11016
11789
  " ",
11017
11790
  statusCode
11018
11791
  ]
11019
11792
  }), truncated && jsx("span", {
11020
- className: css$30.truncated,
11793
+ className: css$33.truncated,
11021
11794
  children: labels.contentTruncated
11022
11795
  })]
11023
11796
  })]
@@ -11051,10 +11824,10 @@ function JsonBlock({ label, payload, defaultOpen = false, truncatedLabel }) {
11051
11824
  truncatedLabel
11052
11825
  ]);
11053
11826
  return jsxs("div", {
11054
- className: css$31.root,
11827
+ className: css$34.root,
11055
11828
  children: [jsxs("button", {
11056
11829
  type: "button",
11057
- className: css$31.toggle,
11830
+ className: css$34.toggle,
11058
11831
  onClick: () => {
11059
11832
  setOpen((v) => !v);
11060
11833
  },
@@ -11064,7 +11837,7 @@ function JsonBlock({ label, payload, defaultOpen = false, truncatedLabel }) {
11064
11837
  label
11065
11838
  ]
11066
11839
  }), open && jsx("pre", {
11067
- className: css$31.body,
11840
+ className: css$34.body,
11068
11841
  children: body
11069
11842
  })]
11070
11843
  });
@@ -11152,7 +11925,7 @@ function extractMarkdownPlainText(markdown, options = {}) {
11152
11925
  * and duplicate document ids would make every `url(#…)` resolve to the first instance.
11153
11926
  */
11154
11927
  const useArtworkId = () => `dsh_plugin_art_${useId().replaceAll(":", "")}`;
11155
- /** Terminal plugin artwork (prompt chevron and cursor bar). */
11928
+ /** Light-blue terminal artwork shared by plugin cards and sidebar guide entries. */
11156
11929
  const PluginArtworkTerminal = ({ size = 36, className }) => jsxs("svg", {
11157
11930
  width: size,
11158
11931
  height: size,
@@ -11162,11 +11935,11 @@ const PluginArtworkTerminal = ({ size = 36, className }) => jsxs("svg", {
11162
11935
  xmlns: "http://www.w3.org/2000/svg",
11163
11936
  children: [jsx("path", {
11164
11937
  d: "M10 11L16.606 17.606C16.6841 17.6841 16.6841 17.8107 16.606 17.8888L10 24.4948",
11165
- stroke: "#145AF3",
11938
+ stroke: "#679EFE",
11166
11939
  strokeWidth: "3.5"
11167
11940
  }), jsx("path", {
11168
11941
  d: "M20.1211 24.4946H26.8685",
11169
- stroke: "#145AF3",
11942
+ stroke: "#679EFE",
11170
11943
  strokeWidth: "3.5"
11171
11944
  })]
11172
11945
  });
@@ -11340,6 +12113,71 @@ const PluginArtworkDefault = ({ size = 36, className }) => {
11340
12113
  });
11341
12114
  };
11342
12115
  //#endregion
11343
- export { BrandWordmark, Button, CODE_HIGHLIGHT_EXTENSIONS, Checkbox, CodeBlock, ConnectionIndicator, DEFAULT_DIFF_MAX_LINES, DEFAULT_READ_MAX_LINES, DEFAULT_SEARCH_MAX_LINES, DEFAULT_TERMINAL_MAX_LINES, DiffBlock, DisclosureRow, FISH_LOGO_PATH, FISH_LOGO_VIEWBOX, FileTypeIcon, FishLogo, HoverCard, ICON_MEDIUM_STROKE, ICON_REGULAR_STROKE, IconAgentPresetOutlineMedium, IconAgentPresetOutlineRegular, IconAlarmClockOutlineMedium, IconAlarmClockOutlineRegular, IconApiOutlineMedium, IconApiOutlineRegular, IconArchiveCheckOutlineMedium, IconArchiveCheckOutlineRegular, IconArchiveOutlineMedium, IconArchiveOutlineRegular, IconBranchOutlineMedium, IconBranchOutlineRegular, IconBrowseOutlineMedium, IconBrowseOutlineRegular, IconCheckCircleFillMedium, IconCheckCircleFillRegular, IconCheckCircleOutlineMedium, IconCheckCircleOutlineRegular, IconCheckOutlineMedium, IconCheckOutlineRegular, IconChecklistOutlineMedium, IconChecklistOutlineRegular, IconChevronDownOutlineMedium, IconChevronDownOutlineRegular, IconChevronLeftOutlineMedium, IconChevronLeftOutlineRegular, IconChevronRightOutlineMedium, IconChevronRightOutlineRegular, IconChevronUpOutlineMedium, IconChevronUpOutlineRegular, IconChevronsUpDownOutlineMedium, IconChevronsUpDownOutlineRegular, IconClockOutlineMedium, IconClockOutlineRegular, IconCloseCircleFillMedium, IconCloseCircleFillRegular, IconCloseFillMedium, IconCloseFillRegular, IconCloseOutlineMedium, IconCloseOutlineRegular, IconCodeOutlineMedium, IconCodeOutlineRegular, IconCompactOutlineMedium, IconCompactOutlineRegular, IconCompareSplitOutlineMedium, IconCompareSplitOutlineRegular, IconContextInjectionOutlineMedium, IconContextInjectionOutlineRegular, IconCopyOutlineMedium, IconCopyOutlineRegular, IconCordisPluginOutlineMedium, IconCordisPluginOutlineRegular, IconDarkOutlineMedium, IconDarkOutlineRegular, IconDataOutlineMedium, IconDataOutlineRegular, IconDatabaseOutlineMedium, IconDatabaseOutlineRegular, IconDeliverDocMedium, IconDeliverDocRegular, IconDislikeFillMedium, IconDislikeFillRegular, IconDislikeOutlineMedium, IconDislikeOutlineRegular, IconDownloadOutlineMedium, IconDownloadOutlineRegular, IconEditOutlineMedium, IconEditOutlineRegular, IconEllipsisOutlineMedium, IconEllipsisOutlineRegular, IconEnhanceOutlineMedium, IconEnhanceOutlineRegular, IconFlatListOutlineMedium, IconFlatListOutlineRegular, IconFolderCloseMedium, IconFolderCloseRegular, IconFolderOpenMedium, IconFolderOpenOutlineMedium, IconFolderOpenOutlineRegular, IconFolderOpenRegular, IconFollowsystemOutlineMedium, IconFollowsystemOutlineRegular, IconFullscreenOutlineMedium, IconFullscreenOutlineRegular, IconGaugeOutlineMedium, IconGaugeOutlineRegular, IconGlobeOutlineMedium, IconGlobeOutlineRegular, IconGoalOutlineMedium, IconGoalOutlineRegular, IconInfoOutlineMedium, IconInfoOutlineRegular, IconInspectOutlineMedium, IconInspectOutlineRegular, IconLightOutlineMedium, IconLightOutlineRegular, IconLikeFillMedium, IconLikeFillRegular, IconLikeOutlineMedium, IconLikeOutlineRegular, IconLinkOutlineMedium, IconLinkOutlineRegular, IconListPenOutlineMedium, IconListPenOutlineRegular, IconLoadingOutlineMedium, IconLoadingOutlineRegular, IconMicrophoneOutlineMedium, IconMicrophoneOutlineRegular, IconNewChatOutlineMedium, IconNewChatOutlineRegular, IconNowrapFillMedium, IconNowrapFillRegular, IconPanelLeftOutlineMedium, IconPanelLeftOutlineRegular, IconPaperPlaneOutlineMedium, IconPaperPlaneOutlineRegular, IconPaperclipOutlineMedium, IconPaperclipOutlineRegular, IconPauseOutlineMedium, IconPauseOutlineRegular, IconPersonalizationOutlineMedium, IconPersonalizationOutlineRegular, IconPinFillMedium, IconPinFillRegular, IconPinOutlineMedium, IconPinOutlineRegular, IconPlanOutlineMedium, IconPlanOutlineRegular, IconPlayOutlineMedium, IconPlayOutlineRegular, IconPluginPinwheelOutlineMedium, IconPluginPinwheelOutlineRegular, IconPlusOutlineMedium, IconPlusOutlineRegular, IconProjectAddOutlineMedium, IconProjectAddOutlineRegular, IconQuestionOutlineMedium, IconQuestionOutlineRegular, IconQueueOutlineMedium, IconQueueOutlineRegular, IconRefreshOutlineMedium, IconRefreshOutlineRegular, IconRightUpOutlineMedium, IconRightUpOutlineRegular, IconSearchOutlineMedium, IconSearchOutlineRegular, IconSendOutlineMedium, IconSendOutlineRegular, IconSettingsOutlineMedium, IconSettingsOutlineRegular, IconShareOutlineMedium, IconShareOutlineRegular, IconShieldOutlineMedium, IconShieldOutlineRegular, IconSkillOutlineMedium, IconSkillOutlineRegular, IconSlidersTwoOutlineMedium, IconSlidersTwoOutlineRegular, IconSparkleMedium, IconSparkleRegular, IconStopFillMedium, IconStopFillRegular, IconThinkOutlineMedium, IconThinkOutlineRegular, IconTrashOutlineMedium, IconTrashOutlineRegular, IconTreeCornerMedium, IconTreeCornerRegular, IconTriangleRightFillMedium, IconTriangleRightFillRegular, IconUnarchiveOutlineMedium, IconUnarchiveOutlineRegular, IconUserOutlineMedium, IconUserOutlineRegular, IconWarningOutlineMedium, IconWarningOutlineRegular, IconWarningTriangleOutlineMedium, IconWarningTriangleOutlineRegular, IconWorkspaceTreeOutlineMedium, IconWorkspaceTreeOutlineRegular, IconWrapFillMedium, IconWrapFillRegular, IconWrapLinesOutlineMedium, IconWrapLinesOutlineRegular, Input, JsonBlock, JsonTree, LinkIconMedium, LinkIconRegular, MarkdownDelegateProvider, MarkdownText, Menu, MenuItemButton, Modal, OnboardingSurface, PathLabel, PermissionIconFullAccessMedium, PermissionIconFullAccessRegular, PermissionIconReadOnlyMedium, PermissionIconReadOnlyRegular, PermissionIconWorkspaceWriteMedium, PermissionIconWorkspaceWriteRegular, Pill, PluginArtworkDefault, PluginArtworkLoop, PluginArtworkSearch, PluginArtworkSubagent, PluginArtworkTerminal, ReadBlock, ReferenceIconMedium, ReferenceIconRegular, RiskConfirmation, SHIELD_OUTLINE_PATH, SearchBlock, SegmentedControl, SegmentedTabs, SettingsForm, SettingsFormModel, SettingsSecretField, SettingsValueField, StateDot, Switch, Tag, TerminalBlock, TextShimmer, Toast, Tooltip, WebBlock, classifyFileType, classifyLinkPath, diffTotals, extractMarkdownPlainText, fileExtension, fileSizeText, isDarwinDesktop, languageForPath, projectUserText, rankByName, relativeTime, settingsNumberField, settingsTextField, useAnchoredMaxHeight, useAnchoredPosition, useCodeHighlighter, useDismissOnOutsidePointer, writeClipboard };
12116
+ //#region lib/types/guide-artwork.js
12117
+ /**
12118
+ * Render fixed-palette artwork for a sidebar guide entry.
12119
+ * @param props - canvas size and layout class supplied by the guide.
12120
+ * @returns an ornamental SVG hidden from assistive technology.
12121
+ */
12122
+ function GuideArtworkBrowser({ size = 36, className }) {
12123
+ return jsxs("svg", {
12124
+ width: size,
12125
+ height: size,
12126
+ className,
12127
+ "aria-hidden": "true",
12128
+ viewBox: "0 0 36 36",
12129
+ fill: "none",
12130
+ xmlns: "http://www.w3.org/2000/svg",
12131
+ children: [
12132
+ jsx("path", {
12133
+ d: "M17.9995 28.1465C23.6034 28.1465 28.1461 23.6038 28.1461 18C28.1461 12.3963 23.6034 7.85352 17.9995 7.85352C12.3958 7.85352 7.85303 12.3963 7.85303 18C7.85303 23.6038 12.3958 28.1465 17.9995 28.1465Z",
12134
+ stroke: "#539CFA",
12135
+ strokeWidth: "2"
12136
+ }),
12137
+ jsx("path", {
12138
+ d: "M8.57764 18H27.4211",
12139
+ stroke: "#539CFA",
12140
+ strokeWidth: "2",
12141
+ strokeLinecap: "square"
12142
+ }),
12143
+ jsx("path", {
12144
+ d: "M17.999 28.1467C20.0576 28.1467 21.6228 23.6039 21.6228 18C21.6228 12.3963 20.0576 7.85352 17.999 7.85352",
12145
+ stroke: "#539CFA",
12146
+ strokeWidth: "2"
12147
+ }),
12148
+ jsx("path", {
12149
+ d: "M17.9992 28.1467C15.9407 28.1467 14.3755 23.6039 14.3755 18C14.3755 12.3963 15.9407 7.85352 17.9992 7.85352",
12150
+ stroke: "#539CFA",
12151
+ strokeWidth: "2"
12152
+ })
12153
+ ]
12154
+ });
12155
+ }
12156
+ /**
12157
+ * Render fixed-palette artwork for a sidebar guide entry.
12158
+ * @param props - canvas size and layout class supplied by the guide.
12159
+ * @returns an ornamental SVG hidden from assistive technology.
12160
+ */
12161
+ function GuideArtworkFiles({ size = 36, className }) {
12162
+ return jsxs("svg", {
12163
+ width: size,
12164
+ height: size,
12165
+ className,
12166
+ "aria-hidden": "true",
12167
+ viewBox: "0 0 36 36",
12168
+ fill: "none",
12169
+ xmlns: "http://www.w3.org/2000/svg",
12170
+ children: [jsx("path", {
12171
+ d: "M10.7603 27.922H24.6817C26.3441 27.922 27.1753 27.922 27.8102 27.5984C28.3687 27.3139 28.8228 26.8598 29.1074 26.3012C29.4309 25.6663 29.4309 24.8351 29.4309 23.1727V15.4936",
12172
+ stroke: "#FFCD78",
12173
+ strokeWidth: "1.97886"
12174
+ }), jsx("path", {
12175
+ d: "M13.1597 8.07812C13.4182 8.07818 13.6727 8.14336 13.8989 8.26855L16.7554 9.84961C16.9817 9.97485 17.2369 10.041 17.4956 10.041H26.106C26.9492 10.0412 27.6323 10.7251 27.6323 11.5684V24.5371C27.6323 25.3805 26.9483 26.0645 26.105 26.0645H8.09619C7.25281 26.0645 6.56884 25.3805 6.56885 24.5371V9.60449C6.56909 8.76133 7.25297 8.07812 8.09619 8.07812H13.1597ZM9.81592 14.5508V16.5293H24.3999V14.5508H9.81592Z",
12176
+ fill: "#FFBC4D"
12177
+ })]
12178
+ });
12179
+ }
12180
+ //#endregion
12181
+ export { BrandWordmark, Button, CODE_HIGHLIGHT_EXTENSIONS, Checkbox, CodeBlock, ConnectionIndicator, DEFAULT_DIFF_MAX_LINES, DEFAULT_READ_MAX_LINES, DEFAULT_SEARCH_MAX_LINES, DEFAULT_TERMINAL_MAX_LINES, DiffBlock, DisclosureRow, FISH_LOGO_PATH, FISH_LOGO_VIEWBOX, FileTypeIcon, FishLogo, GuideArtworkBrowser, GuideArtworkFiles, HoverCard, ICON_MEDIUM_STROKE, ICON_REGULAR_STROKE, IconAgentPresetOutlineMedium, IconAgentPresetOutlineRegular, IconAlarmClockOutlineMedium, IconAlarmClockOutlineRegular, IconApiOutlineMedium, IconApiOutlineRegular, IconArchiveCheckOutlineMedium, IconArchiveCheckOutlineRegular, IconArchiveOffOutlineMedium, IconArchiveOffOutlineRegular, IconArchiveOutlineMedium, IconArchiveOutlineRegular, IconBranchOutlineMedium, IconBranchOutlineRegular, IconBrowseOutlineMedium, IconBrowseOutlineRegular, IconCheckCircleFillMedium, IconCheckCircleFillRegular, IconCheckCircleOutlineMedium, IconCheckCircleOutlineRegular, IconCheckOutlineMedium, IconCheckOutlineRegular, IconChecklistOutlineMedium, IconChecklistOutlineRegular, IconChevronDownOutlineMedium, IconChevronDownOutlineRegular, IconChevronLeftOutlineMedium, IconChevronLeftOutlineRegular, IconChevronRightOutlineMedium, IconChevronRightOutlineRegular, IconChevronUpOutlineMedium, IconChevronUpOutlineRegular, IconChevronsUpDownOutlineMedium, IconChevronsUpDownOutlineRegular, IconClockOutlineMedium, IconClockOutlineRegular, IconCloseCircleFillMedium, IconCloseCircleFillRegular, IconCloseFillMedium, IconCloseFillRegular, IconCloseOutlineMedium, IconCloseOutlineRegular, IconCodeOutlineMedium, IconCodeOutlineRegular, IconCompactOutlineMedium, IconCompactOutlineRegular, IconCompareSplitOutlineMedium, IconCompareSplitOutlineRegular, IconContextInjectionOutlineMedium, IconContextInjectionOutlineRegular, IconCopyOutlineMedium, IconCopyOutlineRegular, IconCordisPluginOutlineMedium, IconCordisPluginOutlineRegular, IconDarkOutlineMedium, IconDarkOutlineRegular, IconDataOutlineMedium, IconDataOutlineRegular, IconDatabaseOutlineMedium, IconDatabaseOutlineRegular, IconDeliverDocMedium, IconDeliverDocRegular, IconDislikeFillMedium, IconDislikeFillRegular, IconDislikeOutlineMedium, IconDislikeOutlineRegular, IconDownloadOutlineMedium, IconDownloadOutlineRegular, IconEditOutlineMedium, IconEditOutlineRegular, IconEllipsisOutlineMedium, IconEllipsisOutlineRegular, IconEnhanceOutlineMedium, IconEnhanceOutlineRegular, IconFlatListOutlineMedium, IconFlatListOutlineRegular, IconFolderCloseMedium, IconFolderCloseRegular, IconFolderOpenMedium, IconFolderOpenOutlineMedium, IconFolderOpenOutlineRegular, IconFolderOpenRegular, IconFollowsystemOutlineMedium, IconFollowsystemOutlineRegular, IconFullscreenOutlineMedium, IconFullscreenOutlineRegular, IconGaugeOutlineMedium, IconGaugeOutlineRegular, IconGlobeOutlineMedium, IconGlobeOutlineRegular, IconGoalOutlineMedium, IconGoalOutlineRegular, IconInfoOutlineMedium, IconInfoOutlineRegular, IconInspectOutlineMedium, IconInspectOutlineRegular, IconLightOutlineMedium, IconLightOutlineRegular, IconLikeFillMedium, IconLikeFillRegular, IconLikeOutlineMedium, IconLikeOutlineRegular, IconLinkOutlineMedium, IconLinkOutlineRegular, IconListPenOutlineMedium, IconListPenOutlineRegular, IconLoadingOutlineMedium, IconLoadingOutlineRegular, IconMicrophoneOutlineMedium, IconMicrophoneOutlineRegular, IconNewChatOutlineMedium, IconNewChatOutlineRegular, IconNowrapFillMedium, IconNowrapFillRegular, IconPanelLeftOutlineMedium, IconPanelLeftOutlineRegular, IconPaperPlaneOutlineMedium, IconPaperPlaneOutlineRegular, IconPaperclipOutlineMedium, IconPaperclipOutlineRegular, IconPauseOutlineMedium, IconPauseOutlineRegular, IconPersonalizationOutlineMedium, IconPersonalizationOutlineRegular, IconPinFillMedium, IconPinFillRegular, IconPinOutlineMedium, IconPinOutlineRegular, IconPlanOutlineMedium, IconPlanOutlineRegular, IconPlayOutlineMedium, IconPlayOutlineRegular, IconPluginPinwheelOutlineMedium, IconPluginPinwheelOutlineRegular, IconPlusOutlineMedium, IconPlusOutlineRegular, IconProjectAddOutlineMedium, IconProjectAddOutlineRegular, IconQuestionOutlineMedium, IconQuestionOutlineRegular, IconQueueOutlineMedium, IconQueueOutlineRegular, IconRefreshOutlineMedium, IconRefreshOutlineRegular, IconRightUpOutlineMedium, IconRightUpOutlineRegular, IconSearchOutlineMedium, IconSearchOutlineRegular, IconSendOutlineMedium, IconSendOutlineRegular, IconSettingsOutlineMedium, IconSettingsOutlineRegular, IconShareOutlineMedium, IconShareOutlineRegular, IconShieldOutlineMedium, IconShieldOutlineRegular, IconSkillOutlineMedium, IconSkillOutlineRegular, IconSlidersTwoOutlineMedium, IconSlidersTwoOutlineRegular, IconSparkleMedium, IconSparkleRegular, IconStopFillMedium, IconStopFillRegular, IconThinkOutlineMedium, IconThinkOutlineRegular, IconTrashOutlineMedium, IconTrashOutlineRegular, IconTreeCornerMedium, IconTreeCornerRegular, IconTriangleRightFillMedium, IconTriangleRightFillRegular, IconUnarchiveOutlineMedium, IconUnarchiveOutlineRegular, IconUserOutlineMedium, IconUserOutlineRegular, IconUsersOutlineMedium, IconUsersOutlineRegular, IconWarningOutlineMedium, IconWarningOutlineRegular, IconWarningTriangleOutlineMedium, IconWarningTriangleOutlineRegular, IconWorkspaceTreeOutlineMedium, IconWorkspaceTreeOutlineRegular, IconWrapFillMedium, IconWrapFillRegular, IconWrapLinesOutlineMedium, IconWrapLinesOutlineRegular, ImageLightbox, Input, JsonBlock, JsonTree, LinkIconMedium, LinkIconRegular, MarkdownDelegateProvider, MarkdownText, Menu, MenuItemButton, MenuSurface, Modal, PathLabel, PermissionIconFullAccessMedium, PermissionIconFullAccessRegular, PermissionIconReadOnlyMedium, PermissionIconReadOnlyRegular, PermissionIconWorkspaceWriteMedium, PermissionIconWorkspaceWriteRegular, Pill, PluginArtworkDefault, PluginArtworkLoop, PluginArtworkSearch, PluginArtworkSubagent, PluginArtworkTerminal, ReadBlock, ReferenceIconMedium, ReferenceIconRegular, RiskConfirmation, SHIELD_OUTLINE_PATH, SearchBlock, SegmentedControl, SegmentedTabs, SettingsForm, SettingsFormModel, SettingsSecretField, SettingsValueField, ShortcutKeys, StateDot, Switch, Tag, TerminalBlock, TextShimmer, Toast, Tooltip, WebBlock, classifyFileType, classifyLinkPath, closeTopModal, diffTotals, extractMarkdownPlainText, fileExtension, fileSizeText, focusWithoutRing, isBehindModal, isDarwinDesktop, languageForPath, modalSelector, observeComposition, projectUserText, rankByName, relativeTime, settingsNumberField, settingsTextField, useAnchoredMaxHeight, useAnchoredPosition, useCodeHighlighter, useDismissOnOutsidePointer, useModalLayer, writeClipboard };
11344
12182
 
11345
12183
  //# sourceMappingURL=index.js.map