@songtonyli/dsh-cli 0.1.90 → 0.1.92

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 (621) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  14. package/node_modules/@aws-sdk/core/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  18. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  20. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  21. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
  24. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
  25. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
  26. package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
  27. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
  34. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
  35. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  36. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  37. package/node_modules/@deepseek-ai/cordis/README.md +6 -2
  38. package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
  39. package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
  40. package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
  41. package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
  42. package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
  43. package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
  44. package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
  45. package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
  46. package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
  47. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  48. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
  49. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
  50. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
  51. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
  52. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
  53. package/node_modules/@deepseek-ai/dsh/package.json +0 -1
  54. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
  56. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
  57. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
  58. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  59. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
  60. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
  62. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
  63. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
  66. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  67. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
  68. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
  69. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  71. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
  72. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
  73. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
  75. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
  76. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
  79. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
  80. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
  81. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
  82. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
  83. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
  84. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
  85. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  86. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
  89. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
  90. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
  91. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
  92. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
  93. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
  94. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
  95. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
  96. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
  97. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
  99. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
  100. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
  101. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
  102. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
  103. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  104. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  105. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  106. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
  107. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
  108. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  109. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
  110. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
  111. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
  112. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
  113. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
  114. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
  115. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
  116. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
  117. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
  118. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
  119. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
  120. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
  121. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
  122. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
  125. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
  126. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
  127. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
  128. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
  129. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
  130. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
  131. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  132. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
  133. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
  134. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
  135. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
  136. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
  137. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
  138. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
  141. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
  142. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
  143. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
  144. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  145. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  146. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  147. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
  148. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
  150. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
  151. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
  152. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
  153. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
  154. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  155. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
  157. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
  158. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
  159. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
  160. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
  161. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
  162. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
  163. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
  164. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
  165. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
  166. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
  167. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
  168. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
  169. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
  170. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
  171. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
  172. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
  173. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
  174. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
  175. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
  176. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
  178. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  179. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
  180. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
  181. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  182. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  183. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
  185. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
  186. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
  187. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
  188. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
  189. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
  190. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
  191. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
  192. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
  194. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
  195. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
  196. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
  197. package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
  198. package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
  199. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  200. package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  201. package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
  202. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
  203. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
  204. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
  206. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
  209. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
  210. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
  211. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
  212. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
  213. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
  214. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
  215. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
  216. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
  217. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
  218. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
  219. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
  220. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
  221. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
  222. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
  223. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
  224. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
  225. package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
  226. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
  227. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
  228. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
  229. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
  230. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
  231. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
  232. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
  233. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
  235. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
  236. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
  237. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
  238. package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
  239. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
  240. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
  241. package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
  242. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
  243. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
  246. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
  247. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
  248. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
  249. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
  250. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
  251. package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
  252. package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
  253. package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
  254. package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
  255. package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
  256. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
  257. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
  258. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
  259. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
  260. package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
  261. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  262. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
  263. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  264. package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
  265. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
  266. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
  267. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
  268. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
  269. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
  270. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
  271. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
  272. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  274. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  275. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
  276. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  278. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
  279. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
  280. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
  281. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
  282. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
  283. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
  284. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
  285. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
  286. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
  287. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
  288. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
  289. package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
  290. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
  291. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
  292. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
  293. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
  294. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
  295. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
  296. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
  297. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
  298. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
  299. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
  300. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
  301. package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
  302. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
  303. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
  304. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
  305. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  306. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
  307. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
  308. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
  309. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
  310. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
  311. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
  312. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
  313. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
  314. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
  315. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
  316. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
  317. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
  318. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
  319. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
  320. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
  321. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  322. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
  323. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
  324. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
  325. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
  326. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
  327. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  328. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
  329. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
  330. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
  331. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
  332. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
  333. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
  334. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
  335. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
  336. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
  337. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
  338. package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
  339. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
  340. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
  341. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
  342. package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
  343. package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
  344. package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
  345. package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
  346. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  347. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  348. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  349. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
  350. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
  351. package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
  352. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
  353. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
  354. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
  355. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
  356. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
  357. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  358. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  359. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
  360. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
  361. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
  362. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
  363. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
  364. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
  365. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
  366. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
  367. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  368. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  369. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
  370. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
  371. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
  372. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  373. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
  374. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  375. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  376. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  377. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  378. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  379. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
  380. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
  381. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  382. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  383. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
  384. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
  385. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  386. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  387. package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
  388. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  389. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
  390. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
  391. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  392. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  393. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  394. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  395. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  396. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
  397. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
  398. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
  399. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  400. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  401. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  402. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  403. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  404. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  405. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  406. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  407. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  408. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  409. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  410. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  411. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  412. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  413. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  414. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  415. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  416. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  417. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  418. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  419. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  420. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  421. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  422. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  423. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  424. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  425. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
  426. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  427. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  428. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  429. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  430. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  431. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  432. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
  433. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  434. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  435. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  436. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
  437. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  438. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  439. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  440. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  441. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  442. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  443. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  444. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  445. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  446. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  447. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  448. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  449. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  450. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  451. package/node_modules/@smithy/core/package.json +1 -1
  452. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
  453. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  454. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
  455. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  456. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  457. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  458. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  459. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  460. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  461. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  462. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  463. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  464. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  465. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  466. package/node_modules/@smithy/signature-v4/package.json +2 -2
  467. package/node_modules/@types/node/README.md +1 -1
  468. package/node_modules/@types/node/package.json +2 -2
  469. package/node_modules/encodeurl/README.md +14 -0
  470. package/node_modules/encodeurl/index.js +5 -10
  471. package/node_modules/encodeurl/package.json +7 -3
  472. package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
  473. package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
  474. package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
  475. package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
  476. package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
  477. package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
  478. package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
  479. package/node_modules/hast-util-to-html/lib/index.js +9 -4
  480. package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
  481. package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
  482. package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
  483. package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
  484. package/node_modules/hast-util-to-html/package.json +5 -23
  485. package/node_modules/hast-util-to-html/readme.md +3 -2
  486. package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  487. package/node_modules/jose/package.json +1 -1
  488. package/node_modules/rrule/LICENCE +65 -0
  489. package/node_modules/rrule/README.md +837 -0
  490. package/node_modules/rrule/dist/es5/rrule.js +3803 -0
  491. package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
  492. package/node_modules/rrule/dist/esm/cache.js +95 -0
  493. package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
  494. package/node_modules/rrule/dist/esm/datetime.js +186 -0
  495. package/node_modules/rrule/dist/esm/dateutil.js +161 -0
  496. package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
  497. package/node_modules/rrule/dist/esm/helpers.js +118 -0
  498. package/node_modules/rrule/dist/esm/index.js +22 -0
  499. package/node_modules/rrule/dist/esm/iter/index.js +138 -0
  500. package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
  501. package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
  502. package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
  503. package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
  504. package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
  505. package/node_modules/rrule/dist/esm/iterresult.js +88 -0
  506. package/node_modules/rrule/dist/esm/iterset.js +63 -0
  507. package/node_modules/rrule/dist/esm/masks.js +30 -0
  508. package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
  509. package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
  510. package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
  511. package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
  512. package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
  513. package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
  514. package/node_modules/rrule/dist/esm/parsestring.js +128 -0
  515. package/node_modules/rrule/dist/esm/rrule.js +232 -0
  516. package/node_modules/rrule/dist/esm/rruleset.js +182 -0
  517. package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
  518. package/node_modules/rrule/dist/esm/types.js +14 -0
  519. package/node_modules/rrule/dist/esm/weekday.js +45 -0
  520. package/node_modules/rrule/package.json +79 -0
  521. package/package.json +32 -31
  522. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
  523. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
  524. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
  525. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
  526. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
  527. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
  528. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
  529. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
  530. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
  531. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
  532. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
  533. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
  534. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
  535. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
  536. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
  537. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
  538. package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
  539. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
  540. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
  541. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
  542. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
  543. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
  544. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
  545. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
  546. package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
  547. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
  548. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
  549. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
  550. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
  551. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
  552. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
  553. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
  554. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
  555. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
  556. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
  557. package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
  558. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
  559. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
  560. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
  561. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
  562. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
  563. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
  564. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
  565. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
  566. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
  567. package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
  568. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
  569. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
  570. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
  571. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
  572. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
  573. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
  574. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
  575. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
  576. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
  577. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
  578. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
  579. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  580. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
  581. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
  582. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  583. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  584. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  585. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  586. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  587. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
  588. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  589. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
  590. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  591. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  592. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  593. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
  594. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
  595. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
  596. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  597. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  598. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  599. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  600. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  601. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
  602. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  603. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  604. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  605. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  606. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  607. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
  608. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  609. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  610. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  611. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  612. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  613. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  614. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  615. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  616. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  617. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
  618. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  619. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  620. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  621. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
