@qqbrowser/qbot-dsh 0.0.15 → 0.1.1

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 (737) hide show
  1. package/config/agent-presets/code/agent.cordis.yml +2 -2
  2. package/config/agent-presets/standard/agent.cordis.yml +2 -2
  3. package/cordis.patch.yml +50 -0
  4. package/lib/args-w1okyL78.js +9 -0
  5. package/lib/bin.js +2 -2
  6. package/lib/client.js +1 -0
  7. package/lib/content-review-CqDoh3wY.js +1 -0
  8. package/lib/content-review.js +1 -0
  9. package/lib/dump-config-CIL0Goqj.js +1 -0
  10. package/lib/gateway-port-CSFbDyoZ.js +1 -0
  11. package/lib/index.js +1 -0
  12. package/lib/llm-gateway-openai.js +17 -0
  13. package/lib/native-protocol-DdrIh89-.js +2 -0
  14. package/lib/{plugin-DNAeLZbb.js → plugin-viWCLnSr.js} +1 -1
  15. package/lib/profile-boot-CxJUSdnu.js +1 -0
  16. package/lib/profile-boot-DCgBQ4qO.js +8 -0
  17. package/lib/qb-auth-C2ofR1zn.js +4 -0
  18. package/lib/qb-auth.js +1 -0
  19. package/lib/web-search-dsh.js +1 -0
  20. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  21. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  22. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  23. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-cjs/index.js +7 -2
  25. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +3 -0
  26. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +3 -0
  27. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +1 -1
  28. package/node_modules/@deepseek-ai/cordis-plugin-hmr/package.json +1 -1
  29. package/node_modules/@deepseek-ai/dsh-agent/package.json +1 -1
  30. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +1 -1
  31. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -3
  32. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +1 -1
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +1 -1
  35. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +1 -1
  36. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +1 -1
  37. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +1 -1
  38. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +1 -1
  39. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +12 -12
  40. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +1 -1
  41. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  42. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  43. package/node_modules/@deepseek-ai/dsh-attachment/package.json +1 -1
  44. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  45. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +1 -1
  46. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +6 -37
  47. package/node_modules/@deepseek-ai/dsh-base/package.json +1 -1
  48. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +1 -1
  50. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  51. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +1 -1
  52. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +1 -1
  53. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +1 -1
  54. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-runtime/lib/client.js +4 -4
  58. package/node_modules/@deepseek-ai/dsh-client-runtime/package.json +1 -1
  59. package/node_modules/@deepseek-ai/dsh-client-schema-form/package.json +1 -1
  60. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +1 -1
  63. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +1 -1
  64. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +1 -1
  65. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +8 -8
  66. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +1 -1
  67. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -3
  68. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +1 -1
  69. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +1 -1
  71. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +1 -1
  72. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +1 -1
  73. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +1 -1
  75. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +1 -1
  76. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +1 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +1 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +1 -1
  79. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +1 -1
  80. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +1 -1
  82. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +1 -1
  83. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +1 -1
  84. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +1 -1
  85. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +1 -1
  86. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +1 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +1 -1
  90. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +22 -22
  91. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +1 -1
  93. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +1 -1
  94. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  95. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +1 -1
  96. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1 -1
  97. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +1 -1
  98. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +1 -1
  99. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +1 -1
  100. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +1 -1
  101. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +1 -1
  104. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -1
  105. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +1 -1
  106. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +1 -1
  107. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +1 -1
  108. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +1 -1
  109. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  110. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +1 -1
  111. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
  112. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +1 -1
  113. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +2 -2
  114. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +1 -1
  115. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +1 -1
  116. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +1 -1
  117. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +1 -1
  118. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +1 -1
  120. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +1 -1
  121. package/node_modules/@deepseek-ai/dsh-client-web/package.json +1 -1
  122. package/node_modules/@deepseek-ai/dsh-client-web-react/package.json +1 -1
  123. package/node_modules/@deepseek-ai/dsh-cmdline/lib/index.js +1 -1
  124. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  125. package/node_modules/@deepseek-ai/dsh-code-runtime/package.json +1 -1
  126. package/node_modules/@deepseek-ai/dsh-code-runtime-worker-thread/package.json +1 -1
  127. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +1 -1
  128. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +1 -1
  129. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +1 -1
  130. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +5 -2
  131. package/node_modules/@deepseek-ai/dsh-commands/package.json +1 -1
  132. package/node_modules/@deepseek-ai/dsh-compaction/package.json +1 -1
  133. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +1 -1
  134. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +1 -1
  135. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +4 -4
  136. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +1 -1
  137. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +10 -4
  138. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +1 -1
  139. package/node_modules/@deepseek-ai/dsh-credentials/package.json +1 -1
  140. package/node_modules/@deepseek-ai/dsh-credentials-local/lib/index.js +1 -1
  141. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +1 -1
  142. package/node_modules/@deepseek-ai/dsh-fs/package.json +1 -1
  143. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +1 -1
  144. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +1 -1
  145. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +1 -1
  146. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +5 -2
  147. package/node_modules/@deepseek-ai/dsh-goal/package.json +1 -1
  148. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +1 -1
  149. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +4 -4
  150. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +3 -3
  151. package/node_modules/@deepseek-ai/dsh-headless/package.json +1 -1
  152. package/node_modules/@deepseek-ai/dsh-home-paths/lib/index.js +1 -1
  153. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  154. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/index.js +7 -7
  155. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api/rpc.schema.js +1 -1
  156. package/node_modules/@deepseek-ai/dsh-host-apiproxy/lib/types/api-proxy.js +1 -1
  157. package/node_modules/@deepseek-ai/dsh-host-apiproxy/package.json +1 -1
  158. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  159. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +1 -1
  160. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +1 -1
  161. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +1 -1
  162. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +1 -1
  163. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +1 -1
  164. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -1
  165. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  166. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  167. package/node_modules/@deepseek-ai/dsh-jobs/package.json +1 -1
  168. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +1 -1
  169. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  170. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +1 -1
  171. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +1 -1
  172. package/node_modules/@deepseek-ai/dsh-llm/package.json +1 -1
  173. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1 -1
  174. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +1 -1
  175. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -1
  176. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  177. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +1 -1
  178. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  179. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +1 -1
  180. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +1 -1
  181. package/node_modules/@deepseek-ai/dsh-native-command/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  183. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +1 -1
  184. package/node_modules/@deepseek-ai/dsh-persona/package.json +1 -1
  185. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +1 -1
  186. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +1 -1
  187. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +1 -1
  188. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +1 -1
  189. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +1 -1
  190. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +1 -1
  191. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +1 -1
  192. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  193. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  194. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +1 -1
  195. package/node_modules/@deepseek-ai/dsh-schedule/package.json +1 -1
  196. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  197. package/node_modules/@deepseek-ai/dsh-session/package.json +1 -1
  198. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +1 -1
  199. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +1 -1
  200. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +1 -1
  201. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +1 -1
  202. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +1 -1
  203. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +2 -2
  205. package/node_modules/@deepseek-ai/dsh-session-query/package.json +1 -1
  206. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +1 -1
  207. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +1 -1
  208. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +1 -1
  209. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +1 -1
  210. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +1 -1
  211. package/node_modules/@deepseek-ai/dsh-session-title/package.json +1 -1
  212. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +1 -1
  213. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +1 -1
  214. package/node_modules/@deepseek-ai/dsh-settings/package.json +1 -1
  215. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +1 -1
  216. package/node_modules/@deepseek-ai/dsh-shell/package.json +1 -1
  217. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +1 -1
  218. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +1 -1
  219. package/node_modules/@deepseek-ai/dsh-skill/package.json +1 -1
  220. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +1 -1
  221. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +1 -1
  222. package/node_modules/@deepseek-ai/dsh-spill/package.json +1 -1
  223. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +1 -1
  224. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +1 -1
  225. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  226. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +1 -1
  227. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +1 -1
  228. package/node_modules/@deepseek-ai/dsh-subagent/package.json +1 -1
  229. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +1 -1
  230. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +1 -1
  231. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +1 -1
  232. package/node_modules/@deepseek-ai/dsh-subprocess/lib/index.js +1 -1
  233. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +1 -1
  235. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +1 -1
  236. package/node_modules/@deepseek-ai/dsh-terminal/package.json +1 -1
  237. package/node_modules/@deepseek-ai/dsh-terminal-bash/lib/index.js +1 -1
  238. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +1 -1
  239. package/node_modules/@deepseek-ai/dsh-time-context/package.json +1 -1
  240. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  241. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +1 -1
  242. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +1 -1
  243. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +1 -1
  244. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +1 -1
  245. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +7 -10
  246. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +1 -1
  247. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +1 -1
  248. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +9 -30
  249. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +1 -1
  250. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -8
  251. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +1 -1
  252. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +1 -1
  253. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +1 -1
  254. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +1 -1
  255. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +1 -1
  256. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +1 -1
  257. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +1 -1
  258. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +1 -1
  259. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  260. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +1 -1
  261. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +1 -1
  262. package/node_modules/@deepseek-ai/dsh-tool-subagent-report/package.json +1 -1
  263. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +1 -1
  264. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +1 -1
  265. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +1 -1
  266. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +15 -15
  267. package/node_modules/@deepseek-ai/dsh-tools/lib/types/code-mode.js +8 -8
  268. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +3 -3
  269. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +4 -4
  270. package/node_modules/@deepseek-ai/dsh-tools/package.json +1 -1
  271. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +1 -1
  272. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  273. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +1 -1
  274. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +1 -1
  275. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +1 -1
  276. package/node_modules/@deepseek-ai/dsh-web/lib/index.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-web/package.json +1 -1
  278. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -1
  279. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +1 -1
  280. package/node_modules/@deepseek-ai/dsh-web-app/lib/startup.js +4 -5
  281. package/node_modules/@deepseek-ai/dsh-web-app/package.json +1 -1
  282. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-BQQQ5Qt-.js → index-fPGOmJjK.js} +25 -25
  283. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +1 -1
  284. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +1 -1
  285. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +1 -1
  286. package/node_modules/@deepseek-ai/dsh-workflow/package.json +1 -1
  287. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/lib/worker.cjs +9 -8
  288. package/node_modules/@deepseek-ai/dsh-workflow-worker-thread/package.json +1 -1
  289. package/node_modules/@deepseek-ai/dsh-workspace/package.json +1 -1
  290. package/node_modules/@deepseek-ai/node-addon-landlock-run/package.json +1 -1
  291. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +5 -5
  292. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +1 -1
  293. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -1
  294. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -1
  295. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -1
  296. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +3 -3
  297. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +4 -4
  298. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +5 -5
  299. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +6 -6
  300. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +1 -1
  301. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -1
  302. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +2 -2
  303. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +1 -1
  304. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +1 -1
  305. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +1 -1
  306. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  307. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  308. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  309. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  310. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  311. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  312. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  313. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  314. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  315. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  316. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  317. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  318. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  319. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  320. package/node_modules/@earendil-works/pi-ai/dist/providers/faux.js +5 -5
  321. package/node_modules/@earendil-works/pi-ai/package.json +1 -1
  322. package/node_modules/@koromix/koffi-darwin-arm64/darwin_arm64/koffi.node +0 -0
  323. package/node_modules/@koromix/koffi-darwin-arm64/package.json +1 -1
  324. package/node_modules/@koromix/koffi-darwin-x64/darwin_x64/koffi.node +0 -0
  325. package/node_modules/@koromix/koffi-darwin-x64/package.json +1 -1
  326. package/node_modules/@koromix/koffi-win32-x64/package.json +1 -1
  327. package/node_modules/@koromix/koffi-win32-x64/win32_x64/koffi.node +0 -0
  328. package/node_modules/@smithy/core/dist-cjs/index.js +3 -1
  329. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +126 -39
  330. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +14 -3
  331. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  332. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +3 -1
  333. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +10 -1
  334. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +10 -1
  335. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +16 -2
  336. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +4 -1
  337. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +4 -1
  338. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +4 -1
  339. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +4 -1
  340. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +4 -1
  341. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +7 -0
  342. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +3 -0
  343. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-decode.js +29 -13
  344. package/node_modules/@smithy/core/dist-es/submodules/cbor/cbor-encode.js +12 -4
  345. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +9 -0
  346. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +7 -0
  347. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +44 -15
  348. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +22 -4
  349. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +5 -0
  350. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +3 -0
  351. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +4 -1
  352. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +6 -1
  353. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +4 -1
  354. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +3 -0
  355. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +7 -0
  356. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +4 -1
  357. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +9 -0
  358. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +5 -0
  359. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +3 -0
  360. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +4 -1
  361. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  362. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  363. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  364. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +3 -0
  365. package/node_modules/@smithy/core/dist-es/submodules/transport/hasOwn.js +3 -0
  366. package/node_modules/@smithy/core/dist-es/submodules/transport/index.js +1 -0
  367. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +3 -0
  368. package/node_modules/@smithy/core/package.json +1 -1
  369. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +19 -7
  370. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -1
  371. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +4 -1
  372. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +4 -1
  373. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +10 -3
  374. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +4 -1
  375. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +4 -1
  376. package/node_modules/@smithy/signature-v4/package.json +1 -1
  377. package/node_modules/@tanstack/react-virtual/package.json +1 -1
  378. package/node_modules/@tanstack/virtual-core/dist/cjs/index.cjs +7 -1
  379. package/node_modules/@tanstack/virtual-core/dist/cjs/utils.cjs +14 -4
  380. package/node_modules/@tanstack/virtual-core/dist/esm/index.js +1 -1
  381. package/node_modules/@tanstack/virtual-core/dist/esm/utils.js +2 -2
  382. package/node_modules/@tanstack/virtual-core/package.json +1 -1
  383. package/node_modules/hono/dist/cjs/client/utils.js +1 -1
  384. package/node_modules/hono/dist/cjs/context.js +4 -0
  385. package/node_modules/hono/dist/cjs/middleware/cors/index.js +1 -1
  386. package/node_modules/hono/dist/cjs/middleware/csrf/index.js +1 -1
  387. package/node_modules/hono/dist/cjs/middleware/etag/digest.js +1 -1
  388. package/node_modules/hono/dist/cjs/middleware/etag/index.js +2 -2
  389. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +3 -1
  390. package/node_modules/hono/dist/cjs/router/linear-router/router.js +7 -2
  391. package/node_modules/hono/dist/cjs/router/pattern-router/router.js +3 -9
  392. package/node_modules/hono/dist/cjs/router/trie-router/node.js +43 -67
  393. package/node_modules/hono/dist/cjs/router/trie-router/router.js +3 -11
  394. package/node_modules/hono/dist/cjs/utils/ipaddr.js +5 -3
  395. package/node_modules/hono/dist/client/utils.js +1 -1
  396. package/node_modules/hono/dist/middleware/cors/index.js +1 -1
  397. package/node_modules/hono/dist/middleware/csrf/index.js +1 -1
  398. package/node_modules/hono/dist/middleware/etag/digest.js +1 -1
  399. package/node_modules/hono/dist/middleware/etag/index.js +1 -1
  400. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -1
  401. package/node_modules/hono/dist/router/linear-router/router.js +1 -1
  402. package/node_modules/hono/dist/router/pattern-router/router.js +1 -1
  403. package/node_modules/hono/dist/router/trie-router/node.js +1 -1
  404. package/node_modules/hono/dist/router/trie-router/router.js +1 -1
  405. package/node_modules/hono/dist/utils/ipaddr.js +1 -1
  406. package/node_modules/hono/package.json +1 -1
  407. package/node_modules/koffi/package.json +1 -1
  408. package/node_modules/koffi/src/koffi/index.cjs +1 -1
  409. package/node_modules/koffi/src/koffi/index.js +1 -1
  410. package/node_modules/koffi/src/koffi/indirect.cjs +1 -1
  411. package/node_modules/koffi/src/koffi/indirect.js +1 -1
  412. package/node_modules/negotiator/lib/accept.js +54 -0
  413. package/node_modules/negotiator/lib/charset.js +10 -34
  414. package/node_modules/negotiator/lib/encoding.js +9 -30
  415. package/node_modules/negotiator/lib/language.js +15 -36
  416. package/node_modules/negotiator/lib/mediaType.js +16 -134
  417. package/node_modules/negotiator/node_modules/content-type/LICENSE +22 -0
  418. package/node_modules/negotiator/node_modules/content-type/dist/index.js +176 -0
  419. package/node_modules/negotiator/node_modules/content-type/package.json +1 -0
  420. package/node_modules/negotiator/package.json +1 -1
  421. package/node_modules/node-pty/lib/conpty_console_list_agent.js +11 -2
  422. package/node_modules/node-pty/lib/index.js +6 -6
  423. package/node_modules/node-pty/lib/shared/conout.js +2 -3
  424. package/node_modules/node-pty/lib/terminal.js +2 -2
  425. package/node_modules/node-pty/lib/unixTerminal.js +11 -6
  426. package/node_modules/node-pty/lib/utils.js +6 -7
  427. package/node_modules/node-pty/lib/windowsConoutConnection.js +24 -18
  428. package/node_modules/node-pty/lib/windowsPtyAgent.js +125 -101
  429. package/node_modules/node-pty/lib/windowsTerminal.js +14 -4
  430. package/node_modules/node-pty/lib/worker/conoutSocketWorker.js +3 -3
  431. package/node_modules/node-pty/package.json +1 -1
  432. package/node_modules/node-pty/prebuilds/darwin-arm64/pty.node +0 -0
  433. package/node_modules/node-pty/prebuilds/darwin-arm64/spawn-helper +0 -0
  434. package/node_modules/node-pty/prebuilds/darwin-x64/pty.node +0 -0
  435. package/node_modules/node-pty/prebuilds/darwin-x64/spawn-helper +0 -0
  436. package/node_modules/node-pty/prebuilds/win32-x64/conpty/OpenConsole.exe +0 -0
  437. package/node_modules/node-pty/prebuilds/win32-x64/conpty/conpty.dll +0 -0
  438. package/node_modules/node-pty/prebuilds/win32-x64/conpty.node +0 -0
  439. package/node_modules/node-pty/prebuilds/win32-x64/conpty_console_list.node +0 -0
  440. package/node_modules/node-pty/scripts/post-install.js +1 -5
  441. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-arm64/OpenConsole.exe +0 -0
  442. package/node_modules/node-pty/third_party/conpty/{1.23.251008001 → 1.25.260303002}/win10-arm64/conpty.dll +0 -0
  443. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/OpenConsole.exe +0 -0
  444. package/node_modules/node-pty/third_party/conpty/1.25.260303002/win10-x64/conpty.dll +0 -0
  445. package/node_modules/typebox/build/compile/validator.mjs +1 -1
  446. package/node_modules/typebox/build/format/_idna.mjs +1 -1
  447. package/node_modules/typebox/build/format/_puny.mjs +1 -1
  448. package/node_modules/typebox/build/format/uuid.mjs +1 -1
  449. package/node_modules/typebox/build/guard/emit.mjs +1 -1
  450. package/node_modules/typebox/build/guard/guard.mjs +1 -1
  451. package/node_modules/typebox/build/guard/string.mjs +1 -1
  452. package/node_modules/typebox/build/schema/engine/_functions.mjs +1 -1
  453. package/node_modules/typebox/build/schema/engine/_guard.mjs +1 -0
  454. package/node_modules/typebox/build/schema/engine/boolean.mjs +1 -1
  455. package/node_modules/typebox/build/schema/engine/index.mjs +1 -1
  456. package/node_modules/typebox/build/schema/engine/schema.mjs +1 -1
  457. package/node_modules/typebox/build/schema/engine/type.mjs +1 -1
  458. package/node_modules/typebox/build/schema/types/_guard.mjs +1 -0
  459. package/node_modules/typebox/build/schema/types/index.mjs +1 -1
  460. package/node_modules/typebox/build/schema/types/schema.mjs +1 -1
  461. package/node_modules/typebox/build/system/locale/ar_001.mjs +1 -1
  462. package/node_modules/typebox/build/system/locale/bn_BD.mjs +1 -1
  463. package/node_modules/typebox/build/system/locale/cs_CZ.mjs +1 -1
  464. package/node_modules/typebox/build/system/locale/de_DE.mjs +1 -1
  465. package/node_modules/typebox/build/system/locale/el_GR.mjs +1 -1
  466. package/node_modules/typebox/build/system/locale/en_US.mjs +1 -1
  467. package/node_modules/typebox/build/system/locale/es_419.mjs +1 -1
  468. package/node_modules/typebox/build/system/locale/es_AR.mjs +1 -1
  469. package/node_modules/typebox/build/system/locale/es_ES.mjs +1 -1
  470. package/node_modules/typebox/build/system/locale/es_MX.mjs +1 -1
  471. package/node_modules/typebox/build/system/locale/fa_IR.mjs +1 -1
  472. package/node_modules/typebox/build/system/locale/fil_PH.mjs +1 -1
  473. package/node_modules/typebox/build/system/locale/fr_CA.mjs +1 -1
  474. package/node_modules/typebox/build/system/locale/fr_FR.mjs +1 -1
  475. package/node_modules/typebox/build/system/locale/ha_NG.mjs +1 -1
  476. package/node_modules/typebox/build/system/locale/hi_IN.mjs +1 -1
  477. package/node_modules/typebox/build/system/locale/hu_HU.mjs +1 -1
  478. package/node_modules/typebox/build/system/locale/id_ID.mjs +1 -1
  479. package/node_modules/typebox/build/system/locale/it_IT.mjs +1 -1
  480. package/node_modules/typebox/build/system/locale/ja_JP.mjs +1 -1
  481. package/node_modules/typebox/build/system/locale/ko_KR.mjs +1 -1
  482. package/node_modules/typebox/build/system/locale/ms_MY.mjs +1 -1
  483. package/node_modules/typebox/build/system/locale/nl_NL.mjs +1 -1
  484. package/node_modules/typebox/build/system/locale/pl_PL.mjs +1 -1
  485. package/node_modules/typebox/build/system/locale/pt_BR.mjs +1 -1
  486. package/node_modules/typebox/build/system/locale/pt_PT.mjs +1 -1
  487. package/node_modules/typebox/build/system/locale/ro_RO.mjs +1 -1
  488. package/node_modules/typebox/build/system/locale/ru_RU.mjs +1 -1
  489. package/node_modules/typebox/build/system/locale/sv_SE.mjs +1 -1
  490. package/node_modules/typebox/build/system/locale/sw_TZ.mjs +1 -1
  491. package/node_modules/typebox/build/system/locale/th_TH.mjs +1 -1
  492. package/node_modules/typebox/build/system/locale/tr_TR.mjs +1 -1
  493. package/node_modules/typebox/build/system/locale/uk_UA.mjs +1 -1
  494. package/node_modules/typebox/build/system/locale/ur_PK.mjs +1 -1
  495. package/node_modules/typebox/build/system/locale/vi_VN.mjs +1 -1
  496. package/node_modules/typebox/build/system/locale/yo_NG.mjs +1 -1
  497. package/node_modules/typebox/build/system/locale/zh_Hans.mjs +1 -1
  498. package/node_modules/typebox/build/system/locale/zh_Hant.mjs +1 -1
  499. package/node_modules/typebox/build/system/memory/clone.mjs +1 -1
  500. package/node_modules/typebox/build/system/settings/settings.mjs +1 -1
  501. package/node_modules/typebox/build/type/action/_optional.mjs +1 -0
  502. package/node_modules/typebox/build/type/action/_readonly.mjs +1 -0
  503. package/node_modules/typebox/build/type/action/awaited.mjs +1 -0
  504. package/node_modules/typebox/build/type/action/conditional.mjs +1 -1
  505. package/node_modules/typebox/build/type/action/index.mjs +1 -1
  506. package/node_modules/typebox/build/type/action/mapped.mjs +1 -1
  507. package/node_modules/typebox/build/type/action/module.mjs +1 -1
  508. package/node_modules/typebox/build/type/action/options.mjs +1 -0
  509. package/node_modules/typebox/build/type/engine/awaited/instantiate.mjs +1 -0
  510. package/node_modules/typebox/build/type/engine/call/distribute_arguments.mjs +1 -1
  511. package/node_modules/typebox/build/type/engine/call/instantiate.mjs +1 -1
  512. package/node_modules/typebox/build/type/engine/call/resolve_arguments.mjs +1 -1
  513. package/node_modules/typebox/build/type/engine/constructor_parameters/instantiate.mjs +1 -1
  514. package/node_modules/typebox/build/type/engine/cyclic/candidates.mjs +1 -1
  515. package/node_modules/typebox/build/type/engine/cyclic/check.mjs +1 -1
  516. package/node_modules/typebox/build/type/engine/cyclic/dependencies.mjs +1 -1
  517. package/node_modules/typebox/build/type/engine/cyclic/extends.mjs +1 -1
  518. package/node_modules/typebox/build/type/engine/cyclic/instantiate.mjs +1 -1
  519. package/node_modules/typebox/build/type/engine/enum/enum_to_union.mjs +1 -0
  520. package/node_modules/typebox/build/type/engine/enum/index.mjs +1 -1
  521. package/node_modules/typebox/build/type/engine/evaluate/broaden.mjs +1 -1
  522. package/node_modules/typebox/build/type/engine/evaluate/composite.mjs +1 -1
  523. package/node_modules/typebox/build/type/engine/evaluate/distribute.mjs +1 -1
  524. package/node_modules/typebox/build/type/engine/evaluate/evaluate.mjs +1 -1
  525. package/node_modules/typebox/build/type/engine/exclude/operation.mjs +1 -1
  526. package/node_modules/typebox/build/type/engine/extract/operation.mjs +1 -1
  527. package/node_modules/typebox/build/type/engine/index.mjs +1 -1
  528. package/node_modules/typebox/build/type/engine/indexable/from_enum.mjs +1 -1
  529. package/node_modules/typebox/build/type/engine/indexable/from_template_literal.mjs +1 -1
  530. package/node_modules/typebox/build/type/engine/indexable/from_type.mjs +1 -1
  531. package/node_modules/typebox/build/type/engine/indexed/instantiate.mjs +1 -1
  532. package/node_modules/typebox/build/type/engine/instantiate.mjs +1 -1
  533. package/node_modules/typebox/build/type/engine/intrinsics/from_template_literal.mjs +1 -1
  534. package/node_modules/typebox/build/type/engine/keyof/instantiate.mjs +1 -1
  535. package/node_modules/typebox/build/type/engine/mapped/mapped_operation.mjs +1 -1
  536. package/node_modules/typebox/build/type/engine/mapped/mapped_variants.mjs +1 -1
  537. package/node_modules/typebox/build/type/engine/module/instantiate.mjs +1 -1
  538. package/node_modules/typebox/build/type/engine/object/from_type.mjs +1 -1
  539. package/node_modules/typebox/build/type/engine/object/from_union.mjs +1 -1
  540. package/node_modules/typebox/build/type/engine/options/index.mjs +1 -0
  541. package/node_modules/typebox/build/type/engine/options/instantiate.mjs +1 -0
  542. package/node_modules/typebox/build/type/engine/parameters/instantiate.mjs +1 -1
  543. package/node_modules/typebox/build/type/engine/partial/from_intersect.mjs +1 -1
  544. package/node_modules/typebox/build/type/engine/partial/from_object.mjs +1 -1
  545. package/node_modules/typebox/build/type/engine/partial/from_type.mjs +1 -1
  546. package/node_modules/typebox/build/type/engine/readonly_object/from_array.mjs +1 -1
  547. package/node_modules/typebox/build/type/engine/readonly_object/from_intersect.mjs +1 -1
  548. package/node_modules/typebox/build/type/engine/readonly_object/from_object.mjs +1 -1
  549. package/node_modules/typebox/build/type/engine/readonly_object/from_tuple.mjs +1 -1
  550. package/node_modules/typebox/build/type/engine/readonly_object/from_type.mjs +1 -1
  551. package/node_modules/typebox/build/type/engine/record/from_key_enum.mjs +1 -1
  552. package/node_modules/typebox/build/type/engine/record/from_key_template_literal.mjs +1 -1
  553. package/node_modules/typebox/build/type/engine/ref/instantiate.mjs +1 -1
  554. package/node_modules/typebox/build/type/engine/required/from_intersect.mjs +1 -1
  555. package/node_modules/typebox/build/type/engine/required/from_object.mjs +1 -1
  556. package/node_modules/typebox/build/type/engine/required/from_type.mjs +1 -1
  557. package/node_modules/typebox/build/type/engine/template_literal/decode.mjs +1 -1
  558. package/node_modules/typebox/build/type/engine/template_literal/encode.mjs +1 -1
  559. package/node_modules/typebox/build/type/engine/template_literal/is_finite.mjs +1 -1
  560. package/node_modules/typebox/build/type/engine/this/expand_this.mjs +1 -1
  561. package/node_modules/typebox/build/type/extends/async_iterator.mjs +1 -0
  562. package/node_modules/typebox/build/type/extends/enum.mjs +1 -1
  563. package/node_modules/typebox/build/type/extends/extends_left.mjs +1 -1
  564. package/node_modules/typebox/build/type/extends/extends_right.mjs +1 -1
  565. package/node_modules/typebox/build/type/extends/inference.mjs +1 -1
  566. package/node_modules/typebox/build/type/extends/iterator.mjs +1 -0
  567. package/node_modules/typebox/build/type/extends/object.mjs +1 -1
  568. package/node_modules/typebox/build/type/extends/parameters.mjs +1 -1
  569. package/node_modules/typebox/build/type/extends/promise.mjs +1 -0
  570. package/node_modules/typebox/build/type/extends/template_literal.mjs +1 -1
  571. package/node_modules/typebox/build/type/extends/tuple.mjs +1 -1
  572. package/node_modules/typebox/build/type/extends/union.mjs +1 -1
  573. package/node_modules/typebox/build/type/script/mapping.mjs +1 -1
  574. package/node_modules/typebox/build/type/script/parser.mjs +6 -6
  575. package/node_modules/typebox/build/type/script/script.mjs +1 -1
  576. package/node_modules/typebox/build/type/script/token/internal/guard.mjs +1 -1
  577. package/node_modules/typebox/build/type/script/token/until.mjs +1 -1
  578. package/node_modules/typebox/build/type/types/_immutable.mjs +1 -1
  579. package/node_modules/typebox/build/type/types/_optional.mjs +1 -1
  580. package/node_modules/typebox/build/type/types/_readonly.mjs +1 -1
  581. package/node_modules/typebox/build/type/types/_refine.mjs +1 -1
  582. package/node_modules/typebox/build/type/types/async_iterator.mjs +1 -0
  583. package/node_modules/typebox/build/type/types/base.mjs +1 -0
  584. package/node_modules/typebox/build/type/types/call.mjs +1 -1
  585. package/node_modules/typebox/build/type/types/deferred.mjs +1 -1
  586. package/node_modules/typebox/build/type/types/enum.mjs +1 -1
  587. package/node_modules/typebox/build/type/types/index.mjs +1 -1
  588. package/node_modules/typebox/build/type/types/iterator.mjs +1 -0
  589. package/node_modules/typebox/build/type/types/number.mjs +1 -1
  590. package/node_modules/typebox/build/type/types/promise.mjs +1 -0
  591. package/node_modules/typebox/build/type/types/record.mjs +1 -1
  592. package/node_modules/typebox/build/typebox.mjs +1 -1
  593. package/node_modules/typebox/build/value/clean/clean.mjs +1 -1
  594. package/node_modules/typebox/build/value/clean/from_base.mjs +1 -0
  595. package/node_modules/typebox/build/value/clean/from_intersect.mjs +1 -1
  596. package/node_modules/typebox/build/value/clean/from_type.mjs +1 -1
  597. package/node_modules/typebox/build/value/clean/from_union.mjs +1 -1
  598. package/node_modules/typebox/build/value/clone/clone.mjs +1 -1
  599. package/node_modules/typebox/build/value/codec/decode.mjs +1 -1
  600. package/node_modules/typebox/build/value/codec/encode.mjs +1 -1
  601. package/node_modules/typebox/build/value/codec/from_array.mjs +1 -1
  602. package/node_modules/typebox/build/value/codec/from_object.mjs +1 -1
  603. package/node_modules/typebox/build/value/codec/from_record.mjs +1 -1
  604. package/node_modules/typebox/build/value/codec/from_tuple.mjs +1 -1
  605. package/node_modules/typebox/build/value/codec/from_union.mjs +1 -1
  606. package/node_modules/typebox/build/value/convert/from_base.mjs +1 -0
  607. package/node_modules/typebox/build/value/convert/from_enum.mjs +1 -1
  608. package/node_modules/typebox/build/value/convert/from_template_literal.mjs +1 -1
  609. package/node_modules/typebox/build/value/convert/from_type.mjs +1 -1
  610. package/node_modules/typebox/build/value/create/from_async_iterator.mjs +1 -0
  611. package/node_modules/typebox/build/value/create/from_base.mjs +1 -0
  612. package/node_modules/typebox/build/value/create/from_enum.mjs +1 -1
  613. package/node_modules/typebox/build/value/create/from_iterator.mjs +1 -0
  614. package/node_modules/typebox/build/value/create/from_promise.mjs +1 -0
  615. package/node_modules/typebox/build/value/create/from_type.mjs +1 -1
  616. package/node_modules/typebox/build/value/default/from_base.mjs +1 -0
  617. package/node_modules/typebox/build/value/default/from_object.mjs +1 -1
  618. package/node_modules/typebox/build/value/default/from_type.mjs +1 -1
  619. package/node_modules/typebox/build/value/index.mjs +1 -1
  620. package/node_modules/typebox/build/value/mutate/error.mjs +1 -0
  621. package/node_modules/typebox/build/value/mutate/from_array.mjs +1 -0
  622. package/node_modules/typebox/build/value/mutate/from_object.mjs +1 -0
  623. package/node_modules/typebox/build/value/mutate/from_unknown.mjs +1 -0
  624. package/node_modules/typebox/build/value/mutate/from_value.mjs +1 -0
  625. package/node_modules/typebox/build/value/mutate/index.mjs +1 -0
  626. package/node_modules/typebox/build/value/mutate/mutate.mjs +1 -0
  627. package/node_modules/typebox/build/value/repair/from_base.mjs +1 -0
  628. package/node_modules/typebox/build/value/repair/from_enum.mjs +1 -1
  629. package/node_modules/typebox/build/value/repair/from_type.mjs +1 -1
  630. package/node_modules/typebox/build/value/shared/union_priority_sort.mjs +1 -1
  631. package/node_modules/typebox/build/value/value.mjs +1 -1
  632. package/node_modules/typebox/package.json +1 -1
  633. package/package.json +1 -1
  634. package/lib/args-DcHS9iff.js +0 -9
  635. package/lib/dump-config-xQTUTTDD.js +0 -1
  636. package/lib/profile-boot-BkordgJK.js +0 -1
  637. package/lib/profile-boot-DDo03lXi.js +0 -8
  638. package/node_modules/@deepseek-ai/dsh-content-review/LICENSE +0 -21
  639. package/node_modules/@deepseek-ai/dsh-content-review/lib/index.js +0 -1
  640. package/node_modules/@deepseek-ai/dsh-content-review/lib/invariant.js +0 -1
  641. package/node_modules/@deepseek-ai/dsh-content-review/package.json +0 -1
  642. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/LICENSE +0 -21
  643. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/index.js +0 -1
  644. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/lib/invariant.js +0 -1
  645. package/node_modules/@deepseek-ai/dsh-home-quarantine-macos/package.json +0 -1
  646. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/LICENSE +0 -21
  647. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/index.js +0 -17
  648. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/lib/invariant.js +0 -1
  649. package/node_modules/@deepseek-ai/dsh-llm-gateway-openai/package.json +0 -1
  650. package/node_modules/@deepseek-ai/dsh-qb-auth/LICENSE +0 -21
  651. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/index.js +0 -4
  652. package/node_modules/@deepseek-ai/dsh-qb-auth/lib/invariant.js +0 -1
  653. package/node_modules/@deepseek-ai/dsh-qb-auth/package.json +0 -1
  654. package/node_modules/@deepseek-ai/dsh-web-search-dsh/LICENSE +0 -21
  655. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/index.js +0 -1
  656. package/node_modules/@deepseek-ai/dsh-web-search-dsh/lib/invariant.js +0 -1
  657. package/node_modules/@deepseek-ai/dsh-web-search-dsh/package.json +0 -1
  658. package/node_modules/@napi-rs/xattr/LICENSE +0 -21
  659. package/node_modules/@napi-rs/xattr/index.js +0 -567
  660. package/node_modules/@napi-rs/xattr/package.json +0 -1
  661. package/node_modules/@napi-rs/xattr-darwin-arm64/package.json +0 -1
  662. package/node_modules/@napi-rs/xattr-darwin-arm64/xattr.darwin-arm64.node +0 -0
  663. package/node_modules/@napi-rs/xattr-darwin-x64/package.json +0 -1
  664. package/node_modules/@napi-rs/xattr-darwin-x64/xattr.darwin-x64.node +0 -0
  665. package/node_modules/@parcel/watcher/LICENSE +0 -21
  666. package/node_modules/@parcel/watcher/index.js +0 -44
  667. package/node_modules/@parcel/watcher/index.js.flow +0 -45
  668. package/node_modules/@parcel/watcher/package.json +0 -1
  669. package/node_modules/@parcel/watcher/scripts/build-from-source.js +0 -16
  670. package/node_modules/@parcel/watcher/wrapper.js +0 -88
  671. package/node_modules/@parcel/watcher-darwin-arm64/LICENSE +0 -21
  672. package/node_modules/@parcel/watcher-darwin-arm64/package.json +0 -1
  673. package/node_modules/@parcel/watcher-darwin-arm64/watcher.node +0 -0
  674. package/node_modules/@parcel/watcher-darwin-x64/LICENSE +0 -21
  675. package/node_modules/@parcel/watcher-darwin-x64/package.json +0 -1
  676. package/node_modules/@parcel/watcher-darwin-x64/watcher.node +0 -0
  677. package/node_modules/@parcel/watcher-win32-x64/LICENSE +0 -21
  678. package/node_modules/@parcel/watcher-win32-x64/package.json +0 -1
  679. package/node_modules/@parcel/watcher-win32-x64/watcher.node +0 -0
  680. package/node_modules/is-extglob/LICENSE +0 -21
  681. package/node_modules/is-extglob/index.js +0 -20
  682. package/node_modules/is-extglob/package.json +0 -1
  683. package/node_modules/is-glob/LICENSE +0 -21
  684. package/node_modules/is-glob/index.js +0 -150
  685. package/node_modules/is-glob/package.json +0 -1
  686. package/node_modules/node-pty/deps/winpty/.drone.yml +0 -15
  687. package/node_modules/node-pty/deps/winpty/LICENSE +0 -21
  688. package/node_modules/node-pty/deps/winpty/configure +0 -167
  689. package/node_modules/node-pty/deps/winpty/misc/ConinMode.ps1 +0 -116
  690. package/node_modules/node-pty/deps/winpty/misc/IdentifyConsoleWindow.ps1 +0 -51
  691. package/node_modules/node-pty/deps/winpty/misc/build32.sh +0 -9
  692. package/node_modules/node-pty/deps/winpty/misc/build64.sh +0 -9
  693. package/node_modules/node-pty/deps/winpty/misc/color-test.sh +0 -212
  694. package/node_modules/node-pty/deps/winpty/ship/build-pty4j-libpty.bat +0 -36
  695. package/node_modules/node-pty/deps/winpty/src/shared/GetCommitHash.bat +0 -13
  696. package/node_modules/node-pty/deps/winpty/src/shared/UpdateGenVersion.bat +0 -20
  697. package/node_modules/node-pty/deps/winpty/vcbuild.bat +0 -83
  698. package/node_modules/node-pty/lib/eventEmitter2.test.js +0 -30
  699. package/node_modules/node-pty/lib/terminal.test.js +0 -139
  700. package/node_modules/node-pty/lib/testUtils.test.js +0 -28
  701. package/node_modules/node-pty/lib/unixTerminal.test.js +0 -351
  702. package/node_modules/node-pty/lib/windowsPtyAgent.test.js +0 -90
  703. package/node_modules/node-pty/lib/windowsTerminal.test.js +0 -219
  704. package/node_modules/node-pty/prebuilds/win32-x64/pty.node +0 -0
  705. package/node_modules/node-pty/prebuilds/win32-x64/winpty-agent.exe +0 -0
  706. package/node_modules/node-pty/prebuilds/win32-x64/winpty.dll +0 -0
  707. package/node_modules/node-pty/scripts/gen-compile-commands.js +0 -8
  708. package/node_modules/node-pty/scripts/increment-version.js +0 -54
  709. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-arm64/OpenConsole.exe +0 -0
  710. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/OpenConsole.exe +0 -0
  711. package/node_modules/node-pty/third_party/conpty/1.23.251008001/win10-x64/conpty.dll +0 -0
  712. package/node_modules/typebox/build/type/action/_add_immutable.mjs +0 -1
  713. package/node_modules/typebox/build/type/action/_add_optional.mjs +0 -1
  714. package/node_modules/typebox/build/type/action/_add_readonly.mjs +0 -1
  715. package/node_modules/typebox/build/type/action/_remove_immutable.mjs +0 -1
  716. package/node_modules/typebox/build/type/action/_remove_optional.mjs +0 -1
  717. package/node_modules/typebox/build/type/action/_remove_readonly.mjs +0 -1
  718. package/node_modules/typebox/build/type/action/with.mjs +0 -1
  719. package/node_modules/typebox/build/type/engine/immutable/instantiate_add.mjs +0 -1
  720. package/node_modules/typebox/build/type/engine/immutable/instantiate_remove.mjs +0 -1
  721. package/node_modules/typebox/build/type/engine/indexable/from_dependent.mjs +0 -1
  722. package/node_modules/typebox/build/type/engine/object/from_dependent.mjs +0 -1
  723. package/node_modules/typebox/build/type/engine/optional/instantiate_add.mjs +0 -1
  724. package/node_modules/typebox/build/type/engine/optional/instantiate_remove.mjs +0 -1
  725. package/node_modules/typebox/build/type/engine/partial/from_dependent.mjs +0 -1
  726. package/node_modules/typebox/build/type/engine/priority/index.mjs +0 -1
  727. package/node_modules/typebox/build/type/engine/priority/priority.mjs +0 -1
  728. package/node_modules/typebox/build/type/engine/readonly/instantiate_add.mjs +0 -1
  729. package/node_modules/typebox/build/type/engine/readonly/instantiate_remove.mjs +0 -1
  730. package/node_modules/typebox/build/type/engine/readonly_object/from_dependent.mjs +0 -1
  731. package/node_modules/typebox/build/type/engine/required/from_dependent.mjs +0 -1
  732. package/node_modules/typebox/build/type/engine/with/instantiate.mjs +0 -1
  733. package/node_modules/typebox/build/type/extends/dependent.mjs +0 -1
  734. package/node_modules/typebox/build/type/extends/record.mjs +0 -1
  735. package/node_modules/typebox/build/type/types/dependent.mjs +0 -1
  736. /package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-D2_FQYSK.js → types-DE3U0cmQ.js} +0 -0
  737. /package/node_modules/typebox/build/type/engine/{with → awaited}/index.mjs +0 -0
