@songtonyli/dsh-cli 0.1.40 → 0.1.42

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1235) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +21 -5
  10. package/node_modules/@deepseek-ai/dsh/README.md +3 -1
  11. package/node_modules/@deepseek-ai/dsh/README.zh.md +3 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/bin.js +5 -11
  13. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-C-0P1h0W.js → dump-config-BEDI-dNY.js} +2 -2
  14. package/node_modules/@deepseek-ai/dsh/lib/dump-config-crgOY3tW.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-BgEU7VYz.js → dump-config-schema-DhhNOaro.js} +3 -3
  16. package/node_modules/@deepseek-ai/dsh/lib/plugin-DkYIj96-.js +83 -0
  17. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-DIiro1p-.js → profile-boot-BZ2ZjNWi.js} +4 -3
  18. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  19. package/node_modules/@deepseek-ai/dsh/package.json +116 -113
  20. package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +81 -5
  21. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  22. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +42 -5
  23. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  24. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +90 -5
  25. package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -22
  26. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +51 -5
  27. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +10 -3
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +99 -5
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -25
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +99 -5
  34. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -3
  35. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -3
  36. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +35 -9
  37. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -26
  38. package/node_modules/@deepseek-ai/dsh-agent-preset/README.i18n.yaml +36 -5
  39. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +12 -12
  40. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +9 -6
  41. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +10 -3
  42. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/practices.md +38 -0
  43. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +1 -1
  44. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +48 -5
  45. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +2 -2
  46. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +2 -2
  47. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +52 -21
  48. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +52 -21
  49. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +114 -45
  50. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +37 -3
  51. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +26 -11
  52. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +5 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -36
  54. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +54 -5
  55. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  56. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/README.i18n.yaml +63 -5
  57. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  58. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.i18n.yaml +36 -5
  59. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +7 -1
  60. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +7 -1
  61. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +123 -10
  62. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +200 -11
  63. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +200 -11
  64. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +79 -6
  65. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -7
  66. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +33 -5
  67. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -0
  68. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -0
  69. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +6 -2
  70. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +50 -26
  71. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +9 -2
  72. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +61 -29
  73. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -13
  74. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.i18n.yaml +33 -5
  75. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +36 -5
  77. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -2
  78. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -2
  79. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1268 -217
  80. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  81. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -2
  82. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  83. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -40
  84. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +39 -5
  85. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
  86. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
  87. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +101 -32
  88. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +159 -79
  89. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +179 -99
  90. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +40 -15
  91. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +52 -3
  92. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/assistant-stream.js +16 -1
  93. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +9 -0
  94. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +81 -40
  95. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +5 -2
  96. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +11 -14
  97. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +24 -9
  98. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +24 -4
  99. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +75 -68
  100. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +33 -5
  101. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  102. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +36 -5
  103. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +63 -39
  104. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
  105. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +33 -5
  106. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +4 -2
  107. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +4 -2
  108. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +4 -5
  109. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +25 -12
  110. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +13 -32
  111. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +11 -26
  112. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +2 -3
  113. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +3 -3
  115. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-workspace.js +29 -0
  116. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +7 -11
  117. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +25 -21
  118. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +66 -5
  119. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +1 -1
  120. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +1 -1
  121. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +7 -1
  122. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +10 -1
  125. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  126. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +72 -5
  127. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +11 -3
  128. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +11 -3
  129. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +474 -66
  130. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +16 -6
  131. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +22 -19
  132. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +54 -5
  133. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +6 -5
  134. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +6 -5
  135. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +73 -8
  136. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  137. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +66 -5
  138. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  139. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +60 -5
  140. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  141. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +63 -5
  142. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  143. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +60 -5
  144. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +5 -2
  145. package/node_modules/@deepseek-ai/dsh-base/package.json +96 -95
  146. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +60 -5
  147. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  148. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +96 -5
  149. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  150. package/node_modules/@deepseek-ai/dsh-brand/README.i18n.yaml +45 -5
  151. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  152. package/node_modules/@deepseek-ai/dsh-chunked-list/README.i18n.yaml +36 -5
  153. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  154. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +36 -5
  155. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  156. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +36 -5
  157. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +63 -39
  158. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  159. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +63 -5
  160. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  161. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +63 -5
  162. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +9 -1
  163. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
  164. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +69 -5
  165. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +1 -1
  166. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +1 -1
  167. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +103 -17
  168. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -8
  169. package/node_modules/@deepseek-ai/dsh-client-resources/README.i18n.yaml +48 -5
  170. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
  171. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.i18n.yaml +37 -0
  172. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.md +94 -0
  173. package/node_modules/@deepseek-ai/dsh-client-shortcuts/README.zh.md +94 -0
  174. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/client.js +2006 -0
  175. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/index.js +23 -0
  176. package/node_modules/@deepseek-ai/dsh-client-shortcuts/lib/protocol.js +524 -0
  177. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +63 -0
  178. package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +27 -5
  179. package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
  180. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +36 -5
  181. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -6
  182. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -6
  183. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +192 -135
  184. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +18 -18
  185. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +27 -5
  186. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
  187. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
  188. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +77 -4
  189. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +16 -15
  190. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +45 -5
  191. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  192. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  193. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -93
  194. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  195. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +42 -5
  196. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  197. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +51 -5
  198. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +34 -9
  199. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +34 -9
  200. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +885 -287
  201. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +15 -8
  202. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
  203. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +45 -5
  204. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
  208. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +36 -5
  209. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +12 -6
  210. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +12 -6
  211. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +415 -80
  212. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +35 -34
  213. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +54 -5
  214. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +73 -3
  217. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  218. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +57 -5
  219. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +10 -7
  220. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +10 -7
  221. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +242 -211
  222. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +1 -1
  223. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +29 -29
  224. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +39 -5
  225. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +2 -2
  226. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  227. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +39 -5
  228. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +42 -5
  230. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +8 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  232. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +39 -5
  233. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +3 -1
  234. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +3 -1
  235. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +3 -3
  236. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
  237. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +42 -5
  238. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
  239. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
  240. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  241. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
  242. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +42 -5
  243. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +63 -36
  246. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +14 -12
  247. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +39 -5
  248. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +2 -2
  249. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
  250. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +45 -5
  251. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +14 -9
  252. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +14 -9
  253. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +97 -80
  254. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -17
  255. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +39 -5
  256. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +4 -2
  257. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +4 -2
  258. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +172 -56
  259. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +22 -18
  260. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +42 -5
  261. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +4 -4
  262. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
  263. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +45 -5
  264. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +8 -3
  265. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
  266. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +60 -5
  267. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +16 -6
  268. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +17 -7
  269. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +336 -98
  270. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +140 -4
  271. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.host.js +53 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/typert.remote-client.js +28 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +36 -18
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +60 -5
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +32 -11
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +32 -11
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +6 -8
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +1 -1
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +83 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +6 -2
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +24 -53
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +17 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +46 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +24 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +3 -3
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +22 -18
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +49 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +27 -6
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +2 -1
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +13 -81
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +1 -1
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +9 -9
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +3 -3
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +33 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +3 -8
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +3 -3
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +2 -2
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +9 -1
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +1 -1
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +1735 -897
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +16 -1
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +28 -23
  306. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +4 -4
  308. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +6 -5
  309. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +30 -0
  310. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +3 -3
  311. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +5 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +27 -0
  313. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +12 -0
  314. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +12 -4
  315. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +16 -0
  316. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +12 -4
  317. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +2 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +11 -0
  319. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +17 -5
  320. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +1 -8
  321. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +9 -0
  322. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +15 -0
  323. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +8 -4
  324. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +8 -1
  325. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +10 -1
  326. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +19 -0
  327. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +11 -0
  328. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +6 -1
  329. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +11 -1
  330. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +16 -10
  331. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +10 -0
  332. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +3 -0
  333. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +1 -1
  334. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +1 -0
  335. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +27 -0
  336. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +2 -2
  337. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +4 -1
  338. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -5
  339. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +48 -5
  340. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  341. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +51 -5
  342. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  343. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +39 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +36 -39
  345. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +42 -45
  346. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +6735 -171
  347. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/index.js +1 -1
  348. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +32 -13
  349. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +27 -5
  350. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
  351. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +57 -5
  352. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +3 -3
  353. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +3 -3
  354. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
  355. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +39 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +46 -8
  357. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +46 -8
  358. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2300 -255
  359. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +66 -6
  360. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +22 -14
  361. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +36 -5
  362. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
  363. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +57 -5
  364. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +10 -8
  365. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +10 -8
  366. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +202 -109
  367. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +20 -16
  368. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +60 -5
  369. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +10 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +11 -3
  371. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +48 -15
  372. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +13 -13
  373. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +51 -5
  374. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  375. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
  376. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +36 -5
  377. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  378. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
  379. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +36 -5
  380. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
  381. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/README.i18n.yaml +57 -5
  382. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +10 -10
  383. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +36 -5
  384. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +3 -3
  385. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +12 -12
  386. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
  387. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +36 -5
  388. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
  389. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.i18n.yaml +37 -0
  390. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.md +89 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/README.zh.md +89 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +1163 -0
  393. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/index.js +6 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +63 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +54 -5
  396. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -2
  397. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -2
  398. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +59 -21
  399. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +16 -14
  400. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +51 -5
  401. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +5 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +5 -1
  403. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +77 -12
  404. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -12
  405. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +45 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +14 -8
  407. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +14 -8
  408. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +41 -15
  409. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +102 -75
  410. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +57 -28
  411. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  412. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +33 -5
  413. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +5 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +5 -1
  415. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +76 -19
  416. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +19 -17
  417. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +54 -5
  418. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +12 -6
  419. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +12 -6
  420. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +667 -85
  421. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +20 -17
  422. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +36 -5
  423. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +4 -2
  424. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +4 -2
  425. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +151 -106
  426. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  427. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +19 -17
  428. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +57 -5
  429. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +2 -0
  431. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +29 -2
  432. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  433. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +54 -5
  434. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  435. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +63 -5
  436. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  437. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  438. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +67 -48
  439. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  440. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +54 -5
  441. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +20 -2
  442. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +20 -2
  443. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +13 -5
  444. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
  445. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +48 -5
  446. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +13 -5
  447. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +13 -5
  448. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +315 -90
  449. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -24
  450. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +48 -5
  451. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  452. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  453. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +68 -10
  454. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -18
  455. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +51 -5
  456. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -3
  457. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -20
  458. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +48 -5
  459. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  460. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
  461. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +72 -5
  462. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +12 -10
  463. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +12 -10
  464. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +608 -329
  465. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +27 -25
  466. package/node_modules/@deepseek-ai/dsh-cmdline/README.i18n.yaml +60 -5
  467. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  468. package/node_modules/@deepseek-ai/dsh-command-compact/README.i18n.yaml +66 -5
  469. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  470. package/node_modules/@deepseek-ai/dsh-command-feedback/README.i18n.yaml +63 -5
  471. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  472. package/node_modules/@deepseek-ai/dsh-command-goal/README.i18n.yaml +63 -5
  473. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  474. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +75 -5
  475. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +63 -39
  476. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  477. package/node_modules/@deepseek-ai/dsh-compaction/README.i18n.yaml +84 -5
  478. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  479. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +105 -5
  480. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -2
  481. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -2
  482. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +1 -0
  483. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  484. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/README.i18n.yaml +54 -5
  485. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  486. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/README.i18n.yaml +66 -5
  487. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  488. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +36 -5
  489. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  490. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +78 -5
  491. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +4 -0
  492. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +4 -0
  493. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +193 -43
  494. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  495. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +66 -5
  496. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +126 -78
  497. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  498. package/node_modules/@deepseek-ai/dsh-credentials/README.i18n.yaml +72 -5
  499. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  500. package/node_modules/@deepseek-ai/dsh-credentials-local/README.i18n.yaml +75 -5
  501. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  502. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +36 -5
  503. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +13 -3
  504. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +13 -3
  505. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +54 -1
  506. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/account-tasks.js +30 -0
  507. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +26 -0
  508. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +14 -5
  509. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +36 -5
  510. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +16 -8
  511. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +16 -8
  512. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +262 -40
  513. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +44 -3
  514. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +190 -32
  515. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +45 -2
  516. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  517. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +30 -5
  518. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  519. package/node_modules/@deepseek-ai/dsh-deque/README.i18n.yaml +45 -5
  520. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  521. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +99 -5
  522. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +7 -3
  523. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +7 -3
  524. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +359 -323
  525. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +170 -25
  526. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  527. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +180 -237
  528. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +2 -2
  529. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +95 -28
  530. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +7 -47
  531. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-view.js +57 -0
  532. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +25 -39
  533. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +51 -5
  534. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  535. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.i18n.yaml +36 -5
  536. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +2 -0
  537. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +2 -0
  538. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +3 -2
  539. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +27 -6
  540. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +20 -3
  541. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +2 -1
  542. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  543. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +64 -0
  544. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +129 -0
  545. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +129 -0
  546. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/cordis.patch.yml +3 -0
  547. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/icon.svg +10 -0
  548. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +511 -0
  549. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +6 -0
  550. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +6 -0
  551. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +82 -0
  552. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +42 -5
  553. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +14 -10
  554. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +14 -10
  555. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +317 -4345
  556. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -28
  557. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +36 -5
  558. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +4 -2
  559. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +4 -2
  560. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +184 -44
  561. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
  562. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +36 -5
  563. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +3 -1
  564. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +3 -1
  565. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +5 -4
  566. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +5 -4
  567. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -9
  568. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +36 -5
  569. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +5 -1
  570. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +5 -1
  571. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +164 -26
  572. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +3 -1
  573. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  574. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +69 -5
  575. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +1 -1
  576. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +1 -1
  577. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +9 -1
  578. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  579. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +36 -5
  580. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  581. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +54 -5
  582. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  583. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +66 -5
  584. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  585. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +57 -5
  586. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  587. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +60 -5
  588. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  589. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +69 -5
  590. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  591. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +66 -5
  592. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  593. package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +72 -5
  594. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +63 -39
  595. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  596. package/node_modules/@deepseek-ai/dsh-goal-round-driver/README.i18n.yaml +78 -5
  597. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  598. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +66 -5
  599. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  600. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +45 -5
  601. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  602. package/node_modules/@deepseek-ai/dsh-home-paths/README.i18n.yaml +51 -5
  603. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-hook-protocol/README.i18n.yaml +60 -5
  605. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  606. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/README.i18n.yaml +87 -5
  607. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  608. package/node_modules/@deepseek-ai/dsh-hooks-codex/README.i18n.yaml +87 -5
  609. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-host-directory-picker/README.i18n.yaml +57 -5
  611. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  612. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/README.i18n.yaml +57 -5
  613. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  614. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/README.i18n.yaml +60 -5
  615. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  616. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +54 -5
  617. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  618. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +54 -5
  619. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  620. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +51 -5
  621. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +2 -2
  622. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +2 -2
  623. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +54 -5
  625. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  626. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +57 -5
  627. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  628. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +54 -5
  629. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  630. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +60 -5
  631. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  632. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +60 -5
  633. package/node_modules/@deepseek-ai/dsh-jobs/package.json +13 -13
  634. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +66 -5
  635. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  636. package/node_modules/@deepseek-ai/dsh-launch-environment/README.i18n.yaml +48 -5
  637. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  638. package/node_modules/@deepseek-ai/dsh-lazy-require/README.i18n.yaml +39 -5
  639. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  640. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +63 -5
  641. package/node_modules/@deepseek-ai/dsh-llm/README.md +5 -3
  642. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +5 -3
  643. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +107 -12
  644. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +16 -20
  645. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  646. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +107 -0
  647. package/node_modules/@deepseek-ai/dsh-llm/lib/types/error.js +2 -0
  648. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +26 -9
  649. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  650. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.i18n.yaml +66 -5
  651. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +26 -26
  652. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +90 -5
  653. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +18 -13
  654. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +18 -13
  655. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +642 -595
  656. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -47
  657. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +46 -0
  658. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +79 -0
  659. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +79 -0
  660. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +62 -0
  661. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +54 -0
  662. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +46 -0
  663. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +78 -0
  664. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +78 -0
  665. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +69 -0
  666. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +53 -0
  667. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +93 -5
  668. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -25
  669. package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +69 -5
  670. package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +1 -1
  671. package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +1 -1
  672. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +26 -25
  673. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +96 -5
  674. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
  675. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
  676. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +1 -1
  677. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  678. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +63 -5
  679. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  680. package/node_modules/@deepseek-ai/dsh-message-feedback/README.i18n.yaml +54 -5
  681. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  682. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +51 -5
  683. package/node_modules/@deepseek-ai/dsh-native-command/README.md +5 -3
  684. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +5 -3
  685. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +108 -33
  686. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +55 -10
  687. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +59 -22
  688. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  689. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/README.i18n.yaml +69 -5
  690. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +111 -9
  691. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +16 -16
  692. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +36 -5
  693. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +1 -1
  694. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +1 -1
  695. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +12 -12
  696. package/node_modules/@deepseek-ai/dsh-output-retention/README.i18n.yaml +66 -5
  697. package/node_modules/@deepseek-ai/dsh-output-retention/README.md +7 -3
  698. package/node_modules/@deepseek-ai/dsh-output-retention/README.zh.md +7 -3
  699. package/node_modules/@deepseek-ai/dsh-output-retention/lib/index.js +17 -1
  700. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  701. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +36 -5
  702. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  703. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +63 -5
  704. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
  705. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
  706. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +9 -3
  707. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +65 -41
  708. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  709. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +10 -3
  710. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  711. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +63 -5
  712. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  713. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +108 -5
  714. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -1
  715. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +0 -1
  716. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  717. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +54 -5
  718. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +19 -2
  719. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +19 -2
  720. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +760 -155
  721. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +237 -26
  722. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +215 -22
  723. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +19 -2
  724. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +61 -0
  725. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +113 -23
  726. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -0
  727. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +403 -22
  728. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +2 -0
  729. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/run-tree.js +57 -0
  730. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +13 -3
  731. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
  732. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +42 -5
  733. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  734. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +69 -5
  735. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  736. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +57 -5
  737. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  738. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +63 -5
  739. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  740. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +72 -5
  741. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  742. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/README.i18n.yaml +99 -5
  743. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +111 -9
  744. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  745. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +90 -5
  746. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +1 -1
  747. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +1 -1
  748. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +16 -2
  749. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  750. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +64 -6
  751. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  752. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +78 -5
  753. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  754. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +67 -6
  755. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  756. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +75 -5
  757. package/node_modules/@deepseek-ai/dsh-schedule/README.md +65 -129
  758. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +72 -137
  759. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +2147 -797
  760. package/node_modules/@deepseek-ai/dsh-schedule/lib/invariant.js +79 -17
  761. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +727 -0
  762. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +477 -0
  763. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +66 -0
  764. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +1000 -113
  765. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +428 -101
  766. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +8 -1
  767. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +129 -268
  768. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +54 -0
  769. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +305 -204
  770. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +164 -0
  771. package/node_modules/@deepseek-ai/dsh-schedule/package.json +50 -28
  772. package/node_modules/@deepseek-ai/dsh-scope/README.i18n.yaml +51 -5
  773. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  774. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +39 -5
  775. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +1 -0
  776. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
  777. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +72 -5
  778. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  779. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  780. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +48 -5
  781. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +1 -1
  782. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  783. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +54 -5
  784. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  785. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +102 -5
  786. package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
  787. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
  788. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +89 -0
  789. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +16 -0
  790. package/node_modules/@deepseek-ai/dsh-session/lib/types/tool-history.js +76 -0
  791. package/node_modules/@deepseek-ai/dsh-session/package.json +11 -11
  792. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/README.i18n.yaml +63 -5
  793. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  794. package/node_modules/@deepseek-ai/dsh-session-format/README.i18n.yaml +51 -5
  795. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  796. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +51 -5
  797. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  798. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/README.i18n.yaml +51 -5
  799. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  800. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/README.i18n.yaml +51 -5
  801. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  802. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/README.i18n.yaml +78 -5
  803. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  804. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +90 -5
  805. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
  806. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
  807. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  808. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +45 -5
  809. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +8 -4
  810. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +8 -4
  811. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +53 -9
  812. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +51 -9
  813. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +20 -19
  814. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +72 -5
  815. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +2 -0
  816. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +2 -0
  817. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +3 -3
  818. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/CHANGELOG.md +10 -0
  819. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/LICENSE +1 -1
  820. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/README.md +10 -10
  821. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/browser.js +82 -55
  822. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/esm/index.mjs +87 -56
  823. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/browser.cjs +106 -77
  824. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/index.cjs +106 -77
  825. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node-worker.cjs +5 -1
  826. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/node.cjs +111 -78
  827. package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/package.json +12 -11
  828. package/node_modules/@deepseek-ai/dsh-session-log-export/node_modules/fflate/umd/index.js +1 -0
  829. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
  830. package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +78 -5
  831. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  832. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +69 -5
  833. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +189 -9
  834. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  835. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +57 -5
  836. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  837. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +60 -5
  838. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  839. package/node_modules/@deepseek-ai/dsh-session-query/README.i18n.yaml +66 -5
  840. package/node_modules/@deepseek-ai/dsh-session-query/README.md +1 -1
  841. package/node_modules/@deepseek-ai/dsh-session-query/README.zh.md +1 -1
  842. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +7 -1
  843. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  844. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/README.i18n.yaml +66 -5
  845. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  846. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +66 -5
  847. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +63 -39
  848. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  849. package/node_modules/@deepseek-ai/dsh-session-stats/README.i18n.yaml +57 -5
  850. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  851. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +63 -5
  852. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  853. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/README.i18n.yaml +60 -5
  854. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  855. package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +72 -5
  856. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  857. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/README.i18n.yaml +63 -5
  858. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -17
  859. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +63 -5
  860. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  861. package/node_modules/@deepseek-ai/dsh-session-turn-outline/README.i18n.yaml +54 -5
  862. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  863. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +36 -5
  864. package/node_modules/@deepseek-ai/dsh-settings/package.json +19 -19
  865. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +66 -5
  866. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  867. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +57 -5
  868. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  869. package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +63 -5
  870. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  871. package/node_modules/@deepseek-ai/dsh-skill-badge/README.i18n.yaml +54 -5
  872. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  873. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +66 -5
  874. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  875. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +42 -5
  876. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +8 -2
  877. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +8 -2
  878. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +14 -3
  879. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +14 -3
  880. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +22 -4
  881. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +21 -3
  882. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +9 -8
  883. package/node_modules/@deepseek-ai/dsh-spill/README.i18n.yaml +69 -5
  884. package/node_modules/@deepseek-ai/dsh-spill/README.md +2 -2
  885. package/node_modules/@deepseek-ai/dsh-spill/README.zh.md +2 -2
  886. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  887. package/node_modules/@deepseek-ai/dsh-spill-local/README.i18n.yaml +63 -5
  888. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  889. package/node_modules/@deepseek-ai/dsh-spill-policy/README.i18n.yaml +81 -5
  890. package/node_modules/@deepseek-ai/dsh-spill-policy/README.md +22 -22
  891. package/node_modules/@deepseek-ai/dsh-spill-policy/README.zh.md +22 -22
  892. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/index.js +216 -142
  893. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/index.js +110 -167
  894. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/notice.js +10 -2
  895. package/node_modules/@deepseek-ai/dsh-spill-policy/lib/types/retention.js +88 -0
  896. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -22
  897. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +66 -5
  898. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  899. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +72 -5
  900. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  901. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +63 -5
  902. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +1 -1
  903. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  904. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +93 -5
  905. package/node_modules/@deepseek-ai/dsh-subagent/README.md +3 -2
  906. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +4 -3
  907. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +71 -238
  908. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +65 -41
  909. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +1 -1
  910. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +12 -12
  911. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +50 -261
  912. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -56
  913. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +84 -5
  914. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  915. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +81 -5
  916. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  917. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/README.i18n.yaml +105 -5
  918. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  919. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +78 -5
  920. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +21 -20
  921. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +72 -5
  922. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  923. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +69 -5
  924. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -2
  925. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -2
  926. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +10 -4
  927. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/output.js +82 -24
  928. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +1529 -0
  929. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  930. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  931. package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +87 -5
  932. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  933. package/node_modules/@deepseek-ai/dsh-terminal/README.i18n.yaml +78 -5
  934. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  935. package/node_modules/@deepseek-ai/dsh-terminal-bash/README.i18n.yaml +90 -5
  936. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  937. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +69 -5
  938. package/node_modules/@deepseek-ai/dsh-time-context/README.md +6 -6
  939. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +6 -6
  940. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +3 -3
  941. package/node_modules/@deepseek-ai/dsh-time-context/package.json +24 -24
  942. package/node_modules/@deepseek-ai/dsh-timeout/README.i18n.yaml +63 -5
  943. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  944. package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +66 -5
  945. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +111 -9
  946. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  947. package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +63 -5
  948. package/node_modules/@deepseek-ai/dsh-token-meter/README.md +2 -0
  949. package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +2 -0
  950. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +22 -18
  951. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +75 -5
  952. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +1 -1
  953. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  954. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +126 -5
  955. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +2 -2
  956. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +2 -2
  957. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +6 -9
  958. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  959. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +78 -5
  960. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +2 -1
  961. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -22
  962. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/README.i18n.yaml +66 -5
  963. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  964. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +45 -5
  965. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +373 -79
  966. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
  967. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +141 -5
  968. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +4 -4
  969. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +4 -4
  970. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +9 -73
  971. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -30
  972. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +114 -5
  973. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +3 -9
  974. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +3 -9
  975. package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +4 -5
  976. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  977. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +78 -5
  978. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +2 -2
  979. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +2 -2
  980. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +6 -6
  981. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  982. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +96 -5
  983. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +6 -6
  984. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +6 -6
  985. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +21 -15
  986. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  987. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +45 -5
  988. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  989. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  990. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +2 -1
  991. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -5
  992. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  993. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +123 -5
  994. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +3 -3
  995. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +3 -3
  996. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +8 -8
  997. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  998. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +78 -5
  999. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +6 -6
  1000. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +6 -6
  1001. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +7 -25
  1002. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -23
  1003. package/node_modules/@deepseek-ai/dsh-tool-ralph/README.i18n.yaml +99 -5
  1004. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1005. package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +141 -5
  1006. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +1 -1
  1007. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1008. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/README.i18n.yaml +78 -5
  1009. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/lib/index.js +2 -1
  1010. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -20
  1011. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +120 -5
  1012. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1013. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1014. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +4 -4
  1015. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -30
  1016. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +105 -5
  1017. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1018. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1019. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +3 -3
  1020. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +6 -11
  1021. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +6 -14
  1022. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1023. package/node_modules/@deepseek-ai/dsh-tool-todo/README.i18n.yaml +90 -5
  1024. package/node_modules/@deepseek-ai/dsh-tool-todo/README.md +1 -1
  1025. package/node_modules/@deepseek-ai/dsh-tool-todo/README.zh.md +1 -1
  1026. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +4 -4
  1027. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +5 -15
  1028. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1029. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +150 -5
  1030. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +4 -4
  1031. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +4 -4
  1032. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +4 -4
  1033. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -21
  1034. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +102 -5
  1035. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +1 -1
  1036. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +1 -1
  1037. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +9 -16
  1038. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +10 -16
  1039. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -25
  1040. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +66 -5
  1041. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
  1042. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +102 -5
  1043. package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -1
  1044. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -1
  1045. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +16 -2
  1046. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +13 -1
  1047. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1048. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +5 -0
  1049. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1050. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +84 -5
  1051. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
  1052. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
  1053. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +16 -1
  1054. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +76 -76
  1055. package/node_modules/@deepseek-ai/dsh-typert-loader/README.i18n.yaml +57 -5
  1056. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1057. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +63 -5
  1058. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  1059. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +60 -5
  1060. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1061. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +87 -5
  1062. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +1 -1
  1063. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +1 -1
  1064. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1065. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +42 -5
  1066. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1067. package/node_modules/@deepseek-ai/dsh-util-code-language/README.i18n.yaml +25 -0
  1068. package/node_modules/@deepseek-ai/dsh-util-code-language/README.md +50 -0
  1069. package/node_modules/@deepseek-ai/dsh-util-code-language/README.zh.md +50 -0
  1070. package/node_modules/@deepseek-ai/dsh-util-code-language/lib/index.js +269 -0
  1071. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +35 -0
  1072. package/node_modules/@deepseek-ai/dsh-util-crypto/README.i18n.yaml +33 -5
  1073. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1074. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +33 -5
  1075. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1076. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +42 -5
  1077. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1078. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.i18n.yaml +24 -5
  1079. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.md +2 -0
  1080. package/node_modules/@deepseek-ai/dsh-util-workspace-path/README.zh.md +2 -0
  1081. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +11 -1
  1082. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/types/index.d.ts +7 -0
  1083. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1084. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +66 -5
  1085. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1086. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +75 -5
  1087. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  1088. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  1089. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +21 -3
  1090. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +33 -5
  1091. package/node_modules/@deepseek-ai/dsh-web-app/package.json +143 -139
  1092. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +60 -5
  1093. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1094. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/Montserrat-OFL.txt +93 -0
  1095. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-light-Cvd2VjE_.woff2 +0 -0
  1096. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-medium-B4OyO9CN.woff2 +0 -0
  1097. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/fonts/montserrat-regular-DYep38cA.woff2 +0 -0
  1098. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DUvMhLle.css +1 -0
  1099. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Q6zc2uHV.js +127 -0
  1100. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/asciidoc-Ve4PFQV2.js +2 -0
  1101. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bat-BkioyH1T.js +2 -0
  1102. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/bibtex-CHM0blh-.js +2 -0
  1103. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/clojure-P80f7IUj.js +2 -0
  1104. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/cmake-D1j8_8rp.js +2 -0
  1105. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/csv-fuZLfV_i.js +2 -0
  1106. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dart-bE4Kk8sk.js +2 -0
  1107. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/diff-D97Zzqfu.js +2 -0
  1108. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/dotenv-Da5cRb03.js +2 -0
  1109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/elixir-CvYZzuDY.js +2 -0
  1110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/erlang-DsQrWhSR.js +2 -0
  1111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fish-BvzEVeQv.js +2 -0
  1112. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/fsharp-CXgrBDvD.js +2 -0
  1113. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/graphql-DujV8YkJ.js +2 -0
  1114. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/groovy-gcz8RCvz.js +2 -0
  1115. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/haskell-Df6bDoY_.js +2 -0
  1116. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/hcl-BWvSN4gD.js +2 -0
  1117. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-derivative-DOyKdj44.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-fwsONPVS.js +2 -0
  1119. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/http-DcV90OkR.js +2 -0
  1120. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/javascript-DI5JR1nB.js +2 -0
  1121. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/julia-BpJ6DjL_.js +2 -0
  1122. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/latex-B4C7GdlO.js +2 -0
  1123. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/log-2UxHyX5q.js +2 -0
  1124. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/make-CHLpvVh8.js +2 -0
  1125. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/nix-CwoSXNpI.js +2 -0
  1126. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/perl-DsWkoyyU.js +2 -0
  1127. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-LEPfNACG.js +2 -0
  1128. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/powershell-Dpen1YoG.js +2 -0
  1129. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/proto-C7zT0LnQ.js +2 -0
  1130. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/r-Dspwwk_N.js +2 -0
  1131. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/rst-BbocfKWr.js +2 -0
  1132. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-R292Iif0.js +2 -0
  1133. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/scala-C151Ov-r.js +2 -0
  1134. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/svelte-DNMY6jOf.js +2 -0
  1135. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/system-verilog-CnnmHF94.js +2 -0
  1136. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vb-D17OF-Vu.js +2 -0
  1137. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/verilog-BQ8w6xss.js +2 -0
  1138. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/vue-Dq2x6432.js +2 -0
  1139. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  1140. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +17 -15
  1141. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +84 -5
  1142. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -16
  1143. package/node_modules/@deepseek-ai/dsh-web-search-exa/README.i18n.yaml +60 -5
  1144. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1145. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/README.i18n.yaml +81 -5
  1146. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1147. package/node_modules/@deepseek-ai/dsh-webhook/README.i18n.yaml +45 -5
  1148. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1149. package/node_modules/@deepseek-ai/dsh-webhook-github/README.i18n.yaml +36 -5
  1150. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1151. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +42 -5
  1152. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1153. package/node_modules/@deepseek-ai/dsh-workflow/README.i18n.yaml +60 -5
  1154. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1155. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +78 -5
  1156. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +37 -36
  1157. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +87 -5
  1158. package/node_modules/@deepseek-ai/dsh-workspace/README.md +1 -1
  1159. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +1 -1
  1160. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +7 -5
  1161. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +7 -5
  1162. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1163. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +36 -5
  1164. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1165. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +30 -5
  1166. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +30 -5
  1167. package/node_modules/@deepseek-ai/libreoffice-kit/lib/cli.js +2058 -0
  1168. package/node_modules/@deepseek-ai/libreoffice-kit/lib/font-snapshot-worker.js +454 -0
  1169. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +1055 -57
  1170. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +922 -239
  1171. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +9 -3
  1172. package/node_modules/@deepseek-ai/node-addon-system/README.i18n.yaml +9 -5
  1173. package/node_modules/@deepseek-ai/node-addon-system/README.md +1 -1
  1174. package/node_modules/@deepseek-ai/node-addon-system/README.zh.md +1 -1
  1175. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1176. package/node_modules/@js-temporal/polyfill/CHANGELOG.md +453 -0
  1177. package/node_modules/@js-temporal/polyfill/LICENSE +13 -0
  1178. package/node_modules/@js-temporal/polyfill/README.md +90 -0
  1179. package/node_modules/@js-temporal/polyfill/dist/index.cjs +2 -0
  1180. package/node_modules/@js-temporal/polyfill/dist/index.esm.js +2 -0
  1181. package/node_modules/@js-temporal/polyfill/dist/index.umd.js +2 -0
  1182. package/node_modules/@js-temporal/polyfill/lib/assert.ts +8 -0
  1183. package/node_modules/@js-temporal/polyfill/lib/bigintmath.ts +39 -0
  1184. package/node_modules/@js-temporal/polyfill/lib/calendar.ts +2424 -0
  1185. package/node_modules/@js-temporal/polyfill/lib/debug.ts +7 -0
  1186. package/node_modules/@js-temporal/polyfill/lib/duration.ts +438 -0
  1187. package/node_modules/@js-temporal/polyfill/lib/ecmascript.ts +4973 -0
  1188. package/node_modules/@js-temporal/polyfill/lib/index.ts +34 -0
  1189. package/node_modules/@js-temporal/polyfill/lib/init.ts +43 -0
  1190. package/node_modules/@js-temporal/polyfill/lib/instant.ts +138 -0
  1191. package/node_modules/@js-temporal/polyfill/lib/intl.ts +758 -0
  1192. package/node_modules/@js-temporal/polyfill/lib/intrinsicclass.ts +162 -0
  1193. package/node_modules/@js-temporal/polyfill/lib/legacydate.ts +17 -0
  1194. package/node_modules/@js-temporal/polyfill/lib/math.ts +96 -0
  1195. package/node_modules/@js-temporal/polyfill/lib/now.ts +48 -0
  1196. package/node_modules/@js-temporal/polyfill/lib/plaindate.ts +212 -0
  1197. package/node_modules/@js-temporal/polyfill/lib/plaindatetime.ts +274 -0
  1198. package/node_modules/@js-temporal/polyfill/lib/plainmonthday.ts +110 -0
  1199. package/node_modules/@js-temporal/polyfill/lib/plaintime.ts +154 -0
  1200. package/node_modules/@js-temporal/polyfill/lib/plainyearmonth.ts +157 -0
  1201. package/node_modules/@js-temporal/polyfill/lib/regex.ts +59 -0
  1202. package/node_modules/@js-temporal/polyfill/lib/slots.ts +341 -0
  1203. package/node_modules/@js-temporal/polyfill/lib/temporal.ts +10 -0
  1204. package/node_modules/@js-temporal/polyfill/lib/timeduration.ts +149 -0
  1205. package/node_modules/@js-temporal/polyfill/lib/zoneddatetime.ts +492 -0
  1206. package/node_modules/@js-temporal/polyfill/package.json +125 -0
  1207. package/node_modules/fflate/CHANGELOG.md +0 -10
  1208. package/node_modules/fflate/LICENSE +1 -1
  1209. package/node_modules/fflate/README.md +10 -10
  1210. package/node_modules/fflate/esm/browser.js +55 -82
  1211. package/node_modules/fflate/esm/index.mjs +56 -87
  1212. package/node_modules/fflate/lib/browser.cjs +77 -106
  1213. package/node_modules/fflate/lib/index.cjs +77 -106
  1214. package/node_modules/fflate/lib/node-worker.cjs +1 -5
  1215. package/node_modules/fflate/lib/node.cjs +78 -111
  1216. package/node_modules/fflate/package.json +10 -11
  1217. package/node_modules/fflate/umd/index.js +1 -1
  1218. package/node_modules/jsbi/LICENSE +176 -0
  1219. package/node_modules/jsbi/README.md +173 -0
  1220. package/node_modules/jsbi/dist/jsbi-cjs.js +2 -0
  1221. package/node_modules/jsbi/dist/jsbi-umd.js +2 -0
  1222. package/node_modules/jsbi/dist/jsbi.mjs +2 -0
  1223. package/node_modules/jsbi/package.json +25 -0
  1224. package/package.json +305 -289
  1225. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +0 -2
  1226. package/node_modules/@deepseek-ai/dsh/lib/plugin-CnNK4cws.js +0 -31
  1227. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +0 -741
  1228. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +0 -70
  1229. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +0 -127
  1230. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +0 -1
  1231. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/html-CfGypltT.js +0 -2
  1232. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-DJl5gRdb.js +0 -2
  1233. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/ruby-5eNB0pDK.js +0 -2
  1234. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +0 -1
  1235. /package/node_modules/@deepseek-ai/{libreoffice-kit → dsh-session-log-export}/node_modules/fflate/lib/worker.cjs +0 -0