@@ -9,8 +9,8 @@
9
9
  en: fc8f28deebe5fa6b
10
10
  zh: 738c6ad45034da88
11
11
  /deepseek-ai-dsh-tool-fs/summary:
12
- en: c8f608c85c8d6626
13
- zh: 4133a867517baca5
12
+ en: c324e1f6369b38b9
13
+ zh: 5e4fd0d5f64b0746
14
14
  /deepseek-ai-dsh-tool-fs/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
@@ -18,35 +18,35 @@
18
18
  en: c7da73c9e2691ea1
19
19
  zh: 0eba82c1c3553ab9
20
20
  /deepseek-ai-dsh-tool-fs/use-this-package/minimal-composition:
21
- en: eb21d89a3ecbd2d4
22
- zh: f05ccbb1e7515f32
21
+ en: bcd61964469f1a55
22
+ zh: bded1de1c747c641
23
23
  /deepseek-ai-dsh-tool-fs/use-this-package/the-tools:
24
- en: 29a1d47e9677f2a3
25
- zh: 0ae3c794cc7c54db
24
+ en: 6e12ea9c79039360
25
+ zh: 7230ad3bda4515d5
26
26
  /deepseek-ai-dsh-tool-fs/use-this-package/configuration:
27
- en: 6903a9ca39cb9a71
28
- zh: a078377d02c3ab6f
27
+ en: 0a21c4f17d25d1bb
28
+ zh: 38b848719f8b9ebf
29
29
  /deepseek-ai-dsh-tool-fs/use-this-package/policy-and-sandbox-behavior:
30
30
  en: da97acb20cd1bb7a
31
31
  zh: ef1c4d06213ffcea
32
32
  /deepseek-ai-dsh-tool-fs/use-this-package/failures-and-recovery:
33
- en: 962b09e21305a04b
34
- zh: 382d2b8cce217569
33
+ en: f7c7834de37e1ece
34
+ zh: ff08efcf7c08379a
35
35
  /deepseek-ai-dsh-tool-fs/understand-the-implementation:
36
36
  en: e30f7038c28e93f8
37
37
  zh: a3868dbd90367b13
38
38
  /deepseek-ai-dsh-tool-fs/understand-the-implementation/design-concept:
39
- en: 454b5291db9ba847
40
- zh: 9fe7081dfb416c93
39
+ en: 1f4d7213aa3d0d60
40
+ zh: aa6573f96c8b5220
41
41
  /deepseek-ai-dsh-tool-fs/understand-the-implementation/source-map:
42
- en: ec1517d657fbce14
43
- zh: be0038b88f7b68fc
42
+ en: 459b773aafc6c163
43
+ zh: ccd729aded7d98ba
44
44
  /deepseek-ai-dsh-tool-fs/understand-the-implementation/per-tool-flow:
45
- en: d741e01be9fddb76
46
- zh: 7aa1d7ca719a4aac
45
+ en: 35fbee1ef9811806
46
+ zh: 17c725e2b742c073
47
47
  /deepseek-ai-dsh-tool-fs/understand-the-implementation/observation-and-concurrency:
