@songtonyli/dsh-cli 0.1.40 → 0.1.41

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1232) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
  10. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  11. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
  13. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
  14. package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
  16. package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
  17. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
  18. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  19. package/node_modules/@deepseek-ai/dsh/package.json +116 -113
  20. package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
  21. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  22. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
  23. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  24. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
  25. package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
  26. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
  27. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
  34. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
  35. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
  36. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
  37. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
  38. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
  39. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
  40. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
  41. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
  42. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
  43. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
  44. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
  45. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
  46. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
  47. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
  48. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
  49. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
  50. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
  51. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
  52. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
  54. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
  55. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  56. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
  57. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  58. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
  59. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
  60. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
  61. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
  62. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
  63. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
  64. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
  65. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
  66. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
  67. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
  68. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
  69. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
  70. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
  71. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
  72. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
  73. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
  74. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
  75. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
  77. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
  78. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
  79. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1268 -217
  80. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  81. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
  82. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  83. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
  84. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
  85. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
  86. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
  87. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
  88. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
  89. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
  90. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
  91. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
  92. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
  93. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
  94. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
  95. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
  96. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
  97. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
  98. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
  99. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
  100. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
  101. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  102. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
  103. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
  104. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
  105. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
  106. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
  107. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
  108. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
  109. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
  110. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
  111. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
  112. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
  113. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  115. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
  116. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
  117. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
  118. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
  119. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
  120. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
  121. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
  122. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
  125. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  126. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
  127. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
  128. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
  129. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +460 -60
  130. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
  131. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
  132. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
  133. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
  134. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
  135. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
  136. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  137. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
  138. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  139. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
  140. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  141. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
  142. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  143. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
  144. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
  145. package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
  146. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
  147. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  148. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
  149. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  150. package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
  151. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  152. package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
  153. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  154. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
  155. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  156. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
  157. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
  158. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  159. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
  160. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  161. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
  162. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
  163. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
  164. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
  165. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
  166. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
  167. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +103 -17
  168. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
  169. package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
  170. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
  171. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
  172. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
  173. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
  174. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
  175. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
  176. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
  177. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
  178. package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
  179. package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
  180. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
  181. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
  182. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
  183. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
  184. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
  185. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
  186. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
  187. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
  188. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
  189. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
  190. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
  191. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  192. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  193. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
  194. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  195. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
  196. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  197. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
  198. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
  199. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
  200. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
  201. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
  202. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
  203. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
  204. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
  208. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
  209. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
  210. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
  211. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
  212. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
  213. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
  214. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
  217. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  218. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
  219. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
  220. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
  221. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
  222. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
  223. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
  224. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
  225. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
  226. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  227. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
  228. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
  230. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  232. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
  233. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
  234. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
  235. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
  236. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
  237. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
  238. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
  239. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
  240. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  241. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
  242. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
  243. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
  246. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
  247. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
  248. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
  249. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
  250. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
  251. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
  252. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
  253. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
  254. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
  255. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
  256. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
  257. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
  258. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
  259. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
  260. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
  261. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
  262. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
  263. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
  264. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
  265. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
  266. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
  267. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
  268. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
  269. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
  270. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
  271. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
  306. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
  308. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
  309. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
  310. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
  311. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
  313. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
  314. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
  315. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
  316. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
  317. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
  319. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
  320. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
  321. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
  322. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
  323. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
  324. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
  325. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
  326. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
  327. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
  328. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
  329. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
  330. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
  331. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
  332. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
  333. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
  334. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
  335. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
  336. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
  337. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
  338. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
  339. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
  340. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  341. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
  342. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  343. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
  345. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
  346. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
  347. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
  348. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
  349. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
  350. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
  351. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
  352. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
  353. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
  354. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
  355. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
  357. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
  358. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
  359. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
  360. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
  361. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
  362. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
  363. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
  364. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
  365. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
  366. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
  367. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
  368. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
  369. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
  371. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
  372. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
  373. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
  374. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  375. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
  376. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
  377. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  378. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
  379. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
  380. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
  381. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
  382. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
  383. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
  384. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
  385. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
  386. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
  387. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
  388. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
  389. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
  390. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
  393. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
  396. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
  397. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
  398. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
  399. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
  400. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
  401. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
  403. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
  404. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
  405. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
  407. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
  408. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
  409. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
  410. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
  411. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  412. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
  413. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
  415. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
  416. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
  417. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
  418. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
  419. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
  420. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
  421. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
  422. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
  423. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
  424. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
  425. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
  426. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  427. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
  428. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
  429. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
  431. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
  432. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  433. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
  434. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  435. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
  436. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  437. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  438. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
  439. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  440. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
  441. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
  442. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
  443. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
  444. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
  445. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
  446. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
  447. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
  448. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
  449. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
  450. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
  451. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  452. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  453. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
  454. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
  455. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
  456. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
  457. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
  458. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
  459. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  460. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
  461. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
  462. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
  463. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
  464. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
  465. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
  466. package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
  467. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  468. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
  469. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  470. package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
  471. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  472. package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
  473. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  474. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
  475. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
  476. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  477. package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
  478. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  479. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
  480. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
  481. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
  482. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
  483. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  484. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
  485. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  486. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
  487. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  488. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
  489. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  490. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
  491. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
  492. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
  493. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
  494. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  495. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
  496. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
  497. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  498. package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
  499. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  500. package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
  501. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  502. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
  503. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
  504. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
  505. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
  506. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
  507. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
  508. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
  509. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
  510. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
  511. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
  512. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
  513. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
  514. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
  515. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
  516. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  517. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
  518. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  519. package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
  520. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  521. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
  522. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
  523. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
  524. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
  525. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
  526. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  527. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
  528. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
  529. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
  530. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
  531. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
  532. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
  533. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
  534. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  535. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
  536. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
  537. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
  538. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
  539. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
  540. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
  541. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
  542. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  543. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
  544. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
  545. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
  546. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  547. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
  548. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +508 -0
  549. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
  550. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
  551. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
  552. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
  553. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
  554. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
  555. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
  556. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
  557. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
  558. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
  559. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
  560. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
  561. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
  562. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
  563. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
  564. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
  565. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
  566. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
  567. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
  568. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
  569. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
  570. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
  571. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
  572. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
  573. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  574. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
  575. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
  576. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
  577. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
  578. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  579. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
  580. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  581. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
  582. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  583. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
  584. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  585. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
  586. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  587. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
  588. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  589. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
  590. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  591. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
  592. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  593. package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
  594. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
  595. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  596. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
  597. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  598. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
  599. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  600. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
  601. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  602. package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
  603. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
  605. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  606. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
  607. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  608. package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
  609. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
  611. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  612. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +57 -5
  613. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  614. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
  615. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  616. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
  617. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  618. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
  619. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  620. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
  621. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
  622. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
  623. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
  625. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  626. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
  627. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  628. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
  629. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  630. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
  631. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  632. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
  633. package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
  634. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
  635. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  636. package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
  637. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  638. package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
  639. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  640. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
  641. package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
  642. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
  643. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
  644. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
  645. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  646. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
  647. package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
  648. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
  649. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  650. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
  651. package/node_modules/@deepseek-ai/dsh-llm-cursor/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/package.json +76 -76
  1052. package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
  1053. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1054. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
  1055. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  1056. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
  1057. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1058. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
  1059. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
  1060. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
  1061. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1062. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
  1063. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1064. package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
  1065. package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
  1066. package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
  1067. package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
  1068. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
  1069. package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
  1070. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1071. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
  1072. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1073. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
  1074. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1075. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
  1076. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
  1077. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
  1078. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
  1079. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
  1080. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1081. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
  1082. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1083. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
  1084. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  1085. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  1086. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
  1087. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
  1088. package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
  1089. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
  1090. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1091. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
  1092. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
  1093. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
  1094. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
  1095. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
  1096. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
  1097. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
  1098. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
  1099. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
  1100. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
  1101. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
  1102. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
  1103. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
  1104. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
  1105. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
  1106. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
  1107. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
  1108. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
  1109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
  1110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
  1111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
  1112. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
  1113. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
  1114. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
  1115. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
  1116. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
  1117. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
  1119. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
  1120. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
  1121. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
  1122. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
  1123. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
  1124. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
  1125. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
  1126. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
  1127. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
  1128. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
  1129. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
  1130. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
  1131. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
  1132. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
  1133. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
  1134. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
  1135. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
  1136. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  1137. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
  1138. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
  1139. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
  1140. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
  1141. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1142. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
  1143. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1144. package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
  1145. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1146. package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
  1147. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1148. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
  1149. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1150. package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
  1151. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1152. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
  1153. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
  1154. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
  1155. package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
  1156. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
  1157. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
  1158. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
  1159. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1160. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
  1161. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1162. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
  1163. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
  1164. package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
  1165. package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
  1166. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
  1167. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
  1168. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
  1169. package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
  1170. package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
  1171. package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
  1172. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1173. package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  1174. package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  1175. package/node_modules/@js-temporal/polyfill/README.md +90 -0
  1176. package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  1177. package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  1178. package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  1179. package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  1180. package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  1181. package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  1182. package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  1183. package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  1184. package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  1185. package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  1186. package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  1187. package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  1188. package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  1189. package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  1190. package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  1191. package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  1192. package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  1193. package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  1194. package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  1195. package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  1196. package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  1197. package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  1198. package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  1199. package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  1200. package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  1201. package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  1202. package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  1203. package/node_modules/@js-temporal/polyfill/package.json +125 -0
  1204. package/node_modules/fflate/CHANGELOG.md +0 -10
  1205. package/node_modules/fflate/LICENSE +1 -1
  1206. package/node_modules/fflate/README.md +10 -10
  1207. package/node_modules/fflate/esm/browser.js +55 -82
  1208. package/node_modules/fflate/esm/index.mjs +56 -87
  1209. package/node_modules/fflate/lib/browser.cjs +77 -106
  1210. package/node_modules/fflate/lib/index.cjs +77 -106
  1211. package/node_modules/fflate/lib/node-worker.cjs +1 -5
  1212. package/node_modules/fflate/lib/node.cjs +78 -111
  1213. package/node_modules/fflate/package.json +10 -11
  1214. package/node_modules/fflate/umd/index.js +1 -1
  1215. package/node_modules/jsbi/LICENSE +176 -0
  1216. package/node_modules/jsbi/README.md +173 -0
  1217. package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  1218. package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  1219. package/node_modules/jsbi/dist/jsbi.mjs +2 -0
  1220. package/node_modules/jsbi/package.json +25 -0
  1221. package/package.json +305 -289
  1222. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
  1223. package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
  1224. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
  1225. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
  1226. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
  1227. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
  1228. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
  1229. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
  1230. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
  1231. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
  1232. /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
