@songtonyli/dsh-cli 0.1.94 → 0.1.95

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 (565) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/package.json +126 -126
  10. package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
  11. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  12. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +7 -3
  13. package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
  14. package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
  15. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  16. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
  17. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
  18. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
  19. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +2 -2
  20. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +7 -3
  21. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
  22. package/node_modules/@deepseek-ai/dsh-agent-team/README.i18n.yaml +12 -12
  23. package/node_modules/@deepseek-ai/dsh-agent-team/README.md +6 -6
  24. package/node_modules/@deepseek-ai/dsh-agent-team/README.zh.md +6 -6
  25. package/node_modules/@deepseek-ai/dsh-agent-team/lib/index.js +25 -11
  26. package/node_modules/@deepseek-ai/dsh-agent-team/lib/typert.host.js +8 -4
  27. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/projection.js +6 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-board.js +12 -8
  29. package/node_modules/@deepseek-ai/dsh-agent-team/lib/types/task-view.js +2 -1
  30. package/node_modules/@deepseek-ai/dsh-agent-team/package.json +25 -25
  31. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
  32. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  33. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
  34. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
  35. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
  36. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
  37. package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +67 -47
  39. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +48 -48
  40. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +6 -6
  41. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +6 -1
  42. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +6 -1
  43. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +19 -5
  44. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +52 -18
  45. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +69 -41
  46. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +51 -31
  47. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +20 -5
  48. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +58 -18
  49. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/continuation.js +48 -0
  50. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +5 -2
  51. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +79 -77
  52. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  53. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +7 -3
  54. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
  55. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
  56. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  57. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
  58. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  59. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  60. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  61. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  62. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  63. package/node_modules/@deepseek-ai/dsh-base/README.md +1 -1
  64. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +1 -1
  65. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
  66. package/node_modules/@deepseek-ai/dsh-base/package.json +103 -102
  67. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  68. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  69. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  70. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  71. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  72. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +7 -3
  73. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  74. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
  75. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  76. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
  78. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
  79. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  80. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
  81. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
  82. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
  83. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.i18n.yaml +2 -2
  84. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.md +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/README.zh.md +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-agent-team/package.json +17 -17
  88. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.i18n.yaml +2 -2
  89. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.md +2 -0
  90. package/node_modules/@deepseek-ai/dsh-client-ui-approval/README.zh.md +2 -0
  91. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +125 -5
  92. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -13
  93. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +12 -12
  94. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.i18n.yaml +19 -16
  95. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.md +16 -7
  96. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/README.zh.md +16 -7
  97. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/assets/breach-atlas-43c5305a3d4d.webp +0 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/lib/client.js +395 -3
  99. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +13 -9
  100. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +6 -6
  101. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
  102. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
  103. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +60 -37
  104. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
  105. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
  106. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +2 -2
  107. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +2 -0
  108. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +2 -0
  109. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +164 -40
  110. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +10 -10
  111. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +18 -9
  112. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +24 -4
  113. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +24 -4
  114. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +205 -56
  115. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +37 -36
  117. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
  118. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +10 -10
  119. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +28 -28
  120. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  121. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
  122. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
  123. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +10 -10
  124. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
  125. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  126. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  127. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
  128. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
  129. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +1 -1
  130. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +1 -1
  131. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +4 -19
  132. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  133. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  134. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
  135. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +4 -4
  136. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +2 -2
  137. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +2 -2
  138. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +4 -18
  139. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
  140. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +14 -14
  141. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +12 -10
  142. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +12 -10
  143. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +65 -58
  144. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/locale/zh.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +26 -26
  146. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
  147. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
  148. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +1 -1
  150. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +1 -1
  151. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +6 -17
  152. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
  153. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
  154. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
  155. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +16 -16
  156. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +175 -20
  157. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  158. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  159. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  160. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  161. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +27 -65
  162. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
  163. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
  164. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
  165. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
  166. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  167. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
  168. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
  169. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  170. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
  171. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
  172. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
  173. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
  174. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
  175. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
  176. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +6 -6
  177. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
  178. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +9 -9
  179. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
  180. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  181. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -11
  182. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
  183. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +4 -4
  184. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +2 -2
  185. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +2 -2
  186. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +6 -15
  187. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +11 -3
  188. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  189. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +14 -14
  190. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -15
  191. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
  192. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
  193. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +6 -6
  194. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +4 -4
  195. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +4 -4
  196. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +12 -12
  197. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +18 -18
  198. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
  199. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +6 -6
  200. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +6 -6
  201. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +6 -6
  202. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +285 -14
  203. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +32 -31
  204. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +20 -20
  205. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
  206. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
  207. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +4 -4
  208. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +2 -2
  209. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +2 -2
  210. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +35 -73
  211. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
  212. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  213. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  214. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  215. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  216. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
  217. package/node_modules/@deepseek-ai/dsh-commands/README.md +2 -2
  218. package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +2 -2
  219. package/node_modules/@deepseek-ai/dsh-commands/lib/index.js +37 -2
  220. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +28 -5
  221. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.remote-client.js +2 -2
  222. package/node_modules/@deepseek-ai/dsh-commands/lib/types/index.js +36 -2
  223. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  224. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  225. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  226. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  227. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
  228. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  230. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +83 -39
  231. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
  232. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +14 -6
  233. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
  234. package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
  235. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  236. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  237. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +2 -2
  238. package/node_modules/@deepseek-ai/dsh-cua/README.md +2 -0
  239. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +2 -0
  240. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +30 -1
  241. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +16 -16
  242. package/node_modules/@deepseek-ai/dsh-cua/package.json +53 -53
  243. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +7 -7
  244. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
  245. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  246. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  247. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
  248. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  249. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  250. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +45 -45
  251. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
  252. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
  253. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +8 -8
  254. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +9 -7
  255. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +9 -7
  256. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +779 -137
  257. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +142 -10
  258. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +131 -29
  259. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +103 -24
  260. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +42 -42
  261. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +19 -19
  262. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
  263. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
  264. package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +6 -6
  265. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +9 -9
  266. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +10 -10
  267. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +33 -33
  268. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
  269. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
  270. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
  271. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/client.js +150 -136
  272. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +200 -186
  273. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
  274. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -7
  275. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +6 -6
  276. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +6 -4
  277. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +6 -4
  278. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +72 -72
  279. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +4 -4
  280. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
  281. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
  282. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.i18n.yaml +2 -2
  283. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.md +1 -1
  284. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/README.zh.md +1 -1
  285. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +6 -16
  286. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
  287. package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
  288. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
  289. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
  290. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  291. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
  292. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
  293. package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
  294. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  295. package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +23 -23
  296. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  297. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
  298. package/node_modules/@deepseek-ai/dsh-fs/package.json +10 -10
  299. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -8
  300. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  301. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +3 -3
  302. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  303. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +7 -3
  304. package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
  305. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  306. package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
  307. package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
  308. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  309. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  310. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  311. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
  312. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  313. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  314. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  315. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  316. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  317. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
  318. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
  319. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
  320. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  321. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  322. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  323. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  324. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +5 -1
  325. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  326. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
  327. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
  328. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
  329. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
  330. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
  331. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  332. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +26 -26
  333. package/node_modules/@deepseek-ai/dsh-mcp-manager/package.json +22 -22
  334. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
  335. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  336. package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
  337. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  338. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  339. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  340. package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
  341. package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
  342. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  343. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  344. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +7 -3
  345. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  346. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  347. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
  348. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  349. package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
  350. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +38 -38
  351. package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
  352. package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
  353. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  354. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +7 -3
  355. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
  356. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  357. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +14 -14
  358. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +12 -6
  359. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +12 -6
  360. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +93 -38
  361. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +112 -93
  362. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +112 -93
  363. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  364. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  365. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  366. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  367. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  368. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
  369. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  370. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
  371. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
  372. package/node_modules/@deepseek-ai/dsh-schedule/package.json +40 -40
  373. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  374. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
  375. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +48 -48
  376. package/node_modules/@deepseek-ai/dsh-sdk-minimal/cordis.patch.yml +3 -0
  377. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +40 -39
  378. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +13 -13
  379. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
  380. package/node_modules/@deepseek-ai/dsh-session/README.md +1 -1
  381. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +1 -1
  382. package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
  383. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
  384. package/node_modules/@deepseek-ai/dsh-session-continuation/README.i18n.yaml +37 -0
  385. package/node_modules/@deepseek-ai/dsh-session-continuation/README.md +84 -0
  386. package/node_modules/@deepseek-ai/dsh-session-continuation/README.zh.md +84 -0
  387. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/index.js +109 -0
  388. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/index.js +51 -0
  389. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/projection.js +48 -0
  390. package/node_modules/@deepseek-ai/dsh-session-continuation/lib/types/types.js +2 -0
  391. package/node_modules/@deepseek-ai/dsh-session-continuation/package.json +55 -0
  392. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  393. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  394. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
  395. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  396. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  397. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +2 -2
  398. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +1 -1
  399. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +1 -1
  400. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +19 -1
  401. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  402. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
  403. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +10 -10
  404. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -6
  405. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -6
  406. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +100 -120
  407. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +26 -26
  408. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  409. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +19 -1
  410. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  411. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +2 -2
  412. package/node_modules/@deepseek-ai/dsh-session-projection/README.md +1 -1
  413. package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +1 -1
  414. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
  415. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  416. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  417. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  418. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +7 -3
  419. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
  420. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  421. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  422. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
  423. package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
  424. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
  425. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
  426. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  427. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  428. package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
  429. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  430. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  431. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  432. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  433. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  434. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
  435. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  436. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  437. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
  438. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  439. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
  440. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  441. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +15 -12
  442. package/node_modules/@deepseek-ai/dsh-subagent/README.md +14 -6
  443. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +14 -6
  444. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +276 -42
  445. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +31 -9
  446. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -2
  447. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +31 -8
  448. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-messages.js +10 -8
  449. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +44 -2
  450. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +35 -6
  451. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/manager.js +78 -12
  452. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/names.js +96 -0
  453. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -51
  454. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.i18n.yaml +2 -2
  455. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.md +1 -1
  456. package/node_modules/@deepseek-ai/dsh-subagent-acp/README.zh.md +1 -1
  457. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  458. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.i18n.yaml +6 -6
  459. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.md +3 -3
  460. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/README.zh.md +3 -3
  461. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
  462. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.i18n.yaml +4 -4
  463. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.md +2 -2
  464. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/README.zh.md +2 -2
  465. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
  466. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  467. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  468. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
  469. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  470. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
  471. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  472. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  473. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  474. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  475. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.i18n.yaml +8 -8
  476. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.md +6 -6
  477. package/node_modules/@deepseek-ai/dsh-tool-agent-team/README.zh.md +6 -6
  478. package/node_modules/@deepseek-ai/dsh-tool-agent-team/lib/index.js +26 -17
  479. package/node_modules/@deepseek-ai/dsh-tool-agent-team/package.json +27 -27
  480. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
  481. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
  482. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
  483. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
  484. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +73 -8
  485. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
  486. package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
  487. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +19 -16
  488. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +22 -9
  489. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +22 -9
  490. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +185 -74
  491. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/config.js +2 -1
  492. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +25 -0
  493. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/index.js +36 -6
  494. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc-calls.js +57 -7
  495. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +29 -14
  496. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
  497. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +4 -4
  498. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +2 -2
  499. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +2 -2
  500. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +2 -2
  501. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +39 -39
  502. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
  503. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  504. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
  505. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
  506. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
  507. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
  508. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
  509. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +19 -19
  510. package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
  511. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
  512. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
  513. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +12 -12
  514. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +6 -6
  515. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +6 -6
  516. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +11 -6
  517. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -25
  518. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +39 -36
  519. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +29 -17
  520. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +29 -17
  521. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +74 -122
  522. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +24 -25
  523. package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
  524. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
  525. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +25 -25
  526. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
  527. package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
  528. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
  529. package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
  530. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +8 -8
  531. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +5 -3
  532. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +5 -3
  533. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +454 -84
  534. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +87 -85
  535. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
  536. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  537. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  538. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  539. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +7 -3
  540. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
  541. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
  542. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  543. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  544. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  545. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  546. package/node_modules/@deepseek-ai/dsh-web/package.json +8 -8
  547. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +4 -4
  548. package/node_modules/@deepseek-ai/dsh-web-app/package.json +155 -155
  549. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +30 -30
  550. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
  551. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CZZasi1N.css +1 -0
  552. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-CnyQSzND.js +199 -0
  553. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  554. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -21
  555. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +20 -20
  556. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  557. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  558. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
  559. package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
  560. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  561. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +26 -26
  562. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  563. package/package.json +335 -333
  564. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-B2q7cWGa.js +0 -199
  565. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-uWlUD22X.css +0 -1