48
- en: 665d437dc35bf05f
49
- zh: 8004334d6a3246b4
48
+ en: 2bd1d4eb86c2b360
49
+ zh: 2a52540af8c85e5f
50
50
  /deepseek-ai-dsh-tool-fs/further-exploration:
51
51
  en: 485bc55482f576bc
52
52
  zh: fc5fa55b41098bd0
@@ -134,9 +134,27 @@
134
134
  /deepseek-ai-dsh-tool-fs/model-experience/tool-errors/kv-cache-effect:
135
135
  en: f5d5f97a153f7c70
136
136
  zh: 3d6bc05b9eadfbc2
137
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch:
138
+ en: e24083366d909456
139
+ zh: 003e7533d417bfe5
140
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch/what-the-model-sees:
141
+ en: f42d71271fa0e757
142
+ zh: 3a203266d3406414
143
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch/what-the-model-sees/system-guidance:
144
+ en: 3e353846d8e13cdf
145
+ zh: 3d93eaadc65898b3
146
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch/what-the-model-sees/result-examples:
147
+ en: 37d9e89be68e7725
148
+ zh: fd09eca8f63c7c58
149
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch/token-effect:
150
+ en: 886e012dd66f2548
151
+ zh: a22ea38a243f82db
152
+ /deepseek-ai-dsh-tool-fs/model-experience/apply-patch/kv-cache-effect:
153
+ en: d3a98306460d7f9f
154
+ zh: 59836b4f59b8214a
137
155
  /deepseek-ai-dsh-tool-fs/known-limitations-and-deferred-work:
138
- en: 28aadb772cdbc497
139
- zh: a50e3bb6b4a8f645
156
+ en: 65fcdbac04e2e889
157
+ zh: 4b6d02f630c81900
140
158
  /deepseek-ai-dsh-tool-fs/known-limitations-and-deferred-work/dev-note:
141
159
  en: e67f633dc6fe7773
142
160
  zh: 3bb0c20c93f16f98
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Use `dsh-tool-fs` to let a model read UTF-8 files with line numbers, read supported images, create or atomically replace files, and apply targeted literal edits. Results are capped, and failures provide stable error codes and recovery instructions. Add `dsh-fs-observation-policy` when writes and edits must follow a successful read; without it, mutations remain atomic but are unconditional. Image reads require durable attachment storage and an image-capable routed model. Choose the sibling discovery package for glob or grep searches.
12
+ Use `dsh-tool-fs` to let a model read UTF-8 files with line numbers, read supported images, create or atomically replace files, apply targeted literal edits, and apply Codex-style multi-file patches. Results are capped, and failures provide stable error codes and recovery instructions. Add `dsh-fs-observation-policy` when writes and edits must follow a successful read; without it, mutations remain atomic but are unconditional. Image reads require durable attachment storage and an image-capable routed model. Choose the sibling discovery package for glob or grep searches.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -39,7 +39,7 @@ A backend, the policy plugin, then the tools; the attachment store is optional a
39
39
  - name: '@deepseek-ai/dsh-tool-fs'
40
40
  ```
41
41
 
42
- The policy plugin is optional: without it the tools run against the bare provider (unconditional write, overwrite, and edit with no observed-state). A deployment that loads these tools is expected to also load it, so the behavior is read-before-write/edit. `read_image` registers only while a durable `ctx.attachments` service is mounted; execution additionally refuses on a route whose exact model does not declare image input, so a text route's durable history stays free of image blocks.
42
+ The policy plugin is optional: without it the tools run against the bare provider (unconditional write, overwrite, edit, and patch with no observed state). A deployment that loads these tools is expected to also load it, so the behavior is read-before-write/edit/patch. `read_image` registers only while a durable `ctx.attachments` service is mounted; execution additionally refuses on a route whose exact model does not declare image input, so a text route's durable history stays free of image blocks.
43
43
 
44
44
  ### The tools
45
45
 
@@ -49,12 +49,13 @@ The policy plugin is optional: without it the tools run against the bare provide
49
49
  | `read_image` | `file_path` | Reads and persists a PNG/JPEG/WebP/GIF source; an extension-less path (normalized attachment object paths included) is identified from its file signature; normalization can downscale it before the next model request, so the model need not create a thumbnail first |
50
50
  | `write` | `file_path`, `content` | Creates or fully replaces a file; with the policy plugin, overwriting requires a prior `read` at the unchanged version, creating does not |
51
51
  | `edit` | `file_path`, `old_string`, `new_string`, `replace_all?` | Literal replacement requiring a unique match unless `replace_all` is true; with the policy plugin, requires a prior `read` and an unchanged file |
52
+ | `apply_patch` | `input`, sandbox escalation fields when available | Add/update/delete/move with whole-patch admission and known partial effects |
52
53
 
53
54
  Field names are snake_case to match Claude Code and existing harness tool schemas. The `write` and `edit` path descriptions ask the model to emit `file_path` before the content or replacement strings; this guides streaming presentation but does not enforce JSON member order. Successes return compact envelopes — a read window, an image reference, or a `Created file`/`Updated file` confirmation — and `write`/`edit` derive replayable diff-card metadata for UI presentation.
54
55
 
55
56
  ### Configuration
56
57
 
57
- All keys are optional. The `read`, `readImage`, `write`, and `edit` switches default to `true`; set a switch to `false` to omit that tool and its guidance. All four may be disabled. Enabling `readImage` still requires an attachment store and an image-capable model. Read caps remain validated when `read` is disabled.
58
+ All keys are optional. The `read`, `readImage`, `write`, and `edit` switches default to `true`; set a switch to `false` to omit that tool and its guidance. `applyPatch` defaults to `false`, so the default composition registers no `apply_patch`; the shipped `tool-fs` rows that enable `edit` ([`dsh-base`](../../bundle/base/cordis.patch.yml) and the Web `standard`, `ptc`, and `cordis` presets) state `applyPatch: false`, and changing that one line to `true` adds the tool beside `edit`. All five tools may be disabled. Enabling `readImage` still requires an attachment store and an image-capable model. Read caps remain validated when `read` is disabled.
58
59
 
59
60
  | Key | Default | Meaning |
60
61
  |---|---|---|
@@ -62,6 +63,7 @@ All keys are optional. The `read`, `readImage`, `write`, and `edit` switches def
62
63
  | `readImage` | `true` | Register `read_image` while an attachment store is mounted |
63
64
  | `write` | `true` | Register `write` and its guidance |
64
65
  | `edit` | `true` | Register `edit` and its guidance |
66
+ | `applyPatch` | `false` | Register `apply_patch` and its guidance |
65
67
  | `readLimit` | `2000` | Default and maximum lines returned by one `read` call |
66
68
  | `readMaxLineLength` | `2000` | Characters kept per line before truncation |
67
69
  | `readMaxBytes` | `51200` | Byte cap on one `read` call's selected lines; overflow ends the window with a capped footer |
@@ -79,6 +81,8 @@ With the policy plugin mounted, `write` and `edit` obtain their guard from the `
79
81
 
