@songtonyli/dsh-cli 0.1.40 → 0.1.42

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 (1235) 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 +474 -66
  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 +511 -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/package.json +26 -26
  652. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
  653. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
  654. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
  655. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
  656. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
  657. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
  658. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
  659. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
  660. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
  661. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
  662. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
  663. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
  664. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
  665. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
  666. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
  667. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
  668. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
  669. package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
  670. package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
  671. package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
  672. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
  673. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
  674. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
  675. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
  676. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
  677. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  678. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
  679. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  680. package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
  681. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  682. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
  683. package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
  684. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
  685. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
  686. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
  687. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
  688. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  689. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
  690. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
  691. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
  692. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
  693. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
  694. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
  695. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
  696. package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
  697. package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
  698. package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
  699. package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
  700. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  701. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
  702. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  703. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
  704. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
  705. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
  706. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
  707. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
  708. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  709. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
  710. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  711. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
  712. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  713. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
  714. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
  715. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
  716. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  717. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
  718. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
  719. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
  720. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
  721. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
  722. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
  723. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
  724. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
  725. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
  726. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
  727. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
  728. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
  729. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
  730. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
  731. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
  732. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
  733. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  734. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
  735. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  736. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
  737. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  738. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
  739. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  740. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
  741. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  742. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
  743. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
  744. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  745. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
  746. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
  747. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
  748. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
  749. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  750. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
  751. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  752. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
  753. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  754. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
  755. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  756. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
  757. package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
  758. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
  759. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
  760. package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
  761. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
  762. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
  763. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
  764. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
  765. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
  766. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
  767. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
  768. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
  769. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
  770. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
  771. package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
  772. package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
  773. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  774. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
  775. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
  776. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
  777. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
  778. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  779. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  780. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
  781. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
  782. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  783. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
  784. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  785. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
  786. package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
  787. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
  788. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +89 -0
  789. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
  790. package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
  791. package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
  792. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
  793. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  794. package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
  795. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  796. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
  797. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  798. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
  799. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  800. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
  801. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  802. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/README.i18n.yaml +78 -5
  803. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  804. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +90 -5
  805. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
  806. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
  807. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  808. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
  809. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
  810. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
  811. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
  812. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
  813. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
  814. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
  815. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
  816. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
  817. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  818. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
  819. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
  820. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
  821. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
  822. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
  823. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
  824. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
  825. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
  826. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
  827. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
  828. package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
  829. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
  830. package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
  831. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  832. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
  833. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
  834. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  835. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
  836. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  837. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
  838. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  839. package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
  840. package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
  841. package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
  842. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
  843. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  844. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
  845. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  846. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
  847. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
  848. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  849. package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
  850. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  851. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
  852. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  853. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
  854. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  855. package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
  856. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  857. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
  858. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
  859. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
  860. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  861. package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
  862. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  863. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
  864. package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
  865. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
  866. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  867. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
  868. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  869. package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
  870. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  871. package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
  872. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  873. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
  874. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  875. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
  876. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
  877. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
  878. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
  879. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
  880. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
  881. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
  882. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
  883. package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
  884. package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
  885. package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
  886. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  887. package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
  888. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  889. package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
  890. package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
  891. package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
  892. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
  893. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
  894. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
  895. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
  896. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
  897. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
  898. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  899. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
  900. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  901. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
  902. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
  903. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  904. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
  905. package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
  906. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
  907. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
  908. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
  909. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
  910. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
  911. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
  912. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
  913. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
  914. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  915. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +81 -5
  916. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  917. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
  918. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  919. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
  920. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
  921. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
  922. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  923. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
  924. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
  925. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
  926. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
  927. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
  928. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
  929. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  930. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  931. package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
  932. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  933. package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
  934. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  935. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
  936. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  937. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
  938. package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
  939. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
  940. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
  941. package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
  942. package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
  943. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  944. package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
  945. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
  946. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  947. package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
  948. package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
  949. package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
  950. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
  951. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
  952. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
  953. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  954. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
  955. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
  956. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
  957. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
  958. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  959. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
  960. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
  961. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
  962. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
  963. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  964. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
  965. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
  966. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
  967. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
  968. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
  969. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
  970. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +9 -73
  971. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
  972. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
  973. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
  974. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
  975. package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
  976. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  977. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
  978. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
  979. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
  980. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
  981. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  982. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
  983. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
  984. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
  985. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
  986. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  987. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
  988. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  989. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  990. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
  991. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
  992. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  993. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
  994. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
  995. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
  996. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
  997. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  998. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
  999. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
  1000. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
  1001. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
  1002. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
  1003. package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
  1004. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1005. package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
  1006. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
  1007. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1008. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
  1009. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
  1010. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
  1011. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
  1012. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1013. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1014. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
  1015. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
  1016. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
  1017. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1018. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1019. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
  1020. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
  1021. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
  1022. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1023. package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
  1024. package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
  1025. package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
  1026. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
  1027. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
  1028. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1029. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
  1030. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
  1031. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
  1032. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
  1033. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
  1034. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
  1035. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
  1036. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
  1037. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
  1038. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
  1039. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
  1040. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
  1041. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
  1042. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
  1043. package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
  1044. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
  1045. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
  1046. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
  1047. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1048. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
  1049. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1050. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
  1051. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
  1052. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
  1053. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +16 -1
  1054. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
  1055. package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
  1056. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1057. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
  1058. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  1059. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
  1060. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1061. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
  1062. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
  1063. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
  1064. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1065. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
  1066. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1067. package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
  1068. package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
  1069. package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
  1070. package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
  1071. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
  1072. package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
  1073. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1074. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
  1075. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1076. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
  1077. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1078. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
  1079. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
  1080. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
  1081. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
  1082. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
  1083. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1084. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
  1085. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1086. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
  1087. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  1088. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  1089. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
  1090. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
  1091. package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
  1092. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
  1093. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1094. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
  1095. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
  1096. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
  1097. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
  1098. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
  1099. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
  1100. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
  1101. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
  1102. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
  1103. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
  1104. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
  1105. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
  1106. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
  1107. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
  1108. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
  1109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
  1110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
  1111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
  1112. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
  1113. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
  1114. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
  1115. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
  1116. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
  1117. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
  1119. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
  1120. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
  1121. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
  1122. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
  1123. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
  1124. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
  1125. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
  1126. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
  1127. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
  1128. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
  1129. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
  1130. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
  1131. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
  1132. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
  1133. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
  1134. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
  1135. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
  1136. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
  1137. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
  1138. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
  1139. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  1140. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
  1141. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
  1142. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
  1143. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
  1144. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1145. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
  1146. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1147. package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
  1148. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1149. package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
  1150. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1151. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
  1152. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1153. package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
  1154. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1155. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
  1156. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
  1157. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
  1158. package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
  1159. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
  1160. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
  1161. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
  1162. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1163. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
  1164. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1165. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
  1166. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
  1167. package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
  1168. package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
  1169. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
  1170. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
  1171. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
  1172. package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
  1173. package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
  1174. package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
  1175. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1176. package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  1177. package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  1178. package/node_modules/@js-temporal/polyfill/README.md +90 -0
  1179. package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  1180. package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  1181. package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  1182. package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  1183. package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  1184. package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  1185. package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  1186. package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  1187. package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  1188. package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  1189. package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  1190. package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  1191. package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  1192. package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  1193. package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  1194. package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  1195. package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  1196. package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  1197. package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  1198. package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  1199. package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  1200. package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  1201. package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  1202. package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  1203. package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  1204. package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  1205. package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  1206. package/node_modules/@js-temporal/polyfill/package.json +125 -0
  1207. package/node_modules/fflate/CHANGELOG.md +0 -10
  1208. package/node_modules/fflate/LICENSE +1 -1
  1209. package/node_modules/fflate/README.md +10 -10
  1210. package/node_modules/fflate/esm/browser.js +55 -82
  1211. package/node_modules/fflate/esm/index.mjs +56 -87
  1212. package/node_modules/fflate/lib/browser.cjs +77 -106
  1213. package/node_modules/fflate/lib/index.cjs +77 -106
  1214. package/node_modules/fflate/lib/node-worker.cjs +1 -5
  1215. package/node_modules/fflate/lib/node.cjs +78 -111
  1216. package/node_modules/fflate/package.json +10 -11
  1217. package/node_modules/fflate/umd/index.js +1 -1
  1218. package/node_modules/jsbi/LICENSE +176 -0
  1219. package/node_modules/jsbi/README.md +173 -0
  1220. package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  1221. package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  1222. package/node_modules/jsbi/dist/jsbi.mjs +2 -0
  1223. package/node_modules/jsbi/package.json +25 -0
  1224. package/package.json +305 -289
  1225. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
  1226. package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
  1227. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
  1228. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
  1229. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
  1230. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
  1231. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
  1232. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
  1233. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
  1234. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
  1235. /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
@@ -1,10 +1,11 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { parentPort, workerData } from "node:worker_threads";
3
- import { closeSync, constants, fstatSync, mkdirSync, openSync, readFileSync, readSync, readdirSync, realpathSync, statSync, writeFileSync } from "node:fs";
4
- import { basename, dirname, extname, join } from "node:path";
5
- import { strFromU8, unzipSync } from "fflate";
3
+ import { closeSync, constants, fstatSync, mkdirSync, openSync, readFileSync, readSync, writeFileSync } from "node:fs";
4
+ import { basename, extname, join } from "node:path";
5
+ import { strFromU8, unzipSync, zlibSync } from "fflate";
6
6
  import { SaxesParser } from "saxes";
7
7
  import { create } from "fontkit";
8
+ import { createHash } from "node:crypto";
8
9
  //#region lib/types/errors.js
9
10
  /** Stable render failure categories shared across the Node worker and native helper transports. */