@@ -7,11 +7,206 @@ import { withFileLock, writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
7
7
  import z from "@deepseek-ai/schemastery";
8
8
  import { Remote, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
9
9
  import { pluginEntryId, readPluginInventory } from "@deepseek-ai/dsh-host-plugin-inventory";
10
- import { OPTIONAL_BUNDLES, bundlePatchPaths, composeEntries, loadOptionalPatches, loadOverlayPatches, readPluginMeta, readProfileManifest, readProfilePatches, reconcileProfilePatches, resolveBundleDir, resolveProfileDir } from "@deepseek-ai/dsh-app-boot";
10
+ import { OPTIONAL_BUNDLES, PROFILE_COMPATIBILITY_FILENAME, bundlePatchPaths, composeEntries, evaluatePluginCompatibility, loadOptionalPatches, loadOverlayPatches, pluginCompatibilityWarning, readPluginMeta, readProfileCompatibility, readProfileManifest, readProfilePatches, readProfileVersionExemptions, reconcileProfilePatches, resolveBundleDir, resolveProfileDir, setProfileVersionExemption } from "@deepseek-ai/dsh-app-boot";
11
+ import { once } from "node:events";
11
12
  import { execa } from "execa";
12
13
  import { scrubbedParentEnv } from "@deepseek-ai/dsh-subprocess";
13
14
  import { isAlias, isMap, isNode, isScalar, isSeq, parseDocument, visit } from "yaml";
15
+ //#region lib/types/install-spec.js
16
+ /**
17
+ * Reading an install spec before pnpm sees it: which of pnpm's spec forms it
18
+ * takes, and for a registry name whether it is one the registry can accept.
19
+ * @module @deepseek-ai/dsh-plugin-manager/install-spec
20
+ */
21
+ /** The forms pnpm resolves through a git host: a host shorthand, a git URL, or a hosted repository URL. */
22
+ const GIT_SHORTHAND = /^(?:github|gitlab|bitbucket|gist):/i;
23
+ const GIT_URL = /^git(?:\+[a-z]+)?:\/\/|^git@[^:]+:/i;
24
+ const HOSTED_REPOSITORY_URL = /^https?:\/\/[^/]+\/[^/]+\/[^/#]+(?:\.git)?(?:#.*)?$/i;
25
+ /** The hosts pnpm's shorthands stand for. */
26
+ const GIT_SHORTHAND_HOSTS = {
27
+ github: "github.com",
28
+ gitlab: "gitlab.com",
29
+ bitbucket: "bitbucket.org",
30
+ gist: "gist.github.com"
31
+ };
32
+ /** A tarball, on disk or over HTTP. */
33
+ const TARBALL_SPEC = /\.(?:tgz|tar\.gz)(?:#.*)?$/i;
34
+ /** An npm package name: lowercase URL-safe segments, an optional scope, no leading dot or underscore. */
35
+ const PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._~-]*\/)?[a-z0-9][a-z0-9._~-]*$/;
36
+ const PACKAGE_NAME_MAX_LENGTH = 214;
37
+ /** A spec neither pnpm nor the registry would take; `reason` is what the person reads. */
38
+ var InvalidInstallSpecError = class extends Error {
39
+ spec;
40
+ reason;
41
+ /**
42
+ * @param spec - the spec as typed, trimmed.
43
+ * @param reason - why it is refused, as one sentence.
44
+ */
45
+ constructor(spec, reason) {
46
+ super(`plugin-manager: ${reason}: ${spec}`);
47
+ this.spec = spec;
48
+ this.reason = reason;
49
+ this.name = "InvalidInstallSpecError";
50
+ }
51
+ };
52
+ function invalid(spec, reason) {
53
+ return new InvalidInstallSpecError(spec, reason);
54
+ }
55
+ /** The host a git spec is cloned from: the shorthand's host, the scp-like user@host, or the URL's host with its port. */
56
+ function gitHost(spec) {
57
+ const shorthand = /^([a-z]+):/i.exec(spec)?.[1]?.toLowerCase();
58
+ if (shorthand !== void 0 && Object.hasOwn(GIT_SHORTHAND_HOSTS, shorthand)) return GIT_SHORTHAND_HOSTS[shorthand];
59
+ const scp = /^git@([^:]+):/i.exec(spec)?.[1];
60
+ if (scp !== void 0) return scp.toLowerCase();
61
+ return new URL(spec.replace(/^git\+/i, "")).host;
62
+ }
63
+ /**
64
+ * Read a spec into its form. A path must be absolute: the Host's working
65
+ * directory means nothing to the person typing into a browser, and a
66
+ * relative path resolved against the profile would point inside it.
67
+ * @param raw - the spec as typed.
68
+ * @returns the parsed spec.
69
+ * @throws {InvalidInstallSpecError} for an empty spec, a relative path, a name the
70
+ * registry would refuse, or a URL that is neither a git host nor a tarball.
71
+ */
72
+ function parseInstallSpec(raw) {
73
+ const spec = raw.trim();
74
+ if (spec === "") throw invalid(spec, "the package spec must not be empty");
75
+ const path = spec.replace(/^(?:file|link):/, "");
76
+ if (path !== spec || isAbsolute(path)) {
77
+ if (!isAbsolute(path)) throw invalid(spec, "a local path must be absolute");
78
+ return TARBALL_SPEC.test(path) ? {
79
+ kind: "tarball",
80
+ spec,
81
+ path
82
+ } : {
83
+ kind: "path",
84
+ spec,
85
+ path
86
+ };
87
+ }
88
+ if (/^\.{1,2}(?:[\\/]|$)/.test(spec)) throw invalid(spec, "a local path must be absolute");
89
+ if ((GIT_SHORTHAND.test(spec) || GIT_URL.test(spec) || HOSTED_REPOSITORY_URL.test(spec)) && !TARBALL_SPEC.test(spec)) return {
90
+ kind: "git",
91
+ spec,
92
+ host: gitHost(spec)
93
+ };
94
+ if (/^https?:\/\//i.test(spec)) {
95
+ if (TARBALL_SPEC.test(spec)) return {
96
+ kind: "tarball",
97
+ spec,
98
+ host: new URL(spec).host
99
+ };
100
+ throw invalid(spec, "a URL must point at a git repository or a tarball");
101
+ }
102
+ const at = spec.indexOf("@", 1);
103
+ const name = at === -1 ? spec : spec.slice(0, at);
104
+ const range = at === -1 ? void 0 : spec.slice(at + 1);
105
+ if (name.length > PACKAGE_NAME_MAX_LENGTH || !PACKAGE_NAME.test(name)) throw invalid(spec, "not a package name the registry accepts");
106
+ if (range === "") throw invalid(spec, "a version after @ must not be empty");
107
+ return range === void 0 ? {
108
+ kind: "registry",
109
+ spec,
110
+ name
111
+ } : {
112
+ kind: "registry",
113
+ spec,
114
+ name,
115
+ range
116
+ };
117
+ }
118
+ //#endregion
119
+ //#region lib/types/run-tree.js
120
+ /** Waiting for one package run's process tree to disappear before its caller touches the profile. */
121
+ /** How long a terminated tree may take to disappear before the caller stops waiting. */
122
+ const TREE_WAIT_MS = 5e3;
123
+ /** Poll cadence while waiting for a terminated tree to disappear. */
124
+ const TREE_POLL_MS = 15;
125
+ /**
126
+ * Whether one run leads its own process group, which is the target a POSIX
127
+ * liveness probe addresses for the whole tree. A run that captures output is
128
+ * spawned as its own group leader, because its tree is terminated as a unit; a
129
+ * run that inherits the caller's descriptors keeps the caller's group, so an
130
+ * interrupt still reaches it.
131
+ * @param execution Whether the run captures output or inherits the caller's descriptors.
132
+ * @param platform Host platform deciding how a tree is addressed.
133
+ * @returns True when the run leads its own process group.
134
+ */
135
+ function leadsOwnGroup(execution, platform = process.platform) {
136
+ return execution === "service" && platform !== "win32";
137
+ }
138
+ /** The target a tree probe addresses: a POSIX group when the run leads one, else the process itself. */
139
+ function targetOf(pid, grouped, platform) {
140
+ return platform !== "win32" && grouped ? -pid : pid;
141
+ }
142
+ /**
143
+ * Whether any member of a run's tree is still alive.
144
+ * @param tree The run's process id and whether it leads its own group.
145
+ * @param internals Injectable process operations.
146
+ * @returns True while the probe finds the process or a group member.
147
+ */
148
+ function treeAlive(tree, internals = {}) {
149
+ const pid = tree.pid;
150
+ if (pid === void 0) return false;
151
+ const platform = internals.platform ?? process.platform;
152
+ const alive = internals.alive ?? ((target) => {
153
+ process.kill(target, 0);
154
+ return true;
155
+ });
156
+ try {
157
+ return alive(targetOf(pid, tree.grouped, platform));
158
+ } catch {
159
+ return false;
160
+ }
161
+ }
162
+ /**
163
+ * Wait until a terminated run's tree is gone, so the caller restores and
164
+ * unlocks the profile only after the scripts it started stopped writing.
165
+ * @param tree The run's process id and whether it leads its own group.
166
+ * @param internals Injectable process operations.
167
+ * @returns Fulfillment once no member remains, or the wait bound elapsed.
168
+ */
169
+ async function awaitTreeGone(tree, internals = {}) {
170
+ const deadline = Date.now() + (internals.waitMs ?? TREE_WAIT_MS);
171
+ while (treeAlive(tree, internals)) {
172
+ if (Date.now() >= deadline) return;
173
+ await new Promise((resolve) => setTimeout(resolve, TREE_POLL_MS));
174
+ }
175
+ }
176
+ //#endregion
177
+ //#region lib/types/failure.js
178
+ /** Expected management rejection; presentation belongs to the caller's locale. */
179
+ var ManagementFailure = class extends Error {
180
+ /** Code rendered by the caller's locale dictionary. */
181
+ code;
182
+ /** The packages an `incompatible-version` rejection names. */
183
+ incompatible;
184
+ /**
185
+ * @param code Localizable management rejection.
186
+ * @param incompatible Packages the running DSH version rejects, for `incompatible-version`.
187
+ */
188
+ constructor(code, incompatible) {
189
+ super(code);
190
+ this.code = code;
191
+ this.incompatible = incompatible;
192
+ }
193
+ };
194
+ /**
195
+ * Drop the exemption status from an unexempted compatibility result.
196
+ * @param issue Result whose exemption is not active.
197
+ * @returns The package, runtime, and rejected peer ranges.
198
+ */
199
+ function incompatiblePlugin(issue) {
200
+ return {
201
+ name: issue.name,
202
+ version: issue.version,
203
+ runtimeVersion: issue.runtimeVersion,
204
+ peers: issue.peers
205
+ };
206
+ }
207
+ //#endregion
14
208
  //#region lib/types/operations.js
209
+ /** Shared profile package operations used by dsh plugin and the running manager. */
15
210
  /** Resolve relative package specs against the caller's directory.
16
211
  * @param argument One pnpm argument.
17
212
  * @param cwd Invocation directory, never the profile directory.
@@ -69,15 +264,180 @@ async function reconcile(before, dir, anchor, options) {
69
264
  };
70
265
  await saveManifest(dir, after);
71
266
  }
267
+ /**
268
+ * How long the pipes keep draining after their process exited, as a fixed part of
269
+ * finishing a run rather than a deployment knob: a descendant that inherited them
270
+ * holds them open, and the tail a failure classification reads is written by then.
271
+ */
272
+ const DRAIN_AFTER_EXIT_MS = 2e3;
273
+ /** Whether every collector finished within `ms`.
274
+ * @param collectors The pipe readers racing the bound.
275
+ * @param ms The longest wait, in milliseconds.
276
+ * @returns True when all collectors settled in time.
277
+ */
278
+ async function drainWithin(collectors, ms) {
279
+ if (collectors.length === 0) return true;
280
+ let timer;
281
+ try {
282
+ return await Promise.race([Promise.allSettled(collectors).then(() => true), new Promise((resolve) => {
283
+ timer = setTimeout(() => {
284
+ resolve(false);
285
+ }, ms);
286
+ })]);
287
+ } finally {
288
+ clearTimeout(timer);
289
+ }
290
+ }
291
+ /** Install commands that take the packages to install as positionals. */
292
+ const INSTALL_COMMANDS = new Set([
293
+ "add",
294
+ "install",
295
+ "i"
296
+ ]);
297
+ /** Bound on a pre-install registry lookup when the caller names none. */
298
+ const LOOKUP_TIMEOUT_MS = 2e4;
299
+ /** Package specs an install command names explicitly, in order. */
300
+ function namedSpecs(args) {
301
+ const index = args.findIndex((argument) => !argument.startsWith("-"));
302
+ const command = index < 0 ? void 0 : args[index];
303
+ if (command === void 0 || !INSTALL_COMMANDS.has(command)) return [];
304
+ return args.slice(index + 1).filter((argument) => !argument.startsWith("-"));
305
+ }
306
+ /** The manifest a named spec would install, read without installing it.
307
+ * A path spec is read from disk. A registry spec asks pnpm's own configuration for the version the
308
+ * range selects and its peer requirements. A git or tarball spec needs the fetch itself, so the
309
+ * check after installation is what judges it.
310
+ * @param dir Profile directory the lookup runs in.
311
+ * @param spec Anchored install spec.
312
+ * @param options Pnpm executable, prefix arguments, the caller's bound and signal.
313
+ * @param environment Environment of the caller's pnpm invocations.
314
+ * @param flags Flags of the run itself, so the lookup asks the registry that run will use.
315
+ * @returns The package manifest, or undefined when reading it would need the installation itself.
316
+ */
317
+ async function namedSpecManifest(dir, spec, options, environment, flags) {
318
+ const parsed = parseInstallSpec(spec);
319
+ if (parsed.kind === "path") {
320
+ const filename = join(parsed.path, "package.json");
321
+ return existsSync(filename) ? JSON.parse(readFileSync(filename, "utf8")) : void 0;
322
+ }
323
+ if (parsed.kind !== "registry") return void 0;
324
+ const viewed = await execa(options.command ?? "pnpm", [
325
+ ...options.args ?? [],
326
+ "view",
327
+ parsed.spec,
328
+ "name",
329
+ "version",
330
+ "peerDependencies",
331
+ "--json",
332
+ ...flags,
333
+ "--config.fetch-retries=0"
334
+ ], {
335
+ cwd: dir,
336
+ env: environment,
337
+ extendEnv: false,
338
+ reject: false,
339
+ stdin: "ignore",
340
+ ...options.signal === void 0 ? {} : { cancelSignal: options.signal },
341
+ timeout: options.lookupTimeoutMs ?? LOOKUP_TIMEOUT_MS
342
+ });
343
+ if (viewed.exitCode !== 0) return void 0;
344
+ const value = JSON.parse(viewed.stdout);
345
+ return Array.isArray(value) ? value.at(-1) : value;
346
+ }
347
+ /** Missing installed packages are repairable; their absence is part of the before/after comparison. */
348
+ function optionalFile(path) {
349
+ try {
350
+ return readFileSync(path, "utf8");
351
+ } catch (error) {
352
+ if (error.code === "ENOENT") return void 0;
353
+ throw error;
354
+ }
355
+ }
356
+ /** Where an operation records the pnpm run it started, for a successor when the operation's own process ends first. */
357
+ function runRecordPath(dir) {
358
+ return join(dir, ".plugin-manager", "run.json");
359
+ }
360
+ /** Record a started run; a successor that takes over the profile lock from an exited process waits for it. */
361
+ async function recordRun(dir, tree) {
362
+ if (tree.pid === void 0) return;
363
+ await writeFileAtomic(runRecordPath(dir), `${JSON.stringify(tree)}\n`, {
364
+ mode: 384,
365
+ dirMode: 448
366
+ });
367
+ }
368
+ /**
369
+ * Why this operation must not run: a record left by an operation whose process
370
+ * ended mid-run names a run that is still writing the profile. The profile
371
+ * lock is taken over once its holder exits, but its pnpm tree can outlive it.
372
+ * A recorded run that stopped, within a bounded wait, has its record removed.
373
+ * @param dir Profile directory.
374
+ * @returns The diagnostic, or undefined when no recorded run is active.
375
+ */
376
+ async function activeRecordedRun(dir) {
377
+ const path = runRecordPath(dir);
378
+ const text = optionalFile(path);
379
+ if (text === void 0) return void 0;
380
+ let tree;
381
+ try {
382
+ const value = JSON.parse(text);
383
+ const { pid, grouped } = typeof value === "object" && value !== null ? value : {};
384
+ if (Number.isSafeInteger(pid) && pid > 0 && typeof grouped === "boolean") tree = {
385
+ pid,
386
+ grouped
387
+ };
388
+ } catch (error) {}
389
+ if (tree === void 0) return `dsh: ${path} does not name a package run; delete it once no earlier package operation is still running in this profile\n`;
390
+ await awaitTreeGone(tree);
391
+ if (treeAlive(tree)) return `dsh: process ${String(tree.pid)}, started by an earlier package operation whose own process ended, is still running in this profile; wait for it or stop it, then retry. If process ${String(tree.pid)} is not that package run, delete ${path}.\n`;
392
+ await rm(path, { force: true });
393
+ }
394
+ /** pnpm can install plugins through any direct-dependency field. */
395
+ function directDependencies(manifest) {
396
+ const extra = manifest;
397
+ return {
398
+ ...extra.devDependencies,
399
+ ...manifest.dependencies,
400
+ ...extra.optionalDependencies
401
+ };
402
+ }
403
+ /** Inspect only plugin rows contributed by the changed bundle, not its dependency closure. */
404
+ function bundleComponentManifests(manifest, dir, anchor) {
405
+ const bundle = manifest.dsh?.bundle;
406
+ if (bundle === void 0) return [];
407
+ const patches = bundlePatchPaths(dir, bundle).flatMap((file) => loadOverlayPatches("dsh", file));
408
+ const names = /* @__PURE__ */ new Set();
409
+ const visit = (rows) => {
410
+ for (const row of rows) {
411
+ if (row.group && Array.isArray(row.config)) visit(row.config);
412
+ if (typeof row.name !== "string" || row.name.startsWith(".") || row.name.startsWith("/") || row.name.includes(":")) continue;
413
+ const parts = row.name.split("/");
414
+ names.add(parts.slice(0, row.name.startsWith("@") ? 2 : 1).join("/"));
415
+ }
416
+ };
417
+ visit(composeEntries([patches.filter((patch) => patch.insert !== void 0)]));
418
+ return [...names].flatMap((name) => {
419
+ let packageDir;
420
+ try {
421
+ packageDir = resolveBundleDir("dsh", name, anchor, dir);
422
+ } catch (error) {
423
+ return [];
424
+ }
425
+ return [readProfileManifest("dsh", packageDir)];
426
+ });
427
+ }
72
428
  /** Execute pnpm inside a profile whose caller already holds the profile write lock.
429
+ * Newly installed or updated direct dependencies are checked even when activation is disabled;
430
+ * an untouched dependency never blocks an unrelated operation and stays denied at startup.
431
+ * Compatibility denial restores the profile manifest and lockfile, but leaves downloaded modules on disk.
73
432
  * @param context Launcher-owned profile and resolution locations.
74
433
  * @param args Pnpm arguments, before relative path anchoring.
75
434
  * @param options Output, activation and cancellation policy.
76
- * @returns Exit status and diagnostic path; service output is bounded, CLI output uses inherited descriptors.
435
+ * @returns Exit status, whether the silence bound stopped the run, and the diagnostic path.
436
+ * A compatibility denial returns exit code 1. Service output is bounded; CLI output uses inherited descriptors.
77
437
  */
78
438
  async function runProfilePnpm(context, args, options) {
79
439
  const dir = context.dir ?? resolveProfileDir(context.profile, context.home);
80
- const before = readProfileManifest("dsh", dir);
440
+ const active = await activeRecordedRun(dir);
81
441
  const logRoot = join(dir, ".plugin-manager", "logs");
82
442
  await mkdir(logRoot, {
83
443
  recursive: true,
@@ -85,70 +445,242 @@ async function runProfilePnpm(context, args, options) {
85
445
  });
86
446
  const logPath = join(await mkdtemp(join(logRoot, "operation-")), "pnpm.log");
87
447
  const log = await open(logPath, "wx", 384);
448
+ if (active !== void 0) {
449
+ await log.write(active);
450
+ await log.close();
451
+ options.onOutput?.(active, "stderr");
452
+ const bytes = Buffer.from(active);
453
+ return {
454
+ exitCode: 1,
455
+ output: bytes.subarray(Math.max(0, bytes.length - options.outputBytes)).toString("utf8"),
456
+ truncated: bytes.length > options.outputBytes,
457
+ logPath
458
+ };
459
+ }
460
+ const before = readProfileManifest("dsh", dir);
461
+ const savedFiles = ["package.json", "pnpm-lock.yaml"].map((name) => ({
462
+ path: join(dir, name),
463
+ text: optionalFile(join(dir, name))
464
+ }));
465
+ const beforeDependencies = directDependencies(before);
466
+ const installedBefore = new Map(Object.keys(beforeDependencies).map((name) => [name, optionalFile(join(dir, "node_modules", name, "package.json"))]));
88
467
  let output = Buffer.alloc(0);
89
468
  let truncated = false;
469
+ const append = (bytes) => {
470
+ output = Buffer.concat([output, bytes]);
471
+ if (output.length > options.outputBytes) {
472
+ truncated = true;
473
+ output = output.subarray(output.length - options.outputBytes);
474
+ }
475
+ };
476
+ const environment = {
477
+ ...options.execution === "cli" ? process.env : scrubbedParentEnv(),
478
+ ...options.env
479
+ };
480
+ const restore = async () => {
481
+ for (const file of savedFiles) if (file.text === void 0) await rm(file.path, { force: true });
482
+ else await writeFileAtomic(file.path, file.text, { mode: 384 });
483
+ };
484
+ /** Packages a compatibility check refused; callers render them for their own surface. */
485
+ const incompatible = [];
486
+ const rejected = async (warnings, restoration) => {
487
+ const diagnostic = `\ndsh: installation rejected: ${warnings.join("\n")}\ndsh: ${restoration}.\n`;
488
+ await log.write(diagnostic);
489
+ options.onOutput?.(diagnostic, "stderr");
490
+ append(Buffer.from(diagnostic));
491
+ await log.close();
492
+ return {
493
+ exitCode: 1,
494
+ output: output.toString("utf8"),
495
+ truncated,
496
+ logPath,
497
+ incompatible
498
+ };
499
+ };
500
+ const preflight = [];
501
+ const exemptions = readProfileVersionExemptions(dir);
502
+ const registryFlags = args.filter((argument) => argument.startsWith("--registry="));
503
+ for (const raw of namedSpecs(args)) try {
504
+ const manifest = await namedSpecManifest(dir, anchorPathSpec(raw, context.cwd), options, environment, registryFlags);
505
+ if (manifest === void 0) continue;
506
+ const issue = evaluatePluginCompatibility(manifest, exemptions);
507
+ if (issue !== void 0 && !issue.exempted) {
508
+ preflight.push(pluginCompatibilityWarning(issue));
509
+ incompatible.push(incompatiblePlugin(issue));
510
+ }
511
+ } catch (error) {
512
+ continue;
513
+ }
514
+ if (preflight.length > 0) return rejected(preflight, "nothing was installed");
90
515
  const cancellation = new AbortController();
516
+ const grouped = leadsOwnGroup(options.execution);
91
517
  const child = execa(options.command ?? "pnpm", [...options.args ?? [], ...args.map((arg) => anchorPathSpec(arg, context.cwd))], {
92
518
  cwd: dir,
93
- env: {
94
- ...options.execution === "cli" ? process.env : scrubbedParentEnv(),
95
- ...options.env
96
- },
519
+ env: environment,
97
520
  extendEnv: false,
98
521
  reject: false,
99
522
  stdout: options.execution === "cli" ? "inherit" : "pipe",
100
523
  stderr: options.execution === "cli" ? "inherit" : "pipe",
524
+ killDescendants: options.execution === "service",
101
525
  buffer: false,
102
526
  stdin: options.execution === "cli" ? "inherit" : "ignore",
103
527
  cancelSignal: options.signal === void 0 ? cancellation.signal : AbortSignal.any([cancellation.signal, options.signal])
104
528
  });
529
+ const exited = once(child.nodeChildProcess, "exit").catch(() => void 0);
105
530
  let writes = Promise.resolve();
531
+ /** `settled` records that the process outcome is known; `stalled` that the silence bound stopped the run. */
532
+ const control = {
533
+ settled: false,
534
+ stalled: false
535
+ };
536
+ /** Set once this call cuts the reading short itself, so the close it causes is not read as a run failure. */
537
+ let cut = false;
538
+ /** The first failure a reading hit before that cut, which the run still reports. */
539
+ let failure;
540
+ let idleTimer;
541
+ /** The silence bound: a captured run that stops printing without exiting is terminated, never awaited. */
542
+ const armIdle = () => {
543
+ if (control.settled || options.idleTimeoutMs === void 0) return;
544
+ clearTimeout(idleTimer);
545
+ idleTimer = setTimeout(() => {
546
+ control.stalled = true;
547
+ child.kill();
548
+ }, options.idleTimeoutMs);
549
+ };
106
550
  const collect = async (stream, kind) => {
107
551
  try {
108
552
  for await (const chunk of stream) {
553
+ armIdle();
109
554
  const bytes = Buffer.isBuffer(chunk) ? chunk : Buffer.from(chunk);
110
555
  writes = writes.then(async () => {
111
556
  await log.write(bytes);
112
557
  });
113
558
  await writes;
114
559
  options.onOutput?.(bytes.toString("utf8"), kind);
115
- output = Buffer.concat([output, bytes]);
116
- if (output.length > options.outputBytes) {
117
- truncated = true;
118
- output = output.subarray(output.length - options.outputBytes);
119
- }
560
+ append(bytes);
120
561
  }
121
562
  } catch (error) {
122
- cancellation.abort();
563
+ if (!cut) {
564
+ failure ??= error instanceof Error ? error : new Error(String(error));
565
+ cancellation.abort();
566
+ }
123
567
  throw error;
124
568
  }
125
569
  };
570
+ const collectors = [...child.stdout === null ? [] : [collect(child.stdout, "stdout")], ...child.stderr === null ? [] : [collect(child.stderr, "stderr")]];
571
+ for (const collector of collectors) collector.catch(() => {});
572
+ if (collectors.length > 0) armIdle();
126
573
  let exitCode;
127
574
  try {
128
- const [completion, ...streams] = await Promise.allSettled([
129
- child,
130
- ...child.stdout === null ? [] : [collect(child.stdout, "stdout")],
131
- ...child.stderr === null ? [] : [collect(child.stderr, "stderr")]
132
- ]);
133
- for (const stream of streams) if (stream.status === "rejected") throw stream.reason;
575
+ await recordRun(dir, {
576
+ pid: child.pid,
577
+ grouped
578
+ });
579
+ const settled = Promise.allSettled([child]);
580
+ await Promise.race([exited, settled]);
581
+ control.settled = true;
582
+ clearTimeout(idleTimer);
583
+ if (control.stalled) await awaitTreeGone({
584
+ pid: child.pid,
585
+ grouped
586
+ });
587
+ if (await drainWithin(collectors, DRAIN_AFTER_EXIT_MS)) {
588
+ for (const stream of await Promise.allSettled(collectors)) if (stream.status === "rejected") throw stream.reason;
589
+ } else {
590
+ cut = true;
591
+ child.stdout?.destroy();
592
+ child.stderr?.destroy();
593
+ const notice = "dsh: pnpm output was cut short after its process exited\n";
594
+ await log.write(notice);
595
+ if (failure !== void 0) throw failure;
596
+ options.onOutput?.(notice, "stderr");
597
+ append(Buffer.from(notice));
598
+ }
599
+ const [completion] = await settled;
134
600
  if (completion.status === "rejected") throw completion.reason;
135
601
  const result = completion.value;
136
602
  exitCode = result.exitCode ?? (result.code === "ENOENT" ? 127 : 1);
603
+ if (control.stalled) {
604
+ const notice = `dsh: pnpm printed nothing for ${String(options.idleTimeoutMs)}ms and was terminated\n`;
605
+ await log.write(notice);
606
+ options.onOutput?.(notice, "stderr");
607
+ append(Buffer.from(notice));
608
+ }
137
609
  if (result.failed && output.length === 0) {
138
610
  const diagnostic = result.shortMessage ?? "pnpm failed";
139
611
  await log.write(diagnostic);
140
612
  truncated = Buffer.byteLength(diagnostic) > options.outputBytes;
141
613
  output = Buffer.from(diagnostic).subarray(0, options.outputBytes);
142
614
  }
143
- if (exitCode === 0 && options.activateNewBundles !== false) await reconcile(before, dir, context.installAnchor, options);
615
+ if (exitCode === 0 && !control.stalled) {
616
+ const after = readProfileManifest("dsh", dir);
617
+ const warnings = [];
618
+ for (const [name, spec] of Object.entries(directDependencies(after))) {
619
+ const packageDir = join(dir, "node_modules", name);
620
+ const installed = optionalFile(join(packageDir, "package.json"));
621
+ if (installed === void 0) continue;
622
+ const untouched = beforeDependencies[name] === spec && installedBefore.get(name) === installed;
623
+ const found = [];
624
+ const issues = [];
625
+ try {
626
+ const manifest = readProfileManifest("dsh", packageDir);
627
+ for (const candidate of [manifest, ...bundleComponentManifests(manifest, packageDir, context.installAnchor)]) {
628
+ const issue = evaluatePluginCompatibility(candidate, readProfileVersionExemptions(dir));
629
+ if (issue !== void 0 && !issue.exempted) {
630
+ found.push(pluginCompatibilityWarning(issue));
631
+ issues.push(incompatiblePlugin(issue));
632
+ }
633
+ }
634
+ } catch (error) {
635
+ found.push(`Cannot validate installed package ${name}: ${String(error)}`);
636
+ }
637
+ if (found.length === 0) continue;
638
+ if (!untouched) {
639
+ warnings.push(...found);
640
+ incompatible.push(...issues);
641
+ } else {
642
+ const notice = `\ndsh: warning: ${found.join("\n")}\ndsh: it stays installed but profile startup denies it until you grant an exemption for those exact versions.\n`;
643
+ await log.write(notice);
644
+ options.onOutput?.(notice, "stderr");
645
+ }
646
+ }
647
+ if (warnings.length > 0) {
648
+ await restore();
649
+ const repair = ["install", savedFiles.some((file) => file.path.endsWith("pnpm-lock.yaml") && file.text !== void 0) ? "--frozen-lockfile" : "--config.lockfile=false"];
650
+ const repairing = execa(options.command ?? "pnpm", [...options.args ?? [], ...repair], {
651
+ cwd: dir,
652
+ env: environment,
653
+ extendEnv: false,
654
+ reject: false,
655
+ stdin: "ignore",
656
+ ...options.idleTimeoutMs === void 0 ? {} : { timeout: options.idleTimeoutMs }
657
+ });
658
+ await recordRun(dir, {
659
+ pid: repairing.pid,
660
+ grouped: false
661
+ });
662
+ const repaired = await repairing;
663
+ exitCode = 1;
664
+ const restoration = repaired.exitCode === 0 ? "restored package.json, pnpm-lock.yaml, and node_modules" : "restored package.json and pnpm-lock.yaml, but node_modules could not be reinstalled; run 'dsh plugin install'";
665
+ const diagnostic = `\ndsh: installation rejected: ${warnings.join("\n")}\ndsh: ${restoration}.\n`;
666
+ await log.write(diagnostic);
667
+ options.onOutput?.(diagnostic, "stderr");
668
+ append(Buffer.from(diagnostic));
669
+ } else if (options.activateNewBundles !== false) await reconcile(before, dir, context.installAnchor, options);
670
+ }
144
671
  } finally {
672
+ control.settled = true;
673
+ clearTimeout(idleTimer);
674
+ await rm(runRecordPath(dir), { force: true });
145
675
  await log.close();
146
676
  }
147
677
  return {
148
678
  exitCode,
149
679
  output: output.toString("utf8"),
150
680
  truncated,
151
- logPath
681
+ logPath,
682
+ ...control.stalled ? { timedOut: true } : {},
683
+ ...incompatible.length > 0 ? { incompatible } : {}
152
684
  };
153
685
  }
154
686
  /**
@@ -246,6 +778,7 @@ const LOG_KINDS = [
246
778
  ["disk-full", /\bENOSPC\b|no space left on device/i],
247
779
  ["permission", /\bEACCES\b|\bEPERM\b|permission denied/i],
248
780
  ["integrity", /ERR_PNPM_TARBALL_INTEGRITY|ERR_PNPM_BAD_TARBALL_SIZE|\bEINTEGRITY\b/],
781
+ ["unknown", /The requested URL returned error: 40[134]\b/],
249
782
  ["network", /\bENOTFOUND\b|\bECONNRESET\b|\bETIMEDOUT\b|\bECONNREFUSED\b|\bEAI_AGAIN\b|ERR_PNPM_META_FETCH_FAIL|ERR_PNPM_FETCH_5\d\d|ERR_PNPM_FETCH_TIMEOUT|\bFETCH_ERROR\b|socket hang up|Could not resolve host|unable to access/]
250
783
  ];
251
784
  /**
@@ -259,110 +792,8 @@ function classifyInstallFailure(facts) {
259
792
  for (const [kind, pattern] of LOG_KINDS) if (pattern.test(facts.log)) return kind;
260
793
  return "unknown";
261
794
  }
262
- //#endregion
263
- //#region lib/types/install-spec.js
264
- /**
265
- * Reading an install spec before pnpm sees it: which of pnpm's spec forms it
266
- * takes, and for a registry name whether it is one the registry can accept.
267
- * @module @deepseek-ai/dsh-plugin-manager/install-spec
268
- */
269
- /** The forms pnpm resolves through a git host: a host shorthand, a git URL, or a hosted repository URL. */
270
- const GIT_SHORTHAND = /^(?:github|gitlab|bitbucket|gist):/i;
271
- const GIT_URL = /^git(?:\+[a-z]+)?:\/\/|^git@[^:]+:/i;
272
- const HOSTED_REPOSITORY_URL = /^https?:\/\/[^/]+\/[^/]+\/[^/#]+(?:\.git)?(?:#.*)?$/i;
273
- /** The hosts pnpm's shorthands stand for. */
274
- const GIT_SHORTHAND_HOSTS = {
275
- github: "github.com",
276
- gitlab: "gitlab.com",
277
- bitbucket: "bitbucket.org",
278
- gist: "gist.github.com"
279
- };
280
- /** A tarball, on disk or over HTTP. */
281
- const TARBALL_SPEC = /\.(?:tgz|tar\.gz)(?:#.*)?$/i;
282
- /** An npm package name: lowercase URL-safe segments, an optional scope, no leading dot or underscore. */
283
- const PACKAGE_NAME = /^(?:@[a-z0-9][a-z0-9._~-]*\/)?[a-z0-9][a-z0-9._~-]*$/;
284
- const PACKAGE_NAME_MAX_LENGTH = 214;
285
- /** A spec neither pnpm nor the registry would take; `reason` is what the person reads. */
286
- var InvalidInstallSpecError = class extends Error {
287
- spec;
288
- reason;
289
- /**
290
- * @param spec - the spec as typed, trimmed.
291
- * @param reason - why it is refused, as one sentence.
292
- */
293
- constructor(spec, reason) {
294
- super(`plugin-manager: ${reason}: ${spec}`);
295
- this.spec = spec;
296
- this.reason = reason;
297
- this.name = "InvalidInstallSpecError";
298
- }
299
- };
300
- function invalid(spec, reason) {
301
- return new InvalidInstallSpecError(spec, reason);
302
- }
303
- /** The host a git spec is cloned from: the shorthand's host, the scp-like user@host, or the URL's host with its port. */
304
- function gitHost(spec) {
305
- const shorthand = /^([a-z]+):/i.exec(spec)?.[1]?.toLowerCase();
306
- if (shorthand !== void 0 && Object.hasOwn(GIT_SHORTHAND_HOSTS, shorthand)) return GIT_SHORTHAND_HOSTS[shorthand];
307
- const scp = /^git@([^:]+):/i.exec(spec)?.[1];
308
- if (scp !== void 0) return scp.toLowerCase();
309
- return new URL(spec.replace(/^git\+/i, "")).host;
310
- }
311
- /**
312
- * Read a spec into its form. A path must be absolute: the Host's working
313
- * directory means nothing to the person typing into a browser, and a
314
- * relative path resolved against the profile would point inside it.
315
- * @param raw - the spec as typed.
316
- * @returns the parsed spec.
317
- * @throws {InvalidInstallSpecError} for an empty spec, a relative path, a name the
318
- * registry would refuse, or a URL that is neither a git host nor a tarball.
319
- */
320
- function parseInstallSpec(raw) {
321
- const spec = raw.trim();
322
- if (spec === "") throw invalid(spec, "the package spec must not be empty");
323
- const path = spec.replace(/^(?:file|link):/, "");
324
- if (path !== spec || isAbsolute(path)) {
325
- if (!isAbsolute(path)) throw invalid(spec, "a local path must be absolute");
326
- return TARBALL_SPEC.test(path) ? {
327
- kind: "tarball",
328
- spec,
329
- path
330
- } : {
331
- kind: "path",
332
- spec,
333
- path
334
- };
335
- }
336
- if (/^\.{1,2}(?:[\\/]|$)/.test(spec)) throw invalid(spec, "a local path must be absolute");
337
- if ((GIT_SHORTHAND.test(spec) || GIT_URL.test(spec) || HOSTED_REPOSITORY_URL.test(spec)) && !TARBALL_SPEC.test(spec)) return {
338
- kind: "git",
339
- spec,
340
- host: gitHost(spec)
341
- };
342
- if (/^https?:\/\//i.test(spec)) {
343
- if (TARBALL_SPEC.test(spec)) return {
344
- kind: "tarball",
345
- spec,
346
- host: new URL(spec).host
347
- };
348
- throw invalid(spec, "a URL must point at a git repository or a tarball");
349
- }
350
- const at = spec.indexOf("@", 1);
351
- const name = at === -1 ? spec : spec.slice(0, at);
352
- const range = at === -1 ? void 0 : spec.slice(at + 1);
353
- if (name.length > PACKAGE_NAME_MAX_LENGTH || !PACKAGE_NAME.test(name)) throw invalid(spec, "not a package name the registry accepts");
354
- if (range === "") throw invalid(spec, "a version after @ must not be empty");
355
- return range === void 0 ? {
356
- kind: "registry",
357
- spec,
358
- name
359
- } : {
360
- kind: "registry",
361
- spec,
362
- name,
363
- range
364
- };
365
- }
795
+ /** Public npmmirror URL shared by the fallback configuration and public-registry comparison. */
796
+ const NPMMIRROR_REGISTRY = "https://registry.npmmirror.com/";
366
797
  /**
367
798
  * Parse a registry URL into the form pnpm compares registries in: lower-case host, trailing slash.
368
799
  * @param url - the registry as configured or requested.
@@ -480,18 +911,6 @@ async function writePluginEnabled(filename, id, name, enabled) {
480
911
  return true;
481
912
  }
482
913
  //#endregion
483
- //#region lib/types/failure.js
484
- /** Expected management rejection; presentation belongs to the caller's locale. */
485
- var ManagementFailure = class extends Error {
486
- /** Code rendered by the caller's locale dictionary. */
487
- code;
488
- /** @param code Localizable management rejection. */
489
- constructor(code) {
490
- super(code);
491
- this.code = code;
492
- }
493
- };
494
- //#endregion
495
914
  //#region lib/types/build-approval.js
496
915
  /** Approve pnpm's pending dependency scripts in the current profile's workspace settings. */
497
916
  async function readPolicy(dir) {
@@ -535,6 +954,84 @@ async function approveBuilds(dir, names) {
535
954
  await writeFileAtomic(join(dir, "pnpm-workspace.yaml"), String(document), { mode: 384 });
536
955
  }
537
956
  //#endregion
957
+ //#region lib/types/github-connection.js
958
+ /** Bounded GitHub repository checks using the installer's Git configuration and environment. */
959
+ /**
960
+ * Check a GitHub repository before pnpm starts, without downloading or building its package.
961
+ * Git reads the profile's Git and proxy configuration without invoking credential helpers or prompting.
962
+ * Timeout and cancellation terminate its descendants too; pnpm owns authentication and transport fallback.
963
+ * @param spec The parsed installation address; npm packages, local paths and other hosts are not checked.
964
+ * @param dir The profile directory where installation runs.
965
+ * @param options The connection deadline, output bound and operation cancellation.
966
+ * @returns A failed check with bounded output and a complete log at logPath, or undefined for a reachable repository or an unhandled spec.
967
+ */
968
+ async function checkGithubConnection(spec, dir, options) {
969
+ if (spec.kind !== "git") return void 0;
970
+ const host = spec.host.toLowerCase().replace(/:.*$/, "");
971
+ if (host !== "github.com" && !host.endsWith(".github.com")) return void 0;
972
+ const repository = spec.spec.replace(/#.*$/s, "").replace(/^github:/i, "https://github.com/").replace(/^gist:/i, "https://gist.github.com/").replace(/^git\+/i, "");
973
+ const logRoot = join(dir, ".plugin-manager", "logs");
974
+ await mkdir(logRoot, {
975
+ recursive: true,
976
+ mode: 448
977
+ });
978
+ const logPath = join(await mkdtemp(join(logRoot, "github-connection-")), "git.log");
979
+ const log = await open(logPath, "ax+", 384);
980
+ try {
981
+ const result = await execa("git", [
982
+ "-c",
983
+ "credential.helper=",
984
+ "ls-remote",
985
+ "--",
986
+ repository,
987
+ "HEAD"
988
+ ], {
989
+ cwd: dir,
990
+ env: {
991
+ ...scrubbedParentEnv(),
992
+ ...options.env,
993
+ LC_ALL: "C",
994
+ GIT_TERMINAL_PROMPT: "0",
995
+ GIT_ASKPASS: "",
996
+ SSH_ASKPASS: "",
997
+ SSH_ASKPASS_REQUIRE: "never"
998
+ },
999
+ extendEnv: false,
1000
+ stdin: "ignore",
1001
+ stdout: "ignore",
1002
+ stderr: {
1003
+ file: logPath,
1004
+ append: true
1005
+ },
1006
+ buffer: false,
1007
+ reject: false,
1008
+ timeout: options.timeoutMs,
1009
+ cancelSignal: options.signal,
1010
+ killDescendants: true,
1011
+ killSignal: "SIGKILL"
1012
+ });
1013
+ if (!result.failed) return void 0;
1014
+ if (result.timedOut) await log.write(`dsh: connection to ${spec.host} timed out after ${String(options.timeoutMs)}ms\n`);
1015
+ if ((await log.stat()).size === 0) await log.write(result.shortMessage ?? "GitHub connection check failed");
1016
+ const { size } = await log.stat();
1017
+ const bytes = Buffer.alloc(Math.min(size, options.outputBytes));
1018
+ await log.read(bytes, 0, bytes.length, size - bytes.length);
1019
+ const output = bytes.toString("utf8");
1020
+ return {
1021
+ exitCode: result.exitCode ?? (result.code === "ENOENT" ? 127 : 1),
1022
+ output,
1023
+ truncated: size > options.outputBytes,
1024
+ logPath,
1025
+ kind: classifyInstallFailure({
1026
+ log: output,
1027
+ timedOut: result.timedOut
1028
+ })
1029
+ };
1030
+ } finally {
1031
+ await log.close();
1032
+ }
1033
+ }
1034
+ //#endregion
538
1035
  //#region lib/types/index.js
539
1036
  /** Current-profile plugin and bundle management over shared dsh plugin operations. */
540
1037
  var __runInitializers = function(thisArg, initializers, value) {
@@ -609,10 +1106,14 @@ function messageOf(error) {
609
1106
  }
610
1107
  /** An expected refusal keeps its code; anything else becomes an operation error carrying its exact diagnostic. */
611
1108
  function managementError(error) {
612
- return error instanceof ManagementFailure ? { code: error.code } : {
1109
+ if (!(error instanceof ManagementFailure)) return {
613
1110
  code: "operation-error",
614
1111
  diagnostic: messageOf(error)
615
1112
  };
1113
+ return {
1114
+ code: error.code,
1115
+ ...error.incompatible === void 0 ? {} : { incompatible: error.incompatible }
1116
+ };
616
1117
  }
617
1118
  /** The caller stopped an installation; its files are restored before this is thrown. */
618
1119
  var InstallCancelledError = class extends Error {
@@ -682,6 +1183,8 @@ function parsedForRegistry(spec) {
682
1183
  let PluginManager = (() => {
683
1184
  let _classSuper = TypertRemoteService;
684
1185
  let _instanceExtraInitializers = [];
1186
+ let _listVersionExemptions_decorators;
1187
+ let _setVersionExemption_decorators;
685
1188
  let _listPlugins_decorators;
686
1189
  let _listBundles_decorators;
687
1190
  let _registries_decorators;
@@ -695,6 +1198,8 @@ let PluginManager = (() => {
695
1198
  return class PluginManager extends _classSuper {
696
1199
  static {
697
1200
  const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1201
+ _listVersionExemptions_decorators = [Remote];
1202
+ _setVersionExemption_decorators = [Remote];
698
1203
  _listPlugins_decorators = [Remote];
699
1204
  _listBundles_decorators = [Remote];
700
1205
  _registries_decorators = [Remote];
@@ -705,6 +1210,28 @@ let PluginManager = (() => {
705
1210
  _waitForInstall_decorators = [Remote];
706
1211
  _cancelInstall_decorators = [Remote];
707
1212
  _removeBundle_decorators = [Remote];
1213
+ __esDecorate(this, null, _listVersionExemptions_decorators, {
1214
+ kind: "method",
1215
+ name: "listVersionExemptions",
1216
+ static: false,
1217
+ private: false,
1218
+ access: {
1219
+ has: (obj) => "listVersionExemptions" in obj,
1220
+ get: (obj) => obj.listVersionExemptions
1221
+ },
1222
+ metadata: _metadata
1223
+ }, null, _instanceExtraInitializers);
1224
+ __esDecorate(this, null, _setVersionExemption_decorators, {
1225
+ kind: "method",
1226
+ name: "setVersionExemption",
1227
+ static: false,
1228
+ private: false,
1229
+ access: {
1230
+ has: (obj) => "setVersionExemption" in obj,
1231
+ get: (obj) => obj.setVersionExemption
1232
+ },
1233
+ metadata: _metadata
1234
+ }, null, _instanceExtraInitializers);
708
1235
  __esDecorate(this, null, _listPlugins_decorators, {
709
1236
  kind: "method",
710
1237
  name: "listPlugins",
@@ -828,8 +1355,10 @@ let PluginManager = (() => {
828
1355
  outputBytes: z.number().step(1).min(1).default(16384),
829
1356
  lockWaitMs: z.number().step(1).min(0).default(12e4),
830
1357
  inspectTimeoutMs: z.number().step(1).min(1e3).default(2e4),
1358
+ githubConnectionTimeoutMs: z.number().step(1).min(1e3).default(5e3),
1359
+ idleTimeoutMs: z.number().step(1).min(1e3).default(6e5),
831
1360
  registry: z.string().pattern(REGISTRY_URL),
832
- fallbackRegistries: z.array(z.string().pattern(REGISTRY_URL)).default(["https://registry.npmmirror.com/"])
1361
+ fallbackRegistries: z.array(z.string().pattern(REGISTRY_URL)).default([NPMMIRROR_REGISTRY])
833
1362
  });
834
1363
  /** Management bundles remain protected if their files become unreadable. */
835
1364
  managementBundles = (__runInitializers(this, _instanceExtraInitializers), /* @__PURE__ */ new Set());
@@ -839,6 +1368,8 @@ let PluginManager = (() => {
839
1368
  outputBytes;
840
1369
  lockWaitMs;
841
1370
  inspectTimeoutMs;
1371
+ githubConnectionTimeoutMs;
1372
+ idleTimeoutMs;
842
1373
  pnpmCommand;
843
1374
  configuredRegistries;
844
1375
  ownerContext;
@@ -854,6 +1385,8 @@ let PluginManager = (() => {
854
1385
  this.outputBytes = config.outputBytes;
855
1386
  this.lockWaitMs = config.lockWaitMs;
856
1387
  this.inspectTimeoutMs = config.inspectTimeoutMs;
1388
+ this.githubConnectionTimeoutMs = config.githubConnectionTimeoutMs;
1389
+ this.idleTimeoutMs = config.idleTimeoutMs;
857
1390
  this.pnpmCommand = config.pnpmCommand;
858
1391
  this.configuredRegistries = {
859
1392
  registry: config.registry === void 0 ? null : normalizeRegistry(config.registry),
@@ -864,6 +1397,34 @@ let PluginManager = (() => {
864
1397
  await Promise.allSettled([...this.packageOperations]);
865
1398
  }, "plugin-manager: package cancellation");
866
1399
  }
1400
+ /** Read exact plugin-version exemptions saved in this profile.
1401
+ * @returns Accepted package-name@version keys with the runtime versions they may run on, and any
1402
+ * record or file problem the reader rejected, which the caller reports instead of failing.
1403
+ */
1404
+ listVersionExemptions() {
1405
+ const { exemptions, warnings } = readProfileCompatibility(this.profile.dir);
1406
+ return {
1407
+ exemptions,
1408
+ warnings
1409
+ };
1410
+ }
1411
+ /** Grant or revoke one exact plugin/runtime exemption and reevaluate live plugins.
1412
+ * @param packageVersion Exact manifest package name followed by @ and its version; never an installation spec or alias.
1413
+ * @param runtimeVersion Exact current DSH version for grants; revocation may name a previous runtime.
1414
+ * @param enabled Whether to grant rather than revoke the exemption.
1415
+ * @param acceptRisk Required true for grants after the user accepts possible crashes and data loss.
1416
+ * @returns Saved and runtime outcomes. Startup-only profiles require restart.
1417
+ */
1418
+ setVersionExemption(packageVersion, runtimeVersion, enabled, acceptRisk) {
1419
+ return this.change((result) => this.configure(async () => {
1420
+ await setProfileVersionExemption(this.profile.dir, packageVersion, runtimeVersion, enabled, acceptRisk === true);
1421
+ result.warnings = await this.reload();
1422
+ }), {
1423
+ stage: "enable",
1424
+ target: packageVersion,
1425
+ enabled
1426
+ }, "bundle");
1427
+ }
867
1428
  /** Read current plugins, including why a row cannot be changed through the profile patch.
868
1429
  * @returns Current runtime entries with persistent patch targets.
869
1430
  */
@@ -894,6 +1455,7 @@ let PluginManager = (() => {
894
1455
  */
895
1456
  listBundles() {
896
1457
  const manifest = readProfileManifest("dsh", this.profile.dir);
1458
+ const exemptions = readProfileVersionExemptions(this.profile.dir);
897
1459
  const selected = manifest.dsh?.profile?.bundles ?? [];
898
1460
  const dependencies = Object.keys(manifest.dependencies ?? {});
899
1461
  const installation = JSON.parse(readFileSync(this.profile.installAnchor, "utf8"));
@@ -925,6 +1487,8 @@ let PluginManager = (() => {
925
1487
  });
926
1488
  continue;
927
1489
  }
1490
+ const compatibility = evaluatePluginCompatibility(info, exemptions);
1491
+ if (compatibility !== void 0 && !compatibility.exempted) throw new ManagementFailure("incompatible-version", [incompatiblePlugin(compatibility)]);
928
1492
  const dir = resolveBundleDir("dsh", name, this.profile.installAnchor, this.profile.dir);
929
1493
  const meta = readPluginMeta(info.name ?? name, pathToFileURL(join(dir, "package.json")).href);
930
1494
  bundles.push({
@@ -1114,7 +1678,9 @@ let PluginManager = (() => {
1114
1678
  }, "bundle");
1115
1679
  }
1116
1680
  /**
1117
- * Install a package using the same pnpm implementation as dsh plugin. A run
1681
+ * Install a package using the same pnpm implementation as dsh plugin. GitHub
1682
+ * repositories get a connection check bounded by githubConnectionTimeoutMs before pnpm starts;
1683
+ * only network failures or timeouts stop installation, while pnpm owns authentication and transport fallback. A run
1118
1684
  * that fails, is cancelled, or adds a package without a bundle patch restores
1119
1685
  * `package.json` and `pnpm-lock.yaml` as they were; downloaded files can stay.
1120
1686
  * @param spec One package spec, including local paths relative to the invocation directory.
@@ -1129,7 +1695,7 @@ let PluginManager = (() => {
1129
1695
  phase: "installing",
1130
1696
  result: Promise.resolve(null)
1131
1697
  };
1132
- const stopped = () => control.abort.signal.aborted;
1698
+ const stopped = () => control.abort.signal.aborted || this.abort.signal.aborted;
1133
1699
  if (requestId !== void 0) this.installs.set(requestId, control);
1134
1700
  const announce = (phase, attempt) => {
1135
1701
  if (requestId !== void 0) this.ownerContext.emit("plugin-manager/install-state", {
@@ -1147,11 +1713,30 @@ let PluginManager = (() => {
1147
1713
  }
1148
1714
  const files = await this.readRestoredFiles();
1149
1715
  const before = readProfileManifest("dsh", this.profile.dir).dependencies ?? {};
1150
- const plan = registryPlan(options?.registry, await this.registries());
1151
1716
  let name;
1152
1717
  try {
1153
- let run;
1154
1718
  result.registries = [];
1719
+ const connection = checkGithubConnection(parsedForRegistry(spec), this.profile.dir, {
1720
+ timeoutMs: this.githubConnectionTimeoutMs,
1721
+ outputBytes: this.outputBytes,
1722
+ signal: AbortSignal.any([this.abort.signal, control.abort.signal]),
1723
+ ...this.profile.packageManager?.env === void 0 ? {} : { env: this.profile.packageManager.env }
1724
+ });
1725
+ this.packageOperations.add(connection);
1726
+ let connectionFailure;
1727
+ try {
1728
+ connectionFailure = await connection;
1729
+ } finally {
1730
+ this.packageOperations.delete(connection);
1731
+ }
1732
+ if (stopped()) throw new InstallCancelledError();
1733
+ if (connectionFailure?.kind === "network" || connectionFailure?.kind === "timeout") {
1734
+ result.packageResult = connectionFailure;
1735
+ result.failedAt = "spec-host";
1736
+ throw new Error(connectionFailure.output);
1737
+ }
1738
+ const plan = registryPlan(options?.registry, await this.registries());
1739
+ let run;
1155
1740
  for (const [index, registry] of plan.entries()) {
1156
1741
  if (index > 0) await this.restoreFiles(files);
1157
1742
  if (stopped()) throw new InstallCancelledError();
@@ -1168,17 +1753,21 @@ let PluginManager = (() => {
1168
1753
  ], control.abort.signal, requestId);
1169
1754
  result.packageResult = run;
1170
1755
  if (stopped()) throw new InstallCancelledError();
1171
- /* v8 ignore next 2 -- runPnpm classifies every failed run, so kind is never absent here */
1172
- if (run.exitCode === 0 || run.kind === void 0) break;
1173
- const failedAt = attributeFailure(run.kind, run.output, parsedForRegistry(spec));
1756
+ if (run.incompatible !== void 0) throw new ManagementFailure("incompatible-version", run.incompatible);
1757
+ if (run.exitCode === 0 && run.timedOut !== true) break;
1758
+ /* v8 ignore next 2 -- runPnpm classifies every run it does not report as succeeded */
1759
+ if (run.kind === void 0) break;
1174
1760
  delete result.failedAt;
1761
+ if (run.timedOut === true) break;
1762
+ const failedAt = attributeFailure(run.kind, run.output, parsedForRegistry(spec));
1175
1763
  if (failedAt !== "other") result.failedAt = failedAt;
1176
1764
  if (failedAt !== "registry" || index === plan.length - 1) break;
1177
1765
  }
1178
1766
  /* v8 ignore next -- the plan is never empty, so a run always settled */
1179
1767
  if (run === void 0) throw new Error("no registry was asked");
1180
- if (run.exitCode === 0) delete result.failedAt;
1181
- if (run.exitCode !== 0) {
1768
+ const succeeded = run.exitCode === 0 && run.timedOut !== true;
1769
+ if (succeeded) delete result.failedAt;
1770
+ if (!succeeded) {
1182
1771
  try {
1183
1772
  result.pendingBuilds = await readPendingBuilds(this.profile.dir);
1184
1773
  } catch (error) {
@@ -1195,6 +1784,8 @@ let PluginManager = (() => {
1195
1784
  const dir = resolveBundleDir("dsh", name, this.profile.installAnchor, this.profile.dir);
1196
1785
  const manifest = bundleManifest(name, this.profile.dir, this.profile.installAnchor);
1197
1786
  if (manifest?.dsh?.bundle === void 0) throw new ManagementFailure("not-bundle");
1787
+ const compatibility = evaluatePluginCompatibility(manifest, readProfileVersionExemptions(this.profile.dir));
1788
+ if (compatibility !== void 0 && !compatibility.exempted) throw new ManagementFailure("incompatible-version", [incompatiblePlugin(compatibility)]);
1198
1789
  for (const file of bundlePatchPaths(dir, manifest.dsh.bundle)) loadOverlayPatches("dsh", file);
1199
1790
  } catch (error) {
1200
1791
  await this.restoreFiles(files);
@@ -1230,7 +1821,7 @@ let PluginManager = (() => {
1230
1821
  }
1231
1822
  /** Stop an installation this manager owns and wait until its files are back.
1232
1823
  * @param requestId The id the installation was started with.
1233
- * @returns `cancelled` once pnpm exited and the files are restored, `too-late` once the bundle is being
1824
+ * @returns `cancelled` once the Git check or pnpm exited and the files are restored, `too-late` once the bundle is being
1234
1825
  * applied, `not-running` for any other id.
1235
1826
  */
1236
1827
  async cancelInstall(requestId) {
@@ -1264,7 +1855,7 @@ let PluginManager = (() => {
1264
1855
  if ([...this.ctx.loader.entries()].some((entry) => entry.fiber?.uid != null && contributions.some((row) => row.id === entry.options.id && row.name === entry.options.name))) throw new ManagementFailure("bundle-in-use");
1265
1856
  });
1266
1857
  result.packageResult = await this.runPnpm(["remove", name]);
1267
- if (result.packageResult.exitCode !== 0) throw new Error(result.packageResult.output);
1858
+ if (result.packageResult.exitCode !== 0 || result.packageResult.timedOut === true) throw new Error(result.packageResult.output);
1268
1859
  }, {
1269
1860
  stage: "remove",
1270
1861
  target: name
@@ -1323,6 +1914,8 @@ let PluginManager = (() => {
1323
1914
  signal: signal === void 0 ? this.abort.signal : AbortSignal.any([this.abort.signal, signal]),
1324
1915
  outputBytes: this.outputBytes,
1325
1916
  activateNewBundles: false,
1917
+ idleTimeoutMs: this.idleTimeoutMs,
1918
+ lookupTimeoutMs: this.inspectTimeoutMs,
1326
1919
  onOutput: (text, stream) => {
1327
1920
  this.ownerContext.emit("plugin-manager/install-log", {
1328
1921
  ...identity,
@@ -1346,9 +1939,13 @@ let PluginManager = (() => {
1346
1939
  text: "",
1347
1940
  exitCode: signal?.aborted === true ? null : result.exitCode
1348
1941
  });
1349
- return result.exitCode === 0 ? result : {
1942
+ if (result.exitCode === 0 && result.timedOut !== true) return result;
1943
+ return {
1350
1944
  ...result,
1351
- kind: classifyInstallFailure({ log: result.output })
1945
+ kind: classifyInstallFailure({
1946
+ log: result.output,
1947
+ ...result.timedOut === true ? { timedOut: true } : {}
1948
+ })
1352
1949
  };
1353
1950
  } catch (error) {
1354
1951
  this.ownerContext.emit("plugin-manager/install-log", {
@@ -1382,8 +1979,15 @@ let PluginManager = (() => {
1382
1979
  async selectBundle(name, enabled) {
1383
1980
  const manifest = readProfileManifest("dsh", this.profile.dir);
1384
1981
  const previous = manifest.dsh?.profile?.bundles ?? [];
1385
- if ((enabled || !previous.includes(name)) && bundleManifest(name, this.profile.dir, this.profile.installAnchor) === void 0) throw new ManagementFailure("not-bundle");
1386
- if (enabled) this.bundleRows(name);
1982
+ if (enabled || !previous.includes(name)) {
1983
+ const metadata = bundleManifest(name, this.profile.dir, this.profile.installAnchor);
1984
+ if (metadata === void 0) throw new ManagementFailure("not-bundle");
1985
+ if (enabled) {
1986
+ const compatibility = evaluatePluginCompatibility(metadata, readProfileVersionExemptions(this.profile.dir));
1987
+ if (compatibility !== void 0 && !compatibility.exempted) throw new ManagementFailure("incompatible-version", [incompatiblePlugin(compatibility)]);
1988
+ this.bundleRows(name);
1989
+ }
1990
+ }
1387
1991
  if (!enabled && previous.includes(name)) {
1388
1992
  if (this.protectsManager(name)) throw new ManagementFailure("management-required");
1389
1993
  }
@@ -1455,7 +2059,8 @@ let PluginManager = (() => {
1455
2059
  return [
1456
2060
  "package.json",
1457
2061
  "cordis.patch.yml",
1458
- "pnpm-workspace.yaml"
2062
+ "pnpm-workspace.yaml",
2063
+ PROFILE_COMPATIBILITY_FILENAME
1459
2064
  ].map((file) => {
1460
2065
  try {
1461
2066
  return readFileSync(join(this.profile.dir, file), "utf8");