80
82
  ### Failures and recovery
81
83
 
84
+ For `apply_patch`, syntax and preflight refusals throw with `isError: true` before any disk change. `FsError` preserves filesystem codes; `PatchToolError extends HarnessError` carries `PATCH_SYNTAX` and `PATCH_SYMLINK_SOURCE`. Once commit starts, the tool returns a value with `isError: false` even on failure or uncertainty, so known partial effects retain their diff metadata; a call cancelled during commit receives the tool registry's abort result like every other tool, and its completed changes remain visible through Review. `phase`, `cancelled`, ordered `operations` and `affectedPaths` describe the commit; each operation retains its index, kind, display paths, patch line, status, diagnostic and known changes. Full `before`/`after` text serves rendering and PTC; the Session stores the rendered result plus `meta.diffs` and `meta.stopped`. Creations store no diff, as for `write`; deletions and move sources store a removal diff only when the provider returned a bounded basis, using `newText: ''` because `FileDiff.newText` cannot be null.
85
+
82
86
  Failures are normalized as `Error: <message>` with a structured code preserved for callers. Stable messages include `file_path must be a non-empty string`, `limit must be less than or equal to <max>`, `cannot read "<path>": not found`, `cannot read "<path>": not a regular file`, and the image-route refusal `cannot read "<path>" as an image: model "<model>" does not declare image input; switch to an image-capable model to read images`. `FS_NOT_OBSERVED` is normalized to `cannot modify "<path>": file has not been read — read the file, then retry`, independent of whether the policy or provider rejected the operation; `FS_STALE_VERSION` retains the provider's reason and appends `— re-read the file, then retry`. After the reread confirms absence, `edit` reports `FS_NOT_FOUND` instead of repeating a stale remedy, while `write` uses guarded creation.
83
87
 
84
88
  -----
@@ -93,7 +97,7 @@ This section explains the design decisions behind the tool suite and points at t
93
97
 
94
98
  ### Design concept
95
99
 
96
- The tools are the executor; policy is an event gate. The tools inject no policy service and inspect no cache — each mutation asks the single intent slot for its guard through `ctx.waterfall`, and each operation emits `fs/observed` only after it succeeded. Reads do exactly one provider `stat` (type and size routing plus the observed version); mutations do none, because the guard comes from the intent slot and the provider re-checks under its lock.
100
+ The tools are the executor; policy is an event gate. The tools inject no policy service and inspect no cache — each mutation asks the single intent slot for its guard through `ctx.waterfall`, and each operation emits `fs/observed` only after it succeeded. Reads do exactly one provider `stat` (type and size routing plus the observed version); `write` and `edit` do none, because the guard comes from the intent slot and the provider re-checks under its lock.
97
101
 
98
102
  ### Source map
99
103
 
@@ -103,9 +107,15 @@ The tools are the executor; policy is an event gate. The tools inject no policy
103
107
  | [`src/read.ts`](src/read.ts) | `read` executor: one stat, streaming decision, window build, observation |
104
108
  | [`src/read-image.ts`](src/read-image.ts) | `read_image` executor: route and media-type gates, bounded bytes, attachment save |
105
109
  | [`src/write.ts`](src/write.ts) | `write` executor: intent waterfall, atomic write, observation |
110
+ | [`src/apply-patch.ts`](src/apply-patch.ts), [`apply-patch-output.ts`](src/apply-patch-output.ts) | `apply_patch` registration, strict commit values and compact diagnostics |
111
+ | [`src/apply-patch-presentation.ts`](src/apply-patch-presentation.ts) | Pure call previews and known result diffs |
106
112
  | [`src/edit.ts`](src/edit.ts) | `edit` executor: intent waterfall, literal edit, observation |
113
+ | [`src/patch/index.ts`](src/patch/index.ts), [`types.ts`](src/patch/types.ts) | Internal `executePatch` entry and serializable per-operation reports |
114
+ | [`src/patch/plan.ts`](src/patch/plan.ts) | Parse and resolve Session-relative paths; preserve ordered operations sharing a canonical target |
115
+ | [`src/patch/preflight.ts`](src/patch/preflight.ts) | Simulate preceding successes and collect observation, type, text, and hunk failures before any write |
116
+ | [`src/patch/execute.ts`](src/patch/execute.ts) | Reacquire guards, commit sequentially, record actual effects, and classify uncertain failures |
107
117
  | [`src/read-render.ts`](src/read-render.ts) | Cordis-free windowing and envelope formatting |
108
- | [`src/sandbox.ts`](src/sandbox.ts) | Escalation API shared by `write`/`edit`: policy resolution and denial-marker mapping |
118
+ | [`src/sandbox.ts`](src/sandbox.ts) | Escalation API shared by the mutating tools: policy resolution and denial-marker mapping |
109
119
  | [`src/error.ts`](src/error.ts) | Stable model-facing diagnostics for guarded-mutation failures |
110
120
  | [`src/mutation-result.ts`](src/mutation-result.ts) | Successful mutation observation and canonical result paths |
111
121
 
@@ -113,10 +123,16 @@ The tools are the executor; policy is an event gate. The tools inject no policy
113
123
 