10
11
  const CODES = /* @__PURE__ */ new Set([
@@ -44,13 +45,6 @@ function failureCode(error) {
44
45
  //#endregion
45
46
  //#region lib/types/fonts.js
46
47
  /** Host font metadata snapshots and conversion-local glyph matching over original files. */
47
- const FONT_EXTENSIONS = /* @__PURE__ */ new Set([
48
- ".ttf",
49
- ".otf",
50
- ".ttc",
51
- ".otc",
52
- ".dfont"
53
- ]);
54
48
  const VCL_WEIGHTS = [
55
49
  400,
56
50
  100,
@@ -82,18 +76,6 @@ const STAT_KEYS = [
82
76
  "ctimeMs"
83
77
  ];
84
78
  /**
85
- * @param error - Thrown filesystem value.
86
- * @returns whether it means the path is not a usable font source.
87
- */
88
- function absent(error) {
89
- return error instanceof Error && "code" in error && [
90
- "ENOENT",
91
- "EACCES",
92
- "EPERM",
93
- "ENOTDIR"
94
- ].includes(String(error.code));
95
- }
96
- /**
97
79
  * Case- and separator-insensitive family key used to compare names across sources.
98
80
  * @param value - Family, style, or postscript name as recorded by a document or font.
99
81
  * @returns The normalized key.
@@ -122,38 +104,6 @@ function fontFamilyPriority(requested, groups, pitch = 0, symbols = false) {
122
104
  }
123
105
  return [...priority.values()];
124
106
  }
125
- function fontPaths(directories, maxFiles) {
126
- const pending = [...directories].reverse();
127
- const visited = /* @__PURE__ */ new Set();
128
- const paths = [];
129
- for (let path = pending.pop(); path !== void 0; path = pending.pop()) {
130
- let canonical;
131
- let status;
132
- try {
133
- canonical = realpathSync(path);
134
- status = statSync(canonical);
135
- } catch (error) {
136
- if (absent(error)) continue;
137
- throw error;
138
- }
139
- if (visited.has(canonical)) continue;
140
- visited.add(canonical);
141
- if (status.isDirectory()) {
142
- let names;
143
- try {
144
- names = readdirSync(canonical);
145
- } catch (error) {
146
- if (absent(error)) continue;
147
- throw error;
148
- }
149
- pending.push(...names.sort().reverse().map((name) => join(canonical, name)));
150
- } else if (status.isFile() && FONT_EXTENSIONS.has(extname(canonical).toLowerCase())) {
151
- if (paths.length >= maxFiles) throw new Error("The system font catalog exceeds maxFontFiles.");
152
- paths.push(canonical);
153
- }
154
- }
155
- return paths;
156
- }
157
107
  function ranges(font) {
158
108
  const points = font.characterSet.filter((point) => font.hasGlyphForCodePoint(point)).sort((left, right) => left - right);
159
109
  const result = [];
@@ -193,80 +143,6 @@ function covers(face, points) {
193
143
  const coverage = face.coverage;
194
144
  return points.filter((point) => coverage.some(([first, last]) => point >= first && point <= last));
195
145
  }
196
- /**
197
- * VCL weight, width, and fixed-pitch values for one parsed face.
198
- * @param font - The parsed physical face, whose `OS/2` and `post` tables may be absent.
199
- * @returns the recorded classes, or the regular defaults for an absent table.
200
- */
201
- function faceMetrics(font) {
202
- const os2 = font["OS/2"];
203
- return {
204
- weight: os2 === void 0 ? 400 : os2.usWeightClass,
205
- width: os2 === void 0 ? 5 : os2.usWidthClass,
206
- fixed: Boolean(font.post?.isFixedPitch)
207
- };
208
- }
209
- function inspect(path, maxBytes) {
210
- let status;
211
- let bytes;
212
- try {
213
- const fd = openSync(path, constants.O_RDONLY | constants.O_NONBLOCK | constants.O_NOFOLLOW);
214
- try {
215
- status = fstatSync(fd);
216
- if (!status.isFile() || status.size > maxBytes) return [];
217
- bytes = Buffer.alloc(status.size);
218
- let offset = 0;
219
- while (offset < bytes.length) {
220
- const count = readSync(fd, bytes, offset, bytes.length - offset, offset);
221
- if (count === 0) throw new Error("A system font was truncated while indexing; reload the font service.");
222
- offset += count;
223
- }
224
- const after = fstatSync(fd);
225
- if (after.size !== status.size || after.mtimeMs !== status.mtimeMs || after.ctimeMs !== status.ctimeMs) throw new Error("A system font changed while indexing; reload the font service.");
226
- } finally {
227
- closeSync(fd);
228
- }
229
- } catch (error) {
230
- if (absent(error)) return [];
231
- throw error;
232
- }
233
- let faces;
234
- try {
235
- const parsed = create(bytes);
236
- faces = ("fonts" in parsed ? parsed.fonts : [parsed]).map((font, faceIndex) => {
237
- const names = [
238
- "fontFamily",
239
- "preferredFamily",
240
- "fullName",
241
- "postscriptName"
242
- ].flatMap((key) => Object.values(font.name?.records[key] ?? {})).filter((name) => typeof name === "string");
243
- const aliases = [...new Set([
244
- ...names,
245
- font.familyName,
246
- font.fullName,
247
- font.postscriptName
248
- ].filter((name) => Boolean(name)).map(normalize))];
249
- return {
250
- path,
251
- size: status.size,
252
- mtimeMs: status.mtimeMs,
253
- ctimeMs: status.ctimeMs,
254
- dev: status.dev,
255
- ino: status.ino,
256
- faceIndex,
257
- family: font.familyName,
258
- style: font.subfamilyName,
259
- aliases,
260
- ...faceMetrics(font),
261
- italic: font.italicAngle !== 0,
262
- postscriptName: font.postscriptName
263
- };
264
- });
265
- } catch {
266
- return [];
267
- }
268
- return faces;
269
- }
270
146
  function regionalPriority(face, language) {
271
147
  const locale = language.toLowerCase();
272
148
  const preferred = locale.startsWith("ja") ? ["jp"] : locale.startsWith("ko") ? ["kr"] : locale.startsWith("zh") ? /hant|tw|hk|mo/.test(locale) ? ["tc", "hk"] : ["sc"] : [];
@@ -274,15 +150,7 @@ function regionalPriority(face, language) {
274
150
  const region = `${face.family} ${face.postscriptName} ${basename(face.path)}`.toLowerCase().match(/(?:cjk|[\s_-])(sc|tc|jp|kr|hk)(?=[\s_.-]|$)/)?.[1];
275
151
  return region === void 0 ? 1 : preferred.includes(region) ? 0 : 2;
276
152
  }
277
- /**
278
- * Snapshot eligible local font metadata without retaining font bytes or decoding glyph coverage.
279
- * @param options - Host font roots and physical file limits.
280
- * @returns metadata reused for the converter lifetime; recreate it after changing installed fonts.
281
- */
282
- function indexSystemFonts(options) {
283
- return fontPaths(options.directories, options.maxFiles).flatMap((path) => inspect(path, options.maxFileBytes));
284
- }
285
- /** Conversion-local glyph coverage over the converter's first metadata snapshot. */
153
+ /** Conversion-local glyph coverage over one operation's metadata snapshot. */
286
154
  var SystemFontCatalog = class {
287
155
  options;
288
156
  faces;
@@ -336,7 +204,8 @@ var SystemFontCatalog = class {
336
204
  }
337
205
  return {
338
206
  fonts: selected,
339
- ...missingFamily === void 0 ? {} : { missingFamily }
207
+ ...missingFamily === void 0 ? {} : { missingFamily },
208
+ ...missing.size === 0 ? {} : { unresolvedCodePoints: [...missing] }
340
209
  };
341
210
  }
342
211
  };
@@ -368,6 +237,9 @@ function readFont(face) {
368
237
  //#region lib/types/ooxml.js
369
238
  /** Bounded OOXML inspection and declared font diagnostics, using maintained ZIP/XML parsers. */
370
239
  const MAIN_PARTS = {
240
+ odt: ["content.xml", "application/vnd.oasis.opendocument.text"],
241
+ ods: ["content.xml", "application/vnd.oasis.opendocument.spreadsheet"],
242
+ odp: ["content.xml", "application/vnd.oasis.opendocument.presentation"],
371
243
  docx: ["word/document.xml", "application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"],
372
244
  xlsx: ["xl/workbook.xml", "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"],
373
245
  pptx: ["ppt/presentation.xml", "application/vnd.openxmlformats-officedocument.presentationml.presentation.main+xml"]
@@ -390,6 +262,11 @@ function codePointOf(character) {
390
262
  function inspectDocument$1(bytes, extension, limits) {
391
263
  const main = MAIN_PARTS[extension];
392
264
  if (!main) throw new ConversionError("unsupported-format", "Input extension must be docx, xlsx, or pptx.");
265
+ const odf = [
266
+ "odt",
267
+ "ods",
268
+ "odp"
269
+ ].includes(extension);
393
270
  const names = /* @__PURE__ */ new Set();
394
271
  let total = 0;
395
272
  let files;
@@ -398,17 +275,23 @@ function inspectDocument$1(bytes, extension, limits) {
398
275
  total += entry.originalSize;
399
276
  if (names.has(entry.name) || names.size >= limits.maxArchiveEntries || !Number.isSafeInteger(total) || total > limits.maxUncompressedBytes) throw new Error("OOXML archive exceeds its limits or repeats an entry.");
400
277
  names.add(entry.name);
278
+ if (odf) return [
279
+ "mimetype",
280
+ "content.xml",
281
+ "styles.xml",
282
+ "META-INF/manifest.xml"
283
+ ].includes(entry.name);
401
284
  return entry.name === "[Content_Types].xml" || /^(word|xl|ppt)\/.*\.xml$/.test(entry.name) && !entry.name.endsWith("/fontTable.xml") && !entry.name.includes("/theme/");
402
285
  } });
403
286
  } catch (cause) {
404
287
  throw new ConversionError("invalid-document", "Input is not a supported, bounded OOXML archive.", { cause });
405
288
  }
406
289
  const contentTypes = files["[Content_Types].xml"];
407
- if (!names.has("_rels/.rels") || !names.has(main[0]) || contentTypes === void 0 || !strFromU8(contentTypes).includes(main[1])) throw new ConversionError("invalid-document", `Input does not contain a ${extension} document.`);
290
+ if (odf ? !names.has("content.xml") || !names.has("META-INF/manifest.xml") || strFromU8(files.mimetype ?? /* @__PURE__ */ new Uint8Array()) !== main[1] : !names.has("_rels/.rels") || !names.has(main[0]) || contentTypes === void 0 || !strFromU8(contentTypes).includes(main[1])) throw new ConversionError("invalid-document", `Input does not contain a ${extension} document.`);
408
291
  const families = /* @__PURE__ */ new Map();
409
292
  const codePoints = /* @__PURE__ */ new Set();
410
293
  for (const [name, data] of Object.entries(files)) {
411
- if (name === "[Content_Types].xml") continue;
294
+ if (name === "[Content_Types].xml" || name === "mimetype" || name === "META-INF/manifest.xml") continue;
412
295
  const partFamilies = [];
413
296
  const partPoints = /* @__PURE__ */ new Set();
414
297
  const parser = new SaxesParser({ xmlns: true });
@@ -416,12 +299,15 @@ function inspectDocument$1(bytes, extension, limits) {
416
299
  const word = /wordprocessingml\/(?:2006\/)?main$/.test(tag.uri) && tag.local === "rFonts";
417
300
  const drawing = /drawingml\/(?:2006\/)?main$/.test(tag.uri);
418
301
  const sheet = /spreadsheetml\/(?:2006\/)?main$/.test(tag.uri) && tag.local === "name";
419
- for (const attribute of Object.values(tag.attributes)) if (word && [
420
- "ascii",
421
- "hAnsi",
422
- "eastAsia",
423
- "cs"
424
- ].includes(attribute.local) || drawing && attribute.local === "typeface" || sheet && attribute.local === "val") partFamilies.push(attribute.value);
302
+ for (const attribute of Object.values(tag.attributes)) {
303
+ if (odf && attribute.local === "font-family") partFamilies.push(attribute.value.replace(/^['"]|['"]$/g, ""));
304
+ if (word && [
305
+ "ascii",
306
+ "hAnsi",
307
+ "eastAsia",
308
+ "cs"
309
+ ].includes(attribute.local) || drawing && attribute.local === "typeface" || sheet && attribute.local === "val") partFamilies.push(attribute.value);
310
+ }
425
311
  });
426
312
  parser.on("text", (text) => {
427
313
  for (const char of text) if (!/\s/u.test(char)) partPoints.add(codePointOf(char));
@@ -447,10 +333,13 @@ function inspectDocument$1(bytes, extension, limits) {
447
333
  const DOCUMENT_EXTENSIONS = [
448
334
  "doc",
449
335
  "docx",
336
+ "odt",
450
337
  "xls",
451
338
  "xlsx",
339
+ "ods",
452
340
  "ppt",
453
- "pptx"
341
+ "pptx",
342
+ "odp"
454
343
  ];
455
344
  const COMPOUND_SIGNATURE = [
456
345
  208,
@@ -476,7 +365,10 @@ function inspectDocument(bytes, extension, limits) {
476
365
  if ([
477
366
  "docx",
478
367
  "xlsx",
479
- "pptx"
368
+ "pptx",
369
+ "odt",
370
+ "ods",
371
+ "odp"
480
372
  ].includes(extension)) return inspectDocument$1(bytes, extension, limits);
481
373
  if (bytes.length < 512 || !COMPOUND_SIGNATURE.every((value, index) => bytes[index] === value)) throw new ConversionError("invalid-document", "Legacy Office input must contain an OLE compound document.");
482
374
  const header = new DataView(bytes.buffer, bytes.byteOffset, bytes.byteLength);
@@ -490,19 +382,68 @@ function inspectDocument(bytes, extension, limits) {
490
382
  }
491
383
  //#endregion
492
384
  //#region lib/types/font-loader.js
493
- /** Conversion-local font imports and exact-family diagnostics. */
494
- /** Build the metadata catalog inside a cancellable conversion worker. */
495
- function createFontLoader(options, document, install, faces) {
385
+ /** Conversion-local font imports backed by a factory-lifetime match cache. */
386
+ const faceKey = (face) => `${face.path}\0${face.faceIndex}`;
387
+ const requestKey = ({ codePoints: _codePoints, ...request }) => JSON.stringify(request);
388
+ /** Build one operation's loader over a factory-owned immutable font snapshot. */
389
+ function createFontLoader(options, document, install, faces, cache = []) {
496
390
  const catalog = new SystemFontCatalog({
497
391
  faces,
498
392
  fallbackFamilies: options.fontFallbacks
499
393
  });
394
+ const byFace = new Map(faces.map((face) => [faceKey(face), face]));
395
+ const matches = /* @__PURE__ */ new Map();
396
+ for (const entry of cache.slice(-options.maxFontResolutionEntries)) matches.set(entry.key, {
397
+ ...entry,
398
+ codePoints: [...entry.codePoints],
399
+ faces: entry.faces.map((face) => ({ ...face }))
400
+ });
500
401
  const loaded = /* @__PURE__ */ new Map();
501
402
  const resolved = /* @__PURE__ */ new Map();
502
403
  const missing = /* @__PURE__ */ new Map();
503
404
  const substitutions = /* @__PURE__ */ new Map();
504
405
  const signal = new AbortController().signal;
505
406
  let bytes = 0;
407
+ function retain(entry) {
408
+ matches.delete(entry.key);
409
+ matches.set(entry.key, entry);
410
+ while (matches.size > options.maxFontResolutionEntries) matches.delete(matches.keys().next().value);
411
+ }
412
+ function cachedMatch(request) {
413
+ const key = requestKey(request);
414
+ const points = [...new Set(request.codePoints)].sort((left, right) => left - right);
415
+ const prior = matches.get(key);
416
+ if (prior && (points.length === 0 && prior.emptyRequest || points.every((point) => prior.codePoints.includes(point)))) {
417
+ retain(prior);
418
+ return {
419
+ fonts: prior.faces.map((reference) => byFace.get(faceKey(reference))).filter((face) => face !== void 0),
420
+ ...prior.missingFamily === void 0 ? {} : { missingFamily: prior.missingFamily }
421
+ };
422
+ }
423
+ const unknown = prior === void 0 ? points : points.filter((point) => !prior.codePoints.includes(point));
424
+ const current = catalog.match({
425
+ ...request,
426
+ codePoints: points.length === 0 ? [] : unknown
427
+ }, signal);
428
+ const references = new Map((prior?.faces ?? []).map((face) => [faceKey(face), face]));
429
+ for (const face of current.fonts) references.set(faceKey(face), {
430
+ path: face.path,
431
+ faceIndex: face.faceIndex
432
+ });
433
+ const missingFamily = prior?.missingFamily ?? current.missingFamily;
434
+ const entry = {
435
+ key,
436
+ codePoints: [.../* @__PURE__ */ new Set([...prior?.codePoints ?? [], ...points])].sort((left, right) => left - right),
437
+ emptyRequest: prior?.emptyRequest === true || points.length === 0,
438
+ faces: [...references.values()],
439
+ ...missingFamily === void 0 ? {} : { missingFamily }
440
+ };
441
+ retain(entry);
442
+ return {
443
+ fonts: entry.faces.map((reference) => byFace.get(faceKey(reference))).filter((face) => face !== void 0),
444
+ ...entry.missingFamily === void 0 ? {} : { missingFamily: entry.missingFamily }
445
+ };
446
+ }
506
447
  return {
507
448
  get missingFonts() {
508
449
  return [...missing.values()];
@@ -513,11 +454,14 @@ function createFontLoader(options, document, install, faces) {
513
454
  get files() {
514
455
  return [...loaded.values()];
515
456
  },
457
+ get cacheEntries() {
458
+ return [...matches.values()];
459
+ },
516
460
  resolve(request) {
517
461
  const key = JSON.stringify(request);
518
462
  const cached = resolved.get(key);
519
463
  if (cached) return cached;
520
- const match = catalog.match(request, signal);
464
+ const match = cachedMatch(request);
521
465
  if (match.missingFamily && document.families.has(normalize(match.missingFamily))) {
522
466
  const family = normalize(match.missingFamily);
523
467
  missing.set(family, match.missingFamily);
@@ -558,12 +502,7 @@ function preloadFonts(loader, options, document, native = false) {
558
502
  codePoints: native ? document.codePoints : []
559
503
  });
560
504
  }
561
- /**
562
- * Fontconfig XML restricts WASM discovery to imported originals in MEMFS.
563
- * @param families - Ordered family groups; the first name of each group is its canonical spelling.
564
- * @param requested - Additional family names the document declared.
565
- * @returns the fontconfig document written into the module's memory filesystem.
566
- */
505
+ /** Fontconfig XML restricts WASM discovery to imported originals in MEMFS. */
567
506
  function memoryFontConfig(families, requested = []) {
568
507
  const escape = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;");
569
508
  return `<?xml version="1.0"?><!DOCTYPE fontconfig SYSTEM "fonts.dtd"><fontconfig><dir>/dsh-fonts</dir><cachedir>/dsh/font-cache</cachedir>${[...new Map([...families.flatMap((group) => group.slice(0, 1)), ...requested].map((name) => [normalize(name), name])).values()].map((name) => {
@@ -572,6 +511,100 @@ function memoryFontConfig(families, requested = []) {
572
511
  }).join("")}</fontconfig>`;
573
512
  }
574
513
  //#endregion
514
+ //#region lib/types/font-full.js
515
+ /** Whole fonts for engines such as PDFium that perform their own glyph mapping. */
516
+ function fontFileFormat(bytes) {
517
+ const magic = new TextDecoder().decode(bytes.subarray(0, 4));
518
+ if (magic === "ttcf") return "ttc";
519
+ if (magic === "OTTO") return "otf";
520
+ if (magic === "true" || bytes[0] === 0 && bytes[1] === 1 && bytes[2] === 0 && bytes[3] === 0) return "ttf";
521
+ throw new Error("The full font asset is not an sfnt font or collection.");
522
+ }
523
+ /** Keep full names, encoding tables and glyphs. Apple dfont containers expose one complete sfnt resource. */
524
+ function fullFontFile(face) {
525
+ const original = readFont(face);
526
+ const sourceHash = createHash("sha256").update(original).digest("hex");
527
+ let bytes = original;
528
+ /* v8 ignore next -- Apple dfont resource extraction is exercised by matching-host font qualification. */
529
+ if (extname(face.path).toLowerCase() === ".dfont") bytes = indexedFace(create(original), face).stream.buffer;
530
+ return {
531
+ bytes,
532
+ sourceHash,
533
+ format: fontFileFormat(bytes)
534
+ };
535
+ }
536
+ /** Mount a fixed bounded set before PDFium performs its first installed-font enumeration. */
537
+ function preloadPdfFonts(options, faces, install) {
538
+ const catalog = new SystemFontCatalog({
539
+ faces,
540
+ fallbackFamilies: options.fontFallbacks
541
+ });
542
+ const files = /* @__PURE__ */ new Set();
543
+ const assets = /* @__PURE__ */ new Set();
544
+ let total = 0;
545
+ const families = [.../* @__PURE__ */ new Set([
546
+ ...options.initialFontFamilies,
547
+ ...options.fontFallbacks.flat(),
548
+ "sans-serif",
549
+ "serif",
550
+ "monospace"
551
+ ])];
552
+ for (const family of families) {
553
+ const result = catalog.match({
554
+ family,
555
+ style: "",
556
+ weight: 5,
557
+ italic: 0,
558
+ width: 5,
559
+ pitch: 0,
560
+ language: "",
561
+ codePoints: []
562
+ }, new AbortController().signal);
563
+ for (const face of result.fonts) {
564
+ /* v8 ignore next -- Apple dfont face identity is covered by matching-host font qualification. */
565
+ const physical = `${face.path}#${extname(face.path).toLowerCase() === ".dfont" ? face.faceIndex : ""}`;
566
+ if (files.has(physical)) continue;
567
+ files.add(physical);
568
+ const { bytes, format } = fullFontFile(face);
569
+ const id = createHash("sha256").update(bytes).digest("hex");
570
+ if (assets.has(id)) continue;
571
+ if (total + bytes.length > options.maxLoadedFontBytes) throw new Error("PDF full-font preload exceeds maxLoadedFontBytes.");
572
+ install(`${id}.${format}`, bytes);
573
+ total += bytes.length;
574
+ assets.add(id);
575
+ }
576
+ }
577
+ }
578
+ //#endregion
579
+ //#region lib/types/profile.js
580
+ /** Private headless profile used by both native and WASM conversions. */
581
+ /**
582
+ * CSV selection is checked by the engine wrapper before saving; suppress the interactive warning.
583
+ * @param fontNodes - Escaped VCL font-substitution nodes, or an empty string for WASM.
584
+ * @returns The per-operation registry XML; macro execution is independently disabled at load.
585
+ */
586
+ function profileXml(fontNodes = "") {
587
+ return `<?xml version="1.0" encoding="UTF-8"?><oor:items xmlns:oor="http://openoffice.org/2001/registry"><item oor:path="/org.openoffice.Office.Calc/Input"><prop oor:name="WarnActiveSheet" oor:op="fuse"><value>false</value></prop></item><item oor:path="/org.openoffice.VCL/FontSubstitutions/en">${fontNodes}</item></oor:items>\n`;
588
+ }
589
+ //#endregion
590
+ //#region lib/types/operations.js
591
+ /**
592
+ * Reject an engine output with an incorrect container signature.
593
+ * @param bytes - Complete bounded output.
594
+ * @param format - Requested output suffix.
595
+ */
596
+ function validateOutput(bytes, format) {
597
+ if (format === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
598
+ if ([
599
+ "docx",
600
+ "xlsx",
601
+ "pptx",
602
+ "odt",
603
+ "ods",
604
+ "odp"
605
+ ].includes(format) && (bytes[0] !== 80 || bytes[1] !== 75 || bytes[2] !== 3 || bytes[3] !== 4)) throw new ConversionError("invalid-output", `LibreOffice did not produce a ${format} archive.`);
606
+ }
607
+ //#endregion
575
608
  //#region lib/types/wasm.js
576
609
  /** Node-only LibreOffice module execution; the owner terminates this worker on cancellation. */
577
610
  const require = createRequire(import.meta.url);
@@ -593,13 +626,11 @@ function requiredFontLoader(loader) {
593
626
  if (loader === void 0) throw new Error("LibreOffice initialized without its font loader.");
594
627
  return loader;
595
628
  }
596
- /**
597
- * Convert bounded source bytes; return owned PDF bytes only after engine teardown.
598
- * @param request - Engine installation, source bytes, limits, and font metadata.
599
- * @returns the generated PDF bytes and the declared families the catalog could not provide.
600
- */
601
- async function convertWithWasm(request) {
629
+ /** A single module loader and owned session lifecycle for export and direct raster operations. */
630
+ async function withWasmSession(request, use) {
602
631
  const { engine, bytes, extension, options, document: metadata, faces } = request;
632
+ const pdf = extension === "pdf";
633
+ let idleReady = false;
603
634
  const factory = require(engine.loader);
604
635
  const raw = readFileSync(engine.data);
605
636
  const data = raw.buffer.slice(raw.byteOffset, raw.byteOffset + raw.byteLength);
@@ -611,17 +642,25 @@ async function convertWithWasm(request) {
611
642
  let failure;
612
643
  try {
613
644
  module = await factory({
645
+ dshOnCallback(type, payload) {
646
+ if (type !== 16) return;
647
+ try {
648
+ const result = JSON.parse(payload);
649
+ if (result.commandName === ".uno:ReportWhenIdle" && result.idleID === "node-raster") idleReady = true;
650
+ } catch {}
651
+ },
614
652
  noInitialRun: true,
615
653
  mainScriptUrlOrBlob: engine.loader,
616
654
  locateFile(name) {
617
655
  const file = basename(name);
618
- if (![
656
+ if (file === "soffice.wasm") return engine.wasm;
657
+ for (const asset of [
619
658
  engine.loader,
620
659
  engine.data,
621
660
  engine.wasm,
622
661
  engine.metadata
623
- ].some((path) => basename(path) === file)) throw new Error(`LibreOffice requested an unlisted asset: ${file}`);
624
- return join(dirname(engine.loader), file);
662
+ ]) if (basename(asset) === file) return asset;
663
+ throw new Error(`LibreOffice requested an unlisted asset: ${file}`);
625
664
  },
626
665
  getPreloadedPackage: () => data,
627
666
  dshResolveSystemFonts(request) {
@@ -630,10 +669,11 @@ async function convertWithWasm(request) {
630
669
  },
631
670
  preRun: [(loadedModule) => {
632
671
  for (const path of [
633
- "/dsh/profile",
672
+ "/dsh/profile/user",
634
673
  "/dsh/font-cache",
635
674
  "/dsh-fonts"
636
675
  ]) loadedModule.FS.mkdirTree(path);
676
+ loadedModule.FS.writeFile("/dsh/profile/user/registrymodifications.xcu", new TextEncoder().encode(profileXml()));
637
677
  loadedModule.FS.writeFile("/dsh/fonts.conf", new TextEncoder().encode(memoryFontConfig(options.fontFallbacks, metadata.families.values())));
638
678
  Object.assign(loadedModule.ENV, {
639
679
  HOME: "/dsh/profile",
@@ -645,8 +685,11 @@ async function convertWithWasm(request) {
645
685
  const path = `/dsh-fonts/${name}`;
646
686
  loadedModule.FS.writeFile(path, bytes);
647
687
  return path;
648
- }, faces);
649
- preloadFonts(fontLoader, options, metadata);
688
+ }, faces, request.fontCache);
689
+ if (pdf) {
690
+ loadedModule.FS.mkdirTree("/usr/share/fonts/dsh-pdfium");
691
+ preloadPdfFonts(options, faces, (name, bytes) => loadedModule.FS.writeFile(`/usr/share/fonts/dsh-pdfium/${name}`, bytes));
692
+ } else preloadFonts(fontLoader, options, metadata);
650
693
  }],
651
694
  onAbort() {
652
695
  fatal = true;
@@ -656,52 +699,73 @@ async function convertWithWasm(request) {
656
699
  });
657
700
  const instance = module;
658
701
  const input = `/dsh/document.${extension}`;
659
- const output = "/dsh/document.pdf";
660
- instance.FS.writeFile(input, bytes);
661
- office = instance.ccall("dsh_lok_initialize", "number", ["string", "string"], [engine.programDirectory, "file:///dsh/profile"]);
662
- if (!office) throw engineError(instance, 0);
663
- document = instance.ccall("dsh_lok_document_load", "number", [
664
- "number",
665
- "string",
666
- "string"
667
- ], [
702
+ if (!pdf) instance.FS.writeFile(input, bytes);
703
+ if (pdf) {
704
+ const pointer = instance.ccall("malloc", "number", ["number"], [bytes.length]);
705
+ if (!pointer) throw engineError(instance, 0);
706
+ try {
707
+ new Uint8Array(instance.HEAPU32.buffer).set(bytes, pointer);
708
+ document = instance.ccall("dsh_pdf_open", "number", [
709
+ "number",
710
+ "number",
711
+ "string"
712
+ ], [
713
+ pointer,
714
+ bytes.length,
715
+ ""
716
+ ]);
717
+ } finally {
718
+ instance.ccall("free", null, ["number"], [pointer]);
719
+ }
720
+ if (!document) throw engineError(instance, 0);
721
+ } else {
722
+ office = instance.ccall("dsh_lok_initialize", "number", ["string", "string"], [engine.programDirectory, "file:///dsh/profile"]);
723
+ if (!office) throw engineError(instance, 0);
724
+ document = instance.ccall("dsh_lok_document_load", "number", [
725
+ "number",
726
+ "string",
727
+ "string"
728
+ ], [
729
+ office,
730
+ `file://${input}`,
731
+ "Batch=true,EnableMacrosExecution=false"
732
+ ]);
733
+ if (!document) throw engineError(instance, office);
734
+ }
735
+ const result = await use({
736
+ module: instance,
668
737
  office,
669
- `file://${input}`,
670
- "Batch=true,EnableMacrosExecution=false"
671
- ]);
672
- if (!document) throw engineError(instance, office);
673
- if (!instance.ccall("dsh_lok_document_save_pdf", "number", [
674
- "number",
675
- "string",
676
- "string"
677
- ], [
678
738
  document,
679
- `file://${output}`,
680
- JSON.stringify({
681
- ExportBookmarks: {
682
- type: "boolean",
683
- value: "true"
684
- },
685
- ReduceImageResolution: {
686
- type: "boolean",
687
- value: "true"
688
- },
689
- MaxImageResolution: {
690
- type: "long",
691
- value: String(options.maxImageResolution)
692
- }
693
- })
694
- ])) throw engineError(instance, office);
695
- if (!instance.FS.analyzePath(output).exists) throw new ConversionError("invalid-output", "LibreOffice did not create its PDF output.");
696
- const status = instance.FS.stat(output);
697
- if (!instance.FS.isFile(status.mode)) throw new ConversionError("invalid-output", "Generated PDF is not a regular file.");
698
- if (status.size > options.maxOutputBytes) throw new ConversionError("output-too-large", "Generated PDF exceeds its output byte limit.");
699
- const pdf = instance.FS.readFile(output);
700
- if (new TextDecoder().decode(pdf.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
701
- return {
702
739
  pdf,
703
- missingFonts: requiredFontLoader(fontLoader).missingFonts
704
- };
740
+ get missingFonts() {
741
+ return requiredFontLoader(fontLoader).missingFonts;
742
+ },
743
+ async idle() {
744
+ if (pdf) return;
745
+ idleReady = false;
746
+ if (!instance.ccall("dsh_lok_document_command", "number", [
747
+ "number",
748
+ "string",
749
+ "string"
750
+ ], [
751
+ document,
752
+ ".uno:ReportWhenIdle",
753
+ "{\"idleID\":{\"type\":\"string\",\"value\":\"node-raster\"}}"
754
+ ])) throw engineError(instance, office);
755
+ const deadline = performance.now() + options.timeoutMs;
756
+ while (!idleReady) {
757
+ for (let i = 0; i < 8 && !idleReady; i++) {
758
+ const pending = instance.ccall("dsh_lok_pump", "number", [], []);
759
+ if (pending < 0) throw engineError(instance, office);
760
+ if (!pending) break;
761
+ }
762
+ if (performance.now() > deadline) throw new ConversionError("timeout", "LibreOffice did not reach its raster idle barrier.");
763
+ if (!idleReady) await new Promise((resolve) => setTimeout(resolve, 0));
764
+ }
765
+ }
766
+ });
767
+ request.onFontCache?.(requiredFontLoader(fontLoader).cacheEntries);
768
+ return result;
705
769
  } catch (error) {
706
770
  fatal ||= error instanceof WebAssembly.RuntimeError;
707
771
  failure = error;
@@ -710,7 +774,7 @@ async function convertWithWasm(request) {
710
774
  const errors = [];
711
775
  if (module && !fatal) {
712
776
  if (document) try {
713
- if (!module.ccall("dsh_lok_document_destroy", "number", ["number"], [document])) throw engineError(module, office);
777
+ if (!module.ccall(pdf ? "dsh_pdf_destroy" : "dsh_lok_document_destroy", "number", ["number"], [document])) throw engineError(module, office);
714
778
  } catch (error) {
715
779
  errors.push(error);
716
780
  fatal ||= error instanceof WebAssembly.RuntimeError;
@@ -729,6 +793,594 @@ async function convertWithWasm(request) {
729
793
  if (errors.length) throw new AggregateError(failure ? [failure, ...errors] : errors, "LibreOffice WASM cleanup failed.");
730
794
  }
731
795
  }
796
+ /** Convert bounded source bytes; return owned bytes only after engine teardown. */
797
+ async function convertWithWasm(request) {
798
+ return withWasmSession(request, (session) => {
799
+ const { module, office, document } = session;
800
+ const { options } = request;
801
+ const operation = request.operation ?? {
802
+ format: "pdf",
803
+ recalculate: false
804
+ };
805
+ const output = `/dsh/output.${operation.format}`;
806
+ const filterOptions = operation.format === "pdf" ? JSON.stringify({
807
+ ExportBookmarks: {
808
+ type: "boolean",
809
+ value: "true"
810
+ },
811
+ ReduceImageResolution: {
812
+ type: "boolean",
813
+ value: "true"
814
+ },
815
+ MaxImageResolution: {
816
+ type: "long",
817
+ value: String(options.maxImageResolution)
818
+ }
819
+ }) : operation.format === "txt" ? "UTF8,LF" : "";
820
+ if (!module.ccall("dsh_lok_document_export", "number", [
821
+ "number",
822
+ "number",
823
+ "string",
824
+ "string",
825
+ "string",
826
+ "number",
827
+ "string"
828
+ ], [
829
+ office,
830
+ document,
831
+ `file://${output}`,
832
+ operation.format,
833
+ filterOptions,
834
+ Number(operation.recalculate),
835
+ operation.sheet ?? ""
836
+ ])) throw engineError(module, office);
837
+ if (!module.FS.analyzePath(output).exists) throw new ConversionError("invalid-output", "LibreOffice did not create its output.");
838
+ const status = module.FS.stat(output);
839
+ if (!module.FS.isFile(status.mode)) throw new ConversionError("invalid-output", "Generated output is not a regular file.");
840
+ if (status.size > options.maxOutputBytes) throw new ConversionError("output-too-large", "Generated output exceeds its output byte limit.");
841
+ const result = module.FS.readFile(output);
842
+ validateOutput(result, operation.format);
843
+ return {
844
+ output: result,
845
+ missingFonts: session.missingFonts
846
+ };
847
+ });
848
+ }
849
+ /** Split a region on its output-pixel grid, bounding the plan before allocating it. */
850
+ function splitRasterRectangle(rectangle, scale, limits) {
851
+ const { x, y, width, height } = rectangle;
852
+ const { maxPixels, maxDimension, maxTiles } = limits;
853
+ if (![
854
+ x,
855
+ y,
856
+ width,
857
+ height,
858
+ scale
859
+ ].every(Number.isFinite) || x < 0 || y < 0 || width <= 0 || height <= 0 || scale <= 0 || !Number.isSafeInteger(maxPixels) || maxPixels < 1 || maxPixels > 16777216 || !Number.isSafeInteger(maxDimension) || maxDimension < 1 || maxDimension > 16777216 || !Number.isSafeInteger(maxTiles) || maxTiles < 0) throw new TypeError("Invalid raster splitting limits or rectangle.");
860
+ const pixelWidth = Math.ceil(width * scale - 1e-9), pixelHeight = Math.ceil(height * scale - 1e-9);
861
+ if (![pixelWidth, pixelHeight].every((value) => Number.isSafeInteger(value) && value > 0)) throw new RangeError("Raster dimensions exceed the coordinate range.");
862
+ let tileWidth = Math.min(pixelWidth, maxDimension), tileHeight = Math.min(pixelHeight, maxDimension);
863
+ if (tileWidth * tileHeight > maxPixels) {
864
+ const side = Math.floor(Math.sqrt(maxPixels));
865
+ if (tileWidth <= side) tileHeight = Math.floor(maxPixels / tileWidth);
866
+ else if (tileHeight <= side) tileWidth = Math.floor(maxPixels / tileHeight);
867
+ else {
868
+ tileWidth = side;
869
+ tileHeight = Math.min(tileHeight, Math.floor(maxPixels / tileWidth));
870
+ }
871
+ }
872
+ const columns = Math.ceil(pixelWidth / tileWidth), rows = Math.ceil(pixelHeight / tileHeight);
873
+ if (columns * rows > maxTiles) throw new RangeError("Raster batch exceeds maxPages after worksheet splitting.");
874
+ const result = [];
875
+ for (let row = 0; row < rows; row++) for (let column = 0; column < columns; column++) {
876
+ const left = column * tileWidth / scale, top = row * tileHeight / scale;
877
+ result.push({
878
+ x: x + left,
879
+ y: y + top,
880
+ width: Math.min(tileWidth / scale, width - left),
881
+ height: Math.min(tileHeight / scale, height - top)
882
+ });
883
+ }
884
+ return result;
885
+ }
886
+ /** Writer's zero-area parity placeholders have no visible page. Offsets stay in twips. */
887
+ function writerPages(rectangles) {
888
+ const pages = rectangles.split(";").filter((value) => value.trim()).flatMap((rectangle) => {
889
+ const fields = rectangle.split(",").map((value) => Number(value.trim()));
890
+ const [x, y, width, height] = fields;
891
+ if (fields.length !== 4 || x === void 0 || y === void 0 || width === void 0 || height === void 0 || fields.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || width === 0 !== (height === 0) || x + width > 2147483647 || y + height > 2147483647) throw new Error("LibreOffice returned invalid page rectangles.");
892
+ return width === 0 ? [] : [{
893
+ x,
894
+ y,
895
+ width: width / 15,
896
+ height: height / 15,
897
+ part: -1
898
+ }];
899
+ });
900
+ if (pages.length === 0) throw new Error("LibreOffice returned no document pages.");
901
+ return pages;
902
+ }
903
+ /** Validate coordinates before allocation or wasm32 integer conversion. */
904
+ function tileDimensions(request, pages) {
905
+ const page = pages[request.pageIndex];
906
+ if (!Number.isSafeInteger(request.pageIndex) || !page || ![
907
+ request.x,
908
+ request.y,
909
+ request.width,
910
+ request.height,
911
+ request.scale
912
+ ].every(Number.isFinite) || request.x < 0 || request.y < 0 || request.width <= 0 || request.height <= 0 || request.scale <= 0 || request.x + request.width > page.width + .001 || request.y + request.height > page.height + .001) throw new Error("Tile rectangle lies outside its page.");
913
+ const width = Math.ceil(request.width * request.scale - 1e-9);
914
+ const height = Math.ceil(request.height * request.scale - 1e-9);
915
+ if (width <= 0 || height <= 0 || !Number.isSafeInteger(width * height) || width * height > 16777216) throw new Error("Tile exceeds the 16 megapixel allocation limit.");
916
+ const twips = [
917
+ page.x + Math.round(request.x * 15),
918
+ page.y + Math.round(request.y * 15),
919
+ Math.round(request.width * 15),
920
+ Math.round(request.height * 15)
921
+ ];
922
+ if (twips.some((value) => !Number.isSafeInteger(value) || value < 0 || value > 2147483647) || twips[0] + twips[2] > 2147483647 || twips[1] + twips[3] > 2147483647) throw new Error("Tile coordinates exceed the wasm32 range.");
923
+ return {
924
+ page,
925
+ width,
926
+ height
927
+ };
928
+ }
929
+ /** Cairo/LO channels are premultiplied; PNG and ImageData require straight RGBA. */
930
+ function rgbaPixels(source, tileMode) {
931
+ if (tileMode !== 0 && tileMode !== 1 || source.length % 4 !== 0) throw new Error("LibreOffice returned an unsupported tile pixel format.");
932
+ const result = new Uint8ClampedArray(source.length);
933
+ for (let index = 0; index < source.length; index += 4) {
934
+ const alpha = source[index + 3];
935
+ const multiplier = alpha === 0 ? 0 : 255 / alpha;
936
+ result[index] = source[index + (tileMode === 1 ? 2 : 0)] * multiplier;
937
+ result[index + 1] = source[index + 1] * multiplier;
938
+ result[index + 2] = source[index + (tileMode === 1 ? 0 : 2)] * multiplier;
939
+ result[index + 3] = alpha;
940
+ }
941
+ return result;
942
+ }
943
+ //#endregion
944
+ //#region lib/types/engine-rendering.js
945
+ /** Shared bounded raster allocations for browser and Node engine owners. */
946
+ function numericCall(module, name, args) {
947
+ return module.ccall(name, "number", args.map(() => "number"), args);
948
+ }
949
+ /** Copy/free one engine-owned UTF-8 return value. */
950
+ function engineString(module, name, types, args, failure) {
951
+ const pointer = module.ccall(name, "number", types, args);
952
+ if (!pointer) throw failure();
953
+ try {
954
+ return module.UTF8ToString(pointer);
955
+ } finally {
956
+ numericCall(module, "free", [pointer]);
957
+ }
958
+ }
959
+ /** Paint into a temporary allocation; copy pixels before free or another engine call. */
960
+ function renderRegion(module, document, request, pages, failure, pdf = false) {
961
+ const call = (name, args) => numericCall(module, name, args);
962
+ const { page, width, height } = tileDimensions(request, pages);
963
+ const size = width * height * 4;
964
+ const pointer = call("malloc", [size]);
965
+ if (!pointer) throw failure();
966
+ try {
967
+ new Uint8Array(module.HEAPU32.buffer, pointer, size).fill(0);
968
+ const position = [
969
+ page.x + Math.round(request.x * 15),
970
+ page.y + Math.round(request.y * 15),
971
+ Math.max(1, Math.round(request.width * 15)),
972
+ Math.max(1, Math.round(request.height * 15))
973
+ ];
974
+ if (!call(pdf ? "dsh_pdf_paint" : "dsh_lok_document_paint", [
975
+ document,
976
+ pointer,
977
+ page.part,
978
+ width,
979
+ height,
980
+ ...position
981
+ ])) throw failure();
982
+ const source = new Uint8Array(module.HEAPU32.buffer, pointer, size);
983
+ return {
984
+ width,
985
+ height,
986
+ rgba: pdf ? new Uint8ClampedArray(source) : rgbaPixels(source, call("dsh_lok_document_tile_mode", [document]))
987
+ };
988
+ } finally {
989
+ call("free", [pointer]);
990
+ }
991
+ }
992
+ /** PDF page dimensions use the same twips ABI, with an immutable PDF page index as part. */
993
+ function pdfPages(module, pdf, failure) {
994
+ const count = numericCall(module, "dsh_pdf_page_count", [pdf]);
995
+ if (!Number.isSafeInteger(count) || count < 1 || count > 1e5) throw failure();
996
+ const pointer = numericCall(module, "malloc", [8]);
997
+ if (!pointer) throw failure();
998
+ try {
999
+ return Array.from({ length: count }, (_, part) => {
1000
+ if (!numericCall(module, "dsh_pdf_page_size", [
1001
+ pdf,
1002
+ part,
1003
+ pointer,
1004
+ pointer + 4
1005
+ ])) throw failure();
1006
+ const width = module.HEAPU32[pointer / 4];
1007
+ const height = module.HEAPU32[pointer / 4 + 1];
1008
+ if (width < 1 || height < 1 || width > 2147483647 || height > 2147483647) throw failure();
1009
+ return {
1010
+ part,
1011
+ x: 0,
1012
+ y: 0,
1013
+ width: width / 15,
1014
+ height: height / 15
1015
+ };
1016
+ });
1017
+ } finally {
1018
+ numericCall(module, "free", [pointer]);
1019
+ }
1020
+ }
1021
+ //#endregion
1022
+ //#region lib/types/sheet-geometry.js
1023
+ const MAX_COLUMN = 16383;
1024
+ const MAX_ROW = 1048575;
1025
+ function column(index) {
1026
+ let name = "";
1027
+ for (let value = index + 1; value > 0; value = Math.floor((value - 1) / 26)) name = String.fromCharCode(65 + (value - 1) % 26) + name;
1028
+ return name;
1029
+ }
1030
+ function rangeName(range) {
1031
+ return `${column(range.firstColumn)}${range.firstRow + 1}:${column(range.lastColumn)}${range.lastRow + 1}`;
1032
+ }
1033
+ function parseCellRange(value) {
1034
+ const match = /^\$?([A-Z]{1,3})\$?([1-9]\d{0,6})(?::\$?([A-Z]{1,3})\$?([1-9]\d{0,6}))?$/i.exec(value);
1035
+ if (!match) throw new TypeError("range must be an A1 cell or rectangle without a sheet prefix.");
1036
+ const col = (name) => [...name.toUpperCase()].reduce((sum, c) => sum * 26 + c.charCodeAt(0) - 64, 0) - 1;
1037
+ const firstColumn = col(match[1]);
1038
+ const firstRow = Number(match[2]) - 1;
1039
+ const lastColumn = col(match[3] ?? match[1]);
1040
+ const lastRow = Number(match[4] ?? match[2]) - 1;
1041
+ if (lastColumn < firstColumn || lastRow < firstRow || lastColumn > MAX_COLUMN || lastRow > MAX_ROW) throw new TypeError("range exceeds Calc worksheet bounds or has reversed endpoints.");
1042
+ return {
1043
+ firstColumn,
1044
+ firstRow,
1045
+ lastColumn,
1046
+ lastRow
1047
+ };
1048
+ }
1049
+ function sheetPartInfo(value) {
1050
+ const info = JSON.parse(value);
1051
+ if (!info || typeof info.name !== "string" || ![0, 1].includes(info.visible) || ![0, 1].includes(info.rtllayout) || !Number.isInteger(info.lastcolumn) || !Number.isInteger(info.lastrow) || info.lastcolumn < 0 || info.lastrow < 0 || info.lastcolumn > MAX_COLUMN || info.lastrow > MAX_ROW) throw new Error("LibreOffice returned invalid worksheet data-area metadata.");
1052
+ return info;
1053
+ }
1054
+ /** Formatting-only cells and standalone drawings do not enlarge LibreOffice's data area. */
1055
+ function dataArea(info) {
1056
+ return {
1057
+ firstColumn: 0,
1058
+ firstRow: 0,
1059
+ lastColumn: info.lastcolumn,
1060
+ lastRow: info.lastrow
1061
+ };
1062
+ }
1063
+ function spans(encoded, flags, maximum) {
1064
+ if (typeof encoded !== "string" || encoded.length > 33554432) throw new Error("Invalid worksheet geometry span encoding.");
1065
+ const tokens = encoded.trim().split(/\s+/);
1066
+ let previous = -1;
1067
+ let flag = 0;
1068
+ const result = tokens.map((token, i) => {
1069
+ const fields = token.split(":");
1070
+ let value;
1071
+ let end;
1072
+ if (flags && i > 0) {
1073
+ value = flag = 1 - flag;
1074
+ end = Number(fields[0]);
1075
+ if (fields.length !== 1) throw new Error("Invalid worksheet flag span.");
1076
+ } else {
1077
+ value = Number(fields[0]);
1078
+ end = Number(fields[1]);
1079
+ flag = value;
1080
+ if (fields.length !== 2) throw new Error("Invalid worksheet size span.");
1081
+ }
1082
+ if (!Number.isSafeInteger(value) || value < 0 || (flags ? value > 1 : value > 65535) || !Number.isSafeInteger(end) || end <= previous || end > maximum) throw new Error("Invalid worksheet geometry span.");
1083
+ previous = end;
1084
+ return {
1085
+ end,
1086
+ value
1087
+ };
1088
+ });
1089
+ if (previous !== maximum) throw new Error("Worksheet geometry does not cover the complete dimension.");
1090
+ return result;
1091
+ }
1092
+ function dimension(data, first, last, maximum, scale) {
1093
+ const sizes = spans(data?.sizes, false, maximum);
1094
+ const hidden = spans(data?.hidden, true, maximum);
1095
+ const filtered = spans(data?.filtered, true, maximum);
1096
+ let position = 0, start = 0, index = 0, si = 0, hi = 0, fi = 0;
1097
+ while (index <= last) {
1098
+ const size = sizes[si], hide = hidden[hi], filter = filtered[fi];
1099
+ const end = Math.min(size.end, hide.end, filter.end, last, index < first ? first - 1 : last);
1100
+ const pixels = hide.value || filter.value || size.value === 0 ? 0 : Math.max(1, Math.floor(size.value * scale / 15));
1101
+ if (index === first) start = position;
1102
+ position += (end - index + 1) * pixels;
1103
+ index = end + 1;
1104
+ if (index > size.end) si++;
1105
+ if (index > hide.end) hi++;
1106
+ if (index > filter.end) fi++;
1107
+ }
1108
+ return [start / scale, (position - start) / scale];
1109
+ }
1110
+ /** Logical columns advance from A; LOK itself mirrors RTL sheet painting. No manual x inversion. */
1111
+ function sheetRangeRectangle(geometry, range, scale) {
1112
+ if (!Number.isFinite(scale) || scale <= 0 || scale > 16) throw new TypeError("Invalid worksheet raster scale.");
1113
+ const [x, width] = dimension(geometry.columns, range.firstColumn, range.lastColumn, MAX_COLUMN, scale);
1114
+ const [y, height] = dimension(geometry.rows, range.firstRow, range.lastRow, MAX_ROW, scale);
1115
+ if (width <= 0 || height <= 0) throw new Error("The selected worksheet range is entirely hidden or filtered.");
1116
+ if ([
1117
+ x,
1118
+ y,
1119
+ width,
1120
+ height,
1121
+ x + width,
1122
+ y + height
1123
+ ].some((value) => !Number.isFinite(value) || value * 15 > 2147483647)) throw new Error("The selected worksheet range exceeds the supported coordinate range.");
1124
+ return {
1125
+ x,
1126
+ y,
1127
+ width,
1128
+ height
1129
+ };
1130
+ }
1131
+ //#endregion
1132
+ //#region lib/types/image-operations.js
1133
+ function selectedPages(pages, count, limit) {
1134
+ if (!Number.isSafeInteger(count) || count < 1) throw new ConversionError("invalid-document", "The document contains no renderable pages.");
1135
+ const result = pages === void 0 || pages === "all" ? Array.from({ length: Math.min(count, limit + 1) }, (_, i) => i + 1) : [...pages];
1136
+ if (result.length > limit) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages; select pages or raise the limit.");
1137
+ if (result.some((page) => page > count)) throw new TypeError(`Selected page lies outside the ${count}-page document.`);
1138
+ return result;
1139
+ }
1140
+ //#endregion
1141
+ //#region lib/types/png.js
1142
+ /** Portable PNG encoding over straight RGBA; browser and Node need no native image dependency. */
1143
+ const crcTable = Uint32Array.from({ length: 256 }, (_, value) => {
1144
+ for (let bit = 0; bit < 8; bit++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
1145
+ return value >>> 0;
1146
+ });
1147
+ function chunk(type, bytes) {
1148
+ const output = new Uint8Array(bytes.length + 12);
1149
+ const view = new DataView(output.buffer);
1150
+ view.setUint32(0, bytes.length);
1151
+ output.set(new TextEncoder().encode(type), 4);
1152
+ output.set(bytes, 8);
1153
+ let crc = 4294967295;
1154
+ for (let i = 4; i < output.length - 4; i++) crc = crcTable[(crc ^ output[i]) & 255] ^ crc >>> 8;
1155
+ view.setUint32(output.length - 4, (crc ^ 4294967295) >>> 0);
1156
+ return output;
1157
+ }
1158
+ function encodePng(width, height, rgba) {
1159
+ if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1 || width * height > 16777216 || rgba.byteLength !== width * height * 4) throw new TypeError("Invalid PNG raster dimensions.");
1160
+ const header = /* @__PURE__ */ new Uint8Array(13);
1161
+ const view = new DataView(header.buffer);
1162
+ view.setUint32(0, width);
1163
+ view.setUint32(4, height);
1164
+ header[8] = 8;
1165
+ header[9] = 6;
1166
+ const scanlines = new Uint8Array(height * (width * 4 + 1));
1167
+ for (let y = 0; y < height; y++) {
1168
+ const source = y * width * 4;
1169
+ const target = y * (width * 4 + 1);
1170
+ scanlines[target] = 1;
1171
+ for (let x = 0; x < width * 4; x++) scanlines[target + 1 + x] = rgba[source + x] - (x < 4 ? 0 : rgba[source + x - 4]);
1172
+ }
1173
+ const chunks = [
1174
+ new Uint8Array([
1175
+ 137,
1176
+ 80,
1177
+ 78,
1178
+ 71,
1179
+ 13,
1180
+ 10,
1181
+ 26,
1182
+ 10
1183
+ ]),
1184
+ chunk("IHDR", header),
1185
+ chunk("IDAT", zlibSync(scanlines, { level: 6 })),
1186
+ chunk("IEND", /* @__PURE__ */ new Uint8Array())
1187
+ ];
1188
+ const result = new Uint8Array(chunks.reduce((sum, value) => sum + value.length, 0));
1189
+ let offset = 0;
1190
+ for (const value of chunks) {
1191
+ result.set(value, offset);
1192
+ offset += value.length;
1193
+ }
1194
+ return result;
1195
+ }
1196
+ //#endregion
1197
+ //#region lib/types/image-renderer.js
1198
+ /** One saved-file model and one bounded direct PNG batch; no Office-to-PDF intermediate. */
1199
+ async function regions(session, request) {
1200
+ const { module, document, office, pdf } = session;
1201
+ const call = (name, args) => numericCall(module, name, args);
1202
+ const failure = () => engineError(module, office);
1203
+ const text = (name, args) => engineString(module, name, args.map(() => "number"), args, failure);
1204
+ const values = (command) => engineString(module, "dsh_lok_document_command_values", ["number", "string"], [document, command], failure);
1205
+ const select = (pages) => ({
1206
+ count: pages.length,
1207
+ regions: selectedPages(request.pages, pages.length, request.maxPages).map((number) => {
1208
+ const page = pages[number - 1];
1209
+ return {
1210
+ page,
1211
+ number,
1212
+ rectangle: {
1213
+ x: 0,
1214
+ y: 0,
1215
+ width: page.width,
1216
+ height: page.height
1217
+ }
1218
+ };
1219
+ })
1220
+ });
1221
+ if (pdf) return select(pdfPages(module, document, failure));
1222
+ if (!call("dsh_lok_document_initialize_rendering", [document]) || !call("dsh_lok_document_listen", [document])) throw failure();
1223
+ await session.idle();
1224
+ const type = call("dsh_lok_document_type", [document]);
1225
+ if (type !== ([
1226
+ "xls",
1227
+ "xlsx",
1228
+ "ods"
1229
+ ].includes(request.extension) ? 1 : [
1230
+ "ppt",
1231
+ "pptx",
1232
+ "odp"
1233
+ ].includes(request.extension) ? 2 : 0)) throw new ConversionError("invalid-document", "LibreOffice imported the input as an unexpected document type.");
1234
+ if (type === 0) return select(writerPages(text("dsh_lok_document_page_rectangles", [document])));
1235
+ const parts = call("dsh_lok_document_parts", [document]);
1236
+ if (!Number.isSafeInteger(parts) || parts < 1 || parts > 1e5) throw new ConversionError("invalid-document", "Invalid document part count.");
1237
+ if (type === 2) {
1238
+ const sizes = JSON.parse(values(".uno:AllPageSize"));
1239
+ if (!Array.isArray(sizes.parts) || sizes.parts.length !== parts) throw new ConversionError("invalid-document", "Impress returned inconsistent slide dimensions.");
1240
+ return select(sizes.parts.map(({ width, height }, part) => {
1241
+ if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1 || width > 2147483647 || height > 2147483647) throw new ConversionError("invalid-document", "Impress returned invalid slide dimensions.");
1242
+ return {
1243
+ part,
1244
+ x: 0,
1245
+ y: 0,
1246
+ width: width / 15,
1247
+ height: height / 15
1248
+ };
1249
+ }));
1250
+ }
1251
+ const sheets = Array.from({ length: parts }, (_, part) => ({
1252
+ part,
1253
+ info: sheetPartInfo(text("dsh_lok_document_part_info", [document, part]))
1254
+ }));
1255
+ const count = sheets.filter(({ info }) => info.visible).length;
1256
+ const selected = request.sheet === void 0 ? sheets.filter(({ info }) => info.visible) : sheets.filter(({ info }) => info.name === request.sheet);
1257
+ if (!selected.length) throw new ConversionError("invalid-document", "The exact worksheet name does not exist or the workbook has no visible sheets.");
1258
+ if (selected.length > request.maxPages) throw new ConversionError("output-too-large", "Selected worksheet count exceeds maxPages; select a sheet or raise the limit.");
1259
+ const result = [];
1260
+ const scale = request.dpi / 96;
1261
+ for (const { part, info } of selected) {
1262
+ if (!call("dsh_lok_document_part", [document, part])) throw failure();
1263
+ await session.idle();
1264
+ const range = request.range === void 0 ? dataArea(info) : parseCellRange(request.range);
1265
+ const rectangle = sheetRangeRectangle(JSON.parse(values(".uno:SheetGeometryData")), range, scale);
1266
+ const page = {
1267
+ x: 0,
1268
+ y: 0,
1269
+ width: rectangle.x + rectangle.width,
1270
+ height: rectangle.y + rectangle.height,
1271
+ part
1272
+ };
1273
+ result.push({
1274
+ page,
1275
+ rectangle,
1276
+ sheet: info.name,
1277
+ range: rangeName(range),
1278
+ rtl: Boolean(info.rtllayout)
1279
+ });
1280
+ }
1281
+ return {
1282
+ count,
1283
+ regions: result
1284
+ };
1285
+ }
1286
+ async function renderImagesWithWasm(request) {
1287
+ return withWasmSession(request, async (session) => {
1288
+ const { operation, options } = request;
1289
+ const { count, regions: sourceRegions } = await regions(session, operation);
1290
+ const scale = operation.dpi / 96;
1291
+ const selected = [];
1292
+ for (const region of sourceRegions) {
1293
+ if (region.sheet === void 0) {
1294
+ selected.push(region);
1295
+ continue;
1296
+ }
1297
+ let rectangles;
1298
+ try {
1299
+ rectangles = splitRasterRectangle(region.rectangle, scale, {
1300
+ maxPixels: operation.maxPixels,
1301
+ maxDimension: operation.maxDimension,
1302
+ maxTiles: operation.maxPages - selected.length
1303
+ });
1304
+ } catch (cause) {
1305
+ throw new ConversionError("output-too-large", String(cause), { cause });
1306
+ }
1307
+ selected.push(...rectangles.map((rectangle) => ({
1308
+ ...region,
1309
+ rectangle
1310
+ })));
1311
+ }
1312
+ for (const { page, rectangle } of selected) {
1313
+ const pixelWidth = Math.ceil(rectangle.width * scale - 1e-9), pixelHeight = Math.ceil(rectangle.height * scale - 1e-9);
1314
+ if (pixelWidth > operation.maxDimension || pixelHeight > operation.maxDimension || pixelWidth * pixelHeight > operation.maxPixels) throw new ConversionError("output-too-large", "Selected page exceeds maxPixels or maxDimension; reduce DPI or raise the image limits.");
1315
+ tileDimensions({
1316
+ pageIndex: 0,
1317
+ ...rectangle,
1318
+ scale
1319
+ }, [page]);
1320
+ }
1321
+ const images = [];
1322
+ let total = 0;
1323
+ for (const region of selected) {
1324
+ if (region.sheet !== void 0) {
1325
+ const call = (name, args) => numericCall(session.module, name, args);
1326
+ if (!call("dsh_lok_document_part", [session.document, region.page.part])) throw engineError(session.module, session.office);
1327
+ const { x, y, width, height } = region.rectangle;
1328
+ const command = `.uno:ViewRowColumnHeaders?x=${Math.round(x * 15)}&y=${Math.round(y * 15)}&width=${Math.round(width * 15)}&height=${Math.round(height * 15)}`;
1329
+ if (!call("dsh_lok_document_viewport", [
1330
+ session.document,
1331
+ Math.round(scale * 1440),
1332
+ 21600,
1333
+ Math.round(x * 15),
1334
+ Math.round(y * 15),
1335
+ Math.round(width * 15),
1336
+ Math.round(height * 15)
1337
+ ])) throw engineError(session.module, session.office);
1338
+ engineString(session.module, "dsh_lok_document_command_values", ["number", "string"], [session.document, command], () => engineError(session.module, session.office));
1339
+ await session.idle();
1340
+ }
1341
+ const tile = renderRegion(session.module, session.document, {
1342
+ pageIndex: 0,
1343
+ ...region.rectangle,
1344
+ scale
1345
+ }, [region.page], () => engineError(session.module, session.office), session.pdf);
1346
+ const png = encodePng(tile.width, tile.height, tile.rgba);
1347
+ total += png.length;
1348
+ if (total > options.maxOutputBytes) throw new ConversionError("output-too-large", "PNG batch exceeds maxOutputBytes.");
1349
+ const index = images.length + 1;
1350
+ const path = join(operation.outputDir, `page-${String(index).padStart(4, "0")}.png`);
1351
+ writeFileSync(path, png, {
1352
+ flag: "wx",
1353
+ mode: 384
1354
+ });
1355
+ images.push({
1356
+ index,
1357
+ ...region.number === void 0 ? {} : { page: region.number },
1358
+ ...region.sheet === void 0 ? {} : {
1359
+ sheet: region.sheet,
1360
+ range: region.range,
1361
+ rtl: region.rtl
1362
+ },
1363
+ path,
1364
+ width: tile.width,
1365
+ height: tile.height,
1366
+ rectangle: region.rectangle,
1367
+ byteLength: png.length
1368
+ });
1369
+ }
1370
+ return {
1371
+ schemaVersion: 1,
1372
+ backend: "wasm",
1373
+ rasterEngine: session.pdf ? "pdfium" : "libreoffice",
1374
+ source: "saved",
1375
+ inputPath: operation.inputPath,
1376
+ sourceSha256: createHash("sha256").update(request.bytes).digest("hex"),
1377
+ dpi: operation.dpi,
1378
+ pageCount: count,
1379
+ images,
1380
+ missingFonts: session.missingFonts
1381
+ };
1382
+ });
1383
+ }
732
1384
  //#endregion
733
1385
  //#region lib/types/worker.js
734
1386
  /** Cancellable CPU work and WASM conversion run outside the Node event loop. */
@@ -743,32 +1395,59 @@ function requireParentPort(port) {
743
1395
  }
744
1396
  const port = requireParentPort(parentPort);
745
1397
  try {
746
- const { inputPath, extension, options, engine, scratch, fontFaces } = workerData;
1398
+ const { inputPath, extension, operation, options, engine, scratch, fontFaces, fontCache } = workerData;
747
1399
  const bytes = readFileSync(inputPath);
748
- const document = inspectDocument(bytes, extension, options);
749
- const faces = fontFaces ?? indexSystemFonts({
750
- directories: options.fontDirectories,
751
- maxFiles: options.maxFontFiles,
752
- maxFileBytes: options.maxFontFileBytes
753
- });
754
- if (!fontFaces) port.postMessage({
755
- kind: "fonts",
756
- faces
757
- });
1400
+ const images = "kind" in operation && operation.kind === "images";
1401
+ if (images && extension === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-document", "Input does not contain a PDF header.");
1402
+ const document = images && extension === "pdf" ? {
1403
+ families: /* @__PURE__ */ new Map(),
1404
+ codePoints: []
1405
+ } : inspectDocument(bytes, extension, options);
758
1406
  if (engine.backend === "wasm") {
759
- if (faces.length === 0) throw new ConversionError("unavailable", "No usable fonts were found. Install fonts or configure fontDirectories before converting documents.");
760
- const result = await convertWithWasm({
761
- engine,
762
- bytes,
763
- extension,
764
- options,
765
- document,
766
- faces
767
- });
768
- port.postMessage({
769
- ok: true,
770
- ...result
771
- }, [result.pdf.buffer]);
1407
+ if (fontFaces.length === 0 && extension !== "pdf") throw new ConversionError("unavailable", "No usable fonts were found. Install fonts or configure fontDirectories before converting documents.");
1408
+ if (images) {
1409
+ let cacheEntries = [];
1410
+ const result = await renderImagesWithWasm({
1411
+ engine,
1412
+ bytes,
1413
+ extension,
1414
+ operation,
1415
+ options,
1416
+ document,
1417
+ faces: fontFaces,
1418
+ ...fontCache === void 0 ? {} : { fontCache },
1419
+ onFontCache: (entries) => {
1420
+ cacheEntries = entries;
1421
+ }
1422
+ });
1423
+ port.postMessage({
1424
+ kind: "font-cache",
1425
+ entries: cacheEntries
1426
+ });
1427
+ port.postMessage({
1428
+ ok: true,
1429
+ images: result
1430
+ });
1431
+ } else {
1432
+ const result = await convertWithWasm({
1433
+ engine,
1434
+ bytes,
1435
+ extension,
1436
+ operation,
1437
+ options,
1438
+ document,
1439
+ faces: fontFaces,
1440
+ ...fontCache === void 0 ? {} : { fontCache },
1441
+ onFontCache: (entries) => port.postMessage({
1442
+ kind: "font-cache",
1443
+ entries
1444
+ })
1445
+ });
1446
+ port.postMessage({
1447
+ ok: true,
1448
+ ...result
1449
+ }, [result.output.buffer]);
1450
+ }
772
1451
  } else {
773
1452
  const directory = join(scratch, "fonts");
774
1453
  mkdirSync(directory, { mode: 448 });
@@ -779,8 +1458,12 @@ try {
779
1458
  mode: 384
780
1459
  });
781
1460
  return path;
782
- }, faces);
1461
+ }, fontFaces, fontCache);
783
1462
  preloadFonts(fonts, options, document, true);
1463
+ port.postMessage({
1464
+ kind: "font-cache",
1465
+ entries: fonts.cacheEntries
1466
+ });
784
1467
  port.postMessage({
785
1468
  ok: true,
786
1469
  fonts: fonts.files,