@songtonyli/dsh-cli 0.1.83 → 0.1.84

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 (3115) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/README.md +6 -0
  4. package/node_modules/@deepseek-ai/cordis/lib/index.js +47 -21
  5. package/node_modules/@deepseek-ai/cordis/src/fiber.ts +50 -21
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +10 -0
  7. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +77 -9
  8. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +5 -5
  9. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/tree.ts +4 -1
  10. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/resolve.ts +75 -0
  11. package/node_modules/@deepseek-ai/cordis-plugin-timer/README.md +6 -4
  12. package/node_modules/@deepseek-ai/cordis-plugin-timer/lib/index.js +19 -13
  13. package/node_modules/@deepseek-ai/cordis-plugin-timer/src/index.ts +22 -16
  14. package/node_modules/@deepseek-ai/dsh/lib/bin.js +3 -3
  15. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-CWs_HdOc.js → dump-config-D97dwXdd.js} +1 -1
  16. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DuXZcU0e.js +2 -0
  17. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-schema-D_PxIzpe.js → dump-config-schema-r4V15-lg.js} +2 -2
  18. package/node_modules/@deepseek-ai/dsh/lib/{plugin-BiveYA7h.js → plugin-DscIHF4k.js} +3 -2
  19. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-C14i-8IN.js → profile-boot-e2mS45fC.js} +2 -1
  20. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  21. package/node_modules/@deepseek-ai/dsh/package.json +124 -118
  22. package/node_modules/@deepseek-ai/dsh-acp/README.i18n.yaml +2 -2
  23. package/node_modules/@deepseek-ai/dsh-acp/README.md +3 -1
  24. package/node_modules/@deepseek-ai/dsh-acp/README.zh.md +3 -1
  25. package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +40 -114
  26. package/node_modules/@deepseek-ai/dsh-acp/locale/de.json +6 -0
  27. package/node_modules/@deepseek-ai/dsh-acp/locale/en.json +6 -0
  28. package/node_modules/@deepseek-ai/dsh-acp/locale/es.json +6 -0
  29. package/node_modules/@deepseek-ai/dsh-acp/locale/fr.json +6 -0
  30. package/node_modules/@deepseek-ai/dsh-acp/locale/ja.json +6 -0
  31. package/node_modules/@deepseek-ai/dsh-acp/locale/pt.json +6 -0
  32. package/node_modules/@deepseek-ai/dsh-acp/locale/ru.json +6 -0
  33. package/node_modules/@deepseek-ai/dsh-acp/locale/zh.json +6 -0
  34. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -23
  35. package/node_modules/@deepseek-ai/dsh-acp-app/locale/de.json +6 -0
  36. package/node_modules/@deepseek-ai/dsh-acp-app/locale/en.json +6 -0
  37. package/node_modules/@deepseek-ai/dsh-acp-app/locale/es.json +6 -0
  38. package/node_modules/@deepseek-ai/dsh-acp-app/locale/fr.json +6 -0
  39. package/node_modules/@deepseek-ai/dsh-acp-app/locale/ja.json +6 -0
  40. package/node_modules/@deepseek-ai/dsh-acp-app/locale/pt.json +6 -0
  41. package/node_modules/@deepseek-ai/dsh-acp-app/locale/ru.json +6 -0
  42. package/node_modules/@deepseek-ai/dsh-acp-app/locale/zh.json +6 -0
  43. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +5 -3
  44. package/node_modules/@deepseek-ai/dsh-action-cards/README.i18n.yaml +67 -0
  45. package/node_modules/@deepseek-ai/dsh-action-cards/README.md +137 -0
  46. package/node_modules/@deepseek-ai/dsh-action-cards/README.zh.md +137 -0
  47. package/node_modules/@deepseek-ai/dsh-action-cards/lib/index.js +625 -0
  48. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +869 -0
  49. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.remote-client.js +137 -0
  50. package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/index.js +398 -0
  51. package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/projection.js +122 -0
  52. package/node_modules/@deepseek-ai/dsh-action-cards/lib/types/types.js +2 -0
  53. package/node_modules/@deepseek-ai/dsh-action-cards/locale/de.json +6 -0
  54. package/node_modules/@deepseek-ai/dsh-action-cards/locale/en.json +6 -0
  55. package/node_modules/@deepseek-ai/dsh-action-cards/locale/es.json +6 -0
  56. package/node_modules/@deepseek-ai/dsh-action-cards/locale/fr.json +6 -0
  57. package/node_modules/@deepseek-ai/dsh-action-cards/locale/ja.json +6 -0
  58. package/node_modules/@deepseek-ai/dsh-action-cards/locale/pt.json +6 -0
  59. package/node_modules/@deepseek-ai/dsh-action-cards/locale/ru.json +6 -0
  60. package/node_modules/@deepseek-ai/dsh-action-cards/locale/zh.json +6 -0
  61. package/node_modules/@deepseek-ai/dsh-action-cards/package.json +73 -0
  62. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +39 -21
  63. package/node_modules/@deepseek-ai/dsh-agent/README.md +42 -11
  64. package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +41 -10
  65. package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +220 -91
  66. package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +15 -1
  67. package/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +102 -58
  68. package/node_modules/@deepseek-ai/dsh-agent/lib/types/projection.js +52 -1
  69. package/node_modules/@deepseek-ai/dsh-agent/locale/de.json +6 -0
  70. package/node_modules/@deepseek-ai/dsh-agent/locale/es.json +6 -0
  71. package/node_modules/@deepseek-ai/dsh-agent/locale/fr.json +6 -0
  72. package/node_modules/@deepseek-ai/dsh-agent/locale/ja.json +6 -0
  73. package/node_modules/@deepseek-ai/dsh-agent/locale/pt.json +6 -0
  74. package/node_modules/@deepseek-ai/dsh-agent/locale/ru.json +6 -0
  75. package/node_modules/@deepseek-ai/dsh-agent/package.json +22 -18
  76. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +4 -4
  77. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +2 -2
  78. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +2 -2
  79. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/de.json +6 -0
  80. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/es.json +6 -0
  81. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/fr.json +6 -0
  82. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/ja.json +6 -0
  83. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/pt.json +6 -0
  84. package/node_modules/@deepseek-ai/dsh-agent-default-model/locale/ru.json +6 -0
  85. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  86. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.i18n.yaml +16 -16
  87. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.md +13 -10
  88. package/node_modules/@deepseek-ai/dsh-agent-instructions/README.zh.md +13 -10
  89. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +93 -19
  90. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/de.json +6 -0
  91. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/es.json +6 -0
  92. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/fr.json +6 -0
  93. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/ja.json +6 -0
  94. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/pt.json +6 -0
  95. package/node_modules/@deepseek-ai/dsh-agent-instructions/locale/ru.json +6 -0
  96. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +24 -24
  97. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +18 -18
  98. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +16 -16
  99. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +16 -16
  100. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +258 -505
  101. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/de.json +6 -0
  102. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/es.json +6 -0
  103. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/fr.json +6 -0
  104. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/ja.json +6 -0
  105. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/pt.json +6 -0
  106. package/node_modules/@deepseek-ai/dsh-agent-loop/locale/ru.json +6 -0
  107. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +24 -22
  108. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/de.json +6 -0
  109. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/es.json +6 -0
  110. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/fr.json +6 -0
  111. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/ja.json +6 -0
  112. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/pt.json +6 -0
  113. package/node_modules/@deepseek-ai/dsh-agent-preset/locale/ru.json +6 -0
  114. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
  115. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +22 -7
  116. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +2 -2
  117. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +2 -2
  118. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/de.json +6 -0
  119. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/en.json +1 -1
  120. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/es.json +6 -0
  121. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/fr.json +6 -0
  122. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/ja.json +6 -0
  123. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/pt.json +6 -0
  124. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/locale/ru.json +6 -0
  125. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/de.json +6 -0
  126. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/en.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/es.json +6 -0
  128. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/fr.json +6 -0
  129. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/ja.json +6 -0
  130. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/pt.json +6 -0
  131. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/locale/ru.json +6 -0
  132. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.i18n.yaml +2 -2
  133. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +1 -1
  134. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +1 -1
  135. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +22 -6
  136. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +19 -8
  137. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +3 -3
  138. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +18 -5
  139. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/de.json +6 -0
  140. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/es.json +6 -0
  141. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/fr.json +6 -0
  142. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/ja.json +6 -0
  143. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/pt.json +6 -0
  144. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/locale/ru.json +6 -0
  145. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +31 -26
  146. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +18 -18
  147. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +10 -8
  148. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +10 -8
  149. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/lib/index.js +13 -28
  150. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/de.json +6 -0
  151. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/es.json +6 -0
  152. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/fr.json +6 -0
  153. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/ja.json +6 -0
  154. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/pt.json +6 -0
  155. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/locale/ru.json +6 -0
  156. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -9
  157. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  158. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/de.json +6 -0
  159. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/es.json +6 -0
  160. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/fr.json +6 -0
  161. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/ja.json +6 -0
  162. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/pt.json +6 -0
  163. package/node_modules/@deepseek-ai/dsh-api-account-controller/locale/ru.json +6 -0
  164. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
  165. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +10 -10
  166. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +4 -4
  167. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +4 -3
  168. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +4 -3
  169. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +53 -32
  170. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/access.js +32 -23
  171. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +6 -1
  172. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-server.js +28 -14
  173. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/de.json +6 -0
  174. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/es.json +6 -0
  175. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/fr.json +6 -0
  176. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/ja.json +6 -0
  177. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/pt.json +6 -0
  178. package/node_modules/@deepseek-ai/dsh-api-gateway/locale/ru.json +6 -0
  179. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
  180. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/de.json +6 -0
  181. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/es.json +6 -0
  182. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/fr.json +6 -0
  183. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/ja.json +6 -0
  184. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/pt.json +6 -0
  185. package/node_modules/@deepseek-ai/dsh-api-job-controller/locale/ru.json +6 -0
  186. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +9 -9
  187. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.i18n.yaml +4 -4
  188. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.md +4 -3
  189. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.zh.md +4 -3
  190. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/client.js +86 -3
  191. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/index.js +5 -6
  192. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/typert.host.js +3 -3
  193. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/typert.remote-client.js +1 -1
  194. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/types/client/index.js +5 -2
  195. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/types/client/mount.js +8 -0
  196. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/types/client/when-allowed.js +74 -0
  197. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/types/index.js +6 -7
  198. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/de.json +6 -0
  199. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/en.json +6 -0
  200. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/es.json +6 -0
  201. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/fr.json +6 -0
  202. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/ja.json +6 -0
  203. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/pt.json +6 -0
  204. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/ru.json +6 -0
  205. package/node_modules/@deepseek-ai/dsh-api-remote-access/locale/zh.json +6 -0
  206. package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -7
  207. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +1 -1
  209. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +1 -1
  210. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1873 -4059
  211. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
  212. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
  213. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/de.json +6 -0
  214. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/es.json +6 -0
  215. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/fr.json +6 -0
  216. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/ja.json +6 -0
  217. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/pt.json +6 -0
  218. package/node_modules/@deepseek-ai/dsh-api-remotes/locale/ru.json +6 -0
  219. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +43 -43
  220. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +6 -6
  221. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +9 -5
  222. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +9 -5
  223. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +3 -3
  224. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +166 -308
  225. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +457 -268
  226. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +390 -238
  227. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +33 -149
  228. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +2 -1
  229. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +1 -2
  230. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +38 -36
  231. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +45 -44
  232. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +29 -18
  233. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/media-references.js +24 -16
  234. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.js +1 -0
  235. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/de.json +6 -0
  236. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/es.json +6 -0
  237. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/fr.json +6 -0
  238. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/ja.json +6 -0
  239. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/pt.json +6 -0
  240. package/node_modules/@deepseek-ai/dsh-api-session-controller/locale/ru.json +6 -0
  241. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -72
  242. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/de.json +6 -0
  243. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/es.json +6 -0
  244. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/fr.json +6 -0
  245. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/ja.json +6 -0
  246. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/pt.json +6 -0
  247. package/node_modules/@deepseek-ai/dsh-api-settings-controller/locale/ru.json +6 -0
  248. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  249. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +9 -5
  250. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/de.json +6 -0
  251. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/es.json +6 -0
  252. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/fr.json +6 -0
  253. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/ja.json +6 -0
  254. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/pt.json +6 -0
  255. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/locale/ru.json +6 -0
  256. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +19 -19
  257. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/de.json +6 -0
  258. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/es.json +6 -0
  259. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/fr.json +6 -0
  260. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/ja.json +6 -0
  261. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/pt.json +6 -0
  262. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/locale/ru.json +6 -0
  263. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -18
  264. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/de.json +6 -0
  265. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/es.json +6 -0
  266. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/fr.json +6 -0
  267. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/ja.json +6 -0
  268. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/pt.json +6 -0
  269. package/node_modules/@deepseek-ai/dsh-api-workspace-files/locale/ru.json +6 -0
  270. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -12
  271. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +6 -6
  272. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +3 -3
  273. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +3 -3
  274. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +14 -100
  275. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +5 -5
  276. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -8
  277. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  278. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +2 -2
  279. package/node_modules/@deepseek-ai/dsh-attachment/README.md +1 -1
  280. package/node_modules/@deepseek-ai/dsh-attachment/README.zh.md +1 -1
  281. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +31 -16
  282. package/node_modules/@deepseek-ai/dsh-attachment/lib/types/index.js +36 -17
  283. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  284. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +4 -4
  285. package/node_modules/@deepseek-ai/dsh-attachment-local/README.md +3 -3
  286. package/node_modules/@deepseek-ai/dsh-attachment-local/README.zh.md +3 -3
  287. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +9 -5
  288. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/de.json +6 -0
  289. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/es.json +6 -0
  290. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/fr.json +6 -0
  291. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/ja.json +6 -0
  292. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/pt.json +6 -0
  293. package/node_modules/@deepseek-ai/dsh-attachment-local/locale/ru.json +6 -0
  294. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  295. package/node_modules/@deepseek-ai/dsh-authorization/locale/de.json +6 -0
  296. package/node_modules/@deepseek-ai/dsh-authorization/locale/es.json +6 -0
  297. package/node_modules/@deepseek-ai/dsh-authorization/locale/fr.json +6 -0
  298. package/node_modules/@deepseek-ai/dsh-authorization/locale/ja.json +6 -0
  299. package/node_modules/@deepseek-ai/dsh-authorization/locale/pt.json +6 -0
  300. package/node_modules/@deepseek-ai/dsh-authorization/locale/ru.json +6 -0
  301. package/node_modules/@deepseek-ai/dsh-authorization/package.json +5 -5
  302. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  303. package/node_modules/@deepseek-ai/dsh-base/README.md +1 -1
  304. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +1 -1
  305. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +10 -8
  306. package/node_modules/@deepseek-ai/dsh-base/package.json +98 -96
  307. package/node_modules/@deepseek-ai/dsh-bash-local/locale/de.json +6 -0
  308. package/node_modules/@deepseek-ai/dsh-bash-local/locale/en.json +6 -0
  309. package/node_modules/@deepseek-ai/dsh-bash-local/locale/es.json +6 -0
  310. package/node_modules/@deepseek-ai/dsh-bash-local/locale/fr.json +6 -0
  311. package/node_modules/@deepseek-ai/dsh-bash-local/locale/ja.json +6 -0
  312. package/node_modules/@deepseek-ai/dsh-bash-local/locale/pt.json +6 -0
  313. package/node_modules/@deepseek-ai/dsh-bash-local/locale/ru.json +6 -0
  314. package/node_modules/@deepseek-ai/dsh-bash-local/locale/zh.json +6 -0
  315. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +10 -8
  316. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/de.json +6 -0
  317. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/es.json +6 -0
  318. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/fr.json +6 -0
  319. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/ja.json +6 -0
  320. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/pt.json +6 -0
  321. package/node_modules/@deepseek-ai/dsh-bash-sandbox/locale/ru.json +6 -0
  322. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  323. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  324. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  325. package/node_modules/@deepseek-ai/dsh-client-connection/locale/de.json +6 -0
  326. package/node_modules/@deepseek-ai/dsh-client-connection/locale/es.json +6 -0
  327. package/node_modules/@deepseek-ai/dsh-client-connection/locale/fr.json +6 -0
  328. package/node_modules/@deepseek-ai/dsh-client-connection/locale/ja.json +6 -0
  329. package/node_modules/@deepseek-ai/dsh-client-connection/locale/pt.json +6 -0
  330. package/node_modules/@deepseek-ai/dsh-client-connection/locale/ru.json +6 -0
  331. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
  332. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.i18n.yaml +6 -6
  333. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.md +3 -3
  334. package/node_modules/@deepseek-ai/dsh-client-file-upload/README.zh.md +3 -3
  335. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/client.js +69 -20
  336. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/index.js +104 -25
  337. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +28 -9
  338. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.remote-client.js +1 -1
  339. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/client/runtime.js +72 -23
  340. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/http-route.js +12 -7
  341. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/index.js +87 -18
  342. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/de.json +6 -0
  343. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/es.json +6 -0
  344. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/fr.json +6 -0
  345. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/ja.json +6 -0
  346. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/pt.json +6 -0
  347. package/node_modules/@deepseek-ai/dsh-client-file-upload/locale/ru.json +6 -0
  348. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +10 -10
  349. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/de.json +6 -0
  350. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/es.json +6 -0
  351. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/fr.json +6 -0
  352. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/ja.json +6 -0
  353. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/pt.json +6 -0
  354. package/node_modules/@deepseek-ai/dsh-client-hmr/locale/ru.json +6 -0
  355. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +3 -3
  356. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +12 -12
  357. package/node_modules/@deepseek-ai/dsh-client-locale/README.md +11 -9
  358. package/node_modules/@deepseek-ai/dsh-client-locale/README.zh.md +11 -9
  359. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +321 -9
  360. package/node_modules/@deepseek-ai/dsh-client-locale/lib/index.js +1 -1
  361. package/node_modules/@deepseek-ai/dsh-client-locale/locale/de.json +6 -0
  362. package/node_modules/@deepseek-ai/dsh-client-locale/locale/es.json +6 -0
  363. package/node_modules/@deepseek-ai/dsh-client-locale/locale/fr.json +6 -0
  364. package/node_modules/@deepseek-ai/dsh-client-locale/locale/ja.json +6 -0
  365. package/node_modules/@deepseek-ai/dsh-client-locale/locale/pt.json +6 -0
  366. package/node_modules/@deepseek-ai/dsh-client-locale/locale/ru.json +6 -0
  367. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +7 -7
  368. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +11 -8
  369. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +9 -1
  370. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +9 -1
  371. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +6 -2
  372. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +151 -56
  373. package/node_modules/@deepseek-ai/dsh-client-modules/locale/de.json +6 -0
  374. package/node_modules/@deepseek-ai/dsh-client-modules/locale/es.json +6 -0
  375. package/node_modules/@deepseek-ai/dsh-client-modules/locale/fr.json +6 -0
  376. package/node_modules/@deepseek-ai/dsh-client-modules/locale/ja.json +6 -0
  377. package/node_modules/@deepseek-ai/dsh-client-modules/locale/pt.json +6 -0
  378. package/node_modules/@deepseek-ai/dsh-client-modules/locale/ru.json +6 -0
  379. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +3 -3
  380. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +5 -2
  381. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +8 -0
  382. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +8 -0
  383. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +67 -3
  384. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +50 -2
  385. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/de.json +6 -0
  386. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/es.json +6 -0
  387. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/fr.json +6 -0
  388. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/ja.json +6 -0
  389. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/pt.json +6 -0
  390. package/node_modules/@deepseek-ai/dsh-client-product-analytics/locale/ru.json +6 -0
  391. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +12 -12
  392. package/node_modules/@deepseek-ai/dsh-client-resources/locale/de.json +6 -0
  393. package/node_modules/@deepseek-ai/dsh-client-resources/locale/es.json +6 -0
  394. package/node_modules/@deepseek-ai/dsh-client-resources/locale/fr.json +6 -0
  395. package/node_modules/@deepseek-ai/dsh-client-resources/locale/ja.json +6 -0
  396. package/node_modules/@deepseek-ai/dsh-client-resources/locale/pt.json +6 -0
  397. package/node_modules/@deepseek-ai/dsh-client-resources/locale/ru.json +6 -0
  398. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +3 -3
  399. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/de.json +6 -0
  400. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/es.json +6 -0
  401. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/fr.json +6 -0
  402. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/ja.json +6 -0
  403. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/pt.json +6 -0
  404. package/node_modules/@deepseek-ai/dsh-client-shortcuts/locale/ru.json +6 -0
  405. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +6 -6
  406. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/README.i18n.yaml +40 -0
  407. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/README.md +89 -0
  408. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/README.zh.md +89 -0
  409. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/lib/client.js +896 -0
  410. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/lib/index.js +6 -0
  411. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/de.json +6 -0
  412. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/en.json +6 -0
  413. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/es.json +6 -0
  414. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/fr.json +6 -0
  415. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/ja.json +6 -0
  416. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/pt.json +6 -0
  417. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/ru.json +6 -0
  418. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/locale/zh.json +6 -0
  419. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +68 -0
  420. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +4 -4
  421. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +6 -2
  422. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +6 -2
  423. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +649 -24
  424. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/de.json +6 -0
  425. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/es.json +6 -0
  426. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/fr.json +6 -0
  427. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/ja.json +6 -0
  428. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/pt.json +6 -0
  429. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/locale/ru.json +6 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +15 -14
  431. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +4 -4
  432. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +3 -1
  433. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +3 -1
  434. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +176 -56
  435. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/de.json +6 -0
  436. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/es.json +6 -0
  437. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/fr.json +6 -0
  438. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/ja.json +6 -0
  439. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/pt.json +6 -0
  440. package/node_modules/@deepseek-ai/dsh-client-ui-approval/locale/ru.json +6 -0
  441. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +11 -11
  442. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +8 -8
  443. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +8 -2
  444. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +8 -2
  445. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +1497 -39
  446. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/de.json +6 -0
  447. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/es.json +6 -0
  448. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/fr.json +6 -0
  449. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/ja.json +6 -0
  450. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/pt.json +6 -0
  451. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/locale/ru.json +6 -0
  452. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -10
  453. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/de.json +6 -0
  454. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/es.json +6 -0
  455. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/fr.json +6 -0
  456. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/ja.json +6 -0
  457. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/pt.json +6 -0
  458. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/locale/ru.json +6 -0
  459. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +3 -3
  460. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +14 -14
  461. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +16 -8
  462. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +16 -8
  463. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/assets/running-whale@2x-06738fa29b2f.png +0 -0
  464. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +2180 -217
  465. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +6 -0
  466. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/de.json +6 -0
  467. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/es.json +6 -0
  468. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/fr.json +6 -0
  469. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/ja.json +6 -0
  470. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/pt.json +6 -0
  471. package/node_modules/@deepseek-ai/dsh-client-ui-chat/locale/ru.json +6 -0
  472. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +41 -35
  473. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  474. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  475. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  476. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +200 -5
  477. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/de.json +6 -0
  478. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/es.json +6 -0
  479. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/fr.json +6 -0
  480. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/ja.json +6 -0
  481. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/pt.json +6 -0
  482. package/node_modules/@deepseek-ai/dsh-client-ui-commands/locale/ru.json +6 -0
  483. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +12 -12
  484. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  485. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +18 -2
  486. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +18 -2
  487. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +3211 -192
  488. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/de.json +6 -0
  489. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/es.json +6 -0
  490. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/fr.json +6 -0
  491. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/ja.json +6 -0
  492. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/pt.json +6 -0
  493. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/locale/ru.json +6 -0
  494. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +31 -30
  495. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +334 -4
  496. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/de.json +6 -0
  497. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/es.json +6 -0
  498. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/fr.json +6 -0
  499. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/ja.json +6 -0
  500. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/pt.json +6 -0
  501. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/locale/ru.json +6 -0
  502. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +11 -11
  503. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.i18n.yaml +40 -0
  504. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.md +88 -0
  505. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/README.zh.md +88 -0
  506. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/lib/client.js +896 -0
  507. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/lib/index.js +6 -0
  508. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/de.json +6 -0
  509. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/en.json +6 -0
  510. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/es.json +6 -0
  511. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/fr.json +6 -0
  512. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ja.json +6 -0
  513. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/pt.json +6 -0
  514. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/ru.json +6 -0
  515. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/locale/zh.json +6 -0
  516. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +60 -0
  517. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/lib/client.js +19 -1
  518. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/de.json +6 -0
  519. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/en.json +6 -0
  520. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/es.json +6 -0
  521. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/fr.json +6 -0
  522. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ja.json +6 -0
  523. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/pt.json +6 -0
  524. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ru.json +6 -0
  525. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/zh.json +6 -0
  526. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/package.json +7 -7
  527. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +18 -18
  528. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +7 -7
  529. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +7 -7
  530. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +400 -16
  531. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +4 -13
  532. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/de.json +6 -0
  533. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/es.json +6 -0
  534. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/fr.json +6 -0
  535. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/ja.json +6 -0
  536. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/pt.json +6 -0
  537. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/locale/ru.json +6 -0
  538. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +25 -25
  539. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.i18n.yaml +2 -2
  540. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.md +2 -0
  541. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/README.zh.md +2 -0
  542. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +123 -30
  543. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/de.json +6 -0
  544. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/es.json +6 -0
  545. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/fr.json +6 -0
  546. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/ja.json +6 -0
  547. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/pt.json +6 -0
  548. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/locale/ru.json +6 -0
  549. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +5 -5
  550. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +2 -2
  551. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.md +2 -0
  552. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.zh.md +2 -0
  553. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/lib/client.js +12 -7
  554. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/de.json +6 -0
  555. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/es.json +6 -0
  556. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/fr.json +6 -0
  557. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/ja.json +6 -0
  558. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/pt.json +6 -0
  559. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/locale/ru.json +6 -0
  560. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +4 -3
  561. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.i18n.yaml +34 -0
  562. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.md +83 -0
  563. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/README.zh.md +83 -0
  564. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/lib/client.js +221 -0
  565. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/lib/index.js +5 -0
  566. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/de.json +6 -0
  567. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/en.json +6 -0
  568. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/es.json +6 -0
  569. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/fr.json +6 -0
  570. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/ja.json +6 -0
  571. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/pt.json +6 -0
  572. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/ru.json +6 -0
  573. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/locale/zh.json +6 -0
  574. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +64 -0
  575. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/README.i18n.yaml +34 -0
  576. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/README.md +67 -0
  577. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/README.zh.md +67 -0
  578. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/lib/client.js +1724 -0
  579. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/lib/index.js +6 -0
  580. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/de.json +6 -0
  581. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/en.json +6 -0
  582. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/es.json +6 -0
  583. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/fr.json +6 -0
  584. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/ja.json +6 -0
  585. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/pt.json +6 -0
  586. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/ru.json +6 -0
  587. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/locale/zh.json +6 -0
  588. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +55 -0
  589. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +98 -2
  590. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/de.json +6 -0
  591. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/es.json +6 -0
  592. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/fr.json +6 -0
  593. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/ja.json +6 -0
  594. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/pt.json +6 -0
  595. package/node_modules/@deepseek-ai/dsh-client-ui-goal/locale/ru.json +6 -0
  596. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +12 -12
  597. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +80 -2
  598. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/de.json +6 -0
  599. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/es.json +6 -0
  600. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/fr.json +6 -0
  601. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/ja.json +6 -0
  602. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/pt.json +6 -0
  603. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/locale/ru.json +6 -0
  604. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +9 -9
  605. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +266 -2
  606. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/de.json +6 -0
  607. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/es.json +6 -0
  608. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/fr.json +6 -0
  609. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/ja.json +6 -0
  610. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/pt.json +6 -0
  611. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/locale/ru.json +6 -0
  612. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -8
  613. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +19 -1
  614. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/de.json +6 -0
  615. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/es.json +6 -0
  616. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/fr.json +6 -0
  617. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/ja.json +6 -0
  618. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/pt.json +6 -0
  619. package/node_modules/@deepseek-ai/dsh-client-ui-layout/locale/ru.json +6 -0
  620. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -7
  621. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +2 -2
  622. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.md +2 -0
  623. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.zh.md +2 -0
  624. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +156 -8
  625. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/de.json +6 -0
  626. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/es.json +6 -0
  627. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/fr.json +6 -0
  628. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/ja.json +6 -0
  629. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/pt.json +6 -0
  630. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/locale/ru.json +6 -0
  631. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +13 -13
  632. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +4 -4
  633. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -2
  634. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -2
  635. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +168 -4
  636. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/de.json +6 -0
  637. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/es.json +6 -0
  638. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/fr.json +6 -0
  639. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/ja.json +6 -0
  640. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/pt.json +6 -0
  641. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/locale/ru.json +6 -0
  642. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +14 -13
  643. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +122 -2
  644. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/de.json +6 -0
  645. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/es.json +6 -0
  646. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/fr.json +6 -0
  647. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/ja.json +6 -0
  648. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/pt.json +6 -0
  649. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/ru.json +6 -0
  650. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +16 -16
  651. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +2 -2
  652. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +2 -0
  653. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +2 -0
  654. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +229 -6
  655. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/de.json +6 -0
  656. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/es.json +6 -0
  657. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/fr.json +6 -0
  658. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/ja.json +6 -0
  659. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/pt.json +6 -0
  660. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/locale/ru.json +6 -0
  661. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +12 -12
  662. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +129 -3
  663. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/de.json +6 -0
  664. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/es.json +6 -0
  665. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/fr.json +6 -0
  666. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/ja.json +6 -0
  667. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/pt.json +6 -0
  668. package/node_modules/@deepseek-ai/dsh-client-ui-plan/locale/ru.json +6 -0
  669. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +17 -17
  670. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +17 -14
  671. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +24 -11
  672. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +24 -11
  673. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +3746 -522
  674. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/de.json +6 -0
  675. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/es.json +6 -0
  676. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/fr.json +6 -0
  677. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/ja.json +6 -0
  678. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/pt.json +6 -0
  679. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/locale/ru.json +6 -0
  680. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +15 -13
  681. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +10 -10
  682. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +12 -7
  683. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +12 -7
  684. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2163 -1433
  685. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/de.json +6 -0
  686. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/en.json +6 -0
  687. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/es.json +6 -0
  688. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/fr.json +6 -0
  689. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/ja.json +6 -0
  690. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/pt.json +6 -0
  691. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/ru.json +6 -0
  692. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/locale/zh.json +6 -0
  693. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -10
  694. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/README.i18n.yaml +37 -0
  695. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/README.md +82 -0
  696. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/README.zh.md +81 -0
  697. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/lib/client.js +775 -0
  698. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/lib/index.js +6 -0
  699. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/de.json +6 -0
  700. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/en.json +6 -0
  701. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/es.json +6 -0
  702. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/fr.json +6 -0
  703. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/ja.json +6 -0
  704. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/pt.json +6 -0
  705. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/ru.json +6 -0
  706. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/locale/zh.json +6 -0
  707. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +65 -0
  708. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +115 -1
  709. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/de.json +6 -0
  710. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/es.json +6 -0
  711. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/fr.json +6 -0
  712. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/ja.json +6 -0
  713. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/pt.json +6 -0
  714. package/node_modules/@deepseek-ai/dsh-client-ui-reference/locale/ru.json +6 -0
  715. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -13
  716. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/de.json +6 -0
  717. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/es.json +6 -0
  718. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/fr.json +6 -0
  719. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/ja.json +6 -0
  720. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/pt.json +6 -0
  721. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/locale/ru.json +6 -0
  722. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +1 -1
  723. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +6 -6
  724. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +6 -4
  725. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +11 -9
  726. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +2081 -399
  727. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/de.json +6 -0
  728. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/es.json +6 -0
  729. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/fr.json +6 -0
  730. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/ja.json +6 -0
  731. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/pt.json +6 -0
  732. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/locale/ru.json +6 -0
  733. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +18 -17
  734. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/lib/client.js +38 -2
  735. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/de.json +6 -0
  736. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/es.json +6 -0
  737. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/fr.json +6 -0
  738. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/ja.json +6 -0
  739. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/pt.json +6 -0
  740. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/locale/ru.json +6 -0
  741. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +4 -4
  742. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  743. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +1 -1
  744. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +1 -1
  745. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +16 -0
  746. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/de.json +6 -0
  747. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/es.json +6 -0
  748. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/fr.json +6 -0
  749. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/ja.json +6 -0
  750. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/pt.json +6 -0
  751. package/node_modules/@deepseek-ai/dsh-client-ui-session/locale/ru.json +6 -0
  752. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +7 -7
  753. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/de.json +6 -0
  754. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/es.json +6 -0
  755. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/fr.json +6 -0
  756. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/ja.json +6 -0
  757. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/pt.json +6 -0
  758. package/node_modules/@deepseek-ai/dsh-client-ui-settings/locale/ru.json +6 -0
  759. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +4 -4
  760. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +4 -4
  761. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +3 -1
  762. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +3 -1
  763. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-back-04427ce3e26c.svg +3 -0
  764. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-code-130f4f9f819c.svg +7 -0
  765. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-compact-4d29ad212f3b.svg +6 -0
  766. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-detailed-0e44397e280d.svg +7 -0
  767. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-office-8ca45c77307a.svg +8 -0
  768. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-recharge-9a85d64a2d3b.webp +0 -0
  769. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-recharge-dark-9878e7197bac.webp +0 -0
  770. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-recharge-zh-aec6cd5fc265.webp +0 -0
  771. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-recharge-zh-dark-5289932ad3f8.webp +0 -0
  772. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-standard-13b8aa0232ab.svg +8 -0
  773. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-welcome-8bee260fc9a4.webp +0 -0
  774. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-welcome-dark-1bdaf68d0d0a.webp +0 -0
  775. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-welcome-zh-9a237747664d.webp +0 -0
  776. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/assets/onboarding-welcome-zh-dark-6c914dc6013e.webp +0 -0
  777. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +721 -75
  778. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/de.json +6 -0
  779. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/es.json +6 -0
  780. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/fr.json +6 -0
  781. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/ja.json +6 -0
  782. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/pt.json +6 -0
  783. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/locale/ru.json +6 -0
  784. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +16 -13
  785. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +98 -2
  786. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/de.json +6 -0
  787. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/es.json +6 -0
  788. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/fr.json +6 -0
  789. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/ja.json +6 -0
  790. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/pt.json +6 -0
  791. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/locale/ru.json +6 -0
  792. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +6 -6
  793. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +12 -12
  794. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +13 -6
  795. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +13 -6
  796. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +340 -43
  797. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/de.json +6 -0
  798. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/es.json +6 -0
  799. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/fr.json +6 -0
  800. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/ja.json +6 -0
  801. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/pt.json +6 -0
  802. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/locale/ru.json +6 -0
  803. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +14 -12
  804. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +4 -4
  805. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +5 -1
  806. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +5 -1
  807. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1089 -127
  808. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/de.json +6 -0
  809. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/es.json +6 -0
  810. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/fr.json +6 -0
  811. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/ja.json +6 -0
  812. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/pt.json +6 -0
  813. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/locale/ru.json +6 -0
  814. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -8
  815. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  816. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +2 -0
  817. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +2 -0
  818. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +248 -2
  819. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/de.json +6 -0
  820. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/es.json +6 -0
  821. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/fr.json +6 -0
  822. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/ja.json +6 -0
  823. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/pt.json +6 -0
  824. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/locale/ru.json +6 -0
  825. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +9 -9
  826. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +56 -2
  827. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/de.json +6 -0
  828. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/es.json +6 -0
  829. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/fr.json +6 -0
  830. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/ja.json +6 -0
  831. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/pt.json +6 -0
  832. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/locale/ru.json +6 -0
  833. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +5 -5
  834. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/lib/client.js +49 -1
  835. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/de.json +6 -0
  836. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/es.json +6 -0
  837. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/fr.json +6 -0
  838. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/ja.json +6 -0
  839. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/pt.json +6 -0
  840. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/locale/ru.json +6 -0
  841. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +6 -6
  842. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +109 -1
  843. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/de.json +6 -0
  844. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/es.json +6 -0
  845. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/fr.json +6 -0
  846. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/ja.json +6 -0
  847. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/pt.json +6 -0
  848. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/locale/ru.json +6 -0
  849. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +6 -6
  850. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +5 -6
  851. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +236 -2
  852. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/de.json +6 -0
  853. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/es.json +6 -0
  854. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/fr.json +6 -0
  855. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/ja.json +6 -0
  856. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/pt.json +6 -0
  857. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/locale/ru.json +6 -0
  858. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +6 -6
  859. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +188 -2
  860. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/de.json +6 -0
  861. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/es.json +6 -0
  862. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/fr.json +6 -0
  863. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ja.json +6 -0
  864. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/pt.json +6 -0
  865. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/locale/ru.json +6 -0
  866. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +6 -6
  867. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/lib/client.js +362 -2
  868. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/de.json +6 -0
  869. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/es.json +6 -0
  870. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/fr.json +6 -0
  871. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/ja.json +6 -0
  872. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/pt.json +6 -0
  873. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/locale/ru.json +6 -0
  874. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +7 -7
  875. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +13 -10
  876. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +15 -3
  877. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +15 -3
  878. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +248 -26
  879. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/de.json +6 -0
  880. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/es.json +6 -0
  881. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/fr.json +6 -0
  882. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/ja.json +6 -0
  883. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/pt.json +6 -0
  884. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/locale/ru.json +6 -0
  885. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +9 -9
  886. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +182 -2
  887. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/de.json +6 -0
  888. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/es.json +6 -0
  889. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/fr.json +6 -0
  890. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/ja.json +6 -0
  891. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/pt.json +6 -0
  892. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/locale/ru.json +6 -0
  893. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +8 -8
  894. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
  895. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +5 -3
  896. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +5 -3
  897. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +2 -1
  898. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +953 -250
  899. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/de.json +6 -0
  900. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/es.json +6 -0
  901. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/fr.json +6 -0
  902. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/ja.json +6 -0
  903. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/pt.json +6 -0
  904. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/locale/ru.json +6 -0
  905. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +19 -17
  906. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +128 -2
  907. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/de.json +6 -0
  908. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/es.json +6 -0
  909. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/fr.json +6 -0
  910. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/ja.json +6 -0
  911. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/pt.json +6 -0
  912. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/locale/ru.json +6 -0
  913. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -11
  914. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +4 -4
  915. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +4 -2
  916. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +4 -2
  917. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +400 -23
  918. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/de.json +6 -0
  919. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/es.json +6 -0
  920. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/fr.json +6 -0
  921. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/ja.json +6 -0
  922. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/pt.json +6 -0
  923. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/locale/ru.json +6 -0
  924. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +12 -12
  925. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +193 -1
  926. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/de.json +6 -0
  927. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/es.json +6 -0
  928. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/fr.json +6 -0
  929. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/ja.json +6 -0
  930. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/pt.json +6 -0
  931. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/locale/ru.json +6 -0
  932. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +12 -12
  933. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +74 -2
  934. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/de.json +6 -0
  935. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/es.json +6 -0
  936. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/fr.json +6 -0
  937. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/ja.json +6 -0
  938. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/pt.json +6 -0
  939. package/node_modules/@deepseek-ai/dsh-client-ui-skill/locale/ru.json +6 -0
  940. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +14 -14
  941. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +282 -7
  942. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/de.json +6 -0
  943. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/es.json +6 -0
  944. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/fr.json +6 -0
  945. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/ja.json +6 -0
  946. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/pt.json +6 -0
  947. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/locale/ru.json +6 -0
  948. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +15 -15
  949. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +8 -8
  950. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +8 -1
  951. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +8 -1
  952. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +297 -8
  953. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/de.json +6 -0
  954. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/es.json +6 -0
  955. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/fr.json +6 -0
  956. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/ja.json +6 -0
  957. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/pt.json +6 -0
  958. package/node_modules/@deepseek-ai/dsh-client-ui-theme/locale/ru.json +6 -0
  959. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +10 -10
  960. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +6 -6
  961. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/de.json +6 -0
  962. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/es.json +6 -0
  963. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/fr.json +6 -0
  964. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/ja.json +6 -0
  965. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/pt.json +6 -0
  966. package/node_modules/@deepseek-ai/dsh-client-ui-tool/locale/ru.json +6 -0
  967. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +27 -25
  968. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  969. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +2 -0
  970. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +2 -0
  971. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +1194 -49
  972. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/de.json +6 -0
  973. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/es.json +6 -0
  974. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/fr.json +6 -0
  975. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/ja.json +6 -0
  976. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/pt.json +6 -0
  977. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/locale/ru.json +6 -0
  978. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +14 -14
  979. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +6 -6
  980. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +6 -4
  981. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +6 -4
  982. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +539 -196
  983. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/de.json +6 -0
  984. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/es.json +6 -0
  985. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/fr.json +6 -0
  986. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/ja.json +6 -0
  987. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/pt.json +6 -0
  988. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/locale/ru.json +6 -0
  989. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -18
  990. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +134 -2
  991. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/de.json +6 -0
  992. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/es.json +6 -0
  993. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/fr.json +6 -0
  994. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/ja.json +6 -0
  995. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/pt.json +6 -0
  996. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/locale/ru.json +6 -0
  997. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +11 -11
  998. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +20 -20
  999. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +27 -12
  1000. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +27 -12
  1001. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1015 -267
  1002. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/de.json +6 -0
  1003. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/es.json +6 -0
  1004. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/fr.json +6 -0
  1005. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/ja.json +6 -0
  1006. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/pt.json +6 -0
  1007. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/locale/ru.json +6 -0
  1008. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +23 -23
  1009. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  1010. package/node_modules/@deepseek-ai/dsh-command-compact/locale/de.json +6 -0
  1011. package/node_modules/@deepseek-ai/dsh-command-compact/locale/es.json +6 -0
  1012. package/node_modules/@deepseek-ai/dsh-command-compact/locale/fr.json +6 -0
  1013. package/node_modules/@deepseek-ai/dsh-command-compact/locale/ja.json +6 -0
  1014. package/node_modules/@deepseek-ai/dsh-command-compact/locale/pt.json +6 -0
  1015. package/node_modules/@deepseek-ai/dsh-command-compact/locale/ru.json +6 -0
  1016. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  1017. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/de.json +6 -0
  1018. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/es.json +6 -0
  1019. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/fr.json +6 -0
  1020. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/ja.json +6 -0
  1021. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/pt.json +6 -0
  1022. package/node_modules/@deepseek-ai/dsh-command-feedback/locale/ru.json +6 -0
  1023. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  1024. package/node_modules/@deepseek-ai/dsh-command-goal/locale/de.json +6 -0
  1025. package/node_modules/@deepseek-ai/dsh-command-goal/locale/es.json +6 -0
  1026. package/node_modules/@deepseek-ai/dsh-command-goal/locale/fr.json +6 -0
  1027. package/node_modules/@deepseek-ai/dsh-command-goal/locale/ja.json +6 -0
  1028. package/node_modules/@deepseek-ai/dsh-command-goal/locale/pt.json +6 -0
  1029. package/node_modules/@deepseek-ai/dsh-command-goal/locale/ru.json +6 -0
  1030. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  1031. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +9 -5
  1032. package/node_modules/@deepseek-ai/dsh-commands/locale/de.json +6 -0
  1033. package/node_modules/@deepseek-ai/dsh-commands/locale/es.json +6 -0
  1034. package/node_modules/@deepseek-ai/dsh-commands/locale/fr.json +6 -0
  1035. package/node_modules/@deepseek-ai/dsh-commands/locale/ja.json +6 -0
  1036. package/node_modules/@deepseek-ai/dsh-commands/locale/pt.json +6 -0
  1037. package/node_modules/@deepseek-ai/dsh-commands/locale/ru.json +6 -0
  1038. package/node_modules/@deepseek-ai/dsh-commands/package.json +16 -16
  1039. package/node_modules/@deepseek-ai/dsh-compaction/package.json +9 -9
  1040. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +11 -8
  1041. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +15 -4
  1042. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +15 -4
  1043. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +45 -28
  1044. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/de.json +6 -0
  1045. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/es.json +6 -0
  1046. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/fr.json +6 -0
  1047. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/ja.json +6 -0
  1048. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/pt.json +6 -0
  1049. package/node_modules/@deepseek-ai/dsh-compaction-basic/locale/ru.json +6 -0
  1050. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +21 -21
  1051. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/de.json +6 -0
  1052. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/es.json +6 -0
  1053. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/fr.json +6 -0
  1054. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/ja.json +6 -0
  1055. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/pt.json +6 -0
  1056. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/locale/ru.json +6 -0
  1057. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  1058. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/de.json +6 -0
  1059. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/es.json +6 -0
  1060. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/fr.json +6 -0
  1061. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/ja.json +6 -0
  1062. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/pt.json +6 -0
  1063. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/locale/ru.json +6 -0
  1064. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +12 -12
  1065. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +37 -0
  1066. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +90 -0
  1067. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +90 -0
  1068. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +35 -0
  1069. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +10 -0
  1070. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +36 -0
  1071. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +6 -0
  1072. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +6 -0
  1073. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +6 -0
  1074. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +6 -0
  1075. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +6 -0
  1076. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +6 -0
  1077. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +6 -0
  1078. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +6 -0
  1079. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +44 -0
  1080. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +2 -3
  1081. package/node_modules/@deepseek-ai/dsh-config-editor/locale/de.json +6 -0
  1082. package/node_modules/@deepseek-ai/dsh-config-editor/locale/es.json +6 -0
  1083. package/node_modules/@deepseek-ai/dsh-config-editor/locale/fr.json +6 -0
  1084. package/node_modules/@deepseek-ai/dsh-config-editor/locale/ja.json +6 -0
  1085. package/node_modules/@deepseek-ai/dsh-config-editor/locale/pt.json +6 -0
  1086. package/node_modules/@deepseek-ai/dsh-config-editor/locale/ru.json +6 -0
  1087. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
  1088. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +2 -2
  1089. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +2 -1
  1090. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +2 -1
  1091. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +500 -270
  1092. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/de.json +6 -0
  1093. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/es.json +6 -0
  1094. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/fr.json +6 -0
  1095. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/ja.json +6 -0
  1096. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/pt.json +6 -0
  1097. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/locale/ru.json +6 -0
  1098. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +7 -6
  1099. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +1 -1
  1100. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +18 -10
  1101. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/guard.js +1 -1
  1102. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/de.json +6 -0
  1103. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/es.json +6 -0
  1104. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/fr.json +6 -0
  1105. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/ja.json +6 -0
  1106. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/pt.json +6 -0
  1107. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/locale/ru.json +6 -0
  1108. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +19 -18
  1109. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.i18n.yaml +49 -0
  1110. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.md +128 -0
  1111. package/node_modules/@deepseek-ai/dsh-creation-recommendations/README.zh.md +128 -0
  1112. package/node_modules/@deepseek-ai/dsh-creation-recommendations/icon.svg +9 -0
  1113. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/index.js +620 -0
  1114. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/generated-bundle.js +97 -0
  1115. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/index.js +361 -0
  1116. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/skill.js +35 -0
  1117. package/node_modules/@deepseek-ai/dsh-creation-recommendations/lib/types/types.js +2 -0
  1118. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/de.json +6 -0
  1119. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/en.json +6 -0
  1120. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/es.json +6 -0
  1121. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/fr.json +6 -0
  1122. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/ja.json +6 -0
  1123. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/pt.json +6 -0
  1124. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/ru.json +6 -0
  1125. package/node_modules/@deepseek-ai/dsh-creation-recommendations/locale/zh.json +6 -0
  1126. package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +71 -0
  1127. package/node_modules/@deepseek-ai/dsh-creation-recommendations/references/main-page.md +7 -0
  1128. package/node_modules/@deepseek-ai/dsh-creation-recommendations/references/session-tab.md +7 -0
  1129. package/node_modules/@deepseek-ai/dsh-creation-recommendations/references/sidebar-entry.md +7 -0
  1130. package/node_modules/@deepseek-ai/dsh-creation-recommendations/references/sidebar-right.md +9 -0
  1131. package/node_modules/@deepseek-ai/dsh-creation-recommendations/skills/personalized-pages.md +64 -0
  1132. package/node_modules/@deepseek-ai/dsh-credentials/package.json +2 -2
  1133. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/de.json +6 -0
  1134. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/es.json +6 -0
  1135. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/fr.json +6 -0
  1136. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/ja.json +6 -0
  1137. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/pt.json +6 -0
  1138. package/node_modules/@deepseek-ai/dsh-credentials-local/locale/ru.json +6 -0
  1139. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  1140. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +49 -0
  1141. package/node_modules/@deepseek-ai/dsh-cua/README.md +121 -0
  1142. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +121 -0
  1143. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +597 -0
  1144. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +611 -0
  1145. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +1778 -0
  1146. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +1720 -0
  1147. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +285 -0
  1148. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +305 -0
  1149. package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +1 -0
  1150. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +417 -0
  1151. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +302 -0
  1152. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +6 -0
  1153. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +6 -0
  1154. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +6 -0
  1155. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +6 -0
  1156. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +6 -0
  1157. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +6 -0
  1158. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +6 -0
  1159. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +6 -0
  1160. package/node_modules/@deepseek-ai/dsh-cua/package.json +148 -0
  1161. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +46 -0
  1162. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +94 -0
  1163. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +94 -0
  1164. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +10 -0
  1165. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +1 -0
  1166. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +1 -0
  1167. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +33 -0
  1168. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +33 -0
  1169. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +35 -0
  1170. package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +1 -0
  1171. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +7 -0
  1172. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +7 -0
  1173. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +7 -0
  1174. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +7 -0
  1175. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +7 -0
  1176. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +7 -0
  1177. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +7 -0
  1178. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +7 -0
  1179. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +54 -0
  1180. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -9
  1181. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/de.json +6 -0
  1182. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/es.json +6 -0
  1183. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/fr.json +6 -0
  1184. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/ja.json +6 -0
  1185. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/pt.json +6 -0
  1186. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/locale/ru.json +6 -0
  1187. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
  1188. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/de.json +6 -0
  1189. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/es.json +6 -0
  1190. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/fr.json +6 -0
  1191. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/ja.json +6 -0
  1192. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/pt.json +6 -0
  1193. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/locale/ru.json +6 -0
  1194. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  1195. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/README.i18n.yaml +49 -0
  1196. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/README.md +95 -0
  1197. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/README.zh.md +95 -0
  1198. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/lib/index.js +20 -0
  1199. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/de.json +6 -0
  1200. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/en.json +6 -0
  1201. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/es.json +6 -0
  1202. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/fr.json +6 -0
  1203. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/ja.json +6 -0
  1204. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/pt.json +6 -0
  1205. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/ru.json +6 -0
  1206. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/locale/zh.json +6 -0
  1207. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +39 -0
  1208. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  1209. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +4 -4
  1210. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +2 -2
  1211. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +2 -2
  1212. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +12 -14
  1213. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +6 -12
  1214. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/journal.js +6 -4
  1215. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/de.json +6 -0
  1216. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +1 -1
  1217. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/es.json +6 -0
  1218. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/fr.json +6 -0
  1219. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/ja.json +6 -0
  1220. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/pt.json +6 -0
  1221. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/ru.json +6 -0
  1222. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +19 -19
  1223. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
  1224. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +1 -1
  1225. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +1 -1
  1226. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +0 -3
  1227. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +18 -0
  1228. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +18 -0
  1229. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.svg +1 -0
  1230. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/preview.zh.svg +1 -0
  1231. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +7 -0
  1232. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +3 -2
  1233. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +7 -0
  1234. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +7 -0
  1235. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +7 -0
  1236. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +7 -0
  1237. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +7 -0
  1238. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +2 -1
  1239. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +5 -4
  1240. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/de.json +6 -0
  1241. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/es.json +6 -0
  1242. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/fr.json +6 -0
  1243. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/ja.json +6 -0
  1244. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/pt.json +6 -0
  1245. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/locale/ru.json +6 -0
  1246. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
  1247. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +17 -14
  1248. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +28 -8
  1249. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +28 -8
  1250. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.md +17 -0
  1251. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.zh.md +17 -0
  1252. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/preview.svg +1 -0
  1253. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/preview.zh.svg +1 -0
  1254. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +202 -90
  1255. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/de.json +7 -0
  1256. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +3 -2
  1257. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/es.json +7 -0
  1258. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/fr.json +7 -0
  1259. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ja.json +7 -0
  1260. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/pt.json +7 -0
  1261. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ru.json +7 -0
  1262. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +2 -1
  1263. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +42 -39
  1264. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.i18n.yaml +2 -2
  1265. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.md +1 -0
  1266. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/README.zh.md +1 -0
  1267. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/docs/DETAIL.md +1 -0
  1268. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/docs/DETAIL.zh.md +1 -0
  1269. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/docs/preview.svg +22 -0
  1270. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/docs/preview.zh.svg +22 -0
  1271. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/de.json +7 -0
  1272. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/en.json +2 -1
  1273. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/es.json +7 -0
  1274. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/fr.json +7 -0
  1275. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/ja.json +7 -0
  1276. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/pt.json +7 -0
  1277. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/ru.json +7 -0
  1278. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/locale/zh.json +2 -1
  1279. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +3 -2
  1280. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +179 -5
  1281. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/de.json +6 -0
  1282. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +1 -1
  1283. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/es.json +6 -0
  1284. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/fr.json +6 -0
  1285. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/ja.json +6 -0
  1286. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/pt.json +6 -0
  1287. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/ru.json +6 -0
  1288. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +11 -10
  1289. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +222 -6
  1290. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/de.json +6 -0
  1291. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/es.json +6 -0
  1292. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/fr.json +6 -0
  1293. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/ja.json +6 -0
  1294. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/pt.json +6 -0
  1295. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/locale/ru.json +6 -0
  1296. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +17 -17
  1297. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +2 -2
  1298. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +2 -0
  1299. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +2 -0
  1300. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +745 -13
  1301. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/de.json +6 -0
  1302. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/es.json +6 -0
  1303. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/fr.json +6 -0
  1304. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/ja.json +6 -0
  1305. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/pt.json +6 -0
  1306. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/locale/ru.json +6 -0
  1307. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +13 -13
  1308. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/DETAIL.md +18 -0
  1309. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/DETAIL.zh.md +18 -0
  1310. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/preview.svg +1 -0
  1311. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/preview.zh.svg +1 -0
  1312. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/de.json +7 -0
  1313. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/en.json +2 -1
  1314. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/es.json +7 -0
  1315. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/fr.json +7 -0
  1316. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ja.json +7 -0
  1317. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/pt.json +7 -0
  1318. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ru.json +7 -0
  1319. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/zh.json +2 -1
  1320. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +4 -3
  1321. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +4 -4
  1322. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +3 -3
  1323. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
  1324. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/client.page.js +61 -7
  1325. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +5 -4
  1326. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/de.json +6 -0
  1327. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/en.json +1 -1
  1328. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/es.json +6 -0
  1329. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/fr.json +6 -0
  1330. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/ja.json +6 -0
  1331. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/pt.json +6 -0
  1332. package/node_modules/@deepseek-ai/dsh-experimental-inspector/locale/ru.json +6 -0
  1333. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +12 -12
  1334. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.i18n.yaml +4 -4
  1335. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.md +5 -5
  1336. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.zh.md +1 -1
  1337. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.md +16 -0
  1338. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.zh.md +16 -0
  1339. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/preview.svg +1 -0
  1340. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/preview.zh.svg +1 -0
  1341. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/de.json +7 -0
  1342. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/en.json +3 -2
  1343. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/es.json +7 -0
  1344. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/fr.json +7 -0
  1345. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ja.json +7 -0
  1346. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/pt.json +7 -0
  1347. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ru.json +7 -0
  1348. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/zh.json +2 -1
  1349. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +4 -3
  1350. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.i18n.yaml +8 -8
  1351. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.md +4 -4
  1352. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.zh.md +4 -4
  1353. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/cordis.patch.yml +1 -1
  1354. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.md +18 -0
  1355. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.zh.md +18 -0
  1356. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.svg +1 -0
  1357. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.zh.svg +1 -0
  1358. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/de.json +7 -0
  1359. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +3 -2
  1360. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/es.json +7 -0
  1361. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/fr.json +7 -0
  1362. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ja.json +7 -0
  1363. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/pt.json +7 -0
  1364. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ru.json +7 -0
  1365. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +3 -2
  1366. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -4
  1367. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.i18n.yaml +4 -4
  1368. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.md +3 -3
  1369. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/README.zh.md +3 -3
  1370. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.md +17 -0
  1371. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.zh.md +17 -0
  1372. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/preview.svg +1 -0
  1373. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/preview.zh.svg +1 -0
  1374. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/de.json +7 -0
  1375. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/en.json +2 -1
  1376. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/es.json +7 -0
  1377. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/fr.json +7 -0
  1378. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ja.json +7 -0
  1379. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/pt.json +7 -0
  1380. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ru.json +7 -0
  1381. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/zh.json +2 -1
  1382. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +6 -4
  1383. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +3 -3
  1384. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +11 -11
  1385. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +352 -16
  1386. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/de.json +6 -0
  1387. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/en.json +1 -1
  1388. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/es.json +6 -0
  1389. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/fr.json +6 -0
  1390. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/ja.json +6 -0
  1391. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/pt.json +6 -0
  1392. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/locale/ru.json +6 -0
  1393. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +10 -10
  1394. package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.i18n.yaml +5 -5
  1395. package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.md +4 -4
  1396. package/node_modules/@deepseek-ai/dsh-experimental-session-search/README.zh.md +3 -3
  1397. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.md +17 -0
  1398. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.zh.md +17 -0
  1399. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/preview.svg +1 -0
  1400. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/preview.zh.svg +1 -0
  1401. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/de.json +7 -0
  1402. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/en.json +2 -1
  1403. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/es.json +7 -0
  1404. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/fr.json +7 -0
  1405. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ja.json +7 -0
  1406. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/pt.json +7 -0
  1407. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ru.json +7 -0
  1408. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/zh.json +2 -1
  1409. package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +7 -5
  1410. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.md +11 -0
  1411. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.zh.md +11 -0
  1412. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/preview.svg +1 -0
  1413. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/preview.zh.svg +1 -0
  1414. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/de.json +7 -0
  1415. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/en.json +2 -1
  1416. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/es.json +7 -0
  1417. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/fr.json +7 -0
  1418. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ja.json +7 -0
  1419. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/pt.json +7 -0
  1420. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ru.json +7 -0
  1421. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/zh.json +2 -1
  1422. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +3 -2
  1423. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/de.json +6 -0
  1424. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/es.json +6 -0
  1425. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/fr.json +6 -0
  1426. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/ja.json +6 -0
  1427. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/pt.json +6 -0
  1428. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/locale/ru.json +6 -0
  1429. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
  1430. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/de.json +6 -0
  1431. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/es.json +6 -0
  1432. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/fr.json +6 -0
  1433. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/ja.json +6 -0
  1434. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/pt.json +6 -0
  1435. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/locale/ru.json +6 -0
  1436. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
  1437. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.i18n.yaml +4 -4
  1438. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.md +3 -3
  1439. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/README.zh.md +3 -3
  1440. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/DETAIL.md +17 -0
  1441. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/DETAIL.zh.md +17 -0
  1442. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/preview.svg +1 -0
  1443. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/preview.zh.svg +1 -0
  1444. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/de.json +7 -0
  1445. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/en.json +2 -1
  1446. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/es.json +7 -0
  1447. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/fr.json +7 -0
  1448. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ja.json +7 -0
  1449. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/pt.json +7 -0
  1450. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ru.json +7 -0
  1451. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/zh.json +2 -1
  1452. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +5 -4
  1453. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/de.json +6 -0
  1454. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +1 -1
  1455. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/es.json +6 -0
  1456. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/fr.json +6 -0
  1457. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/ja.json +6 -0
  1458. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/pt.json +6 -0
  1459. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/ru.json +6 -0
  1460. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
  1461. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.i18n.yaml +2 -2
  1462. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/README.md +2 -2
  1463. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.md +16 -0
  1464. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.zh.md +16 -0
  1465. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/preview.svg +1 -0
  1466. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/preview.zh.svg +1 -0
  1467. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/de.json +7 -0
  1468. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/en.json +3 -2
  1469. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/es.json +7 -0
  1470. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/fr.json +7 -0
  1471. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ja.json +7 -0
  1472. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/pt.json +7 -0
  1473. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ru.json +7 -0
  1474. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/zh.json +2 -1
  1475. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +20 -18
  1476. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
  1477. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
  1478. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/de.json +6 -0
  1479. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/en.json +6 -0
  1480. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/es.json +6 -0
  1481. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/fr.json +6 -0
  1482. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/ja.json +6 -0
  1483. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/pt.json +6 -0
  1484. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/ru.json +6 -0
  1485. package/node_modules/@deepseek-ai/dsh-experimental-translator/locale/zh.json +6 -0
  1486. package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +26 -24
  1487. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/docs/DETAIL.md +1 -0
  1488. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/docs/DETAIL.zh.md +1 -0
  1489. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/docs/preview.svg +46 -0
  1490. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/docs/preview.zh.svg +46 -0
  1491. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/de.json +7 -0
  1492. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/en.json +2 -1
  1493. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/es.json +7 -0
  1494. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/fr.json +7 -0
  1495. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/ja.json +7 -0
  1496. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/pt.json +7 -0
  1497. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/ru.json +7 -0
  1498. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +2 -1
  1499. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +6 -5
  1500. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/de.json +6 -0
  1501. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/en.json +6 -0
  1502. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/es.json +6 -0
  1503. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/fr.json +6 -0
  1504. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/ja.json +6 -0
  1505. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/pt.json +6 -0
  1506. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/ru.json +6 -0
  1507. package/node_modules/@deepseek-ai/dsh-experimental-worktree/locale/zh.json +6 -0
  1508. package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -21
  1509. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  1510. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/de.json +6 -0
  1511. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/es.json +6 -0
  1512. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/fr.json +6 -0
  1513. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/ja.json +6 -0
  1514. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/pt.json +6 -0
  1515. package/node_modules/@deepseek-ai/dsh-file-reference-local/locale/ru.json +6 -0
  1516. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +14 -13
  1517. package/node_modules/@deepseek-ai/dsh-fs/package.json +7 -7
  1518. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +2 -2
  1519. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +1 -1
  1520. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +1 -1
  1521. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +15 -2
  1522. package/node_modules/@deepseek-ai/dsh-fs-local/locale/de.json +6 -0
  1523. package/node_modules/@deepseek-ai/dsh-fs-local/locale/en.json +6 -0
  1524. package/node_modules/@deepseek-ai/dsh-fs-local/locale/es.json +6 -0
  1525. package/node_modules/@deepseek-ai/dsh-fs-local/locale/fr.json +6 -0
  1526. package/node_modules/@deepseek-ai/dsh-fs-local/locale/ja.json +6 -0
  1527. package/node_modules/@deepseek-ai/dsh-fs-local/locale/pt.json +6 -0
  1528. package/node_modules/@deepseek-ai/dsh-fs-local/locale/ru.json +6 -0
  1529. package/node_modules/@deepseek-ai/dsh-fs-local/locale/zh.json +6 -0
  1530. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +6 -4
  1531. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/de.json +6 -0
  1532. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/es.json +6 -0
  1533. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/fr.json +6 -0
  1534. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/ja.json +6 -0
  1535. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/pt.json +6 -0
  1536. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/locale/ru.json +6 -0
  1537. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  1538. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +2 -2
  1539. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +1 -1
  1540. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +1 -1
  1541. package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +3 -3
  1542. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/de.json +6 -0
  1543. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/es.json +6 -0
  1544. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/fr.json +6 -0
  1545. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/ja.json +6 -0
  1546. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/pt.json +6 -0
  1547. package/node_modules/@deepseek-ai/dsh-fs-sandbox/locale/ru.json +6 -0
  1548. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  1549. package/node_modules/@deepseek-ai/dsh-goal/README.i18n.yaml +2 -2
  1550. package/node_modules/@deepseek-ai/dsh-goal/README.md +1 -1
  1551. package/node_modules/@deepseek-ai/dsh-goal/README.zh.md +1 -1
  1552. package/node_modules/@deepseek-ai/dsh-goal/lib/index.js +8 -6
  1553. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +16 -12
  1554. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.remote-client.js +7 -7
  1555. package/node_modules/@deepseek-ai/dsh-goal/lib/types/index.js +8 -8
  1556. package/node_modules/@deepseek-ai/dsh-goal/locale/de.json +6 -0
  1557. package/node_modules/@deepseek-ai/dsh-goal/locale/es.json +6 -0
  1558. package/node_modules/@deepseek-ai/dsh-goal/locale/fr.json +6 -0
  1559. package/node_modules/@deepseek-ai/dsh-goal/locale/ja.json +6 -0
  1560. package/node_modules/@deepseek-ai/dsh-goal/locale/pt.json +6 -0
  1561. package/node_modules/@deepseek-ai/dsh-goal/locale/ru.json +6 -0
  1562. package/node_modules/@deepseek-ai/dsh-goal/package.json +20 -20
  1563. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/de.json +6 -0
  1564. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/es.json +6 -0
  1565. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/fr.json +6 -0
  1566. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/ja.json +6 -0
  1567. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/pt.json +6 -0
  1568. package/node_modules/@deepseek-ai/dsh-goal-round-driver/locale/ru.json +6 -0
  1569. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  1570. package/node_modules/@deepseek-ai/dsh-harness-dev-context/README.i18n.yaml +2 -2
  1571. package/node_modules/@deepseek-ai/dsh-harness-dev-context/README.md +1 -1
  1572. package/node_modules/@deepseek-ai/dsh-harness-dev-context/README.zh.md +1 -1
  1573. package/node_modules/@deepseek-ai/dsh-harness-dev-context/lib/index.js +4 -3
  1574. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/de.json +6 -0
  1575. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/en.json +6 -0
  1576. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/es.json +6 -0
  1577. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/fr.json +6 -0
  1578. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/ja.json +6 -0
  1579. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/pt.json +6 -0
  1580. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/ru.json +6 -0
  1581. package/node_modules/@deepseek-ai/dsh-harness-dev-context/locale/zh.json +6 -0
  1582. package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -11
  1583. package/node_modules/@deepseek-ai/dsh-headless/README.i18n.yaml +20 -14
  1584. package/node_modules/@deepseek-ai/dsh-headless/README.md +35 -7
  1585. package/node_modules/@deepseek-ai/dsh-headless/README.zh.md +35 -7
  1586. package/node_modules/@deepseek-ai/dsh-headless/cordis.patch.yml +10 -7
  1587. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +36 -15
  1588. package/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-BA-F3lfb.js → json-stream-Dc3g2Bl1.js} +8 -4
  1589. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +16 -7
  1590. package/node_modules/@deepseek-ai/dsh-headless/locale/de.json +6 -0
  1591. package/node_modules/@deepseek-ai/dsh-headless/locale/en.json +6 -0
  1592. package/node_modules/@deepseek-ai/dsh-headless/locale/es.json +6 -0
  1593. package/node_modules/@deepseek-ai/dsh-headless/locale/fr.json +6 -0
  1594. package/node_modules/@deepseek-ai/dsh-headless/locale/ja.json +6 -0
  1595. package/node_modules/@deepseek-ai/dsh-headless/locale/pt.json +6 -0
  1596. package/node_modules/@deepseek-ai/dsh-headless/locale/ru.json +6 -0
  1597. package/node_modules/@deepseek-ai/dsh-headless/locale/zh.json +6 -0
  1598. package/node_modules/@deepseek-ai/dsh-headless/package.json +33 -19
  1599. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -4
  1600. package/node_modules/@deepseek-ai/dsh-hmr/locale/de.json +6 -0
  1601. package/node_modules/@deepseek-ai/dsh-hmr/locale/es.json +6 -0
  1602. package/node_modules/@deepseek-ai/dsh-hmr/locale/fr.json +6 -0
  1603. package/node_modules/@deepseek-ai/dsh-hmr/locale/ja.json +6 -0
  1604. package/node_modules/@deepseek-ai/dsh-hmr/locale/pt.json +6 -0
  1605. package/node_modules/@deepseek-ai/dsh-hmr/locale/ru.json +6 -0
  1606. package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
  1607. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  1608. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  1609. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/de.json +6 -0
  1610. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/es.json +6 -0
  1611. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/fr.json +6 -0
  1612. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/ja.json +6 -0
  1613. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/pt.json +6 -0
  1614. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/locale/ru.json +6 -0
  1615. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +15 -15
  1616. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/de.json +6 -0
  1617. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/es.json +6 -0
  1618. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/fr.json +6 -0
  1619. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/ja.json +6 -0
  1620. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/pt.json +6 -0
  1621. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/locale/ru.json +6 -0
  1622. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  1623. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/de.json +6 -0
  1624. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/es.json +6 -0
  1625. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/fr.json +6 -0
  1626. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/ja.json +6 -0
  1627. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/pt.json +6 -0
  1628. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/locale/ru.json +6 -0
  1629. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
  1630. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +6 -6
  1631. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.md +6 -4
  1632. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.zh.md +6 -4
  1633. package/node_modules/@deepseek-ai/dsh-host-frontend-static/lib/index.js +83 -47
  1634. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/de.json +6 -0
  1635. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/en.json +6 -0
  1636. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/es.json +6 -0
  1637. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/fr.json +6 -0
  1638. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/ja.json +6 -0
  1639. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/pt.json +6 -0
  1640. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/ru.json +6 -0
  1641. package/node_modules/@deepseek-ai/dsh-host-frontend-static/locale/zh.json +6 -0
  1642. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +8 -6
  1643. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/de.json +6 -0
  1644. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/es.json +6 -0
  1645. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/fr.json +6 -0
  1646. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/ja.json +6 -0
  1647. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/pt.json +6 -0
  1648. package/node_modules/@deepseek-ai/dsh-host-open-in-app/locale/ru.json +6 -0
  1649. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  1650. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -2
  1651. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -2
  1652. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/de.json +6 -0
  1653. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/es.json +6 -0
  1654. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/fr.json +6 -0
  1655. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/ja.json +6 -0
  1656. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/pt.json +6 -0
  1657. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/locale/ru.json +6 -0
  1658. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
  1659. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/de.json +6 -0
  1660. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/es.json +6 -0
  1661. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/fr.json +6 -0
  1662. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/ja.json +6 -0
  1663. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/pt.json +6 -0
  1664. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/locale/ru.json +6 -0
  1665. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
  1666. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +10 -10
  1667. package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +8 -6
  1668. package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +8 -6
  1669. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +157 -32
  1670. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/de.json +6 -0
  1671. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/es.json +6 -0
  1672. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/fr.json +6 -0
  1673. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/ja.json +6 -0
  1674. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/pt.json +6 -0
  1675. package/node_modules/@deepseek-ai/dsh-host-webserver/locale/ru.json +6 -0
  1676. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +3 -2
  1677. package/node_modules/@deepseek-ai/dsh-http-proxy/README.i18n.yaml +4 -4
  1678. package/node_modules/@deepseek-ai/dsh-http-proxy/README.md +2 -2
  1679. package/node_modules/@deepseek-ai/dsh-http-proxy/README.zh.md +2 -2
  1680. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +1 -1
  1681. package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
  1682. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/de.json +6 -0
  1683. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/es.json +6 -0
  1684. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/fr.json +6 -0
  1685. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/ja.json +6 -0
  1686. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/pt.json +6 -0
  1687. package/node_modules/@deepseek-ai/dsh-jobs-local/locale/ru.json +6 -0
  1688. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  1689. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  1690. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  1691. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +1 -1
  1692. package/node_modules/@deepseek-ai/dsh-llm/locale/de.json +6 -0
  1693. package/node_modules/@deepseek-ai/dsh-llm/locale/es.json +6 -0
  1694. package/node_modules/@deepseek-ai/dsh-llm/locale/fr.json +6 -0
  1695. package/node_modules/@deepseek-ai/dsh-llm/locale/ja.json +6 -0
  1696. package/node_modules/@deepseek-ai/dsh-llm/locale/pt.json +6 -0
  1697. package/node_modules/@deepseek-ai/dsh-llm/locale/ru.json +6 -0
  1698. package/node_modules/@deepseek-ai/dsh-llm/package.json +7 -7
  1699. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +21 -21
  1700. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +6 -6
  1701. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +3 -3
  1702. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +3 -3
  1703. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +437 -20
  1704. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +41 -38
  1705. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +6 -6
  1706. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +4 -4
  1707. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +4 -4
  1708. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +15 -385
  1709. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/de.json +6 -0
  1710. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/es.json +6 -0
  1711. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/fr.json +6 -0
  1712. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/ja.json +6 -0
  1713. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/pt.json +6 -0
  1714. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/locale/ru.json +6 -0
  1715. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +13 -17
  1716. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +16 -16
  1717. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +27 -8
  1718. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +27 -8
  1719. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +103 -13
  1720. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/de.json +6 -0
  1721. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/es.json +6 -0
  1722. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/fr.json +6 -0
  1723. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/ja.json +6 -0
  1724. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/pt.json +6 -0
  1725. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/locale/ru.json +6 -0
  1726. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
  1727. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +12 -12
  1728. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +9 -8
  1729. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +9 -8
  1730. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +34 -17
  1731. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/de.json +6 -0
  1732. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/es.json +6 -0
  1733. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/fr.json +6 -0
  1734. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/ja.json +6 -0
  1735. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/pt.json +6 -0
  1736. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/locale/ru.json +6 -0
  1737. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +25 -23
  1738. package/node_modules/@deepseek-ai/dsh-llm-retry/README.i18n.yaml +2 -2
  1739. package/node_modules/@deepseek-ai/dsh-llm-retry/README.md +2 -0
  1740. package/node_modules/@deepseek-ai/dsh-llm-retry/README.zh.md +2 -0
  1741. package/node_modules/@deepseek-ai/dsh-llm-retry/lib/index.js +15 -5
  1742. package/node_modules/@deepseek-ai/dsh-llm-retry/lib/types/index.js +16 -7
  1743. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/de.json +6 -0
  1744. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/es.json +6 -0
  1745. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/fr.json +6 -0
  1746. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/ja.json +6 -0
  1747. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/pt.json +6 -0
  1748. package/node_modules/@deepseek-ai/dsh-llm-retry/locale/ru.json +6 -0
  1749. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +20 -19
  1750. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/de.json +6 -0
  1751. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/en.json +6 -0
  1752. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/es.json +6 -0
  1753. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/fr.json +6 -0
  1754. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/ja.json +6 -0
  1755. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/pt.json +6 -0
  1756. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/ru.json +6 -0
  1757. package/node_modules/@deepseek-ai/dsh-mcp-client/locale/zh.json +6 -0
  1758. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -20
  1759. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/de.json +6 -0
  1760. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/es.json +6 -0
  1761. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/fr.json +6 -0
  1762. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/ja.json +6 -0
  1763. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/pt.json +6 -0
  1764. package/node_modules/@deepseek-ai/dsh-mcp-resources/locale/ru.json +6 -0
  1765. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -12
  1766. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/de.json +6 -0
  1767. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/es.json +6 -0
  1768. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/fr.json +6 -0
  1769. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/ja.json +6 -0
  1770. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/pt.json +6 -0
  1771. package/node_modules/@deepseek-ai/dsh-message-feedback/locale/ru.json +6 -0
  1772. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  1773. package/node_modules/@deepseek-ai/dsh-message-quotes/README.i18n.yaml +46 -0
  1774. package/node_modules/@deepseek-ai/dsh-message-quotes/README.md +83 -0
  1775. package/node_modules/@deepseek-ai/dsh-message-quotes/README.zh.md +83 -0
  1776. package/node_modules/@deepseek-ai/dsh-message-quotes/lib/client.js +200 -0
  1777. package/node_modules/@deepseek-ai/dsh-message-quotes/lib/index.js +6 -0
  1778. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/de.json +6 -0
  1779. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/en.json +6 -0
  1780. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/es.json +6 -0
  1781. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/fr.json +6 -0
  1782. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/ja.json +6 -0
  1783. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/pt.json +6 -0
  1784. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/ru.json +6 -0
  1785. package/node_modules/@deepseek-ai/dsh-message-quotes/locale/zh.json +6 -0
  1786. package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +61 -0
  1787. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  1788. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +11 -11
  1789. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/de.json +6 -0
  1790. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/es.json +6 -0
  1791. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/fr.json +6 -0
  1792. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/ja.json +6 -0
  1793. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/pt.json +6 -0
  1794. package/node_modules/@deepseek-ai/dsh-office-to-pdf/locale/ru.json +6 -0
  1795. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
  1796. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +46 -0
  1797. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +92 -0
  1798. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +92 -0
  1799. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +206 -0
  1800. package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +38 -0
  1801. package/node_modules/@deepseek-ai/dsh-otel/locale/de.json +6 -0
  1802. package/node_modules/@deepseek-ai/dsh-otel/locale/es.json +6 -0
  1803. package/node_modules/@deepseek-ai/dsh-otel/locale/fr.json +6 -0
  1804. package/node_modules/@deepseek-ai/dsh-otel/locale/ja.json +6 -0
  1805. package/node_modules/@deepseek-ai/dsh-otel/locale/pt.json +6 -0
  1806. package/node_modules/@deepseek-ai/dsh-otel/locale/ru.json +6 -0
  1807. package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
  1808. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  1809. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
  1810. package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +3 -1
  1811. package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +3 -1
  1812. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  1813. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +10 -10
  1814. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +5 -5
  1815. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +5 -5
  1816. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +16 -10
  1817. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +4 -4
  1818. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  1819. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +19 -13
  1820. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/de.json +6 -0
  1821. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/es.json +6 -0
  1822. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/fr.json +6 -0
  1823. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/ja.json +6 -0
  1824. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/pt.json +6 -0
  1825. package/node_modules/@deepseek-ai/dsh-permission-presets/locale/ru.json +6 -0
  1826. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +20 -18
  1827. package/node_modules/@deepseek-ai/dsh-persona/locale/de.json +6 -0
  1828. package/node_modules/@deepseek-ai/dsh-persona/locale/es.json +6 -0
  1829. package/node_modules/@deepseek-ai/dsh-persona/locale/fr.json +6 -0
  1830. package/node_modules/@deepseek-ai/dsh-persona/locale/ja.json +6 -0
  1831. package/node_modules/@deepseek-ai/dsh-persona/locale/pt.json +6 -0
  1832. package/node_modules/@deepseek-ai/dsh-persona/locale/ru.json +6 -0
  1833. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  1834. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/README.i18n.yaml +37 -0
  1835. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/README.md +88 -0
  1836. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/README.zh.md +88 -0
  1837. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/cordis.patch.yml +13 -0
  1838. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/docs/DETAIL.md +1 -0
  1839. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/docs/DETAIL.zh.md +1 -0
  1840. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/docs/preview.svg +36 -0
  1841. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/docs/preview.zh.svg +35 -0
  1842. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/icon.svg +5 -0
  1843. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/lib/index.js +1 -0
  1844. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/de.json +7 -0
  1845. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/en.json +7 -0
  1846. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/es.json +7 -0
  1847. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/fr.json +7 -0
  1848. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/ja.json +7 -0
  1849. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/pt.json +7 -0
  1850. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/ru.json +7 -0
  1851. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/locale/zh.json +7 -0
  1852. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +70 -0
  1853. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +12 -12
  1854. package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +8 -6
  1855. package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +8 -6
  1856. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +39 -32
  1857. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +39 -36
  1858. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/de.json +6 -0
  1859. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/es.json +6 -0
  1860. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/fr.json +6 -0
  1861. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/ja.json +6 -0
  1862. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/pt.json +6 -0
  1863. package/node_modules/@deepseek-ai/dsh-plan-mode/locale/ru.json +6 -0
  1864. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -20
  1865. package/node_modules/@deepseek-ai/dsh-plugin-detail/README.i18n.yaml +46 -0
  1866. package/node_modules/@deepseek-ai/dsh-plugin-detail/README.md +101 -0
  1867. package/node_modules/@deepseek-ai/dsh-plugin-detail/README.zh.md +101 -0
  1868. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/index.js +420 -0
  1869. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/types/document.js +130 -0
  1870. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/types/files.js +242 -0
  1871. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/types/index.js +9 -0
  1872. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/types/response.js +28 -0
  1873. package/node_modules/@deepseek-ai/dsh-plugin-detail/lib/types/types.js +3 -0
  1874. package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +40 -0
  1875. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +9 -6
  1876. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +33 -4
  1877. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +33 -4
  1878. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +778 -95
  1879. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +458 -23
  1880. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +382 -21
  1881. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/build-approval.js +23 -10
  1882. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/bundle-detail.js +85 -0
  1883. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/git-transport.js +65 -0
  1884. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +381 -70
  1885. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -1
  1886. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +4 -3
  1887. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +4 -1
  1888. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/versions.js +61 -0
  1889. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/de.json +6 -0
  1890. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/es.json +6 -0
  1891. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/fr.json +6 -0
  1892. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/ja.json +6 -0
  1893. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/pt.json +6 -0
  1894. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/ru.json +6 -0
  1895. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/de.json +5 -0
  1896. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/es.json +5 -0
  1897. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/fr.json +5 -0
  1898. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/ja.json +5 -0
  1899. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/pt.json +5 -0
  1900. package/node_modules/@deepseek-ai/dsh-plugin-manager/locale/tools/ru.json +5 -0
  1901. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +36 -27
  1902. package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +13 -10
  1903. package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +34 -6
  1904. package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +35 -6
  1905. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +842 -2
  1906. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.host.js +166 -3
  1907. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.remote-client.js +139 -3
  1908. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/detail-files.js +58 -0
  1909. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/detail.js +190 -0
  1910. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +139 -1
  1911. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/repository-cache.js +358 -0
  1912. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/tools.js +2 -2
  1913. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/de.json +6 -0
  1914. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/en.json +6 -0
  1915. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/es.json +6 -0
  1916. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/fr.json +6 -0
  1917. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/ja.json +6 -0
  1918. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/pt.json +6 -0
  1919. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/ru.json +6 -0
  1920. package/node_modules/@deepseek-ai/dsh-plugin-market/locale/zh.json +6 -0
  1921. package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +30 -18
  1922. package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +2 -2
  1923. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/de.json +6 -0
  1924. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/es.json +6 -0
  1925. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/fr.json +6 -0
  1926. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/ja.json +6 -0
  1927. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/pt.json +6 -0
  1928. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/locale/ru.json +6 -0
  1929. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  1930. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.i18n.yaml +49 -0
  1931. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.md +101 -0
  1932. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.zh.md +101 -0
  1933. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/icon.svg +9 -0
  1934. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/index.js +287 -0
  1935. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +777 -0
  1936. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.remote-client.js +90 -0
  1937. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/index.js +194 -0
  1938. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/skill.js +41 -0
  1939. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/types/types.js +2 -0
  1940. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/de.json +6 -0
  1941. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/en.json +6 -0
  1942. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/es.json +6 -0
  1943. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/fr.json +6 -0
  1944. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/ja.json +6 -0
  1945. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/pt.json +6 -0
  1946. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/ru.json +6 -0
  1947. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/locale/zh.json +6 -0
  1948. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +75 -0
  1949. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/skills/official-plugins.md +23 -0
  1950. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  1951. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +14 -14
  1952. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +10 -6
  1953. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +10 -6
  1954. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +404 -514
  1955. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +328 -246
  1956. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +343 -277
  1957. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/de.json +6 -0
  1958. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/es.json +6 -0
  1959. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/fr.json +6 -0
  1960. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/ja.json +6 -0
  1961. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/pt.json +6 -0
  1962. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/locale/ru.json +6 -0
  1963. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +22 -21
  1964. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/de.json +6 -0
  1965. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/en.json +6 -0
  1966. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/es.json +6 -0
  1967. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/fr.json +6 -0
  1968. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/ja.json +6 -0
  1969. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/pt.json +6 -0
  1970. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/ru.json +6 -0
  1971. package/node_modules/@deepseek-ai/dsh-pwsh-local/locale/zh.json +6 -0
  1972. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +10 -8
  1973. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/de.json +6 -0
  1974. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/es.json +6 -0
  1975. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/fr.json +6 -0
  1976. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/ja.json +6 -0
  1977. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/pt.json +6 -0
  1978. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/locale/ru.json +6 -0
  1979. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  1980. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/de.json +6 -0
  1981. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/es.json +6 -0
  1982. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/fr.json +6 -0
  1983. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/ja.json +6 -0
  1984. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/pt.json +6 -0
  1985. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/locale/ru.json +6 -0
  1986. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  1987. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +8 -8
  1988. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +4 -4
  1989. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +4 -4
  1990. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +94 -13
  1991. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  1992. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/lib/exec-shim.js +49 -45
  1993. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/lib/index.js +13 -8
  1994. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +23 -23
  1995. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +6 -6
  1996. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +4 -1
  1997. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +4 -1
  1998. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +9 -6
  1999. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/de.json +6 -0
  2000. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/es.json +6 -0
  2001. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/fr.json +6 -0
  2002. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/ja.json +6 -0
  2003. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/pt.json +6 -0
  2004. package/node_modules/@deepseek-ai/dsh-sandbox-local/locale/ru.json +6 -0
  2005. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  2006. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +11 -8
  2007. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.md +12 -3
  2008. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.zh.md +12 -3
  2009. package/node_modules/@deepseek-ai/dsh-sandbox-policy/lib/index.js +35 -9
  2010. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/de.json +6 -0
  2011. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/es.json +6 -0
  2012. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/fr.json +6 -0
  2013. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/ja.json +6 -0
  2014. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/pt.json +6 -0
  2015. package/node_modules/@deepseek-ai/dsh-sandbox-policy/locale/ru.json +6 -0
  2016. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +11 -11
  2017. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  2018. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +4 -4
  2019. package/node_modules/@deepseek-ai/dsh-schedule/README.md +5 -5
  2020. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +5 -5
  2021. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +191 -141
  2022. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +56 -5
  2023. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +24 -5
  2024. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +118 -148
  2025. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +82 -29
  2026. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +7 -6
  2027. package/node_modules/@deepseek-ai/dsh-schedule/locale/de.json +6 -0
  2028. package/node_modules/@deepseek-ai/dsh-schedule/locale/es.json +6 -0
  2029. package/node_modules/@deepseek-ai/dsh-schedule/locale/fr.json +6 -0
  2030. package/node_modules/@deepseek-ai/dsh-schedule/locale/ja.json +6 -0
  2031. package/node_modules/@deepseek-ai/dsh-schedule/locale/pt.json +6 -0
  2032. package/node_modules/@deepseek-ai/dsh-schedule/locale/ru.json +6 -0
  2033. package/node_modules/@deepseek-ai/dsh-schedule/package.json +33 -30
  2034. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  2035. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +10 -10
  2036. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +9 -3
  2037. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +9 -3
  2038. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +33 -0
  2039. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/de.json +6 -0
  2040. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/en.json +6 -0
  2041. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/es.json +6 -0
  2042. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/fr.json +6 -0
  2043. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/ja.json +6 -0
  2044. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/pt.json +6 -0
  2045. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/ru.json +6 -0
  2046. package/node_modules/@deepseek-ai/dsh-sdk-app/locale/zh.json +6 -0
  2047. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +17 -5
  2048. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +11 -8
  2049. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +14 -4
  2050. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +14 -4
  2051. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +150 -2
  2052. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/de.json +6 -0
  2053. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/en.json +6 -0
  2054. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/es.json +6 -0
  2055. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/fr.json +6 -0
  2056. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/ja.json +6 -0
  2057. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/pt.json +6 -0
  2058. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/ru.json +6 -0
  2059. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/locale/zh.json +6 -0
  2060. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +31 -23
  2061. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.i18n.yaml +2 -2
  2062. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.md +2 -0
  2063. package/node_modules/@deepseek-ai/dsh-sdk-minimal/README.zh.md +2 -0
  2064. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +7 -0
  2065. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +36 -34
  2066. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +9 -6
  2067. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +15 -3
  2068. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +15 -3
  2069. package/node_modules/@deepseek-ai/dsh-sdk-protocol/lib/index.js +8 -2
  2070. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +11 -9
  2071. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +4 -4
  2072. package/node_modules/@deepseek-ai/dsh-session/README.md +4 -2
  2073. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +4 -2
  2074. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +49 -31
  2075. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +59 -37
  2076. package/node_modules/@deepseek-ai/dsh-session/locale/de.json +6 -0
  2077. package/node_modules/@deepseek-ai/dsh-session/locale/es.json +6 -0
  2078. package/node_modules/@deepseek-ai/dsh-session/locale/fr.json +6 -0
  2079. package/node_modules/@deepseek-ai/dsh-session/locale/ja.json +6 -0
  2080. package/node_modules/@deepseek-ai/dsh-session/locale/pt.json +6 -0
  2081. package/node_modules/@deepseek-ai/dsh-session/locale/ru.json +6 -0
  2082. package/node_modules/@deepseek-ai/dsh-session/package.json +8 -8
  2083. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/de.json +6 -0
  2084. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/es.json +6 -0
  2085. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/fr.json +6 -0
  2086. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/ja.json +6 -0
  2087. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/pt.json +6 -0
  2088. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/locale/ru.json +6 -0
  2089. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +16 -15
  2090. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  2091. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
  2092. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/lib/index.js +2 -1
  2093. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +5 -4
  2094. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  2095. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  2096. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +4 -4
  2097. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +2 -2
  2098. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +2 -2
  2099. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1 -1
  2100. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
  2101. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/de.json +6 -0
  2102. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/es.json +6 -0
  2103. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/fr.json +6 -0
  2104. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/ja.json +6 -0
  2105. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/pt.json +6 -0
  2106. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/locale/ru.json +6 -0
  2107. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +13 -13
  2108. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +39 -30
  2109. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +44 -12
  2110. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +44 -12
  2111. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +359 -21
  2112. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/index.js +339 -5
  2113. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/de.json +6 -0
  2114. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/es.json +6 -0
  2115. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/fr.json +6 -0
  2116. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/ja.json +6 -0
  2117. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/pt.json +6 -0
  2118. package/node_modules/@deepseek-ai/dsh-session-log-export/locale/ru.json +6 -0
  2119. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +22 -19
  2120. package/node_modules/@deepseek-ai/dsh-session-persistence/README.i18n.yaml +2 -2
  2121. package/node_modules/@deepseek-ai/dsh-session-persistence/README.md +1 -1
  2122. package/node_modules/@deepseek-ai/dsh-session-persistence/README.zh.md +1 -1
  2123. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  2124. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
  2125. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +1 -1
  2126. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +1 -1
  2127. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +12 -4
  2128. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +105 -34
  2129. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/de.json +6 -0
  2130. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/es.json +6 -0
  2131. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/fr.json +6 -0
  2132. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/ja.json +6 -0
  2133. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/pt.json +6 -0
  2134. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/locale/ru.json +6 -0
  2135. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
  2136. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +16 -10
  2137. package/node_modules/@deepseek-ai/dsh-session-projection/README.md +28 -6
  2138. package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +28 -6
  2139. package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +132 -43
  2140. package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +143 -42
  2141. package/node_modules/@deepseek-ai/dsh-session-projection/locale/de.json +6 -0
  2142. package/node_modules/@deepseek-ai/dsh-session-projection/locale/es.json +6 -0
  2143. package/node_modules/@deepseek-ai/dsh-session-projection/locale/fr.json +6 -0
  2144. package/node_modules/@deepseek-ai/dsh-session-projection/locale/ja.json +6 -0
  2145. package/node_modules/@deepseek-ai/dsh-session-projection/locale/pt.json +6 -0
  2146. package/node_modules/@deepseek-ai/dsh-session-projection/locale/ru.json +6 -0
  2147. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +4 -3
  2148. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/de.json +6 -0
  2149. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/es.json +6 -0
  2150. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/fr.json +6 -0
  2151. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/ja.json +6 -0
  2152. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/pt.json +6 -0
  2153. package/node_modules/@deepseek-ai/dsh-session-projection-cache/locale/ru.json +6 -0
  2154. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  2155. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  2156. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/de.json +6 -0
  2157. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/es.json +6 -0
  2158. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/fr.json +6 -0
  2159. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/ja.json +6 -0
  2160. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/pt.json +6 -0
  2161. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/locale/ru.json +6 -0
  2162. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  2163. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +4 -4
  2164. package/node_modules/@deepseek-ai/dsh-session-reference/README.md +2 -2
  2165. package/node_modules/@deepseek-ai/dsh-session-reference/README.zh.md +2 -2
  2166. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +12 -22
  2167. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +12 -8
  2168. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +1 -1
  2169. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +12 -21
  2170. package/node_modules/@deepseek-ai/dsh-session-reference/locale/de.json +6 -0
  2171. package/node_modules/@deepseek-ai/dsh-session-reference/locale/es.json +6 -0
  2172. package/node_modules/@deepseek-ai/dsh-session-reference/locale/fr.json +6 -0
  2173. package/node_modules/@deepseek-ai/dsh-session-reference/locale/ja.json +6 -0
  2174. package/node_modules/@deepseek-ai/dsh-session-reference/locale/pt.json +6 -0
  2175. package/node_modules/@deepseek-ai/dsh-session-reference/locale/ru.json +6 -0
  2176. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +36 -35
  2177. package/node_modules/@deepseek-ai/dsh-session-stats/lib/index.js +5 -3
  2178. package/node_modules/@deepseek-ai/dsh-session-stats/lib/types/index.js +3 -2
  2179. package/node_modules/@deepseek-ai/dsh-session-stats/lib/types/projection.js +1 -0
  2180. package/node_modules/@deepseek-ai/dsh-session-stats/locale/de.json +6 -0
  2181. package/node_modules/@deepseek-ai/dsh-session-stats/locale/es.json +6 -0
  2182. package/node_modules/@deepseek-ai/dsh-session-stats/locale/fr.json +6 -0
  2183. package/node_modules/@deepseek-ai/dsh-session-stats/locale/ja.json +6 -0
  2184. package/node_modules/@deepseek-ai/dsh-session-stats/locale/pt.json +6 -0
  2185. package/node_modules/@deepseek-ai/dsh-session-stats/locale/ru.json +6 -0
  2186. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  2187. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  2188. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/de.json +6 -0
  2189. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/es.json +6 -0
  2190. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/fr.json +6 -0
  2191. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/ja.json +6 -0
  2192. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/pt.json +6 -0
  2193. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/locale/ru.json +6 -0
  2194. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +21 -21
  2195. package/node_modules/@deepseek-ai/dsh-session-title/README.i18n.yaml +4 -4
  2196. package/node_modules/@deepseek-ai/dsh-session-title/README.md +3 -1
  2197. package/node_modules/@deepseek-ai/dsh-session-title/README.zh.md +3 -1
  2198. package/node_modules/@deepseek-ai/dsh-session-title/lib/index.js +37 -26
  2199. package/node_modules/@deepseek-ai/dsh-session-title/lib/types/index.js +37 -27
  2200. package/node_modules/@deepseek-ai/dsh-session-title/locale/de.json +6 -0
  2201. package/node_modules/@deepseek-ai/dsh-session-title/locale/es.json +6 -0
  2202. package/node_modules/@deepseek-ai/dsh-session-title/locale/fr.json +6 -0
  2203. package/node_modules/@deepseek-ai/dsh-session-title/locale/ja.json +6 -0
  2204. package/node_modules/@deepseek-ai/dsh-session-title/locale/pt.json +6 -0
  2205. package/node_modules/@deepseek-ai/dsh-session-title/locale/ru.json +6 -0
  2206. package/node_modules/@deepseek-ai/dsh-session-title/package.json +14 -14
  2207. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/de.json +6 -0
  2208. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/en.json +6 -0
  2209. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/es.json +6 -0
  2210. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/fr.json +6 -0
  2211. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/ja.json +6 -0
  2212. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/pt.json +6 -0
  2213. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/ru.json +6 -0
  2214. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/locale/zh.json +6 -0
  2215. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +14 -12
  2216. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/de.json +6 -0
  2217. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/es.json +6 -0
  2218. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/fr.json +6 -0
  2219. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/ja.json +6 -0
  2220. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/pt.json +6 -0
  2221. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/locale/ru.json +6 -0
  2222. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +15 -15
  2223. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  2224. package/node_modules/@deepseek-ai/dsh-session-turn-outline/lib/index.js +5 -3
  2225. package/node_modules/@deepseek-ai/dsh-session-turn-outline/lib/types/index.js +3 -2
  2226. package/node_modules/@deepseek-ai/dsh-session-turn-outline/lib/types/projection.js +1 -0
  2227. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/de.json +6 -0
  2228. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/es.json +6 -0
  2229. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/fr.json +6 -0
  2230. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/ja.json +6 -0
  2231. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/pt.json +6 -0
  2232. package/node_modules/@deepseek-ai/dsh-session-turn-outline/locale/ru.json +6 -0
  2233. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  2234. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +1 -1
  2235. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -1
  2236. package/node_modules/@deepseek-ai/dsh-settings/locale/de.json +6 -0
  2237. package/node_modules/@deepseek-ai/dsh-settings/locale/es.json +6 -0
  2238. package/node_modules/@deepseek-ai/dsh-settings/locale/fr.json +6 -0
  2239. package/node_modules/@deepseek-ai/dsh-settings/locale/ja.json +6 -0
  2240. package/node_modules/@deepseek-ai/dsh-settings/locale/pt.json +6 -0
  2241. package/node_modules/@deepseek-ai/dsh-settings/locale/ru.json +6 -0
  2242. package/node_modules/@deepseek-ai/dsh-settings/package.json +10 -10
  2243. package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
  2244. package/node_modules/@deepseek-ai/dsh-shell-env/locale/de.json +6 -0
  2245. package/node_modules/@deepseek-ai/dsh-shell-env/locale/es.json +6 -0
  2246. package/node_modules/@deepseek-ai/dsh-shell-env/locale/fr.json +6 -0
  2247. package/node_modules/@deepseek-ai/dsh-shell-env/locale/ja.json +6 -0
  2248. package/node_modules/@deepseek-ai/dsh-shell-env/locale/pt.json +6 -0
  2249. package/node_modules/@deepseek-ai/dsh-shell-env/locale/ru.json +6 -0
  2250. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
  2251. package/node_modules/@deepseek-ai/dsh-skill/locale/de.json +6 -0
  2252. package/node_modules/@deepseek-ai/dsh-skill/locale/es.json +6 -0
  2253. package/node_modules/@deepseek-ai/dsh-skill/locale/fr.json +6 -0
  2254. package/node_modules/@deepseek-ai/dsh-skill/locale/ja.json +6 -0
  2255. package/node_modules/@deepseek-ai/dsh-skill/locale/pt.json +6 -0
  2256. package/node_modules/@deepseek-ai/dsh-skill/locale/ru.json +6 -0
  2257. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  2258. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/de.json +6 -0
  2259. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/es.json +6 -0
  2260. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/fr.json +6 -0
  2261. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/ja.json +6 -0
  2262. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/pt.json +6 -0
  2263. package/node_modules/@deepseek-ai/dsh-skill-badge/locale/ru.json +6 -0
  2264. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  2265. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/de.json +6 -0
  2266. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/es.json +6 -0
  2267. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/fr.json +6 -0
  2268. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/ja.json +6 -0
  2269. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/pt.json +6 -0
  2270. package/node_modules/@deepseek-ai/dsh-skill-filesystem/locale/ru.json +6 -0
  2271. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  2272. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +2 -2
  2273. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +2 -0
  2274. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +2 -0
  2275. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +2 -2
  2276. package/node_modules/@deepseek-ai/dsh-skill-office/locale/de.json +6 -0
  2277. package/node_modules/@deepseek-ai/dsh-skill-office/locale/en.json +6 -0
  2278. package/node_modules/@deepseek-ai/dsh-skill-office/locale/es.json +6 -0
  2279. package/node_modules/@deepseek-ai/dsh-skill-office/locale/fr.json +6 -0
  2280. package/node_modules/@deepseek-ai/dsh-skill-office/locale/ja.json +6 -0
  2281. package/node_modules/@deepseek-ai/dsh-skill-office/locale/pt.json +6 -0
  2282. package/node_modules/@deepseek-ai/dsh-skill-office/locale/ru.json +6 -0
  2283. package/node_modules/@deepseek-ai/dsh-skill-office/locale/zh.json +6 -0
  2284. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +7 -3
  2285. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  2286. package/node_modules/@deepseek-ai/dsh-spill-local/locale/de.json +6 -0
  2287. package/node_modules/@deepseek-ai/dsh-spill-local/locale/es.json +6 -0
  2288. package/node_modules/@deepseek-ai/dsh-spill-local/locale/fr.json +6 -0
  2289. package/node_modules/@deepseek-ai/dsh-spill-local/locale/ja.json +6 -0
  2290. package/node_modules/@deepseek-ai/dsh-spill-local/locale/pt.json +6 -0
  2291. package/node_modules/@deepseek-ai/dsh-spill-local/locale/ru.json +6 -0
  2292. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  2293. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/de.json +6 -0
  2294. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/es.json +6 -0
  2295. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/fr.json +6 -0
  2296. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/ja.json +6 -0
  2297. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/pt.json +6 -0
  2298. package/node_modules/@deepseek-ai/dsh-spill-policy/locale/ru.json +6 -0
  2299. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +32 -30
  2300. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +2 -2
  2301. package/node_modules/@deepseek-ai/dsh-storage/README.md +1 -1
  2302. package/node_modules/@deepseek-ai/dsh-storage/README.zh.md +1 -1
  2303. package/node_modules/@deepseek-ai/dsh-storage/locale/de.json +6 -0
  2304. package/node_modules/@deepseek-ai/dsh-storage/locale/es.json +6 -0
  2305. package/node_modules/@deepseek-ai/dsh-storage/locale/fr.json +6 -0
  2306. package/node_modules/@deepseek-ai/dsh-storage/locale/ja.json +6 -0
  2307. package/node_modules/@deepseek-ai/dsh-storage/locale/pt.json +6 -0
  2308. package/node_modules/@deepseek-ai/dsh-storage/locale/ru.json +6 -0
  2309. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  2310. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +2 -2
  2311. package/node_modules/@deepseek-ai/dsh-storage-domain/README.md +2 -2
  2312. package/node_modules/@deepseek-ai/dsh-storage-domain/README.zh.md +2 -2
  2313. package/node_modules/@deepseek-ai/dsh-storage-domain/lib/index.js +32 -4
  2314. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/de.json +6 -0
  2315. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/es.json +6 -0
  2316. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/fr.json +6 -0
  2317. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/ja.json +6 -0
  2318. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/pt.json +6 -0
  2319. package/node_modules/@deepseek-ai/dsh-storage-domain/locale/ru.json +6 -0
  2320. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +3 -3
  2321. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +6 -6
  2322. package/node_modules/@deepseek-ai/dsh-storage-json/README.md +4 -3
  2323. package/node_modules/@deepseek-ai/dsh-storage-json/README.zh.md +4 -3
  2324. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +75 -3
  2325. package/node_modules/@deepseek-ai/dsh-storage-json/locale/de.json +6 -0
  2326. package/node_modules/@deepseek-ai/dsh-storage-json/locale/es.json +6 -0
  2327. package/node_modules/@deepseek-ai/dsh-storage-json/locale/fr.json +6 -0
  2328. package/node_modules/@deepseek-ai/dsh-storage-json/locale/ja.json +6 -0
  2329. package/node_modules/@deepseek-ai/dsh-storage-json/locale/pt.json +6 -0
  2330. package/node_modules/@deepseek-ai/dsh-storage-json/locale/ru.json +6 -0
  2331. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  2332. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +4 -4
  2333. package/node_modules/@deepseek-ai/dsh-subagent/README.md +2 -2
  2334. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +2 -2
  2335. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +28 -13
  2336. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +11 -7
  2337. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -2
  2338. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/child-agent.js +2 -2
  2339. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +8 -4
  2340. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +8 -6
  2341. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +24 -3
  2342. package/node_modules/@deepseek-ai/dsh-subagent/locale/de.json +6 -0
  2343. package/node_modules/@deepseek-ai/dsh-subagent/locale/es.json +6 -0
  2344. package/node_modules/@deepseek-ai/dsh-subagent/locale/fr.json +6 -0
  2345. package/node_modules/@deepseek-ai/dsh-subagent/locale/ja.json +6 -0
  2346. package/node_modules/@deepseek-ai/dsh-subagent/locale/pt.json +6 -0
  2347. package/node_modules/@deepseek-ai/dsh-subagent/locale/ru.json +6 -0
  2348. package/node_modules/@deepseek-ai/dsh-subagent/package.json +46 -49
  2349. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/de.json +6 -0
  2350. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/en.json +6 -0
  2351. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/es.json +6 -0
  2352. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/fr.json +6 -0
  2353. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/ja.json +6 -0
  2354. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/pt.json +6 -0
  2355. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/ru.json +6 -0
  2356. package/node_modules/@deepseek-ai/dsh-subagent-acp/locale/zh.json +6 -0
  2357. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +22 -20
  2358. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/de.json +6 -0
  2359. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/es.json +6 -0
  2360. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/fr.json +6 -0
  2361. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/ja.json +6 -0
  2362. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/pt.json +6 -0
  2363. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/locale/ru.json +6 -0
  2364. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +11 -11
  2365. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/de.json +6 -0
  2366. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/es.json +6 -0
  2367. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/fr.json +6 -0
  2368. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/ja.json +6 -0
  2369. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/pt.json +6 -0
  2370. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/locale/ru.json +6 -0
  2371. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +15 -15
  2372. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  2373. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/de.json +6 -0
  2374. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/es.json +6 -0
  2375. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/fr.json +6 -0
  2376. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/ja.json +6 -0
  2377. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/pt.json +6 -0
  2378. package/node_modules/@deepseek-ai/dsh-subprocess-local/locale/ru.json +6 -0
  2379. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
  2380. package/node_modules/@deepseek-ai/dsh-system-prompt/README.i18n.yaml +10 -10
  2381. package/node_modules/@deepseek-ai/dsh-system-prompt/README.md +6 -4
  2382. package/node_modules/@deepseek-ai/dsh-system-prompt/README.zh.md +6 -4
  2383. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +22 -17
  2384. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/de.json +6 -0
  2385. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/es.json +6 -0
  2386. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/fr.json +6 -0
  2387. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/ja.json +6 -0
  2388. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/pt.json +6 -0
  2389. package/node_modules/@deepseek-ai/dsh-system-prompt/locale/ru.json +6 -0
  2390. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +5 -5
  2391. package/node_modules/@deepseek-ai/dsh-terminal/locale/de.json +6 -0
  2392. package/node_modules/@deepseek-ai/dsh-terminal/locale/es.json +6 -0
  2393. package/node_modules/@deepseek-ai/dsh-terminal/locale/fr.json +6 -0
  2394. package/node_modules/@deepseek-ai/dsh-terminal/locale/ja.json +6 -0
  2395. package/node_modules/@deepseek-ai/dsh-terminal/locale/pt.json +6 -0
  2396. package/node_modules/@deepseek-ai/dsh-terminal/locale/ru.json +6 -0
  2397. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  2398. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +3 -6
  2399. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/de.json +6 -0
  2400. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/es.json +6 -0
  2401. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/fr.json +6 -0
  2402. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/ja.json +6 -0
  2403. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/pt.json +6 -0
  2404. package/node_modules/@deepseek-ai/dsh-terminal-bash/locale/ru.json +6 -0
  2405. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +19 -19
  2406. package/node_modules/@deepseek-ai/dsh-time-context/README.i18n.yaml +4 -4
  2407. package/node_modules/@deepseek-ai/dsh-time-context/README.md +4 -1
  2408. package/node_modules/@deepseek-ai/dsh-time-context/README.zh.md +4 -1
  2409. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +77 -40
  2410. package/node_modules/@deepseek-ai/dsh-time-context/locale/de.json +6 -0
  2411. package/node_modules/@deepseek-ai/dsh-time-context/locale/es.json +6 -0
  2412. package/node_modules/@deepseek-ai/dsh-time-context/locale/fr.json +6 -0
  2413. package/node_modules/@deepseek-ai/dsh-time-context/locale/ja.json +6 -0
  2414. package/node_modules/@deepseek-ai/dsh-time-context/locale/pt.json +6 -0
  2415. package/node_modules/@deepseek-ai/dsh-time-context/locale/ru.json +6 -0
  2416. package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -18
  2417. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  2418. package/node_modules/@deepseek-ai/dsh-tmux-context/README.i18n.yaml +2 -2
  2419. package/node_modules/@deepseek-ai/dsh-tmux-context/README.md +2 -0
  2420. package/node_modules/@deepseek-ai/dsh-tmux-context/README.zh.md +2 -0
  2421. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +15 -3
  2422. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/de.json +6 -0
  2423. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/en.json +6 -0
  2424. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/es.json +6 -0
  2425. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/fr.json +6 -0
  2426. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/ja.json +6 -0
  2427. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/pt.json +6 -0
  2428. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/ru.json +6 -0
  2429. package/node_modules/@deepseek-ai/dsh-tmux-context/locale/zh.json +6 -0
  2430. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +13 -11
  2431. package/node_modules/@deepseek-ai/dsh-token-meter/README.i18n.yaml +10 -10
  2432. package/node_modules/@deepseek-ai/dsh-token-meter/README.md +7 -3
  2433. package/node_modules/@deepseek-ai/dsh-token-meter/README.zh.md +7 -3
  2434. package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +180 -77
  2435. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/index.js +84 -102
  2436. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/measurement-projection.js +94 -0
  2437. package/node_modules/@deepseek-ai/dsh-token-meter/locale/de.json +6 -0
  2438. package/node_modules/@deepseek-ai/dsh-token-meter/locale/es.json +6 -0
  2439. package/node_modules/@deepseek-ai/dsh-token-meter/locale/fr.json +6 -0
  2440. package/node_modules/@deepseek-ai/dsh-token-meter/locale/ja.json +6 -0
  2441. package/node_modules/@deepseek-ai/dsh-token-meter/locale/pt.json +6 -0
  2442. package/node_modules/@deepseek-ai/dsh-token-meter/locale/ru.json +6 -0
  2443. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  2444. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/de.json +6 -0
  2445. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/es.json +6 -0
  2446. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/fr.json +6 -0
  2447. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/ja.json +6 -0
  2448. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/pt.json +6 -0
  2449. package/node_modules/@deepseek-ai/dsh-tool-ask-user/locale/ru.json +6 -0
  2450. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +10 -9
  2451. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  2452. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
  2453. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
  2454. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +2 -2
  2455. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/de.json +6 -0
  2456. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/es.json +6 -0
  2457. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/fr.json +6 -0
  2458. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/ja.json +6 -0
  2459. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/pt.json +6 -0
  2460. package/node_modules/@deepseek-ai/dsh-tool-bash/locale/ru.json +6 -0
  2461. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +34 -32
  2462. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +4 -4
  2463. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +2 -1
  2464. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +2 -1
  2465. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +1 -1
  2466. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/de.json +6 -0
  2467. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/es.json +6 -0
  2468. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/fr.json +6 -0
  2469. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/ja.json +6 -0
  2470. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/pt.json +6 -0
  2471. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/locale/ru.json +6 -0
  2472. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -21
  2473. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/de.json +6 -0
  2474. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/es.json +6 -0
  2475. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/fr.json +6 -0
  2476. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/ja.json +6 -0
  2477. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/pt.json +6 -0
  2478. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/locale/ru.json +6 -0
  2479. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +8 -7
  2480. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +591 -172
  2481. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/de.json +6 -0
  2482. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/es.json +6 -0
  2483. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/fr.json +6 -0
  2484. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/de.json +5 -0
  2485. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/es.json +5 -0
  2486. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/fr.json +5 -0
  2487. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/ja.json +5 -0
  2488. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/pt.json +5 -0
  2489. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/host/ru.json +5 -0
  2490. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/ja.json +6 -0
  2491. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/pt.json +6 -0
  2492. package/node_modules/@deepseek-ai/dsh-tool-cordis/locale/ru.json +6 -0
  2493. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +11 -10
  2494. package/node_modules/@deepseek-ai/dsh-tool-executor-native/README.i18n.yaml +46 -0
  2495. package/node_modules/@deepseek-ai/dsh-tool-executor-native/README.md +94 -0
  2496. package/node_modules/@deepseek-ai/dsh-tool-executor-native/README.zh.md +94 -0
  2497. package/node_modules/@deepseek-ai/dsh-tool-executor-native/lib/index.js +31 -0
  2498. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/de.json +6 -0
  2499. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/en.json +6 -0
  2500. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/es.json +6 -0
  2501. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/fr.json +6 -0
  2502. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/ja.json +6 -0
  2503. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/pt.json +6 -0
  2504. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/ru.json +6 -0
  2505. package/node_modules/@deepseek-ai/dsh-tool-executor-native/locale/zh.json +6 -0
  2506. package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +39 -0
  2507. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +52 -0
  2508. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +133 -0
  2509. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +133 -0
  2510. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +1772 -0
  2511. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/client.js +2 -0
  2512. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/config.js +7 -0
  2513. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +16 -0
  2514. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/index.js +72 -0
  2515. package/node_modules/@deepseek-ai/{dsh-tools → dsh-tool-executor-ptc}/lib/types/ptc-calls.js +4 -4
  2516. package/node_modules/@deepseek-ai/{dsh-tools → dsh-tool-executor-ptc}/lib/types/ptc.js +90 -98
  2517. package/node_modules/@deepseek-ai/{dsh-tools → dsh-tool-executor-ptc}/lib/types/py-types.js +9 -9
  2518. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/runtime-types.js +2 -0
  2519. package/node_modules/@deepseek-ai/{dsh-tools → dsh-tool-executor-ptc}/lib/types/ts-types.js +1 -1
  2520. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/types.js +7 -0
  2521. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/de.json +6 -0
  2522. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/en.json +6 -0
  2523. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/es.json +6 -0
  2524. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/fr.json +6 -0
  2525. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/ja.json +6 -0
  2526. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/pt.json +6 -0
  2527. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/ru.json +6 -0
  2528. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/locale/zh.json +6 -0
  2529. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +73 -0
  2530. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +2 -2
  2531. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +1 -1
  2532. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +1 -1
  2533. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/de.json +6 -0
  2534. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/es.json +6 -0
  2535. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/fr.json +6 -0
  2536. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/ja.json +6 -0
  2537. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/pt.json +6 -0
  2538. package/node_modules/@deepseek-ai/dsh-tool-fs/locale/ru.json +6 -0
  2539. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +33 -31
  2540. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/de.json +6 -0
  2541. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/es.json +6 -0
  2542. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/fr.json +6 -0
  2543. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/ja.json +6 -0
  2544. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/pt.json +6 -0
  2545. package/node_modules/@deepseek-ai/dsh-tool-fs-search/locale/ru.json +6 -0
  2546. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +28 -27
  2547. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +2 -2
  2548. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +1 -1
  2549. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +1 -1
  2550. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +3 -4
  2551. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/de.json +6 -0
  2552. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/es.json +6 -0
  2553. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/fr.json +6 -0
  2554. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/ja.json +6 -0
  2555. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/pt.json +6 -0
  2556. package/node_modules/@deepseek-ai/dsh-tool-goal/locale/ru.json +6 -0
  2557. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +17 -17
  2558. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +20 -20
  2559. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +12 -8
  2560. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +12 -8
  2561. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +127 -13
  2562. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/de.json +6 -0
  2563. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/es.json +6 -0
  2564. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/fr.json +6 -0
  2565. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/ja.json +6 -0
  2566. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/pt.json +6 -0
  2567. package/node_modules/@deepseek-ai/dsh-tool-jobs/locale/ru.json +6 -0
  2568. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +16 -15
  2569. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +4 -4
  2570. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +3 -1
  2571. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +3 -1
  2572. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +4 -4
  2573. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -3
  2574. package/node_modules/@deepseek-ai/dsh-tool-present/locale/de.json +6 -0
  2575. package/node_modules/@deepseek-ai/dsh-tool-present/locale/es.json +6 -0
  2576. package/node_modules/@deepseek-ai/dsh-tool-present/locale/fr.json +6 -0
  2577. package/node_modules/@deepseek-ai/dsh-tool-present/locale/ja.json +6 -0
  2578. package/node_modules/@deepseek-ai/dsh-tool-present/locale/pt.json +6 -0
  2579. package/node_modules/@deepseek-ai/dsh-tool-present/locale/ru.json +6 -0
  2580. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +18 -19
  2581. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  2582. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +1 -1
  2583. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +1 -1
  2584. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +2 -2
  2585. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/de.json +6 -0
  2586. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/es.json +6 -0
  2587. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/fr.json +6 -0
  2588. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/ja.json +6 -0
  2589. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/pt.json +6 -0
  2590. package/node_modules/@deepseek-ai/dsh-tool-pwsh/locale/ru.json +6 -0
  2591. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +32 -31
  2592. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/de.json +6 -0
  2593. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/es.json +6 -0
  2594. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/fr.json +6 -0
  2595. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/ja.json +6 -0
  2596. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/pt.json +6 -0
  2597. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/locale/ru.json +6 -0
  2598. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +23 -22
  2599. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/de.json +6 -0
  2600. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/es.json +6 -0
  2601. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/fr.json +6 -0
  2602. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/ja.json +6 -0
  2603. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/pt.json +6 -0
  2604. package/node_modules/@deepseek-ai/dsh-tool-ralph/locale/ru.json +6 -0
  2605. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +20 -19
  2606. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/de.json +6 -0
  2607. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/en.json +6 -0
  2608. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/es.json +6 -0
  2609. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/fr.json +6 -0
  2610. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/ja.json +6 -0
  2611. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/pt.json +6 -0
  2612. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/ru.json +6 -0
  2613. package/node_modules/@deepseek-ai/dsh-tool-schedule/locale/zh.json +6 -0
  2614. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +14 -12
  2615. package/node_modules/@deepseek-ai/dsh-tool-session-query/lib/index.js +3 -4
  2616. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/de.json +6 -0
  2617. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/en.json +6 -0
  2618. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/es.json +6 -0
  2619. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/fr.json +6 -0
  2620. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/ja.json +6 -0
  2621. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/pt.json +6 -0
  2622. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/ru.json +6 -0
  2623. package/node_modules/@deepseek-ai/dsh-tool-session-query/locale/zh.json +6 -0
  2624. package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +26 -24
  2625. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/de.json +6 -0
  2626. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/es.json +6 -0
  2627. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/fr.json +6 -0
  2628. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/ja.json +6 -0
  2629. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/pt.json +6 -0
  2630. package/node_modules/@deepseek-ai/dsh-tool-skill/locale/ru.json +6 -0
  2631. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -14
  2632. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/de.json +6 -0
  2633. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/en.json +6 -0
  2634. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/es.json +6 -0
  2635. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/fr.json +6 -0
  2636. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/ja.json +6 -0
  2637. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/pt.json +6 -0
  2638. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/ru.json +6 -0
  2639. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/locale/zh.json +6 -0
  2640. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -19
  2641. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +20 -20
  2642. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +13 -12
  2643. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +13 -12
  2644. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +90 -115
  2645. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/model-selection-settings.js +55 -2
  2646. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/de.json +6 -0
  2647. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/es.json +6 -0
  2648. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/fr.json +6 -0
  2649. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/ja.json +6 -0
  2650. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/de.json +5 -0
  2651. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/es.json +5 -0
  2652. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/fr.json +5 -0
  2653. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/ja.json +5 -0
  2654. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/pt.json +5 -0
  2655. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/model-selection-settings/ru.json +5 -0
  2656. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/pt.json +6 -0
  2657. package/node_modules/@deepseek-ai/dsh-tool-subagent/locale/ru.json +6 -0
  2658. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +23 -22
  2659. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +14 -14
  2660. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +8 -9
  2661. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +8 -9
  2662. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +140 -6
  2663. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/de.json +6 -0
  2664. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/es.json +6 -0
  2665. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/fr.json +6 -0
  2666. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/ja.json +6 -0
  2667. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/pt.json +6 -0
  2668. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/ru.json +6 -0
  2669. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +22 -28
  2670. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/de.json +6 -0
  2671. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/en.json +6 -0
  2672. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/es.json +6 -0
  2673. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/fr.json +6 -0
  2674. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/ja.json +6 -0
  2675. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/pt.json +6 -0
  2676. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/ru.json +6 -0
  2677. package/node_modules/@deepseek-ai/dsh-tool-terminal/locale/zh.json +6 -0
  2678. package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +29 -25
  2679. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/index.js +5 -3
  2680. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/index.js +4 -3
  2681. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/de.json +6 -0
  2682. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/es.json +6 -0
  2683. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/fr.json +6 -0
  2684. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/ja.json +6 -0
  2685. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/pt.json +6 -0
  2686. package/node_modules/@deepseek-ai/dsh-tool-todo/locale/ru.json +6 -0
  2687. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +14 -13
  2688. package/node_modules/@deepseek-ai/dsh-tool-web/README.i18n.yaml +42 -24
  2689. package/node_modules/@deepseek-ai/dsh-tool-web/README.md +37 -12
  2690. package/node_modules/@deepseek-ai/dsh-tool-web/README.zh.md +37 -12
  2691. package/node_modules/@deepseek-ai/dsh-tool-web/lib/index.js +52 -18
  2692. package/node_modules/@deepseek-ai/dsh-tool-web/locale/de.json +6 -0
  2693. package/node_modules/@deepseek-ai/dsh-tool-web/locale/es.json +6 -0
  2694. package/node_modules/@deepseek-ai/dsh-tool-web/locale/fr.json +6 -0
  2695. package/node_modules/@deepseek-ai/dsh-tool-web/locale/ja.json +6 -0
  2696. package/node_modules/@deepseek-ai/dsh-tool-web/locale/pt.json +6 -0
  2697. package/node_modules/@deepseek-ai/dsh-tool-web/locale/ru.json +6 -0
  2698. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +21 -19
  2699. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/de.json +6 -0
  2700. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/es.json +6 -0
  2701. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/fr.json +6 -0
  2702. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/ja.json +6 -0
  2703. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/pt.json +6 -0
  2704. package/node_modules/@deepseek-ai/dsh-tool-workflow/locale/ru.json +6 -0
  2705. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +21 -20
  2706. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/de.json +6 -0
  2707. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/en.json +6 -0
  2708. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/es.json +6 -0
  2709. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/fr.json +6 -0
  2710. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/ja.json +6 -0
  2711. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/pt.json +6 -0
  2712. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/ru.json +6 -0
  2713. package/node_modules/@deepseek-ai/dsh-tool-working-directory/locale/zh.json +6 -0
  2714. package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -11
  2715. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/de.json +6 -0
  2716. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/en.json +6 -0
  2717. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/es.json +6 -0
  2718. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/fr.json +6 -0
  2719. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/ja.json +6 -0
  2720. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/pt.json +6 -0
  2721. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/ru.json +6 -0
  2722. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/locale/zh.json +6 -0
  2723. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +9 -6
  2724. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +23 -35
  2725. package/node_modules/@deepseek-ai/dsh-tools/README.md +30 -69
  2726. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +28 -67
  2727. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +242 -3387
  2728. package/node_modules/@deepseek-ai/dsh-tools/lib/pipeline.js +948 -0
  2729. package/node_modules/@deepseek-ai/dsh-tools/lib/shared-DTdn5dXO.js +598 -0
  2730. package/node_modules/@deepseek-ai/dsh-tools/lib/types/batch.js +246 -0
  2731. package/node_modules/@deepseek-ai/dsh-tools/lib/types/contracts.js +51 -0
  2732. package/node_modules/@deepseek-ai/dsh-tools/lib/types/events.js +2 -0
  2733. package/node_modules/@deepseek-ai/dsh-tools/lib/types/executor.js +19 -0
  2734. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +181 -1192
  2735. package/node_modules/@deepseek-ai/dsh-tools/lib/types/pipeline.js +701 -0
  2736. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +15 -1
  2737. package/node_modules/@deepseek-ai/dsh-tools/locale/de.json +6 -0
  2738. package/node_modules/@deepseek-ai/dsh-tools/locale/es.json +6 -0
  2739. package/node_modules/@deepseek-ai/dsh-tools/locale/fr.json +6 -0
  2740. package/node_modules/@deepseek-ai/dsh-tools/locale/ja.json +6 -0
  2741. package/node_modules/@deepseek-ai/dsh-tools/locale/pt.json +6 -0
  2742. package/node_modules/@deepseek-ai/dsh-tools/locale/ru.json +6 -0
  2743. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -29
  2744. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +4 -4
  2745. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -3
  2746. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -3
  2747. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +46 -84
  2748. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +81 -80
  2749. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/de.json +6 -0
  2750. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/es.json +6 -0
  2751. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/fr.json +6 -0
  2752. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/ja.json +6 -0
  2753. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/pt.json +6 -0
  2754. package/node_modules/@deepseek-ai/dsh-typert-loader/locale/ru.json +6 -0
  2755. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +5 -5
  2756. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  2757. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +1 -1
  2758. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +1 -1
  2759. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
  2760. package/node_modules/@deepseek-ai/dsh-typert-registry/README.i18n.yaml +4 -4
  2761. package/node_modules/@deepseek-ai/dsh-typert-registry/README.md +2 -2
  2762. package/node_modules/@deepseek-ai/dsh-typert-registry/README.zh.md +2 -2
  2763. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.browser.js +10 -3
  2764. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.node.js +10 -3
  2765. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/index.js +10 -3
  2766. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/types/service.js +17 -3
  2767. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/de.json +6 -0
  2768. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/es.json +6 -0
  2769. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/fr.json +6 -0
  2770. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/ja.json +6 -0
  2771. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/pt.json +6 -0
  2772. package/node_modules/@deepseek-ai/dsh-typert-registry/locale/ru.json +6 -0
  2773. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  2774. package/node_modules/@deepseek-ai/dsh-user-approval/README.i18n.yaml +17 -14
  2775. package/node_modules/@deepseek-ai/dsh-user-approval/README.md +18 -6
  2776. package/node_modules/@deepseek-ai/dsh-user-approval/README.zh.md +18 -6
  2777. package/node_modules/@deepseek-ai/dsh-user-approval/lib/index.js +50 -25
  2778. package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.js +45 -32
  2779. package/node_modules/@deepseek-ai/dsh-user-approval/locale/de.json +6 -0
  2780. package/node_modules/@deepseek-ai/dsh-user-approval/locale/es.json +6 -0
  2781. package/node_modules/@deepseek-ai/dsh-user-approval/locale/fr.json +6 -0
  2782. package/node_modules/@deepseek-ai/dsh-user-approval/locale/ja.json +6 -0
  2783. package/node_modules/@deepseek-ai/dsh-user-approval/locale/pt.json +6 -0
  2784. package/node_modules/@deepseek-ai/dsh-user-approval/locale/ru.json +6 -0
  2785. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +19 -16
  2786. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
  2787. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +1 -1
  2788. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +1 -1
  2789. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +35 -7
  2790. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +12 -8
  2791. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.remote-client.js +2 -2
  2792. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/index.js +43 -17
  2793. package/node_modules/@deepseek-ai/dsh-user-questions/locale/de.json +6 -0
  2794. package/node_modules/@deepseek-ai/dsh-user-questions/locale/es.json +6 -0
  2795. package/node_modules/@deepseek-ai/dsh-user-questions/locale/fr.json +6 -0
  2796. package/node_modules/@deepseek-ai/dsh-user-questions/locale/ja.json +6 -0
  2797. package/node_modules/@deepseek-ai/dsh-user-questions/locale/pt.json +6 -0
  2798. package/node_modules/@deepseek-ai/dsh-user-questions/locale/ru.json +6 -0
  2799. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +15 -15
  2800. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
  2801. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  2802. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +26 -17
  2803. package/node_modules/@deepseek-ai/dsh-util-time/README.md +64 -13
  2804. package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +64 -13
  2805. package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +327 -14
  2806. package/node_modules/@deepseek-ai/dsh-util-time/package.json +5 -2
  2807. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  2808. package/node_modules/@deepseek-ai/dsh-util-workspace-path/lib/index.js +2 -2
  2809. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  2810. package/node_modules/@deepseek-ai/dsh-web/README.i18n.yaml +15 -12
  2811. package/node_modules/@deepseek-ai/dsh-web/README.md +16 -4
  2812. package/node_modules/@deepseek-ai/dsh-web/README.zh.md +16 -4
  2813. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +49 -3
  2814. package/node_modules/@deepseek-ai/dsh-web/locale/de.json +6 -0
  2815. package/node_modules/@deepseek-ai/dsh-web/locale/es.json +6 -0
  2816. package/node_modules/@deepseek-ai/dsh-web/locale/fr.json +6 -0
  2817. package/node_modules/@deepseek-ai/dsh-web/locale/ja.json +6 -0
  2818. package/node_modules/@deepseek-ai/dsh-web/locale/pt.json +6 -0
  2819. package/node_modules/@deepseek-ai/dsh-web/locale/ru.json +6 -0
  2820. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  2821. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +4 -4
  2822. package/node_modules/@deepseek-ai/dsh-web-app/README.md +2 -2
  2823. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +2 -2
  2824. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +17 -14
  2825. package/node_modules/@deepseek-ai/dsh-web-app/locale/de.json +6 -0
  2826. package/node_modules/@deepseek-ai/dsh-web-app/locale/es.json +6 -0
  2827. package/node_modules/@deepseek-ai/dsh-web-app/locale/fr.json +6 -0
  2828. package/node_modules/@deepseek-ai/dsh-web-app/locale/ja.json +6 -0
  2829. package/node_modules/@deepseek-ai/dsh-web-app/locale/pt.json +6 -0
  2830. package/node_modules/@deepseek-ai/dsh-web-app/locale/ru.json +6 -0
  2831. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/de.json +5 -0
  2832. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/es.json +5 -0
  2833. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/fr.json +5 -0
  2834. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/ja.json +5 -0
  2835. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/pt.json +5 -0
  2836. package/node_modules/@deepseek-ai/dsh-web-app/locale/startup/ru.json +5 -0
  2837. package/node_modules/@deepseek-ai/dsh-web-app/package.json +147 -143
  2838. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +2 -3
  2839. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +4 -7
  2840. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -4
  2841. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.i18n.yaml +24 -12
  2842. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.md +23 -5
  2843. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/README.zh.md +23 -5
  2844. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/lib/index.js +64 -8
  2845. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/de.json +6 -0
  2846. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/es.json +6 -0
  2847. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/fr.json +6 -0
  2848. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/ja.json +6 -0
  2849. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/pt.json +6 -0
  2850. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/locale/ru.json +6 -0
  2851. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +16 -15
  2852. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +16 -16
  2853. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.md +8 -8
  2854. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.zh.md +8 -8
  2855. package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +41 -300
  2856. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/de.json +6 -0
  2857. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/es.json +6 -0
  2858. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/fr.json +6 -0
  2859. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/ja.json +6 -0
  2860. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/pt.json +6 -0
  2861. package/node_modules/@deepseek-ai/dsh-web-fetch-http/locale/ru.json +6 -0
  2862. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -9
  2863. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/apple-touch-icon.png +0 -0
  2864. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-91FlLSYh.css +1 -0
  2865. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-UeToUMuD.js +197 -0
  2866. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{graphql-VhKNCVsv.js → graphql-BIiNFDN_.js} +2 -2
  2867. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-br_RHStI.js → http-DIhnzaXE.js} +2 -2
  2868. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-B4EoFdzs.js +2 -0
  2869. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-CyvSi_BO.js → rst-BHSXxbFM.js} +2 -2
  2870. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-CO7l6YCm.js → ruby-DYyEMX7k.js} +2 -2
  2871. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-BYadmKUw.js → svelte-CwMGesqy.js} +2 -2
  2872. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-B0l-UZcs.js → vue-DgeFhH50.js} +2 -2
  2873. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-DcuzkuQH.js → vendor-D3p0kQ7Q.js} +3 -3
  2874. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/icon-192.png +0 -0
  2875. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/icon-512.png +0 -0
  2876. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/icon-maskable-512.png +0 -0
  2877. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +6 -3
  2878. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest +18 -4
  2879. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +22 -18
  2880. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +24 -12
  2881. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +24 -3
  2882. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +24 -3
  2883. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +47 -3
  2884. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/de.json +6 -0
  2885. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/es.json +6 -0
  2886. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/fr.json +6 -0
  2887. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/ja.json +6 -0
  2888. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/pt.json +6 -0
  2889. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/locale/ru.json +6 -0
  2890. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
  2891. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/de.json +6 -0
  2892. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/en.json +6 -0
  2893. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/es.json +6 -0
  2894. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/fr.json +6 -0
  2895. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ja.json +6 -0
  2896. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/pt.json +6 -0
  2897. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/ru.json +6 -0
  2898. package/node_modules/@deepseek-ai/dsh-web-search-exa/locale/zh.json +6 -0
  2899. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +8 -6
  2900. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/de.json +6 -0
  2901. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/en.json +6 -0
  2902. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/es.json +6 -0
  2903. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/fr.json +6 -0
  2904. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ja.json +6 -0
  2905. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/pt.json +6 -0
  2906. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/ru.json +6 -0
  2907. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/locale/zh.json +6 -0
  2908. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +8 -6
  2909. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
  2910. package/node_modules/@deepseek-ai/dsh-workflow/package.json +9 -9
  2911. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/de.json +6 -0
  2912. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/es.json +6 -0
  2913. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/fr.json +6 -0
  2914. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/ja.json +6 -0
  2915. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/pt.json +6 -0
  2916. package/node_modules/@deepseek-ai/dsh-workflow-ptc/locale/ru.json +6 -0
  2917. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  2918. package/node_modules/@deepseek-ai/dsh-working-directory/lib/index.js +7 -3
  2919. package/node_modules/@deepseek-ai/dsh-working-directory/locale/de.json +6 -0
  2920. package/node_modules/@deepseek-ai/dsh-working-directory/locale/en.json +6 -0
  2921. package/node_modules/@deepseek-ai/dsh-working-directory/locale/es.json +6 -0
  2922. package/node_modules/@deepseek-ai/dsh-working-directory/locale/fr.json +6 -0
  2923. package/node_modules/@deepseek-ai/dsh-working-directory/locale/ja.json +6 -0
  2924. package/node_modules/@deepseek-ai/dsh-working-directory/locale/pt.json +6 -0
  2925. package/node_modules/@deepseek-ai/dsh-working-directory/locale/ru.json +6 -0
  2926. package/node_modules/@deepseek-ai/dsh-working-directory/locale/zh.json +6 -0
  2927. package/node_modules/@deepseek-ai/dsh-working-directory/package.json +20 -18
  2928. package/node_modules/@deepseek-ai/dsh-workspace/locale/de.json +6 -0
  2929. package/node_modules/@deepseek-ai/dsh-workspace/locale/es.json +6 -0
  2930. package/node_modules/@deepseek-ai/dsh-workspace/locale/fr.json +6 -0
  2931. package/node_modules/@deepseek-ai/dsh-workspace/locale/ja.json +6 -0
  2932. package/node_modules/@deepseek-ai/dsh-workspace/locale/pt.json +6 -0
  2933. package/node_modules/@deepseek-ai/dsh-workspace/locale/ru.json +6 -0
  2934. package/node_modules/@deepseek-ai/dsh-workspace/package.json +12 -12
  2935. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/de.json +6 -0
  2936. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/es.json +6 -0
  2937. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/fr.json +6 -0
  2938. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/ja.json +6 -0
  2939. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/pt.json +6 -0
  2940. package/node_modules/@deepseek-ai/dsh-workspace-changes/locale/ru.json +6 -0
  2941. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +18 -18
  2942. package/node_modules/@earendil-works/pi-ai/README.md +78 -3
  2943. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +7 -10
  2944. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +8 -4
  2945. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +12 -0
  2946. package/node_modules/@earendil-works/pi-ai/dist/api/classifier-shared.js +4 -3
  2947. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.js +8 -0
  2948. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +4 -4
  2949. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +1 -1
  2950. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +9 -9
  2951. package/node_modules/@earendil-works/pi-ai/dist/api/lazy.js +24 -5
  2952. package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.js +2 -1
  2953. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -2
  2954. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +17 -11
  2955. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +14 -8
  2956. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +61 -9
  2957. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +17 -9
  2958. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +4 -3
  2959. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +3 -3
  2960. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +2 -1
  2961. package/node_modules/@earendil-works/pi-ai/dist/api/system-one-shared.js +55 -3
  2962. package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.js +10 -0
  2963. package/node_modules/@earendil-works/pi-ai/dist/index.js +2 -0
  2964. package/node_modules/@earendil-works/pi-ai/dist/models.js +19 -6
  2965. package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +15 -2
  2966. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  2967. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  2968. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure.json +1 -1
  2969. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  2970. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
  2971. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  2972. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  2973. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  2974. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  2975. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  2976. package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
  2977. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  2978. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
  2979. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
  2980. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  2981. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  2982. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  2983. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  2984. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  2985. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  2986. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  2987. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  2988. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  2989. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  2990. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  2991. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  2992. package/node_modules/@earendil-works/pi-ai/dist/providers/data/typesafe.json +1 -1
  2993. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  2994. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  2995. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  2996. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  2997. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  2998. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  2999. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  3000. package/node_modules/@earendil-works/pi-ai/dist/providers/model-schema.js +4 -2
  3001. package/node_modules/@earendil-works/pi-ai/dist/telemetry.js +191 -0
  3002. package/node_modules/@earendil-works/pi-ai/dist/utils/identity.js +141 -0
  3003. package/node_modules/@earendil-works/pi-ai/dist/utils/overflow.js +6 -1
  3004. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +16 -7
  3005. package/node_modules/@earendil-works/pi-ai/dist/utils/transcript.js +29 -18
  3006. package/node_modules/@earendil-works/pi-ai/dist/utils/version.js +3 -0
  3007. package/node_modules/@earendil-works/pi-ai/package.json +2 -2
  3008. package/node_modules/@earendil-works/pi-telemetry/README.md +167 -21
  3009. package/node_modules/@earendil-works/pi-telemetry/dist/index.js +2 -1
  3010. package/node_modules/@earendil-works/pi-telemetry/dist/memory.js +228 -80
  3011. package/node_modules/@earendil-works/pi-telemetry/dist/metrics.js +14 -0
  3012. package/node_modules/@earendil-works/pi-telemetry/dist/noop.js +19 -7
  3013. package/node_modules/@earendil-works/pi-telemetry/dist/render.js +48 -0
  3014. package/node_modules/@earendil-works/pi-telemetry/dist/testing/conformance.js +171 -77
  3015. package/node_modules/@earendil-works/pi-telemetry/package.json +6 -1
  3016. package/node_modules/birpc/LICENSE +21 -0
  3017. package/node_modules/birpc/README.md +235 -0
  3018. package/node_modules/birpc/dist/index.mjs +269 -0
  3019. package/node_modules/birpc/package.json +44 -0
  3020. package/node_modules/hosted-git-info/LICENSE +13 -0
  3021. package/node_modules/hosted-git-info/README.md +138 -0
  3022. package/node_modules/hosted-git-info/lib/from-url.js +122 -0
  3023. package/node_modules/hosted-git-info/lib/hosts.js +229 -0
  3024. package/node_modules/hosted-git-info/lib/index.js +227 -0
  3025. package/node_modules/hosted-git-info/lib/parse-url.js +81 -0
  3026. package/node_modules/hosted-git-info/package.json +44 -0
  3027. package/node_modules/lru-cache/LICENSE.md +55 -0
  3028. package/node_modules/lru-cache/README.md +469 -0
  3029. package/node_modules/lru-cache/dist/commonjs/browser/diagnostics-channel.js +7 -0
  3030. package/node_modules/lru-cache/dist/commonjs/browser/index.js +1733 -0
  3031. package/node_modules/lru-cache/dist/commonjs/browser/index.min.js +2 -0
  3032. package/node_modules/lru-cache/dist/commonjs/browser/perf.js +10 -0
  3033. package/node_modules/lru-cache/dist/commonjs/diagnostics-channel.js +7 -0
  3034. package/node_modules/lru-cache/dist/commonjs/index.js +1733 -0
  3035. package/node_modules/lru-cache/dist/commonjs/index.min.js +2 -0
  3036. package/node_modules/lru-cache/dist/commonjs/node/diagnostics-channel.js +9 -0
  3037. package/node_modules/lru-cache/dist/commonjs/node/index.js +1733 -0
  3038. package/node_modules/lru-cache/dist/commonjs/node/index.min.js +2 -0
  3039. package/node_modules/lru-cache/dist/commonjs/node/perf.js +10 -0
  3040. package/node_modules/lru-cache/dist/commonjs/package.json +3 -0
  3041. package/node_modules/lru-cache/dist/commonjs/perf.js +10 -0
  3042. package/node_modules/lru-cache/dist/commonjs/react-native/diagnostics-channel.js +7 -0
  3043. package/node_modules/lru-cache/dist/commonjs/react-native/index.js +1733 -0
  3044. package/node_modules/lru-cache/dist/commonjs/react-native/perf.js +10 -0
  3045. package/node_modules/lru-cache/dist/esm/browser/diagnostics-channel.js +4 -0
  3046. package/node_modules/lru-cache/dist/esm/browser/index.js +1729 -0
  3047. package/node_modules/lru-cache/dist/esm/browser/index.min.js +2 -0
  3048. package/node_modules/lru-cache/dist/esm/browser/perf.js +7 -0
  3049. package/node_modules/lru-cache/dist/esm/diagnostics-channel.js +19 -0
  3050. package/node_modules/lru-cache/dist/esm/index.js +1729 -0
  3051. package/node_modules/lru-cache/dist/esm/index.min.js +2 -0
  3052. package/node_modules/lru-cache/dist/esm/node/diagnostics-channel.js +6 -0
  3053. package/node_modules/lru-cache/dist/esm/node/index.js +1729 -0
  3054. package/node_modules/lru-cache/dist/esm/node/index.min.js +2 -0
  3055. package/node_modules/lru-cache/dist/esm/node/perf.js +7 -0
  3056. package/node_modules/lru-cache/dist/esm/package.json +3 -0
  3057. package/node_modules/lru-cache/dist/esm/perf.js +7 -0
  3058. package/node_modules/lru-cache/dist/esm/react-native/diagnostics-channel.js +4 -0
  3059. package/node_modules/lru-cache/dist/esm/react-native/index.js +1729 -0
  3060. package/node_modules/lru-cache/dist/esm/react-native/perf.js +7 -0
  3061. package/node_modules/lru-cache/package.json +159 -0
  3062. package/node_modules/on-finished/index.js +14 -2
  3063. package/node_modules/on-finished/package.json +10 -6
  3064. package/package.json +351 -308
  3065. package/node_modules/@deepseek-ai/dsh/lib/dump-config-CxNkSYcK.js +0 -2
  3066. package/node_modules/@deepseek-ai/dsh-agent/lib/types/invariant.js +0 -24
  3067. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/invariant.js +0 -53
  3068. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/model-selection-projection.js +0 -66
  3069. package/node_modules/@deepseek-ai/dsh-authorization/lib/types/invariant.js +0 -38
  3070. package/node_modules/@deepseek-ai/dsh-commands/lib/types/invariant.js +0 -62
  3071. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/invariant.js +0 -305
  3072. package/node_modules/@deepseek-ai/dsh-credentials/lib/types/invariant.js +0 -31
  3073. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +0 -26
  3074. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/mailbox.js +0 -293
  3075. package/node_modules/@deepseek-ai/dsh-goal/lib/types/invariant.js +0 -71
  3076. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/invariant.js +0 -110
  3077. package/node_modules/@deepseek-ai/dsh-llm/lib/types/invariant.js +0 -100
  3078. package/node_modules/@deepseek-ai/dsh-llm-retry/lib/types/history.js +0 -26
  3079. package/node_modules/@deepseek-ai/dsh-llm-retry/lib/types/invariant.js +0 -156
  3080. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/invariant.js +0 -36
  3081. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/invariant.js +0 -44
  3082. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DxezulnA.js +0 -1324
  3083. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/invariant.js +0 -58
  3084. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/persistence.js +0 -30
  3085. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/projection.js +0 -68
  3086. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/tools.js +0 -505
  3087. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/transaction.js +0 -22
  3088. package/node_modules/@deepseek-ai/dsh-session/lib/types/invariant.js +0 -207
  3089. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/invariant.js +0 -66
  3090. package/node_modules/@deepseek-ai/dsh-session-title/lib/types/invariant.js +0 -72
  3091. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-activation.js +0 -700
  3092. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation.js +0 -455
  3093. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/diagnostic.js +0 -39
  3094. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/inbox.js +0 -61
  3095. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/invariant.js +0 -91
  3096. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/run-settlement.js +0 -70
  3097. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-B2zsQ1Dz.js +0 -1529
  3098. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +0 -1525
  3099. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +0 -98
  3100. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +0 -136
  3101. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/list-agents/en.json +0 -5
  3102. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/locale/list-agents/zh.json +0 -5
  3103. package/node_modules/@deepseek-ai/dsh-tool-todo/lib/types/invariant.js +0 -95
  3104. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/invariant.js +0 -152
  3105. package/node_modules/@deepseek-ai/dsh-tools/lib/types/invariant.js +0 -124
  3106. package/node_modules/@deepseek-ai/dsh-tools/lib/types/testing.js +0 -25
  3107. package/node_modules/@deepseek-ai/dsh-tools/lib/types/types.js +0 -7
  3108. package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/invariant.js +0 -102
  3109. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BxpfOGf3.css +0 -1
  3110. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CN7NIWNw.js +0 -191
  3111. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/php-hBQ2F09C.js +0 -2
  3112. package/node_modules/@deepseek-ai/dsh-workflow/lib/types/invariant.js +0 -118
  3113. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/invariant.js +0 -43
  3114. package/node_modules/@earendil-works/pi-ai/dist/utils/pi-user-agent.js +0 -12
  3115. package/node_modules/on-finished/HISTORY.md +0 -98
@@ -1,539 +1,11 @@
1
- import { Service, symbols } from "@deepseek-ai/cordis";
1
+ import { a as ToolNotFoundError, c as assertObjectJsonSchema, d as isPlainJsonArray, f as isPlainJsonRecord, h as ToolExecutorUnavailableError, i as ToolActivationError, l as assertSupportedJsonSchema, m as ToolBatchExecutionError, n as TOOL_ABORTED, o as ToolOutputError, p as validateJsonSchemaValue, r as TOOL_ABORTED_BEFORE_DISPATCH, s as JsonSchemaError, t as RUN_CODE_NAME, u as isJsonSchemaRecord } from "./shared-DTdn5dXO.js";
2
+ import { Service } from "@deepseek-ai/cordis";
2
3
  import z from "@deepseek-ai/schemastery";
3
- import { AnonymousEntries, NamedEntries, ScopedLayers, scopeOf, scopeTarget } from "@deepseek-ai/dsh-scope";
4
- import { HarnessError, createUserMessage } from "@deepseek-ai/dsh-llm";
5
- import { assertNever, deepFreeze, isJsonValue, snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
6
- import { brandString } from "@deepseek-ai/dsh-brand";
7
- import { ESCALATION_TARGETS, approveEscalation, validateEscalationArgs } from "@deepseek-ai/dsh-sandbox";
8
- //#region lib/types/json-schema.js
9
- /**
10
- * Enforced JSON Schema subset shared by tool outputs, generated PTC mode
11
- * types, subagents, and workflows. The subset accepts any JSON root, an
12
- * annotation-only schema for unconstrained JSON, one scalar `type`, object
13
- * `properties`/`required`/boolean `additionalProperties`, array `items`,
14
- * type-correct scalar `enum`/`const`, and exact-one `oneOf`.
15
- *
16
- * Unsupported or misplaced keywords reject rather than being accepted without
17
- * enforcement. Consumers that require an object root apply
18
- * {@link assertObjectJsonSchema} before accepting input.
19
- * @module dsh-tools/json-schema
20
- */
21
- /**
22
- * Thrown when a raw schema falls outside the enforced subset. `violations`
23
- * lists every offending path instead of stopping at the first author error.
24
- */
25
- var JsonSchemaError = class extends HarnessError {
26
- /** Individual schema violations in walk order. */
27
- violations;
28
- constructor(violations) {
29
- super(`unsupported JSON schema: ${violations.join("; ")}`, "UNSUPPORTED_SCHEMA");
30
- this.name = "JsonSchemaError";
31
- this.violations = violations;
32
- }
33
- };
34
- const CONSTRAINT_KEYWORDS = new Set([
35
- "type",
36
- "oneOf",
37
- "properties",
38
- "required",
39
- "additionalProperties",
40
- "items",
41
- "enum",
42
- "const"
43
- ]);
44
- const ANNOTATION_KEYWORDS = new Set([
45
- "description",
46
- "title",
47
- "default",
48
- "examples"
49
- ]);
50
- const SCHEMA_TYPES = [
51
- "object",
52
- "array",
53
- "string",
54
- "number",
55
- "integer",
56
- "boolean",
57
- "null"
58
- ];
59
- /** Whether a realm-owned intrinsic prototype is backed by its native constructor. */
60
- function hasIntrinsicConstructor(prototype, name) {
61
- const constructor = Object.getOwnPropertyDescriptor(prototype, "constructor")?.value;
62
- if (typeof constructor !== "function") return false;
63
- try {
64
- return constructor.name === name && constructor.prototype === prototype && Function.prototype.toString.call(constructor) === `function ${name}() { [native code] }`;
65
- } catch {
66
- return false;
67
- }
68
- }
69
- /** Whether a candidate is one realm's intrinsic `Object.prototype`. */
70
- function isIntrinsicObjectPrototype(value) {
71
- return Object.getPrototypeOf(value) === null && hasIntrinsicConstructor(value, "Object");
72
- }
73
- /**
74
- * Test for a realm-agnostic plain JSON record without accepting arrays or
75
- * exotic objects.
76
- * @param value - candidate record from any JavaScript realm.
77
- * @returns Whether the value has a plain-object prototype chain.
78
- */
79
- function isPlainJsonRecord(value) {
80
- if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
81
- try {
82
- const prototype = Object.getPrototypeOf(value);
83
- return prototype === null || typeof prototype === "object" && isIntrinsicObjectPrototype(prototype);
84
- } catch {
85
- return false;
86
- }
87
- }
88
- /** Whether an array uses one realm's intrinsic `Array.prototype`. */
89
- function hasPlainArrayPrototype(value) {
90
- const prototype = Object.getPrototypeOf(value);
91
- if (!Array.isArray(prototype) || !hasIntrinsicConstructor(prototype, "Array")) return false;
92
- const objectPrototype = Object.getPrototypeOf(prototype);
93
- return typeof objectPrototype === "object" && objectPrototype !== null && isIntrinsicObjectPrototype(objectPrototype);
94
- }
95
- /** Return whether a record contains only own enumerable string keys. */
96
- function hasOnlyEnumerableStringKeys(value) {
97
- try {
98
- return Reflect.ownKeys(value).every((key) => typeof key === "string" && Object.prototype.propertyIsEnumerable.call(value, key));
99
- } catch {
100
- return false;
101
- }
102
- }
103
- /**
104
- * Test for an ordinary schema record whose keys survive JSON projection.
105
- * @param value - candidate record from any JavaScript realm.
106
- * @returns Whether the record has an intrinsic prototype and only own enumerable string keys.
107
- */
108
- function isJsonSchemaRecord(value) {
109
- return isPlainJsonRecord(value) && hasOnlyEnumerableStringKeys(value);
110
- }
111
- /**
112
- * Test for a dense ordinary array with no JSON-invisible decorations.
113
- * @param value - candidate array from any JavaScript realm.
114
- * @returns Whether the array is intrinsic, dense, and undecorated.
115
- */
116
- function isPlainJsonArray(value) {
117
- if (!Array.isArray(value)) return false;
118
- try {
119
- if (!hasPlainArrayPrototype(value) || Reflect.ownKeys(value).length !== value.length + 1) return false;
120
- for (let index = 0; index < value.length; index++) if (!Object.hasOwn(value, index)) return false;
121
- return true;
122
- } catch {
123
- return false;
124
- }
125
- }
126
- /** Lossless finite JSON number, excluding negative zero. */
127
- function isJsonNumber(value) {
128
- return typeof value === "number" && Number.isFinite(value) && !Object.is(value, -0);
129
- }
130
- /** Whether a scalar is valid for one declared schema type. */
131
- function scalarMatches(type, value) {
132
- switch (type) {
133
- case "string": return typeof value === "string";
134
- case "number": return isJsonNumber(value);
135
- case "integer": return isJsonNumber(value) && Number.isInteger(value);
136
- case "boolean": return typeof value === "boolean";
137
- case "null": return value === null;
138
- /* v8 ignore next -- JsonSchemaScalarType is closed; this retains compile-time exhaustiveness. */
139
- default: return assertNever(type, "JsonSchemaType");
140
- }
141
- }
142
- /** Keywords that are invalid beside `oneOf`. */
143
- const ONE_OF_SIBLING_KEYWORDS = [
144
- "properties",
145
- "required",
146
- "additionalProperties",
147
- "items",
148
- "enum",
149
- "const"
150
- ];
151
- /** Validate object-only fields after its property schemas have been visited. */
152
- function checkObjectSchemaTail(node, path, properties, violations) {
153
- const hasRequired = Object.hasOwn(node, "required");
154
- const required = hasRequired ? node.required : void 0;
155
- if (hasRequired) if (!isPlainJsonArray(required) || required.some((entry) => typeof entry !== "string")) violations.push(`${path}.required must be an array of strings`);
156
- else {
157
- const declared = isJsonSchemaRecord(properties) ? properties : {};
158
- for (const key of required) if (!Object.hasOwn(declared, key)) violations.push(`${path}.required names "${key}" which is not in properties`);
159
- }
160
- if (Object.hasOwn(node, "additionalProperties") && typeof node.additionalProperties !== "boolean") violations.push(`${path}.additionalProperties must be a boolean`);
161
- }
162
- /** Collect every violation for one raw schema tree without using the JavaScript call stack. */
163
- function checkSchemaNode(root, rootPath, violations, seen) {
164
- const tasks = [{
165
- kind: "enter",
166
- node: root,
167
- path: rootPath
168
- }];
169
- for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {
170
- if (task.kind === "leave") {
171
- seen.delete(task.node);
172
- continue;
173
- }
174
- if (task.kind === "one-of-tail") {
175
- for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(task.node, key)) violations.push(`${task.path}.${key} is not supported beside oneOf`);
176
- continue;
177
- }
178
- if (task.kind === "object-tail") {
179
- checkObjectSchemaTail(task.node, task.path, task.properties, violations);
180
- continue;
181
- }
182
- const { node, path } = task;
183
- if (!isJsonSchemaRecord(node)) {
184
- violations.push(`${path} must be a schema object`);
185
- continue;
186
- }
187
- if (seen.has(node)) {
188
- violations.push(`${path} is circular`);
189
- continue;
190
- }
191
- seen.add(node);
192
- tasks.push({
193
- kind: "leave",
194
- node
195
- });
196
- for (const key of Object.keys(node)) {
197
- if (CONSTRAINT_KEYWORDS.has(key)) continue;
198
- if (ANNOTATION_KEYWORDS.has(key)) {
199
- try {
200
- if (!isJsonValue(node[key])) violations.push(`${path}.${key} annotation must be lossless JSON data`);
201
- } catch {
202
- violations.push(`${path}.${key} annotation must be lossless JSON data`);
203
- }
204
- continue;
205
- }
206
- violations.push(`${path}.${key} is not a supported keyword (subset: type/oneOf/properties/required/additionalProperties/items/enum/const + annotations)`);
207
- }
208
- if (Object.hasOwn(node, "description") && typeof node.description !== "string") violations.push(`${path}.description must be a string`);
209
- if (Object.hasOwn(node, "title") && typeof node.title !== "string") violations.push(`${path}.title must be a string`);
210
- const hasType = Object.hasOwn(node, "type");
211
- const hasOneOf = Object.hasOwn(node, "oneOf");
212
- if (hasType && hasOneOf) {
213
- violations.push(`${path} cannot declare both type and oneOf`);
214
- continue;
215
- }
216
- if (!hasType && !hasOneOf) {
217
- for (const key of ONE_OF_SIBLING_KEYWORDS) if (Object.hasOwn(node, key)) violations.push(`${path}.${key} requires type or oneOf`);
218
- continue;
219
- }
220
- if (hasOneOf) {
221
- const oneOf = node.oneOf;
222
- tasks.push({
223
- kind: "one-of-tail",
224
- node,
225
- path
226
- });
227
- if (!isPlainJsonArray(oneOf) || oneOf.length < 2) violations.push(`${path}.oneOf must be an array of at least two schemas`);
228
- else for (let index = oneOf.length - 1; index >= 0; index--) tasks.push({
229
- kind: "enter",
230
- node: oneOf[index],
231
- path: `${path}.oneOf[${index}]`
232
- });
233
- continue;
234
- }
235
- const type = node.type;
236
- if (typeof type !== "string" || !SCHEMA_TYPES.includes(type)) {
237
- violations.push(Array.isArray(type) ? `${path}.type must be a single type string (type arrays are not supported)` : `${path}.type must be one of ${SCHEMA_TYPES.join("/")}`);
238
- continue;
239
- }
240
- const schemaType = type;
241
- for (const [key, types] of Object.entries({
242
- properties: ["object"],
243
- required: ["object"],
244
- additionalProperties: ["object"],
245
- items: ["array"],
246
- enum: [
247
- "string",
248
- "number",
249
- "integer",
250
- "boolean",
251
- "null"
252
- ],
253
- const: [
254
- "string",
255
- "number",
256
- "integer",
257
- "boolean",
258
- "null"
259
- ]
260
- })) if (Object.hasOwn(node, key) && !types.includes(schemaType)) violations.push(`${path}.${key} is not supported on type "${schemaType}"`);
261
- switch (schemaType) {
262
- case "object": {
263
- const properties = Object.hasOwn(node, "properties") ? node.properties : void 0;
264
- tasks.push({
265
- kind: "object-tail",
266
- node,
267
- path,
268
- properties
269
- });
270
- if (Object.hasOwn(node, "properties")) if (!isJsonSchemaRecord(properties)) violations.push(`${path}.properties must be an object of schemas`);
271
- else {
272
- const entries = Object.entries(properties);
273
- for (let index = entries.length - 1; index >= 0; index--) {
274
- const entry = entries[index];
275
- /* v8 ignore next -- the loop is bounded by the captured entry count. */
276
- if (entry === void 0) continue;
277
- tasks.push({
278
- kind: "enter",
279
- node: entry[1],
280
- path: `${path}.properties.${entry[0]}`
281
- });
282
- }
283
- }
284
- break;
285
- }
286
- case "array":
287
- if (Object.hasOwn(node, "items")) tasks.push({
288
- kind: "enter",
289
- node: node.items,
290
- path: `${path}.items`
291
- });
292
- break;
293
- case "string":
294
- case "number":
295
- case "integer":
296
- case "boolean":
297
- case "null": {
298
- const hasEnum = Object.hasOwn(node, "enum");
299
- const allowed = hasEnum ? node.enum : void 0;
300
- const enumValid = isPlainJsonArray(allowed) && allowed.length > 0 && allowed.every((entry) => scalarMatches(schemaType, entry));
301
- if (hasEnum && !enumValid) violations.push(`${path}.enum must be a non-empty array of ${schemaType} values`);
302
- const hasConst = Object.hasOwn(node, "const");
303
- const declaredConst = hasConst ? node.const : void 0;
304
- const constValid = scalarMatches(schemaType, declaredConst);
305
- if (hasConst) {
306
- if (!constValid) violations.push(`${path}.const must be a ${schemaType} value`);
307
- else if (enumValid && !allowed.includes(declaredConst)) violations.push(`${path}.const must be one of ${path}.enum when both are declared`);
308
- }
309
- break;
310
- }
311
- /* v8 ignore next -- schemaType was narrowed from the closed SCHEMA_TYPES table above. */
312
- default: assertNever(schemaType, "JsonSchemaType");
313
- }
314
- }
315
- }
316
- /**
317
- * Assert that an arbitrary raw schema uses only the enforced subset.
318
- * Annotation-only schemas are accepted as the standard unconstrained-JSON
319
- * form; callers that require an object root use {@link assertObjectJsonSchema}.
320
- * @param schema - untrusted raw JSON Schema.
321
- * @returns Assertion that the schema belongs to the supported subset.
322
- */
323
- function assertSupportedJsonSchema(schema) {
324
- const violations = [];
325
- checkSchemaNode(schema, "schema", violations, /* @__PURE__ */ new Set());
326
- if (violations.length > 0) throw new JsonSchemaError(violations);
327
- }
328
- /**
329
- * Assert the enforced subset plus the object-root constraint retained by
330
- * subagent and workflow structured outputs.
331
- * @param schema - untrusted caller-supplied schema.
332
- * @returns Assertion that the schema belongs to the supported subset and has an object root.
333
- */
334
- function assertObjectJsonSchema(schema) {
335
- const violations = [];
336
- checkSchemaNode(schema, "schema", violations, /* @__PURE__ */ new Set());
337
- if (violations.length === 0 && (!isJsonSchemaRecord(schema) || !Object.hasOwn(schema, "type") || schema.type !== "object")) violations.push("schema.type must be \"object\" (structured output is object-rooted)");
338
- if (violations.length > 0) throw new JsonSchemaError(violations);
339
- }
340
- /** Safely test the lossless JSON boundary when a getter may throw. */
341
- function safelyIsJsonValue(value) {
342
- try {
343
- return isJsonValue(value);
344
- } catch {
345
- return false;
346
- }
347
- }
348
- /** Root-aware diagnostic path for the parameter validator's empty sentinel. */
349
- function diagnosticPath(path) {
350
- return path === "" ? "arguments" : path;
351
- }
352
- /** Append one object property without a leading dot at an implicit root. */
353
- function propertyPath(path, key) {
354
- return path === "" ? key : `${path}.${key}`;
355
- }
356
- /** The generic exception-containment diagnostic owned by one valid schema node. */
357
- function losslessValueViolation(path) {
358
- return [`"${diagnosticPath(path)}" must be a lossless JSON value`];
359
- }
360
- /** Append diagnostics without spreading a potentially wide child result as call arguments. */
361
- function appendViolations(target, source) {
362
- for (const violation of source) target.push(violation);
363
- }
364
- /** Initialize one validation frame with empty aggregation state. */
365
- function valueFrame(node, value, path) {
366
- return {
367
- node,
368
- value,
369
- path,
370
- catches: false,
371
- phase: "start",
372
- children: [],
373
- childIndex: 0,
374
- violations: [],
375
- tailViolations: [],
376
- matches: 0
377
- };
378
- }
379
- /** Validate one scalar node after its primitive type check. */
380
- function checkScalarValue(node, value, path) {
381
- const allowed = Object.hasOwn(node, "enum") ? node.enum : void 0;
382
- if (allowed !== void 0 && !allowed.includes(value)) return [`"${diagnosticPath(path)}" must be one of ${JSON.stringify(allowed)}`];
383
- if (Object.hasOwn(node, "const") && value !== node.const) return [`"${diagnosticPath(path)}" must be ${JSON.stringify(node.const)}`];
384
- return [];
385
- }
386
- /** Validate one trusted schema/value pair with explicit frames rather than recursive calls. */
387
- function checkValue(schema, value, path) {
388
- const frames = [valueFrame(schema, value, path)];
389
- let rootResult;
390
- const receive = (result) => {
391
- const parent = frames.at(-1);
392
- if (parent === void 0) {
393
- rootResult = result;
394
- return;
395
- }
396
- if (parent.kind === "oneOf") {
397
- if (result.length === 0) parent.matches++;
398
- } else appendViolations(parent.violations, result);
399
- };
400
- const finish = (result) => {
401
- frames.pop();
402
- receive(result);
403
- };
404
- while (frames.length > 0) {
405
- const frame = frames.at(-1);
406
- /* v8 ignore next -- the loop condition guarantees a current frame. */
407
- if (frame === void 0) break;
408
- try {
409
- if (frame.phase === "children") {
410
- if (frame.childIndex < frame.children.length) {
411
- const child = frame.children[frame.childIndex];
412
- /* v8 ignore next -- childIndex is bounded by children.length. */
413
- if (child === void 0) throw new Error("missing schema-value child frame");
414
- frame.childIndex++;
415
- frames.push(valueFrame(child.node, child.value, child.path));
416
- continue;
417
- }
418
- if (frame.kind === "oneOf") {
419
- finish(frame.matches === 1 ? [] : [`"${diagnosticPath(frame.path)}" must match exactly one oneOf branch (matched ${frame.matches})`]);
420
- continue;
421
- }
422
- appendViolations(frame.violations, frame.tailViolations);
423
- if (frame.violations.length > 0) finish(frame.violations);
424
- else if (frame.kind === "object") finish(safelyIsJsonValue(frame.value) ? [] : [`"${diagnosticPath(frame.path)}" must be a lossless JSON object`]);
425
- else finish(safelyIsJsonValue(frame.value) ? [] : [`"${diagnosticPath(frame.path)}" must be a dense lossless JSON array`]);
426
- continue;
427
- }
428
- const nodeType = Object.hasOwn(frame.node, "type") ? frame.node.type : void 0;
429
- frame.catches = !(nodeType !== void 0 && !SCHEMA_TYPES.includes(nodeType));
430
- const oneOf = Object.hasOwn(frame.node, "oneOf") ? frame.node.oneOf : void 0;
431
- if (oneOf !== void 0) {
432
- frame.kind = "oneOf";
433
- frame.children = Array.from(oneOf, (branch) => ({
434
- node: branch,
435
- value: frame.value,
436
- path: frame.path
437
- }));
438
- frame.childIndex = 0;
439
- frame.matches = 0;
440
- frame.phase = "children";
441
- continue;
442
- }
443
- if (nodeType === void 0) {
444
- finish(safelyIsJsonValue(frame.value) ? [] : losslessValueViolation(frame.path));
445
- continue;
446
- }
447
- switch (nodeType) {
448
- case "object": {
449
- if (!isPlainJsonRecord(frame.value)) {
450
- finish([`"${diagnosticPath(frame.path)}" must be an object`]);
451
- break;
452
- }
453
- const properties = Object.hasOwn(frame.node, "properties") ? frame.node.properties ?? {} : {};
454
- const violations = [];
455
- const required = Object.hasOwn(frame.node, "required") ? frame.node.required ?? [] : [];
456
- for (const key of required) if (!Object.hasOwn(frame.value, key) || frame.value[key] === void 0) violations.push(`missing required property "${propertyPath(frame.path, key)}"`);
457
- const children = [];
458
- for (const [key, child] of Object.entries(properties)) {
459
- if (!Object.hasOwn(frame.value, key) || frame.value[key] === void 0) continue;
460
- children.push({
461
- node: child,
462
- value: frame.value[key],
463
- path: propertyPath(frame.path, key)
464
- });
465
- }
466
- const tailViolations = [];
467
- if (Object.hasOwn(frame.node, "additionalProperties") && frame.node.additionalProperties === false) {
468
- for (const key of Object.keys(frame.value)) if (!Object.hasOwn(properties, key)) tailViolations.push(`"${propertyPath(frame.path, key)}" is not a declared property (additionalProperties: false)`);
469
- }
470
- frame.kind = "object";
471
- frame.children = children;
472
- frame.childIndex = 0;
473
- frame.violations = violations;
474
- frame.tailViolations = tailViolations;
475
- frame.phase = "children";
476
- break;
477
- }
478
- case "array": {
479
- if (!Array.isArray(frame.value)) {
480
- finish([`"${diagnosticPath(frame.path)}" must be an array`]);
481
- break;
482
- }
483
- const items = Object.hasOwn(frame.node, "items") ? frame.node.items : void 0;
484
- const children = items === void 0 ? [] : frame.value.flatMap((entry, index) => [{
485
- node: items,
486
- value: entry,
487
- path: `${frame.path}[${index}]`
488
- }]);
489
- frame.kind = "array";
490
- frame.children = children;
491
- frame.childIndex = 0;
492
- frame.violations = [];
493
- frame.phase = "children";
494
- break;
495
- }
496
- case "string":
497
- finish(typeof frame.value === "string" ? checkScalarValue(frame.node, frame.value, frame.path) : [`"${diagnosticPath(frame.path)}" must be a string`]);
498
- break;
499
- case "number":
500
- finish(typeof frame.value !== "number" ? [`"${diagnosticPath(frame.path)}" must be a number`] : !isJsonNumber(frame.value) ? [`"${diagnosticPath(frame.path)}" must be a finite JSON number`] : checkScalarValue(frame.node, frame.value, frame.path));
501
- break;
502
- case "integer":
503
- finish(!isJsonNumber(frame.value) || !Number.isInteger(frame.value) ? [`"${diagnosticPath(frame.path)}" must be an integer`] : checkScalarValue(frame.node, frame.value, frame.path));
504
- break;
505
- case "boolean":
506
- finish(typeof frame.value === "boolean" ? checkScalarValue(frame.node, frame.value, frame.path) : [`"${diagnosticPath(frame.path)}" must be a boolean`]);
507
- break;
508
- case "null":
509
- finish(frame.value === null ? checkScalarValue(frame.node, frame.value, frame.path) : [`"${diagnosticPath(frame.path)}" must be null`]);
510
- break;
511
- default: finish(assertNever(nodeType, "JsonSchemaType"));
512
- }
513
- } catch (error) {
514
- let failed = frames.pop();
515
- while (failed !== void 0 && !failed.catches) failed = frames.pop();
516
- if (failed === void 0) throw error;
517
- receive(losslessValueViolation(failed.path));
518
- }
519
- }
520
- /* v8 ignore next -- every root frame finishes or throws. */
521
- return rootResult ?? losslessValueViolation(path);
522
- }
523
- /**
524
- * Validate a candidate value against an asserted raw schema. The function is
525
- * total for arbitrary values and returns path-qualified violations.
526
- * @param schema - a schema accepted by {@link assertSupportedJsonSchema}.
527
- * @param value - the candidate JSON value.
528
- * @param path - root label used in diagnostics.
529
- * @returns All violations in walk order; empty means valid.
530
- */
531
- function validateJsonSchemaValue(schema, value, path = "value") {
532
- return checkValue(schema, value, path);
533
- }
534
- //#endregion
4
+ import { AnonymousEntries, NamedEntries, ScopedLayers, scopeChainOf, scopeOf } from "@deepseek-ai/dsh-scope";
5
+ import { HarnessError } from "@deepseek-ai/dsh-llm";
6
+ import { snapshotJsonValue } from "@deepseek-ai/dsh-util-values";
535
7
  //#region lib/types/schema.js
536
- /** Unified JSON-value schema DSL, inference, compilation, and typed tool helper. @module dsh-tools/schema */
8
+ /** Unified JSON-value schema DSL, inference, compilation, and tool definition helpers. @module dsh-tools/schema */
537
9
  const ANNOTATION_KEYS = [
538
10
  "description",
539
11
  "title",
@@ -885,2196 +357,151 @@ function defineTool(options) {
885
357
  };
886
358
  return tool;
887
359
  }
888
- //#endregion
889
- //#region lib/types/ptc-calls.js
890
- /** Keeps calls under a changed policy from overlapping their canceled predecessors. */
891
- var PtcCalls = class {
892
- calls = /* @__PURE__ */ new Map();
893
- disposed = false;
894
- /**
895
- * Observe policy changes for the owning tool registry.
896
- * @param ctx - Registry lifecycle and Session events.
897
- */
898
- constructor(ctx) {
899
- ctx.on("session/event", (session, event) => {
900
- if (event.type !== "sandbox/mode") return;
901
- for (const call of this.calls.get(session.id) ?? []) if (call.mode !== event.data.mode) call.controller.abort(/* @__PURE__ */ new Error("sandbox mode changed"));
902
- }, { global: true });
903
- ctx.effect(() => async () => {
904
- this.disposed = true;
905
- const calls = [...this.calls.values()].flatMap((calls) => [...calls]);
906
- for (const call of calls) call.controller.abort(/* @__PURE__ */ new Error("PTC tool registry disposed"));
907
- await Promise.all(calls.map((call) => call.done));
908
- }, "PTC calls");
909
- }
910
- /**
911
- * Await canceled predecessors before resolving authority and admitting a call.
912
- * @param sessionId - Calling Session.
913
- * @param signal - Caller cancellation.
914
- * @param mode - Current standing mode, read after preceding cleanup.
915
- * @param run - Complete call, including nested-tool cleanup.
916
- * @returns The call result.
917
- */
918
- async run(sessionId, signal, mode, run) {
919
- for (;;) {
920
- const pending = [...this.calls.get(sessionId) ?? []].filter((call) => call.controller.signal.aborted);
921
- if (pending.length === 0) break;
922
- await Promise.all(pending.map((call) => call.done));
923
- }
924
- signal.throwIfAborted();
925
- if (this.disposed) throw new Error("PTC tool registry disposed");
926
- const controller = new AbortController();
927
- const done = Promise.withResolvers();
928
- const call = {
929
- mode: mode(),
930
- controller,
931
- done: done.promise
932
- };
933
- let calls = this.calls.get(sessionId);
934
- if (calls === void 0) this.calls.set(sessionId, calls = /* @__PURE__ */ new Set());
935
- calls.add(call);
936
- try {
937
- return await run(AbortSignal.any([signal, controller.signal]));
938
- } finally {
939
- calls.delete(call);
940
- if (calls.size === 0) this.calls.delete(sessionId);
941
- done.resolve(void 0);
942
- }
943
- }
944
- };
945
- //#endregion
946
- //#region lib/types/ptc.js
947
360
  /**
948
- * PTC mode `run_code` transport. Programs call the registry's agent-visible
949
- * tools through nested executions scheduled under the native concurrency
950
- * contract; each sub-dispatch is logged for reconstruction, while only the
951
- * outer curated result enters model history.
952
- * @module @deepseek-ai/dsh-tools/src/ptc
361
+ * Omit execution and presentation callbacks from a tool definition.
362
+ * @param definition - visible capability or executor-owned transport.
363
+ * @param detachParameters - copy parameters for a caller-owned inspection result.
364
+ * @returns the model-facing schema fields.
953
365
  */
954
- /** The model-facing name of the PTC mode tool. */
955
- const RUN_CODE_NAME = "run_code";
956
- /** Keep tool-call rules here; the runtime owns evaluation syntax and state retention. */
957
- function runCodeFlavor(language, execution = {
958
- programDescription: "the program to execute",
959
- outputInstruction: "Curate the program output.",
960
- codeDescription: `The ${language} program to execute, following this tool's execution instructions.`
961
- }) {
366
+ function projectToolSchema(definition, detachParameters) {
367
+ const { name, description, parameters, deferLoading } = definition;
368
+ const detached = detachParameters ? snapshotJsonValue(parameters) : parameters;
369
+ if (detached === void 0) throw new Error(`tool "${name}" parameters must be lossless JSON before schema projection`);
962
370
  return {
963
- description: `Execute a ${language} program against the available tools. Takes two required arguments: \`code\`, ${execution.programDescription}, and \`description\`, a short summary of what the program does. Call tools as \`await tools.name(args)\` per the declarations in the system prompt. ${execution.outputInstruction} Image-bearing subtool results are attached after the run.`,
964
- codeDescription: execution.codeDescription
371
+ name,
372
+ description,
373
+ parameters: detached,
374
+ ...deferLoading === true ? { deferLoading } : {}
965
375
  };
966
376
  }
967
- const TYPESCRIPT_FLAVOR = runCodeFlavor("TypeScript");
968
- const TYPESCRIPT_FUNCTION_FLAVOR = runCodeFlavor("TypeScript", {
969
- programDescription: "the BODY of an async function (erasable syntax only; top-level `await` and `return` work)",
970
- outputInstruction: "Only what you print or return is program output — curate it.",
971
- codeDescription: "The program: the body of an async TypeScript function."
972
- });
973
- /** Per-language `run_code` schema flavors (see {@link RunCodeFlavor}); one entry per {@link PtcSdkLanguage}. */
974
- const RUN_CODE_FLAVORS = {
975
- typescript: TYPESCRIPT_FLAVOR,
976
- python: runCodeFlavor("Python")
377
+ //#endregion
378
+ //#region lib/types/index.js
379
+ /** Tool definitions and scoped dispatch to plugin-owned executors. @module */
380
+ /** One scope's complete tool-registry contribution. */
381
+ var ToolLayer = class {
382
+ tools;
383
+ restrictions = new AnonymousEntries();
384
+ constructor(scope) {
385
+ this.tools = new NamedEntries((name) => /* @__PURE__ */ new Error(scope === void 0 ? `tool "${name}" is already registered (for a per-agent variant, register through that agent's \`agent.ctx\` instead)` : `tool "${name}" is already registered in this scope`));
386
+ }
387
+ /** Whether every contribution table in this aggregate layer is empty. */
388
+ isEmpty() {
389
+ return this.tools.isEmpty() && this.restrictions.isEmpty();
390
+ }
391
+ /** Whether every compiled restriction in this layer admits a global tool name. */
392
+ admits(name) {
393
+ for (const filter of this.restrictions.values()) if (filter.allow !== void 0 && !filter.allow.has(name) || filter.deny !== void 0 && filter.deny.has(name)) return false;
394
+ return true;
395
+ }
977
396
  };
978
- /**
979
- * The `description` parameter's model-facing description: language-independent
980
- * (the UI label contract is the same for every runtime), shared between the
981
- * static spec and the language-aware `parameters` getter so the two emissions
982
- * can never drift.
983
- */
984
- const RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION = "Clear, concise description of what this program does in active voice, 5-10 words (shown in the UI). Examples: \"Count TODO markers across packages\"; \"Read failing test and its fixture\"; \"Rename config key in every cordis.yml\".";
985
- const RUN_CODE_CONTROLS = {
986
- timeoutMs: {
987
- type: "number",
988
- description: "Positive elapsed-time budget in milliseconds, capped by the deployment maximum."
989
- },
990
- sandbox_permissions: {
991
- type: "string",
992
- enum: [...ESCALATION_TARGETS],
993
- description: "Wider sandbox mode for this complete program execution; requires justification and approval."
994
- },
995
- justification: {
996
- type: "string",
997
- description: "Reason this complete program needs wider access, shown to the user for approval. Use the language of the user’s current request."
397
+ var GuardLayer = class {
398
+ guards = new AnonymousEntries();
399
+ isEmpty() {
400
+ return this.guards.isEmpty();
998
401
  }
999
402
  };
1000
- function controlParameters(runtime) {
1001
- if (runtime === void 0) return RUN_CODE_CONTROLS;
1002
- return {
1003
- ...runtime.timeout === void 0 ? {} : { timeoutMs: {
1004
- ...RUN_CODE_CONTROLS.timeoutMs,
1005
- description: `Positive elapsed-time budget in milliseconds, including nested tool and approval waits. Default ${runtime.timeout.defaultMs}; capped at ${runtime.timeout.maxMs}. Zero does not disable the deadline.`
1006
- } },
1007
- ...runtime.sandboxMode === void 0 ? {} : {
1008
- sandbox_permissions: RUN_CODE_CONTROLS.sandbox_permissions,
1009
- justification: RUN_CODE_CONTROLS.justification
1010
- }
1011
- };
1012
- }
1013
- function escalationGuidance(runtime) {
1014
- return runtime?.sandboxMode === void 0 ? "" : " A sandbox escalation approves this complete program for one execution only. Nested tools retain their own policies and approvals. Request wider access only after evidence of a denial. Earlier effects may already have completed: inspect them before explicitly retrying. Programs are never replayed automatically.";
1015
- }
1016
- /**
1017
- * Resolve the {@link RunCodeFlavor} for the loaded runtime's language, read at
1018
- * schema-emission time so the model-visible `run_code` schema always matches
1019
- * the SDK section's language. `peekRuntime` returns `undefined` only when no
1020
- * runtime is mounted, which reaches this function through definition readers
1021
- * and `schemas()` — the doc-catalog harvest is the only shipped one, and none
1022
- * of them feeds a model, because `wireSchemas` calls `requirePtcRuntime`
1023
- * before projecting — so that path degrades to {@link TYPESCRIPT_FLAVOR}. A
1024
- * mounted runtime whose language has no flavor entry fails loud, exactly as
1025
- * `requirePtcRuntime` rejects it at assembly. Keeping this table in step with
1026
- * `SDK_RENDERERS` is the compiler's job ({@link PtcSdkLanguage}); what this
1027
- * guard owns is the runtime-supplied language neither table knows, which never
1028
- * yields a wrong-language schema for a real runtime.
1029
- */
1030
- function resolveFlavor(peekRuntime) {
1031
- const runtime = peekRuntime();
1032
- if (runtime === void 0) return TYPESCRIPT_FLAVOR;
1033
- const flavor = RUN_CODE_FLAVORS[runtime.language];
1034
- if (!Object.hasOwn(RUN_CODE_FLAVORS, runtime.language) || flavor === void 0) {
1035
- const known = Object.keys(RUN_CODE_FLAVORS).map((name) => JSON.stringify(name)).join(", ");
1036
- throw new Error(`dsh-tools: no run_code schema flavor registered for runtime language ${JSON.stringify(runtime.language)} (known: ${known})`);
403
+ /** Concrete tool registry and scoped executor dispatcher. */
404
+ var ToolsService = class extends Service {
405
+ static inject = ["systemPrompt"];
406
+ static Config = z.object({
407
+ mode: z.never().description("Removed. Mount a native or PTC tool executor instead."),
408
+ maxParallelSubCalls: z.never().description("Moved to the PTC tool executor configuration.")
409
+ });
410
+ layers = new ScopedLayers((scope) => new ToolLayer(scope), () => {
411
+ this.ctx.emit("tools/change");
412
+ });
413
+ scoped = /* @__PURE__ */ new WeakMap();
414
+ root;
415
+ guards = new ScopedLayers(() => new GuardLayer(), () => {});
416
+ constructor(ctx) {
417
+ super(ctx, "tools");
418
+ ctx.systemPrompt.tools(({ scope, toolSet }) => {
419
+ const description = this.selectExecutor(scope).describe(this.definitions(scope, toolSet));
420
+ return {
421
+ ...description,
422
+ knownNames: description.knownNames ?? [...this.view(scope).knownNames]
423
+ };
424
+ });
1037
425
  }
1038
- return runtime.language === "typescript" && runtime.programFormat === "function-body" ? TYPESCRIPT_FUNCTION_FLAVOR : flavor;
1039
- }
1040
- /**
1041
- * Thrown by `run_code` when the program run itself failed — a program
1042
- * exception, a budget expiry, an abort, or substrate death. Extends
1043
- * {@link HarnessError} (`code: 'CODE_RUN_FAILED'`); the registry's execution
1044
- * pipeline converts it into a structured `isError` result whose text carries
1045
- * the failure kind plus the captured logs, so the model can self-correct.
1046
- */
1047
- var CodeRunFailedError = class extends HarnessError {
1048
- constructor(message) {
1049
- super(message, "CODE_RUN_FAILED");
1050
- this.name = "CodeRunFailedError";
426
+ /**
427
+ * Register globally or in the calling agent scope. Scoped tools shadow
428
+ * globals; duplicates within one layer and the reserved `run_code` name fail.
429
+ * @param definition - tool schema, execution, and optional finalization/presentation callbacks.
430
+ * @param options - optional step-time activation condition.
431
+ * @returns the exact disposer that unregisters the tool.
432
+ */
433
+ register(definition, options = {}) {
434
+ const name = definition.name;
435
+ const output = definition.output;
436
+ if (output === void 0 || typeof output !== "object" || typeof output.render !== "function" || output.presentationMeta !== void 0 && typeof output.presentationMeta !== "function") throw new TypeError(`tool "${name}" must declare output { schema, render, presentationMeta? }`);
437
+ assertSupportedJsonSchema(output.schema);
438
+ const timeoutMs = definition.timeoutMs;
439
+ if (timeoutMs !== void 0 && (!Number.isFinite(timeoutMs) || timeoutMs <= 0)) throw new TypeError(`tool "${name}" timeoutMs must be a positive finite number`);
440
+ if (name === "run_code") throw new Error(`tool name "${RUN_CODE_NAME}" is reserved for the PTC mode presentation transport and cannot be registered or shadowed`);
441
+ return this.layers.effect(this.ctx, (layer) => layer.tools.insert(name, {
442
+ definition,
443
+ when: options.when
444
+ }), { label: "tools.register()" });
1051
445
  }
1052
- };
1053
- /**
1054
- * Snapshot one binding call's argument as lossless JSON, then snapshot that
1055
- * detached value again so dispatch and logging stay independent without
1056
- * reintroducing structured-clone's platform-specific nesting limit.
1057
- */
1058
- function jsonNormalizeArgs(value) {
1059
- let snapshot;
1060
- try {
1061
- snapshot = snapshotJsonValue(value);
1062
- } catch (error) {
1063
- throw new Error(`tool arguments must be lossless JSON: ${error instanceof Error ? error.message : String(error)}`);
446
+ /**
447
+ * Restrict global tools for the calling agent scope. Empty filters, unknown
448
+ * names, scope-local names, and reserved transport names fail. Restrictions
449
+ * intersect; scoped registrations remain visible.
450
+ * @param filter - global-tool mask: `allow` (keep only) and/or `deny` (remove).
451
+ * @returns the exact disposer that lifts this restriction.
452
+ */
453
+ restrict(filter) {
454
+ const scope = scopeOf(this.ctx);
455
+ if (scope === void 0) throw new Error("tools.restrict() requires a scoped context (agent.ctx): a context-global restriction would mask every agent — deny the tool for the intended agent instead");
456
+ const allow = filter.allow;
457
+ const deny = filter.deny;
458
+ if (allow === void 0 && deny === void 0) throw new Error("tools.restrict({}) is a no-op: pass `allow` and/or `deny` (an empty filter is almost always a materialized-empty-config bug)");
459
+ const compiled = {
460
+ ...allow !== void 0 ? { allow: new Set(allow) } : {},
461
+ ...deny !== void 0 ? { deny: new Set(deny) } : {}
462
+ };
463
+ if ([...allow ?? [], ...deny ?? []].includes("run_code")) throw new Error(`tools.restrict() cannot name reserved PTC mode presentation transport "${RUN_CODE_NAME}"; restrict end-capability tools instead`);
464
+ const known = this.view(scope).restrictableNames;
465
+ const unknown = [...allow ?? [], ...deny ?? []].filter((name) => !known.has(name));
466
+ if (unknown.length > 0) throw new Error(`tools.restrict() names unknown global tool${unknown.length > 1 ? "s" : ""} ${unknown.map((n) => `"${n}"`).join(", ")}; known global tools: ${[...known].sort().join(", ") || "(none)"}`);
467
+ return this.layers.effect(this.ctx, (layer) => layer.restrictions.append(compiled), { label: "tools.restrict()" });
1064
468
  }
1065
- if (snapshot === void 0) throw new Error("tool arguments must be lossless JSON (call the tool with an arguments object, e.g. `{}`)");
1066
- const logged = snapshotJsonValue(snapshot);
1067
- /* v8 ignore next -- snapshot is already a detached lossless JSON value. */
1068
- if (logged === void 0) throw new Error("tool arguments could not be detached for durable logging");
1069
- return {
1070
- dispatched: snapshot,
1071
- logged
1072
- };
1073
- }
1074
- /** Two-space JSON presentation, matching the existing shallow `run_code` text contract. */
1075
- const JSON_INDENT = " ";
1076
- /**
1077
- * ECMAScript caps `JSON.stringify`'s `space` string at ten characters. The
1078
- * renderer also caps TOTAL indentation there, compacting deeper subtrees, so
1079
- * formatted output remains linear in the canonical JSON size.
1080
- */
1081
- const MAX_JSON_INDENT_CHARS = 10;
1082
- /** Render one non-string JSON root without recursive traversal or unbounded indentation growth. */
1083
- function renderJsonValue(value) {
1084
- const chunks = [];
1085
- const tasks = [{
1086
- kind: "value",
1087
- value,
1088
- depth: 0,
1089
- compact: false
1090
- }];
1091
- for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {
1092
- if (task.kind === "text") {
1093
- chunks.push(task.text);
1094
- continue;
1095
- }
1096
- const current = task.value;
1097
- if (current === null || typeof current === "boolean" || typeof current === "number") {
1098
- chunks.push(String(current));
1099
- continue;
1100
- }
1101
- if (typeof current === "string") {
1102
- chunks.push(JSON.stringify(current));
1103
- continue;
469
+ /**
470
+ * Resolve visible tools and pre-restriction names. Restrictions across the
471
+ * scope chain intersect over inherited global and ancestor tools; the viewing
472
+ * scope's own registrations remain exempt. Nearer registrations shadow
473
+ * farther ones. Pre-restriction names support restriction and prompt-order validation.
474
+ * @param scope - the viewing scope (the agent), or undefined for the global view.
475
+ * @returns the complete derived view for that scope.
476
+ */
477
+ view(scope) {
478
+ const layers = this.layers.chainLayers(scope);
479
+ const own = this.layers.peek(scope);
480
+ const inherited = new Map(this.layers.global.tools.entries());
481
+ for (const layer of layers) {
482
+ if (layer === own) continue;
483
+ for (const [name, registration] of layer.tools.entries()) inherited.set(name, registration);
1104
484
  }
1105
- const compact = task.compact || (task.depth + 1) * 2 > MAX_JSON_INDENT_CHARS;
1106
- const childDepth = task.depth + 1;
1107
- if (Array.isArray(current)) {
1108
- chunks.push("[");
1109
- if (current.length === 0) {
1110
- chunks.push("]");
1111
- continue;
1112
- }
1113
- tasks.push({
1114
- kind: "text",
1115
- text: compact ? "]" : `\n${JSON_INDENT.repeat(task.depth)}]`
1116
- });
1117
- for (let index = current.length - 1; index >= 0; index--) {
1118
- const item = current[index];
1119
- /* v8 ignore next -- canonical JsonValue arrays are dense. */
1120
- if (item === void 0) throw new Error("cannot render a sparse JSON array");
1121
- tasks.push({
1122
- kind: "value",
1123
- value: item,
1124
- depth: childDepth,
1125
- compact
1126
- });
1127
- tasks.push({
1128
- kind: "text",
1129
- text: compact ? index === 0 ? "" : "," : `${index === 0 ? "\n" : ",\n"}${JSON_INDENT.repeat(childDepth)}`
1130
- });
485
+ const visible = /* @__PURE__ */ new Map();
486
+ const registrations = /* @__PURE__ */ new Map();
487
+ const knownNames = /* @__PURE__ */ new Set();
488
+ const restrictableNames = /* @__PURE__ */ new Set();
489
+ for (const [name, registration] of inherited) {
490
+ knownNames.add(name);
491
+ restrictableNames.add(name);
492
+ if (layers.every((layer) => layer.admits(name))) {
493
+ visible.set(name, registration.definition);
494
+ registrations.set(name, registration);
1131
495
  }
1132
- continue;
1133
496
  }
1134
- const keys = Object.keys(current);
1135
- chunks.push("{");
1136
- if (keys.length === 0) {
1137
- chunks.push("}");
1138
- continue;
1139
- }
1140
- tasks.push({
1141
- kind: "text",
1142
- text: compact ? "}" : `\n${JSON_INDENT.repeat(task.depth)}}`
1143
- });
1144
- for (let index = keys.length - 1; index >= 0; index--) {
1145
- const key = keys[index];
1146
- /* v8 ignore next -- the loop is bounded by the captured key count. */
1147
- if (key === void 0) throw new Error("cannot render a missing JSON object key");
1148
- const item = current[key];
1149
- /* v8 ignore next -- canonical JsonValue records contain no undefined properties. */
1150
- if (item === void 0) throw new Error("cannot render an undefined JSON object property");
1151
- tasks.push({
1152
- kind: "value",
1153
- value: item,
1154
- depth: childDepth,
1155
- compact
1156
- });
1157
- tasks.push({
1158
- kind: "text",
1159
- text: compact ? `${index === 0 ? "" : ","}${JSON.stringify(key)}:` : `${index === 0 ? "\n" : ",\n"}${JSON_INDENT.repeat(childDepth)}${JSON.stringify(key)}: `
1160
- });
1161
- }
1162
- }
1163
- return chunks.join("");
1164
- }
1165
- /** Render one present program completion value for the model-facing result text. */
1166
- function renderValue(value) {
1167
- return typeof value === "string" ? value : renderJsonValue(value);
1168
- }
1169
- /**
1170
- * Build the `run_code` {@link ToolDefinition}: required `code` and
1171
- * `description` parameters, executed through the dispatch bridge described
1172
- * above. The
1173
- * registry reserves it as presentation infrastructure under non-native modes,
1174
- * outside the filterable global/scoped capability layers.
1175
- * @param registry - the owning registry (sub-calls go through its `execute`,
1176
- * bindings cover its registered tools).
1177
- * @param options - the registry-private capabilities described above.
1178
- * @param ctx - Owning registry context, independent of the calling Agent.
1179
- * @returns the registry-ready definition.
1180
- */
1181
- function createRunCodeTool(registry, options, ctx) {
1182
- const { requireRuntime, peekRuntime, maxParallel, shapeDispatchLog } = options;
1183
- const stateOwners = /* @__PURE__ */ new WeakMap();
1184
- const calls = new PtcCalls(ctx);
1185
- const definition = defineTool({
1186
- name: RUN_CODE_NAME,
1187
- description: TYPESCRIPT_FLAVOR.description,
1188
- parameters: {
1189
- code: {
1190
- type: "string",
1191
- required: true,
1192
- description: TYPESCRIPT_FLAVOR.codeDescription
1193
- },
1194
- description: {
1195
- type: "string",
1196
- required: true,
1197
- description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION
1198
- },
1199
- ...RUN_CODE_CONTROLS
1200
- },
1201
- output: {
1202
- schema: {
1203
- type: "object",
1204
- additionalProperties: false,
1205
- properties: {
1206
- logs: {
1207
- type: "array",
1208
- required: true,
1209
- items: { type: "string" }
1210
- },
1211
- result: { type: "json" },
1212
- sandbox: {
1213
- type: "object",
1214
- additionalProperties: false,
1215
- properties: {
1216
- mode: {
1217
- type: "string",
1218
- required: true,
1219
- enum: [
1220
- "read-only",
1221
- "workspace-write",
1222
- "danger-full-access"
1223
- ]
1224
- },
1225
- denied: {
1226
- type: "boolean",
1227
- required: true
1228
- },
1229
- enforcement: {
1230
- type: "string",
1231
- enum: ["full", "partial"]
1232
- }
1233
- }
1234
- }
1235
- }
1236
- },
1237
- render: (_args, value) => {
1238
- const rendered = value.result === void 0 ? "" : renderValue(value.result);
1239
- const parts = [value.logs.join("\n"), rendered].filter((part) => part.length > 0);
1240
- if (value.sandbox?.enforcement === "partial") parts.push("File sandbox enforcement is partial on this host.");
1241
- if (value.sandbox?.denied) parts.push(`The ${value.sandbox.mode} file sandbox denied an operation.${escalationGuidance(peekRuntime())}`);
1242
- return [{
1243
- type: "text",
1244
- text: parts.length > 0 ? parts.join("\n") : "(run_code completed with no output)"
1245
- }];
1246
- }
1247
- },
1248
- async execute(args, exec) {
1249
- if (args.description.trim().length === 0) throw new Error("invalid description: expected a non-empty string");
1250
- const runtime = requireRuntime();
1251
- const run = async (callSignal) => {
1252
- validateEscalationArgs(args.sandbox_permissions, args.justification);
1253
- if (args.timeoutMs !== void 0 && runtime.timeout === void 0) throw new Error("timeoutMs is not available for this PTC runtime");
1254
- if (args.timeoutMs !== void 0 && (!Number.isFinite(args.timeoutMs) || args.timeoutMs <= 0)) throw new Error("invalid timeoutMs: expected a positive finite number");
1255
- const standingPolicy = runtime.sandboxMode === void 0 ? void 0 : options.resolveSandboxPolicy(exec);
1256
- let policy = standingPolicy;
1257
- if (args.sandbox_permissions !== void 0 && args.justification !== void 0) {
1258
- if (standingPolicy === void 0) throw new Error("sandbox_permissions is not available for this PTC runtime");
1259
- const approvedMode = await approveEscalation({
1260
- requestedMode: args.sandbox_permissions,
1261
- justification: args.justification,
1262
- effectiveMode: standingPolicy.mode,
1263
- subject: "program"
1264
- }, {
1265
- approver: options.peekApprover(),
1266
- agent: exec.agent,
1267
- callId: exec.callId,
1268
- toolName: RUN_CODE_NAME,
1269
- signal: callSignal
1270
- });
1271
- policy = {
1272
- ...standingPolicy,
1273
- mode: approvedMode
1274
- };
1275
- }
1276
- const cwd = await options.resolveWorkingDirectory({
1277
- ...exec,
1278
- signal: callSignal
1279
- });
1280
- callSignal.throwIfAborted();
1281
- const runController = new AbortController();
1282
- const onOuterAbort = () => {
1283
- runController.abort(callSignal.reason);
1284
- };
1285
- callSignal.addEventListener("abort", onOuterAbort, { once: true });
1286
- let dispatches = 0;
1287
- const pendingQueue = [];
1288
- const inFlight = /* @__PURE__ */ new Set();
1289
- /** Tracked settle-event side work (log-content listener + append), drained at run settlement. */
1290
- const logWork = /* @__PURE__ */ new Set();
1291
- const commitQueue = [];
1292
- let exclusiveActive = false;
1293
- let driving = false;
1294
- let driverRun = Promise.resolve();
1295
- let wake;
1296
- const wakeup = () => {
1297
- const release = wake;
1298
- wake = void 0;
1299
- release?.();
1300
- };
1301
- /**
1302
- * The single ordered lane. Each pass commits the head-of-line settled
1303
- * dispatch (ordered post-execute), then starts the next queued entry if
1304
- * its slot is free (ordered pre-execute), and otherwise sleeps until a
1305
- * body settles or a new submission arrives. One run reaching the
1306
- * empty-queues/empty-pool state is quiescence.
1307
- */
1308
- const drive = () => {
1309
- if (driving) return driverRun;
1310
- driving = true;
1311
- driverRun = (async () => {
1312
- try {
1313
- for (;;) {
1314
- const signal = new Promise((resolve) => {
1315
- wake = resolve;
1316
- });
1317
- const commitHead = commitQueue[0];
1318
- if (commitHead !== void 0 && commitHead.settled) {
1319
- commitQueue.shift();
1320
- await commitHead.commit();
1321
- if (commitHead.mode === "exclusive") exclusiveActive = false;
1322
- continue;
1323
- }
1324
- const head = pendingQueue[0];
1325
- if (head !== void 0) {
1326
- if (runController.signal.aborted) {
1327
- pendingQueue.shift();
1328
- head.abandon();
1329
- continue;
1330
- }
1331
- const mode = head.classify();
1332
- if (!exclusiveActive && (mode === "exclusive" ? inFlight.size === 0 : inFlight.size < maxParallel)) {
1333
- if (mode === "exclusive") exclusiveActive = true;
1334
- head.mode = mode;
1335
- pendingQueue.shift();
1336
- commitQueue.push(head);
1337
- await head.start();
1338
- const flight = head.flight.finally(() => {
1339
- inFlight.delete(flight);
1340
- wakeup();
1341
- });
1342
- inFlight.add(flight);
1343
- continue;
1344
- }
1345
- }
1346
- if (pendingQueue.length === 0 && commitQueue.length === 0 && inFlight.size === 0) return;
1347
- await signal;
1348
- }
1349
- } finally {
1350
- driving = false;
1351
- wake = void 0;
1352
- }
1353
- })();
1354
- return driverRun;
1355
- };
1356
- /** Every dispatch settled AND committed; nothing can start (the run is aborted at call time). */
1357
- const drainDispatches = async () => {
1358
- await drive();
1359
- while (logWork.size > 0) await Promise.allSettled([...logWork]);
1360
- };
1361
- const runOver = () => runController.signal.aborted;
1362
- const binding = (schema) => async (rawArgs) => {
1363
- const { name } = schema;
1364
- if (runOver()) throw new Error(`run_code run is over (${String(runController.signal.reason)}); ${name} not dispatched`);
1365
- const normalized = jsonNormalizeArgs(rawArgs);
1366
- const n = ++dispatches;
1367
- const subCallId = brandString(`${String(exec.callId)}:ptc:${n}`);
1368
- const input = {
1369
- callId: subCallId,
1370
- rootCallId: exec.rootCallId,
1371
- name,
1372
- schema,
1373
- arguments: normalized.dispatched,
1374
- ...exec.agent ? { agent: exec.agent } : {},
1375
- parent: exec.token,
1376
- signal: runController.signal
1377
- };
1378
- const scheduler = registry[TOOL_RUNTIME_SCHEDULER];
1379
- const outcome = await new Promise((resolve, reject) => {
1380
- let parked;
1381
- const settle = (result) => {
1382
- resolve(result.isError ? {
1383
- isError: true,
1384
- message: result.error.message
1385
- } : {
1386
- isError: false,
1387
- value: result.value
1388
- });
1389
- const agent = exec.agent;
1390
- if (agent === void 0) return;
1391
- const task = (async () => {
1392
- const logged = await shapeDispatchLog({
1393
- exec,
1394
- agent,
1395
- subCallId,
1396
- name,
1397
- isError: result.isError,
1398
- content: result.content
1399
- });
1400
- agent.session.append("tool/ptc-dispatch", {
1401
- rootCallId: exec.rootCallId,
1402
- parentCallId: exec.callId,
1403
- subCallId,
1404
- name,
1405
- arguments: normalized.logged,
1406
- isError: result.isError,
1407
- ...result.error?.info === void 0 ? {} : { error: result.error.info },
1408
- content: logged,
1409
- ...result.meta === void 0 ? {} : { meta: result.meta }
1410
- });
1411
- })().finally(() => {
1412
- logWork.delete(task);
1413
- });
1414
- logWork.add(task);
1415
- };
1416
- pendingQueue.push({
1417
- flight: Promise.resolve(),
1418
- settled: false,
1419
- classify: () => registry.executionMode(input).kind,
1420
- abandon: () => {
1421
- reject(/* @__PURE__ */ new Error(`run_code run is over (${String(runController.signal.reason)}); ${name} tool call abandoned`));
1422
- },
1423
- async start() {
1424
- exec.agent?.session.append("tool/ptc-dispatch-start", {
1425
- rootCallId: exec.rootCallId,
1426
- parentCallId: exec.callId,
1427
- subCallId,
1428
- name,
1429
- arguments: normalized.logged
1430
- });
1431
- const prepared = await scheduler.prepare(input);
1432
- if (prepared.kind === "dispatch") {
1433
- this.flight = scheduler.dispatch(prepared.exec).then((dispatchOutcome) => {
1434
- parked = {
1435
- kind: dispatchOutcome.kind,
1436
- exec: prepared.exec,
1437
- result: dispatchOutcome.result
1438
- };
1439
- this.settled = true;
1440
- });
1441
- return;
1442
- }
1443
- parked = {
1444
- kind: prepared.kind,
1445
- exec: prepared.exec,
1446
- result: prepared.result
1447
- };
1448
- this.settled = true;
1449
- },
1450
- async commit() {
1451
- /* v8 ignore next -- commit() runs only after `settled` flipped, which set parked. */
1452
- if (parked === void 0) return;
1453
- const result = parked.kind === "post-result" ? await scheduler.finalize(parked.exec, parked.result) : scheduler.finish(parked.exec, parked.result);
1454
- if (!result.isError && result.content.some((block) => block.type === "image")) exec.deferContext(createUserMessage({
1455
- content: result.content,
1456
- source: { kind: "ptc-mode" }
1457
- }));
1458
- for (const context of result.additionalContexts ?? []) exec.deferContext(context);
1459
- if (result.concludesTurn) exec.concludeTurn();
1460
- settle(result);
1461
- while (logWork.size > maxParallel) await Promise.race(logWork);
1462
- }
1463
- });
1464
- wakeup();
1465
- drive();
1466
- });
1467
- if (runOver()) throw new Error(`run_code run is over (${String(runController.signal.reason)}); ${name} result discarded`);
1468
- if (outcome.isError) throw new Error(outcome.message);
1469
- return outcome.value;
1470
- };
1471
- const functions = Object.create(null);
1472
- for (const schema of registry.schemas(exec.agent)) {
1473
- if (schema.name === "run_code") continue;
1474
- Object.defineProperty(functions, schema.name, {
1475
- enumerable: true,
1476
- value: binding(deepFreeze(schema))
1477
- });
1478
- }
1479
- try {
1480
- let result;
1481
- try {
1482
- if (exec.agent !== void 0) {
1483
- const agent = exec.agent;
1484
- let runtimes = stateOwners.get(agent);
1485
- if (runtimes === void 0) stateOwners.set(agent, runtimes = /* @__PURE__ */ new WeakSet());
1486
- let provider = runtime;
1487
- for (;;) {
1488
- const original = provider[symbols.original];
1489
- if (original === void 0) break;
1490
- provider = original;
1491
- }
1492
- if (!runtimes.has(provider)) {
1493
- agent.ctx.effect(() => () => runtime.release(agent), "PTC retained environment");
1494
- runtimes.add(provider);
1495
- }
1496
- }
1497
- result = await runtime.run(runtime.resolve({
1498
- program: args.code,
1499
- ...exec.agent === void 0 || policy?.mode !== standingPolicy?.mode ? {} : { stateOwner: exec.agent },
1500
- bindings: [{
1501
- global: "tools",
1502
- functions,
1503
- errorClass: {
1504
- name: "ToolCallError",
1505
- memberNameProperty: "toolName"
1506
- }
1507
- }],
1508
- signal: runController.signal,
1509
- ...cwd !== void 0 ? { cwd } : {},
1510
- ...policy !== void 0 ? { sandboxPolicy: policy } : {},
1511
- ...args.timeoutMs !== void 0 ? { timeoutMs: args.timeoutMs } : {}
1512
- }));
1513
- } finally {
1514
- runController.abort("run_code settled");
1515
- await drainDispatches();
1516
- }
1517
- if (result.error) {
1518
- const logsText = result.logs.length > 0 ? `\nCaptured output:\n${result.logs.join("\n")}` : "";
1519
- const sandboxText = result.sandbox === void 0 ? "" : `\nFile sandbox: ${result.sandbox.mode}${result.sandbox.enforcement === void 0 ? "" : `; enforcement: ${result.sandbox.enforcement}`}${result.sandbox.denied ? "; operation denied" : ""}.`;
1520
- throw new CodeRunFailedError(`code run failed (${result.error.kind}): ${result.error.message}${logsText}${sandboxText}${result.sandbox?.denied ? escalationGuidance(runtime) : ""}`);
1521
- }
1522
- return {
1523
- logs: result.logs,
1524
- ...result.sandbox === void 0 ? {} : { sandbox: result.sandbox },
1525
- ...result.value !== void 0 ? { result: result.value } : {}
1526
- };
1527
- } finally {
1528
- callSignal.removeEventListener("abort", onOuterAbort);
1529
- }
1530
- };
1531
- return runtime.sandboxMode === void 0 || exec.agent === void 0 ? run(exec.signal) : calls.run(exec.agent.session.id, exec.signal, () => options.resolveSandboxPolicy(exec).mode, run);
1532
- },
1533
- presentCall: (args) => ({
1534
- card: "generic",
1535
- title: args.description,
1536
- kind: "execute",
1537
- rawInput: args.code
1538
- })
1539
- });
1540
- Object.defineProperty(definition, "description", {
1541
- enumerable: true,
1542
- get: () => {
1543
- const runtime = peekRuntime();
1544
- const instructions = runtime?.executionInstructions;
1545
- return resolveFlavor(peekRuntime).description + (instructions ? ` ${instructions}` : "") + (runtime === void 0 ? "" : " Each program starts in the Session's current directory. Running programs keep their initial directory.") + escalationGuidance(runtime);
1546
- }
1547
- });
1548
- Object.defineProperty(definition, "parameters", {
1549
- enumerable: true,
1550
- get: () => parameterSchemaSpecToJsonSchema({
1551
- code: {
1552
- type: "string",
1553
- required: true,
1554
- description: resolveFlavor(peekRuntime).codeDescription
1555
- },
1556
- description: {
1557
- type: "string",
1558
- required: true,
1559
- description: RUN_CODE_DESCRIPTION_PARAM_DESCRIPTION
1560
- },
1561
- ...controlParameters(peekRuntime())
1562
- })
1563
- });
1564
- return definition;
1565
- }
1566
- //#endregion
1567
- //#region lib/types/ts-types.js
1568
- /**
1569
- * PTC mode codegen: the pure projection from registered tool schemas to the TypeScript SDK
1570
- * text the model programs against (the `tools:sdk` prompt section). Sibling of
1571
- * `json-schema.ts` — `schemas()` (native function calling) and this module (the generated
1572
- * `declare const tools` API) are two projections of the same store.
1573
- * @module @deepseek-ai/dsh-tools/src/ts-types
1574
- */
1575
- /** Property names that are valid bare TS identifiers; anything else is quoted. */
1576
- const IDENTIFIER$1 = /^[A-Za-z_$][A-Za-z0-9_$]*$/;
1577
- /** Render an object key: bare when it is a valid identifier, quoted otherwise (every name stays reachable, no aliasing). */
1578
- function renderKey(name) {
1579
- return IDENTIFIER$1.test(name) ? name : JSON.stringify(name);
1580
- }
1581
- /** One `indent`-deep line prefix (two spaces per level). */
1582
- function pad$1(indent) {
1583
- return " ".repeat(indent);
1584
- }
1585
- /** A one-line JSDoc block for a schema `description`, or no lines when there is none. */
1586
- function docLines$1(description, indent) {
1587
- if (typeof description !== "string" || description.length === 0) return [];
1588
- const collapsed = description.replace(/\s+/g, " ").trim();
1589
- return [`${pad$1(indent)}/** ${collapsed.replaceAll("*/", String.raw`*\/`)} */`];
1590
- }
1591
- /** Render one scalar already validated by the unified schema boundary. */
1592
- function renderScalar(value) {
1593
- return JSON.stringify(value);
1594
- }
1595
- /** Render a validated scalar `const`/`enum`, falling back to the broad type. */
1596
- function renderConstrainedScalar$1(node, type) {
1597
- const broad = type === "integer" ? "number" : type;
1598
- if (Object.hasOwn(node, "const")) return renderScalar(node.const);
1599
- if (Object.hasOwn(node, "enum")) return node.enum.map(renderScalar).join(" | ");
1600
- return broad;
1601
- }
1602
- /** Build one document from captured parts while retaining the legacy array-parenthesization test. */
1603
- function typeDocumentFrom(parts) {
1604
- return {
1605
- parts,
1606
- containsUnionOrIntersection: parts.some((part) => typeof part === "string" ? part.includes("|") || part.includes("&") : part.containsUnionOrIntersection)
1607
- };
1608
- }
1609
- /** Build a small document without an intermediate array at each call site. */
1610
- function typeDocument(...parts) {
1611
- return typeDocumentFrom(parts);
1612
- }
1613
- /** Flatten a nested document with an explicit work stack. */
1614
- function flattenTypeDocument(document) {
1615
- const chunks = [];
1616
- const tasks = [document];
1617
- for (let task = tasks.pop(); task !== void 0; task = tasks.pop()) {
1618
- if (typeof task === "string") {
1619
- chunks.push(task);
1620
- continue;
1621
- }
1622
- for (let index = task.parts.length - 1; index >= 0; index--) {
1623
- const part = task.parts[index];
1624
- /* v8 ignore next -- the loop is bounded by the captured part count. */
1625
- if (part !== void 0) tasks.push(part);
1626
- }
1627
- }
1628
- return chunks.join("");
1629
- }
1630
- /** Initialize one schema-render frame with empty aggregation state. */
1631
- function schemaRenderFrame(node, indent) {
1632
- return {
1633
- node,
1634
- indent,
1635
- phase: "start",
1636
- children: [],
1637
- childIndex: 0,
1638
- childDocuments: [],
1639
- entries: []
1640
- };
1641
- }
1642
- /** Render an already asserted schema to a composable document. */
1643
- function renderSupportedSchema(schema, indent) {
1644
- const frames = [schemaRenderFrame(schema, indent)];
1645
- let rootDocument;
1646
- const finish = (document) => {
1647
- frames.pop();
1648
- const parent = frames.at(-1);
1649
- if (parent === void 0) rootDocument = document;
1650
- else parent.childDocuments.push(document);
1651
- };
1652
- while (frames.length > 0) {
1653
- const frame = frames.at(-1);
1654
- /* v8 ignore next -- the loop condition guarantees a current frame. */
1655
- if (frame === void 0) break;
1656
- if (frame.phase === "children") {
1657
- if (frame.childIndex < frame.children.length) {
1658
- const child = frame.children[frame.childIndex];
1659
- /* v8 ignore next -- childIndex is bounded by children.length. */
1660
- if (child === void 0) throw new Error("missing schema render child");
1661
- frame.childIndex++;
1662
- frames.push(schemaRenderFrame(child.node, child.indent));
1663
- continue;
1664
- }
1665
- if (frame.kind === "oneOf") {
1666
- const parts = [];
1667
- for (let index = 0; index < frame.childDocuments.length; index++) {
1668
- if (index > 0) parts.push(" | ");
1669
- const child = frame.childDocuments[index];
1670
- /* v8 ignore next -- child documents correspond one-to-one with children. */
1671
- if (child !== void 0) parts.push(child);
1672
- }
1673
- finish(typeDocumentFrom(parts));
1674
- continue;
1675
- }
1676
- if (frame.kind === "array") {
1677
- const child = frame.childDocuments[0];
1678
- /* v8 ignore next -- array frames always schedule exactly one child. */
1679
- if (child === void 0) throw new Error("missing array item type");
1680
- finish(child.containsUnionOrIntersection ? typeDocument("(", child, ")[]") : typeDocument(child, "[]"));
1681
- continue;
1682
- }
1683
- const required = new Set(frame.node.required);
1684
- const parts = ["{"];
1685
- for (let index = 0; index < frame.entries.length; index++) {
1686
- const entry = frame.entries[index];
1687
- const child = frame.childDocuments[index];
1688
- /* v8 ignore next -- object entries and child documents have the same length. */
1689
- if (entry === void 0 || child === void 0) throw new Error("missing object property type");
1690
- const [name, prop] = entry;
1691
- for (const line of docLines$1(prop.description, frame.indent + 1)) parts.push("\n", line);
1692
- parts.push("\n", `${pad$1(frame.indent + 1)}${renderKey(name)}${required.has(name) ? "" : "?"}: `, child, ";");
1693
- }
1694
- parts.push("\n", `${pad$1(frame.indent)}}`);
1695
- const declared = typeDocumentFrom(parts);
1696
- finish(frame.node.additionalProperties === false ? declared : typeDocument(declared, " & Record<string, JsonValue>"));
1697
- continue;
1698
- }
1699
- const node = frame.node;
1700
- if (node.oneOf !== void 0) {
1701
- frame.kind = "oneOf";
1702
- frame.children = Array.from(node.oneOf, (child) => ({
1703
- node: child,
1704
- indent: frame.indent
1705
- }));
1706
- frame.childIndex = 0;
1707
- frame.childDocuments = [];
1708
- frame.phase = "children";
1709
- continue;
1710
- }
1711
- if (node.type === void 0) {
1712
- finish(typeDocument("JsonValue"));
1713
- continue;
1714
- }
1715
- switch (node.type) {
1716
- case "string":
1717
- case "number":
1718
- case "integer":
1719
- case "boolean":
1720
- case "null":
1721
- finish(typeDocument(renderConstrainedScalar$1(node, node.type)));
1722
- break;
1723
- case "array":
1724
- if (node.items === void 0) finish(typeDocument("JsonValue[]"));
1725
- else {
1726
- frame.kind = "array";
1727
- frame.children = [{
1728
- node: node.items,
1729
- indent: frame.indent
1730
- }];
1731
- frame.childIndex = 0;
1732
- frame.childDocuments = [];
1733
- frame.phase = "children";
1734
- }
1735
- break;
1736
- case "object": {
1737
- const open = node.additionalProperties !== false;
1738
- const entries = Object.entries(node.properties ?? {});
1739
- if (entries.length === 0) finish(typeDocument(open ? "Record<string, JsonValue>" : "Record<string, never>"));
1740
- else {
1741
- frame.kind = "object";
1742
- frame.entries = entries;
1743
- frame.children = entries.map(([, child]) => ({
1744
- node: child,
1745
- indent: frame.indent + 1
1746
- }));
1747
- frame.childIndex = 0;
1748
- frame.childDocuments = [];
1749
- frame.phase = "children";
1750
- }
1751
- break;
1752
- }
1753
- /* v8 ignore next -- assertSupportedJsonSchema narrowed this closed type union. */
1754
- default: finish(typeDocument("unknown"));
1755
- }
1756
- }
1757
- /* v8 ignore next -- every root frame produces one document. */
1758
- return rootDocument ?? typeDocument("unknown");
1759
- }
1760
- /**
1761
- * Map one enforced JSON-Schema node to a TypeScript type literal. Supports
1762
- * every unified schema construct and returns `unknown` for malformed or
1763
- * unsupported inputs without throwing.
1764
- * @param schema - the JSON-Schema node (any shape; hostile inputs degrade).
1765
- * @param indent - the indentation level for nested object members.
1766
- * @returns the TS type text (multi-line for objects with properties).
1767
- */
1768
- function jsonSchemaToTs(schema, indent = 0) {
1769
- try {
1770
- assertSupportedJsonSchema(schema);
1771
- return flattenTypeDocument(renderSupportedSchema(schema, indent));
1772
- } catch {
1773
- return "unknown";
1774
- }
1775
- }
1776
- /** Render the argument and call instructions for the selected execution syntax. */
1777
- function renderSdkInstructions(programFormat) {
1778
- return `## Writing code for run_code
1779
-
1780
- \`run_code\` takes two required arguments: \`code\`, ${programFormat === "function-body" ? "the body of an async TypeScript function (erasable syntax only — no `enum` or namespaces; type annotations are advisory, the code runs type-stripped)" : "the program to execute"}, and \`description\`, a short summary of what the program does. The declarations below are SDK bindings for this program. A declaration does not make its name a directly callable tool; only names supplied as separate tool schemas may be called directly.`;
1781
- }
1782
- /** Render tool execution and output instructions for the selected execution syntax. */
1783
- function renderSdkProgramInstructions(programFormat) {
1784
- return `Inside the program:
1785
-
1786
- - Call tools as \`await tools.name(args)\` — quoted access for exotic names: \`tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value. Tool arguments must be lossless JSON.
1787
- - A FAILED tool call rejects with \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose \`message\` is human-readable — \`try/catch\` it to handle and continue.
1788
- - Independent read-only calls MAY overlap under \`Promise.all\` (safe calls run concurrently; mutating calls run alone, in submission order). Sequence dependent work with \`await\`.
1789
- - ${programFormat === "function-body" ? "Emit results with `return` and/or `console.log(...)`. Only what you print or return is program output." : "Only values emitted as program output enter the conversation."} A successful tool result containing an image is attached after the run so you can inspect it on the next step; every other intermediate result stays out of the conversation, so extract just what you need.
1790
-
1791
- Program-only SDK bindings:`;
1792
- }
1793
- /** Whether one string schema accepts the literal used by the bash example. */
1794
- function acceptsExampleString(schema, value) {
1795
- return schema?.type === "string" && (schema.const === void 0 || schema.const === value) && (schema.enum === void 0 || schema.enum.includes(value));
1796
- }
1797
- /** Render the bash example only when its literal arguments satisfy the current parameter schema. */
1798
- function renderBashExample(schemas, programFormat) {
1799
- const bash = schemas.find((schema) => schema.name === "bash");
1800
- if (bash === void 0) return "";
1801
- const parameters = bash.parameters;
1802
- if (parameters.type !== "object") return "";
1803
- const required = parameters.required ?? [];
1804
- if (required.some((name) => name !== "command" && name !== "description")) return "";
1805
- if (!acceptsExampleString(parameters.properties?.command, "pwd")) return "";
1806
- const needsDescription = required.includes("description");
1807
- if (needsDescription && !acceptsExampleString(parameters.properties?.description, "Show current directory")) return "";
1808
- const description = needsDescription ? "description: 'Show current directory', " : "";
1809
- return ` When no separate \`bash\` schema is supplied, invoke a declared \`bash\` binding inside \`run_code\`:\n\n\`run_code({ code: "${programFormat === "function-body" ? `return await tools.bash({ ${description}command: 'pwd' })` : `console.log(await tools.bash({ ${description}command: 'pwd' }))`}", description: "Show current directory" })\``;
1810
- }
1811
- /**
1812
- * Render the full `tools:sdk` prompt section: the fixed usage instructions
1813
- * plus one `declare const tools` interface covering every given tool.
1814
- * Deterministic — tools are emitted in lexicographic name order, so an
1815
- * unchanged tool set produces byte-identical text across assemblies. The sort
1816
- * is not a total order on byte-equal names, so two schemas sharing a name
1817
- * would render in argument order; the caller's visible-capability map is keyed
1818
- * by name, so the input never carries a duplicate.
1819
- * @param schemas - the tool schemas to declare (the caller excludes
1820
- * `run_code` itself).
1821
- * @param programFormat - Runtime syntax; function bodies support returning a result, REPLs print it.
1822
- * @returns the complete section text.
1823
- */
1824
- function renderToolsSdk(schemas, programFormat = "function-body") {
1825
- const sorted = [...schemas].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
1826
- const argsMembers = [];
1827
- const outputMembers = [];
1828
- for (const schema of sorted) {
1829
- argsMembers.push(...docLines$1(schema.description, 1));
1830
- argsMembers.push(`${pad$1(1)}${renderKey(schema.name)}: ${jsonSchemaToTs(schema.parameters, 1)};`);
1831
- outputMembers.push(`${pad$1(1)}${renderKey(schema.name)}: ${jsonSchemaToTs(schema.output, 1)};`);
1832
- }
1833
- const declaration = [
1834
- `interface ToolArgsMap {${argsMembers.length > 0 ? `\n${argsMembers.join("\n")}\n` : ""}}`,
1835
- `interface ToolOutputMap {${outputMembers.length > 0 ? `\n${outputMembers.join("\n")}\n` : ""}}`,
1836
- "type ToolName = keyof ToolOutputMap",
1837
- [
1838
- "declare class ToolCallError extends Error {",
1839
- " readonly name: \"ToolCallError\";",
1840
- " readonly toolName: ToolName;",
1841
- "}"
1842
- ].join("\n"),
1843
- [
1844
- "declare const tools: {",
1845
- " [K in ToolName]: (args: ToolArgsMap[K]) => Promise<ToolOutputMap[K]>;",
1846
- "}"
1847
- ].join("\n")
1848
- ].join("\n\n");
1849
- const jsonValue = "type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue }";
1850
- const instructions = renderSdkInstructions(programFormat);
1851
- const programInstructions = renderSdkProgramInstructions(programFormat);
1852
- return `${instructions}${renderBashExample(sorted, programFormat)}\n\n${programInstructions}\n\n\`\`\`ts\n${jsonValue}\n\n${declaration}\n\`\`\``;
1853
- }
1854
- //#endregion
1855
- //#region lib/types/py-types.js
1856
- /**
1857
- * PTC mode codegen — Python flavor. The pure projection from registered tool schemas to the
1858
- * Python SDK text the model programs against under `runtime.language === 'python'`. Sibling of
1859
- * {@link ./ts-types.ts | ts-types.ts}; the two files are two projections of the same registry
1860
- * store, keyed by the loaded {@link @deepseek-ai/dsh-ptc-runtime#PtcRuntime.language | PTC
1861
- * runtime's language}.
1862
- *
1863
- * Under `mode: 'ptc'` the native tool schemas are omitted from the request, so this generated
1864
- * SDK is the model's ONLY source for each tool's argument names, required fields, types,
1865
- * descriptions, and canonical output types. Object-shaped arguments and outputs render as one
1866
- * named `TypedDict` per tool (and per nested object), not an opaque `dict[str, Any]`, so the
1867
- * shape survives into the program under the mode that has nothing else to carry it.
1868
- * @module @deepseek-ai/dsh-tools/src/py-types
1869
- */
1870
- /**
1871
- * The reference grammar's `xid_start xid_continue*` — the set
1872
- * `str.isidentifier()` accepts on a CPython whose Unicode tables match the
1873
- * engine's. See {@link isBareIdentifier} for what a version skew does.
1874
- */
1875
- const IDENTIFIER = /^[\p{XID_Start}_]\p{XID_Continue}*$/u;
1876
- /**
1877
- * Whether a name can be emitted as a bare Python identifier rather than
1878
- * routed to the subscript/`dict[str, Any]` path.
1879
- *
1880
- * Python identifiers are not ASCII: `路径` is as legal a field name as `path`,
1881
- * and rejecting it would degrade the whole enclosing object, dropping every
1882
- * field's name, requiredness, and type — information whose only source under
1883
- * `mode: 'ptc'` is this generated text.
1884
- *
1885
- * NFKC stability is a second and separate condition, because CPython
1886
- * normalizes identifiers at compile time while JSON keys are compared as
1887
- * written: `field` would be declared and reachable as `field`, so the SDK would
1888
- * advertise a key under a spelling the harness never accepts, and two keys
1889
- * that normalize together would collapse into one declaration. Those names
1890
- * take the subscript path, which carries their exact bytes.
1891
- *
1892
- * `IDENTIFIER` matches `str.isidentifier()` (measured on Node 22.23.1 vs
1893
- * CPython 3.9.6 tables): the equivalence holds inside the two versions' shared
1894
- * tables, and the skew characters below are exactly where that pair diverges.
1895
- * The predicate as a whole is deliberately stricter than `isidentifier()`,
1896
- * which does not test NFKC stability: `'field'.isidentifier()` is True and
1897
- * this returns false.
1898
- *
1899
- * Both conditions are evaluated against the ENGINE's Unicode tables, and the
1900
- * two sides are versioned independently — `\p{XID_Start}`/`\p{XID_Continue}`
1901
- * follow the running engine (Node 22.23.1 reports Unicode 17.0) while CPython
1902
- * follows its own (3.9.6 reports 13.0.0). The skew is not symmetric. A CPython
1903
- * older than the engine is the dangerous direction: a character added to either
1904
- * property since its tables (U+10570 Vithkuqi and U+1E290 Toto, 14.0; U+1E4D0
1905
- * Nag Mundari, 15.0; U+1C89 Cyrillic TJE, 16.0 — ages per `DerivedAge.txt`; all
1906
- * four are NFKC-stable and accepted here, and all four are `Cn` on that 3.9.6,
1907
- * which rejects them) is emitted bare and its tokenizer refuses the character,
1908
- * taking the whole SDK block down — the same parseability invariant
1909
- * {@link UNPRINTABLE}, {@link LONE_SURROGATE} and {@link MAX_LIST_NESTING}
1910
- * exist for. Both properties carry it: a character added only to `XID_Continue`
1911
- * passes the trailing `\p{XID_Continue}*` in a tail position and fails the same
1912
- * way — U+200C ZWNJ and U+200D ZWJ are that case, gaining `XID_Continue` in UCD
1913
- * 15.1 and absent from it in 13.0.0, 14.0.0 and 15.0.0, so `a\u{200C}b` is
1914
- * emitted bare here while `isidentifier()` is False on 3.9.6 and on 3.12.13
1915
- * (15.0.0). A CPython newer than the engine only routes a legal name to the
1916
- * subscript/`dict[str, Any]` path: less readable, still correct. The NFKC
1917
- * condition reduces to the same skew, since normalization stability guarantees
1918
- * an assigned character's normalization never changes afterwards.
1919
- *
1920
- * This predicate is not the only reader of engine tables. {@link camelCase}
1921
- * reads them at three further points — its split set, its head test, and its
1922
- * `toUpperCase()` case mapping — and this predicate's verdict gates none of
1923
- * them: a class name derived there reaches emitted text whenever any object
1924
- * shape in the tool's schema declares a `TypedDict`, including for a tool this
1925
- * predicate rejected. A tool named `zz-\u{1E4D0}x` with such parameters never
1926
- * reaches the skew here (the `-` rejects it outright) yet emits `class
1927
- * Zz\u{1E4D0}xArgs`, which that same 3.9.6 refuses — Nag Mundari arrived two
1928
- * releases after its tables. The case mapping is a separate table rather than
1929
- * an XID membership test, and it fails on names both conditions above accept:
1930
- * `\u{019B}` is XID_Start and NFKC-stable, so this predicate accepts it and
1931
- * `async def \u{019B}` compiles on 3.9.6, but Node uppercases it to
1932
- * `\u{A7DC}` — unassigned in that CPython, whose own `.upper()` is the identity
1933
- * here — and the declared `class \u{A7DC}Args` fails with `invalid
1934
- * non-printable character U+A7DC`. Closing the exposure therefore covers all
1935
- * four read points, not this predicate alone; it needs the target interpreter's
1936
- * version, which the backend reporting `language: 'python'` owns; the
1937
- * language-dispatch Agent Note records the deferral.
1938
- *
1939
- * The `ts-types` sibling keeps its own ASCII rule rather than sharing this
1940
- * one: ECMAScript identifiers are a different set (`$`) and are never
1941
- * normalized, so one predicate cannot be correct for both. ZWJ/ZWNJ are not
1942
- * part of that difference — both sets carry them on the engine's tables; what
1943
- * separates the two there is the CPython table version above.
1944
- * @param name - the raw schema field or tool name.
1945
- * @returns whether the name can be emitted bare.
1946
- */
1947
- function isBareIdentifier(name) {
1948
- return IDENTIFIER.test(name) && name.normalize("NFKC") === name;
1949
- }
1950
- /**
1951
- * Python hard keywords: reserved everywhere, so a tool or field named
1952
- * ``class`` or ``lambda`` is legal on the wire but not as an attribute
1953
- * (``tools.class`` would be a SyntaxError in the model program) and not as a
1954
- * class-syntax `TypedDict` field. Such a tool renders under subscript access
1955
- * and such an object degrades to ``dict[str, Any]`` — the model still reaches
1956
- * every tool and field without collisions.
1957
- * Soft keywords (``match``, ``case``, ``type``, ``_`` — the language
1958
- * reference's whole set) are deliberately ABSENT: each is special in exactly
1959
- * one syntactic position — a statement head (``match``, ``type``), a ``match``
1960
- * statement's clause head (``case``), or a pattern (``_``) — so ``match: str``
1961
- * as a field and ``async def match(...)`` as a method are both legal, and
1962
- * including them would needlessly degrade common search/regex tool fields to
1963
- * ``dict[str, Any]``. Underscore-leading names are handled separately, not
1964
- * here: a non-dunder ``__token`` name-mangles, a dunder present on
1965
- * ``object``/``type`` resolves before the proxy hook, and implicit
1966
- * special-method lookup bypasses the hook.
1967
- */
1968
- const RESERVED = new Set([
1969
- "False",
1970
- "None",
1971
- "True",
1972
- "and",
1973
- "as",
1974
- "assert",
1975
- "async",
1976
- "await",
1977
- "break",
1978
- "class",
1979
- "continue",
1980
- "def",
1981
- "del",
1982
- "elif",
1983
- "else",
1984
- "except",
1985
- "finally",
1986
- "for",
1987
- "from",
1988
- "global",
1989
- "if",
1990
- "import",
1991
- "in",
1992
- "is",
1993
- "lambda",
1994
- "nonlocal",
1995
- "not",
1996
- "or",
1997
- "pass",
1998
- "raise",
1999
- "return",
2000
- "try",
2001
- "while",
2002
- "with",
2003
- "yield",
2004
- "__debug__"
2005
- ]);
2006
- /** `typing` symbols this module may emit, in the deterministic import order. */
2007
- const TYPING_ORDER = [
2008
- "Any",
2009
- "Literal",
2010
- "NotRequired",
2011
- "Protocol",
2012
- "TypedDict"
2013
- ];
2014
- /** `indent`-deep line prefix (four spaces per level to match PEP 8 output). */
2015
- function pad(indent) {
2016
- return " ".repeat(indent);
2017
- }
2018
- /**
2019
- * The `Cc` code points that survive the whitespace collapse in {@link describe}
2020
- * and have no printable form: the C0 controls, DEL, and the C1 controls. Only
2021
- * U+0009 to U+000D are absent, because ECMAScript `\s` already collapsed them —
2022
- * `\s` is TAB/VT/FF/SP/NBSP/ZWNBSP/Zs plus LF/CR/LS/PS, so no C1 code point is
2023
- * in it and the whole U+0080 to U+009F block reaches this rule intact. Those
2024
- * are not hypothetical input: they are what Windows-1252 bytes 0x80 to 0x9F
2025
- * (smart quotes, em dash) become when decoded as Latin-1.
2026
- * CPython rejects source containing a NUL outright
2027
- * (`SyntaxError: source code string cannot contain null bytes`), whether it
2028
- * sits in a docstring or in a comment, so one such byte anywhere in a schema
2029
- * description would make the whole generated SDK unparseable — under
2030
- * `mode: 'ptc'`, the model's only declaration of the tools. The rest are
2031
- * legal but invisible; escaping them with the same rule keeps the emitted text
2032
- * readable and the treatment uniform.
2033
- *
2034
- * The boundary is the category, not per-code-point addressability: `\xNN`
2035
- * addresses U+0000 to U+00FF, so one escape form covers `Cc` exactly. The
2036
- * invisible `Cf` formatting characters pass through by design — of them only
2037
- * U+00AD soft hyphen would fit `\xNN` at all, and escaping that one while
2038
- * U+200B ZWSP, U+200E/U+200F bidi marks, and U+2060 word joiner passed through
2039
- * would leave a rule that is neither category- nor addressability-shaped. The
2040
- * whole family is legal in both consumers, since only LF and CR terminate a
2041
- * Python string literal or a `#` comment. That set is the tokenizer's, not
2042
- * `str.splitlines()`': NEL (U+0085), LS (U+2028), and PS (U+2029) split a
2043
- * string at run time but do not end a physical line in source — measured on
2044
- * CPython 3.9.6 and 3.12.13, each accepted in both positions with the value
2045
- * round-tripping — so they are safe raw wherever they reach emitted text
2046
- * unescaped, which for all three is `JSON.stringify`, at two call sites:
2047
- * {@link pyScalar}'s literal path, and the subscript tool-name comment's own
2048
- * call, which a name carrying any of them always reaches, none being
2049
- * `XID_Continue`. The `description` path escapes NEL under the class above and
2050
- * folds LS and PS in {@link describe}'s `\s+` collapse, both being `\s`.
2051
- */
2052
- const UNPRINTABLE = /[\u0000-\u0008\u000e-\u001f\u007f-\u009f]/g;
2053
- /**
2054
- * Unpaired surrogate code points, escaped by {@link describe} as `\uNNNN` —
2055
- * its own form, since `\xNN` stops at U+00FF. The `u` flag is what makes this
2056
- * the LONE ones: in Unicode mode a well-formed pair is a single astral code
2057
- * point outside D800 to DFFF, so an emoji in a description survives untouched.
2058
- *
2059
- * This is the NUL case from {@link UNPRINTABLE}, not the invisible-character
2060
- * case. Python source must be UTF-8-encodable and a lone surrogate is not, so
2061
- * `compile()` raises `UnicodeEncodeError: surrogates not allowed` for one
2062
- * anywhere in the text — measured on 3.9 for a string literal and for a `#`
2063
- * comment alike. A raw or MCP tool description reaches this: `JSON.parse` on a
2064
- * wire `"\ud800"` escape yields exactly such a code point.
2065
- */
2066
- const LONE_SURROGATE = /[\ud800-\udfff]/gu;
2067
- /**
2068
- * The collapsed one-line `description` of a schema node (byte-stable across
2069
- * formatting churn), or `undefined` when the node carries none. Every caller
2070
- * passes an object — a validated property node, the `ToolSdkSchema` itself, or
2071
- * the `{ description }` wrapper {@link docLines} synthesizes — so only the
2072
- * description field needs guarding. A description that collapses
2073
- * to nothing (empty, or whitespace only) is `undefined` too: it documents the
2074
- * node no better than an absent one, and emitting it would leave an empty
2075
- * `"""` docstring or a bare `# ` line in the SDK. Only ECMAScript whitespace
2076
- * folds, so a description of whitespace plus one surviving control character is
2077
- * NOT absent: it collapses to that character's visible escape.
2078
- *
2079
- * Control characters left over after the whitespace collapse are rendered as
2080
- * their `\xNN` escapes (see {@link UNPRINTABLE}) and unpaired surrogates as
2081
- * their `\uNNNN` escapes (see {@link LONE_SURROGATE}); the escape's own backslash is
2082
- * emitted literally by both consumers, since {@link docLines} doubles it into a
2083
- * Python source escape and a `#` comment carries it verbatim.
2084
- */
2085
- function describe(schema) {
2086
- const description = schema.description;
2087
- if (typeof description !== "string") return void 0;
2088
- const collapsed = description.replace(/\s+/g, " ").replace(UNPRINTABLE, (char) => `\\x${char.charCodeAt(0).toString(16).padStart(2, "0")}`).replace(LONE_SURROGATE, (char) => `\\u${char.charCodeAt(0).toString(16).padStart(4, "0")}`).trim();
2089
- return collapsed.length === 0 ? void 0 : collapsed;
2090
- }
2091
- /**
2092
- * One-line docstring for a tool `description`, or no lines when there is none.
2093
- * Backslashes are doubled first, every quote is escaped, and a trailing
2094
- * backslash cannot survive: a description ending in `"` or an odd backslash
2095
- * would otherwise merge with (or escape) the closing triple quote and make
2096
- * the generated block — PTC mode's only SDK — syntactically invalid Python.
2097
- */
2098
- function docLines(description, indent) {
2099
- const collapsed = describe({ description });
2100
- if (collapsed === void 0) return [];
2101
- const escaped = collapsed.replaceAll("\\", "\\\\").replaceAll("\"", "\\\"");
2102
- return [`${pad(indent)}"""${escaped}"""`];
2103
- }
2104
- /**
2105
- * CamelCase a name into a Python type identifier: non-identifier characters
2106
- * split words, `_` splits too (it is `XID_Continue`, so the split set names it
2107
- * explicitly), and a head that cannot start an identifier takes a `Tool`
2108
- * prefix. Unicode survives, so a `路径` field yields `路径`-based class names
2109
- * instead of collapsing to the bare prefix. A character that is not
2110
- * `XID_Continue` splits even when it is a letter, so a name whose NFKC folding
2111
- * would leave the identifier set is not carried through — the split set is the
2112
- * grammar's, not an ASCII approximation of it.
2113
- *
2114
- * The result is NFKC-normalized: these names are generated, never matched
2115
- * against a JSON key, so normalizing is free here and keeps what CPython
2116
- * compiles identical to what is emitted — unlike {@link isBareIdentifier},
2117
- * which must reject unstable names outright. Normalizing AFTER the prefix
2118
- * decision is what makes that hold at the seam the prefix creates: `Tool` +
2119
- * a combining-mark head composes there (`U+0301` gives `Tooĺ`, U+013A), so
2120
- * normalizing only the un-prefixed part would emit a name CPython compiles to
2121
- * a different symbol. The second call is idempotent on the un-prefixed arm.
2122
- *
2123
- * The split set, the head test, and `toUpperCase()` all read the engine's
2124
- * Unicode tables, so this function carries the same version skew
2125
- * {@link isBareIdentifier} documents, by paths independent of it: a class name
2126
- * derived here reaches emitted text whenever any object shape in the tool's
2127
- * schema declares a `TypedDict`, and the predicate's verdict on the tool name
2128
- * does not gate that. The case mapping is the one that can fail on a name the
2129
- * predicate accepted; the worked example is there.
2130
- * @param raw - the schema field or tool name to derive from.
2131
- * @returns a class-name segment safe to emit.
2132
- */
2133
- function camelCase(raw) {
2134
- const joined = raw.split(/[^\p{XID_Continue}]+|_+/u).filter((part) => part.length > 0).map((part) => `${part.charAt(0).toUpperCase()}${part.slice(1)}`).join("").normalize("NFKC");
2135
- return (/^\p{XID_Start}/u.test(joined) ? joined : `Tool${joined}`).normalize("NFKC");
2136
- }
2137
- /** Class-name base cap keeping each emitted name — and total text — linear in schema depth. */
2138
- const MAX_CLASS_NAME_BASE = 120;
2139
- /**
2140
- * Deepest `list[…]` nesting emitted into one annotation before the item type
2141
- * degrades to `Any`. CPython's tokenizer rejects a logical line holding more
2142
- * than 200 simultaneously-open brackets (`MAXLEVEL`, `SyntaxError: too many
2143
- * nested parentheses`), so an array chain deeper than that would render an SDK
2144
- * block that is not valid Python at all — the same failure the docstring
2145
- * escaping in {@link docLines} exists to prevent. 180 leaves headroom for the
2146
- * few brackets an annotation can add around the chain, all of which count
2147
- * toward the same limit. Per emission site, counting brackets open at the
2148
- * chain's innermost point:
2149
- *
2150
- * - Return annotation, `async def f(self, args: X) -> chain:` — 180 `list[`
2151
- * plus an innermost `Literal[`. The parameter list's `(` closed at the `)`
2152
- * before the `->`, so it is NOT open here: 181.
2153
- * - TypedDict field, `field: NotRequired[chain]` — a class-body line with no
2154
- * other open bracket, and its children start at `listDepth: 1` to reserve
2155
- * the `NotRequired[`, so 179 `list[` plus `Literal[`: 181. Required fields
2156
- * share that start for uniformity, spending one level of representable depth
2157
- * on a bracket they never emit.
2158
- * - Argument annotation, `async def f(self, args: chain) -> Y:` — the `(` IS
2159
- * still open around it: 180 `list[` plus `Literal[` plus the paren, 182, the
2160
- * worst case. Reachable only through a raw `register()` whose `parameters`
2161
- * is an array reached from the root through `oneOf` arms alone — the root
2162
- * array itself, or one nested under any depth of unions, since an arm
2163
- * inherits the enclosing depth unchanged (`A | B` opens no bracket). An
2164
- * object ancestor takes it out of this case: its fields restart the chain at
2165
- * the 181 site. `defineTool` compiles an object root, so the annotation is a
2166
- * bare TypedDict class name or a one-bracket `dict[str, Any]` when that
2167
- * object degrades — never a chain.
2168
- *
2169
- * A CPython grammar limit, not a deployment choice, so it is fixed rather than
2170
- * configurable. The sibling `ts-types` renderer needs no counterpart: nothing
2171
- * in the TypeScript grammar bounds nesting, and its SDK block is never type-
2172
- * checked. Only bracket nesting counts — a `oneOf` renders as a flat `A | B`
2173
- * chain and nested objects render as separate `class` statements, so neither
2174
- * accumulates open brackets at any depth. The invariant this cap serves is
2175
- * grammatical validity; see the `oneOf` arm in {@link renderType} for the one
2176
- * interpreter limit deliberately left uncapped.
2177
- */
2178
- const MAX_LIST_NESTING = 180;
2179
- /**
2180
- * Cap a class-name base at {@link MAX_CLASS_NAME_BASE} (see the callers for
2181
- * why capping keeps the render linear). `slice` counts UTF-16 code units, so
2182
- * an astral character straddling the boundary would be cut in half and leave a
2183
- * lone surrogate — not an identifier character, and not even well-formed text;
2184
- * drop it rather than emit it.
2185
- */
2186
- function capClassNameBase(base) {
2187
- if (base.length <= MAX_CLASS_NAME_BASE) return base;
2188
- const capped = base.slice(0, MAX_CLASS_NAME_BASE);
2189
- return /[\uD800-\uDBFF]$/.test(capped) ? capped.slice(0, -1) : capped;
2190
- }
2191
- /**
2192
- * Reserve a unique class name from a base, suffixing `2`, `3`, … on collision.
2193
- * The base is capped at {@link MAX_CLASS_NAME_BASE} first: child class names
2194
- * derive from their parent's allocated name (`ParentChild`), so an unbounded
2195
- * schema of single-field objects would otherwise grow each name by one field
2196
- * per level and the sum of all names to Θ(depth²). Capping the base keeps each
2197
- * name — and the total emitted text — linear in depth. Collisions resume from
2198
- * the per-base counter in `state.nextClassCounter` rather than rescanning from
2199
- * `2`, so a deep chain sharing one capped base stays O(1) per allocation
2200
- * (amortized) instead of Θ(depth²) in time.
2201
- */
2202
- function allocateClassName(base, state) {
2203
- const capped = capClassNameBase(base);
2204
- let name = capped;
2205
- if (state.usedClassNames.has(name)) {
2206
- let n = state.nextClassCounter.get(capped) ?? 2;
2207
- while (state.usedClassNames.has(`${capped}${n}`)) n++;
2208
- name = `${capped}${n}`;
2209
- state.nextClassCounter.set(capped, n + 1);
2210
- }
2211
- state.usedClassNames.add(name);
2212
- return name;
2213
- }
2214
- /**
2215
- * Append a child-name segment to a parent class-name base, capping the result
2216
- * at {@link MAX_CLASS_NAME_BASE}. Capping AT PROPAGATION (not only inside
2217
- * {@link allocateClassName}) keeps each level O(1): a deep `oneOf`- or
2218
- * object-chain would otherwise carry an ever-growing ConsString down the tree
2219
- * and re-materialize it (via `.length`/`.slice`) at every level — Θ(depth²).
2220
- * The bounded base plus the collision counter still yields unique names.
2221
- *
2222
- * The join is NFKC-normalized because both sides are separately normalized yet
2223
- * their concatenation need not be: a base ending in a Hangul L jamo or LV
2224
- * syllable composes with a following V or T jamo head (`가` + `ᆨ` gives `각`),
2225
- * so the emitted class name would differ from the symbol CPython compiles, and
2226
- * two byte-distinct names could fold onto one — `usedClassNames` dedupes by the
2227
- * raw bytes, so the collision counter would not see it. Normalizing costs
2228
- * O(cap + segment) per level, the same order as the `slice` it feeds. The other
2229
- * two join points need no counterpart: `Args`/`Output` start with `A`/`O` and
2230
- * {@link allocateClassName}'s suffix is digits, none of which compose backwards.
2231
- */
2232
- function childClassName(base, segment) {
2233
- return capClassNameBase(`${base}${segment}`.normalize("NFKC"));
2234
- }
2235
- /**
2236
- * Render one validated scalar as Python literal text (`True`/`False`,
2237
- * JSON-quoted strings, bare numbers). `null` cannot reach here: the `null`
2238
- * type renders directly as `None`, and the unified validator rejects a null
2239
- * `const`/`enum` entry on every other scalar type.
2240
- *
2241
- * A beyond-safe-range integral number takes `BigInt` digits rather than
2242
- * `String`: Python integers are arbitrary-precision, so the emitted digits ARE
2243
- * the value the model programs against, and `String` can give a different
2244
- * integer than the double holds (`2 ** 60` prints the rounded `...847000`, not
2245
- * the exact `...846976`) or no integer literal at all (`1e21` prints `1e+21`).
2246
- * `String`'s rounding is not a bug in it: `Number::toString` emits the shortest
2247
- * decimal string that re-reads to the same double, then pads to the exponent
2248
- * with zeros (1 significant digit for `1e20`, 16 for `2 ** 60`) — and when the
2249
- * shortest string is shorter than the double's exact value, those padded digits
2250
- * name an integer no double holds. Passing one back would have to cross the
2251
- * argument boundary as a JSON number — a double again — so the SDK would
2252
- * document a value no program can pass. `BigInt` needs no case split: where
2253
- * `String` is already exact (`2 ** 53`, `1e20`) the two agree byte for byte,
2254
- * and where it is not, `BigInt` is the exact one. The TS flavor needs no
2255
- * counterpart at all: its literal is re-read by a JS parser back into the same
2256
- * double.
2257
- *
2258
- * `JSON.stringify` is also what keeps this path's output parseable, and it is
2259
- * the only thing that does. It covers both classes of hazard: the two kinds of
2260
- * code point CPython refuses anywhere in source — NUL among the C0 controls,
2261
- * and the whole D800–DFFF unpaired-surrogate block, escaped under ES2019
2262
- * well-formed stringification, which the engines range guarantees — and the
2263
- * ones that break this line in particular, a bare `"` closing the literal
2264
- * early, a trailing odd backslash eating the closing quote, and a bare LF/CR
2265
- * ending it before its terminator. The `description` path carries
2266
- * {@link UNPRINTABLE} and {@link LONE_SURROGATE} because nothing quotes it,
2267
- * and folds newlines in {@link describe}.
2268
- *
2269
- * That leans on a coincidence worth naming: every escape `JSON.stringify` can
2270
- * emit (`\"`, `\\`, `\b`, `\f`, `\n`, `\r`, `\t`, `\uXXXX`) is also a Python
2271
- * escape denoting the same character, so the emitted `Literal[...]` both
2272
- * parses and decodes back to the value the schema declared. DEL, the C1
2273
- * controls (NEL among them), and LS/PS (U+2028/U+2029) do reach it raw —
2274
- * legal but invisible, byte-for-byte as in the TS flavor; escaping them is a
2275
- * both-flavors change. Those last three are legal here for the reason
2276
- * {@link UNPRINTABLE} records: they are `str.splitlines()` boundaries, not
2277
- * tokenizer line terminators. The subscript tool-name comment quotes its name
2278
- * through its own call to the same `JSON.stringify`, never through this
2279
- * function, and inherits both halves — escapes and pass-throughs alike.
2280
- */
2281
- function pyScalar(value) {
2282
- if (value === true) return "True";
2283
- if (value === false) return "False";
2284
- if (typeof value === "string") return JSON.stringify(value);
2285
- if (typeof value === "number" && Number.isInteger(value) && !Number.isSafeInteger(value)) return BigInt(value).toString();
2286
- return String(value);
2287
- }
2288
- /**
2289
- * Render a validated scalar `const`/`enum` as `Literal[...]`, falling back to
2290
- * the broad type. Deliberately deviates from PEP 586, which restricts `Literal`
2291
- * parameters to int/bool/str/bytes/enum/None: a non-integral number
2292
- * `const`/`enum` emits a float literal (`Literal[1.5]`) a strict checker would
2293
- * reject. An integral one does not deviate — {@link pyScalar} emits int digits,
2294
- * including for the beyond-safe-range values it widens through `BigInt`, and
2295
- * PEP 586 admits int parameters. Harmless either way — the stub is advisory
2296
- * prompt text, only required to parse — and keeping the exact value
2297
- * communicates the constraint to the model.
2298
- */
2299
- function renderConstrainedScalar(node, broad, state) {
2300
- if (node.const !== void 0) {
2301
- state.typing.add("Literal");
2302
- return `Literal[${pyScalar(node.const)}]`;
2303
- }
2304
- if (node.enum !== void 0) {
2305
- state.typing.add("Literal");
2306
- return `Literal[${node.enum.map(pyScalar).join(", ")}]`;
2307
- }
2308
- return broad;
2309
- }
2310
- /**
2311
- * Map one JSON-Schema node to a Python type expression, threading `state` to
2312
- * collect the `TypedDict` declarations and `typing` symbols a full render
2313
- * needs. `className` is the name to give an object node with properties (and
2314
- * the prefix for its nested objects). Handles every unified schema construct —
2315
- * `oneOf` (→ `X | Y`), `const`/`enum` (→ `Literal[...]`), `integer` (→ `int`),
2316
- * `null` (→ `None`) — and degrades an unsupported or malformed schema to `Any`
2317
- * without throwing, the same trusted-after-validation stance as the sibling
2318
- * {@link ./ts-types.ts | ts-types} renderer. {@link jsonSchemaToPy} is the
2319
- * context-free entry point; this is the collecting core.
2320
- */
2321
- function renderType(schema, className, state) {
2322
- const newFrame = (schema, className, listDepth) => ({
2323
- schema,
2324
- className,
2325
- phase: "start",
2326
- listDepth,
2327
- children: [],
2328
- childIndex: 0,
2329
- childTypes: [],
2330
- entries: []
2331
- });
2332
- try {
2333
- assertSupportedJsonSchema(schema);
2334
- const frames = [newFrame(schema, className, 0)];
2335
- let result;
2336
- const finish = (type) => {
2337
- frames.pop();
2338
- const parent = frames.at(-1);
2339
- if (parent === void 0) result = type;
2340
- else parent.childTypes.push(type);
2341
- };
2342
- while (frames.length > 0) {
2343
- const frame = frames.at(-1);
2344
- /* v8 ignore next -- the loop condition guarantees a current frame. */
2345
- if (frame === void 0) break;
2346
- if (frame.phase === "children") {
2347
- if (frame.childIndex < frame.children.length) {
2348
- const child = frame.children[frame.childIndex];
2349
- /* v8 ignore next -- childIndex is bounded by children.length. */
2350
- if (child === void 0) throw new Error("missing python render child");
2351
- frame.childIndex++;
2352
- frames.push(newFrame(child.schema, child.className, child.listDepth));
2353
- continue;
2354
- }
2355
- if (frame.kind === "oneOf") {
2356
- let union = "";
2357
- for (const [index, childType] of frame.childTypes.entries()) union = index === 0 ? childType : `${union} | ${childType}`;
2358
- finish(union);
2359
- continue;
2360
- }
2361
- if (frame.kind === "array") {
2362
- /* v8 ignore next -- the ?? arm needs a childless array frame, which start never builds. */
2363
- finish(`list[${frame.childTypes[0] ?? "Any"}]`);
2364
- continue;
2365
- }
2366
- const node = frame.node;
2367
- const name = frame.allocated;
2368
- /* v8 ignore next -- typeddict frames always set node and allocated at start. */
2369
- if (node === void 0 || name === void 0) throw new Error("missing typeddict frame state");
2370
- const required = new Set(node.required);
2371
- const lines = [`class ${name}(TypedDict):`];
2372
- for (let index = 0; index < frame.entries.length; index++) {
2373
- const entry = frame.entries[index];
2374
- const fieldType = frame.childTypes[index];
2375
- /* v8 ignore next -- entries and childTypes correspond one-to-one. */
2376
- if (entry === void 0 || fieldType === void 0) throw new Error("missing typeddict field type");
2377
- const [field, fieldSchema] = entry;
2378
- const description = describe(fieldSchema);
2379
- if (description !== void 0) lines.push(`${pad(1)}# ${description}`);
2380
- if (required.has(field)) lines.push(`${pad(1)}${field}: ${fieldType}`);
2381
- else {
2382
- state.typing.add("NotRequired");
2383
- lines.push(`${pad(1)}${field}: NotRequired[${fieldType}]`);
2384
- }
2385
- }
2386
- if (node.additionalProperties !== false) lines.push(`${pad(1)}# Additional keys beyond those declared are allowed.`);
2387
- if (lines.length === 1) lines.push(`${pad(1)}pass`);
2388
- state.classes.push(lines.join("\n"));
2389
- finish(name);
2390
- continue;
2391
- }
2392
- frame.phase = "children";
2393
- const node = frame.schema;
2394
- if (node.oneOf !== void 0) {
2395
- frame.kind = "oneOf";
2396
- frame.children = node.oneOf.map((branch, index) => ({
2397
- schema: branch,
2398
- className: childClassName(frame.className, `${index + 1}`),
2399
- listDepth: frame.listDepth
2400
- }));
2401
- continue;
2402
- }
2403
- if (node.type === void 0) {
2404
- state.typing.add("Any");
2405
- finish("Any");
2406
- continue;
2407
- }
2408
- switch (node.type) {
2409
- case "string":
2410
- finish(renderConstrainedScalar(node, "str", state));
2411
- break;
2412
- case "number":
2413
- finish(renderConstrainedScalar(node, "float", state));
2414
- break;
2415
- case "integer":
2416
- finish(renderConstrainedScalar(node, "int", state));
2417
- break;
2418
- case "boolean":
2419
- finish(renderConstrainedScalar(node, "bool", state));
2420
- break;
2421
- case "null":
2422
- finish("None");
2423
- break;
2424
- case "array":
2425
- if (node.items === void 0) {
2426
- state.typing.add("Any");
2427
- finish("list[Any]");
2428
- break;
2429
- }
2430
- if (frame.listDepth >= MAX_LIST_NESTING) {
2431
- state.typing.add("Any");
2432
- finish("Any");
2433
- break;
2434
- }
2435
- frame.kind = "array";
2436
- frame.children = [{
2437
- schema: node.items,
2438
- className: frame.className,
2439
- listDepth: frame.listDepth + 1
2440
- }];
2441
- break;
2442
- case "object": {
2443
- const entries = Object.entries(node.properties ?? {});
2444
- if (className === "" || !entries.every(([name]) => isBareIdentifier(name) && !RESERVED.has(name) && !(name.startsWith("__") && !name.endsWith("__")))) {
2445
- state.typing.add("Any");
2446
- finish("dict[str, Any]");
2447
- break;
2448
- }
2449
- if (entries.length === 0 && node.additionalProperties !== false) {
2450
- state.typing.add("Any");
2451
- finish("dict[str, Any]");
2452
- break;
2453
- }
2454
- frame.kind = "typeddict";
2455
- frame.node = node;
2456
- frame.allocated = allocateClassName(frame.className, state);
2457
- state.typing.add("TypedDict");
2458
- frame.entries = entries;
2459
- /* v8 ignore next -- allocated is always set before children are built. */
2460
- frame.children = entries.map(([field, child]) => ({
2461
- schema: child,
2462
- className: childClassName(frame.allocated ?? "", camelCase(field)),
2463
- listDepth: 1
2464
- }));
2465
- break;
2466
- }
2467
- /* v8 ignore next 4 -- assertSupportedJsonSchema narrowed this closed type union. */
2468
- default:
2469
- state.typing.add("Any");
2470
- finish("Any");
2471
- }
2472
- }
2473
- /* v8 ignore next -- every root frame produces one expression. */
2474
- return result ?? "Any";
2475
- } catch {
2476
- state.typing.add("Any");
2477
- return "Any";
2478
- }
2479
- }
2480
- /**
2481
- * Map one JSON-Schema node to a context-free Python type expression from the
2482
- * `typing` module. Handles every unified schema construct — `object` (degraded
2483
- * to `dict[str, Any]`: naming a `TypedDict` requires the render context that
2484
- * {@link renderToolsSdkPy} supplies), `const`/`enum` (→ `Literal[...]`),
2485
- * `oneOf` (→ union), `string`/`number`/`integer`/`boolean`/`null`, `array`
2486
- * (`items` → `list[T]`) — and returns `Any` for an unsupported or malformed
2487
- * schema, matching the TS flavor's `unknown` fallback. Type annotations in the
2488
- * emitted SDK are advisory: Python does not enforce them at runtime.
2489
- * @param schema - the JSON-Schema node.
2490
- * @returns the Python type text.
2491
- */
2492
- function jsonSchemaToPy(schema) {
2493
- return renderType(schema, "", {
2494
- classes: [],
2495
- usedClassNames: /* @__PURE__ */ new Set(),
2496
- nextClassCounter: /* @__PURE__ */ new Map(),
2497
- typing: /* @__PURE__ */ new Set()
2498
- });
2499
- }
2500
- /** The fixed model-facing usage contract rendered above the declarations. */
2501
- const SDK_INSTRUCTIONS = `## Writing code for run_code
2502
-
2503
- \`run_code\` takes two required arguments: \`code\`, the program to execute, and \`description\`, a short summary of what the program does. At run time exactly two of the names declared below are bound: \`tools\` and \`ToolCallError\`. Everything else is a STATIC STUB describing argument and return types — in particular the \`TypedDict\` classes do NOT exist at run time, so build arguments as plain \`dict\`/\`list\` JSON values: \`await tools.name({"field": 1})\`, never \`FooArgs(field=1)\`, which raises \`NameError\`. Inside the program:
2504
-
2505
- - Call tools as \`await tools.name(args)\` — subscript access for exotic, reserved, or underscore-leading names: \`await tools["my-tool"](args)\`. Every call resolves to the tool's typed canonical JSON value (each method's return type below). Tool arguments must be lossless JSON.
2506
- - A FAILED tool call raises \`ToolCallError\`, whose \`toolName\` identifies the failed tool and whose message is human-readable — wrap in \`try/except\` to handle and continue.
2507
- - Independent read-only calls MAY overlap under \`asyncio.gather\` (safe calls run concurrently; mutating calls run alone, in submission order). Sequence dependent work with \`await\`.
2508
- - Only values emitted as program output enter the conversation. A successful tool result containing an image is attached after the run so you can inspect it on the next step; every other intermediate result stays out of the conversation, so extract just what you need.
2509
-
2510
- The available tools:`;
2511
- /**
2512
- * Render the full `tools:sdk` prompt section under `runtime.language ===
2513
- * 'python'`: the Python-flavored usage instructions plus one named `TypedDict`
2514
- * per tool argument or output object (and per nested object) and one awaitable
2515
- * method per visible tool on a `Tools` protocol — typed args in, the tool's
2516
- * canonical output value out — with a `tools: Tools` singleton the model calls
2517
- * into. The `typing` import line lists exactly the symbols the render used.
2518
- * Deterministic — tools are emitted in lexicographic name order, and class
2519
- * declarations precede the protocol in that same order (nested classes before
2520
- * the parent that references them), so an unchanged tool set produces
2521
- * byte-identical text across assemblies. The sort is not a total order on
2522
- * byte-equal names, so two schemas sharing a name would render in argument
2523
- * order; the caller's visible-capability map is keyed by name, so the input
2524
- * never carries a duplicate.
2525
- * @param schemas - the tool schemas plus canonical output schemas to declare
2526
- * (the caller excludes `run_code` itself).
2527
- * @returns the complete section text.
2528
- */
2529
- function renderToolsSdkPy(schemas) {
2530
- const sorted = [...schemas].sort((a, b) => a.name < b.name ? -1 : a.name > b.name ? 1 : 0);
2531
- const state = {
2532
- classes: [],
2533
- usedClassNames: /* @__PURE__ */ new Set(),
2534
- nextClassCounter: /* @__PURE__ */ new Map(),
2535
- typing: new Set(["Protocol"])
2536
- };
2537
- const members = [];
2538
- let statements = 0;
2539
- for (const schema of sorted) {
2540
- const argType = renderType(schema.parameters, `${camelCase(schema.name)}Args`, state);
2541
- const outputType = renderType(schema.output, `${camelCase(schema.name)}Output`, state);
2542
- if (isBareIdentifier(schema.name) && !RESERVED.has(schema.name) && !schema.name.startsWith("_")) {
2543
- const doc = docLines(schema.description, 2);
2544
- members.push(doc.length > 0 ? `${pad(1)}async def ${schema.name}(self, args: ${argType}) -> ${outputType}:` : `${pad(1)}async def ${schema.name}(self, args: ${argType}) -> ${outputType}: ...`);
2545
- members.push(...doc);
2546
- statements += 1;
2547
- } else {
2548
- members.push(`${pad(1)}# tools[${JSON.stringify(schema.name)}](args: ${argType}) -> ${outputType}`);
2549
- const description = describe(schema);
2550
- if (description !== void 0) members.push(`${pad(1)}# ${description}`);
2551
- }
2552
- }
2553
- const body = (statements > 0 ? members : [`${pad(1)}pass`, ...members]).join("\n");
2554
- const imports = TYPING_ORDER.filter((symbol) => state.typing.has(symbol));
2555
- const classBlock = state.classes.length > 0 ? `${state.classes.join("\n\n")}\n\n` : "";
2556
- return `${SDK_INSTRUCTIONS}\n\n\`\`\`python\n${`from typing import ${imports.join(", ")}\n\nclass ToolCallError(Exception):
2557
- toolName: str\n\n${classBlock}class Tools(Protocol):\n${body}\n\ntools: Tools`}\n\`\`\``;
2558
- }
2559
- //#endregion
2560
- //#region lib/types/testing.js
2561
- /** Canonical tool-definition fixtures for repository tests. @module dsh-tools/testing */
2562
- const CONTENT_VALUE_SCHEMA = {
2563
- type: "array",
2564
- items: { type: "json" }
2565
- };
2566
- /**
2567
- * Define a test fixture that deliberately uses its content blocks as the
2568
- * canonical JSON value. Product tools must declare domain-owned DTOs instead.
2569
- * @param options - ordinary fixture fields plus a content-producing body.
2570
- * @returns a registry-ready tool with an explicit JSON-array output contract.
2571
- * @internal
2572
- */
2573
- function defineContentToolFixture(options) {
2574
- const execute = options.execute;
2575
- return defineTool({
2576
- ...options,
2577
- output: {
2578
- schema: CONTENT_VALUE_SCHEMA,
2579
- render: (_args, value) => value
2580
- },
2581
- async execute(args, exec) {
2582
- return await execute(args, exec);
2583
- }
2584
- });
2585
- }
2586
- //#endregion
2587
- //#region lib/types/index.js
2588
- /**
2589
- * Tool registry, model presentation modes, and pre/guard/around/post/result
2590
- * execution pipeline.
2591
- * @module @deepseek-ai/dsh-tools
2592
- */
2593
- /**
2594
- * Language → SDK-section renderer. The registry looks up the loaded
2595
- * `ctx.ptcRuntime.language` in this table when assembling the `tools:sdk`
2596
- * section under a non-native mode; a runtime whose language is not a key
2597
- * fails the assembly loudly (same idiom as `toolOrder` violations). Adding a
2598
- * new backend language is three parallel edits — a {@link PtcSdkLanguage}
2599
- * member, an entry here, and a `RUN_CODE_FLAVORS` entry in `ptc.ts` for
2600
- * its `run_code` schema strings — plus the renderer function this table points
2601
- * at. The `satisfies` clause pins this table's key set to that union, which
2602
- * the flavor table is checked against too, so any of the three left out is a
2603
- * typecheck failure. What no check reaches is the prose that names the values
2604
- * instead of deriving them: the seam's `dsh-ptc-runtime` README pair, its
2605
- * `PtcRuntime.language` JSDoc, and `docs/subsystems/ptc-runtime.md`
2606
- * with its zh pair, plus this package's own README pair and the
2607
- * {@link Config.mode} JSDoc.
2608
- */
2609
- /**
2610
- * The model-facing statement of the `ptc` collapse. Names the consequence
2611
- * (the call fails) and the route (inside the program), because a rule the
2612
- * model can only discover by being denied is one it corrects too late.
2613
- */
2614
- const PTC_ONLY_INSTRUCTION = `\`${RUN_CODE_NAME}\` is the only tool you can call directly — a tool call naming any other tool fails. Reach every tool the SDK declares below from inside the program.`;
2615
- const SDK_RENDERERS = {
2616
- typescript: renderToolsSdk,
2617
- python: renderToolsSdkPy
2618
- };
2619
- /**
2620
- * Scheduler entry point omitted from the generated named service API.
2621
- * @internal
2622
- */
2623
- const TOOL_RUNTIME_SCHEDULER = Symbol("@deepseek-ai/dsh-tools.scheduler");
2624
- /** Canonical error code for cancellation after a tool body was invoked. */
2625
- const TOOL_ABORTED = "ABORTED";
2626
- /** Canonical error code for cancellation before a tool body was invoked. */
2627
- const TOOL_ABORTED_BEFORE_DISPATCH = "ABORTED_BEFORE_DISPATCH";
2628
- /**
2629
- * Thrown (internally) when the model requests a tool that isn't registered.
2630
- * Extends {@link HarnessError} (`code: 'UNKNOWN_TOOL'`) so an unknown-tool
2631
- * failure is as routable as a tool-thrown one — retry/sandbox/replay code can
2632
- * distinguish it from a tool body's own error.
2633
- */
2634
- var ToolNotFoundError = class extends HarnessError {
2635
- /**
2636
- * @param toolName - the name the caller asked for.
2637
- * @param reachableFrom - how the model reaches this tool instead, when the
2638
- * name IS visible and only the presentation denies calling it directly.
2639
- * Omitted for a name that is registered nowhere.
2640
- */
2641
- constructor(toolName, reachableFrom) {
2642
- super(reachableFrom === void 0 ? `unknown tool "${toolName}"` : `unknown tool "${toolName}": ${reachableFrom}`, "UNKNOWN_TOOL");
2643
- this.name = "ToolNotFoundError";
2644
- }
2645
- };
2646
- /** Thrown when a tool body or post-policy value violates its declared output. */
2647
- var ToolOutputError = class extends HarnessError {
2648
- /** Schema/value violations in validation order. */
2649
- violations;
2650
- constructor(toolName, violations) {
2651
- super(`tool "${toolName}" returned invalid output: ${violations.join("; ")}`, "INVALID_TOOL_OUTPUT");
2652
- this.name = "ToolOutputError";
2653
- this.violations = violations;
2654
- }
2655
- };
2656
- /** Convert one projector exception into the canonical invalid-output failure. */
2657
- function projectionError(toolName, projector, error) {
2658
- return new ToolOutputError(toolName, [`output.${projector} failed: ${errorMessage(error)}`]);
2659
- }
2660
- /** Snapshot one projector result before later durable-result materialization. */
2661
- function snapshotProjection(toolName, projector, candidate) {
2662
- try {
2663
- const detached = snapshotJsonValue(candidate);
2664
- if (detached === void 0) throw new ToolOutputError(toolName, [`output.${projector} returned non-lossless JSON`]);
2665
- return detached;
2666
- } catch (error) {
2667
- if (error instanceof ToolOutputError) throw error;
2668
- throw projectionError(toolName, projector, error);
2669
- }
2670
- }
2671
- /** Snapshot one body or policy value into the canonical invalid-output failure class. */
2672
- function snapshotToolValue(toolName, candidate) {
2673
- try {
2674
- const detached = snapshotJsonValue(candidate);
2675
- if (detached === void 0) throw new ToolOutputError(toolName, ["value is not lossless JSON"]);
2676
- return detached;
2677
- } catch (error) {
2678
- if (error instanceof ToolOutputError) throw error;
2679
- throw new ToolOutputError(toolName, [`value snapshot failed: ${errorMessage(error)}`]);
2680
- }
2681
- }
2682
- /**
2683
- * Best-effort human-readable message from an arbitrary thrown value: Error
2684
- * instances use `.message`; non-Error objects with a string `message`
2685
- * property (e.g. `throw { message: 'denied' }`) use it too; everything else
2686
- * is stringified.
2687
- */
2688
- function errorMessage(error) {
2689
- try {
2690
- if (error instanceof Error) return error.message;
2691
- if (typeof error === "object" && error !== null && "message" in error && typeof error.message === "string") return error.message;
2692
- return String(error);
2693
- } catch {
2694
- return "<unprintable thrown value>";
2695
- }
2696
- }
2697
- /** Derive one failure message from policy feedback without changing its rendered blocks. */
2698
- function failureMessageFromContent(content) {
2699
- const text = content.map((block) => block.type === "text" ? block.text : `[${block.type} content]`).join("\n");
2700
- return text.length > 0 ? text : "tool result blocked by post-execute policy";
2701
- }
2702
- /** Snapshot and freeze one durable tool-result projection or reject lossy data. */
2703
- function materializePresentation(candidate) {
2704
- const detached = snapshotJsonValue(candidate);
2705
- if (detached === void 0) throw new TypeError("tool result must be losslessly JSON-serializable");
2706
- return deepFreeze(detached);
2707
- }
2708
- /** Structured `{ name, code }` for a thrown HarnessError, else undefined. */
2709
- function errorInfo(error) {
2710
- try {
2711
- return error instanceof HarnessError ? {
2712
- name: error.name,
2713
- code: error.code
2714
- } : void 0;
2715
- } catch {
2716
- return;
2717
- }
2718
- }
2719
- /** One scope's complete tool-registry contribution. */
2720
- var ToolLayer = class {
2721
- tools;
2722
- restrictions = new AnonymousEntries();
2723
- guards = new AnonymousEntries();
2724
- /**
2725
- * Presentation this scope's agent declared for itself, shadowing the
2726
- * deployment default. One cell rather than an entry table: two answers to
2727
- * "which form does the model see" is a contradiction, not a merge.
2728
- */
2729
- mode;
2730
- constructor(scope) {
2731
- this.tools = new NamedEntries((name) => /* @__PURE__ */ new Error(scope === void 0 ? `tool "${name}" is already registered (for a per-agent variant, register through that agent's \`agent.ctx\` instead)` : `tool "${name}" is already registered in this scope`));
2732
- }
2733
- /** Whether every contribution table in this aggregate layer is empty. */
2734
- isEmpty() {
2735
- return this.tools.isEmpty() && this.restrictions.isEmpty() && this.guards.isEmpty() && this.mode === void 0;
2736
- }
2737
- /** Whether every compiled restriction in this layer admits a global tool name. */
2738
- admits(name) {
2739
- for (const filter of this.restrictions.values()) if (filter.allow !== void 0 && !filter.allow.has(name) || filter.deny !== void 0 && filter.deny.has(name)) return false;
2740
- return true;
2741
- }
2742
- /** First monotonic denial from this layer's live guard registrations. */
2743
- guardReason(exec) {
2744
- for (const guard of this.guards.values()) {
2745
- const reason = guard(exec);
2746
- if (reason !== void 0) return reason;
2747
- }
2748
- }
2749
- };
2750
- /** Resolve the run_code overlap cap at the owning config boundary (direct construction bypasses the Loader schema). */
2751
- function resolveMaxParallelSubCalls(value) {
2752
- const maxParallelSubCalls = value ?? 10;
2753
- if (!Number.isInteger(maxParallelSubCalls) || maxParallelSubCalls < 1) throw new Error("maxParallelSubCalls must be a positive integer");
2754
- return maxParallelSubCalls;
2755
- }
2756
- /**
2757
- * Tool registry and execution pipeline. Scoped registrations shadow globals;
2758
- * one visibility resolver feeds presentation, lookup, and dispatch.
2759
- */
2760
- var ToolRuntime = class extends Service {
2761
- static inject = ["systemPrompt"];
2762
- static Config = z.object({
2763
- mode: z.union(["native", "ptc"]).default("native"),
2764
- maxParallelSubCalls: z.natural().min(1).default(10)
2765
- });
2766
- /** Internal staged view consumed by `dsh-agent-loop`'s parallel scheduler. */
2767
- [TOOL_RUNTIME_SCHEDULER] = {
2768
- prepare: (exec) => this.prepareScheduledExecution(exec),
2769
- dispatch: (exec) => this.dispatchScheduledExecution(exec),
2770
- finalize: (exec, result) => this.finalizeScheduledExecution(exec, result),
2771
- finish: (exec, result) => this.finishScheduledExecution(exec, result)
2772
- };
2773
- /** Context deferred by a running tool body, keyed by its scheduler-owned execution. */
2774
- deferredContexts = /* @__PURE__ */ new WeakMap();
2775
- /** Executions whose tool body declared the current turn complete. */
2776
- concludingExecutions = /* @__PURE__ */ new WeakSet();
2777
- /** Original caller cancellation, kept outside the wrapper-mutable execution object. */
2778
- cancellationStates = /* @__PURE__ */ new WeakMap();
2779
- /** Definition-owned final content transform snapshotted before policy begins. */
2780
- contentFinalizers = /* @__PURE__ */ new WeakMap();
2781
- /** Execution-prepared content installed before post-execute policy. */
2782
- contentProjectors = /* @__PURE__ */ new WeakMap();
2783
- layers = new ScopedLayers((scope) => new ToolLayer(scope), () => {
2784
- this.ctx.emit("tools/change");
2785
- });
2786
- /** Presentation for scopes that declare none; {@link presentAs} shadows it per scope. */
2787
- defaultMode;
2788
- maxParallelSubCalls;
2789
- /**
2790
- * Reserved presentation transport, kept outside the filterable registration
2791
- * layers. Built on first need rather than at construction: which agents run
2792
- * a PTC mode is no longer known when the service is constructed, and the
2793
- * transport owns its PTC call tracking and state-owner registrations.
2794
- */
2795
- ptcTransport;
2796
- ptcContext;
2797
- constructor(ctx, config = {}) {
2798
- super(ctx, "tools");
2799
- this.ptcContext = ctx;
2800
- this.defaultMode = config.mode ?? "native";
2801
- this.maxParallelSubCalls = resolveMaxParallelSubCalls(config.maxParallelSubCalls);
2802
- ctx.systemPrompt.tools((context) => this.wireSchemas(context.scope));
2803
- if (this.defaultMode !== "native") {
2804
- ctx.systemPrompt.section(this.collapseSection());
2805
- ctx.systemPrompt.section(this.sdkSection());
2806
- }
2807
- }
2808
- /**
2809
- * The prompt statement of the `ptc` executor collapse, registered wherever
2810
- * {@link sdkSection} is and rendering empty outside an effective `ptc`.
2811
- *
2812
- * Every tool contributes its own guidance section naming its tool, none of
2813
- * them qualify how that tool is reached, and they all render before the SDK.
2814
- * Without this the model reads a catalog of tools it is told to use and no
2815
- * statement that only `run_code` may be called, so it emits a native call,
2816
- * receives `UNKNOWN_TOOL` for a tool the prompt just declared, and concludes
2817
- * the deployment is inconsistent. Its order places the rule before that
2818
- * guidance rather than after it.
2819
- *
2820
- * Native scopes render no instruction.
2821
- * @returns the section registration.
2822
- */
2823
- collapseSection() {
2824
- return {
2825
- name: "tools:ptc-only",
2826
- order: this.ctx.systemPrompt.getSectionOrder("PTC_ONLY"),
2827
- text: (context) => this.modeFor(context.scope) === "ptc" ? PTC_ONLY_INSTRUCTION : ""
2828
- };
2829
- }
2830
- /**
2831
- * The generated-SDK prompt section, registered globally by a PTC mode
2832
- * deployment and per scope by {@link presentAs}.
2833
- *
2834
- * The body regenerates from the CALLING scope, and renders empty for an
2835
- * agent presenting natively — an agent that opted out under a PTC mode
2836
- * deployment still sees the global registration, and an empty section is
2837
- * dropped from the rendered prompt.
2838
- * @returns the section registration.
2839
- */
2840
- sdkSection() {
2841
- return {
2842
- name: "tools:sdk",
2843
- order: this.ctx.systemPrompt.getSectionOrder("TOOLS_SDK"),
2844
- interpolate: false,
2845
- text: (context) => {
2846
- const mode = this.modeFor(context.scope);
2847
- if (mode === "native") return "";
2848
- const runtime = this.requirePtcRuntime(mode);
2849
- const render = SDK_RENDERERS[runtime.language];
2850
- /* v8 ignore next -- requirePtcRuntime rejects an unknown language before this runs. */
2851
- if (render === void 0) throw new Error(`dsh-tools: no SDK renderer for ${runtime.language}`);
2852
- return render(this.sdkSchemas(context.scope), runtime.programFormat);
2853
- }
2854
- };
2855
- }
2856
- /**
2857
- * The presentation one scope's agent sees: its own declaration, else the
2858
- * deployment default.
2859
- * @param scope - the calling agent, or undefined for the global view.
2860
- * @returns the resolved presentation mode.
2861
- */
2862
- modeFor(scope) {
2863
- const layers = this.layers.chainLayers(scope);
2864
- for (let index = layers.length - 1; index >= 0; index -= 1) {
2865
- const mode = layers[index]?.mode;
2866
- if (mode !== void 0) return mode;
2867
- }
2868
- return this.defaultMode;
2869
- }
2870
- /**
2871
- * The reserved `run_code` transport, built on first need.
2872
- *
2873
- * It never enters the global layer: per-agent restrictions must not remove
2874
- * it, and a scoped registration must not shadow it. The visibility resolver
2875
- * appends it after resolving the filterable global/scoped capability layers,
2876
- * and only for scopes whose mode actually presents it.
2877
- * @returns the shared transport definition.
2878
- */
2879
- requirePtcTransport() {
2880
- this.ptcTransport ??= createRunCodeTool(this, {
2881
- resolveWorkingDirectory: async (exec) => {
2882
- if (exec.agent === void 0) return void 0;
2883
- const directories = this.ctx.get("workingDirectory");
2884
- if (directories === void 0) throw new Error("dsh-tools: run_code with an Agent requires workingDirectory");
2885
- return directories.ensure(exec.agent, exec.signal);
2886
- },
2887
- requireRuntime: () => this.requirePtcRuntime(this.defaultMode),
2888
- peekApprover: () => this.ctx.get("approval"),
2889
- resolveSandboxPolicy: (exec) => {
2890
- const policy = this.ctx.get("sandboxPolicy");
2891
- if (policy === void 0) throw new Error("dsh-tools: confined PTC runtime requires sandboxPolicy");
2892
- return policy.resolve(exec.agent === void 0 ? {} : { session: exec.agent.session });
2893
- },
2894
- peekRuntime: () => this.ctx.get("ptcRuntime"),
2895
- maxParallel: this.maxParallelSubCalls,
2896
- shapeDispatchLog: (dispatch) => this.shapeDispatchLog(dispatch)
2897
- }, this.ptcContext);
2898
- return this.ptcTransport;
2899
- }
2900
- /**
2901
- * Present the calling scope's tools in `mode` instead of the deployment
2902
- * default. Nearest scope on the chain wins, so a preset's standing
2903
- * declaration covers every agent joined under it.
2904
- *
2905
- * Scoped only, and one declaration per scope: this is how an agent preset
2906
- * composes PTC mode agents beside native ones in the same process, and a
2907
- * process-global override would be the `mode` config field instead.
2908
- * @param mode - the presentation the covered agents' models see.
2909
- * @returns the exact disposer that restores the deployment default.
2910
- */
2911
- presentAs(mode) {
2912
- const ctx = this.ctx;
2913
- if (scopeOf(ctx) === void 0) throw new Error("tools.presentAs() requires a scoped context (agent.ctx): a context-global presentation is the `mode` config field on the tools row");
2914
- return ctx.effect(function* () {
2915
- yield this.layers.effect(ctx, (layer) => {
2916
- if (layer.mode !== void 0) throw new Error(`tools.presentAs("${mode}") conflicts with "${layer.mode}" already declared for this scope; one composition selects one presentation`);
2917
- layer.mode = mode;
2918
- return () => {
2919
- layer.mode = void 0;
2920
- };
2921
- }, { label: "tools.presentAs()" });
2922
- if (mode !== "native") {
2923
- yield ctx.systemPrompt.section(this.collapseSection());
2924
- yield ctx.systemPrompt.section(this.sdkSection());
2925
- }
2926
- }.bind(this), "tools.presentAs()");
2927
- }
2928
- /**
2929
- * Build one scope's wire schemas and names for prompt-order validation.
2930
- * Restrictions do not make known tools invalid, but a mode collapse does.
2931
- */
2932
- wireSchemas(scope) {
2933
- const view = this.view(scope);
2934
- const mode = this.modeFor(scope);
2935
- if (mode === "native") return {
2936
- schemas: [...view.visible.values()].map((definition) => this.schemaOf(definition, false)),
2937
- knownNames: [...view.knownNames]
2938
- };
2939
- this.requirePtcRuntime(mode);
2940
- return {
2941
- schemas: [...view.visible.values()].map((definition) => this.schemaOf(definition, false)).filter((schema) => schema.name === RUN_CODE_NAME),
2942
- knownNames: [RUN_CODE_NAME]
2943
- };
2944
- }
2945
- /**
2946
- * Resolve the PTC runtime or throw the actionable misconfiguration error.
2947
- * Read at use time (assembly / run_code execution), NOT via static
2948
- * `inject`: an inject entry would hold `ctx.tools` — and every tool plugin
2949
- * behind it — hostage to a PTC runtime existing even under `mode:
2950
- * 'native'`.
2951
- *
2952
- * Assembly and `run_code` execution read separately, so the language is not
2953
- * bound to a request. Harmless while one published backend exists — both
2954
- * reads return the same flavor — but a reload that swapped in a second
2955
- * language between them would hand a program written against one SDK to the
2956
- * other. Binding it is deferred until a second backend ships (the first
2957
- * point it is testable).
2958
- */
2959
- requirePtcRuntime(mode) {
2960
- const runtime = this.ctx.get("ptcRuntime");
2961
- if (!runtime) throw new Error(`dsh-tools: mode "${mode}" requires a PTC runtime — load a ctx.ptcRuntime implementation (e.g. @deepseek-ai/dsh-ptc-runtime-node) or set tools mode to "native"`);
2962
- if (!Object.hasOwn(SDK_RENDERERS, runtime.language)) {
2963
- const known = Object.keys(SDK_RENDERERS).map((name) => JSON.stringify(name)).join(", ");
2964
- throw new Error(`dsh-tools: no SDK renderer registered for runtime language ${JSON.stringify(runtime.language)} (known: ${known})`);
2965
- }
2966
- return runtime;
2967
- }
2968
- /**
2969
- * Register globally or in the calling agent scope. Scoped tools shadow
2970
- * globals; duplicates within one layer and the reserved `run_code` name fail.
2971
- * @param definition - tool schema, execution, and optional finalization/presentation callbacks.
2972
- * @returns the exact disposer that unregisters the tool.
2973
- */
2974
- register(definition) {
2975
- const name = definition.name;
2976
- const output = definition.output;
2977
- if (output === void 0 || typeof output !== "object" || typeof output.render !== "function" || output.presentationMeta !== void 0 && typeof output.presentationMeta !== "function") throw new TypeError(`tool "${name}" must declare output { schema, render, presentationMeta? }`);
2978
- assertSupportedJsonSchema(output.schema);
2979
- const timeoutMs = definition.timeoutMs;
2980
- if (timeoutMs !== void 0 && (!Number.isFinite(timeoutMs) || timeoutMs <= 0)) throw new TypeError(`tool "${name}" timeoutMs must be a positive finite number`);
2981
- if (name === "run_code") throw new Error(`tool name "${RUN_CODE_NAME}" is reserved for the PTC mode presentation transport and cannot be registered or shadowed`);
2982
- return this.layers.effect(this.ctx, (layer) => layer.tools.insert(name, definition), { label: "tools.register()" });
2983
- }
2984
- /**
2985
- * Restrict global tools for the calling agent scope. Empty filters, unknown
2986
- * names, scope-local names, and reserved transport names fail. Restrictions
2987
- * intersect; scoped registrations remain visible.
2988
- * @param filter - global-tool mask: `allow` (keep only) and/or `deny` (remove).
2989
- * @returns the exact disposer that lifts this restriction.
2990
- */
2991
- restrict(filter) {
2992
- const scope = scopeOf(this.ctx);
2993
- if (scope === void 0) throw new Error("tools.restrict() requires a scoped context (agent.ctx): a context-global restriction would mask every agent — deny the tool for the intended agent instead");
2994
- const allow = filter.allow;
2995
- const deny = filter.deny;
2996
- if (allow === void 0 && deny === void 0) throw new Error("tools.restrict({}) is a no-op: pass `allow` and/or `deny` (an empty filter is almost always a materialized-empty-config bug)");
2997
- const compiled = {
2998
- ...allow !== void 0 ? { allow: new Set(allow) } : {},
2999
- ...deny !== void 0 ? { deny: new Set(deny) } : {}
3000
- };
3001
- if ([...allow ?? [], ...deny ?? []].includes("run_code")) throw new Error(`tools.restrict() cannot name reserved PTC mode presentation transport "${RUN_CODE_NAME}"; restrict end-capability tools instead`);
3002
- const known = this.view(scope).restrictableNames;
3003
- const unknown = [...allow ?? [], ...deny ?? []].filter((name) => !known.has(name));
3004
- if (unknown.length > 0) throw new Error(`tools.restrict() names unknown global tool${unknown.length > 1 ? "s" : ""} ${unknown.map((n) => `"${n}"`).join(", ")}; known global tools: ${[...known].sort().join(", ") || "(none)"}`);
3005
- return this.layers.effect(this.ctx, (layer) => layer.restrictions.append(compiled), { label: "tools.restrict()" });
3006
- }
3007
- /**
3008
- * Register a monotonic guard after the extensible `tools/pre-execute`
3009
- * waterfall. A plain-context guard applies globally; one registered through
3010
- * `agent.ctx` applies only to that agent. Any matching guard may deny by
3011
- * returning a reason, while no guard can force-allow a call another guard
3012
- * denied. The exact effect disposer is returned for ordered ownership and
3013
- * HMR cleanup.
3014
- * @param guard - synchronous check; a returned string denies the execution.
3015
- * @returns the exact disposer that unregisters the guard.
3016
- */
3017
- guard(guard) {
3018
- return this.layers.effect(this.ctx, (layer) => layer.guards.append(guard), {
3019
- label: "tools.guard()",
3020
- notify: false
3021
- });
3022
- }
3023
- /** First monotonic denial from the global then the scope chain's guard layers, farthest first. */
3024
- guardReason(exec) {
3025
- const globalReason = this.layers.global.guardReason(exec);
3026
- if (globalReason !== void 0) return globalReason;
3027
- if (exec.agent === void 0) return void 0;
3028
- for (const layer of this.layers.chainLayers(exec.agent)) {
3029
- const reason = layer.guardReason(exec);
3030
- if (reason !== void 0) return reason;
3031
- }
3032
- }
3033
- /**
3034
- * Resolve every registry fact one scope needs in one layer traversal. The
3035
- * visible map applies restrictions to the INHERITED surface, then the
3036
- * scope's own registrations and the reserved presentation transport; the
3037
- * other sets retain the pre-restriction facts needed by restriction and
3038
- * prompt-order validation.
3039
- *
3040
- * A restriction filters what a scope inherits — the global layer and every
3041
- * ancestor layer on its chain — and never what its OWN layer registers.
3042
- * That exemption is what a per-child capability filter has to keep intact:
3043
- * the delegation runtime registers a child's structured-output tool into the
3044
- * child's own layer, and a filter naming the capabilities the child may use
3045
- * must not strip the machinery it answers through.
3046
- *
3047
- * Reading the exempt set as "the global layer" instead of "not mine" held
3048
- * only while every model-facing tool sat in the host composition. Once
3049
- * presets moved them onto the agent plane they became an ANCESTOR
3050
- * contribution, so a child's filter silently stopped constraining anything
3051
- * it was given.
3052
- * @param scope - the viewing scope (the agent), or undefined for the global view.
3053
- * @returns the complete derived view for that scope.
3054
- */
3055
- view(scope) {
3056
- const layers = this.layers.chainLayers(scope);
3057
- const own = this.layers.peek(scope);
3058
- const inherited = new Map(this.layers.global.tools.entries());
3059
- for (const layer of layers) {
3060
- if (layer === own) continue;
3061
- for (const [name, definition] of layer.tools.entries()) inherited.set(name, definition);
3062
- }
3063
- const visible = /* @__PURE__ */ new Map();
3064
- const knownNames = /* @__PURE__ */ new Set();
3065
- const restrictableNames = /* @__PURE__ */ new Set();
3066
- for (const [name, definition] of inherited) {
3067
- knownNames.add(name);
3068
- restrictableNames.add(name);
3069
- if (layers.every((layer) => layer.admits(name))) visible.set(name, definition);
3070
- }
3071
- if (own !== void 0) for (const [name, definition] of own.tools.entries()) {
497
+ if (own !== void 0) for (const [name, registration] of own.tools.entries()) {
3072
498
  knownNames.add(name);
3073
- visible.set(name, definition);
499
+ visible.set(name, registration.definition);
500
+ registrations.set(name, registration);
3074
501
  }
3075
- if (this.modeFor(scope) !== "native") visible.set(RUN_CODE_NAME, this.requirePtcTransport());
3076
502
  return {
3077
503
  visible,
504
+ registrations,
3078
505
  knownNames,
3079
506
  restrictableNames
3080
507
  };
@@ -3086,725 +513,153 @@ var ToolRuntime = class extends Service {
3086
513
  * actually executed.
3087
514
  * @param name - the tool name as registered.
3088
515
  * @param scope - the viewing scope (the agent); omitted = the global view.
516
+ * @param toolSet - step admission; omit only to inspect registered definitions.
3089
517
  * @returns the definition the scope resolves, or undefined when none is visible.
3090
518
  */
3091
- get(name, scope) {
3092
- return this.view(scope).visible.get(name);
519
+ get(name, scope, toolSet) {
520
+ return toolSet === void 0 ? this.view(scope).visible.get(name) : toolSet.view(scope).get(name);
3093
521
  }
3094
522
  /**
3095
- * Resolve the definition that MAY EXECUTE for a call, applying the mode
3096
- * collapse at the operation boundary that owns it. The registry view
3097
- * (`get`) is presentation-agnostic; here a MODEL-DIRECT call under `ptc`
3098
- * may only name the reserved `run_code` transport, while a nested
3099
- * sub-dispatch (a `parent` token set — the `run_code` SDK calling a tool
3100
- * it bound) may call any visible tool. Denial surfaces as `UNKNOWN_TOOL`
3101
- * through the executor, matching an absent definition.
523
+ * Resolve the definition a call may execute. With a step's admitted set, the
524
+ * set decides; without one, conditional registrations are unavailable.
3102
525
  * @param name - the tool name as registered.
3103
- * @param scope - the viewing scope (the agent); omitted = the global view.
3104
- * @param nested - whether the call is a transport sub-dispatch, not a model-direct call.
3105
- * @returns the definition that may run, or undefined when the call must be rejected.
526
+ * @param scope - the calling agent; omitted = the global view.
527
+ * @param toolSet - step admission, or omitted for a call outside a model step.
528
+ * @returns the executable definition, or undefined when the call must fail as `UNKNOWN_TOOL`.
3106
529
  */
3107
- resolveExecution(name, scope, nested) {
3108
- const tool = this.get(name, scope);
3109
- if (tool === void 0) return void 0;
3110
- if (this.collapses(name, scope, nested)) return void 0;
3111
- return tool;
3112
- }
3113
- /**
3114
- * Project visible definitions onto the allowlisted model-facing schema fields,
3115
- * excluding execution and presentation callbacks.
3116
- * @param scope - the viewing scope (the agent); omitted = the global view.
3117
- * @returns one deep-cloned schema per visible tool.
3118
- */
3119
- schemas(scope) {
3120
- return [...this.view(scope).visible.values()].map((definition) => this.schemaOf(definition, true));
3121
- }
3122
- /** Project visible callable tools onto the generated PTC mode SDK contract. */
3123
- sdkSchemas(scope) {
3124
- return [...this.view(scope).visible.values()].filter((definition) => definition.name !== RUN_CODE_NAME).map((definition) => {
3125
- const output = snapshotJsonValue(definition.output.schema);
3126
- /* v8 ignore next -- registration already validated and retained this schema as lossless JSON. */
3127
- if (output === void 0) throw new Error(`tool "${definition.name}" output schema must be lossless JSON before SDK projection`);
3128
- return {
3129
- ...this.schemaOf(definition, true),
3130
- output
3131
- };
3132
- });
3133
- }
3134
- /** Project one definition onto the model-facing schema fields. */
3135
- schemaOf(definition, detachParameters) {
3136
- const { name, description, parameters, deferLoading } = definition;
3137
- const detached = detachParameters ? snapshotJsonValue(parameters) : parameters;
3138
- if (detached === void 0) throw new Error(`tool "${name}" parameters must be lossless JSON before schema projection`);
3139
- return {
3140
- name,
3141
- description,
3142
- parameters: detached,
3143
- ...deferLoading === true ? { deferLoading } : {}
3144
- };
3145
- }
3146
- /**
3147
- * Classify a pending call through the caller's visible tool definition. Only
3148
- * an exact `true` is parallel; unknown, hidden, undeclared, invalid, or
3149
- * throwing classifiers are exclusive.
3150
- * @param exec - call name, parsed arguments, and optional agent scope.
3151
- * @returns the fail-closed scheduling mode.
3152
- */
3153
- executionMode(exec) {
3154
- const tool = this.resolveExecution(exec.name, exec.agent, exec.parent !== void 0);
3155
- if (!tool?.isConcurrencySafe) return { kind: "exclusive" };
3156
- try {
3157
- return tool.isConcurrencySafe(exec.arguments) === true ? { kind: "parallel" } : { kind: "exclusive" };
3158
- } catch {
3159
- return { kind: "exclusive" };
3160
- }
3161
- }
3162
- /**
3163
- * Run the `tools/ptc-dispatch-log` waterfall over one settled sub-dispatch
3164
- * and return the content the bridge should log on `tool/ptc-dispatch`.
3165
- * Contained: when a listener throws, the method logs the original settled
3166
- * content; that failure must not fail the dispatch or omit the settle event. Private:
3167
- * the ONE consumer is the `run_code` bridge this registry constructs, which
3168
- * receives it as a capability parameter (the `requireRuntime` idiom) — the
3169
- * waterfall, not this invoker, is the public extension point.
3170
- */
3171
- async shapeDispatchLog(dispatch) {
3172
- try {
3173
- return await this.ctx.waterfall(scopeTarget(this, dispatch.agent), "tools/ptc-dispatch-log", dispatch, () => Promise.resolve(dispatch.content));
3174
- } catch (error) {
3175
- this.ctx.logger.warn(`tools: ptc-dispatch-log listener failed for ${dispatch.name}: ${errorMessage(error)}; logging the original settled content`);
3176
- return dispatch.content;
3177
- }
3178
- }
3179
- /**
3180
- * Whether the `ptc` mode collapse denies a model-direct call: only the
3181
- * reserved `run_code` transport may be named. Nested sub-dispatches (a
3182
- * `parent` token set) bypass the collapse. One home for the
3183
- * security-relevant predicate, shared by {@link resolveExecution} and
3184
- * {@link createExecution} so the two can never drift apart.
3185
- *
3186
- * Resolved through {@link modeFor}, NOT `defaultMode`: an agent given `ptc`
3187
- * by an agent preset under a native deployment is the composition
3188
- * `dsh-agent-tool-presentation` exists for, and reading the deployment default would
3189
- * leave exactly that agent uncollapsed — announcing one surface while
3190
- * executing another, which is the bypass this collapse closes.
3191
- * @param name - the tool name as registered.
3192
- * @param scope - the viewing scope whose effective presentation mode applies.
3193
- * @param nested - whether the call is a transport sub-dispatch, not a model-direct call.
3194
- */
3195
- collapses(name, scope, nested) {
3196
- return !nested && this.modeFor(scope) === "ptc" && name !== "run_code";
530
+ executable(name, scope, toolSet) {
531
+ if (toolSet !== void 0) return toolSet.view(scope).get(name);
532
+ const view = this.view(scope);
533
+ return view.registrations.get(name)?.when === void 0 ? view.visible.get(name) : void 0;
3197
534
  }
3198
535
  /**
3199
- * Execute through pre-policy, guards, around-dispatch, post-policy,
3200
- * definition-owned content finalization, and final notification. Tool and
3201
- * listener failures resolve as materialized error results; an invisible tool
3202
- * reports `UNKNOWN_TOOL`. The returned outcome is the same lossless, frozen
3203
- * snapshot final observers receive. Cancellation
3204
- * arriving after entry and before final result materialization skips a
3205
- * not-yet-started body with `ABORTED_BEFORE_DISPATCH` or replaces a
3206
- * successful started outcome with `ABORTED`; already-started work is still
3207
- * drained and may retain a tool-owned structured error.
3208
- * @param exec - the typed same-process call input. The registry assigns its
3209
- * correlation token before policy begins.
3210
- * @returns the materialized final result.
536
+ * Resolve conditions once for this step without changing shared registrations.
537
+ * Cancellation or a rejected condition publishes no partial selection. Removed
538
+ * registrations cannot be restored by a late condition result.
539
+ * @param context - preparing agent, captured model selection, and cancellation.
540
+ * @returns the complete selection; the caller disposes it after its tool batch settles.
3211
541
  */
3212
- async execute(exec) {
3213
- return this.prepareExecution(exec, (prepared) => this.completeScheduledExecution(prepared));
3214
- }
3215
- async completeScheduledExecution(prepared) {
3216
- switch (prepared.kind) {
3217
- case "dispatch": {
3218
- const dispatched = await this.dispatchScheduledExecution(prepared.exec);
3219
- return dispatched.kind === "post-result" ? await this.finalizeScheduledExecution(prepared.exec, dispatched.result) : this.finishScheduledExecution(prepared.exec, dispatched.result);
542
+ async resolve(context) {
543
+ const { agent, signal } = context;
544
+ signal.throwIfAborted();
545
+ const view = this.view(agent);
546
+ const admitted = /* @__PURE__ */ new Map();
547
+ for (const [name, definition] of view.visible) {
548
+ const registration = view.registrations.get(name);
549
+ let enabled;
550
+ try {
551
+ enabled = registration?.when === void 0 || await registration.when(context);
552
+ } catch (cause) {
553
+ signal.throwIfAborted();
554
+ throw new ToolActivationError(name, cause);
3220
555
  }
3221
- case "post-result": return await this.finalizeScheduledExecution(prepared.exec, prepared.result);
3222
- case "final-result": return this.finishScheduledExecution(prepared.exec, prepared.result);
3223
- /* v8 ignore next -- closed-union exhaustiveness guard */
3224
- default: return assertNever(prepared, "scheduled tool preparation");
556
+ signal.throwIfAborted();
557
+ if (enabled) admitted.set(name, definition);
3225
558
  }
3226
- }
3227
- createExecution(exec) {
3228
- const deferredContexts = [];
3229
- const token = createExecutionToken();
3230
- const callId = exec.callId;
3231
- const rootCallId = exec.rootCallId ?? callId;
3232
- const name = exec.name;
3233
- const agent = exec.agent;
3234
- const parent = exec.parent;
3235
- const signal = exec.signal;
3236
- const visible = this.get(name, agent);
3237
- const collapsed = visible !== void 0 && this.collapses(name, agent, parent !== void 0);
3238
- const concludingExecutions = this.concludingExecutions;
3239
- const base = {
3240
- token,
3241
- callId,
3242
- rootCallId,
3243
- name,
3244
- signal,
3245
- ...agent !== void 0 ? { agent } : {},
3246
- ...parent !== void 0 ? { parent } : {},
3247
- ...exec.schema !== void 0 ? { schema: exec.schema } : {},
3248
- deferContext(context) {
3249
- deferredContexts.push(context);
559
+ let closed = false;
560
+ return Object.freeze({
561
+ dispose: () => {
562
+ closed = true;
3250
563
  },
3251
- concludeTurn() {
3252
- concludingExecutions.add(this);
564
+ view: (scope) => {
565
+ const visible = /* @__PURE__ */ new Map();
566
+ if (closed || scope !== agent) return visible;
567
+ const current = this.view(agent);
568
+ for (const [name, definition] of admitted) if (current.visible.get(name) === definition && current.registrations.get(name) === view.registrations.get(name)) visible.set(name, definition);
569
+ return visible;
3253
570
  }
3254
- };
3255
- const capturedFinalizer = visible?.finalizeContent?.bind(visible);
3256
- const capturedProjector = visible?.projectContent?.bind(visible);
3257
- const finalizerFor = () => collapsed && !signal.aborted ? void 0 : capturedFinalizer;
3258
- try {
3259
- const detached = snapshotJsonValue(exec.arguments);
3260
- if (detached === void 0) throw new TypeError("tool execution arguments must be losslessly JSON-serializable");
3261
- const execution = {
3262
- ...base,
3263
- arguments: deepFreeze(detached)
3264
- };
3265
- this.deferredContexts.set(execution, deferredContexts);
3266
- this.contentFinalizers.set(execution, finalizerFor());
3267
- if (!collapsed) this.contentProjectors.set(execution, capturedProjector);
3268
- this.cancellationStates.set(execution, {
3269
- callerSignal: signal,
3270
- bodyInvoked: false
3271
- });
3272
- if (collapsed) {
3273
- if (signal.aborted) return {
3274
- kind: "final-result",
3275
- exec: execution,
3276
- result: toolAbortedBeforeDispatchResult()
3277
- };
3278
- return {
3279
- kind: "final-result",
3280
- exec: execution,
3281
- result: toolErrorResult(new ToolNotFoundError(name, `only \`${RUN_CODE_NAME}\` is callable directly — call \`${name}\` from inside a \`${RUN_CODE_NAME}\` program instead`))
3282
- };
3283
- }
3284
- return {
3285
- kind: "ready",
3286
- exec: execution
3287
- };
3288
- } catch (error) {
3289
- const execution = {
3290
- ...base,
3291
- arguments: void 0
3292
- };
3293
- this.contentFinalizers.set(execution, finalizerFor());
3294
- return {
3295
- kind: "final-result",
3296
- exec: execution,
3297
- result: toolErrorResult(error)
3298
- };
3299
- }
571
+ });
3300
572
  }
3301
573
  /**
3302
- * Run the ordered pre-execute and monotonic guard stages for the scheduler.
3303
- * @param input - the caller-supplied execution input.
3304
- * @returns the prepared execution plus the next scheduler stage.
3305
- * @internal
574
+ * Read the visible capability definitions for descriptions and program bindings.
575
+ * @param scope - viewing Agent or preset; omitted selects the global view.
576
+ * @param toolSet - step admission; omit only to inspect registered definitions.
577
+ * @returns definitions after scoped shadowing and restrictions, limited to the step's admission when given.
3306
578
  */
3307
- async prepareScheduledExecution(input) {
3308
- return this.prepareExecution(input, (prepared) => prepared);
3309
- }
3310
- async prepareExecution(input, next) {
3311
- const created = this.createExecution(input);
3312
- if (created.kind !== "ready") return next(created);
3313
- const exec = created.exec;
3314
- if (this.callerCancelled(exec)) return next({
3315
- kind: "final-result",
3316
- exec,
3317
- result: toolAbortedBeforeDispatchResult()
3318
- });
3319
- try {
3320
- const carrier = scopeTarget(this, exec.agent);
3321
- const gate = await this.ctx.waterfall(carrier, "tools/pre-execute", exec, () => Promise.resolve({ kind: "allow" }));
3322
- const askResolution = gate.kind === "ask" ? await this.serviceAsk(exec, gate) : {
3323
- decision: gate,
3324
- approvalCancelled: false
3325
- };
3326
- const { decision } = askResolution;
3327
- if (this.callerCancelled(exec) && askResolution.approvalCancelled) return await next({
3328
- kind: "post-result",
3329
- exec,
3330
- result: toolAbortedBeforeDispatchResult()
3331
- });
3332
- if (decision.kind === "cancel") return await next({
3333
- kind: "post-result",
3334
- exec,
3335
- result: toolAbortedBeforeDispatchResult()
3336
- });
3337
- const denialReason = decision.kind === "allow" ? this.guardReason(exec) : decision.reason;
3338
- const denialInfo = decision.kind === "deny" ? decision.info : void 0;
3339
- if (denialReason !== void 0) return await next({
3340
- kind: "post-result",
3341
- exec,
3342
- result: this.materializeFinalResult({
3343
- content: [{
3344
- type: "text",
3345
- text: `Error: ${denialReason}`
3346
- }],
3347
- isError: true,
3348
- error: {
3349
- message: denialReason,
3350
- ...denialInfo === void 0 ? {} : { info: denialInfo }
3351
- }
3352
- })
3353
- });
3354
- if (this.callerCancelled(exec)) return await next({
3355
- kind: "post-result",
3356
- exec,
3357
- result: toolAbortedBeforeDispatchResult()
3358
- });
3359
- return await next({
3360
- kind: "dispatch",
3361
- exec
3362
- });
3363
- } catch (error) {
3364
- return next({
3365
- kind: "final-result",
3366
- exec,
3367
- result: toolErrorResult(error)
3368
- });
3369
- }
3370
- }
3371
- /** Whether the original caller signal is currently aborted. */
3372
- callerCancelled(exec) {
3373
- const state = this.cancellationStates.get(exec);
3374
- /* v8 ignore next -- only registry-minted executions reach the staged scheduler methods */
3375
- if (state === void 0) throw new Error("tool registry scheduler invariant violated: missing cancellation state");
3376
- return state.callerSignal.aborted;
3377
- }
3378
- /** Canonical cancellation outcome selected by whether the tool body started. */
3379
- cancellationResult(exec, prior) {
3380
- const state = this.cancellationStates.get(exec);
3381
- /* v8 ignore next -- only registry-minted executions reach the staged scheduler methods */
3382
- if (state === void 0) throw new Error("tool registry scheduler invariant violated: missing cancellation state");
3383
- return state.bodyInvoked ? toolAbortedResult(prior) : toolAbortedBeforeDispatchResult(prior);
579
+ definitions(scope, toolSet) {
580
+ return toolSet === void 0 ? [...this.view(scope).visible.values()] : [...toolSet.view(scope).values()];
3384
581
  }
3385
582
  /**
3386
- * Dispatch the registered body with the original caller signal fused back
3387
- * into any around-wrapper replacement. Cancellation never abandons the body:
3388
- * a started promise reaches quiescence before its outcome becomes `ABORTED`.
583
+ * Project visible definitions onto the allowlisted model-facing schema fields,
584
+ * excluding execution and presentation callbacks.
585
+ * @param scope - the viewing scope (the agent); omitted = the global view.
586
+ * @param toolSet - step admission, or omitted for registered-definition inspection.
587
+ * @returns one deep-cloned schema per visible tool.
3389
588
  */
3390
- async dispatchToolBody(exec) {
3391
- const state = this.cancellationStates.get(exec);
3392
- /* v8 ignore next -- only registry-minted executions reach the staged scheduler methods */
3393
- if (state === void 0) throw new Error("tool registry scheduler invariant violated: missing cancellation state");
3394
- const wrapperSignal = exec.signal;
3395
- const fused = fuseToolSignals(state.callerSignal, wrapperSignal);
3396
- const signal = fused.signal;
3397
- if (isAborted(signal)) {
3398
- fused.dispose();
3399
- return toolAbortedBeforeDispatchResult();
3400
- }
3401
- exec.signal = signal;
3402
- try {
3403
- const tool = this.resolveExecution(exec.name, exec.agent, exec.parent !== void 0);
3404
- if (!tool) throw new ToolNotFoundError(exec.name);
3405
- state.bodyInvoked = true;
3406
- const returned = await tool.execute(exec.arguments, exec);
3407
- const result = this.createSuccessResult(exec, tool, returned);
3408
- return isAborted(signal) ? toolAbortedResult(result) : result;
3409
- } catch (error) {
3410
- return toolErrorResult(error);
3411
- } finally {
3412
- fused.dispose();
3413
- exec.signal = wrapperSignal;
3414
- }
589
+ schemas(scope, toolSet) {
590
+ return this.definitions(scope, toolSet).map((definition) => projectToolSchema(definition, true));
3415
591
  }
3416
592
  /**
3417
- * Run around-dispatch and the tool body. Tool and unknown-tool failures still
3418
- * receive post-execute; pipeline failures are already final.
3419
- * @param exec - the prepared execution.
3420
- * @returns whether the result still needs post-execute.
3421
- * @internal
593
+ * Provide the executor for the calling scope; an unscoped contribution is the deployment default.
594
+ * Rendering any executor-owned section requires the viewing scope's selection to remain available.
595
+ * @param executor - initialized provider owned by the contributing plugin.
596
+ * @returns the effect disposer. Unloading leaves the selection unavailable until it is replaced.
3422
597
  */
3423
- async dispatchScheduledExecution(exec) {
3424
- try {
3425
- const mutableExec = exec;
3426
- const carrier = scopeTarget(this, exec.agent);
3427
- const result = await this.ctx.waterfall(carrier, "tools/execute", mutableExec, () => this.dispatchToolBody(mutableExec));
3428
- const normalized = this.normalizeDispatchResult(exec, result);
3429
- const deferredContexts = this.deferredContexts.get(exec);
3430
- /* v8 ignore next -- dispatch only receives executions minted by this registry's prepare stage */
3431
- if (deferredContexts === void 0) throw new Error("tool registry scheduler invariant violated: unprepared execution");
3432
- const resultWithDeferredContexts = deferredContexts.length === 0 ? normalized : this.markCanonical(exec, {
3433
- ...normalized,
3434
- additionalContexts: [...deferredContexts, ...normalized.additionalContexts ?? []]
598
+ setExecutor(executor) {
599
+ const scope = scopeOf(this.ctx);
600
+ if ((scope === void 0 ? this.root : this.scoped.get(scope))?.executor !== void 0) throw new Error("Only one tool executor may be registered in each scope");
601
+ const record = { executor };
602
+ return this.ctx.effect(function* () {
603
+ for (const section of executor.sections ?? []) yield this.ctx.systemPrompt.section({
604
+ name: section.name,
605
+ order: section.order,
606
+ ...section.interpolate === void 0 ? {} : { interpolate: section.interpolate },
607
+ text: ({ scope, toolSet }) => {
608
+ if (this.selectExecutor(scope) !== executor) return "";
609
+ return typeof section.text === "function" ? section.text(this.definitions(scope, toolSet)) : section.text;
610
+ }
3435
611
  });
3436
- return {
3437
- kind: "post-result",
3438
- result: this.callerCancelled(exec) && !resultWithDeferredContexts.isError ? this.cancellationResult(exec, resultWithDeferredContexts) : resultWithDeferredContexts
612
+ if (scope === void 0) this.root = record;
613
+ else this.scoped.set(scope, record);
614
+ yield () => {
615
+ record.executor = void 0;
3439
616
  };
3440
- } catch (error) {
3441
- return {
3442
- kind: "final-result",
3443
- result: toolErrorResult(error)
3444
- };
3445
- }
617
+ }.bind(this), "tools.setExecutor()");
3446
618
  }
3447
619
  /**
3448
- * Run ordered post-execute, then apply definition-owned content finalization,
3449
- * materialize, and notify the final outcome.
3450
- * @param exec - the prepared execution.
3451
- * @param result - dispatch/pre result that still needs post-execute.
3452
- * @returns the materialized final result.
3453
- * @internal
620
+ * Resolve the nearest scoped provider, or the deployment default.
621
+ * @param scope - Agent or preset scope; omitted selects only the root contribution.
622
+ * @returns the selected executor; throws when it is missing or unloaded.
3454
623
  */
3455
- async finalizeScheduledExecution(exec, result) {
3456
- try {
3457
- const project = this.contentProjectors.get(exec);
3458
- this.contentProjectors.delete(exec);
3459
- const content = project?.(exec, result);
3460
- const projected = content === void 0 ? result : this.markCanonical(exec, this.materializeFinalResult({
3461
- ...result,
3462
- content
3463
- }));
3464
- const postResult = await this.postExecute(exec, projected);
3465
- return this.finishScheduledExecution(exec, this.callerCancelled(exec) && !postResult.isError ? this.cancellationResult(exec, postResult) : postResult);
3466
- } catch (error) {
3467
- return this.finishScheduledExecution(exec, toolErrorResult(error));
624
+ selectExecutor(scope) {
625
+ let record;
626
+ for (const key of scopeChainOf(scope)) {
627
+ record = this.scoped.get(key);
628
+ if (record !== void 0) break;
3468
629
  }
630
+ record ??= this.root;
631
+ const executor = record?.executor;
632
+ if (executor === void 0) throw new ToolExecutorUnavailableError();
633
+ return executor;
3469
634
  }
3470
635
  /**
3471
- * Materialize the candidate, apply definition-owned content finalization,
3472
- * then materialize and notify the authoritative result.
3473
- * @param exec - the prepared execution.
3474
- * @param result - final result.
3475
- * @returns the materialized final result.
3476
- * @internal
636
+ * Delegate a raw call batch to its Agent's provider or the deployment default.
637
+ * Select at dispatch; accepted batches settle through that provider even if it unloads.
638
+ * @param input - original calls, optional owning Agent, and optional logging step.
639
+ * @returns the selected executor's settled batch; unavailable selections reject.
3477
640
  */
3478
- finishScheduledExecution(exec, result) {
3479
- let materializedResult;
3480
- try {
3481
- materializedResult = this.materializeFinalResult(result);
3482
- } catch (error) {
3483
- materializedResult = this.materializeFinalResult(toolErrorResult(error));
3484
- }
3485
- let finalResult;
3486
- try {
3487
- finalResult = this.materializeFinalResult(this.applyFinalContent(exec, materializedResult));
3488
- } catch (error) {
3489
- finalResult = this.materializeFinalResult(toolErrorResult(error));
3490
- }
3491
- this.notifyResult(exec, finalResult);
3492
- return finalResult;
3493
- }
3494
- /** Apply the snapshotted tool-owned content transform without exposing other result fields. */
3495
- applyFinalContent(exec, result) {
3496
- const finalizeContent = this.contentFinalizers.get(exec);
3497
- if (finalizeContent === void 0) return result;
3498
- const content = finalizeContent(exec, result);
3499
- return content === void 0 ? result : {
3500
- ...result,
3501
- content
3502
- };
3503
- }
3504
- /** Notify observers without exposing a mutation or error channel into the outcome. */
3505
- notifyResult(exec, result) {
3506
- Object.freeze(exec);
3507
- const { name: toolName, callId } = exec;
3508
- const reportFailure = (error) => {
3509
- this.ctx.logger.warn(`tool "${toolName}" (${callId}): tools/result observer failed: ${errorMessage(error)}`);
3510
- };
3511
- const callbacks = this.ctx.events.dispatch("emit", [
3512
- scopeTarget(this, exec.agent),
3513
- "tools/result",
3514
- exec,
3515
- result
3516
- ]);
3517
- for (const callback of callbacks) try {
3518
- const returned = callback(exec, result);
3519
- Promise.resolve(returned).catch(reportFailure);
3520
- } catch (error) {
3521
- reportFailure(error);
3522
- }
641
+ async execute(input) {
642
+ return this.selectExecutor(input.agent).execute(input);
3523
643
  }
3524
644
  /**
3525
- * Resolve an `ask` decision to allow/deny through the approval seam. The
3526
- * seam is consumed opportunistically with `ctx.get('approval')` — a
3527
- * deployment that composes no ApprovalService keeps the historical degrade
3528
- * to deny, and an unmount mid-session degrades the same way on the next ask.
3529
- * An agent-less execution also degrades: without an agent there is no
3530
- * session to audit to and no UI to route to. Otherwise the outcome maps
3531
- * one-to-one — `allowed-once` proceeds; the three non-grants deny with
3532
- * distinct reasons so the model can tell a human "no" from an absent
3533
- * approval channel.
645
+ * Register a monotonic denial in the calling scope.
646
+ * @param guard - evaluated after extensible pre-execute policy by the shared pipeline.
647
+ * @returns the effect disposer that removes this guard.
3534
648
  */
3535
- async serviceAsk(exec, ask) {
3536
- const approval = this.ctx.get("approval");
3537
- if (approval === void 0) return {
3538
- decision: {
3539
- kind: "deny",
3540
- reason: ask.reason ?? `tool "${exec.name}" requires approval (not yet supported)`
3541
- },
3542
- approvalCancelled: false
3543
- };
3544
- if (exec.agent === void 0) return {
3545
- decision: {
3546
- kind: "deny",
3547
- reason: `tool "${exec.name}" requires approval, but the call has no agent to route it through`
3548
- },
3549
- approvalCancelled: false
3550
- };
3551
- const outcome = await approval.request({
3552
- agent: exec.agent,
3553
- toolName: exec.name,
3554
- callId: exec.callId,
3555
- ...ask.reason !== void 0 ? { reason: ask.reason } : {},
3556
- ...ask.displayReason !== void 0 ? { displayReason: ask.displayReason } : {},
3557
- signal: exec.signal
3558
- });
3559
- switch (outcome) {
3560
- case "allowed-once": return {
3561
- decision: { kind: "allow" },
3562
- approvalCancelled: false
3563
- };
3564
- case "rejected": return {
3565
- decision: {
3566
- kind: "deny",
3567
- reason: `the user rejected tool "${exec.name}"`
3568
- },
3569
- approvalCancelled: false
3570
- };
3571
- case "cancelled": return {
3572
- decision: {
3573
- kind: "deny",
3574
- reason: `approval for tool "${exec.name}" was cancelled`
3575
- },
3576
- approvalCancelled: true
3577
- };
3578
- case "unavailable": return {
3579
- decision: {
3580
- kind: "deny",
3581
- reason: `tool "${exec.name}" requires approval, but no approval channel is available`
3582
- },
3583
- approvalCancelled: false
3584
- };
3585
- default: return assertNever(outcome, "ApprovalOutcome");
3586
- }
649
+ guard(guard) {
650
+ return this.guards.effect(this.ctx, (layer) => layer.guards.append(guard), { label: "tools.guard()" });
3587
651
  }
3588
652
  /**
3589
- * Run the `tools/post-execute` waterfall over a dispatched `result` and apply
3590
- * its {@link PostToolDecision}: `accept` keeps the call successful (replacing
3591
- * `content` when given), `block` turns it into an `isError` whose content is
3592
- * the corrective `feedback`. Either decision may attach `additionalContexts`,
3593
- * which are ferried on the returned result for the loop's active-batch FIFO.
3594
- * Context deferred by the tool body survives an accepted result but is
3595
- * discarded when the outer call is blocked; a block exposes only context the
3596
- * blocking decision explicitly supplied.
3597
- * Runs inside `execute`'s outer try/catch (a throwing listener → isError).
653
+ * Check global and inherited guards after pre-execute policy and approval resolve.
654
+ * @param exec - invocation whose guards are checked before dispatch.
655
+ * @returns the first denial reason, or undefined when no guard denies.
3598
656
  */
3599
- async postExecute(exec, result) {
3600
- const decision = await this.ctx.waterfall(scopeTarget(this, exec.agent), "tools/post-execute", exec, result, () => Promise.resolve({ kind: "accept" }));
3601
- const decisionContexts = decision.additionalContexts ?? [];
3602
- if (decision.kind === "block") {
3603
- const message = failureMessageFromContent(decision.feedback);
3604
- return this.markCanonical(exec, {
3605
- content: decision.feedback,
3606
- isError: true,
3607
- error: { message },
3608
- ...decisionContexts.length > 0 ? { additionalContexts: decisionContexts } : {}
3609
- });
3610
- }
3611
- if (Object.hasOwn(decision, "content") && Object.hasOwn(decision, "value")) throw new TypeError("tools/post-execute accept decision cannot replace both value and content");
3612
- const additionalContexts = [...result.additionalContexts ?? [], ...decisionContexts];
3613
- if (Object.hasOwn(decision, "value")) {
3614
- if (result.isError) throw new TypeError("tools/post-execute cannot replace the value of a failed result");
3615
- const tool = this.resolveExecution(exec.name, exec.agent, exec.parent !== void 0);
3616
- if (tool === void 0) throw new ToolNotFoundError(exec.name);
3617
- const replaced = this.createSuccessResult(exec, tool, decision.value);
3618
- return this.markCanonical(exec, {
3619
- ...replaced,
3620
- ...additionalContexts.length > 0 ? { additionalContexts } : {}
3621
- });
3622
- }
3623
- return this.markCanonical(exec, {
3624
- ...result,
3625
- ...decision.content !== void 0 ? { content: decision.content } : {},
3626
- ...additionalContexts.length > 0 ? { additionalContexts } : {}
3627
- });
3628
- }
3629
- /** Registry-normalized results and the exact dispatch that validated each value. */
3630
- canonicalResults = /* @__PURE__ */ new WeakMap();
3631
- /** Mark one registry-normalized result as canonical only for its owning dispatch. */
3632
- markCanonical(exec, result) {
3633
- this.canonicalResults.set(result, exec.token);
3634
- return result;
3635
- }
3636
- /** Snapshot, validate, render, and optionally project one successful body value. */
3637
- createSuccessResult(exec, tool, candidate) {
3638
- const detached = snapshotToolValue(tool.name, candidate);
3639
- const violations = validateJsonSchemaValue(tool.output.schema, detached, "value");
3640
- if (violations.length > 0) throw new ToolOutputError(tool.name, violations);
3641
- const value = deepFreeze(detached);
3642
- let rendered;
3643
- try {
3644
- rendered = tool.output.render(exec.arguments, value);
3645
- } catch (error) {
3646
- throw projectionError(tool.name, "render", error);
3647
- }
3648
- const content = snapshotProjection(tool.name, "render", rendered);
3649
- let meta;
3650
- if (tool.output.presentationMeta !== void 0) {
3651
- let projected;
3652
- try {
3653
- projected = tool.output.presentationMeta(exec.arguments, value);
3654
- } catch (error) {
3655
- throw projectionError(tool.name, "presentationMeta", error);
3656
- }
3657
- meta = snapshotProjection(tool.name, "presentationMeta", projected);
657
+ checkGuards(exec) {
658
+ for (const layer of [this.guards.global, ...this.guards.chainLayers(exec.agent)]) for (const guard of layer.guards.values()) {
659
+ const reason = guard(exec);
660
+ if (reason !== void 0) return reason;
3658
661
  }
3659
- const concludesTurn = this.concludingExecutions.has(exec);
3660
- return this.markCanonical(exec, this.materializeFinalResult({
3661
- isError: false,
3662
- value,
3663
- content,
3664
- ...meta !== void 0 ? { meta } : {},
3665
- ...concludesTurn ? { concludesTurn: true } : {}
3666
- }));
3667
- }
3668
- /** Normalize an around-dispatch wrapper's authored result through the owning output contract. */
3669
- normalizeDispatchResult(exec, result) {
3670
- if (this.canonicalResults.get(result) === exec.token) return result;
3671
- if (result.isError) return this.markCanonical(exec, {
3672
- isError: true,
3673
- error: result.error,
3674
- content: result.content,
3675
- ...result.meta !== void 0 ? { meta: result.meta } : {},
3676
- ...result.additionalContexts !== void 0 ? { additionalContexts: result.additionalContexts } : {}
3677
- });
3678
- const tool = this.resolveExecution(exec.name, exec.agent, exec.parent !== void 0);
3679
- if (tool === void 0) throw new ToolNotFoundError(exec.name);
3680
- const normalized = this.createSuccessResult(exec, tool, result.value);
3681
- return this.markCanonical(exec, {
3682
- ...normalized,
3683
- ...result.additionalContexts !== void 0 ? { additionalContexts: result.additionalContexts } : {}
3684
- });
3685
- }
3686
- /** Materialize the authoritative commit outcome once, immediately before `tools/result`. */
3687
- materializeFinalResult(result) {
3688
- const presentation = {
3689
- content: result.content,
3690
- ...result.meta !== void 0 ? { meta: result.meta } : {},
3691
- ...result.additionalContexts !== void 0 ? { additionalContexts: result.additionalContexts } : {}
3692
- };
3693
- if (result.isError) return materializePresentation({
3694
- isError: true,
3695
- error: result.error,
3696
- ...presentation
3697
- });
3698
- return deepFreeze({
3699
- ...materializePresentation({
3700
- isError: false,
3701
- ...presentation,
3702
- ...result.concludesTurn === true ? { concludesTurn: true } : {}
3703
- }),
3704
- value: result.value
3705
- });
3706
662
  }
3707
663
  };
3708
- /** Mint a same-process correlation token whose identity is its value. */
3709
- function createExecutionToken() {
3710
- return Symbol("dsh.tool.execution");
3711
- }
3712
- function toolErrorResult(error) {
3713
- const info = errorInfo(error);
3714
- const message = errorMessage(error);
3715
- return {
3716
- content: [{
3717
- type: "text",
3718
- text: `Error: ${message}`
3719
- }],
3720
- isError: true,
3721
- error: {
3722
- message,
3723
- ...info ? { info } : {}
3724
- }
3725
- };
3726
- }
3727
- /** Read live abort state across an await without treating it as synchronously immutable. */
3728
- function isAborted(signal) {
3729
- return signal.aborted;
3730
- }
3731
- /**
3732
- * Fuse caller and wrapper cancellation without nesting `AbortSignal.any`.
3733
- * Keeping the relay dispatch-scoped also removes listeners when work settles.
3734
- */
3735
- function fuseToolSignals(caller, wrapper) {
3736
- if (caller === wrapper) return {
3737
- signal: caller,
3738
- dispose() {}
3739
- };
3740
- const controller = new AbortController();
3741
- let listening = false;
3742
- const dispose = () => {
3743
- if (!listening) return;
3744
- listening = false;
3745
- caller.removeEventListener("abort", abortFromCaller);
3746
- wrapper.removeEventListener("abort", abortFromWrapper);
3747
- };
3748
- const abortFrom = (source) => {
3749
- const reason = source.reason;
3750
- controller.abort(reason);
3751
- dispose();
3752
- };
3753
- const abortFromCaller = () => {
3754
- abortFrom(caller);
3755
- };
3756
- const abortFromWrapper = () => {
3757
- abortFrom(wrapper);
3758
- };
3759
- if (wrapper.aborted) abortFromWrapper();
3760
- else if (caller.aborted) abortFromCaller();
3761
- else {
3762
- listening = true;
3763
- caller.addEventListener("abort", abortFromCaller, { once: true });
3764
- wrapper.addEventListener("abort", abortFromWrapper, { once: true });
3765
- }
3766
- return {
3767
- signal: controller.signal,
3768
- dispose
3769
- };
3770
- }
3771
- /** Canonical result when cancellation supersedes success after body invocation. */
3772
- function toolAbortedResult(prior) {
3773
- const additionalContexts = prior?.additionalContexts ?? [];
3774
- return {
3775
- content: [{
3776
- type: "text",
3777
- text: "Error: tool call aborted"
3778
- }],
3779
- isError: true,
3780
- error: {
3781
- message: "tool call aborted",
3782
- info: {
3783
- name: "AbortError",
3784
- code: TOOL_ABORTED
3785
- }
3786
- },
3787
- ...additionalContexts.length > 0 ? { additionalContexts } : {}
3788
- };
3789
- }
3790
- /** Canonical result when cancellation prevents tool body invocation. */
3791
- function toolAbortedBeforeDispatchResult(prior) {
3792
- const additionalContexts = prior?.additionalContexts ?? [];
3793
- return {
3794
- content: [{
3795
- type: "text",
3796
- text: "Error: tool call aborted before dispatch"
3797
- }],
3798
- isError: true,
3799
- error: {
3800
- message: "tool call aborted before dispatch",
3801
- info: {
3802
- name: "AbortError",
3803
- code: TOOL_ABORTED_BEFORE_DISPATCH
3804
- }
3805
- },
3806
- ...additionalContexts.length > 0 ? { additionalContexts } : {}
3807
- };
3808
- }
3809
664
  //#endregion
3810
- export { CodeRunFailedError, JsonSchemaError, RUN_CODE_NAME, TOOL_ABORTED, TOOL_ABORTED_BEFORE_DISPATCH, TOOL_RUNTIME_SCHEDULER, ToolArgsError, ToolNotFoundError, ToolOutputError, ToolRuntime, ToolRuntime as default, assertObjectJsonSchema, assertSupportedJsonSchema, defineContentToolFixture, defineTool, jsonSchemaToPy, jsonSchemaToTs, parameterSchemaSpecToJsonSchema, renderToolsSdk, renderToolsSdkPy, validateArgs, validateJsonSchemaValue, valueSchemaSpecToJsonSchema };
665
+ export { JsonSchemaError, RUN_CODE_NAME, TOOL_ABORTED, TOOL_ABORTED_BEFORE_DISPATCH, ToolActivationError, ToolArgsError, ToolBatchExecutionError, ToolExecutorUnavailableError, ToolNotFoundError, ToolOutputError, ToolsService as ToolRuntime, ToolsService, ToolsService as default, assertObjectJsonSchema, assertSupportedJsonSchema, defineTool, isJsonSchemaRecord, isPlainJsonArray, isPlainJsonRecord, parameterSchemaSpecToJsonSchema, projectToolSchema, validateArgs, validateJsonSchemaValue, valueSchemaSpecToJsonSchema };