114
124
  All four tools share one flow shape: resolve the path with the calling session's cwd, run the applicable gate, perform exactly one provider operation, and emit `fs/observed` only after success. `read` and `read_image` pay one `stat` for type and size routing; `write` and `edit` pay none because their guard comes from the intent slot, and provider failures surface as typed `FsError` results. The per-tool executors live in `src/read.ts`, `src/read-image.ts`, `src/write.ts`, and `src/edit.ts`.
115
125
 
126
+ The internal patch executor accepts a raw patch and an already resolved sandbox policy. It builds an ordered plan, preflights all operations against simulated state, then commits through `writeText`, `patchText`, `deleteFile`, or one `moveFile` call. A refused preflight operation has no simulated effect, and any refusal prevents every write. Sandbox containment is not simulated: the provider decides it at each commit, as for `write` and `edit`, so a denied operation stops the patch with the earlier operations retained. A syntax report carries the parser failure; a preflight report lists the refused operations; a commit report keeps one entry per operation with `completed`, `failed`, `unknown`, or `skipped` status and known LF text changes. Unresolved paths retain their raw patch spelling; resolved paths use provider display paths. Programming errors reject the call.
127
+
116
128
  ### Observation and concurrency
117
129
 
118
130
  `fs/observed` fires after the operation succeeded via a plain `ctx.emit`; a listener is contractually a synchronous, side-effect-only recorder, so async or fallible observation does not belong on this event. `read` opts into concurrent scheduling because its only mutation is the synchronous version recorder; recorder races fail closed when a later `write` or `edit` re-checks the version under its target lock, and both mutation tools remain exclusive.
119
131
 
132
+ Patch preflight reads never emit `fs/observed`. The first preflight operation on a target dispatches its intent; later operations on that target use the simulated state. Each commit dispatches its intents again to obtain current guards. Add and update record presence, delete records absence, and move records its destination plus source absence only after successful removal; a partial move is `failed` with a destination-only change. The move source baseline comes from `moveFile` under its lock.
133
+
134
+ After a mutation rejects with `FS_IO_ERROR`, the executor compares each affected target's version with a fresh `stat`. Unchanged targets mean a known failure; a changed target or failed comparison means `unknown`, which records no observation or change. `FS_ABORTED` is always `unknown`: a cancelled remote request rejects while the provider may still be writing. Execution stops at the first failed or unknown commit, or before an operation whose signal is aborted.
135
+
120
136
  </details>
121
137
 
122
138
  -----
@@ -240,6 +256,47 @@ Only a failing call adds these retained tokens.
240
256
 
241
257
  Append-only; newly visible content follows the reusable request prefix and does not invalidate existing KV-cache entries.
242
258
 
259
+ ### Apply patch
260
+
261
+ #### What the model sees
262
+
263
+ The `apply_patch` schema requires one `input` string (the Codex parameter name, which models trained on that tool send unprompted) containing `*** Begin Patch` / `*** End Patch`, Add/Update/Delete headers, optional Move to, and context/add/remove hunk lines. Paths are Session-relative. A confining backend adds the same escalation fields as write/edit. Success lines group A/M/D and a completed move reports `M <destination>`, matching Codex rust-v0.158.0. An empty patch renders `Success. No operations in patch.`. A stopped patch includes only the applicable Completed, Failed, Outcome unknown and Not executed sections; unknown outcomes end with the re-read remedy. Syntax errors keep the parser message.
264
+
265
+ ##### System guidance
266
+
267
+ ```markdown
268
+ Prefer apply_patch over separate edit calls for changes across files or separated regions. Read a file before updating, deleting, or moving it (the default fs-observation-policy requires it), unless you just created or edited it in this session. The whole patch is checked first (syntax, hunk matching, missing files) and a rejected patch changes nothing; once applying starts, operations run in order, stop at the first failure, and are not rolled back, so re-read affected files before retrying when needed.
269
+ ```
270
+
271
+ ##### Result examples
272
+
273
+ ```markdown
274
+ Success. Updated the following files:
275
+ A src/new.ts
276
+ M src/a.ts
277
+ D src/obsolete.ts
278
+
279
+ Patch stopped after 1 of 3 operations.
280
+ Completed:
281
+ M src/a.ts
282
+ Failed:
283
+ - operation 2 (move src/b.ts -> src/c.ts, patch line 6): source removal denied
284
+ destination src/c.ts was written; source src/b.ts remains
285
+ Not executed:
286
+ - operation 3 (add src/d.ts)
287
+
288
+ Patch rejected before any change (1 problems):
289
+ - operation 1 (update src/a.ts, patch line 2): cannot modify "src/a.ts": file has not been read — read the file, then retry
290
+ ```
291
+
292
+ #### Token effect
293
+
294
+ The default tool set adds one patch tool schema and three guidance sentences to the first request. Commit output scales with operation count and diagnostics, not file size.
295
+
296
+ #### KV Cache effect
297
+
298
+ Stable while the visible tools are unchanged; call/result text appends to history.
299
+
243
300
  ## Known Limitations and Deferred Work
244
301
 
245
302
  <a id="known-limitations-and-deferred-work"></a>
@@ -247,6 +304,7 @@ Append-only; newly visible content follows the reusable request prefix and does
247
304
 
248
305
  These limits define when the tool suite is a poor fit or needs special operational care. They are current package constraints, not a general filesystem comparison or a task backlog.
249
306
 
307
+ - **Patch commits do not roll back** — earlier successes and a published move destination remain on disk after a later failure, and an `unknown` result requires re-reading the affected files before retrying.
250
308
  - **No model-facing directory listing ships** — `ctx.fs.listDir` serves provider code such as skill discovery, while the sibling `dsh-tool-fs-search` package supplies ripgrep-backed `glob` and `grep` rather than extending the filesystem seam.
251
309
  - **`read` handles UTF-8 text files only** — images use the separate `read_image` tool; PDF, audio, and video remain deferred. A directory target is `FS_NOT_REGULAR_FILE`.