@@ -651,6 +651,12 @@ export const SERVICE_API = [
651
651
  parameters: [{ name: 'agent', description: 'exact receiving agent.' }, { name: 'line', description: 'complete slash-command line.' }, { name: 'submittedAttachments', description: 'encoded images and staged file receipts accompanying the line, in submission order; empty for a plain invocation.' }, { name: 'signal', description: 'cancellation signal owned by the UI request.' }],
652
652
  returns: 'the settled execution (result + lifecycle pairing id), or `undefined` when syntax or name does not resolve.',
653
653
  },
654
+ {
655
+ signature: 'async executeStored( agent: Agent, line: string, attachments: readonly StoredCommandAttachment[], signal: AbortSignal, ): Promise<CommandExecution | undefined>',
656
+ description: 'Execute a command with already-stored attachments from a trusted same-process adapter. Image parts must carry the original encoded upload byte length, not normalized bytes. This method is not Remote: callers own the references and their receiving Session. Admission and handler failures follow execute; cancellation after handler entry cannot roll back its effects.',
657
+ parameters: [{ name: 'agent', description: 'exact receiving agent.' }, { name: 'line', description: 'complete slash-command line.' }, { name: 'attachments', description: 'ordered stored files and images.' }, { name: 'signal', description: 'cancellation signal owned by the adapter.' }],
658
+ returns: 'the settled execution, or undefined for invalid syntax or an unknown name.',
659
+ },
654
660
  ],
655
661
  },