@@ -1,13 +1,15 @@
1
1
  import { createRequire } from "node:module";
2
2
  import { constants, lstatSync, readdirSync } from "node:fs";
3
- import { mkdir, mkdtemp, open, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
3
+ import { lstat, mkdir, mkdtemp, open, readFile, rm, stat, unlink, writeFile } from "node:fs/promises";
4
4
  import { homedir, tmpdir } from "node:os";
5
5
  import { dirname, extname, isAbsolute, join, posix, relative, resolve, sep, win32 } from "node:path";
6
6
  import { Worker } from "node:worker_threads";
7
7
  import { spawn } from "node:child_process";
8
+ import { createHash, randomUUID } from "node:crypto";
9
+ import { createInterface } from "node:readline";
10
+ import { zlibSync } from "fflate";
8
11
  import "fontkit";
9
- import "fflate";
10
- import "saxes";
12
+ import { fileURLToPath } from "node:url";
11
13
  //#region lib/types/errors.js
12
14
  /** Stable render failure categories shared across the Node worker and native helper transports. */
13
15
  const CODES = /* @__PURE__ */ new Set([
@@ -45,6 +47,285 @@ function failureCode(error) {
45
47
  return typeof code === "string" && CODES.has(code) ? code : "failed";
46
48
  }
47
49
  //#endregion
50
+ //#region lib/types/sheet-geometry.js
51
+ const MAX_COLUMN = 16383;
52
+ const MAX_ROW = 1048575;
53
+ function column(index) {
54
+ let name = "";
55
+ for (let value = index + 1; value > 0; value = Math.floor((value - 1) / 26)) name = String.fromCharCode(65 + (value - 1) % 26) + name;
56
+ return name;
57
+ }
58
+ function rangeName(range) {
59
+ return `${column(range.firstColumn)}${range.firstRow + 1}:${column(range.lastColumn)}${range.lastRow + 1}`;
60
+ }
61
+ function parseCellRange(value) {
62
+ const match = /^\$?([A-Z]{1,3})\$?([1-9]\d{0,6})(?::\$?([A-Z]{1,3})\$?([1-9]\d{0,6}))?$/i.exec(value);
63
+ if (!match) throw new TypeError("range must be an A1 cell or rectangle without a sheet prefix.");
64
+ const col = (name) => [...name.toUpperCase()].reduce((sum, c) => sum * 26 + c.charCodeAt(0) - 64, 0) - 1;
65
+ const firstColumn = col(match[1]);
66
+ const firstRow = Number(match[2]) - 1;
67
+ const lastColumn = col(match[3] ?? match[1]);
68
+ const lastRow = Number(match[4] ?? match[2]) - 1;
69
+ if (lastColumn < firstColumn || lastRow < firstRow || lastColumn > MAX_COLUMN || lastRow > MAX_ROW) throw new TypeError("range exceeds Calc worksheet bounds or has reversed endpoints.");
70
+ return {
71
+ firstColumn,
72
+ firstRow,
73
+ lastColumn,
74
+ lastRow
75
+ };
76
+ }
77
+ function sheetPartInfo(value) {
78
+ const info = JSON.parse(value);
79
+ 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.");
80
+ return info;
81
+ }
82
+ /** Formatting-only cells and standalone drawings do not enlarge LibreOffice's data area. */
83
+ function dataArea(info) {
84
+ return {
85
+ firstColumn: 0,
86
+ firstRow: 0,
87
+ lastColumn: info.lastcolumn,
88
+ lastRow: info.lastrow
89
+ };
90
+ }
91
+ function spans(encoded, flags, maximum) {
92
+ if (typeof encoded !== "string" || encoded.length > 33554432) throw new Error("Invalid worksheet geometry span encoding.");
93
+ const tokens = encoded.trim().split(/\s+/);
94
+ let previous = -1;
95
+ let flag = 0;
96
+ const result = tokens.map((token, i) => {
97
+ const fields = token.split(":");
98
+ let value;
99
+ let end;
100
+ if (flags && i > 0) {
101
+ value = flag = 1 - flag;
102
+ end = Number(fields[0]);
103
+ if (fields.length !== 1) throw new Error("Invalid worksheet flag span.");
104
+ } else {
105
+ value = Number(fields[0]);
106
+ end = Number(fields[1]);
107
+ flag = value;
108
+ if (fields.length !== 2) throw new Error("Invalid worksheet size span.");
109
+ }
110
+ 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.");
111
+ previous = end;
112
+ return {
113
+ end,
114
+ value
115
+ };
116
+ });
117
+ if (previous !== maximum) throw new Error("Worksheet geometry does not cover the complete dimension.");
118
+ return result;
119
+ }
120
+ function dimension(data, first, last, maximum, scale) {
121
+ const sizes = spans(data?.sizes, false, maximum);
122
+ const hidden = spans(data?.hidden, true, maximum);
123
+ const filtered = spans(data?.filtered, true, maximum);
124
+ let position = 0, start = 0, index = 0, si = 0, hi = 0, fi = 0;
125
+ while (index <= last) {
126
+ const size = sizes[si], hide = hidden[hi], filter = filtered[fi];
127
+ const end = Math.min(size.end, hide.end, filter.end, last, index < first ? first - 1 : last);
128
+ const pixels = hide.value || filter.value || size.value === 0 ? 0 : Math.max(1, Math.floor(size.value * scale / 15));
129
+ if (index === first) start = position;
130
+ position += (end - index + 1) * pixels;
131
+ index = end + 1;
132
+ if (index > size.end) si++;
133
+ if (index > hide.end) hi++;
134
+ if (index > filter.end) fi++;
135
+ }
136
+ return [start / scale, (position - start) / scale];
137
+ }
138
+ /** Logical columns advance from A; LOK itself mirrors RTL sheet painting. No manual x inversion. */
139
+ function sheetRangeRectangle(geometry, range, scale) {
140
+ if (!Number.isFinite(scale) || scale <= 0 || scale > 16) throw new TypeError("Invalid worksheet raster scale.");
141
+ const [x, width] = dimension(geometry.columns, range.firstColumn, range.lastColumn, MAX_COLUMN, scale);
142
+ const [y, height] = dimension(geometry.rows, range.firstRow, range.lastRow, MAX_ROW, scale);
143
+ if (width <= 0 || height <= 0) throw new Error("The selected worksheet range is entirely hidden or filtered.");
144
+ if ([
145
+ x,
146
+ y,
147
+ width,
148
+ height,
149
+ x + width,
150
+ y + height
151
+ ].some((value) => !Number.isFinite(value) || value * 15 > 2147483647)) throw new Error("The selected worksheet range exceeds the supported coordinate range.");
152
+ return {
153
+ x,
154
+ y,
155
+ width,
156
+ height
157
+ };
158
+ }
159
+ /** Split a region on its output-pixel grid, bounding the plan before allocating it. */
160
+ function splitRasterRectangle(rectangle, scale, limits) {
161
+ const { x, y, width, height } = rectangle;
162
+ const { maxPixels, maxDimension, maxTiles } = limits;
163
+ if (![
164
+ x,
165
+ y,
166
+ width,
167
+ height,
168
+ scale
169
+ ].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.");
170
+ const pixelWidth = Math.ceil(width * scale - 1e-9), pixelHeight = Math.ceil(height * scale - 1e-9);
171
+ if (![pixelWidth, pixelHeight].every((value) => Number.isSafeInteger(value) && value > 0)) throw new RangeError("Raster dimensions exceed the coordinate range.");
172
+ let tileWidth = Math.min(pixelWidth, maxDimension), tileHeight = Math.min(pixelHeight, maxDimension);
173
+ if (tileWidth * tileHeight > maxPixels) {
174
+ const side = Math.floor(Math.sqrt(maxPixels));
175
+ if (tileWidth <= side) tileHeight = Math.floor(maxPixels / tileWidth);
176
+ else if (tileHeight <= side) tileWidth = Math.floor(maxPixels / tileHeight);
177
+ else {
178
+ tileWidth = side;
179
+ tileHeight = Math.min(tileHeight, Math.floor(maxPixels / tileWidth));
180
+ }
181
+ }
182
+ const columns = Math.ceil(pixelWidth / tileWidth), rows = Math.ceil(pixelHeight / tileHeight);
183
+ if (columns * rows > maxTiles) throw new RangeError("Raster batch exceeds maxPages after worksheet splitting.");
184
+ const result = [];
185
+ for (let row = 0; row < rows; row++) for (let column = 0; column < columns; column++) {
186
+ const left = column * tileWidth / scale, top = row * tileHeight / scale;
187
+ result.push({
188
+ x: x + left,
189
+ y: y + top,
190
+ width: Math.min(tileWidth / scale, width - left),
191
+ height: Math.min(tileHeight / scale, height - top)
192
+ });
193
+ }
194
+ return result;
195
+ }
196
+ /** Writer's zero-area parity placeholders have no visible page. Offsets stay in twips. */
197
+ function writerPages(rectangles) {
198
+ const pages = rectangles.split(";").filter((value) => value.trim()).flatMap((rectangle) => {
199
+ const fields = rectangle.split(",").map((value) => Number(value.trim()));
200
+ const [x, y, width, height] = fields;
201
+ 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.");
202
+ return width === 0 ? [] : [{
203
+ x,
204
+ y,
205
+ width: width / 15,
206
+ height: height / 15,
207
+ part: -1
208
+ }];
209
+ });
210
+ if (pages.length === 0) throw new Error("LibreOffice returned no document pages.");
211
+ return pages;
212
+ }
213
+ /** Validate coordinates before allocation or wasm32 integer conversion. */
214
+ function tileDimensions(request, pages) {
215
+ const page = pages[request.pageIndex];
216
+ if (!Number.isSafeInteger(request.pageIndex) || !page || ![
217
+ request.x,
218
+ request.y,
219
+ request.width,
220
+ request.height,
221
+ request.scale
222
+ ].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.");
223
+ const width = Math.ceil(request.width * request.scale - 1e-9);
224
+ const height = Math.ceil(request.height * request.scale - 1e-9);
225
+ if (width <= 0 || height <= 0 || !Number.isSafeInteger(width * height) || width * height > 16777216) throw new Error("Tile exceeds the 16 megapixel allocation limit.");
226
+ const twips = [
227
+ page.x + Math.round(request.x * 15),
228
+ page.y + Math.round(request.y * 15),
229
+ Math.round(request.width * 15),
230
+ Math.round(request.height * 15)
231
+ ];
232
+ 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.");
233
+ return {
234
+ page,
235
+ width,
236
+ height
237
+ };
238
+ }
239
+ /** Cairo/LO channels are premultiplied; PNG and ImageData require straight RGBA. */
240
+ function rgbaPixels(source, tileMode) {
241
+ if (tileMode !== 0 && tileMode !== 1 || source.length % 4 !== 0) throw new Error("LibreOffice returned an unsupported tile pixel format.");
242
+ const result = new Uint8ClampedArray(source.length);
243
+ for (let index = 0; index < source.length; index += 4) {
244
+ const alpha = source[index + 3];
245
+ const multiplier = alpha === 0 ? 0 : 255 / alpha;
246
+ result[index] = source[index + (tileMode === 1 ? 2 : 0)] * multiplier;
247
+ result[index + 1] = source[index + 1] * multiplier;
248
+ result[index + 2] = source[index + (tileMode === 1 ? 0 : 2)] * multiplier;
249
+ result[index + 3] = alpha;
250
+ }
251
+ return result;
252
+ }
253
+ //#endregion
254
+ //#region lib/types/image-operations.js
255
+ /** Public direct-raster request and immutable saved-file manifest. */
256
+ const IMAGE_FORMATS = [
257
+ "doc",
258
+ "docx",
259
+ "odt",
260
+ "xls",
261
+ "xlsx",
262
+ "ods",
263
+ "ppt",
264
+ "pptx",
265
+ "odp",
266
+ "pdf"
267
+ ];
268
+ function resolveImageRender(request) {
269
+ if (!request || typeof request.inputPath !== "string" || typeof request.outputDir !== "string" || !isAbsolute(request.inputPath) || !isAbsolute(request.outputDir) || request.inputPath.includes("\0") || request.outputDir.includes("\0")) throw new TypeError("inputPath and outputDir must be absolute filesystem paths.");
270
+ const inputPath = resolve(request.inputPath), outputDir = resolve(request.outputDir);
271
+ const within = relative(outputDir, inputPath);
272
+ if (!within || !within.startsWith("..") && !isAbsolute(within)) throw new TypeError("Input cannot be inside the newly owned output directory.");
273
+ const extension = extname(inputPath).slice(1).toLowerCase();
274
+ if (!IMAGE_FORMATS.includes(extension)) throw new ConversionError("unsupported-format", `Unsupported image input: ${extension}.`);
275
+ const calc = [
276
+ "xls",
277
+ "xlsx",
278
+ "ods"
279
+ ].includes(extension);
280
+ if (calc && request.pages !== void 0) throw new TypeError("Worksheets use sheet and A1 range, not printed page numbers.");
281
+ if (!calc && (request.sheet !== void 0 || request.range !== void 0)) throw new TypeError("sheet and range apply only to worksheets.");
282
+ if (request.sheet !== void 0 && (typeof request.sheet !== "string" || !request.sheet.trim() || request.sheet.includes("\0"))) throw new TypeError("sheet must be a nonempty exact worksheet name.");
283
+ if (request.range !== void 0 && request.sheet === void 0) throw new TypeError("range requires an exact sheet name.");
284
+ const range = request.range === void 0 ? void 0 : rangeName(parseCellRange(request.range));
285
+ const pages = request.pages ?? "all";
286
+ if (pages !== "all" && (!Array.isArray(pages) || pages.length === 0 || pages.some((page) => !Number.isSafeInteger(page) || page < 1) || new Set(pages).size !== pages.length)) throw new TypeError("pages must be all or distinct positive one-based page numbers.");
287
+ const dpi = request.dpi ?? 144;
288
+ const maxPages = request.maxPages ?? 100;
289
+ const maxPixels = request.maxPixels ?? 16777216;
290
+ const maxDimension = request.maxDimension ?? 8192;
291
+ if (!Number.isFinite(dpi) || dpi < 24 || dpi > 600) throw new TypeError("dpi must be between 24 and 600.");
292
+ if (!Number.isSafeInteger(maxPages) || maxPages < 1 || maxPages > 1e4) throw new TypeError("maxPages must be an integer between 1 and 10000.");
293
+ if (!Number.isSafeInteger(maxPixels) || maxPixels < 1 || maxPixels > 16777216) throw new TypeError("maxPixels must be between 1 and 16777216.");
294
+ if (!Number.isSafeInteger(maxDimension) || maxDimension < 1 || maxDimension > 16777216) throw new TypeError("maxDimension must be between 1 and 16777216.");
295
+ if (pages !== "all" && pages.length > maxPages) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages.");
296
+ return {
297
+ kind: "images",
298
+ inputPath,
299
+ outputDir,
300
+ extension,
301
+ dpi,
302
+ maxPages,
303
+ maxPixels,
304
+ maxDimension,
305
+ ...calc ? {} : { pages: pages === "all" ? "all" : [...pages] },
306
+ ...request.sheet === void 0 ? {} : { sheet: request.sheet },
307
+ ...range === void 0 ? {} : { range }
308
+ };
309
+ }
310
+ function selectedPages(pages, count, limit) {
311
+ if (!Number.isSafeInteger(count) || count < 1) throw new ConversionError("invalid-document", "The document contains no renderable pages.");
312
+ const result = pages === void 0 || pages === "all" ? Array.from({ length: Math.min(count, limit + 1) }, (_, i) => i + 1) : [...pages];
313
+ if (result.length > limit) throw new ConversionError("output-too-large", "Selected page count exceeds maxPages; select pages or raise the limit.");
314
+ if (result.some((page) => page > count)) throw new TypeError(`Selected page lies outside the ${count}-page document.`);
315
+ return result;
316
+ }
317
+ //#endregion
318
+ //#region lib/types/profile.js
319
+ /** Private headless profile used by both native and WASM conversions. */
320
+ /**
321
+ * CSV selection is checked by the engine wrapper before saving; suppress the interactive warning.
322
+ * @param fontNodes - Escaped VCL font-substitution nodes, or an empty string for WASM.
323
+ * @returns The per-operation registry XML; macro execution is independently disabled at load.
324
+ */
325
+ function profileXml(fontNodes = "") {
326
+ 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`;
327
+ }
328
+ //#endregion
48
329
  //#region lib/types/native-font-names.js
49
330
  /** Localized search names from LibreOffice Core's fixed font-name dictionary. */
50
331
  const LOCALIZED_FONT_SEARCH_NAMES = /* @__PURE__ */ new Map([
@@ -240,14 +521,13 @@ function fontSearchName(value) {
240
521
  * Installed originals and metric-compatible fonts are resolved before this table by LibreOffice.
241
522
  * @param profile - Existing, conversion-owned profile directory.
242
523
  * @param substitutions - Missing document families and the selected installed family.
243
- * @returns Resolves after the exclusive profile file is written; empty choices create no file.
524
+ * @returns Resolves after the exclusive profile file is written; empty choices still disable the interactive CSV warning.
244
525
  */
245
526
  async function prepareNativeFontProfile(profile, substitutions) {
246
- if (substitutions.length === 0) return;
247
527
  const families = new Map(substitutions.map(({ family, substitute }) => [fontSearchName(family), substitute]));
248
528
  for (const [family, substitute] of [...families]) for (let alias = METRIC_SEARCH_NAMES.get(family); alias; alias = METRIC_SEARCH_NAMES.get(alias)) if (!families.has(alias)) families.set(alias, substitute);
249
529
  const escape = (value) => value.replaceAll("&", "&amp;").replaceAll("<", "&lt;").replaceAll(">", "&gt;").replaceAll("\"", "&quot;").replaceAll("'", "&apos;");
250
- const xml = `<?xml version="1.0" encoding="UTF-8"?><oor:items xmlns:oor="http://openoffice.org/2001/registry"><item oor:path="/org.openoffice.VCL/FontSubstitutions/en">${[...families].map(([family, substitute]) => `<node oor:name="${escape(family)}" oor:op="replace"><prop oor:name="SubstFonts" oor:op="fuse"><value>${escape(substitute)}</value></prop></node>`).join("")}</item></oor:items>\n`;
530
+ const xml = profileXml([...families].map(([family, substitute]) => `<node oor:name="${escape(family)}" oor:op="replace"><prop oor:name="SubstFonts" oor:op="fuse"><value>${escape(substitute)}</value></prop></node>`).join(""));
251
531
  const user = join(profile, "user");
252
532
  await mkdir(user, { mode: 448 });
253
533
  await writeFile(join(user, "registrymodifications.xcu"), xml, {
@@ -288,9 +568,13 @@ function nativeEnvironment(profile, programDirectory, source = process.env, plat
288
568
  * @param fonts - Installed font files the helper may load.
289
569
  * @param substitutions - Missing families and their selected installed substitutes.
290
570
  * @param signal - Cancellation; it kills the helper and awaits its exit.
571
+ * @param operation - Validated output format, recalculation, and worksheet selection.
291
572
  * @throws ConversionError for a reported conversion failure, and the abort reason for cancellation.
292
573
  */
293
- async function runNative(engine, options, input, output, profile, fonts, substitutions, signal) {
574
+ async function runNative(engine, options, input, output, profile, fonts, substitutions, signal, operation = {
575
+ format: "pdf",
576
+ recalculate: false
577
+ }) {
294
578
  signal.throwIfAborted();
295
579
  await prepareNativeFontProfile(profile, substitutions);
296
580
  signal.throwIfAborted();
@@ -308,6 +592,11 @@ async function runNative(engine, options, input, output, profile, fonts, substit
308
592
  String(options.maxOutputBytes),
309
593
  "--max-image-resolution",
310
594
  String(options.maxImageResolution),
595
+ "--format",
596
+ operation.format,
597
+ "--recalculate",
598
+ String(operation.recalculate),
599
+ ...operation.sheet === void 0 ? [] : ["--sheet", operation.sheet],
311
600
  ...fonts.flatMap((path) => ["--font-file", path])
312
601
  ], {
313
602
  stdio: [
@@ -362,6 +651,315 @@ async function runNative(engine, options, input, output, profile, fonts, substit
362
651
  }
363
652
  }
364
653
  //#endregion
654
+ //#region lib/types/png.js
655
+ /** Portable PNG encoding over straight RGBA; browser and Node need no native image dependency. */
656
+ const crcTable = Uint32Array.from({ length: 256 }, (_, value) => {
657
+ for (let bit = 0; bit < 8; bit++) value = value & 1 ? 3988292384 ^ value >>> 1 : value >>> 1;
658
+ return value >>> 0;
659
+ });
660
+ function chunk(type, bytes) {
661
+ const output = new Uint8Array(bytes.length + 12);
662
+ const view = new DataView(output.buffer);
663
+ view.setUint32(0, bytes.length);
664
+ output.set(new TextEncoder().encode(type), 4);
665
+ output.set(bytes, 8);
666
+ let crc = 4294967295;
667
+ for (let i = 4; i < output.length - 4; i++) crc = crcTable[(crc ^ output[i]) & 255] ^ crc >>> 8;
668
+ view.setUint32(output.length - 4, (crc ^ 4294967295) >>> 0);
669
+ return output;
670
+ }
671
+ function encodePng(width, height, rgba) {
672
+ 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.");
673
+ const header = /* @__PURE__ */ new Uint8Array(13);
674
+ const view = new DataView(header.buffer);
675
+ view.setUint32(0, width);
676
+ view.setUint32(4, height);
677
+ header[8] = 8;
678
+ header[9] = 6;
679
+ const scanlines = new Uint8Array(height * (width * 4 + 1));
680
+ for (let y = 0; y < height; y++) {
681
+ const source = y * width * 4;
682
+ const target = y * (width * 4 + 1);
683
+ scanlines[target] = 1;
684
+ for (let x = 0; x < width * 4; x++) scanlines[target + 1 + x] = rgba[source + x] - (x < 4 ? 0 : rgba[source + x - 4]);
685
+ }
686
+ const chunks = [
687
+ new Uint8Array([
688
+ 137,
689
+ 80,
690
+ 78,
691
+ 71,
692
+ 13,
693
+ 10,
694
+ 26,
695
+ 10
696
+ ]),
697
+ chunk("IHDR", header),
698
+ chunk("IDAT", zlibSync(scanlines, { level: 6 })),
699
+ chunk("IEND", /* @__PURE__ */ new Uint8Array())
700
+ ];
701
+ const result = new Uint8Array(chunks.reduce((sum, value) => sum + value.length, 0));
702
+ let offset = 0;
703
+ for (const value of chunks) {
704
+ result.set(value, offset);
705
+ offset += value.length;
706
+ }
707
+ return result;
708
+ }
709
+ //#endregion
710
+ //#region lib/types/native-image-renderer.js
711
+ /** Direct native LibreOfficeKit/PDFium rasterization through one operation-owned helper. */
712
+ function failure(value, stderr) {
713
+ const result = value;
714
+ return new ConversionError(failureCode(result), `LibreOffice native rendering failed: ${result.error ?? stderr}`);
715
+ }
716
+ function plan(ready, request) {
717
+ const select = (pages) => ({
718
+ count: pages.length,
719
+ regions: selectedPages(request.pages, pages.length, request.maxPages).map((number) => {
720
+ const page = pages[number - 1];
721
+ return {
722
+ page,
723
+ number,
724
+ rectangle: {
725
+ x: 0,
726
+ y: 0,
727
+ width: page.width,
728
+ height: page.height
729
+ }
730
+ };
731
+ })
732
+ });
733
+ if (ready.documentType === "pdf" || ready.documentType === "presentation") {
734
+ const pages = ready.pages;
735
+ if (!Array.isArray(pages)) throw new ConversionError("invalid-document", "LibreOffice returned no page dimensions.");
736
+ return select(pages.map(({ width, height }, part) => {
737
+ if (!Number.isSafeInteger(width) || !Number.isSafeInteger(height) || width < 1 || height < 1) throw new ConversionError("invalid-document", "LibreOffice returned invalid page dimensions.");
738
+ return {
739
+ part,
740
+ x: 0,
741
+ y: 0,
742
+ width: width / 15,
743
+ height: height / 15
744
+ };
745
+ }));
746
+ }
747
+ if (ready.documentType === "text") {
748
+ if (typeof ready.writerRectangles !== "string") throw new ConversionError("invalid-document", "LibreOffice returned no Writer page rectangles.");
749
+ return select(writerPages(ready.writerRectangles));
750
+ }
751
+ const sheets = (ready.sheets ?? []).map(({ part, info, geometry }) => ({
752
+ part,
753
+ info: sheetPartInfo(info),
754
+ geometry: JSON.parse(geometry)
755
+ }));
756
+ const count = sheets.filter((sheet) => sheet.info.visible).length;
757
+ const chosen = request.sheet === void 0 ? sheets.filter((sheet) => sheet.info.visible) : sheets.filter((sheet) => sheet.info.name === request.sheet);
758
+ if (chosen.length === 0) throw new ConversionError("invalid-document", "The exact worksheet name does not exist or the workbook has no visible sheets.");
759
+ if (chosen.length > request.maxPages) throw new ConversionError("output-too-large", "Selected worksheet count exceeds maxPages; select a sheet or raise the limit.");
760
+ const scale = request.dpi / 96;
761
+ return {
762
+ count,
763
+ regions: chosen.map(({ part, info, geometry }) => {
764
+ const range = request.range === void 0 ? dataArea(info) : parseCellRange(request.range);
765
+ const rectangle = sheetRangeRectangle(geometry, range, scale);
766
+ return {
767
+ page: {
768
+ x: 0,
769
+ y: 0,
770
+ width: rectangle.x + rectangle.width,
771
+ height: rectangle.y + rectangle.height,
772
+ part
773
+ },
774
+ rectangle,
775
+ sheet: info.name,
776
+ range: rangeName(range),
777
+ rtl: Boolean(info.rtllayout)
778
+ };
779
+ })
780
+ };
781
+ }
782
+ /** Run one native image batch and write final PNGs only after each bounded paint succeeds. */
783
+ async function renderImagesWithNative(request) {
784
+ const { engine, options, inputPath, source, scratch, profile, fonts, substitutions, missingFonts, operation, signal } = request;
785
+ signal.throwIfAborted();
786
+ await mkdir(profile, { mode: 448 });
787
+ await prepareNativeFontProfile(profile, substitutions);
788
+ const child = spawn(engine.executable, [
789
+ "--operation",
790
+ "render-images",
791
+ "--program-directory",
792
+ engine.programDirectory,
793
+ "--input-path",
794
+ inputPath,
795
+ "--scratch-directory",
796
+ scratch,
797
+ "--profile-directory",
798
+ profile,
799
+ "--max-output-bytes",
800
+ String(options.maxOutputBytes),
801
+ "--max-image-resolution",
802
+ String(options.maxImageResolution),
803
+ ...fonts.flatMap((path) => ["--font-file", path])
804
+ ], {
805
+ stdio: [
806
+ "pipe",
807
+ "pipe",
808
+ "pipe"
809
+ ],
810
+ windowsHide: true,
811
+ env: nativeEnvironment(profile, engine.programDirectory)
812
+ });
813
+ const lines = [];
814
+ const waiters = [];
815
+ const output = createInterface({ input: child.stdout });
816
+ output.on("line", (line) => {
817
+ const waiter = waiters.shift();
818
+ if (waiter) waiter(line);
819
+ else lines.push(line);
820
+ });
821
+ let stderr = "";
822
+ let stopped;
823
+ child.stderr.setEncoding("utf8");
824
+ child.stderr.on("data", (chunk) => {
825
+ stderr = (stderr + chunk).slice(-65536);
826
+ });
827
+ const closed = new Promise((resolve, reject) => {
828
+ child.once("error", reject);
829
+ child.once("close", resolve);
830
+ });
831
+ const abort = () => {
832
+ stopped ??= signal.reason;
833
+ child.kill("SIGKILL");
834
+ };
835
+ signal.addEventListener("abort", abort, { once: true });
836
+ const next = async () => {
837
+ signal.throwIfAborted();
838
+ if (lines.length > 0) return lines.shift();
839
+ return new Promise((resolve, reject) => {
840
+ const done = (line) => {
841
+ signal.removeEventListener("abort", cancel);
842
+ resolve(line);
843
+ };
844
+ const cancel = () => {
845
+ const index = waiters.indexOf(done);
846
+ if (index >= 0) waiters.splice(index, 1);
847
+ reject(signal.reason);
848
+ };
849
+ signal.addEventListener("abort", cancel, { once: true });
850
+ waiters.push(done);
851
+ });
852
+ };
853
+ const response = async () => {
854
+ const line = await next();
855
+ let value;
856
+ try {
857
+ value = JSON.parse(line);
858
+ } catch (cause) {
859
+ throw new Error(`LibreOffice native renderer returned invalid JSON. ${stderr}`, { cause });
860
+ }
861
+ if (!value.ok) throw failure(value, stderr);
862
+ return value;
863
+ };
864
+ try {
865
+ const ready = await response();
866
+ if (ready.kind !== "ready") throw new Error("LibreOffice native renderer did not initialize.");
867
+ const planned = plan(ready, operation);
868
+ const scale = operation.dpi / 96;
869
+ const selected = [];
870
+ for (const region of planned.regions) if (region.sheet === void 0) selected.push(region);
871
+ else {
872
+ let rectangles;
873
+ try {
874
+ rectangles = splitRasterRectangle(region.rectangle, scale, {
875
+ maxPixels: operation.maxPixels,
876
+ maxDimension: operation.maxDimension,
877
+ maxTiles: operation.maxPages - selected.length
878
+ });
879
+ } catch (cause) {
880
+ throw new ConversionError("output-too-large", String(cause), { cause });
881
+ }
882
+ selected.push(...rectangles.map((rectangle) => ({
883
+ ...region,
884
+ rectangle
885
+ })));
886
+ }
887
+ for (const { page, rectangle } of selected) {
888
+ const { width, height } = tileDimensions({
889
+ pageIndex: 0,
890
+ ...rectangle,
891
+ scale
892
+ }, [page]);
893
+ if (width > operation.maxDimension || height > operation.maxDimension || width * height > operation.maxPixels) throw new ConversionError("output-too-large", "Selected page exceeds maxPixels or maxDimension; reduce DPI or raise the image limits.");
894
+ }
895
+ const images = [];
896
+ let total = 0;
897
+ for (const region of selected) {
898
+ signal.throwIfAborted();
899
+ const { width, height } = tileDimensions({
900
+ pageIndex: 0,
901
+ ...region.rectangle,
902
+ scale
903
+ }, [region.page]);
904
+ const x = region.page.x + Math.round(region.rectangle.x * 15);
905
+ const y = region.page.y + Math.round(region.rectangle.y * 15);
906
+ const twipsWidth = Math.max(1, Math.round(region.rectangle.width * 15));
907
+ const twipsHeight = Math.max(1, Math.round(region.rectangle.height * 15));
908
+ const index = images.length + 1;
909
+ child.stdin.write(`P ${index} ${region.page.part} ${width} ${height} ${x} ${y} ${twipsWidth} ${twipsHeight}\n`);
910
+ const painted = await response();
911
+ if (painted.kind !== "paint" || painted.index !== index || painted.width !== width || painted.height !== height) throw new Error("LibreOffice native renderer returned inconsistent tile metadata.");
912
+ if (resolve(painted.path) !== resolve(scratch, `tile-${index}.rgba`)) throw new Error("LibreOffice native renderer returned a tile outside its scratch directory.");
913
+ const raw = await readFile(painted.path);
914
+ if (raw.byteLength !== width * height * 4) throw new Error("LibreOffice native renderer returned incomplete pixels.");
915
+ const png = encodePng(width, height, ready.documentType === "pdf" ? new Uint8ClampedArray(raw) : rgbaPixels(raw, ready.tileMode));
916
+ total += png.byteLength;
917
+ if (total > options.maxOutputBytes) throw new ConversionError("output-too-large", "PNG batch exceeds maxOutputBytes.");
918
+ const path = join(operation.outputDir, `page-${String(index).padStart(4, "0")}.png`);
919
+ await writeFile(path, png, {
920
+ flag: "wx",
921
+ mode: 384
922
+ });
923
+ images.push({
924
+ index,
925
+ ...region.number === void 0 ? {} : { page: region.number },
926
+ ...region.sheet === void 0 ? {} : {
927
+ sheet: region.sheet,
928
+ range: region.range,
929
+ rtl: region.rtl
930
+ },
931
+ path,
932
+ width,
933
+ height,
934
+ rectangle: region.rectangle,
935
+ byteLength: png.byteLength
936
+ });
937
+ }
938
+ child.stdin.end("DONE\n");
939
+ if ((await response()).kind !== "done") throw new Error("LibreOffice native renderer did not finish.");
940
+ const code = await closed;
941
+ if (code !== 0) throw new Error(`LibreOffice native renderer exited ${code}. ${stderr}`);
942
+ return {
943
+ schemaVersion: 1,
944
+ backend: "native",
945
+ rasterEngine: ready.documentType === "pdf" ? "pdfium" : "libreoffice",
946
+ source: "saved",
947
+ inputPath: operation.inputPath,
948
+ sourceSha256: createHash("sha256").update(source).digest("hex"),
949
+ dpi: operation.dpi,
950
+ pageCount: planned.count,
951
+ images,
952
+ missingFonts: [...missingFonts]
953
+ };
954
+ } finally {
955
+ signal.removeEventListener("abort", abort);
956
+ output.close();
957
+ if (child.exitCode === null) child.kill("SIGKILL");
958
+ await closed.catch(() => {});
959
+ if (stopped !== void 0) throw stopped;
960
+ }
961
+ }
962
+ //#endregion
365
963
  //#region lib/types/fonts.js
366
964
  /** Host font metadata snapshots and conversion-local glyph matching over original files. */
367
965
  /**
@@ -414,6 +1012,14 @@ function mobileAssetFontDirectories(assets) {
414
1012
  return entries.filter((name) => /^com_apple_MobileAsset_Font\d*$/.test(name)).sort().map((name) => join(assets, name));
415
1013
  }
416
1014
  //#endregion
1015
+ //#region lib/types/font-metadata-cache.js
1016
+ /** Resolve the platform's user-local cache, independently of font discovery. */
1017
+ function defaultFontMetadataCacheDirectory(platform = process.platform, home = homedir(), env = process.env) {
1018
+ if (platform === "darwin") return posix.join(home, "Library/Caches/libreoffice-kit");
1019
+ if (platform === "win32") return win32.join(env.LOCALAPPDATA ?? win32.join(home, "AppData/Local"), "libreoffice-kit/Cache");
1020
+ return posix.join(env.XDG_CACHE_HOME && posix.isAbsolute(env.XDG_CACHE_HOME) ? env.XDG_CACHE_HOME : posix.join(home, ".cache"), "libreoffice-kit");
1021
+ }
1022
+ //#endregion
417
1023
  //#region lib/types/options.js
418
1024
  const SANS_CJK_FAMILIES = [
419
1025
  "Microsoft YaHei",
@@ -537,7 +1143,9 @@ const DEFAULT_LIMITS = {
537
1143
  maxUncompressedBytes: 536870912,
538
1144
  maxFontFiles: 2e4,
539
1145
  maxFontFileBytes: 268435456,
540
- maxLoadedFontBytes: 536870912
1146
+ maxLoadedFontBytes: 536870912,
1147
+ maxFontResolutionEntries: 4096,
1148
+ maxFontMetadataCacheBytes: 33554432
541
1149
  };
542
1150
  const FONT_COLLECTION_NAMES = ["fontDirectories", "initialFontFamilies"];
543
1151
  function positiveSafeInteger(value, name) {
@@ -575,8 +1183,12 @@ function resolveOptions(input = {}) {
575
1183
  initialFontFamilies: [],
576
1184
  ...input
577
1185
  };
578
- for (const key of Object.keys(input)) if (!(key in DEFAULT_LIMITS) && !FONT_COLLECTION_NAMES.includes(key) && key !== "fontFallbacks") throw new TypeError(`Unknown converter option: ${key}`);
1186
+ for (const key of Object.keys(input)) if (!(key in DEFAULT_LIMITS) && !FONT_COLLECTION_NAMES.includes(key) && key !== "fontFallbacks" && key !== "fontMetadataCacheDirectory") throw new TypeError(`Unknown converter option: ${key}`);
1187
+ const cacheDirectory = input.fontMetadataCacheDirectory === void 0 ? defaultFontMetadataCacheDirectory() : input.fontMetadataCacheDirectory;
1188
+ if (cacheDirectory !== false && (typeof cacheDirectory !== "string" || !isAbsolute(cacheDirectory) || cacheDirectory.includes("\0"))) throw new TypeError("fontMetadataCacheDirectory must be an absolute path or false.");
579
1189
  return {
1190
+ fontMetadataCacheDirectory: cacheDirectory,
1191
+ maxFontMetadataCacheBytes: positiveSafeInteger(merged.maxFontMetadataCacheBytes, "maxFontMetadataCacheBytes"),
580
1192
  timeoutMs: positiveSafeInteger(merged.timeoutMs, "timeoutMs"),
581
1193
  maxInputBytes: positiveSafeInteger(merged.maxInputBytes, "maxInputBytes"),
582
1194
  maxOutputBytes: positiveSafeInteger(merged.maxOutputBytes, "maxOutputBytes"),
@@ -586,7 +1198,9 @@ function resolveOptions(input = {}) {
586
1198
  maxFontFiles: positiveSafeInteger(merged.maxFontFiles, "maxFontFiles"),
587
1199
  maxFontFileBytes: positiveSafeInteger(merged.maxFontFileBytes, "maxFontFileBytes"),
588
1200
  maxLoadedFontBytes: positiveSafeInteger(merged.maxLoadedFontBytes, "maxLoadedFontBytes"),
1201
+ maxFontResolutionEntries: positiveSafeInteger(merged.maxFontResolutionEntries, "maxFontResolutionEntries"),
589
1202
  fontDirectories: fontNames(merged.fontDirectories, "fontDirectories"),
1203
+ includeOfficeFonts: input.fontDirectories === void 0,
590
1204
  initialFontFamilies: fontNames(merged.initialFontFamilies, "initialFontFamilies"),
591
1205
  fontFallbacks: fontGroups(merged.fontFallbacks)
592
1206
  };
@@ -599,7 +1213,7 @@ const require = createRequire(import.meta.url);
599
1213
  * Engine-family version every installed engine package must carry. The engine
600
1214
  * family shares its release version with this Node API.
601
1215
  */
602
- const ENGINE_VERSION = "0.0.1";
1216
+ const ENGINE_VERSION = "0.1.1";
603
1217
  /** npm scope and name prefix shared by the engine packages this adapter installs. */
604
1218
  const ENGINE_PREFIX = "@deepseek-ai/libreoffice-kit";
605
1219
  /**
@@ -678,7 +1292,7 @@ async function readEngine(packageFile, backend, target) {
678
1292
  const root = dirname(packageFile);
679
1293
  const [pkg, manifest] = await Promise.all([readFile(packageFile, "utf8").then((text) => JSON.parse(text)), readFile(resolve(root, "prebuilds.json"), "utf8").then((text) => JSON.parse(text))]);
680
1294
  const engine = manifest.engine;
681
- if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.0.1" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
1295
+ if (pkg.name !== `${ENGINE_PREFIX}-${target}` || pkg.version !== "0.1.1" || manifest.version !== pkg.version || manifest.schemaVersion !== 1 || manifest.status !== "built" || engine === void 0 || engine.kind !== backend || manifest.platform !== target) throw new Error(`Installed LibreOfficeKit ${backend} package has an incompatible or incomplete manifest.`);
682
1296
  const minimum = engine.glibcMinimum;
683
1297
  if (minimum !== void 0 && (!target.endsWith("-glibc") || !glibcVersion(minimum))) throw new Error("Installed LibreOfficeKit engine has an invalid glibcMinimum.");
684
1298
  const glibcFloor = minimum === void 0 ? {} : { glibcMinimum: minimum };
@@ -704,16 +1318,219 @@ async function readEngine(packageFile, backend, target) {
704
1318
  };
705
1319
  }
706
1320
  //#endregion
707
- //#region lib/types/document.js
708
- /** Input suffixes accepted by the public converter. */
709
- const DOCUMENT_EXTENSIONS = [
710
- "doc",
711
- "docx",
712
- "xls",
713
- "xlsx",
714
- "ppt",
715
- "pptx"
1321
+ //#region lib/types/operations.js
1322
+ /** Validated document operations shared by the public API, workers, and CLI. */
1323
+ /** Conversions supported by the bundled Writer, Calc, and Impress components. */
1324
+ const CONVERSION_FORMATS = [
1325
+ {
1326
+ inputs: [
1327
+ "doc",
1328
+ "docx",
1329
+ "odt"
1330
+ ],
1331
+ outputs: [
1332
+ "pdf",
1333
+ "docx",
1334
+ "odt",
1335
+ "txt"
1336
+ ]
1337
+ },
1338
+ {
1339
+ inputs: [
1340
+ "xls",
1341
+ "xlsx",
1342
+ "ods"
1343
+ ],
1344
+ outputs: [
1345
+ "pdf",
1346
+ "xlsx",
1347
+ "ods",
1348
+ "csv"
1349
+ ]
1350
+ },
1351
+ {
1352
+ inputs: [
1353
+ "ppt",
1354
+ "pptx",
1355
+ "odp"
1356
+ ],
1357
+ outputs: [
1358
+ "pdf",
1359
+ "pptx",
1360
+ "odp"
1361
+ ]
1362
+ }
716
1363
  ];
1364
+ /**
1365
+ * Validate paths and the format matrix before file access or queue admission.
1366
+ * @param request - Public conversion parameters.
1367
+ * @param operation - PDF compatibility entry, general conversion, or workbook recalculation.
1368
+ * @returns The explicit engine operation.
1369
+ */
1370
+ function resolveConversion(request, operation) {
1371
+ if (!request || typeof request.inputPath !== "string" || typeof request.outputPath !== "string" || !isAbsolute(request.inputPath) || !isAbsolute(request.outputPath) || request.inputPath.includes("\0") || request.outputPath.includes("\0")) throw new TypeError("inputPath and outputPath must be absolute filesystem paths.");
1372
+ if (resolve(request.inputPath) === resolve(request.outputPath)) throw new TypeError("Input and output paths must differ.");
1373
+ const extension = extname(request.inputPath).slice(1).toLowerCase();
1374
+ const format = operation === "render" ? "pdf" : extname(request.outputPath).slice(1).toLowerCase();
1375
+ const family = CONVERSION_FORMATS.find((group) => group.inputs.includes(extension));
1376
+ if (!family || !family.outputs.includes(format)) throw new ConversionError("unsupported-format", `Unsupported conversion: ${extension || "(no input extension)"} → ${format || "(no output extension)"}.`);
1377
+ if (operation === "recalculate" && (![
1378
+ "xls",
1379
+ "xlsx",
1380
+ "ods"
1381
+ ].includes(extension) || !["xlsx", "ods"].includes(format))) throw new ConversionError("unsupported-format", "Recalculation requires XLS, XLSX, or ODS input and XLSX or ODS output.");
1382
+ if (request.sheet !== void 0 && (format !== "csv" || typeof request.sheet !== "string" || !request.sheet.trim() || request.sheet.includes("\0"))) throw new TypeError("sheet must be a nonempty exact worksheet name and is supported only for CSV output.");
1383
+ return {
1384
+ inputPath: request.inputPath,
1385
+ outputPath: request.outputPath,
1386
+ extension,
1387
+ format,
1388
+ recalculate: operation === "recalculate",
1389
+ ...request.sheet === void 0 ? {} : { sheet: request.sheet }
1390
+ };
1391
+ }
1392
+ /**
1393
+ * Reject an engine output with an incorrect container signature.
1394
+ * @param bytes - Complete bounded output.
1395
+ * @param format - Requested output suffix.
1396
+ */
1397
+ function validateOutput(bytes, format) {
1398
+ if (format === "pdf" && new TextDecoder().decode(bytes.subarray(0, 5)) !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
1399
+ if ([
1400
+ "docx",
1401
+ "xlsx",
1402
+ "pptx",
1403
+ "odt",
1404
+ "ods",
1405
+ "odp"
1406
+ ].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.`);
1407
+ }
1408
+ //#endregion
1409
+ //#region lib/types/runtime.js
1410
+ /** Offline discovery of the installed engine and public entry points. */
1411
+ /**
1412
+ * Inspect installed engine metadata without starting, downloading, or building an engine.
1413
+ * @returns Public entry paths, engine version, and selected backend.
1414
+ * @throws ConversionError when the installed engine is unavailable or invalid.
1415
+ */
1416
+ async function discoverRuntime() {
1417
+ try {
1418
+ const engine = await resolveEngine();
1419
+ return {
1420
+ version: ENGINE_VERSION,
1421
+ backend: engine.backend,
1422
+ cliPath: fileURLToPath(new URL("./cli.js", import.meta.url)),
1423
+ nodeApiPath: fileURLToPath(new URL("./index.js", import.meta.url))
1424
+ };
1425
+ } catch (cause) {
1426
+ throw new ConversionError("unavailable", cause.message, { cause });
1427
+ }
1428
+ }
1429
+ //#endregion
1430
+ //#region lib/types/font-snapshot-state.js
1431
+ /** Shared in-flight metadata work with independent cancellation and joined Worker cleanup. */
1432
+ /** Run one scan outside the event loop and join it before returning or cleaning its temporary file. */
1433
+ async function runFontSnapshot(options, previous, signal) {
1434
+ signal.throwIfAborted();
1435
+ const temporaryPath = options.fontMetadataCacheDirectory === false ? void 0 : join(options.fontMetadataCacheDirectory, `.font-metadata-${randomUUID()}.tmp`);
1436
+ const data = {
1437
+ options,
1438
+ previous,
1439
+ ...temporaryPath === void 0 ? {} : { temporaryPath }
1440
+ };
1441
+ const worker = new Worker(new URL("./font-snapshot-worker.js", import.meta.url), {
1442
+ workerData: data,
1443
+ execArgv: [],
1444
+ name: "libreoffice-font-metadata",
1445
+ stdout: true,
1446
+ stderr: true
1447
+ });
1448
+ worker.stdout.resume();
1449
+ worker.stderr.resume();
1450
+ const result = Promise.withResolvers();
1451
+ const abort = () => result.reject(signal.reason);
1452
+ signal.addEventListener("abort", abort, { once: true });
1453
+ worker.once("error", result.reject);
1454
+ worker.once("exit", (code) => result.reject(new ConversionError("failed", `Font metadata worker exited before returning a snapshot (${code}).`)));
1455
+ worker.once("message", (message) => {
1456
+ if (message.ok) result.resolve(message.snapshot);
1457
+ else result.reject(new ConversionError(failureCode(message), message.error));
1458
+ });
1459
+ try {
1460
+ return await result.promise;
1461
+ } finally {
1462
+ signal.removeEventListener("abort", abort);
1463
+ await worker.terminate();
1464
+ if (temporaryPath !== void 0) try {
1465
+ await rm(temporaryPath, { force: true });
1466
+ } catch {}
1467
+ }
1468
+ }
1469
+ /** Each acquisition refreshes inventory; overlapping acquisitions share only the active scan. */
1470
+ var FontSnapshotState = class {
1471
+ previous = [];
1472
+ scan;
1473
+ /** Revalidate files for an operation without coupling its cancellation to other waiters. */
1474
+ async acquire(options, signal) {
1475
+ signal.throwIfAborted();
1476
+ while (this.scan?.controller.signal.aborted) {
1477
+ await this.scan.promise.catch(() => {});
1478
+ signal.throwIfAborted();
1479
+ }
1480
+ if (this.scan === void 0) {
1481
+ const controller = new AbortController();
1482
+ const promise = runFontSnapshot(options, this.previous, controller.signal).then((snapshot) => {
1483
+ this.previous = Buffer.byteLength(JSON.stringify(snapshot.records)) <= options.maxFontMetadataCacheBytes ? snapshot.records : [];
1484
+ return snapshot;
1485
+ }).finally(() => {
1486
+ this.scan = void 0;
1487
+ });
1488
+ this.scan = {
1489
+ controller,
1490
+ promise,
1491
+ waiters: 0
1492
+ };
1493
+ }
1494
+ const scan = this.scan;
1495
+ scan.waiters++;
1496
+ const cancelled = Promise.withResolvers();
1497
+ const abort = () => cancelled.reject(signal.reason);
1498
+ signal.addEventListener("abort", abort, { once: true });
1499
+ try {
1500
+ return await Promise.race([scan.promise, cancelled.promise]);
1501
+ } finally {
1502
+ signal.removeEventListener("abort", abort);
1503
+ scan.waiters--;
1504
+ if (scan.waiters === 0 && this.scan === scan) {
1505
+ scan.controller.abort(/* @__PURE__ */ new Error("All font scan waiters stopped."));
1506
+ await scan.promise.catch(() => {});
1507
+ }
1508
+ }
1509
+ }
1510
+ /** Release completed metadata after the owning factory has joined its operations. */
1511
+ clear() {
1512
+ this.previous = [];
1513
+ }
1514
+ };
1515
+ //#endregion
1516
+ //#region lib/types/font-snapshot-validation.js
1517
+ /** Verify the operation's source versions before publishing its output. */
1518
+ /** Reject changed, removed, or replaced sources without exposing local font paths. */
1519
+ async function validateFontSnapshot(snapshot) {
1520
+ await Promise.all(snapshot.records.map(async (record) => {
1521
+ try {
1522
+ const current = await lstat(record.path);
1523
+ if (current.isFile() && [
1524
+ "dev",
1525
+ "ino",
1526
+ "size",
1527
+ "mtimeMs",
1528
+ "ctimeMs"
1529
+ ].every((key) => current[key] === record[key])) return;
1530
+ } catch {}
1531
+ throw new ConversionError("failed", "A system font changed during conversion; retry the operation.");
1532
+ }));
1533
+ }
717
1534
  //#endregion
718
1535
  //#region lib/types/index.js
719
1536
  /** Convert caller-authorized disk documents with installed native or Node WASM engines. */
@@ -728,7 +1545,7 @@ async function readBounded(path, limit, signal, role) {
728
1545
  try {
729
1546
  const before = await file.stat();
730
1547
  const invalid = role === "input" ? "invalid-document" : "invalid-output";
731
- if (!before.isFile() || before.size < 1) throw new ConversionError(invalid, "Document must be a nonempty regular file.");
1548
+ if (!before.isFile() || role === "input" && before.size < 1) throw new ConversionError(invalid, "Document must be a nonempty regular file.");
732
1549
  if (before.size > limit) throw new ConversionError(`${role}-too-large`, `Document exceeds its ${role} byte limit.`);
733
1550
  const bytes = Buffer.alloc(before.size);
734
1551
  for (let offset = 0; offset < bytes.length;) {
@@ -745,7 +1562,7 @@ async function readBounded(path, limit, signal, role) {
745
1562
  await file.close();
746
1563
  }
747
1564
  }
748
- async function runWorker(data, signal, onFonts) {
1565
+ async function runWorker(data, signal, onFontCache) {
749
1566
  signal.throwIfAborted();
750
1567
  const worker = new Worker(new URL("./worker.js", import.meta.url), {
751
1568
  workerData: data,
@@ -766,7 +1583,7 @@ async function runWorker(data, signal, onFonts) {
766
1583
  settled.reject(new ConversionError("failed", `LibreOffice worker exited before returning a result (${code}).`));
767
1584
  });
768
1585
  worker.on("message", (message) => {
769
- if (message.kind === "fonts") onFonts(message.faces);
1586
+ if (message.kind === "font-cache") onFontCache(message.entries);
770
1587
  else if (message.ok) settled.resolve(message);
771
1588
  else settled.reject(new ConversionError(failureCode(message), message.error));
772
1589
  });
@@ -777,14 +1594,41 @@ async function runWorker(data, signal, onFonts) {
777
1594
  await worker.terminate();
778
1595
  }
779
1596
  }
780
- /**
781
- * Resolve the installed engine and deployment limits without starting LibreOffice.
782
- * @param options - Conversion, font, and output limits.
783
- * @returns A serial converter; dispose it after use.
784
- * @throws TypeError for invalid options, or an unavailable ConversionError for invalid installed engines.
785
- * An absent native engine or a known unsupported glibc version selects WASM.
786
- */
787
- async function createConverter(options) {
1597
+ const DEFAULT_SHARED_STATE_LIMIT = 16;
1598
+ const defaultSharedStates = /* @__PURE__ */ new Map();
1599
+ function sharedStateKey(options, engine) {
1600
+ return JSON.stringify({
1601
+ engine,
1602
+ fontDirectories: options.fontDirectories,
1603
+ includeOfficeFonts: options.includeOfficeFonts,
1604
+ fontFallbacks: options.fontFallbacks,
1605
+ initialFontFamilies: options.initialFontFamilies,
1606
+ maxFontFiles: options.maxFontFiles,
1607
+ maxFontFileBytes: options.maxFontFileBytes,
1608
+ maxLoadedFontBytes: options.maxLoadedFontBytes,
1609
+ maxFontResolutionEntries: options.maxFontResolutionEntries,
1610
+ fontMetadataCacheDirectory: options.fontMetadataCacheDirectory,
1611
+ maxFontMetadataCacheBytes: options.maxFontMetadataCacheBytes
1612
+ });
1613
+ }
1614
+ function defaultSharedState(options, engine) {
1615
+ const key = sharedStateKey(options, engine);
1616
+ const existing = defaultSharedStates.get(key);
1617
+ if (existing !== void 0) {
1618
+ defaultSharedStates.delete(key);
1619
+ defaultSharedStates.set(key, existing);
1620
+ return existing;
1621
+ }
1622
+ const state = {
1623
+ snapshots: new FontSnapshotState(),
1624
+ generation: void 0,
1625
+ fontCache: /* @__PURE__ */ new Map()
1626
+ };
1627
+ defaultSharedStates.set(key, state);
1628
+ while (defaultSharedStates.size > DEFAULT_SHARED_STATE_LIMIT) defaultSharedStates.delete(defaultSharedStates.keys().next().value);
1629
+ return state;
1630
+ }
1631
+ async function resolveConverter(options) {
788
1632
  const resolvedOptions = resolveOptions(options);
789
1633
  let engine;
790
1634
  try {
@@ -792,12 +1636,43 @@ async function createConverter(options) {
792
1636
  } catch (cause) {
793
1637
  throw new ConversionError("unavailable", cause.message, { cause });
794
1638
  }
1639
+ return {
1640
+ options: resolvedOptions,
1641
+ engine
1642
+ };
1643
+ }
1644
+ function createConverterWith(resolvedOptions, engine, shared, onDispose) {
795
1645
  const lifetime = new AbortController();
796
1646
  const active = /* @__PURE__ */ new Set();
797
1647
  const waiting = /* @__PURE__ */ new Set();
798
1648
  let running = false;
799
1649
  let disposal;
800
- let fontFaces;
1650
+ const mergeCache = (generation, entries) => {
1651
+ if (shared.generation !== generation) return;
1652
+ for (const entry of entries) {
1653
+ const prior = shared.fontCache.get(entry.key);
1654
+ const faces = new Map((prior?.faces ?? []).map((face) => [`${face.path}\0${face.faceIndex}`, face]));
1655
+ for (const face of entry.faces) faces.set(`${face.path}\0${face.faceIndex}`, face);
1656
+ const merged = {
1657
+ ...entry,
1658
+ codePoints: [.../* @__PURE__ */ new Set([...prior?.codePoints ?? [], ...entry.codePoints])].sort((left, right) => left - right),
1659
+ emptyRequest: prior?.emptyRequest === true || entry.emptyRequest,
1660
+ faces: [...faces.values()],
1661
+ ...(prior?.missingFamily ?? entry.missingFamily) === void 0 ? {} : { missingFamily: prior?.missingFamily ?? entry.missingFamily }
1662
+ };
1663
+ shared.fontCache.delete(entry.key);
1664
+ shared.fontCache.set(entry.key, merged);
1665
+ }
1666
+ while (shared.fontCache.size > resolvedOptions.maxFontResolutionEntries) shared.fontCache.delete(shared.fontCache.keys().next().value);
1667
+ };
1668
+ async function snapshot(signal) {
1669
+ const current = await shared.snapshots.acquire(resolvedOptions, signal);
1670
+ if (shared.generation !== current.generation) {
1671
+ shared.generation = current.generation;
1672
+ shared.fontCache.clear();
1673
+ }
1674
+ return current;
1675
+ }
801
1676
  async function acquire(signal) {
802
1677
  while (running) {
803
1678
  signal.throwIfAborted();
@@ -821,11 +1696,8 @@ async function createConverter(options) {
821
1696
  signal.throwIfAborted();
822
1697
  running = true;
823
1698
  }
824
- async function render(request, signal) {
825
- if (!request || typeof request.inputPath !== "string" || typeof request.outputPath !== "string" || !isAbsolute(request.inputPath) || !isAbsolute(request.outputPath) || request.inputPath.includes("\0") || request.outputPath.includes("\0")) throw new TypeError("inputPath and outputPath must be absolute filesystem paths.");
826
- if (resolve(request.inputPath) === resolve(request.outputPath)) throw new Error("Input and output paths must differ.");
827
- const extension = extname(request.inputPath).slice(1).toLowerCase();
828
- if (!DOCUMENT_EXTENSIONS.includes(extension)) throw new ConversionError("unsupported-format", `Input extension must be ${DOCUMENT_EXTENSIONS.join(", ")}.`);
1699
+ async function execute(request, signal) {
1700
+ const { extension, format } = request;
829
1701
  await acquire(signal);
830
1702
  const deadline = new AbortController();
831
1703
  const stopped = AbortSignal.any([signal, deadline.signal]);
@@ -839,38 +1711,41 @@ async function createConverter(options) {
839
1711
  try {
840
1712
  stopped.throwIfAborted();
841
1713
  output = await open(request.outputPath, "wx", 384);
842
- const bytes = await readBounded(request.inputPath, resolvedOptions.maxInputBytes, stopped, "input");
1714
+ const sourceBytes = await readBounded(request.inputPath, resolvedOptions.maxInputBytes, stopped, "input");
843
1715
  scratch = await mkdtemp(join(tmpdir(), "libreoffice-kit-"));
844
1716
  const inputPath = join(scratch, `document.${extension}`);
845
1717
  const input = await open(inputPath, "wx", 384);
846
1718
  try {
847
- await input.writeFile(bytes);
1719
+ await input.writeFile(sourceBytes);
848
1720
  } finally {
849
1721
  await input.close();
850
1722
  }
1723
+ const fonts = await snapshot(stopped);
851
1724
  const result = await runWorker({
852
1725
  inputPath,
853
1726
  extension,
1727
+ operation: request,
854
1728
  options: resolvedOptions,
855
1729
  engine,
856
1730
  scratch,
857
- fontFaces
858
- }, stopped, (faces) => {
859
- fontFaces = faces;
860
- });
861
- let pdf;
862
- if ("pdf" in result) pdf = result.pdf;
1731
+ fontFaces: fonts.faces,
1732
+ fontCache: [...shared.fontCache.values()]
1733
+ }, stopped, (entries) => mergeCache(fonts.generation, entries));
1734
+ if ("images" in result) throw new ConversionError("failed", "Conversion worker returned an image batch for an export request.");
1735
+ let bytes;
1736
+ if ("output" in result) bytes = result.output;
863
1737
  else {
864
1738
  const native = engine;
865
1739
  const profile = join(scratch, "profile");
866
1740
  await mkdir(profile, { mode: 448 });
867
- const path = join(scratch, "document.pdf");
868
- await runNative(native, resolvedOptions, inputPath, path, profile, result.fonts, result.substitutions, stopped);
869
- pdf = await readBounded(path, resolvedOptions.maxOutputBytes, stopped, "output");
1741
+ const path = join(scratch, `output.${format}`);
1742
+ await runNative(native, resolvedOptions, inputPath, path, profile, result.fonts, result.substitutions, stopped, request);
1743
+ bytes = await readBounded(path, resolvedOptions.maxOutputBytes, stopped, "output");
870
1744
  }
871
- if (Buffer.from(pdf.subarray(0, 5)).toString() !== "%PDF-") throw new ConversionError("invalid-output", "LibreOffice did not produce a PDF.");
1745
+ validateOutput(bytes, format);
1746
+ await validateFontSnapshot(fonts);
872
1747
  stopped.throwIfAborted();
873
- await output.writeFile(pdf);
1748
+ await output.writeFile(bytes);
874
1749
  stopped.throwIfAborted();
875
1750
  succeeded = true;
876
1751
  return {
@@ -901,24 +1776,147 @@ async function createConverter(options) {
901
1776
  }
902
1777
  }
903
1778
  }
904
- return {
1779
+ async function executeImages(request, signal) {
1780
+ await acquire(signal);
1781
+ const deadline = new AbortController();
1782
+ const stopped = AbortSignal.any([signal, deadline.signal]);
1783
+ const timer = setTimeout(() => deadline.abort(new ConversionError("timeout", "LibreOffice image rendering timed out.")), resolvedOptions.timeoutMs);
1784
+ let scratch;
1785
+ let owned = false;
1786
+ let succeeded = false;
1787
+ try {
1788
+ stopped.throwIfAborted();
1789
+ await mkdir(request.outputDir, { mode: 448 });
1790
+ owned = true;
1791
+ const source = await readBounded(request.inputPath, resolvedOptions.maxInputBytes, stopped, "input");
1792
+ scratch = await mkdtemp(join(tmpdir(), "libreoffice-kit-images-"));
1793
+ const inputPath = join(scratch, `document.${request.extension}`);
1794
+ await writeFile(inputPath, source, {
1795
+ flag: "wx",
1796
+ mode: 384
1797
+ });
1798
+ const fonts = await snapshot(stopped);
1799
+ const result = await runWorker({
1800
+ inputPath,
1801
+ extension: request.extension,
1802
+ operation: request,
1803
+ options: resolvedOptions,
1804
+ engine,
1805
+ scratch,
1806
+ fontFaces: fonts.faces,
1807
+ fontCache: [...shared.fontCache.values()]
1808
+ }, stopped, (entries) => mergeCache(fonts.generation, entries));
1809
+ let images;
1810
+ if ("images" in result) images = result.images;
1811
+ else if ("fonts" in result) {
1812
+ const profile = join(scratch, "profile");
1813
+ images = await renderImagesWithNative({
1814
+ engine,
1815
+ options: resolvedOptions,
1816
+ inputPath,
1817
+ source,
1818
+ scratch,
1819
+ profile,
1820
+ fonts: result.fonts,
1821
+ substitutions: result.substitutions,
1822
+ missingFonts: result.missingFonts,
1823
+ operation: request,
1824
+ signal: stopped
1825
+ });
1826
+ } else throw new ConversionError("failed", "Image worker did not return its manifest.");
1827
+ await validateFontSnapshot(fonts);
1828
+ stopped.throwIfAborted();
1829
+ await writeFile(join(request.outputDir, "manifest.json"), `${JSON.stringify(images, null, 2)}\n`, {
1830
+ flag: "wx",
1831
+ mode: 384
1832
+ });
1833
+ stopped.throwIfAborted();
1834
+ succeeded = true;
1835
+ return images;
1836
+ } finally {
1837
+ clearTimeout(timer);
1838
+ try {
1839
+ const failures = (await Promise.allSettled([...scratch ? [rm(scratch, {
1840
+ recursive: true,
1841
+ force: true
1842
+ })] : [], ...owned && !succeeded ? [rm(request.outputDir, {
1843
+ recursive: true,
1844
+ force: true
1845
+ })] : []])).filter((result) => result.status === "rejected");
1846
+ if (failures.length) throw new AggregateError(failures.map((result) => result.reason), "Image batch cleanup failed.");
1847
+ } finally {
1848
+ running = false;
1849
+ for (const wake of [...waiting]) wake();
1850
+ }
1851
+ }
1852
+ }
1853
+ async function submit(request, operation, signal) {
1854
+ const task = execute(resolveConversion(request, operation), signal ? AbortSignal.any([signal, lifetime.signal]) : lifetime.signal);
1855
+ active.add(task);
1856
+ task.finally(() => {
1857
+ active.delete(task);
1858
+ }).catch((_error) => {});
1859
+ return task;
1860
+ }
1861
+ const converter = {
905
1862
  backend: engine.backend,
906
- render(request, signal) {
907
- const task = render(request, signal ? AbortSignal.any([signal, lifetime.signal]) : lifetime.signal);
1863
+ render: (request, signal) => submit(request, "render", signal),
1864
+ async renderImages(request, signal) {
1865
+ const task = executeImages(resolveImageRender(request), signal ? AbortSignal.any([signal, lifetime.signal]) : lifetime.signal);
908
1866
  active.add(task);
909
- task.finally(() => {
910
- active.delete(task);
911
- }).catch((_error) => {});
1867
+ task.finally(() => active.delete(task)).catch(() => {});
912
1868
  return task;
913
1869
  },
1870
+ convert: (request, signal) => submit(request, "convert", signal),
1871
+ recalculate: (request, signal) => submit(request, "recalculate", signal),
914
1872
  dispose() {
915
1873
  disposal ??= (async () => {
916
1874
  lifetime.abort(/* @__PURE__ */ new Error("LibreOffice converter is disposed."));
917
1875
  await Promise.allSettled(active);
1876
+ onDispose?.(converter);
918
1877
  })();
919
1878
  return disposal;
920
1879
  }
921
1880
  };
1881
+ return converter;
1882
+ }
1883
+ /** Resolve one engine and share its bounded font state across many converters. */
1884
+ async function createConverterFactory(options) {
1885
+ const { options: resolvedOptions, engine } = await resolveConverter(options);
1886
+ const shared = {
1887
+ snapshots: new FontSnapshotState(),
1888
+ generation: void 0,
1889
+ fontCache: /* @__PURE__ */ new Map()
1890
+ };
1891
+ const converters = /* @__PURE__ */ new Set();
1892
+ let disposal;
1893
+ return {
1894
+ backend: engine.backend,
1895
+ async create() {
1896
+ if (disposal) throw new ConversionError("unavailable", "LibreOffice converter factory is disposed.");
1897
+ const converter = createConverterWith(resolvedOptions, engine, shared, (value) => converters.delete(value));
1898
+ converters.add(converter);
1899
+ return converter;
1900
+ },
1901
+ dispose() {
1902
+ disposal ??= (async () => {
1903
+ const active = [...converters];
1904
+ converters.clear();
1905
+ const results = await Promise.allSettled(active.map((converter) => converter.dispose()));
1906
+ shared.fontCache.clear();
1907
+ shared.snapshots.clear();
1908
+ shared.generation = void 0;
1909
+ const failures = results.filter((result) => result.status === "rejected");
1910
+ if (failures.length) throw new AggregateError(failures.map((result) => result.reason), "LibreOffice converter factory disposal failed.");
1911
+ })();
1912
+ return disposal;
1913
+ }
1914
+ };
1915
+ }
1916
+ /** Create one converter with process-shared, configuration-isolated bounded font metadata. */
1917
+ async function createConverter(options) {
1918
+ const { options: resolvedOptions, engine } = await resolveConverter(options);
1919
+ return createConverterWith(resolvedOptions, engine, defaultSharedState(resolvedOptions, engine));
922
1920
  }
923
1921
  //#endregion
924
- export { ConversionError, ENGINE_VERSION, createConverter };
1922
+ export { CONVERSION_FORMATS, ConversionError, ENGINE_VERSION, IMAGE_FORMATS, createConverter, createConverterFactory, discoverRuntime };