252
310
  - **Extension-declared media type** — an extension selects the declared type and the attachment store's magic-byte validation stays authoritative; a correctly formatted image under a wrong extension is refused with the rename remedy rather than sniffed. Only a path with no extension is identified from its file signature.
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 使用 `dsh-tool-fs` 可让模型带行号读取 UTF-8 文件、读取受支持的图片、创建或原子地替换文件,以及执行有针对性的字面量编辑。结果都有上限,失败会提供稳定错误码与恢复指令。当写入和编辑必须在成功读取后执行时,请添加 `dsh-fs-observation-policy`;省略它时,变更仍是原子的,但不受此条件约束。图片读取需要持久附件存储和支持图片输入的路由模型。glob 或 grep 搜索请选择同级的发现工具包。
12
+ 使用 `dsh-tool-fs` 可让模型带行号读取 UTF-8 文件、读取受支持的图片、创建或原子地替换文件,执行有针对性的字面量编辑,以及应用 Codex 风格的多文件补丁。结果都有上限,失败会提供稳定错误码与恢复指令。当写入和编辑必须在成功读取后执行时,请添加 `dsh-fs-observation-policy`;省略它时,变更仍是原子的,但不受此条件约束。图片读取需要持久附件存储和支持图片输入的路由模型。glob 或 grep 搜索请选择同级的发现工具包。
13
13
 
14
14
  ## 目录
15
15
 
@@ -39,7 +39,7 @@ kind: "package-reference"
39
39
  - name: '@deepseek-ai/dsh-tool-fs'