656
662
  {
@@ -1291,6 +1297,13 @@ export const SERVICE_API = [
1291
1297
  returns: 'the checked-out branch and at most `maxBranches` local branches, the checked-out one first.',
1292
1298
  throws: ['when the current directory is not inside a checkout or Git fails.'],
1293
1299
  },
1300
+ {
1301
+ signature: '@Remote async diffBases(session: Session, query: string, signal: AbortSignal): Promise<ForgeBaseBranches>',
1302
+ description: 'List the branches the `branch` scope of the Session\'s current checkout can compare with.',
1303
+ parameters: [{ name: 'session', description: 'Session whose checkout is read.' }, { name: 'query', description: 'text the branch names must contain, ignoring case; empty for every branch.' }, { name: 'signal', description: 'request cancellation.' }],
1304
+ returns: 'the automatic fork point and at most `maxBranches` remote-tracking and local branches each, most recently committed first, without the checked-out branch.',
1305
+ throws: ['`forgePanel/not-a-checkout` outside a checkout; the Git error when Git fails or the listed refs exceed `maxDiffBytes`.'],
1306
+ },
1294
1307
  {
1295
1308
  signature: '@Remote async track(session: Session, url: string, signal: AbortSignal): Promise<void>',
1296
1309
  description: 'Bind a change request to a Session by URL, or restore a dismissed binding.',
@@ -1313,7 +1326,7 @@ export const SERVICE_API = [
1313
1326
  description: 'Read the changes one scope covers in the checkout of the Session\'s current directory, with Git using the Session\'s sandbox policy.',
1314
1327
  parameters: [{ name: 'session', description: 'Session whose checkout is read.' }, { name: 'scope', description: 'which changes to read.' }, { name: 'signal', description: 'request cancellation.' }],
1315
1328
  returns: 'the files, the base of the `branch` scope, and the untracked files left out.',
1316
- throws: ['`forgePanel/not-a-checkout` outside a checkout; `forgePanel/no-fork-point` for the `branch` scope of a checkout without one; `forgePanel/filter-config-failed` when filter configuration cannot be read completely, before any comparison; `forgePanel/diff-too-large` over `maxDiffBytes`; the Git error when Git fails.'],
1329
+ throws: ['`forgePanel/not-a-checkout` outside a checkout; `forgePanel/base-missing` when the base branch chosen for the `branch` scope does not exist; `forgePanel/no-fork-point` for the `branch` scope without a fork point; `forgePanel/filter-config-failed` when filter configuration cannot be read completely, before any comparison; `forgePanel/diff-too-large` over `maxDiffBytes`; the Git error when Git fails.'],
1317
1330
  },
1318
1331
  {
1319
1332
  signature: '@Remote async localText(session: Session, scope: ForgeLocalScope, path: string, signal: AbortSignal): Promise<string>',
@@ -2680,6 +2693,20 @@ export const SERVICE_API = [
2680
2693
  },
2681
2694
  ],
2682
2695
  },
2696
+ {
2697
+ key: 'sessionContinuation',
2698
+ summary: 'Owns the continuation projection and admits an empty retry while the Agent is idle.',
2699
+ description: 'Owns the continuation projection and admits an empty retry while the Agent is idle.',
2700
+ methods: [
2701
+ {
2702
+ signature: 'async retry(agent: Agent, source: RetrySource): Promise<\'accepted\' | \'unavailable\'>',
2703
+ description: 'Admit an empty retry if the last failed turn is eligible and no human input is pending.',
2704
+ parameters: [{ name: 'agent', description: 'exact live Agent whose maintenance lock guards admission.' }, { name: 'source', description: 'durable retry identity and caller attribution.' }],
2705
+ returns: '`accepted` or `unavailable`; an unavailable request adds no input.',
2706
+ throws: ['{SessionContinuationBusyError} if another Agent activity holds maintenance.', 'if reading the projection or queuing the retry fails.'],
2707
+ },
2708
+ ],
2709
+ },
2683
2710
  {
2684
2711
  key: 'sessionController',
2685
2712
  summary: 'Host service backing the generated `ctx.remote.session` namespace.',
@@ -3699,6 +3726,20 @@ export const SERVICE_API = [
3699
3726
  returns: 'the live root; ordinary Session forks lead independent trees.',
3700
3727
  throws: ['when the caller or its runtime owner is unavailable.'],
3701
3728
  },
3729
+ {
3730
+ signature: 'namesOf(agent: Agent): SubagentMemberNames',
3731
+ description: 'Report the model-facing names of a live tree member and its direct creator. The root is `lead`; a descendant is the slash-separated path of names from the root, or its Session id when it or a creator below the root has no name.',
3732
+ parameters: [{ name: 'agent', description: 'exact live root or resident tree member.' }],
3733
+ returns: 'the member\'s name and, for a descendant, its creator\'s name.',
3734
+ throws: ['when the caller or its runtime owner is unavailable.'],
3735
+ },
3736
+ {
3737
+ signature: 'async resolveName(caller: Agent, name: string, signal: AbortSignal): Promise<SessionId>',
3738
+ description: 'Resolve a model-supplied agent reference within the caller\'s tree. `lead` selects the root and a slash-separated path is looked up through the catalogs along it. Any other text that is not a name in the tree is returned as a Session id, because a single token can be one; a slash-separated address never is, so an unmatched path fails instead of reaching a member lookup as an unknown id. Resolution grants no authority: messaging, interruption, and assignment authorize the result.',
3739
+ parameters: [{ name: 'caller', description: 'exact live Agent whose tree root anchors the lookup.' }, { name: 'name', description: '`lead`, a full name from the root, or a Session id.' }, { name: 'signal', description: 'cancellation forwarded to each catalog read.' }],
3740
+ returns: 'the referenced Session id.',
3741
+ throws: ['{@link SubagentError} `AGENT_NAME_NOT_FOUND` when a path names no member; when the caller\'s root is unavailable; or when a catalog along the path cannot be read.'],
3742
+ },
3702
3743
  {
3703
3744
  signature: 'async waitForTreeWork(root: Agent): Promise<boolean>',
3704
3745
  description: 'Join progressing subagent tree work for its root. Idle members with parked input stay resident without delaying host completion. Ordinary members return false.',
@@ -6443,6 +6484,18 @@ export const TYPE_API = [
6443
6484
  name: 'ForgeActionFailure',
6444
6485
  declaration: 'export interface ForgeActionFailure {\n readonly code: \'unauthenticated\' | \'stale\' | \'failed\';\n readonly message: string;\n}',
6445
6486
  },
6487
+ {
6488
+ name: 'ForgeAutomaticBase',
6489
+ declaration: 'export interface ForgeAutomaticBase {\n readonly name: string;\n readonly worktree: boolean;\n}',
6490
+ },
6491
+ {
6492
+ name: 'ForgeBaseBranch',
6493
+ declaration: 'export interface ForgeBaseBranch {\n readonly ref: string;\n readonly name: string;\n}',
6494
+ },
6495
+ {
6496
+ name: 'ForgeBaseBranches',
6497
+ declaration: 'export interface ForgeBaseBranches {\n readonly automatic: ForgeAutomaticBase | null;\n readonly remote: readonly ForgeBaseBranch[];\n readonly local: readonly ForgeBaseBranch[];\n}',
6498
+ },
6446
6499
  {
6447
6500
  name: 'ForgeBranches',
6448
6501
  declaration: 'export interface ForgeBranches {\n readonly current: string | null;\n readonly branches: readonly string[];\n}',
@@ -6501,7 +6554,7 @@ export const TYPE_API = [
6501
6554
  },
6502
6555
  {
6503
6556
  name: 'ForgeLocalScope',
6504
- declaration: 'export type ForgeLocalScope = {\n readonly kind: \'branch\';\n} | {\n readonly kind: \'uncommitted\';\n} | {\n readonly kind: \'unstaged\';\n} | {\n readonly kind: \'staged\';\n};',
6557
+ declaration: 'export type ForgeLocalScope = {\n readonly kind: \'branch\';\n readonly base: string | null;\n} | {\n readonly kind: \'uncommitted\';\n} | {\n readonly kind: \'unstaged\';\n} | {\n readonly kind: \'staged\';\n};',
6505
6558
  },
6506
6559
  {
6507
6560
  name: 'ForgeMissingWorktree',
@@ -6929,7 +6982,7 @@ export const TYPE_API = [
6929
6982
  },
6930
6983
  {
6931
6984
  name: 'KnownSubagentCatalogFields',
6932
- declaration: 'export type KnownSubagentCatalogFields = {\n readonly mode: \'one-shot\';\n readonly label?: string;\n} | {\n readonly mode: \'external\';\n readonly label?: string;\n} | {\n readonly mode: \'continuable\';\n readonly label: string;\n};',
6985
+ declaration: 'export type KnownSubagentCatalogFields = {\n readonly mode: \'one-shot\';\n readonly label?: string;\n} | {\n readonly mode: \'external\';\n readonly label?: string;\n readonly name?: string;\n} | {\n readonly mode: \'continuable\';\n readonly label: string;\n readonly name?: string;\n};',
6933
6986
  },
6934
6987
  {
6935
6988
  name: 'KvFacet',
@@ -8071,6 +8124,10 @@ export const TYPE_API = [
8071
8124
  name: 'ResumeAgentOptions',
8072
8125
  declaration: 'export interface ResumeAgentOptions {\n readonly resumeSessionId: SessionId;\n readonly agentOptions?: AgentOptions;\n readonly signal?: AbortSignal;\n readonly setup?: AgentSetup;\n}',
8073
8126
  },
8127
+ {
8128
+ name: 'RetrySource',
8129
+ declaration: 'export type RetrySource = {\n kind: \'retry\';\n rpcId: SessionRequestId;\n clientTimeZone?: string;\n principal?: Principal;\n};',
8130
+ },
8074
8131
  {
8075
8132
  name: 'ReviewDecision',
8076
8133
  declaration: 'export type ReviewDecision = \'approved\' | \'changes-requested\' | \'review-required\' | \'none\';',
@@ -9223,6 +9280,10 @@ export const TYPE_API = [
9223
9280
  name: 'StorageForms',
9224
9281
  declaration: 'export interface StorageForms {\n}',
9225
9282
  },
9283
+ {
9284
+ name: 'StoredCommandAttachment',
9285
+ declaration: 'export type StoredCommandAttachment = Extract<AttachmentAdmissionPart, {\n readonly attachment: FileAttachmentRef | ImageAttachmentRef;\n}>;',
9286
+ },
9226
9287
  {
9227
9288
  name: 'StoredImageAttachment',
9228
9289
  declaration: 'export interface StoredImageAttachment {\n ref: ImageAttachmentRef;\n data: Uint8Array;\n}',
@@ -9233,11 +9294,11 @@ export const TYPE_API = [
9233
9294
  },
9234
9295
  {
9235
9296
  name: 'SubagentActivation',
9236
- declaration: 'export interface SubagentActivation {\n readonly childId: SessionId;\n readonly messageId?: MessageId;\n readonly result: Promise<SubagentResult>;\n dispose(): Promise<void>;\n}',
9297
+ declaration: 'export interface SubagentActivation {\n readonly childId: SessionId;\n readonly name: string;\n readonly messageId?: MessageId;\n readonly result: Promise<SubagentResult>;\n dispose(): Promise<void>;\n}',
9237
9298
  },
9238
9299
  {
9239
9300
  name: 'SubagentActivationSpec',
9240
- declaration: 'export interface SubagentActivationSpec extends Omit<SubagentStartRequest, \'label\' | \'signal\'> {\n readonly provider: string;\n readonly label: string;\n readonly childId?: SessionId;\n readonly signal: AbortSignal;\n readonly delivery: \'parent\' | \'caller\';\n}',
9301
+ declaration: 'export interface SubagentActivationSpec extends Omit<SubagentStartRequest, \'label\' | \'signal\'> {\n readonly provider: string;\n readonly label: string;\n readonly name?: string;\n readonly childId?: SessionId;\n readonly signal: AbortSignal;\n readonly delivery: \'parent\' | \'caller\';\n}',
9241
9302
  },
9242
9303
  {
9243
9304
  name: 'SubagentCapabilities',
@@ -9253,7 +9314,7 @@ export const TYPE_API = [
9253
9314
  },
9254
9315
  {
9255
9316
  name: 'SubagentDescendantListEntry',
9256
- declaration: 'export type SubagentDescendantListEntry = SubagentListEntry & {\n readonly parentId: SessionId;\n readonly depth: number;\n};',
9317
+ declaration: 'export type SubagentDescendantListEntry = SubagentListEntry & {\n readonly parentId: SessionId;\n readonly depth: number;\n readonly path?: string;\n};',
9257
9318
  },
9258
9319
  {
9259
9320
  name: 'SubagentInterruptAuthority',
@@ -9267,6 +9328,10 @@ export const TYPE_API = [
9267
9328
  name: 'SubagentListEntry',
9268
9329
  declaration: 'export type SubagentListEntry = SubagentCatalogRow & {\n readonly kind: \'child\';\n readonly hasChildren: boolean;\n} | {\n readonly kind: \'diagnostic\';\n readonly id: SessionId;\n readonly reason: \'corrupt\' | \'unsupported\' | \'unavailable\';\n};',
9269
9330
  },
9331
+ {
9332
+ name: 'SubagentMemberNames',
9333
+ declaration: 'export interface SubagentMemberNames {\n readonly self: string;\n readonly parent?: string;\n}',
9334
+ },
9270
9335
  {
9271
9336
  name: 'SubagentPromptReceipt',
9272
9337
  declaration: 'export interface SubagentPromptReceipt {\n readonly messageId: MessageId;\n}',
@@ -9305,7 +9370,7 @@ export const TYPE_API = [
9305
9370
  },
9306
9371
  {
9307
9372
  name: 'SubagentRuntime',
9308
- declaration: 'export class SubagentRuntime extends TypertRemoteService {\n static Config;\n static inject;\n constructor(ctx: Context, private config: Config);\n resolveMaxDepth(configured?: number | \'provider-managed\'): number | undefined;\n startActivation(spec: SubagentActivationSpec & {\n readonly childId: SessionId;\n }): Promise<SubagentActivation & {\n readonly messageId: MessageId;\n }>;\n startActivation(spec: SubagentActivationSpec): Promise<SubagentActivation>;\n async startActivation(spec: SubagentActivationSpec): Promise<SubagentActivation>;\n rootOf(caller: Agent): Agent;\n async waitForTreeWork(root: Agent): Promise<boolean>;\n async sendMessage(sender: Agent, targetId: SessionId, content: ContentBlock[], options: SubagentSendMessageOptions): Promise<MessageId>;\n interrupt(targetSessionId: SessionId, authority: SubagentInterruptAuthority): void;\n async drainDescendants(parents: readonly Agent[]): Promise<void>;\n listDescendants(rootSessionId: SessionId, signal?: AbortSignal): Promise<SubagentDescendantListEntry[]>;\n @Remote({ name: \'prompt\', resources: { session: request => request.childSessionId } })\n async prompt(request: SubagentPromptRequest, signal: AbortSignal): Promise<SubagentPromptReceipt>;\n @Remote({ name: \'interruptByUser\', resources: { session: childSessionId => childSessionId } })\n interruptByUser(childSessionId: SessionId): SubagentInterruptReceipt;\n registerProvider(provider: SubagentProvider): () => /* …truncated — full shape in source */',
9373
+ declaration: 'export class SubagentRuntime extends TypertRemoteService {\n static Config;\n static inject;\n constructor(ctx: Context, private config: Config);\n resolveMaxDepth(configured?: number | \'provider-managed\'): number | undefined;\n startActivation(spec: SubagentActivationSpec & {\n readonly childId: SessionId;\n }): Promise<SubagentActivation & {\n readonly messageId: MessageId;\n }>;\n startActivation(spec: SubagentActivationSpec): Promise<SubagentActivation>;\n async startActivation(spec: SubagentActivationSpec): Promise<SubagentActivation>;\n rootOf(caller: Agent): Agent;\n namesOf(agent: Agent): SubagentMemberNames;\n async resolveName(caller: Agent, name: string, signal: AbortSignal): Promise<SessionId>;\n async waitForTreeWork(root: Agent): Promise<boolean>;\n async sendMessage(sender: Agent, targetId: SessionId, content: ContentBlock[], options: SubagentSendMessageOptions): Promise<MessageId>;\n interrupt(targetSessionId: SessionId, authority: SubagentInterruptAuthority): void;\n async drainDescendants(parents: readonly Agent[]): Promise<void>;\n listDescendants(rootSessionId: SessionId, signal?: AbortSignal): Promise<SubagentDescendantListEntry[]>;\n @Remote({ name: \'prompt\', resources: { session: request => request.childSessionId } })\n async prompt(request: SubagentPromptRequest, signal: AbortSignal): Promise<SubagentPromptReceipt>;\n @Remote({ name: \'interruptByUser\', resources: { session: childSessionId => childSess /* …truncated — full shape in source */',
9309
9374
  },
9310
9375
  {
9311
9376
  name: 'SubagentSendMessageOptions',
@@ -9445,7 +9510,7 @@ export const TYPE_API = [
9445
9510
  },
9446
9511
  {
9447
9512
  name: 'TeamTaskView',
9448
- declaration: 'export interface TeamTaskView {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n readonly ownerId?: SessionId;\n readonly ready: boolean;\n readonly writeScopeWarnings: string[];\n}',
9513
+ declaration: 'export interface TeamTaskView {\n readonly id: TeamTaskId;\n readonly revision: number;\n readonly subject: string;\n readonly description: string;\n readonly status: TeamTaskStatus;\n readonly blockedBy: TeamTaskId[];\n readonly writeScopes: string[];\n readonly ownerId?: SessionId;\n readonly ownerName?: string;\n readonly ready: boolean;\n readonly writeScopeWarnings: string[];\n}',
9449
9514
  },
9450
9515
  {
9451
9516
  name: 'TerminalBackend',
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-cordis",
3
3
  "description": "Read-only runtime API inspection for Harness plugin development",
4
- "version": "0.2.2-alpha.3",
4
+ "version": "0.2.2-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -36,23 +36,23 @@
36
36
  ],
37
37
  "license": "MIT",
38
38
  "peerDependencies": {
39
- "@deepseek-ai/cordis": "4.0.6-alpha.2",
40
- "@deepseek-ai/cordis-plugin-loader": "1.0.7-alpha.2",
41
- "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
42
- "@deepseek-ai/dsh-app-boot": "0.2.2-alpha.3",
43
- "@deepseek-ai/dsh-cordis-host-runner": "0.2.2-alpha.3",
44
- "@deepseek-ai/dsh-tools": "0.2.2-alpha.3"
39
+ "@deepseek-ai/cordis": "4.1.0",
40
+ "@deepseek-ai/cordis-plugin-loader": "1.1.0",
41
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
42
+ "@deepseek-ai/dsh-app-boot": "0.2.2-rc.1",
43
+ "@deepseek-ai/dsh-cordis-host-runner": "0.2.2-rc.1",
44
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1"
45
45
  },
46
46
  "devDependencies": {
47
- "@deepseek-ai/cordis": "4.0.6-alpha.2",
48
- "@deepseek-ai/cordis-plugin-group": "1.0.6-alpha.2",
49
- "@deepseek-ai/cordis-plugin-loader": "1.0.7-alpha.2",
50
- "@deepseek-ai/dsh-agent": "0.2.2-alpha.3",
51
- "@deepseek-ai/dsh-app-boot": "0.2.2-alpha.3",
52
- "@deepseek-ai/dsh-cordis-host-runner": "0.2.2-alpha.3",
53
- "@deepseek-ai/dsh-system-prompt": "0.2.2-alpha.3",
54
- "@deepseek-ai/dsh-tool-executor-native": "0.2.2-alpha.3",
55
- "@deepseek-ai/dsh-tools": "0.2.2-alpha.3",
56
- "@deepseek-ai/schemastery": "3.18.6-alpha.2"
47
+ "@deepseek-ai/cordis": "4.1.0",
48
+ "@deepseek-ai/cordis-plugin-group": "1.1.0",
49
+ "@deepseek-ai/cordis-plugin-loader": "1.1.0",
50
+ "@deepseek-ai/dsh-agent": "0.2.2-rc.1",
51
+ "@deepseek-ai/dsh-app-boot": "0.2.2-rc.1",
52
+ "@deepseek-ai/dsh-cordis-host-runner": "0.2.2-rc.1",
53
+ "@deepseek-ai/dsh-system-prompt": "0.2.2-rc.1",
54
+ "@deepseek-ai/dsh-tool-executor-native": "0.2.2-rc.1",
55
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1",
56
+ "@deepseek-ai/schemastery": "3.19.0"
57
57
  }
58
58
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-tool-executor-native",
3
3
  "description": "Native tool execution plugin",
4
- "version": "0.2.2-alpha.3",
4
+ "version": "0.2.2-rc.1",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,11 +29,11 @@
29
29
  "lib/types/**/*.d.ts"
30
30
  ],
31
31
  "peerDependencies": {
32
- "@deepseek-ai/cordis": "4.0.6-alpha.2",
33
- "@deepseek-ai/dsh-tools": "0.2.2-alpha.3"
32
+ "@deepseek-ai/cordis": "4.1.0",
33
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1"
34
34
  },
35
35
  "devDependencies": {
36
- "@deepseek-ai/cordis": "4.0.6-alpha.2",
37
- "@deepseek-ai/dsh-tools": "0.2.2-alpha.3"
36
+ "@deepseek-ai/cordis": "4.1.0",
37
+ "@deepseek-ai/dsh-tools": "0.2.2-rc.1"
38
38
  }
39
39
  }
@@ -9,20 +9,20 @@
9
9
  en: e253ed9cec03a396
10
10
  zh: 922fde282e2b0fd2
11
11
  /deepseek-ai-dsh-tool-executor-ptc/summary:
12
- en: 66e159c308afb6c1
13
- zh: 29b1a646ae7f918a
12
+ en: 351b679ea266c40e
13
+ zh: 72337ba82be757df
14
14
  /deepseek-ai-dsh-tool-executor-ptc/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
17
17
  /deepseek-ai-dsh-tool-executor-ptc/use-this-package:
18
- en: b6b7ffab35e1a725
19
- zh: fc5db2524e1507d6
18
+ en: 2db07bc05f05d202
19
+ zh: 4efdaab79fcc00af
20
20
  /deepseek-ai-dsh-tool-executor-ptc/understand-the-implementation:
21
- en: 9d4f61c351945d30
22
- zh: 1c575526230b0e02
21
+ en: 78708b3779d999a9
22
+ zh: ad6173f9f01630de
23
23
  /deepseek-ai-dsh-tool-executor-ptc/understand-the-implementation/ptc-mode:
24
- en: 48f90d4c78ba69d7
25
- zh: 5dcbbf23ebc1b803
24
+ en: 5623dd6cdd26bda2
25
+ zh: 0b93be49e84ef52c
26
26
  /deepseek-ai-dsh-tool-executor-ptc/further-exploration:
27
27
  en: ee69078c38c655a9
28
28
  zh: fb0873407f23c8c5
@@ -33,20 +33,23 @@
33
33
  en: eaefd7303f22977d
34
34
  zh: 9c425f9501128224
35
35
  /deepseek-ai-dsh-tool-executor-ptc/model-experience/ptc-mode-schema-and-system-prompt/what-the-model-sees:
36
- en: 52e1437dc292ad3a
37
- zh: 43fcfb76a3715f51
36
+ en: 3c4ee15c38a82543
37
+ zh: c032ede27425f917
38
38
  /deepseek-ai-dsh-tool-executor-ptc/model-experience/ptc-mode-schema-and-system-prompt/what-the-model-sees/typescript-ptc-mode-sdk-instructions-with-bash:
39
39
  en: 3a8df15e4ae32f9e
40
40
  zh: fc4a800ba363e835
41
+ /deepseek-ai-dsh-tool-executor-ptc/model-experience/ptc-mode-schema-and-system-prompt/what-the-model-sees/tool-call-allowance-exhausted:
42
+ en: 079e063e47dff7ed
43
+ zh: 271ee8bb3441eb2e
41
44
  /deepseek-ai-dsh-tool-executor-ptc/model-experience/ptc-mode-schema-and-system-prompt/token-effect:
42
- en: 12296fcafc14562c
43
- zh: f8e9351bb8c6437d
45
+ en: 0ae2c687fcf8f300
46
+ zh: 8a1c5a88a1ca9bbe
44
47
  /deepseek-ai-dsh-tool-executor-ptc/model-experience/ptc-mode-schema-and-system-prompt/kv-cache-effect:
45
- en: 78906628d634441f
46
- zh: 492f133aea50cfe3
48
+ en: 4bf1cd2890cfe6c4
49
+ zh: 5b230b0adc09ddfb
47
50
  /deepseek-ai-dsh-tool-executor-ptc/known-limitations-and-deferred-work:
48
- en: 5030c17a9c6a2a85
49
- zh: 6334bbe1a1d19cb4
51
+ en: 86d79fbb28aced73
52
+ zh: aac0ffa1c3ad5e9a
50
53
  /deepseek-ai-dsh-tool-executor-ptc/known-limitations-and-deferred-work/dev-note:
51
54
  en: e67f633dc6fe7773
52
55
  zh: 3bb0c20c93f16f98
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Use this executor when models should call tools through `run_code` programs. Mount a compatible PTC runtime and tool registry first. Scoped restrictions determine the generated SDK; only `run_code` is directly callable. Configure concurrency for parallel-safe program subcalls.
12
+ Use this executor when models should call tools through `run_code` programs. Mount a compatible PTC runtime and tool registry first. Scoped restrictions determine the generated SDK; only `run_code` is directly callable. Configure the total tool-call limit per program and concurrency for parallel-safe subcalls.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -30,11 +30,14 @@ Add this row to a composition with `dsh-tools` mounted. The nearest scoped execu
30
30
  ```yaml
31
31
  - name: '@deepseek-ai/dsh-tool-executor-ptc'
32
32
  config:
33
+ maxSubCallsPerMinute: 1024
33
34
  maxParallelSubCalls: 10
34
35
  ```
35
36
 
36
37
  Root `run_code` calls are exclusive and execute serially. `maxParallelSubCalls` limits parallel-safe nested calls within each program and defaults to `10`; it must be a positive integer, with `1` selecting serial execution. Exclusive calls form barriers.
37
38
 
39
+ `maxSubCallsPerMinute` defaults to `1024` and must be a positive integer. Each `run_code` gets `floor(resolved timeoutMs / 60000 × maxSubCallsPerMinute)` tool-call attempts: the default Node timeout of two minutes allows 2048. Runtime defaults and timeout caps apply before this calculation; no deadline means no finite call allowance. This is a total allowance, not a rolling window, so calls may happen in a burst. All tool bindings share the count, including queued calls, invalid arguments, and failed tools. The next attempt terminates the entire program through the runtime abort path, cancels active subcalls, and abandons queued calls before returning `CODE_RUN_FAILED`. As with a timeout, catching a binding error cannot keep the program running; retained runtime state is discarded. Completed tool effects remain, and the next program starts a fresh count.
40
+
38
41
  This package declares `ctx.ptcRuntime` and `ctx.systemPrompt` as required injections; Agent-owned programs need `ctx.workingDirectory`. The executor activates only after its runtime is available and withdraws when that runtime unloads. An enabled PTC executor without a runtime stops application startup. A withdrawn PTC selection never falls back to native execution.
39
42
 
40
43
  Shared dispatch events and the `ptc-mode` message-source declaration live in `@deepseek-ai/dsh-tool-executor-ptc/types`; Client code imports the same declarations through `@deepseek-ai/dsh-tool-executor-ptc/client`. Both entries exclude Host service declarations. Host policy extensions use `import type` from the package entry for `PtcDispatchLog` and `tools/ptc-dispatch-log` without mounting the executor.
@@ -49,21 +52,24 @@ Shared dispatch events and the `ptc-mode` message-source declaration live in `@d
49
52
  <details>
50
53
  <summary>Implementation internals — click to expand</summary>
51
54
 
52
- The executor receives the entire raw call batch and owns parsing, scheduling, cancellation, and optional model-step logging. It reuses the shared invocation pipeline for policy, tool bodies, and result notifications. After abort, it waits for started work and returns ordered error results for skipped calls. Unloading the executor aborts active sandboxed programs and waits for their nested calls to settle. Accepted batches still settle through that executor, potentially with cancellation errors.
55
+ The executor receives the entire raw call batch and owns parsing, scheduling, cancellation, and optional model-step logging. It reuses the shared invocation pipeline for policy, tool bodies, and result notifications. After abort, it waits for started work and returns ordered error results for skipped calls. Unloading the executor aborts active Agent-owned programs whose runtime supports sandboxing or retains state, and waits for their nested calls to settle. Accepted batches still settle through that executor, potentially with cancellation errors.
53
56
 
54
57
  ### PTC mode
55
58
 
56
- The PTC executor exposes the reserved `run_code` transport plus a deterministic SDK generated in the loaded runtime's language. Each SDK binding captures a frozen ToolSchema and passes it through the scheduler to its execution context. Before policy, a started call records only pairing ids, name, and normalized arguments; its settle event preserves the rendered result, optional presentation metadata, and structured error. Metadata is projected from that call’s canonical value and frozen; it changes neither the program value nor model content. Description and parameters remain transient and never enter Session events or SDK output. Calls are scheduled through a per-run pool that reuses the native concurrency contract. Under `ptc` alone, a model-direct call naming any other visible tool resolves to `UNKNOWN_TOOL` before policy — the announced surface and the callable surface stay the same. Intermediate binding values are execution-local; only the outer `run_code` result has a hard size cap.
59
+ The PTC executor exposes the reserved `run_code` transport and a deterministic SDK generated in the loaded runtime's language. Each SDK binding captures a frozen ToolSchema and passes it through the scheduler to its execution context. Before policy, a started call records only pairing ids, name, and normalized arguments; its settle event preserves the rendered result, optional presentation metadata, and structured error. Metadata is projected from that call’s canonical value and frozen; it changes neither the program value nor model content. Description and parameters remain transient and never enter Session events or SDK output. Calls are scheduled through a per-run pool that reuses the native concurrency contract. Under `ptc` alone, a model-direct call naming a program-only SDK tool resolves to `UNKNOWN_TOOL` before policy — the announced surface and the callable surface stay the same. Intermediate binding values are execution-local; only the outer `run_code` result has a hard size cap.
57
60
 
58
61
  New sub-calls use `<parent>:ptc:<n>` ids. Consumers treat these ids as opaque and correlate events by exact equality; restored historical ids retain their original bytes. The [PTC mode decision](../../../.agents/notes/implemented/feature/2026-06-15-ptc.md) owns durable naming and restoration rules.
59
62
 
60
63
  Successful image-bearing subcall results become deferred user-message context with `source.kind` set to `ptc-mode`. Other additional contexts retain their producing tool's attribution.
61
64
 
62
- When the caller cancels and the runtime reports `abort`, `run_code` waits for cleanup and returns the native tool cancellation result: `AbortError` / `ABORTED`, with `Error: tool call aborted` as its content. The Agent records the specific cancellation cause in `turn/end`, including a hook's reason. Other runtime failures retain `CODE_RUN_FAILED` and their diagnostics, even if the caller also cancels. Cancellation can discard retained runtime state and does not undo completed tool effects.
65
+ When the caller cancels and the runtime reports `abort`, `run_code` waits for cleanup and returns the native tool cancellation result: `AbortError` / `ABORTED`, with `Error: tool call aborted` as its content. Retained runtimes append their cancellation diagnostic, including whether variables were preserved or cleared. The Agent records the specific cancellation cause in `turn/end`, including a hook's reason. Other runtime failures retain `CODE_RUN_FAILED` and their diagnostics, even if the caller also cancels. Cancellation can discard retained runtime state and does not undo completed tool effects.
63
66
 
64
67
  `run_code` accepts `timeoutMs` when the mounted runtime supports an override; its schema reports the configured default and maximum, and the runtime's usage instructions. The Node default is 120,000 ms with a 600,000 ms cap, including nested tool and approval waits. A wider `sandbox_permissions` mode requires a non-empty `justification` and approval before the program starts. The schema asks the model to write that reason in the current user's language. The grant applies to that complete execution; standing Session policy and nested tools retain their own authority. Programs are never replayed automatically: inspect earlier effects before explicitly retrying a denied program. Retained PTC environments follow the standing file policy. PTC observes committed Session mode changes and immediately cancels affected calls in all Node modes. Later PTC calls wait for their nested-tool cleanup before resolving the latest policy. The runtime owns process invalidation and cleanup; permission setters remain synchronous. One-time escalations omit the state owner and complete in a temporary environment; standing variables remain available to ordinary calls.
65
68
 
66
- - [`src/index.ts`](src/index.ts) — Validated configuration and scoped registration; tool descriptions and batch execution.
69
+ Custom host integrations retain their `PtcExecutor` instance and call `reset(agent)` to clear that Agent's environment; reset is not a model tool or SDK binding. It requires a state-retaining runtime, cancels active calls, invokes `release(agent)`, and waits for process and started nested-tool cleanup without requiring the program to respond. Before admitting new programs, it queues `Program environment reset; retained variables cleared. Completed tool effects remain.` The notice is logged when consumed; cancellation or Agent disposal can discard it after state is cleared. Concurrent resets share cleanup. Missing or unsupported runtimes reject without blocking admission. Cleanup or notice-admission failure throws `CodeResetFailedError`; later programs report `CodeRunFailedError` with host-reset guidance until an explicit retry succeeds. Reset does not undo completed tool effects.
70
+
71
+ - [`src/index.ts`](src/index.ts) — Scoped registration, tool descriptions, batch execution and host environment reset.
72
+ - [`src/ptc-calls.ts`](src/ptc-calls.ts) — Call admission and cancellation; reset waits for runtime release and nested-tool cleanup before admitting new calls.
67
73
 
68
74
  </details>
69
75
 
@@ -85,7 +91,7 @@ When the caller cancels and the runtime reports `abort`, `run_code` waits for cl
85
91
 
86
92
  #### What the model sees
87
93
 
88
- PTC mode exposes the generated [`run_code` schema](../../../docs/tool-catalog.md#deepseek-aidsh-tool-executor-ptc), the SDK instructions below, and the generated exact SDK block for the loaded runtime's language. Both runtime languages list `code` before `description`; this is presentation order, not an enforced JSON member order. REPL and Script runtimes share the generic tool description and SDK instructions; their `executionInstructions` supply syntax and state rules. The TypeScript bash example returns a value for function-body runtimes, and prints output for REPL and Script runtimes. The instructions identify generated declarations as program-only bindings. When the current `bash` parameter schema accepts the example arguments, they also show a complete `run_code` call around `tools.bash(...)`. The `tools:sdk` section uses first-party order 5000 and disables prompt-variable interpolation, preserving literal `{{…}}` text in tool descriptions and schemas for both runtime languages. Under `ptc`, the prompt also carries the `tools:ptc-only` rule earlier in the first-party order, so the model reads which tools it may call before it reads what each one is for.
94
+ PTC mode exposes the generated [`run_code` schema](../../../docs/tool-catalog.md#deepseek-aidsh-tool-executor-ptc), the SDK instructions below, and the generated exact SDK block for the loaded runtime's language. Both runtime languages list `code` before `description`; this is presentation order, not an enforced JSON member order. REPL and Script runtimes share the generic tool description and SDK instructions; their `executionInstructions` supply syntax and state rules. The TypeScript bash example returns a value for function-body runtimes, and prints output for REPL and Script runtimes. The instructions identify generated declarations as program-only bindings. When the current `bash` parameter schema accepts the example arguments, they also show a complete `run_code` call around `tools.bash(...)`. The `tools:sdk` section uses first-party order 5000 and disables prompt-variable interpolation, preserving literal `{{…}}` text in tool descriptions and schemas for both runtime languages. Under `ptc`, the prompt also carries the `tools:ptc-only` rule earlier in the first-party order, so the model reads which tools it may call before it reads what each one is for. Exhausting the tool-call allowance returns a failed `run_code` result with the limit, rejected call number, termination notice, and possible infinite-loop warning. Runtime cleanup diagnostics and captured output remain visible.
89
95
 
90
96
  ##### TypeScript PTC mode SDK instructions with bash
91
97
 
@@ -106,20 +112,27 @@ Inside the program:
106
112
  Program-only SDK bindings:
107
113
  ```
108
114
 
115
+ ##### Tool-call allowance exhausted
116
+
117
+ ```markdown
118
+ Error: code run failed (abort): run_code exceeded its limit of 2048 tool calls (1024 per minute of its timeout); call 2049 was not dispatched. The run_code program may contain an infinite loop. Check loop termination or split the work into smaller run_code calls.
119
+ ```
120
+
109
121
  #### Token effect
110
122
 
111
- Fixed per-request cost proportional to the visible definitions. PTC mode trades end-tool schemas for generated SDK text plus one transport schema rather than promising a universal reduction.
123
+ Fixed per-request cost proportional to the visible definitions. PTC mode trades end-tool schemas for generated SDK text plus one transport schema rather than promising a universal reduction. The allowance adds no SDK or schema text; its diagnostic contributes tokens through the failed run's result.
112
124
 
113
125
  #### KV Cache effect
114
126
 
115
- Prefix-stable while the PTC mode selection, generated SDK, transport schema, and visible tool set are unchanged. Mode or filter changes may invalidate reuse from the first changed prompt or schema token.
127
+ Prefix-stable while the PTC mode selection, generated SDK, transport schema, and visible tool set are unchanged. Mode or filter changes may invalidate reuse from the first changed prompt or schema token. Changing `maxSubCallsPerMinute` does not change prompt or schema tokens.
116
128
 
117
129
  ## Known Limitations and Deferred Work
118
130
 
119
131
  <a id="known-limitations-and-deferred-work"></a>
120
132
 
121
- These constraints apply to accepted calls.
133
+ These constraints apply to the host integration and accepted calls.
122
134
 
135
+ - **No built-in reset control** — the shipped Loader plugin does not expose its executor instance through a service, GUI control or SDK endpoint. Hosts needing reset must mount and retain `PtcExecutor` in their own composition; that integration owns retries after a failed reset.
123
136
  - **PTC mode's SDK language follows the one loaded runtime, and a presentation is per agent rather than per tool** — PTC execution rejects prompt assembly unless `ctx.ptcRuntime.language` has a registered SDK renderer; within one agent no tool can be native-only while another is ptc-only.
124
137
  - **PTC mode intermediate values are execution-local and unbounded by bytes** — they cannot be reconstructed from session replay and may exhaust process or worker memory; only the outer `run_code` output has the worker's configurable hard cap.
125
138
  - **State depends on the runtime**: the default backend starts fresh; the Node REPL and Script mode with `scriptPersistence: true` retain memory per live Agent. Agent disposal awaits release. Restart and execution failures can clear memory; model-visible guidance explains how to recreate missing variables. Programs and results remain in the Session log, without serializing live objects.
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 当模型应通过 `run_code` 程序调用工具时,使用此执行器。先挂载兼容的 PTC 运行时和工具注册表。作用域限制决定生成的 SDK;只有 `run_code` 能被直接调用。可配置并行安全的程序子调用并发上限。
12
+ 当模型应通过 `run_code` 程序调用工具时,使用此执行器。先挂载兼容的 PTC 运行时和工具注册表。作用域限制决定生成的 SDK;只有 `run_code` 能被直接调用。可配置每个程序的工具调用总数上限,以及并行安全的子调用并发上限。
13
13
 
14
14
  ## 目录
15
15
 
@@ -30,11 +30,14 @@ kind: "package-reference"
30
30
  ```yaml
31
31
  - name: '@deepseek-ai/dsh-tool-executor-ptc'
32
32
  config:
33
+ maxSubCallsPerMinute: 1024
33
34
  maxParallelSubCalls: 10
34
35
  ```
35
36
 
36
37
  根 `run_code` 调用是独占调用,按串行执行。`maxParallelSubCalls` 限制每个程序中并行安全的嵌套调用数,默认值为 `10`;值必须是正整数,`1` 表示串行执行。独占调用构成屏障。
37
38
 
39
+ `maxSubCallsPerMinute` 默认值为 `1024`,必须是正整数。每次 `run_code` 的工具调用额度为 `floor(最终 timeoutMs / 60000 × maxSubCallsPerMinute)`:Node 默认超时为两分钟,因此允许 2048 次。计算前先应用运行时默认值和超时上限;没有截止时间时,调用额度也没有有限上限。这是总额度,不是滑动窗口,因此可以集中调用。所有工具绑定共用计数,排队调用、无效参数和失败调用也计入。达到上限后,下一次尝试会通过运行时取消路径终止整个程序,取消进行中的子调用,并放弃排队调用,然后返回 `CODE_RUN_FAILED`。与超时一样,捕获绑定错误也不能让程序继续运行;运行时保留的状态会被丢弃。已完成的工具操作仍然生效,新的程序重新计数。
40
+
38
41
  本包将 `ctx.ptcRuntime` 和 `ctx.systemPrompt` 声明为必需注入;带 Agent 的程序要求 `ctx.workingDirectory`。执行器在运行时可用后才激活,并在运行时卸载时撤回。启用 PTC 执行器但未提供运行时会阻止应用启动。已撤回的 PTC 选择不会回退到原生执行。
39
42
 
40
43
  共享分派事件与 `ptc-mode` 消息来源声明位于 `@deepseek-ai/dsh-tool-executor-ptc/types`;Client 代码通过 `@deepseek-ai/dsh-tool-executor-ptc/client` 导入同一组声明。两个入口都不引入 Host 服务声明。Host 策略扩展通过包主入口的 `import type` 获取 `PtcDispatchLog` 与 `tools/ptc-dispatch-log`,无需挂载执行器。
@@ -49,21 +52,24 @@ kind: "package-reference"
49
52
  <details>
50
53
  <summary>实现细节——点击展开</summary>
51
54
 
52
- 执行器接收完整的原始调用批次,负责解析、调度、取消和可选的模型步骤日志。它复用共享调用流水线来执行策略、工具和结果通知。中止后,它等待已开始的工作完成,并为跳过的调用返回有序错误结果。卸载执行器会中止运行中的沙箱程序,并等待其嵌套调用结束。已接纳批次仍由该执行器结算,但可能返回取消错误。
55
+ 执行器接收完整的原始调用批次,负责解析、调度、取消和可选的模型步骤日志。它复用共享调用流水线来执行策略、工具和结果通知。中止后,它等待已开始的工作完成,并为跳过的调用返回有序错误结果。卸载执行器会中止 Agent 在支持沙箱或保留状态的运行时中执行的程序,并等待其嵌套调用结束。已接纳批次仍由该执行器结算,但可能返回取消错误。
53
56
 
54
57
  ### PTC mode
55
58
 
56
- PTC 执行器公开保留的 `run_code` 传输以及按所加载运行时语言生成的确定性 SDK。每个 SDK 绑定捕获冻结的 ToolSchema,经由调度器传入该次执行上下文。已开始的调用在策略之前只记录配对 id、名称和规范化参数;其结算事件保留渲染结果、可选展示元数据与结构化错误;元数据由该次调用的规范值投影并冻结,不改变程序读取的值或模型内容。描述与参数 schema 仅临时存活,不进入 Session 事件或 SDK 输出。调用通过复用原生并发约定的每次运行独有池调度。在纯 `ptc` 下,模型直呼其他任何可见工具都会在策略之前解析为 `UNKNOWN_TOOL`——通告面与可调用面保持一致。中间绑定值只存在于执行局部;只有外层 `run_code` 结果有硬大小上限。
59
+ PTC 执行器公开保留的 `run_code` 传输,以及按所加载运行时语言生成的确定性 SDK。每个 SDK 绑定捕获冻结的 ToolSchema,经由调度器传入该次执行上下文。已开始的调用在策略之前只记录配对 id、名称和规范化参数;其结算事件保留渲染结果、可选展示元数据与结构化错误;元数据由该次调用的规范值投影并冻结,不改变程序读取的值或模型内容。描述与参数 schema 仅临时存活,不进入 Session 事件或 SDK 输出。调用通过复用原生并发约定的每次运行独有池调度。在纯 `ptc` 下,模型直呼仅供程序使用的 SDK 工具都会在策略之前解析为 `UNKNOWN_TOOL`——通告面与可调用面保持一致。中间绑定值只存在于执行局部;只有外层 `run_code` 结果有硬大小上限。
57
60
 
58
61
  新子调用使用 `<parent>:ptc:<n>` 标识。消费方将这些标识视为不透明值,并通过精确相等关联事件;恢复的历史标识保留原始字节。[PTC mode 决策](../../../.agents/notes/implemented/feature/2026-06-15-ptc.zh.md) 负责持久化命名与恢复规则。
59
62
 
60
63
  成功且包含图片的子调用结果会成为延后的 user-message 上下文,其 `source.kind` 为 `ptc-mode`。其他 additional context 保留其生产工具的归属。
61
64
 
62
- 调用方取消且运行时报告 `abort` 时,`run_code` 等待清理完成,并返回原生工具的取消结果:`AbortError` / `ABORTED`,内容为 `Error: tool call aborted`。Agent 在 `turn/end` 中记录具体取消原因,包括 hook 的理由。其他运行时失败保留 `CODE_RUN_FAILED` 及其诊断,即使调用方同时取消。取消可能丢弃保留的运行时状态,也不会撤销已完成的工具操作。
65
+ 调用方取消且运行时报告 `abort` 时,`run_code` 等待清理完成,并返回原生工具的取消结果:`AbortError` / `ABORTED`,内容为 `Error: tool call aborted`。保留状态的运行时会附加取消诊断,包括变量被保留还是清空。Agent 在 `turn/end` 中记录具体取消原因,包括 hook 的理由。其他运行时失败保留 `CODE_RUN_FAILED` 及其诊断,即使调用方同时取消。取消可能丢弃保留的运行时状态,也不会撤销已完成的工具操作。
63
66
 
64
67
  当已挂载运行时支持覆盖时,`run_code` 接受 `timeoutMs`;其 schema 报告配置的默认值和上限以及运行时使用说明。Node 默认值为 120,000 ms,上限为 600,000 ms,包含嵌套工具和审批等待。更宽的 `sandbox_permissions` 模式要求非空 `justification`,并在程序启动前获得审批。schema 提示模型使用当前用户的语言撰写理由。授权仅用于该次完整执行;常驻 Session 策略与嵌套工具保留各自权限。程序不会自动重放:显式重试被拒程序前,应检查先前已发生的效果。 保留状态的 PTC 环境遵循会话文件策略。PTC 观察已提交的 Session 模式变化,并立即取消所有 Node 模式下受影响的调用。后续 PTC 调用等待这些调用的嵌套工具清理后,再解析最新策略。运行时负责进程失效和清理,权限设置保持同步。单次提权省略状态所有者,在临时环境中执行;普通调用仍可访问原环境的变量。
65
68
 
66
- - [`src/index.ts`](src/index.ts) — 配置校验和作用域注册;工具描述和批次执行。
69
+ 自定义宿主集成保留自己的 `PtcExecutor` 实例,通过 `reset(agent)` 清空该 Agent 的环境;重置不是模型工具或 SDK 绑定。该操作要求运行时保留状态,会取消活动调用、调用 `release(agent)`,并等待进程及已启动嵌套工具的清理,无需程序响应。接纳新程序前,它排入 `Program environment reset; retained variables cleared. Completed tool effects remain.` 上下文。通知消费时写入日志;取消或 Agent 销毁可能在状态已清空后丢弃通知。并发重置共享清理过程。运行时缺失或不受支持时,操作拒绝但不阻止后续准入。清理或通知入队失败会抛出 `CodeResetFailedError`;后续程序报告带宿主重置指引的 `CodeRunFailedError`,直到显式重试成功。重置不会撤销已完成的工具操作。
70
+
71
+ - [`src/index.ts`](src/index.ts) — 作用域注册、工具描述、批次执行及宿主环境重置。
72
+ - [`src/ptc-calls.ts`](src/ptc-calls.ts) — 调用准入和取消;重置等待运行时释放及嵌套工具清理后,才接纳新调用。
67
73
 
68
74
  </details>
69
75
 
@@ -85,7 +91,7 @@ PTC 执行器公开保留的 `run_code` 传输以及按所加载运行时语言
85
91
 
86
92
  #### 模型看到什么
87
93
 
88
- PTC mode 会公开生成的 [`run_code` schema](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-executor-ptc)、下方 SDK 说明,以及按所加载运行时语言生成的精确 SDK 块。两种运行时语言都将 `code` 列在 `description` 前;这是呈现顺序,不强制 JSON 成员顺序。REPL 与 Script 运行时共用通用工具描述和 SDK 说明;语法与状态规则由各自的 `executionInstructions` 提供。TypeScript bash 示例对函数体运行时返回值,对 REPL 和 Script 运行时打印输出。说明将生成声明明确标为只能在程序内使用的绑定。当当前 `bash` 参数 schema 接受示例参数时,说明还会给出以 `run_code` 包住 `tools.bash(...)` 的完整调用。`tools:sdk` 段使用 first-party 顺序 5000,并关闭提示词变量插值,使两种运行时语言都原样保留工具描述和 schema 中的 `{{…}}` 文本。在 `ptc` 下,提示词还会带上处于更早 first-party 顺序的 `tools:ptc-only` 规则,让模型先读到「可以调用哪些工具」再读「每个工具做什么」。
94
+ PTC mode 会公开生成的 [`run_code` schema](../../../docs/tool-catalog.zh.md#deepseek-aidsh-tool-executor-ptc)、下方 SDK 说明,以及按所加载运行时语言生成的精确 SDK 块。两种运行时语言都将 `code` 列在 `description` 前;这是呈现顺序,不强制 JSON 成员顺序。REPL 与 Script 运行时共用通用工具描述和 SDK 说明;语法与状态规则由各自的 `executionInstructions` 提供。TypeScript bash 示例对函数体运行时返回值,对 REPL 和 Script 运行时打印输出。说明将生成声明明确标为只能在程序内使用的绑定。当当前 `bash` 参数 schema 接受示例参数时,说明还会给出以 `run_code` 包住 `tools.bash(...)` 的完整调用。`tools:sdk` 段使用 first-party 顺序 5000,并关闭提示词变量插值,使两种运行时语言都原样保留工具描述和 schema 中的 `{{…}}` 文本。在 `ptc` 下,提示词还会带上处于更早 first-party 顺序的 `tools:ptc-only` 规则,让模型先读到「可以调用哪些工具」再读「每个工具做什么」。 工具调用额度耗尽时,`run_code` 返回失败结果,说明额度、被拒绝的调用序号、程序已终止,以及可能存在死循环。运行时清理诊断和已捕获的输出仍然可见。
89
95
 
90
96
  ##### 带 bash 的 TypeScript PTC mode SDK 说明
91
97
 
@@ -106,20 +112,27 @@ Inside the program:
106
112
  Program-only SDK bindings:
107
113
  ```
108
114
 
115
+ ##### 工具调用额度耗尽
116
+
117
+ ```markdown
118
+ Error: code run failed (abort): run_code exceeded its limit of 2048 tool calls (1024 per minute of its timeout); call 2049 was not dispatched. The run_code program may contain an infinite loop. Check loop termination or split the work into smaller run_code calls.
119
+ ```
120
+
109
121
  #### Token 影响
110
122
 
111
- 每次请求的固定成本与可见定义成正比。PTC mode 使用生成的 SDK 文本加一个传输 schema 取代最终工具 schema,但不承诺普遍减少成本。
123
+ 每次请求的固定成本与可见定义成正比。PTC mode 使用生成的 SDK 文本加一个传输 schema 取代最终工具 schema,但不承诺普遍减少成本。调用额度不增加 SDK 或 schema 文本;超限诊断通过该次运行的失败结果消耗 token。
112
124
 
113
125
  #### KV Cache 影响
114
126
 
115
- 只要 PTC mode 选择、生成的 SDK、传输 schema 与可见工具集合不变,前缀就保持稳定。模式或筛选器变更可能从第一个改变的提示词或 schema token 起使复用失效。
127
+ 只要 PTC mode 选择、生成的 SDK、传输 schema 与可见工具集合不变,前缀就保持稳定。模式或筛选器变更可能从第一个改变的提示词或 schema token 起使复用失效。修改 `maxSubCallsPerMinute` 不会改变提示词或 schema token。
116
128
 
117
129
  ## 已知限制与延期工作
118
130
 
119
131
  <a id="known-limitations-and-deferred-work"></a>
120
132
 
121
- 以下约束适用于已开始的调用。
133
+ 以下约束适用于宿主集成及已开始的调用。
122
134
 
135
+ - **没有内置重置控件**:自带的 Loader 插件不通过服务、GUI 控件或 SDK 端点暴露执行器实例。需要重置的宿主必须在自己的组合中挂载并保留 `PtcExecutor`,该集成负责失败后的重试。
123
136
  - **PTC mode 的 SDK 语言由当前加载的运行时决定,且呈现方式按 agent 而非按工具**:PTC 会拒绝组装提示词,除非 `ctx.ptcRuntime.language` 有已注册的 SDK 渲染器;同一个 agent 内不能让一个工具仅使用 Native,而另一个仅使用 PTC。
124
137
  - **PTC mode 中间值只存在于执行局部,且没有字节上限**:它们无法从会话回放重建,并可能耗尽进程或 worker 内存;只有外层 `run_code` 输出受 worker 可配置的硬上限约束。
125
138
  - **状态由运行时决定**:默认后端每次重新开始;Node REPL 和启用 `scriptPersistence: true` 的 Script 模式按存活 Agent 保留内存。Agent 销毁时等待环境释放。重启与执行失败可能清除内存;模型说明会指导重新创建缺失变量。程序与结果仍写入 Session 日志,不序列化运行中的对象。