@@ -1,20 +1,20 @@
1
- var I=Object.defineProperty;var s=(e,t)=>I(e,"name",{value:t,configurable:!0});import c from"@deepseek-ai/schemastery";import{defineTool as h}from"@deepseek-ai/dsh-tools";import{FsError as p}from"@deepseek-ai/dsh-fs";import{ESCALATION_TARGETS as S,approveEscalation as j,canonicalPath as A,escalationHintMarker as B,sandboxDenialMarker as R,validateEscalationArgs as F}from"@deepseek-ai/dsh-sandbox";import{structuredPatch as N}from"diff";import{basename as q,extname as w}from"node:path";import{AttachmentError as O,AttachmentId as k}from"@deepseek-ai/dsh-attachment";import{createUserMessage as C}from"@deepseek-ai/dsh-llm";const D=2e3,U=51200;function G(){return{lines:[],totalLines:0,outputBytes:0,truncatedByBytes:!1}}s(G,"newAccumulator");function W(e,t){return e.length>t?`${e.substring(0,t)}... (line truncated to ${t} chars)`:e}s(W,"truncateLine");function z(e,t){return Buffer.byteLength(e,"utf8")+(t>0?1:0)}s(z,"lineByteSize");function H(e,t,i){if(e.totalLines+=1,e.truncatedByBytes||e.totalLines<i.offset||e.lines.length>=i.limit)return;const n=W(t,i.maxLineLength),r=z(n,e.lines.length);if(e.outputBytes+r>i.maxBytes){e.truncatedByBytes=!0;return}e.outputBytes+=r,e.lines.push({number:e.totalLines,text:n})}s(H,"consumeLine");function X(e){return e.endsWith("\r")?e.slice(0,-1):e}s(X,"stripCarriageReturn");function J(e,t,i){if(!e.truncatedByBytes&&t.offset>e.totalLines&&!(e.totalLines===0&&t.offset===1))throw new p(`offset ${t.offset} is out of range for "${i}" (${e.totalLines} lines)`,"FS_NOT_FOUND");return{lines:e.lines,totalLines:e.totalLines,truncatedByBytes:e.truncatedByBytes}}s(J,"finish");async function V(e,t,i){const n=G(),r=t.maxLineLength+1;let o="";function a(f){o.length>=r||(o+=f,o.length>r&&(o=o.slice(0,r)))}s(a,"appendToLineBuffer");function l(){H(n,X(o),t),o=""}s(l,"flushLine");for await(const f of e){let d=0,u;for(;(u=f.indexOf(`
2
- `,d))!==-1;)a(f.slice(d,u)),l(),d=u+1;a(f.slice(d))}return o.length>0&&l(),J(n,t,i)}s(V,"buildWindow");function Y(e,t){const i=t.lines.at(-1)?.number??Math.max(0,t.offset-1);let n;return t.truncatedByBytes?n=`(Output capped. Showing lines ${t.offset}-${i}. Use offset=${i+1} to continue.)`:i<t.totalLines?n=`(Showing lines ${t.offset}-${i} of ${t.totalLines}. Use offset=${i+1} to continue.)`:n=`(End of file - total ${t.totalLines} lines)`,`<path>${e}</path>
1
+ var P=Object.defineProperty;var s=(e,t)=>P(e,"name",{value:t,configurable:!0});import u from"@deepseek-ai/schemastery";import{defineTool as h}from"@deepseek-ai/dsh-tools";import{FsError as c}from"@deepseek-ai/dsh-fs";import{ESCALATION_TARGETS as M,approveEscalation as I,canonicalPath as S,escalationHintMarker as j,sandboxDenialMarker as A,validateEscalationArgs as B}from"@deepseek-ai/dsh-sandbox";import{structuredPatch as R}from"diff";import{basename as F,extname as g}from"node:path";import{AttachmentError as N,AttachmentId as q}from"@deepseek-ai/dsh-attachment";const O=2e3,k=51200;function C(){return{lines:[],totalLines:0,outputBytes:0,truncatedByBytes:!1}}s(C,"newAccumulator");function D(e,t){return e.length>t?`${e.substring(0,t)}... (line truncated to ${t} chars)`:e}s(D,"truncateLine");function G(e,t){return Buffer.byteLength(e,"utf8")+(t>0?1:0)}s(G,"lineByteSize");function U(e,t,n){if(e.totalLines+=1,e.truncatedByBytes||e.totalLines<n.offset||e.lines.length>=n.limit)return;const i=D(t,n.maxLineLength),r=G(i,e.lines.length);if(e.outputBytes+r>n.maxBytes){e.truncatedByBytes=!0;return}e.outputBytes+=r,e.lines.push({number:e.totalLines,text:i})}s(U,"consumeLine");function W(e){return e.endsWith("\r")?e.slice(0,-1):e}s(W,"stripCarriageReturn");function z(e,t,n){if(!e.truncatedByBytes&&t.offset>e.totalLines&&!(e.totalLines===0&&t.offset===1))throw new c(`offset ${t.offset} is out of range for "${n}" (${e.totalLines} lines)`,"FS_NOT_FOUND");return{lines:e.lines,totalLines:e.totalLines,truncatedByBytes:e.truncatedByBytes}}s(z,"finish");async function H(e,t,n){const i=C(),r=t.maxLineLength+1;let o="";function a(f){o.length>=r||(o+=f,o.length>r&&(o=o.slice(0,r)))}s(a,"appendToLineBuffer");function l(){U(i,W(o),t),o=""}s(l,"flushLine");for await(const f of e){let d=0,p;for(;(p=f.indexOf(`
2
+ `,d))!==-1;)a(f.slice(d,p)),l(),d=p+1;a(f.slice(d))}return o.length>0&&l(),z(i,t,n)}s(H,"buildWindow");function X(e,t){const n=t.lines.at(-1)?.number??Math.max(0,t.offset-1);let i;return t.truncatedByBytes?i=`(Output capped. Showing lines ${t.offset}-${n}. Use offset=${n+1} to continue.)`:n<t.totalLines?i=`(Showing lines ${t.offset}-${n} of ${t.totalLines}. Use offset=${n+1} to continue.)`:i=`(End of file - total ${t.totalLines} lines)`,`<path>${e}</path>
3
3
  <type>file</type>
4
4
  <content>
5
5
  ${t.lines.length>0?`${t.lines.map(r=>`${r.number}: ${r.text}`).join(`
6
6
  `)}
7
7
 
8
- ${n}`:n}
9
- </content>`}s(Y,"formatReadOutput");const b={ts:"ts",tsx:"tsx",mts:"ts",cts:"ts",js:"js",jsx:"jsx",mjs:"js",cjs:"js",json:"json",jsonc:"json",py:"py",rb:"rb",go:"go",rs:"rs",java:"java",c:"c",h:"c",cc:"cpp",cpp:"cpp",hpp:"cpp",cxx:"cpp",cs:"cs",kt:"kotlin",swift:"swift",php:"php",sh:"sh",bash:"sh",zsh:"sh",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",md:"md",markdown:"md",mdx:"mdx",html:"html",htm:"html",css:"css",scss:"scss",less:"less",sql:"sql",xml:"xml",lua:"lua"};function Z(e){const t=e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1),i=t.lastIndexOf(".");if(i<=0)return;const n=t.slice(i+1).toLowerCase();return Object.hasOwn(b,n)?b[n]:void 0}s(Z,"langFromPath");function K(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const{number:t,text:i}=e;return typeof t=="number"&&Number.isInteger(t)&&t>=1&&typeof i=="string"}s(K,"isFileTextLine");function Q(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const{path:t,offset:i,lines:n,totalLines:r,lang:o}=e;if(typeof t!="string"||typeof r!="number"||typeof i!="number"||!Number.isInteger(i)||i<1||!Number.isInteger(r)||r<0||!Array.isArray(n)||!n.every(K)||o!==void 0&&typeof o!="string")return;let a=i-1;for(const{number:l}of n){if(l<=a||l>r)return;a=l}return{path:t,offset:i,lines:n,totalLines:r,...o===void 0?{}:{lang:o}}}s(Q,"readMetaFromMeta");const _=/(?:^|[\\/])\.\.(?:[\\/]|$)/;function ee(e,t){const i=e.agent?.session.header.cwd;return i===void 0||!_.test(i)&&!_.test(t)?i:A(i)}s(ee,"sessionCwd");function g(e,t,i){const n=i??ee(e,t);return{...n!==void 0?{cwd:n}:{},signal:e.signal}}s(g,"sessionResolveOptions");async function v(e,t,i){const n=await e.fs.resolve(i,g(t,i)),r=await e.fs.stat(n,t.signal);if(r===void 0)throw e.emit("fs/observed",n,{kind:"absent"},t),new p(`cannot read "${n.displayPath}": not found`,"FS_NOT_FOUND");if(r.type!=="file")throw new p(`cannot read "${n.displayPath}": not a regular file`,"FS_NOT_REGULAR_FILE");return{target:n,info:r}}s(v,"resolveRegularReadTarget");const te=2e3,ie=10485760;function E(e,t){if(!Number.isFinite(e)||!Number.isInteger(e)||e<1)throw new Error(`${t} must be a positive integer`);return e}s(E,"parsePositiveInteger");function L(e,t){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");const i=e.offset===void 0?1:E(e.offset,"offset"),n=e.limit===void 0?t:E(e.limit,"limit");if(n>t)throw new Error(`limit must be less than or equal to ${t}`);return{filePath:e.file_path,offset:i,limit:n}}s(L,"parseReadArgs");function ne(e,t){e.systemPrompt.section({name:"tool:read",order:100,text:"Use the read tool — not shell commands like cat — to inspect text files. Results include line numbers. Use offset and limit to continue reading large files."}),e.tools.register(h({name:"read",description:"Read a UTF-8 text file and return line-numbered content.",parameters:{file_path:{type:"string",required:!0,description:"Path to read, resolved by the filesystem backend."},offset:{type:"number",description:"1-based first line to return. Defaults to 1."},limit:{type:"number",description:`Maximum number of lines to return. Defaults to ${t.limit}.`}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},offset:{type:"integer",required:!0},lines:{type:"array",required:!0,items:{type:"object",additionalProperties:!1,properties:{number:{type:"integer",required:!0},text:{type:"string",required:!0}}}},totalLines:{type:"integer",required:!0}}},render:s((i,n)=>{const r=L(i,t.limit),o=n.lines.at(-1)?.number??Math.max(0,n.offset-1),a=n.lines.length<r.limit&&o<n.totalLines;return[{type:"text",text:Y(n.path,{offset:n.offset,lines:n.lines,totalLines:n.totalLines,...a?{truncatedByBytes:!0}:{}})}]},"render"),presentationMeta:s((i,n)=>{const r=Z(n.path);return{path:n.path,offset:n.offset,lines:n.lines.map(({number:o,text:a})=>({number:o,text:a})),totalLines:n.totalLines,...r===void 0?{}:{lang:r}}},"presentationMeta")},isConcurrencySafe:s(()=>!0,"isConcurrencySafe"),async execute(i,n){const r=L(i,t.limit),{target:o,info:a}=await v(e,n,r.filePath),l=await V(a.size===void 0||a.size>=t.streamMinSize?await e.fs.streamText(o,n.signal):[await e.fs.readText(o,n.signal)],{offset:r.offset,limit:r.limit,maxLineLength:t.maxLineLength,maxBytes:t.maxBytes},o.displayPath),f={path:o.displayPath,offset:r.offset,lines:l.lines,totalLines:l.totalLines};return e.emit("fs/observed",o,{kind:"present",version:a.version},n),f},presentResult(i,n){if(n.isError)return;const r=Q(n.meta);if(r===void 0)return;const o=n.content.length===1?n.content[0]:void 0,a=o?.type==="text"?o.text:void 0;if(a===void 0)return;const l=/^<path>[^\n]*<\/path>\n<type>file<\/type>\n<content>\n([\s\S]*)\n<\/content>$/u.exec(a)?.[1];if(l!==void 0)return{card:"read",path:r.path,offset:r.offset,lines:r.lines,totalLines:r.totalLines,...r.lang===void 0?{}:{lang:r.lang},content:[{type:"text",text:l}]}},presentCall(i){const{offset:n,limit:r}=i,o=r!==void 0&&r>0?` (${n??1} - ${(n??1)+r-1})`:n!==void 0?` (from line ${n})`:"";return{card:"generic",title:`Read ${i.file_path}${o}`,kind:"read",locations:[{path:i.file_path,line:n??1}]}}}))}s(ne,"applyReadTool");function x(e,t,i){const n=N("","",t,i,void 0,void 0,{context:3}),r=[];for(const o of n.hunks){const a=[],l=[];for(const f of o.lines){if(f.startsWith("\\"))continue;const d=f.slice(1);f.startsWith("-")?a.push(d):(f.startsWith("+")||a.push(d),l.push(d))}r.push({path:e,oldText:a.length>0?a.join(`
8
+ ${i}`:i}
9
+ </content>`}s(X,"formatReadOutput");const w={ts:"ts",tsx:"tsx",mts:"ts",cts:"ts",js:"js",jsx:"jsx",mjs:"js",cjs:"js",json:"json",jsonc:"json",py:"py",rb:"rb",go:"go",rs:"rs",java:"java",c:"c",h:"c",cc:"cpp",cpp:"cpp",hpp:"cpp",cxx:"cpp",cs:"cs",kt:"kotlin",swift:"swift",php:"php",sh:"sh",bash:"sh",zsh:"sh",yaml:"yaml",yml:"yaml",toml:"toml",ini:"ini",md:"md",markdown:"md",mdx:"mdx",html:"html",htm:"html",css:"css",scss:"scss",less:"less",sql:"sql",xml:"xml",lua:"lua"};function J(e){const t=e.slice(Math.max(e.lastIndexOf("/"),e.lastIndexOf("\\"))+1),n=t.lastIndexOf(".");if(n<=0)return;const i=t.slice(n+1).toLowerCase();return Object.hasOwn(w,i)?w[i]:void 0}s(J,"langFromPath");function V(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const{number:t,text:n}=e;return typeof t=="number"&&Number.isInteger(t)&&t>=1&&typeof n=="string"}s(V,"isFileTextLine");function Y(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const{path:t,offset:n,lines:i,totalLines:r,lang:o}=e;if(typeof t!="string"||typeof r!="number"||typeof n!="number"||!Number.isInteger(n)||n<1||!Number.isInteger(r)||r<0||!Array.isArray(i)||!i.every(V)||o!==void 0&&typeof o!="string")return;let a=n-1;for(const{number:l}of i){if(l<=a||l>r)return;a=l}return{path:t,offset:n,lines:i,totalLines:r,...o===void 0?{}:{lang:o}}}s(Y,"readMetaFromMeta");const b=/(?:^|[\\/])\.\.(?:[\\/]|$)/;function Z(e,t){const n=e.agent?.session.header.cwd;return n===void 0||!b.test(n)&&!b.test(t)?n:S(n)}s(Z,"sessionCwd");function y(e,t,n){const i=n??Z(e,t);return{...i!==void 0?{cwd:i}:{},signal:e.signal}}s(y,"sessionResolveOptions");async function _(e,t,n){const i=await e.fs.resolve(n,y(t,n)),r=await e.fs.stat(i,t.signal);if(r===void 0)throw e.emit("fs/observed",i,{kind:"absent"},t),new c(`cannot read "${i.displayPath}": not found`,"FS_NOT_FOUND");if(r.type!=="file")throw new c(`cannot read "${i.displayPath}": not a regular file`,"FS_NOT_REGULAR_FILE");return{target:i,info:r}}s(_,"resolveRegularReadTarget");const K=2e3,Q=10485760;function v(e,t){if(!Number.isFinite(e)||!Number.isInteger(e)||e<1)throw new Error(`${t} must be a positive integer`);return e}s(v,"parsePositiveInteger");function E(e,t){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");const n=e.offset===void 0?1:v(e.offset,"offset"),i=e.limit===void 0?t:v(e.limit,"limit");if(i>t)throw new Error(`limit must be less than or equal to ${t}`);return{filePath:e.file_path,offset:n,limit:i}}s(E,"parseReadArgs");function ee(e,t){e.systemPrompt.section({name:"tool:read",order:100,text:"Use the read tool — not shell commands like cat — to inspect text files. Results include line numbers. Use offset and limit to continue reading large files."}),e.tools.register(h({name:"read",description:"Read a UTF-8 text file and return line-numbered content.",parameters:{file_path:{type:"string",required:!0,description:"Path to read, resolved by the filesystem backend."},offset:{type:"number",description:"1-based first line to return. Defaults to 1."},limit:{type:"number",description:`Maximum number of lines to return. Defaults to ${t.limit}.`}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},offset:{type:"integer",required:!0},lines:{type:"array",required:!0,items:{type:"object",additionalProperties:!1,properties:{number:{type:"integer",required:!0},text:{type:"string",required:!0}}}},totalLines:{type:"integer",required:!0}}},render:s((n,i)=>{const r=E(n,t.limit),o=i.lines.at(-1)?.number??Math.max(0,i.offset-1),a=i.lines.length<r.limit&&o<i.totalLines;return[{type:"text",text:X(i.path,{offset:i.offset,lines:i.lines,totalLines:i.totalLines,...a?{truncatedByBytes:!0}:{}})}]},"render"),presentationMeta:s((n,i)=>{const r=J(i.path);return{path:i.path,offset:i.offset,lines:i.lines.map(({number:o,text:a})=>({number:o,text:a})),totalLines:i.totalLines,...r===void 0?{}:{lang:r}}},"presentationMeta")},isConcurrencySafe:s(()=>!0,"isConcurrencySafe"),async execute(n,i){const r=E(n,t.limit),{target:o,info:a}=await _(e,i,r.filePath),l=await H(a.size===void 0||a.size>=t.streamMinSize?await e.fs.streamText(o,i.signal):[await e.fs.readText(o,i.signal)],{offset:r.offset,limit:r.limit,maxLineLength:t.maxLineLength,maxBytes:t.maxBytes},o.displayPath),f={path:o.displayPath,offset:r.offset,lines:l.lines,totalLines:l.totalLines};return e.emit("fs/observed",o,{kind:"present",version:a.version},i),f},presentResult(n,i){if(i.isError)return;const r=Y(i.meta);if(r===void 0)return;const o=i.content.length===1?i.content[0]:void 0,a=o?.type==="text"?o.text:void 0;if(a===void 0)return;const l=/^<path>[^\n]*<\/path>\n<type>file<\/type>\n<content>\n([\s\S]*)\n<\/content>$/u.exec(a)?.[1];if(l!==void 0)return{card:"read",path:r.path,offset:r.offset,lines:r.lines,totalLines:r.totalLines,...r.lang===void 0?{}:{lang:r.lang},content:[{type:"text",text:l}]}},presentCall(n){const{offset:i,limit:r}=n,o=r!==void 0&&r>0?` (${i??1} - ${(i??1)+r-1})`:i!==void 0?` (from line ${i})`:"";return{card:"generic",title:`Read ${n.file_path}${o}`,kind:"read",locations:[{path:n.file_path,line:i??1}]}}}))}s(ee,"applyReadTool");function L(e,t,n){const i=R("","",t,n,void 0,void 0,{context:3}),r=[];for(const o of i.hunks){const a=[],l=[];for(const f of o.lines){if(f.startsWith("\\"))continue;const d=f.slice(1);f.startsWith("-")?a.push(d):(f.startsWith("+")||a.push(d),l.push(d))}r.push({path:e,oldText:a.length>0?a.join(`
10
10
  `):null,newText:l.join(`
11
- `)})}return r}s(x,"computeHunkDiffs");function re(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const{path:t,oldText:i,newText:n}=e;return typeof t=="string"&&(i===null||typeof i=="string")&&typeof n=="string"}s(re,"isFileDiff");function $(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t=e.diffs;if(!(!Array.isArray(t)||t.length===0||!t.every(re)))return t}s($,"diffsFromMeta");const oe={FS_STALE_VERSION:"re-read the file, then retry",FS_NOT_OBSERVED:"read the file, then retry"};function T(e){if(!(e instanceof p))return e;const t=oe[e.code];return t?new p(`${e.message} — ${t}`,e.code,{cause:e}):e}s(T,"remediateFsError");function se(e){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");return{filePath:e.file_path,content:e.content}}s(se,"parseWriteArgs");function ae(e,t){return`<path>${e}</path>
11
+ `)})}return r}s(L,"computeHunkDiffs");function te(e){if(typeof e!="object"||e===null||Array.isArray(e))return!1;const{path:t,oldText:n,newText:i}=e;return typeof t=="string"&&(n===null||typeof n=="string")&&typeof i=="string"}s(te,"isFileDiff");function x(e){if(typeof e!="object"||e===null||Array.isArray(e))return;const t=e.diffs;if(!(!Array.isArray(t)||t.length===0||!t.every(te)))return t}s(x,"diffsFromMeta");const ie={FS_STALE_VERSION:"re-read the file, then retry",FS_NOT_OBSERVED:"read the file, then retry"};function $(e){if(!(e instanceof c))return e;const t=ie[e.code];return t?new c(`${e.message} — ${t}`,e.code,{cause:e}):e}s($,"remediateFsError");function ne(e){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");return{filePath:e.file_path,content:e.content}}s(ne,"parseWriteArgs");function re(e,t){return`<path>${e}</path>
12
12
  <type>file</type>
13
13
  <content>
14
14
  ${t.operation==="create"?"Created":"Updated"} file
15
- </content>`}s(ae,"formatWriteOutput");function le(e,t){e.systemPrompt.section({name:"tool:write",order:101,text:"Use the write tool to create files or completely replace file contents. Existing files are overwritten, so read an existing file first (the default fs-observation-policy requires it) and prefer edit for targeted changes."}),e.tools.register(h({name:"write",description:"Create or fully replace a UTF-8 text file.",parameters:{file_path:{type:"string",required:!0,description:"Path to write, resolved by the filesystem backend."},content:{type:"string",required:!0,description:"Full UTF-8 text content to write."},...t.escalationModes.length>0?t.schemaFields():{}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},operation:{type:"string",required:!0,enum:["create","update"]},before:{required:!0,oneOf:[{type:"string"},{type:"null"}]},after:{type:"string",required:!0}}},render:s((i,n)=>[{type:"text",text:ae(n.path,n)}],"render"),presentationMeta:s((i,n)=>({diffs:n.before===null?[]:x(i.file_path,n.before,n.after).map(({path:r,oldText:o,newText:a})=>({path:r,oldText:o,newText:a}))}),"presentationMeta")},async execute(i,n){const r=se(i),o=await t.resolvePolicy("write",i,n),a=await e.fs.resolve(r.filePath,g(n,r.filePath,o?.workspaceRoot)),l=await e.waterfall("fs/write-intent",a,n,()=>{});let f;try{f=await e.fs.writeText(a,r.content,l,n.signal,o)}catch(d){throw T(t.mapError(d,o))}return e.emit("fs/observed",a,{kind:"present",version:f.version},n),{path:a.displayPath,operation:f.operation,before:f.before,after:f.after}},presentCall(i){return{card:"diff",title:`Write ${i.file_path}`,diffs:[{path:i.file_path,oldText:null,newText:i.content}],locations:[{path:i.file_path}]}},presentResult(i,n){if(n.isError)return;const r=$(n.meta)??[{path:i.file_path,oldText:null,newText:i.content}];return{card:"diff",title:`Write ${i.file_path}`,diffs:r}}}))}s(le,"applyWriteTool");function fe(e){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");if(e.old_string.length===0)throw new Error("old_string must be a non-empty string");if(e.old_string===e.new_string)throw new Error("old_string and new_string must differ");return{filePath:e.file_path,oldString:e.old_string,newString:e.new_string,replaceAll:e.replace_all??!1}}s(fe,"parseEditArgs");function de(e,t){return t?`The file ${e} has been updated. All occurrences were successfully replaced.`:`The file ${e} has been updated successfully.`}s(de,"formatEditOutput");function pe(e,t){e.systemPrompt.section({name:"tool:edit",order:102,text:"Use the edit tool for targeted changes to existing UTF-8 text files. It replaces literal old_string with new_string; by default old_string must appear exactly once. If old_string appears multiple times, provide a more specific old_string or set replace_all to true. Read the file first (the default fs-observation-policy requires it), unless you just created or edited it in this session."}),e.tools.register(h({name:"edit",description:"Edit an existing UTF-8 text file by replacing literal text.",parameters:{file_path:{type:"string",required:!0,description:"Path to edit, resolved by the filesystem backend."},old_string:{type:"string",required:!0,description:"Literal text to replace. Must match exactly."},new_string:{type:"string",required:!0,description:"Literal replacement text. Use an empty string to delete the match."},replace_all:{type:"boolean",description:"Replace all matches. Defaults to false; when false, old_string must appear exactly once."},...t.escalationModes.length>0?t.schemaFields():{}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},before:{type:"string",required:!0},after:{type:"string",required:!0}}},render:s((i,n)=>[{type:"text",text:de(n.path,i.replace_all??!1)}],"render"),presentationMeta:s((i,n)=>({diffs:x(i.file_path,n.before,n.after).map(({path:r,oldText:o,newText:a})=>({path:r,oldText:o,newText:a}))}),"presentationMeta")},async execute(i,n){const r=fe(i),o=await t.resolvePolicy("edit",i,n),a=await e.fs.resolve(r.filePath,g(n,r.filePath,o?.workspaceRoot));let l;try{const f=await e.waterfall("fs/edit-intent",a,n,()=>{});l=await e.fs.editText(a,{oldString:r.oldString,newString:r.newString,replaceAll:r.replaceAll},f,n.signal,o)}catch(f){throw T(t.mapError(f,o))}return e.emit("fs/observed",a,{kind:"present",version:l.version},n),{path:a.displayPath,before:l.before,after:l.after}},presentCall(i){return{card:"diff",title:`Edit ${i.file_path}`,diffs:[{path:i.file_path,oldText:i.old_string||null,newText:i.new_string}],locations:[{path:i.file_path}]}},presentResult(i,n){if(n.isError)return;const r=$(n.meta);if(r!==void 0)return{card:"diff",title:`Edit ${i.file_path}`,diffs:r}}}))}s(pe,"applyEditTool");const ue={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif"};function ce(e){return ue[w(e).toLowerCase()]}s(ce,"imageMediaTypeForPath");async function me(e,t,i){const n=t.agent?.session.requestHeader()?.config,r=n?.provider??t.agent?.options.provider,o=n?.model??t.agent?.options.model,a=e.get("llm");if(r===void 0||o===void 0||a===void 0)throw new Error(`cannot read "${i}" as an image: the current model route could not be resolved`);const l=await a.resolveModelInfo(r,o,t.signal);if(l.inputModalities===void 0||!l.inputModalities.includes("image"))throw new Error(`cannot read "${i}" as an image: model "${o}" does not declare image input; switch to an image-capable model to read images`)}s(me,"assertImageCapableRoute");function he(e){return{attachmentId:k(e.attachmentId),mediaType:e.mediaType,bytes:e.bytes,width:e.width,height:e.height,...e.name===void 0?{}:{name:e.name}}}s(he,"imageRefFromValue");function ye(e,t){return`<path>${e}</path>
15
+ </content>`}s(re,"formatWriteOutput");function oe(e,t){e.systemPrompt.section({name:"tool:write",order:101,text:"Use the write tool to create files or completely replace file contents. Existing files are overwritten, so read an existing file first (the default fs-observation-policy requires it) and prefer edit for targeted changes."}),e.tools.register(h({name:"write",description:"Create or fully replace a UTF-8 text file.",parameters:{file_path:{type:"string",required:!0,description:"Path to write, resolved by the filesystem backend."},content:{type:"string",required:!0,description:"Full UTF-8 text content to write."},...t.escalationModes.length>0?t.schemaFields():{}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},operation:{type:"string",required:!0,enum:["create","update"]},before:{required:!0,oneOf:[{type:"string"},{type:"null"}]},after:{type:"string",required:!0}}},render:s((n,i)=>[{type:"text",text:re(i.path,i)}],"render"),presentationMeta:s((n,i)=>({diffs:i.before===null?[]:L(n.file_path,i.before,i.after).map(({path:r,oldText:o,newText:a})=>({path:r,oldText:o,newText:a}))}),"presentationMeta")},async execute(n,i){const r=ne(n),o=await t.resolvePolicy("write",n,i),a=await e.fs.resolve(r.filePath,y(i,r.filePath,o?.workspaceRoot)),l=await e.waterfall("fs/write-intent",a,i,()=>{});let f;try{f=await e.fs.writeText(a,r.content,l,i.signal,o)}catch(d){throw $(t.mapError(d,o))}return e.emit("fs/observed",a,{kind:"present",version:f.version},i),{path:a.displayPath,operation:f.operation,before:f.before,after:f.after}},presentCall(n){return{card:"diff",title:`Write ${n.file_path}`,diffs:[{path:n.file_path,oldText:null,newText:n.content}],locations:[{path:n.file_path}]}},presentResult(n,i){if(i.isError)return;const r=x(i.meta)??[{path:n.file_path,oldText:null,newText:n.content}];return{card:"diff",title:`Write ${n.file_path}`,diffs:r}}}))}s(oe,"applyWriteTool");function se(e){if(e.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");if(e.old_string.length===0)throw new Error("old_string must be a non-empty string");if(e.old_string===e.new_string)throw new Error("old_string and new_string must differ");return{filePath:e.file_path,oldString:e.old_string,newString:e.new_string,replaceAll:e.replace_all??!1}}s(se,"parseEditArgs");function ae(e,t){return t?`The file ${e} has been updated. All occurrences were successfully replaced.`:`The file ${e} has been updated successfully.`}s(ae,"formatEditOutput");function le(e,t){e.systemPrompt.section({name:"tool:edit",order:102,text:"Use the edit tool for targeted changes to existing UTF-8 text files. It replaces literal old_string with new_string; by default old_string must appear exactly once. If old_string appears multiple times, provide a more specific old_string or set replace_all to true. Read the file first (the default fs-observation-policy requires it), unless you just created or edited it in this session."}),e.tools.register(h({name:"edit",description:"Edit an existing UTF-8 text file by replacing literal text.",parameters:{file_path:{type:"string",required:!0,description:"Path to edit, resolved by the filesystem backend."},old_string:{type:"string",required:!0,description:"Literal text to replace. Must match exactly."},new_string:{type:"string",required:!0,description:"Literal replacement text. Use an empty string to delete the match."},replace_all:{type:"boolean",description:"Replace all matches. Defaults to false; when false, old_string must appear exactly once."},...t.escalationModes.length>0?t.schemaFields():{}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},before:{type:"string",required:!0},after:{type:"string",required:!0}}},render:s((n,i)=>[{type:"text",text:ae(i.path,n.replace_all??!1)}],"render"),presentationMeta:s((n,i)=>({diffs:L(n.file_path,i.before,i.after).map(({path:r,oldText:o,newText:a})=>({path:r,oldText:o,newText:a}))}),"presentationMeta")},async execute(n,i){const r=se(n),o=await t.resolvePolicy("edit",n,i),a=await e.fs.resolve(r.filePath,y(i,r.filePath,o?.workspaceRoot));let l;try{const f=await e.waterfall("fs/edit-intent",a,i,()=>{});l=await e.fs.editText(a,{oldString:r.oldString,newString:r.newString,replaceAll:r.replaceAll},f,i.signal,o)}catch(f){throw $(t.mapError(f,o))}return e.emit("fs/observed",a,{kind:"present",version:l.version},i),{path:a.displayPath,before:l.before,after:l.after}},presentCall(n){return{card:"diff",title:`Edit ${n.file_path}`,diffs:[{path:n.file_path,oldText:n.old_string||null,newText:n.new_string}],locations:[{path:n.file_path}]}},presentResult(n,i){if(i.isError)return;const r=x(i.meta);if(r!==void 0)return{card:"diff",title:`Edit ${n.file_path}`,diffs:r}}}))}s(le,"applyEditTool");const fe={".png":"image/png",".jpg":"image/jpeg",".jpeg":"image/jpeg",".webp":"image/webp",".gif":"image/gif"};function de(e){return fe[g(e).toLowerCase()]}s(de,"imageMediaTypeForPath");async function pe(e,t,n){const i=t.agent?.session.requestHeader()?.config,r=i?.provider??t.agent?.options.provider,o=i?.model??t.agent?.options.model,a=e.get("llm");if(r===void 0||o===void 0||a===void 0)throw new Error(`cannot read "${n}" as an image: the current model route could not be resolved`);const l=await a.resolveModelInfo(r,o,t.signal);if(l.inputModalities===void 0||!l.inputModalities.includes("image"))throw new Error(`cannot read "${n}" as an image: model "${o}" does not declare image input; switch to an image-capable model to read images`)}s(pe,"assertImageCapableRoute");function ce(e){return{attachmentId:q(e.attachmentId),mediaType:e.mediaType,bytes:e.bytes,width:e.width,height:e.height,...e.name===void 0?{}:{name:e.name}}}s(ce,"imageRefFromValue");function ue(e,t){return`<path>${e}</path>
16
16
  <type>image</type>
17
17
  <content>
18
18
  ${t.mediaType} image, ${t.width}x${t.height} px, ${t.bytes} bytes
19
- </content>`}s(ye,"formatImageReadOutput");function P(e){return[{type:"text",text:ye(e.path,e.image)},{type:"image",attachment:he(e.image)}]}s(P,"imageReadContent");function ge(e){e.tools.register(h({name:"read_image",description:"Read a PNG/JPEG/WebP/GIF file and return the image itself. Requires the current model to accept image input.",parameters:{file_path:{type:"string",required:!0,description:"Path to the image file, resolved by the filesystem backend."}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},image:{type:"object",additionalProperties:!1,required:!0,properties:{attachmentId:{type:"string",required:!0},mediaType:{type:"string",enum:["image/png","image/jpeg","image/webp","image/gif"],required:!0},bytes:{type:"integer",required:!0},width:{type:"integer",required:!0},height:{type:"integer",required:!0},name:{type:"string"}}}}},render:s((t,i)=>P(i),"render")},isConcurrencySafe:s(()=>!0,"isConcurrencySafe"),async execute(t,i){if(t.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");const n=ce(t.file_path);if(n===void 0)throw new Error(`cannot read "${t.file_path}": read_image only accepts PNG/JPEG/WebP/GIF paths`);const r=e.get("attachments");if(r===void 0)throw new Error(`cannot read "${t.file_path}" as an image: no attachment service is mounted`);if(!r.imageLimits.mediaTypes.includes(n))throw new Error(`cannot read "${t.file_path}": ${n} images are not accepted by this deployment`);await me(e,i,t.file_path);const{target:o,info:a}=await v(e,i,t.file_path),l=Math.min(r.imageLimits.maxImageBytes,r.imageLimits.maxMessageImageBytes),f=await e.fs.readBytes(o,i.signal,l);let d;try{d=await r.saveImage({data:f,mediaType:n,name:q(o.displayPath)})}catch(m){if(!(m instanceof O)||m.code!=="IMAGE_TYPE_MISMATCH")throw m;const M=w(o.displayPath).toLowerCase();throw new Error(`cannot read "${o.displayPath}": the ${M} extension declares ${n}, but the bytes use a different image format; rename the file to match its actual format if it is PNG/JPEG/WebP/GIF, or convert it to one of those formats`,{cause:m})}e.emit("fs/observed",o,{kind:"present",version:a.version},i);const u={path:o.displayPath,image:{attachmentId:d.attachmentId,mediaType:d.mediaType,bytes:d.bytes,width:d.width,height:d.height,...d.name===void 0?{}:{name:d.name}}};return i.parent!==void 0&&i.deferContext(C({content:P(u),source:{kind:"plugin",plugin:"tool-fs"}})),u},presentCall(t){return{card:"generic",title:`Read image ${t.file_path}`,kind:"read",locations:[{path:t.file_path}]}}}))}s(ge,"applyReadImageTool");var we=class{static{s(this,"FsSandboxController")}ctx;escalationModes;policy;constructor(e){this.ctx=e;const t=e.fs.sandboxMode;if(this.escalationModes=t===void 0?[]:S,this.policy=t===void 0?void 0:e.get("sandboxPolicy"),t!==void 0&&this.policy===void 0)throw new Error("tool-fs: the mounted filesystem confines but ctx.sandboxPolicy is missing")}schemaFields(){return{sandbox_permissions:{type:"string",enum:[...this.escalationModes],description:"The wider sandbox mode this file operation needs. Only valid as a one-shot retry of an operation the sandbox just denied; requires justification and user approval."},justification:{type:"string",description:"Required with sandbox_permissions: one sentence for the user explaining why this exact file operation needs the wider access."}}}async resolvePolicy(e,t,i){F(t.sandbox_permissions,t.justification);const n=this.policy?.resolve({...i.agent?{session:i.agent.session}:{}});if(t.sandbox_permissions===void 0||t.justification===void 0)return n;if(this.escalationModes.length===0)throw new Error("sandbox_permissions is not available in this composition (no sandboxing filesystem to escalate)");const r=n,o=await j({requestedMode:t.sandbox_permissions,justification:t.justification,effectiveMode:r.mode,subject:"operation"},{approver:this.ctx.get("approval"),agent:i.agent,callId:i.callId,toolName:e,signal:i.signal});return{...r,mode:o}}mapError(e,t){if(!(e instanceof p)||e.code!=="FS_SANDBOX_DENIED")return e;const i=t.mode;return new p(`${R(i)}
20
- ${B("operation")}`,"FS_SANDBOX_DENIED",{cause:e})}};const be="tool-fs",_e=["tools","fs","systemPrompt"],ve=c.object({readLimit:c.number().default(te),readMaxLineLength:c.number().default(D),readMaxBytes:c.number().default(U),readStreamMinSize:c.number().default(ie)});function y(e,t){if(!Number.isInteger(t)||t<1)throw new Error(`tool-fs: ${e} must be a positive integer`)}s(y,"assertPositiveInteger");function Ee(e,t){const i=t;y("readLimit",i.readLimit),y("readMaxLineLength",i.readMaxLineLength),y("readMaxBytes",i.readMaxBytes),y("readStreamMinSize",i.readStreamMinSize),ne(e,{limit:i.readLimit,maxLineLength:i.readMaxLineLength,maxBytes:i.readMaxBytes,streamMinSize:i.readStreamMinSize}),e.inject(["attachments"],r=>{ge(r)});const n=new we(e);le(e,n),pe(e,n)}s(Ee,"apply");export{ve as Config,Ee as apply,_e as inject,be as name};
19
+ </content>`}s(ue,"formatImageReadOutput");function he(e){return[{type:"text",text:ue(e.path,e.image)},{type:"image",attachment:ce(e.image)}]}s(he,"imageReadContent");function me(e){e.tools.register(h({name:"read_image",description:"Read a PNG/JPEG/WebP/GIF file and return the image itself. Requires the current model to accept image input.",parameters:{file_path:{type:"string",required:!0,description:"Path to the image file, resolved by the filesystem backend."}},output:{schema:{type:"object",additionalProperties:!1,properties:{path:{type:"string",required:!0},image:{type:"object",additionalProperties:!1,required:!0,properties:{attachmentId:{type:"string",required:!0},mediaType:{type:"string",enum:["image/png","image/jpeg","image/webp","image/gif"],required:!0},bytes:{type:"integer",required:!0},width:{type:"integer",required:!0},height:{type:"integer",required:!0},name:{type:"string"}}}}},render:s((t,n)=>he(n),"render")},isConcurrencySafe:s(()=>!0,"isConcurrencySafe"),async execute(t,n){if(t.file_path.trim().length===0)throw new Error("file_path must be a non-empty string");const i=de(t.file_path);if(i===void 0)throw new Error(`cannot read "${t.file_path}": read_image only accepts PNG/JPEG/WebP/GIF paths`);const r=e.get("attachments");if(r===void 0)throw new Error(`cannot read "${t.file_path}" as an image: no attachment service is mounted`);if(!r.imageLimits.mediaTypes.includes(i))throw new Error(`cannot read "${t.file_path}": ${i} images are not accepted by this deployment`);await pe(e,n,t.file_path);const{target:o,info:a}=await _(e,n,t.file_path),l=Math.min(r.imageLimits.maxImageBytes,r.imageLimits.maxMessageImageBytes),f=await e.fs.readBytes(o,n.signal,l);let d;try{d=await r.saveImage({data:f,mediaType:i,name:F(o.displayPath)})}catch(p){if(!(p instanceof N)||p.code!=="IMAGE_TYPE_MISMATCH")throw p;const T=g(o.displayPath).toLowerCase();throw new Error(`cannot read "${o.displayPath}": the ${T} extension declares ${i}, but the bytes use a different image format; rename the file to match its actual format if it is PNG/JPEG/WebP/GIF, or convert it to one of those formats`,{cause:p})}return e.emit("fs/observed",o,{kind:"present",version:a.version},n),{path:o.displayPath,image:{attachmentId:d.attachmentId,mediaType:d.mediaType,bytes:d.bytes,width:d.width,height:d.height,...d.name===void 0?{}:{name:d.name}}}},presentCall(t){return{card:"generic",title:`Read image ${t.file_path}`,kind:"read",locations:[{path:t.file_path}]}}}))}s(me,"applyReadImageTool");var ye=class{static{s(this,"FsSandboxController")}ctx;escalationModes;policy;constructor(e){this.ctx=e;const t=e.fs.sandboxMode;if(this.escalationModes=t===void 0?[]:M,this.policy=t===void 0?void 0:e.get("sandboxPolicy"),t!==void 0&&this.policy===void 0)throw new Error("tool-fs: the mounted filesystem confines but ctx.sandboxPolicy is missing")}schemaFields(){return{sandbox_permissions:{type:"string",enum:[...this.escalationModes],description:"The wider sandbox mode this file operation needs. Only valid as a one-shot retry of an operation the sandbox just denied; requires justification and user approval."},justification:{type:"string",description:"Required with sandbox_permissions: one sentence for the user explaining why this exact file operation needs the wider access."}}}async resolvePolicy(e,t,n){B(t.sandbox_permissions,t.justification);const i=this.policy?.resolve({...n.agent?{session:n.agent.session}:{}});if(t.sandbox_permissions===void 0||t.justification===void 0)return i;if(this.escalationModes.length===0)throw new Error("sandbox_permissions is not available in this composition (no sandboxing filesystem to escalate)");const r=i,o=await I({requestedMode:t.sandbox_permissions,justification:t.justification,effectiveMode:r.mode,subject:"operation"},{approver:this.ctx.get("approval"),agent:n.agent,callId:n.callId,toolName:e,signal:n.signal});return{...r,mode:o}}mapError(e,t){if(!(e instanceof c)||e.code!=="FS_SANDBOX_DENIED")return e;const n=t.mode;return new c(`${A(n)}
20
+ ${j("operation")}`,"FS_SANDBOX_DENIED",{cause:e})}};const ge="tool-fs",we=["tools","fs","systemPrompt"],be=u.object({readLimit:u.number().default(K),readMaxLineLength:u.number().default(O),readMaxBytes:u.number().default(k),readStreamMinSize:u.number().default(Q)});function m(e,t){if(!Number.isInteger(t)||t<1)throw new Error(`tool-fs: ${e} must be a positive integer`)}s(m,"assertPositiveInteger");function _e(e,t){const n=t;m("readLimit",n.readLimit),m("readMaxLineLength",n.readMaxLineLength),m("readMaxBytes",n.readMaxBytes),m("readStreamMinSize",n.readStreamMinSize),ee(e,{limit:n.readLimit,maxLineLength:n.readMaxLineLength,maxBytes:n.readMaxBytes,streamMinSize:n.readStreamMinSize}),e.inject(["attachments"],r=>{me(r)});const i=new ye(e);oe(e,i),le(e,i)}s(_e,"apply");export{be as Config,_e as apply,we as inject,ge as name};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-fs","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"diff":"^9.0.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-attachment":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-sandbox":"^0.0.15","@deepseek-ai/dsh-fs":"^0.0.15","@deepseek-ai/dsh-sandbox-policy":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-user-approval":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-fs","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"diff":"^9.0.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-attachment":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-fs":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-user-approval":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-fs-search","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@vscode/ripgrep":"^1.18.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-output-retention":"^0.0.15","@deepseek-ai/dsh-spill":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-timeout":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-subprocess":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-tool-fs-search","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@vscode/ripgrep":"^1.18.0","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-output-retention":"^0.1.0-rc.7","@deepseek-ai/dsh-subprocess":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-timeout":"^0.1.0-rc.7","@deepseek-ai/dsh-spill":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-goal","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-goal":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-goal","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-goal":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-jobs","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-output-retention":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-jobs":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-tool-jobs","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-output-retention":"^0.1.0-rc.7","@deepseek-ai/dsh-jobs":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-pwsh","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-shell":"^0.0.15","@deepseek-ai/dsh-shell-env":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-sandbox":"^0.0.15","@deepseek-ai/dsh-sandbox-policy":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-user-approval":"^0.0.15","@deepseek-ai/dsh-jobs":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-pwsh","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-shell":"^0.1.0-rc.7","@deepseek-ai/dsh-shell-env":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/dsh-jobs":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-user-approval":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-ralph","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-workflow":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-ralph","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-workflow":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-skill","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-skill":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-skill","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-skill":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-str-replace-editor","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-fs":"^0.0.15","@deepseek-ai/dsh-sandbox-policy":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-sandbox":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-str-replace-editor","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-fs":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox":"^0.1.0-rc.7","@deepseek-ai/dsh-sandbox-policy":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1,3 +1,3 @@
1
- var w=Object.defineProperty;var o=(t,e)=>w(t,"name",{value:e,configurable:!0});import n from"@deepseek-ai/schemastery";import{defineTool as v}from"@deepseek-ai/dsh-tools";import{assertSubagentMaxDepth as j,settleRun as x}from"@deepseek-ai/dsh-subagent";const _="tool-subagent",E=["tools","subagents","systemPrompt"],I=116.5,D=n.object({provider:n.string().required(),toolName:n.string().default("subagent"),enableRunInBackground:n.boolean().default(!0),backgroundMode:n.union(["one-shot","continuable"]).default("one-shot"),agentOptions:n.object({provider:n.string(),model:n.string(),maxTokens:n.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER)}).default(void 0),persona:n.string(),toolFilter:n.object({allow:n.array(n.string()).default(void 0),deny:n.array(n.string()).default(void 0)}).default(void 0),maxDepth:n.union([n.natural().max(Number.MAX_SAFE_INTEGER),n.const("provider-managed")]).default(3)});function S(t){return t.filter(e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.type==="text"&&typeof e.text=="string").map(e=>e.text).join("")}o(S,"outputValueText");async function T(t,e){try{return await x(await t)}catch(r){return e.aborted?{status:"killed"}:{status:"failed",detail:String(r)}}}o(T,"settleStart");function R(t){switch(t.stopReason){case"completed":return;case"aborted":return"subagent run was cancelled";case"error":return"subagent run failed";case"max-tokens":return"subagent run hit its token limit before finishing";case"refusal":return"subagent declined the task";default:return`subagent run ended abnormally (${String(t.stopReason)})`}}o(R,"stopReasonError");function $(t,e){const r=e.filter(a=>a.type==="text").map(a=>a.text).join("");return r.length===0?t:`${t}
1
+ var w=Object.defineProperty;var o=(t,e)=>w(t,"name",{value:e,configurable:!0});import n from"@deepseek-ai/schemastery";import{defineTool as v}from"@deepseek-ai/dsh-tools";import{assertSubagentMaxDepth as j,settleRun as x}from"@deepseek-ai/dsh-subagent";const _="tool-subagent",E=["tools","subagents","systemPrompt"],I=116.5,D=n.object({provider:n.string().required(),toolName:n.string().default("subagent"),enableRunInBackground:n.boolean().default(!0),backgroundMode:n.union(["one-shot","continuable"]).default("one-shot"),agentOptions:n.object({provider:n.string(),model:n.string(),maxTokens:n.number().step(1).min(1).max(Number.MAX_SAFE_INTEGER)}).default(void 0),persona:n.string(),toolFilter:n.object({allow:n.array(n.string()).default(void 0),deny:n.array(n.string()).default(void 0)}).default(void 0),maxDepth:n.union([n.natural().max(Number.MAX_SAFE_INTEGER),n.const("provider-managed")]).default(3)});function S(t){return t.filter(e=>typeof e=="object"&&e!==null&&!Array.isArray(e)&&e.type==="text"&&typeof e.text=="string").map(e=>e.text).join("")}o(S,"outputValueText");async function T(t,e){try{return await x(await t)}catch(r){return e.aborted&&!(r instanceof AggregateError)?{status:"killed"}:{status:"failed",detail:String(r)}}}o(T,"settleStart");function R(t){switch(t.stopReason){case"completed":return;case"aborted":return"subagent run was cancelled";case"error":return"subagent run failed";case"max-tokens":return"subagent run hit its token limit before finishing";case"refusal":return"subagent declined the task";default:return`subagent run ended abnormally (${String(t.stopReason)})`}}o(R,"stopReasonError");function $(t,e){const r=e.filter(a=>a.type==="text").map(a=>a.text).join("");return r.length===0?t:`${t}
2
2
  Partial output before the run ended:
3
- ${r}`}o($,"withPartialText");async function P(t){const[e]=await Promise.allSettled([t.result.then(a=>{const u=R(a);if(u!==void 0)throw new Error($(u,a.output));return{kind:"foreground",runId:t.id,output:a.output}})]),[r]=await Promise.allSettled([Promise.resolve().then(()=>t.dispose())]);if(e.status==="rejected")throw r.status==="rejected"?new AggregateError([e.reason,r.reason],`subagent run failed: ${String(e.reason)}; dispose failed: ${String(r.reason)}`):e.reason;if(r.status==="rejected")throw r.reason;return e.value}o(P,"settleForegroundRun");function q(t){return t?{description:"Delegate a task to a subagent that inherits this conversation: a child agent seeded with all completed turns so far (it does not see the current in-flight turn). Use this when the subtask builds on this conversation's context — a follow-up analysis, a review, a continuation — without consuming this conversation's context for the work itself. You receive its result, not its intermediate steps.",promptDescription:"The task for the subagent. It already sees this conversation's completed turns, so build on them freely and state only what is new."}:{description:"Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps. Give it a complete, standalone prompt: it does not see this conversation.",promptDescription:"The complete, self-contained task for the subagent. It does not share this conversation's context, so include everything it needs."}}o(q,"providerWording");function F(t,e){if(!e.backgroundEnabled){if(t.run_in_background===!0)throw new Error("run_in_background is disabled for this tool instance (enableRunInBackground: false)");return{runInBackground:!1}}return{runInBackground:t.run_in_background??e.continuable}}o(F,"resolveDelegationRun");function A(t,e){if(e.maxDepth!=="provider-managed"&&j(e.maxDepth),e.toolFilter!==void 0&&e.toolFilter.allow===void 0&&e.toolFilter.deny===void 0)throw new Error("tool-subagent: `toolFilter` is configured but names neither `allow` nor `deny` — remove the key or fill the filter");const r=e.enableRunInBackground!==!1,a=(e.backgroundMode??"one-shot")==="continuable",u=e.toolName??"subagent";let d;const g=o(s=>{if(typeof e.maxDepth=="number"&&!s.capabilities.depthLimit)throw new Error(`tool-subagent: provider "${s.name}" cannot enforce maxDepth (no depthLimit capability) — set maxDepth: 'provider-managed' to leave the recursion budget to the provider`);const m=q(s.inheritsParentContext);if(a&&s.prepareContinuable===void 0)throw new Error(`tool-subagent: provider "${s.name}" does not support \`backgroundMode: continuable\``);d=t.tools.register(v({name:u,description:m.description+(r?a?" This tool runs in the background by default, immediately returns a durable subagent id, and keeps the child conversation available for later turns. When that run settles, the runtime sends the parent a notice containing its outcome and any final assistant message; `send_message` starts a later turn in the same child conversation. Set `run_in_background: false` only when your next action depends on receiving the result.":" This call waits for the result by default. Set `run_in_background: true` to return a job id; collect with `job_output` and stop with `job_kill`.":" This call waits for the subagent and returns its result."),parameters:{description:{type:"string",required:!0,description:"A short (3-5 word) description of the delegated task, for display."},prompt:{type:"string",required:!0,description:m.promptDescription},...r?{run_in_background:{type:"boolean",description:a?"Whether to run in the background and return a durable subagent id immediately. Defaults to true. Set false to wait for the result when your next action depends on it.":"Whether to run as a background job and return its id. Defaults to false; collect with job_output or stop with job_kill."}}:{}},output:{schema:{oneOf:[{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"background"},jobId:{type:"string",required:!0}}},{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"continuable"},subagentId:{type:"string",required:!0}}},{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"foreground"},runId:{type:"string",required:!0},output:{type:"array",required:!0,items:{type:"json"}}}}]},render:o((l,i)=>[{type:"text",text:i.kind==="background"?`started background subagent task ${i.jobId}`:i.kind==="continuable"?`started subagent ${i.subagentId}`:S(i.output)}],"render")},isConcurrencySafe:o(()=>!0,"isConcurrencySafe"),async execute(l,i){const p=i.agent;if(!p)throw new Error("subagent tool requires a calling agent (exec.agent was undefined)");const f=typeof e.maxDepth=="number"?e.maxDepth:void 0,c={label:l.description,prompt:[{type:"text",text:l.prompt}],parent:p,...e.agentOptions!==void 0?{agentOptions:e.agentOptions}:{},...e.persona!==void 0?{persona:e.persona}:{},...e.toolFilter!==void 0?{toolFilter:e.toolFilter}:{},...f!==void 0?{maxDepth:f}:{}};if(F(l,{backgroundEnabled:r,continuable:a}).runInBackground){if(a)return{kind:"continuable",subagentId:(await t.subagents.startContinuable({provider:e.provider,label:l.description,request:c,signal:i.signal})).childId};const y=t.get("jobs");if(y===void 0)throw new Error("background jobs unavailable: load @deepseek-ai/dsh-jobs and @deepseek-ai/dsh-tool-jobs");return{kind:"background",jobId:y.start({kind:"subagent",label:l.description,owner:p,run:o(()=>{const b=new AbortController;return{cancel:o(k=>{b.abort(k??"background subagent task killed")},"cancel"),done:T(t.subagents.start(e.provider,{...c,signal:b.signal}),b.signal)}},"run")})}}return P(await t.subagents.start(e.provider,{...c,signal:i.signal}))}}))},"mount");t.on("subagent/provider-added",s=>{s.name===e.provider&&d===void 0&&g(s)}),t.on("subagent/provider-removed",s=>{s!==e.provider||d===void 0||(d(),d=void 0)});const h=t.subagents.getProvider(e.provider);h!==void 0?g(h):t.logger.info(`subagent provider "${e.provider}" not registered yet; the "${e.toolName??"subagent"}" tool will register when it appears`),r&&a&&t.systemPrompt.section({name:`tool:${u}`,order:I,text:o(s=>d===void 0||t.tools.get(u,s.scope)===void 0?"":`Use ${u} in the background by default. Start independent delegations together in one assistant message and continue useful work while they run. Set \`run_in_background: false\` only when your next action depends on that subagent's result. When a background run settles, the runtime sends you a notice containing its outcome and any final assistant message.`,"text")})}o(A,"apply");export{D as Config,A as apply,E as inject,_ as name};
3
+ ${r}`}o($,"withPartialText");async function P(t){const[e]=await Promise.allSettled([t.result.then(a=>{const u=R(a);if(u!==void 0)throw new Error($(u,a.output));return{kind:"foreground",runId:t.id,output:a.output}})]),[r]=await Promise.allSettled([Promise.resolve().then(()=>t.dispose())]);if(e.status==="rejected")throw r.status==="rejected"?new AggregateError([e.reason,r.reason],`subagent run failed: ${String(e.reason)}; dispose failed: ${String(r.reason)}`):e.reason;if(r.status==="rejected")throw r.reason;return e.value}o(P,"settleForegroundRun");function q(t){return t?{description:"Delegate a task to a subagent that inherits this conversation: a child agent seeded with all completed turns so far (it does not see the current in-flight turn). Use this when the subtask builds on this conversation's context — a follow-up analysis, a review, a continuation — without consuming this conversation's context for the work itself. You receive its result, not its intermediate steps.",promptDescription:"The task for the subagent. It already sees this conversation's completed turns, so build on them freely and state only what is new."}:{description:"Delegate a self-contained task to a subagent (a separate agent that works in its own context) to offload focused, independent work — research, a scoped implementation, an analysis — so it does not consume this conversation's context. The subagent returns its result, not its intermediate steps. Give it a complete, standalone prompt: it does not see this conversation.",promptDescription:"The complete, self-contained task for the subagent. It does not share this conversation's context, so include everything it needs."}}o(q,"providerWording");function A(t,e){if(!e.backgroundEnabled){if(t.run_in_background===!0)throw new Error("run_in_background is disabled for this tool instance (enableRunInBackground: false)");return{runInBackground:!1}}return{runInBackground:t.run_in_background??e.continuable}}o(A,"resolveDelegationRun");function F(t,e){if(e.maxDepth!=="provider-managed"&&j(e.maxDepth),e.toolFilter!==void 0&&e.toolFilter.allow===void 0&&e.toolFilter.deny===void 0)throw new Error("tool-subagent: `toolFilter` is configured but names neither `allow` nor `deny` — remove the key or fill the filter");const r=e.enableRunInBackground!==!1,a=(e.backgroundMode??"one-shot")==="continuable",u=e.toolName??"subagent";let d;const g=o(s=>{if(typeof e.maxDepth=="number"&&!s.capabilities.depthLimit)throw new Error(`tool-subagent: provider "${s.name}" cannot enforce maxDepth (no depthLimit capability) — set maxDepth: 'provider-managed' to leave the recursion budget to the provider`);const m=q(s.inheritsParentContext);if(a&&s.prepareContinuable===void 0)throw new Error(`tool-subagent: provider "${s.name}" does not support \`backgroundMode: continuable\``);d=t.tools.register(v({name:u,description:m.description+(r?a?" This tool runs in the background by default, immediately returns a durable subagent id, and keeps the child conversation available for later turns. When that run settles, the runtime sends the parent a notice containing its outcome and any final assistant message; `send_message` starts a later turn in the same child conversation. Set `run_in_background: false` only when your next action depends on receiving the result.":" This call waits for the result by default. Set `run_in_background: true` to return a job id; collect with `job_output` and stop with `job_kill`.":" This call waits for the subagent and returns its result."),parameters:{description:{type:"string",required:!0,description:"A short (3-5 word) description of the delegated task, for display."},prompt:{type:"string",required:!0,description:m.promptDescription},...r?{run_in_background:{type:"boolean",description:a?"Whether to run in the background and return a durable subagent id immediately. Defaults to true. Set false to wait for the result when your next action depends on it.":"Whether to run as a background job and return its id. Defaults to false; collect with job_output or stop with job_kill."}}:{}},output:{schema:{oneOf:[{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"background"},jobId:{type:"string",required:!0}}},{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"continuable"},subagentId:{type:"string",required:!0}}},{type:"object",additionalProperties:!1,properties:{kind:{type:"string",required:!0,const:"foreground"},runId:{type:"string",required:!0},output:{type:"array",required:!0,items:{type:"json"}}}}]},render:o((l,i)=>[{type:"text",text:i.kind==="background"?`started background subagent job ${i.jobId}`:i.kind==="continuable"?`started subagent ${i.subagentId}`:S(i.output)}],"render")},isConcurrencySafe:o(()=>!0,"isConcurrencySafe"),async execute(l,i){const p=i.agent;if(!p)throw new Error("subagent tool requires a calling agent (exec.agent was undefined)");const f=typeof e.maxDepth=="number"?e.maxDepth:void 0,c={label:l.description,prompt:[{type:"text",text:l.prompt}],parent:p,...e.agentOptions!==void 0?{agentOptions:e.agentOptions}:{},...e.persona!==void 0?{persona:e.persona}:{},...e.toolFilter!==void 0?{toolFilter:e.toolFilter}:{},...f!==void 0?{maxDepth:f}:{}};if(A(l,{backgroundEnabled:r,continuable:a}).runInBackground){if(a)return{kind:"continuable",subagentId:(await t.subagents.startContinuable({provider:e.provider,label:l.description,request:c,signal:i.signal})).childId};const y=t.get("jobs");if(y===void 0)throw new Error("background jobs unavailable: load @deepseek-ai/dsh-jobs and @deepseek-ai/dsh-tool-jobs");return{kind:"background",jobId:y.start({kind:"subagent",label:l.description,owner:p,run:o(()=>{const b=new AbortController;return{cancel:o(k=>{b.abort(k??"background subagent task killed")},"cancel"),done:T(t.subagents.start(e.provider,{...c,signal:b.signal}),b.signal)}},"run")})}}return P(await t.subagents.start(e.provider,{...c,signal:i.signal}))}}))},"mount");t.on("subagent/provider-added",s=>{s.name===e.provider&&d===void 0&&g(s)}),t.on("subagent/provider-removed",s=>{s!==e.provider||d===void 0||(d(),d=void 0)});const h=t.subagents.getProvider(e.provider);h!==void 0?g(h):t.logger.info(`subagent provider "${e.provider}" not registered yet; the "${e.toolName??"subagent"}" tool will register when it appears`),r&&a&&t.systemPrompt.section({name:`tool:${u}`,order:I,text:o(s=>d===void 0||t.tools.get(u,s.scope)===void 0?"":`Use ${u} in the background by default. Start independent delegations together in one assistant message and continue useful work while they run. Set \`run_in_background: false\` only when your next action depends on that subagent's result. When a background run settles, the runtime sends you a notice containing its outcome and any final assistant message.`,"text")})}o(F,"apply");export{D as Config,F as apply,E as inject,_ as name};
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-subagent","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/dsh-jobs":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-subagent","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-jobs":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-subagent-control","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./list-agents":{"types":"./lib/types/list-agents.d.ts","default":"./lib/types/list-agents.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-tool-subagent-control","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./list-agents":{"types":"./lib/types/list-agents.d.ts","default":"./lib/types/list-agents.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-subagent-report","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-subagent":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-subagent-report","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-subagent":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-todo","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/dsh-session-projection":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-agent":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15"}}
1
+ {"name":"@deepseek-ai/dsh-tool-todo","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./client":{"types":"./lib/types/client.d.ts","default":"./lib/types/client.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","dependencies":{"zod":"^4.4.3","@deepseek-ai/schemastery":"^3.18.1"},"peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-session-projection":"^0.1.0-rc.7","@deepseek-ai/dsh-agent":"^0.1.0-rc.7"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-web","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-web":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15"},"dependencies":{"@joplin/turndown-plugin-gfm":"^1.0.67","turndown":"^7.2.4","@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-web","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-web":"^0.1.0-rc.7","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1"},"dependencies":{"@joplin/turndown-plugin-gfm":"^1.0.67","turndown":"^7.2.4","@deepseek-ai/schemastery":"^3.18.1"}}
@@ -1 +1 @@
1
- {"name":"@deepseek-ai/dsh-tool-workflow","version":"0.0.15","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-llm":"^0.0.15","@deepseek-ai/dsh-session":"^0.0.15","@deepseek-ai/dsh-invariants":"^0.0.15","@deepseek-ai/dsh-system-prompt":"^0.0.15","@deepseek-ai/dsh-tools":"^0.0.15","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-workflow":"^0.0.15","@deepseek-ai/dsh-agent":"^0.0.15"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}
1
+ {"name":"@deepseek-ai/dsh-tool-workflow","version":"0.1.0-rc.7","publishConfig":{"access":"public"},"type":"module","main":"lib/index.js","exports":{".":{"types":"./lib/types/index.d.ts","default":"./lib/index.js"},"./invariant":{"types":"./lib/types/invariant.d.ts","default":"./lib/invariant.js"},"./types":{"types":"./lib/types/types.d.ts","default":"./lib/types/types.js"},"./src/*":"./src/*","./package.json":"./package.json"},"license":"MIT","peerDependencies":{"@deepseek-ai/dsh-agent":"^0.1.0-rc.7","@deepseek-ai/dsh-invariants":"^0.1.0-rc.7","@deepseek-ai/dsh-tools":"^0.1.0-rc.7","@deepseek-ai/dsh-llm":"^0.1.0-rc.7","@deepseek-ai/dsh-session":"^0.1.0-rc.7","@deepseek-ai/cordis":"^4.0.1","@deepseek-ai/dsh-system-prompt":"^0.1.0-rc.7","@deepseek-ai/dsh-workflow":"^0.1.0-rc.7"},"dependencies":{"@deepseek-ai/schemastery":"^3.18.1"}}