40
40
  ```
41
41
 
42
- 策略插件是可选的:省略时,工具直接使用裸提供方(无条件写入、覆盖与编辑,无已观察状态)。加载这些工具的部署也应加载该插件,从而提供写入/编辑前读取行为。`read_image` 只在持久 `ctx.attachments` 服务已挂载时注册;执行时还拒绝确切模型未声明图像输入的路由,因此文本路由的持久历史不会出现图像块。
42
+ 策略插件是可选的:省略时,工具直接使用裸提供方(无条件写入、覆盖、编辑与补丁,无已观察状态)。加载这些工具的部署也应加载该插件,从而提供写入/编辑/补丁前读取行为。`read_image` 只在持久 `ctx.attachments` 服务已挂载时注册;执行时还拒绝确切模型未声明图像输入的路由,因此文本路由的持久历史不会出现图像块。
43
43
 
44
44
  ### 工具
45
45
 
@@ -49,12 +49,13 @@ kind: "package-reference"
49
49
  | `read_image` | `file_path` | 读取并持久保存 PNG/JPEG/WebP/GIF 源图;无扩展名路径(包括规范化附件对象路径)按文件签名识别格式;规范化可在下一次模型请求前缩小图片,因此模型无需先创建缩略图 |
50
50
  | `write` | `file_path`、`content` | 创建或完整替换文件;有策略插件时,覆盖要求先在未变版本上执行 `read`,创建不需要 |
51
51
  | `edit` | `file_path`、`old_string`、`new_string`、`replace_all?` | 字面量替换,除非 `replace_all` 为 true 否则要求唯一匹配;有策略插件时,要求先执行 `read` 且文件未变 |
52
+ | `apply_patch` | `input`,以及可用时的沙箱提权字段 | 新增/更新/删除/移动,整份预检后顺序执行并保留已知部分效果 |
52
53
 
53
54
  字段名使用 snake_case,与 Claude Code 和现有 harness 工具 schema 一致。`write` 和 `edit` 的路径描述要求模型先输出 `file_path`,再输出内容或替换字符串;这用于引导流式展示,不强制 JSON 成员顺序。成功返回紧凑信封——读取窗口、图像引用或 `Created file`/`Updated file` 确认——`write`/`edit` 还会派生可回放的 diff 卡片元数据供 UI 展示。
54
55
 
55
56
  ### 配置
56
57
 
57
- 所有键均为可选。`read`、`readImage`、`write` 和 `edit` 开关默认为 `true`;将开关设为 `false` 可省略对应工具及其指导文本。允许关闭全部四个工具。启用 `readImage` 仍需要附件存储和支持图片输入的模型。关闭 `read` 时仍会校验读取上限。
58
+ 所有键均为可选。`read`、`readImage`、`write` 和 `edit` 开关默认为 `true`;将开关设为 `false` 可省略对应工具及其指导文本。`applyPatch` 默认为 `false`,因此默认组合不注册 `apply_patch`;启用 `edit` 的随发行版交付的 `tool-fs` 行([`dsh-base`](../../bundle/base/cordis.patch.yml) 以及 Web 的 `standard`、`ptc`、`cordis` preset)显式写出 `applyPatch: false`,把这一行改为 `true` 即在 `edit` 旁加入该工具。允许关闭全部五个工具。启用 `readImage` 仍需要附件存储和支持图片输入的模型。关闭 `read` 时仍会校验读取上限。
58
59
 
59
60
  | 键 | 默认值 | 含义 |
60
61
  |---|---|---|
@@ -62,6 +63,7 @@ kind: "package-reference"
62
63
  | `readImage` | `true` | 附件存储挂载时注册 `read_image` |
63
64
  | `write` | `true` | 注册 `write` 及其指导文本 |
64
65
  | `edit` | `true` | 注册 `edit` 及其指导文本 |
66
+ | `applyPatch` | `false` | 注册 `apply_patch` 及其提示 |
65
67
  | `readLimit` | `2000` | 一次 `read` 调用返回的默认和最大行数 |
66
68
  | `readMaxLineLength` | `2000` | 每行截断前保留的字符数 |
67
69
  | `readMaxBytes` | `51200` | 一次 `read` 调用所选行的字节上限;溢出时以「已达上限」footer 结束窗口 |
@@ -79,6 +81,8 @@ kind: "package-reference"
79
81
 
80
82
  ### 失败与恢复
81
83
 
84
+ `apply_patch` 的语法与预检拒绝在磁盘变更前抛错,结果为 `isError: true`。`FsError` 保留文件系统错误码;`PatchToolError extends HarnessError` 携带 `PATCH_SYNTAX` 和 `PATCH_SYMLINK_SOURCE`。进入提交后,即使失败或结果不确定也返回 `isError: false` 的值,确保已知部分效果的 diff 元数据得以保留;提交期间被取消的调用与其他工具一样收到工具注册表的中止结果,已完成的变更仍可通过 Review 查看。`phase`、`cancelled`、有序 `operations` 与 `affectedPaths` 描述提交;每条操作保留索引、种类、展示路径、补丁行号、状态、诊断与已知变更。完整 `before`/`after` 文本供渲染和 PTC 使用;Session 保存渲染文本以及 `meta.diffs` 与 `meta.stopped`。新建与 `write` 一样不保存 diff;删除与移动源仅在提供方返回有界基线时保存删除 diff,并使用 `newText: ''`,因为 `FileDiff.newText` 不可为 null。
85
+
82
86
  失败被规范化为 `Error: <message>`,并为调用方保留结构化错误码。稳定消息包括 `file_path must be a non-empty string`、`limit must be less than or equal to <max>`、`cannot read "<path>": not found`、`cannot read "<path>": not a regular file`,以及图像路由拒绝 `cannot read "<path>" as an image: model "<model>" does not declare image input; switch to an image-capable model to read images`。无论拒绝来自策略还是提供方,`FS_NOT_OBSERVED` 都规范化为 `cannot modify "<path>": file has not been read — read the file, then retry`;`FS_STALE_VERSION` 保留提供方原因并追加 `— re-read the file, then retry`。该次重新读取确认缺失后,`edit` 报告 `FS_NOT_FOUND` 而不会重复陈旧恢复指令,`write` 则使用防护创建。
83
87
 
84
88
  -----
@@ -93,7 +97,7 @@ kind: "package-reference"
93
97
 
94
98
  ### 设计理念
95
99
 
96
- 工具就是执行器;策略是事件门禁。工具不注入策略服务,也不检查任何缓存——每次变更都通过 `ctx.waterfall` 向单一意图槽位请求防护,每个操作只在成功后发出 `fs/observed`。读取恰好执行一次提供方 `stat`(类型与大小路由加观察到的版本);变更一次也不执行,因为防护来自意图槽位,提供方在锁内重新检查。
100
+ 工具就是执行器;策略是事件门禁。工具不注入策略服务,也不检查任何缓存——每次变更都通过 `ctx.waterfall` 向单一意图槽位请求防护,每个操作只在成功后发出 `fs/observed`。读取恰好执行一次提供方 `stat`(类型与大小路由加观察到的版本);`write` 与 `edit` 一次也不执行,因为防护来自意图槽位,提供方在锁内重新检查。
97
101
 
98
102
  ### 源码地图
99
103
 
@@ -103,9 +107,15 @@ kind: "package-reference"
103
107
  | [`src/read.ts`](src/read.ts) | `read` 执行器:一次 stat、流式决策、窗口构建、观察 |
104
108
  | [`src/read-image.ts`](src/read-image.ts) | `read_image` 执行器:路由与媒体类型门禁、有界字节、附件保存 |
105
109
  | [`src/write.ts`](src/write.ts) | `write` 执行器:意图 waterfall、原子写入、观察 |
110
+ | [`src/apply-patch.ts`](src/apply-patch.ts)、[`apply-patch-output.ts`](src/apply-patch-output.ts) | `apply_patch` 注册、严格提交值与精简诊断 |
111
+ | [`src/apply-patch-presentation.ts`](src/apply-patch-presentation.ts) | 纯调用预览与已知结果 diff |
106
112
  | [`src/edit.ts`](src/edit.ts) | `edit` 执行器:意图 waterfall、字面量编辑、观察 |
113
+ | [`src/patch/index.ts`](src/patch/index.ts)、[`types.ts`](src/patch/types.ts) | 内部 `executePatch` 入口与可序列化的逐操作报告 |
114
+ | [`src/patch/plan.ts`](src/patch/plan.ts) | 解析补丁并按 Session 工作目录解析路径;保留共享规范化目标的有序操作 |
115
+ | [`src/patch/preflight.ts`](src/patch/preflight.ts) | 模拟前序成功操作,在任何写入前收集观察、类型、文本与 hunk 失败 |
116
+ | [`src/patch/execute.ts`](src/patch/execute.ts) | 重新获取防护、顺序提交、记录实际效果并判断不确定失败 |
107
117
  | [`src/read-render.ts`](src/read-render.ts) | 不依赖 Cordis 的窗口构建与信封格式化 |
108
- | [`src/sandbox.ts`](src/sandbox.ts) | `write`/`edit` 共享的升权 API:策略解析与拒绝标记映射 |
118
+ | [`src/sandbox.ts`](src/sandbox.ts) | 各变更工具共享的升权 API:策略解析与拒绝标记映射 |
109
119
  | [`src/error.ts`](src/error.ts) | 防护变更失败的稳定模型侧诊断 |
110
120
  | [`src/mutation-result.ts`](src/mutation-result.ts) | 成功变更的观察记录与规范化结果路径 |
111
121
 
@@ -113,10 +123,16 @@ kind: "package-reference"
113
123
 
114
124
  四个工具共享同一种流程形态:用调用会话的 cwd 解析路径、运行适用的门禁、恰好执行一次提供方操作,并且只在成功后发出 `fs/observed`。`read` 与 `read_image` 为类型与大小路由付出一次 `stat`;`write` 与 `edit` 不执行 stat,因为防护来自意图槽位,提供方失败以类型化 `FsError` 结果呈现。各工具执行器位于 `src/read.ts`、`src/read-image.ts`、`src/write.ts` 与 `src/edit.ts`。
115
125
 
126
+ 内部补丁执行器接收原始补丁和已解析的沙箱策略。它建立有序计划,针对模拟状态预检全部操作,再通过 `writeText`、`patchText`、`deleteFile` 或一次 `moveFile` 调用提交。被预检拒绝的操作不产生模拟效果,任何拒绝都会阻止全部写入。沙箱围栏不参与模拟:与 `write`、`edit` 一样由提供方在每次提交时判断,被拒绝的操作使补丁停止并保留之前的操作。语法报告携带解析器失败;预检报告列出被拒绝的操作;提交报告为每个操作保留 `completed`、`failed`、`unknown` 或 `skipped` 状态及已知的 LF 文本变化。未解析的路径保留补丁原始写法;已解析的路径使用提供方显示路径。编程错误使调用拒绝。
127
+
116
128
  ### 观察与并发
117
129
 
118
130
  `fs/observed` 在操作成功之后通过普通 `ctx.emit` 发出;监听器的约定是同步且只有副作用的记录器,因此异步或可能失败的观察不属于该事件。`read` 允许并发调度,因为它唯一改变状态的操作是同步记录版本;稍后的 `write` 或 `edit` 会在目标锁内重新检查版本,因此记录器竞态会安全地失败,两个变更工具仍保持互斥。
119
131
 
132
+ 补丁预检读取从不发出 `fs/observed`。对目标的首次预检操作分发意图;同一目标的后续操作使用模拟状态。每次提交重新分发意图以取得当前防护。新增与更新记录存在,删除记录缺失,移动记录目标存在,且仅在源删除成功后记录源缺失;部分移动为 `failed`,只包含目标变化。移动源基线由 `moveFile` 在锁内返回。
133
+
134
+ 变更以 `FS_IO_ERROR` 拒绝后,执行器使用新的 `stat` 比较每个受影响目标的版本。全部未变表示已知失败;任何目标已变或比较失败均为 `unknown`,不记录观察或变化。`FS_ABORTED` 一律为 `unknown`:被取消的远端请求在提供方可能仍在写入时就已拒绝。执行在首个失败或未知提交后停止,或在信号已取消的操作开始前停止。
135
+
120
136
  </details>
121
137
 
122
138
  -----
@@ -240,6 +256,47 @@ Read a file before editing it (the default fs-observation-policy requires it), u
240
256
 
241
257
  仅追加;新增可见内容位于可复用请求前缀之后,不会使现有 KV Cache 条目失效。
242
258
 
259
+ ### 应用补丁
260
+
261
+ #### 模型看到的内容
262
+
263
+ `apply_patch` schema 要求一个 `input` 字符串(沿用 Codex 的参数名,在该工具上训练过的模型会不经提示地发送这个键),包含 `*** Begin Patch` / `*** End Patch`、Add/Update/Delete 文件头、可选 Move to,以及上下文/新增/删除 hunk 行。路径相对于 Session 工作目录。有围栏后端追加与 write/edit 相同的提权字段。成功行按 A/M/D 分组,完成的移动显示 `M <destination>`,与 Codex rust-v0.158.0 一致。空补丁显示 `Success. No operations in patch.`。停止的补丁只包含适用的 Completed、Failed、Outcome unknown 与 Not executed 小节;结果不确定时以重读建议结束。语法错误保留解析器消息。
264
+
265
+ ##### 系统提示
266
+
267
+ ```markdown
268
+ Prefer apply_patch over separate edit calls for changes across files or separated regions. Read a file before updating, deleting, or moving it (the default fs-observation-policy requires it), unless you just created or edited it in this session. The whole patch is checked first (syntax, hunk matching, missing files) and a rejected patch changes nothing; once applying starts, operations run in order, stop at the first failure, and are not rolled back, so re-read affected files before retrying when needed.
269
+ ```
270
+
271
+ ##### 结果示例
272
+
273
+ ```markdown
274
+ Success. Updated the following files:
275
+ A src/new.ts
276
+ M src/a.ts
277
+ D src/obsolete.ts
278
+
279
+ Patch stopped after 1 of 3 operations.
280
+ Completed:
281
+ M src/a.ts
282
+ Failed:
283
+ - operation 2 (move src/b.ts -> src/c.ts, patch line 6): source removal denied
284
+ destination src/c.ts was written; source src/b.ts remains
285
+ Not executed:
286
+ - operation 3 (add src/d.ts)
287
+
288
+ Patch rejected before any change (1 problems):
289
+ - operation 1 (update src/a.ts, patch line 2): cannot modify "src/a.ts": file has not been read — read the file, then retry
290
+ ```
291
+
292
+ #### Token 影响
293
+
294
+ 默认工具集在首轮请求新增一份补丁工具 schema 与三句提示。提交输出随操作数量与诊断增长,不随文件大小增长。
295
+
296
+ #### KV Cache 影响
297
+
298
+ 可见工具不变时保持稳定;调用和结果文本追加到历史。
299
+
243
300
  ## 已知限制与延期工作
244
301
 
245
302
  <a id="known-limitations-and-deferred-work"></a>
@@ -247,6 +304,7 @@ Read a file before editing it (the default fs-observation-policy requires it), u
247
304
 
248
305
  这些限制说明工具套件何时不合适,或何时需要特别的运维注意。它们是当前包约束,不是通用文件系统对比或任务积压。
249
306
 
307
+ - **补丁提交不回滚**——后续失败后,先前成功操作和已发布的移动目标仍保留在磁盘上,`unknown` 结果要求重读受影响文件后再重试。
250
308
  - **未交付面向模型的目录列表工具**:`ctx.fs.listDir` 服务于 skill(技能)发现等提供方代码,同级 `dsh-tool-fs-search` 包则提供基于 ripgrep 的 `glob` 与 `grep`,而不是扩展文件系统 seam。
251
309
  - **`read` 只处理 UTF-8 文本文件**:图像使用独立的 `read_image` 工具;PDF、音频和视频仍延期处理。目录目标为 `FS_NOT_REGULAR_FILE`。
252
310
  - **媒体类型按扩展名声明**:扩展名选择声明类型,附件存储的魔数校验保持权威;扩展名错误但格式正确的图像会得到改名修复提示,而不是被嗅探接受。只有没有扩展名的路径按文件签名识别格式。