@songtonyli/dsh-cli 0.1.87 → 0.1.89

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 (929) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/package.json +2 -2
  4. package/node_modules/@aws-sdk/credential-provider-env/package.json +3 -3
  5. package/node_modules/@aws-sdk/credential-provider-http/package.json +4 -4
  6. package/node_modules/@aws-sdk/credential-provider-ini/package.json +10 -10
  7. package/node_modules/@aws-sdk/credential-provider-login/package.json +4 -4
  8. package/node_modules/@aws-sdk/credential-provider-node/package.json +8 -8
  9. package/node_modules/@aws-sdk/credential-provider-process/package.json +3 -3
  10. package/node_modules/@aws-sdk/credential-provider-sso/package.json +5 -5
  11. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +4 -4
  12. package/node_modules/@aws-sdk/eventstream-handler-node/package.json +2 -2
  13. package/node_modules/@aws-sdk/middleware-eventstream/package.json +2 -2
  14. package/node_modules/@aws-sdk/middleware-websocket/package.json +3 -3
  15. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  16. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  17. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  18. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  19. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  20. package/node_modules/@aws-sdk/nested-clients/package.json +4 -4
  21. package/node_modules/@aws-sdk/token-providers/package.json +4 -4
  22. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  23. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  24. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  25. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  26. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  27. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  28. package/node_modules/@deepseek-ai/dsh/package.json +127 -125
  29. package/node_modules/@deepseek-ai/dsh-acp/package.json +26 -26
  30. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  31. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +7 -3
  32. package/node_modules/@deepseek-ai/dsh-action-cards/package.json +19 -19
  33. package/node_modules/@deepseek-ai/dsh-agent/package.json +21 -21
  34. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  35. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +28 -28
  36. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  37. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
  38. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
  39. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +8 -6
  40. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +27 -27
  41. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
  42. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +7 -3
  43. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +7 -3
  44. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +39 -39
  45. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +13 -13
  46. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  47. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
  48. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
  49. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  50. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +2 -0
  51. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +2 -0
  52. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +10 -0
  53. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +7 -0
  54. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
  55. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +12 -12
  56. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.i18n.yaml +2 -2
  57. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.md +2 -0
  58. package/node_modules/@deepseek-ai/dsh-api-remote-access/README.zh.md +2 -0
  59. package/node_modules/@deepseek-ai/dsh-api-remote-access/lib/typert.host.js +5 -1
  60. package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +9 -9
  61. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1541 -184
  62. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
  63. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +2 -1
  64. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
  65. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +45 -44
  66. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  67. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +6 -4
  68. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +6 -4
  69. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +56 -27
  70. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +1426 -454
  71. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +715 -57
  72. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +560 -40
  73. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/catalog.js +1 -0
  74. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +70 -35
  75. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/transport.js +1 -0
  76. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +5 -102
  77. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/assistant-stream.js +80 -0
  78. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/controller.js +294 -0
  79. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history/listener.js +297 -0
  80. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +52 -341
  81. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +98 -67
  82. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/controller.js +289 -0
  83. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/state/listener.js +112 -0
  84. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/web/controller.js +139 -0
  85. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +77 -75
  86. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  87. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +7 -3
  88. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +22 -22
  89. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
  90. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  91. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +4 -4
  92. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +6 -2
  93. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +6 -2
  94. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +143 -7
  95. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
  96. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  97. package/node_modules/@deepseek-ai/dsh-attachment/README.i18n.yaml +4 -4
  98. package/node_modules/@deepseek-ai/dsh-attachment/README.md +2 -2
  99. package/node_modules/@deepseek-ai/dsh-attachment/README.zh.md +2 -2
  100. package/node_modules/@deepseek-ai/dsh-attachment/lib/index.js +1 -1
  101. package/node_modules/@deepseek-ai/dsh-attachment/lib/types/index.js +1 -1
  102. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  103. package/node_modules/@deepseek-ai/dsh-attachment-local/README.i18n.yaml +2 -2
  104. package/node_modules/@deepseek-ai/dsh-attachment-local/README.md +2 -0
  105. package/node_modules/@deepseek-ai/dsh-attachment-local/README.zh.md +2 -0
  106. package/node_modules/@deepseek-ai/dsh-attachment-local/lib/index.js +1 -1
  107. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  108. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  109. package/node_modules/@deepseek-ai/dsh-base/package.json +100 -100
  110. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  111. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  112. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  113. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  114. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  115. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +7 -3
  116. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  117. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
  118. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +10 -10
  119. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +1 -1
  120. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +6 -6
  121. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +16 -16
  122. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +5 -5
  123. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +9 -9
  124. package/node_modules/@deepseek-ai/dsh-client-ui-action-cards/package.json +15 -15
  125. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +17 -17
  126. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +13 -13
  127. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +1 -1
  128. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  129. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +5 -5
  130. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +4 -4
  131. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +7 -3
  132. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +7 -3
  133. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +245 -76
  134. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +39 -39
  135. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -14
  136. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +6 -6
  137. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +9 -9
  138. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +9 -9
  139. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +290 -290
  140. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -34
  141. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +13 -13
  142. package/node_modules/@deepseek-ai/dsh-client-ui-creation-recommendations/package.json +10 -10
  143. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  144. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +1 -1
  145. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +1 -1
  146. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -59
  147. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -27
  148. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -7
  149. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +6 -6
  150. package/node_modules/@deepseek-ai/dsh-client-ui-entry-customization/package.json +11 -11
  151. package/node_modules/@deepseek-ai/dsh-client-ui-file-drag/package.json +7 -7
  152. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +4 -4
  153. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +2 -1
  154. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +2 -1
  155. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +5 -5
  156. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -14
  157. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -11
  158. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +10 -10
  159. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +9 -9
  160. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -15
  161. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +6 -6
  162. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +3 -2
  163. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +3 -2
  164. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +28 -3
  165. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +16 -16
  166. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +4 -4
  167. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +5 -3
  168. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +5 -3
  169. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +118 -69
  170. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +18 -18
  171. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -14
  172. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +15 -21
  173. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +19 -19
  174. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +6 -6
  175. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -2
  176. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +164 -106
  178. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +18 -18
  179. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +12 -12
  180. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-recommendations/package.json +13 -13
  181. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  182. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -3
  183. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +20 -20
  184. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +6 -6
  185. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +9 -9
  186. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +7 -7
  187. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
  188. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
  189. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
  190. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +4 -3
  191. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +17 -17
  192. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +8 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  194. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +1 -1
  195. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +1 -1
  196. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +2 -2
  197. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +17 -17
  198. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +11 -11
  199. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +11 -11
  200. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +7 -7
  201. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +8 -8
  202. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +8 -8
  203. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/lib/client.js +176 -2
  204. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +6 -6
  205. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +8 -8
  206. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +2 -2
  207. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +1 -1
  208. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +1 -1
  209. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +42 -18
  210. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +8 -8
  211. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +9 -9
  212. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  213. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +4 -0
  214. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +4 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +2 -2
  216. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -11
  217. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +10 -10
  218. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +19 -19
  219. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +13 -13
  220. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  221. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +1 -1
  222. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +1 -1
  223. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +10 -0
  224. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +14 -14
  225. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -14
  226. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
  227. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +17 -17
  228. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +4 -4
  229. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +2 -2
  230. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +2 -2
  231. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +5 -4
  232. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +12 -12
  233. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  234. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +3 -1
  235. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +3 -1
  236. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -1
  237. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +29 -29
  238. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +6 -6
  239. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +5 -3
  240. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +5 -3
  241. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +158 -21
  242. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/index.js +239 -4
  243. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/typert.host.js +75 -0
  244. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/typert.remote-client.js +64 -0
  245. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +43 -21
  246. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  247. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
  248. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
  249. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +8 -6
  250. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +22 -22
  251. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +13 -13
  252. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +6 -6
  253. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +5 -3
  254. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +5 -3
  255. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +36 -17
  256. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +25 -25
  257. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  258. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  259. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  260. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  261. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +7 -3
  262. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  263. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  264. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +26 -26
  265. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  266. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
  267. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +5 -5
  268. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  269. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +98 -40
  270. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +10 -10
  271. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +14 -6
  272. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +23 -23
  273. package/node_modules/@deepseek-ai/dsh-creation-recommendations/package.json +21 -21
  274. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  275. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  276. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +10 -10
  277. package/node_modules/@deepseek-ai/dsh-cua/README.md +16 -7
  278. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +16 -7
  279. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +18 -38
  280. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +342 -146
  281. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +19 -20
  282. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +13 -14
  283. package/node_modules/@deepseek-ai/dsh-cua/package.json +53 -50
  284. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +8 -8
  285. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +9 -9
  286. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +9 -9
  287. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +12 -8
  288. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +11 -11
  289. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  290. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  291. package/node_modules/@deepseek-ai/dsh-deliverable-file-references/package.json +5 -5
  292. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  293. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +22 -22
  294. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.md +0 -17
  295. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/docs/DETAIL.zh.md +0 -17
  296. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/de.json +1 -1
  297. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +1 -1
  298. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/es.json +1 -1
  299. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/fr.json +1 -1
  300. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ja.json +1 -1
  301. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/pt.json +1 -1
  302. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/ru.json +1 -1
  303. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +1 -1
  304. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  305. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +4 -4
  306. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +4 -4
  307. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  308. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.md +0 -16
  309. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/docs/DETAIL.zh.md +0 -16
  310. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/de.json +1 -1
  311. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/en.json +1 -1
  312. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/es.json +1 -1
  313. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/fr.json +1 -1
  314. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ja.json +1 -1
  315. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/pt.json +1 -1
  316. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/ru.json +1 -1
  317. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/locale/zh.json +1 -1
  318. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +45 -45
  319. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +4 -4
  320. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +12 -12
  321. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +20 -20
  322. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +37 -0
  323. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +135 -0
  324. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +135 -0
  325. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +8745 -0
  326. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +3131 -0
  327. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +2222 -0
  328. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +1284 -0
  329. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/de.json +6 -0
  330. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/en.json +6 -0
  331. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/es.json +6 -0
  332. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/fr.json +6 -0
  333. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/ja.json +6 -0
  334. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/pt.json +6 -0
  335. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/ru.json +6 -0
  336. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/locale/zh.json +6 -0
  337. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/package.json +117 -0
  338. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.i18n.yaml +43 -0
  339. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.md +121 -0
  340. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/README.zh.md +121 -0
  341. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/lib/client.js +6272 -0
  342. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/lib/index.js +6 -0
  343. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/de.json +6 -0
  344. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/en.json +6 -0
  345. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/es.json +6 -0
  346. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/fr.json +6 -0
  347. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/ja.json +6 -0
  348. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/pt.json +6 -0
  349. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/ru.json +6 -0
  350. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/locale/zh.json +6 -0
  351. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-stats/package.json +71 -0
  352. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +4 -4
  353. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +15 -15
  354. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/DETAIL.md +0 -17
  355. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/docs/DETAIL.zh.md +0 -17
  356. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/de.json +1 -1
  357. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/en.json +1 -1
  358. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/es.json +1 -1
  359. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/fr.json +1 -1
  360. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ja.json +1 -1
  361. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/pt.json +1 -1
  362. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/ru.json +1 -1
  363. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/locale/zh.json +1 -1
  364. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +6 -6
  365. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +37 -0
  366. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +100 -0
  367. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +100 -0
  368. package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +495 -0
  369. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/de.json +6 -0
  370. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/en.json +6 -0
  371. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/es.json +6 -0
  372. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/fr.json +6 -0
  373. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/ja.json +6 -0
  374. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/pt.json +6 -0
  375. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/ru.json +6 -0
  376. package/node_modules/@deepseek-ai/dsh-experimental-forge/locale/zh.json +6 -0
  377. package/node_modules/@deepseek-ai/dsh-experimental-forge/package.json +45 -0
  378. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.i18n.yaml +37 -0
  379. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.md +77 -0
  380. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/README.zh.md +77 -0
  381. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/cordis.patch.yml +17 -0
  382. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/icon.svg +11 -0
  383. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/lib/index.js +1 -0
  384. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/de.json +6 -0
  385. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/en.json +6 -0
  386. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/es.json +6 -0
  387. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/fr.json +6 -0
  388. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ja.json +6 -0
  389. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/pt.json +6 -0
  390. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/ru.json +6 -0
  391. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/locale/zh.json +6 -0
  392. package/node_modules/@deepseek-ai/dsh-experimental-forge-bundle/package.json +53 -0
  393. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +37 -0
  394. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +105 -0
  395. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +105 -0
  396. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +813 -0
  397. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/de.json +6 -0
  398. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/en.json +6 -0
  399. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/es.json +6 -0
  400. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/fr.json +6 -0
  401. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/ja.json +6 -0
  402. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/pt.json +6 -0
  403. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/ru.json +6 -0
  404. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/locale/zh.json +6 -0
  405. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +47 -0
  406. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.i18n.yaml +37 -0
  407. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.md +105 -0
  408. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/README.zh.md +105 -0
  409. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/lib/index.js +844 -0
  410. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/de.json +6 -0
  411. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/en.json +6 -0
  412. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/es.json +6 -0
  413. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/fr.json +6 -0
  414. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/ja.json +6 -0
  415. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/pt.json +6 -0
  416. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/ru.json +6 -0
  417. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/locale/zh.json +6 -0
  418. package/node_modules/@deepseek-ai/dsh-experimental-forge-session/package.json +88 -0
  419. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +17 -17
  420. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.i18n.yaml +5 -5
  421. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.md +3 -3
  422. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/README.zh.md +2 -2
  423. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/cordis.patch.yml +2 -0
  424. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.md +0 -15
  425. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/docs/DETAIL.zh.md +0 -15
  426. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/de.json +1 -1
  427. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/en.json +1 -1
  428. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/es.json +1 -1
  429. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/fr.json +1 -1
  430. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ja.json +1 -1
  431. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/pt.json +1 -1
  432. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/ru.json +1 -1
  433. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/locale/zh.json +1 -1
  434. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +7 -6
  435. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.i18n.yaml +52 -0
  436. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.md +177 -0
  437. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/README.zh.md +177 -0
  438. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/cordis.patch.yml +17 -0
  439. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/icon.svg +12 -0
  440. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +7130 -0
  441. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +7781 -0
  442. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/owner-gateway/cli.js +370 -0
  443. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/retry-backoff-ccJYtzOj.js +121 -0
  444. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.host.js +767 -0
  445. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/typert.remote-client.js +551 -0
  446. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations-krUNq6VU.js +287 -0
  447. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/viewer-declarations.js +26 -0
  448. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/de.json +6 -0
  449. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/en.json +6 -0
  450. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/es.json +6 -0
  451. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/fr.json +6 -0
  452. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/ja.json +6 -0
  453. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/pt.json +6 -0
  454. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/ru.json +6 -0
  455. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/locale/zh.json +6 -0
  456. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +160 -0
  457. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.i18n.yaml +37 -0
  458. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.md +93 -0
  459. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/README.zh.md +93 -0
  460. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/lib/index.js +738 -0
  461. package/node_modules/@deepseek-ai/dsh-experimental-liveshare-protocol/package.json +37 -0
  462. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.md +1 -18
  463. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/DETAIL.zh.md +1 -18
  464. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.svg +1 -1
  465. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/docs/preview.zh.svg +1 -1
  466. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/de.json +1 -1
  467. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +1 -1
  468. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/es.json +1 -1
  469. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/fr.json +1 -1
  470. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ja.json +1 -1
  471. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/pt.json +1 -1
  472. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/ru.json +1 -1
  473. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +1 -1
  474. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +5 -5
  475. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.md +0 -16
  476. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/docs/DETAIL.zh.md +0 -16
  477. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/de.json +1 -1
  478. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/en.json +1 -1
  479. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/es.json +1 -1
  480. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/fr.json +1 -1
  481. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ja.json +1 -1
  482. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/pt.json +1 -1
  483. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/ru.json +1 -1
  484. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/locale/zh.json +1 -1
  485. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +5 -5
  486. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +12 -12
  487. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.md +0 -16
  488. package/node_modules/@deepseek-ai/dsh-experimental-session-search/docs/DETAIL.zh.md +0 -16
  489. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/de.json +1 -1
  490. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/en.json +1 -1
  491. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/es.json +1 -1
  492. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/fr.json +1 -1
  493. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ja.json +1 -1
  494. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/pt.json +1 -1
  495. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/ru.json +1 -1
  496. package/node_modules/@deepseek-ai/dsh-experimental-session-search/locale/zh.json +1 -1
  497. package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +5 -5
  498. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.md +0 -10
  499. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/docs/DETAIL.zh.md +0 -10
  500. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/de.json +1 -1
  501. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/en.json +1 -1
  502. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/es.json +1 -1
  503. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/fr.json +1 -1
  504. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ja.json +1 -1
  505. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/pt.json +1 -1
  506. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/ru.json +1 -1
  507. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/locale/zh.json +1 -1
  508. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +4 -4
  509. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
  510. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  511. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/DETAIL.md +0 -16
  512. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/docs/DETAIL.zh.md +0 -16
  513. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/de.json +1 -1
  514. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/en.json +1 -1
  515. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/es.json +1 -1
  516. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/fr.json +1 -1
  517. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ja.json +1 -1
  518. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/pt.json +1 -1
  519. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/ru.json +1 -1
  520. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/locale/zh.json +1 -1
  521. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +6 -6
  522. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  523. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.md +0 -15
  524. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/docs/DETAIL.zh.md +0 -15
  525. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/lib/index.js +2 -2
  526. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/de.json +1 -1
  527. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/en.json +1 -1
  528. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/es.json +1 -1
  529. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/fr.json +1 -1
  530. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ja.json +1 -1
  531. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/pt.json +1 -1
  532. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/ru.json +1 -1
  533. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/locale/zh.json +1 -1
  534. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +23 -23
  535. package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +29 -29
  536. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  537. package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.i18n.yaml +4 -4
  538. package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.md +5 -3
  539. package/node_modules/@deepseek-ai/dsh-experimental-worktree/README.zh.md +5 -3
  540. package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/index.js +213 -54
  541. package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +24 -25
  542. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  543. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +17 -17
  544. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  545. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  546. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  547. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  548. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +7 -3
  549. package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
  550. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  551. package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +13 -13
  552. package/node_modules/@deepseek-ai/dsh-headless/package.json +30 -30
  553. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  554. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  555. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  556. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +20 -20
  557. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  558. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.i18n.yaml +4 -4
  559. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.md +2 -1
  560. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/README.zh.md +2 -1
  561. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/lib/index.js +5 -1
  562. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  563. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  564. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  565. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +2 -2
  566. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +2 -0
  567. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +2 -0
  568. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +10 -1
  569. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +1 -0
  570. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +1 -0
  571. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +13 -1
  572. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  573. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
  574. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +5 -5
  575. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
  576. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  577. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  578. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  579. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  580. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  581. package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
  582. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
  583. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +6 -1
  584. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +40 -3
  585. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +4 -0
  586. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -10
  587. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
  588. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  589. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +1 -1
  590. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +1 -1
  591. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +264 -93
  592. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +45 -45
  593. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.i18n.yaml +2 -2
  594. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.md +4 -2
  595. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/README.zh.md +4 -2
  596. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/lib/index.js +8 -15
  597. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +17 -17
  598. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.i18n.yaml +2 -2
  599. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.md +2 -2
  600. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/README.zh.md +2 -2
  601. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/lib/index.js +12 -17
  602. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
  603. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +28 -28
  604. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  605. package/node_modules/@deepseek-ai/dsh-mcp-client/README.i18n.yaml +2 -2
  606. package/node_modules/@deepseek-ai/dsh-mcp-client/README.md +1 -1
  607. package/node_modules/@deepseek-ai/dsh-mcp-client/README.zh.md +1 -1
  608. package/node_modules/@deepseek-ai/dsh-mcp-client/lib/index.js +3 -2
  609. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +24 -24
  610. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.i18n.yaml +2 -2
  611. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.md +1 -1
  612. package/node_modules/@deepseek-ai/dsh-mcp-resources/README.zh.md +1 -1
  613. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +16 -16
  614. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  615. package/node_modules/@deepseek-ai/dsh-message-quotes/package.json +9 -9
  616. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  617. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +6 -1
  618. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  619. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  620. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  621. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  622. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  623. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +6 -2
  624. package/node_modules/@deepseek-ai/dsh-official-bundles/package.json +4 -4
  625. package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
  626. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  627. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
  628. package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +1 -0
  629. package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +1 -0
  630. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  631. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +7 -3
  632. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -23
  633. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  634. package/node_modules/@deepseek-ai/dsh-personalized-recommendations/package.json +23 -23
  635. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  636. package/node_modules/@deepseek-ai/dsh-plugin-detail/package.json +3 -3
  637. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +6 -6
  638. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +8 -2
  639. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +8 -2
  640. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +166 -34
  641. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +60 -37
  642. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +37 -35
  643. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/diagnostic.js +72 -0
  644. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +137 -31
  645. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +26 -4
  646. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -0
  647. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +43 -39
  648. package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +31 -31
  649. package/node_modules/@deepseek-ai/dsh-plugin-market-index/package.json +4 -4
  650. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  651. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.i18n.yaml +2 -2
  652. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.md +1 -1
  653. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/README.zh.md +1 -1
  654. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +7 -3
  655. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/package.json +17 -17
  656. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.i18n.yaml +10 -10
  657. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.md +5 -5
  658. package/node_modules/@deepseek-ai/dsh-ptc-runtime/README.zh.md +5 -5
  659. package/node_modules/@deepseek-ai/dsh-ptc-runtime/lib/index.js +4 -0
  660. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  661. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +29 -29
  662. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +50 -22
  663. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +49 -21
  664. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/configuration.js +24 -0
  665. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +413 -597
  666. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/persistent-process.js +5853 -125
  667. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/process.js +5865 -91
  668. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +31 -24
  669. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  670. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  671. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +6 -1
  672. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  673. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  674. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
  675. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  676. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
  677. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  678. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  679. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/types-DFdfvhLN.js +1411 -0
  680. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
  681. package/node_modules/@deepseek-ai/dsh-schedule/package.json +37 -37
  682. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  683. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +19 -19
  684. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +33 -33
  685. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +39 -39
  686. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +11 -11
  687. package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
  688. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +19 -19
  689. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  690. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  691. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +7 -7
  692. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  693. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  694. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  695. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
  696. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +24 -24
  697. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  698. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +6 -1
  699. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  700. package/node_modules/@deepseek-ai/dsh-session-projection/README.i18n.yaml +5 -2
  701. package/node_modules/@deepseek-ai/dsh-session-projection/README.md +15 -0
  702. package/node_modules/@deepseek-ai/dsh-session-projection/README.zh.md +15 -0
  703. package/node_modules/@deepseek-ai/dsh-session-projection/lib/index.js +4 -2
  704. package/node_modules/@deepseek-ai/dsh-session-projection/lib/types/index.js +3 -1
  705. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +6 -6
  706. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  707. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  708. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  709. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +7 -3
  710. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +41 -41
  711. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  712. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  713. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
  714. package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
  715. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +15 -15
  716. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +20 -20
  717. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  718. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  719. package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
  720. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  721. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  722. package/node_modules/@deepseek-ai/dsh-skill/README.i18n.yaml +2 -2
  723. package/node_modules/@deepseek-ai/dsh-skill/README.md +1 -1
  724. package/node_modules/@deepseek-ai/dsh-skill/README.zh.md +1 -1
  725. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  726. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  727. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.i18n.yaml +4 -4
  728. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.md +3 -2
  729. package/node_modules/@deepseek-ai/dsh-skill-filesystem/README.zh.md +3 -2
  730. package/node_modules/@deepseek-ai/dsh-skill-filesystem/lib/index.js +14 -3
  731. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  732. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +10 -10
  733. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  734. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  735. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +35 -35
  736. package/node_modules/@deepseek-ai/dsh-storage/README.i18n.yaml +2 -2
  737. package/node_modules/@deepseek-ai/dsh-storage/README.md +1 -1
  738. package/node_modules/@deepseek-ai/dsh-storage/README.zh.md +1 -1
  739. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  740. package/node_modules/@deepseek-ai/dsh-storage-domain/README.i18n.yaml +4 -4
  741. package/node_modules/@deepseek-ai/dsh-storage-domain/README.md +3 -3
  742. package/node_modules/@deepseek-ai/dsh-storage-domain/README.zh.md +3 -3
  743. package/node_modules/@deepseek-ai/dsh-storage-domain/lib/index.js +10 -12
  744. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
  745. package/node_modules/@deepseek-ai/dsh-storage-json/README.i18n.yaml +10 -10
  746. package/node_modules/@deepseek-ai/dsh-storage-json/README.md +9 -7
  747. package/node_modules/@deepseek-ai/dsh-storage-json/README.zh.md +9 -7
  748. package/node_modules/@deepseek-ai/dsh-storage-json/lib/index.js +50 -49
  749. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  750. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +7 -3
  751. package/node_modules/@deepseek-ai/dsh-subagent/package.json +51 -51
  752. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  753. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +15 -15
  754. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +19 -19
  755. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  756. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  757. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
  758. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  759. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +22 -22
  760. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  761. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  762. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +6 -1
  763. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  764. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  765. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.i18n.yaml +2 -2
  766. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.md +1 -1
  767. package/node_modules/@deepseek-ai/dsh-tool-ask-user/README.zh.md +1 -1
  768. package/node_modules/@deepseek-ai/dsh-tool-ask-user/lib/index.js +2 -2
  769. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +13 -13
  770. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +37 -37
  771. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +27 -27
  772. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +10 -10
  773. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +789 -26
  774. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +17 -17
  775. package/node_modules/@deepseek-ai/dsh-tool-executor-native/package.json +5 -5
  776. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.i18n.yaml +6 -6
  777. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.md +5 -3
  778. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/README.zh.md +5 -3
  779. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/index.js +9 -3
  780. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/errors.js +2 -1
  781. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ptc.js +7 -2
  782. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/lib/types/ts-types.js +1 -1
  783. package/node_modules/@deepseek-ai/dsh-tool-executor-ptc/package.json +28 -28
  784. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +4 -4
  785. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +1 -1
  786. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +3 -3
  787. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +8 -5
  788. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +36 -36
  789. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.i18n.yaml +9 -6
  790. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.md +19 -1
  791. package/node_modules/@deepseek-ai/dsh-tool-fs-search/README.zh.md +19 -1
  792. package/node_modules/@deepseek-ai/dsh-tool-fs-search/lib/index.js +21 -8
  793. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +31 -31
  794. package/node_modules/@deepseek-ai/dsh-tool-goal/README.i18n.yaml +2 -2
  795. package/node_modules/@deepseek-ai/dsh-tool-goal/README.md +1 -1
  796. package/node_modules/@deepseek-ai/dsh-tool-goal/README.zh.md +1 -1
  797. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +5 -10
  798. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  799. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +19 -19
  800. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +21 -21
  801. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +35 -35
  802. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +28 -28
  803. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +24 -24
  804. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +14 -14
  805. package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +27 -27
  806. package/node_modules/@deepseek-ai/dsh-tool-skill/README.i18n.yaml +23 -14
  807. package/node_modules/@deepseek-ai/dsh-tool-skill/README.md +27 -8
  808. package/node_modules/@deepseek-ai/dsh-tool-skill/README.zh.md +27 -8
  809. package/node_modules/@deepseek-ai/dsh-tool-skill/lib/index.js +27 -20
  810. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +18 -18
  811. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +23 -23
  812. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +12 -12
  813. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +7 -5
  814. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +7 -5
  815. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +145 -211
  816. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +25 -27
  817. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +22 -22
  818. package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +32 -32
  819. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +19 -19
  820. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +24 -24
  821. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +24 -24
  822. package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +13 -13
  823. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +12 -12
  824. package/node_modules/@deepseek-ai/dsh-tools/package.json +20 -20
  825. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +13 -7
  826. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +85 -85
  827. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +10 -10
  828. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  829. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  830. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  831. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
  832. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +1 -1
  833. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +1 -1
  834. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +7 -3
  835. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
  836. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
  837. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  838. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  839. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  840. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  841. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  842. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +0 -3
  843. package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -151
  844. package/node_modules/@deepseek-ai/dsh-web-deepseek-api/package.json +19 -19
  845. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.i18n.yaml +8 -8
  846. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.md +6 -3
  847. package/node_modules/@deepseek-ai/dsh-web-fetch-http/README.zh.md +6 -3
  848. package/node_modules/@deepseek-ai/dsh-web-fetch-http/lib/index.js +32 -21
  849. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +9 -9
  850. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-UeToUMuD.js → index--TtJvO-i.js} +84 -84
  851. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{index-91FlLSYh.css → index-Jtzf36XE.css} +1 -1
  852. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{graphql-BIiNFDN_.js → graphql-C-Uijqkk.js} +2 -2
  853. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{http-DIhnzaXE.js → http-CLu1VCSi.js} +2 -2
  854. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{php-B4EoFdzs.js → php-CjQPq1Mz.js} +2 -2
  855. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{rst-BHSXxbFM.js → rst-BuDKiyD7.js} +2 -2
  856. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{ruby-DYyEMX7k.js → ruby-ZtjE4NPI.js} +2 -2
  857. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{svelte-CwMGesqy.js → svelte-Tt81icjn.js} +2 -2
  858. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/langs/{vue-DgeFhH50.js → vue-B5SDFeDA.js} +2 -2
  859. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/{vendor-D3p0kQ7Q.js → vendor-7utBqO4o.js} +25 -25
  860. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +3 -3
  861. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +21 -20
  862. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +18 -18
  863. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  864. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  865. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  866. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  867. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.i18n.yaml +2 -2
  868. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.md +1 -1
  869. package/node_modules/@deepseek-ai/dsh-workflow-ptc/README.zh.md +1 -1
  870. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +5 -1
  871. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +39 -39
  872. package/node_modules/@deepseek-ai/dsh-working-directory/package.json +21 -21
  873. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  874. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +23 -23
  875. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  876. package/node_modules/acorn/CHANGELOG.md +1012 -0
  877. package/node_modules/acorn/LICENSE +21 -0
  878. package/node_modules/acorn/README.md +309 -0
  879. package/node_modules/acorn/bin/acorn +4 -0
  880. package/node_modules/acorn/dist/acorn.js +6370 -0
  881. package/node_modules/acorn/dist/acorn.mjs +6341 -0
  882. package/node_modules/acorn/dist/bin.js +90 -0
  883. package/node_modules/acorn/package.json +47 -0
  884. package/node_modules/acorn-walk/CHANGELOG.md +209 -0
  885. package/node_modules/{@deepseek-ai/dsh-experimental-worktree → acorn-walk}/LICENSE +5 -5
  886. package/node_modules/acorn-walk/README.md +124 -0
  887. package/node_modules/acorn-walk/dist/walk.js +485 -0
  888. package/node_modules/acorn-walk/dist/walk.mjs +467 -0
  889. package/node_modules/acorn-walk/package.json +47 -0
  890. package/node_modules/bowser/README.md +26 -3
  891. package/node_modules/bowser/bowser.mjs +2225 -0
  892. package/node_modules/bowser/bundled.js +14 -1
  893. package/node_modules/bowser/es5.js +14 -1
  894. package/node_modules/bowser/package.json +84 -27
  895. package/node_modules/bowser/src/bowser.js +9 -1
  896. package/node_modules/bowser/src/constants.js +7 -0
  897. package/node_modules/bowser/src/parser-browsers.js +73 -7
  898. package/node_modules/bowser/src/parser-engines.js +12 -0
  899. package/node_modules/bowser/src/parser-os.js +3 -1
  900. package/node_modules/bowser/src/parser-platforms.js +3 -1
  901. package/node_modules/bowser/src/parser.js +22 -5
  902. package/node_modules/bowser/src/utils.js +16 -0
  903. package/node_modules/shell-quote/.github/FUNDING.yml +12 -0
  904. package/node_modules/shell-quote/LICENSE +24 -0
  905. package/node_modules/shell-quote/README.md +246 -0
  906. package/node_modules/shell-quote/index.js +4 -0
  907. package/node_modules/shell-quote/package.json +66 -0
  908. package/node_modules/shell-quote/parse.js +382 -0
  909. package/node_modules/shell-quote/quote.js +85 -0
  910. package/node_modules/shell-quote/tsconfig.json +10 -0
  911. package/package.json +361 -341
  912. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.i18n.yaml +0 -37
  913. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.md +0 -91
  914. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/README.zh.md +0 -91
  915. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/lib/client.js +0 -93
  916. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/lib/index.js +0 -6
  917. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/de.json +0 -6
  918. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/en.json +0 -6
  919. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/es.json +0 -6
  920. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/fr.json +0 -6
  921. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ja.json +0 -6
  922. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/pt.json +0 -6
  923. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/ru.json +0 -6
  924. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/locale/zh.json +0 -6
  925. package/node_modules/@deepseek-ai/dsh-client-ui-deepseek-model-label-1017/package.json +0 -59
  926. package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/directory.d.ts +0 -7
  927. package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/index.d.ts +0 -54
  928. package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/process.d.ts +0 -29
  929. package/node_modules/@deepseek-ai/dsh-experimental-worktree/lib/types/types.d.ts +0 -20
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-storage",
3
3
  "description": "Storage hub (ctx.storage): named backend registry plus mounted data-form facilities for the DeepSeek Harness",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,9 +29,9 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/cordis": "4.0.5"
32
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
33
33
  },
34
34
  "devDependencies": {
35
- "@deepseek-ai/cordis": "4.0.5"
35
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
36
36
  }
37
37
  }
@@ -36,8 +36,8 @@
36
36
  en: 1cc8b33834457c38
37
37
  zh: c549afc7c4960e9e
38
38
  /deepseek-ai-dsh-storage-domain/understand-the-implementation/design-concept:
39
- en: 4dffdacca3d2cd9c
40
- zh: b41875243c4a1c0b
39
+ en: c1d0f46c6cd3ffb2
40
+ zh: e111921534389435
41
41
  /deepseek-ai-dsh-storage-domain/understand-the-implementation/open-sequence:
42
42
  en: 052da5d6c45205ca
43
43
  zh: 724c875e3c431fee
@@ -63,8 +63,8 @@
63
63
  en: 0e7d1c06d17c542f
64
64
  zh: ead94d355f161be1
65
65
  /deepseek-ai-dsh-storage-domain/known-limitations-and-deferred-work:
66
- en: bd03348ad87d9210
67
- zh: f50d6f19bcac93b9
66
+ en: fc50f5990ce953c9
67
+ zh: b30fdc41199a9702
68
68
  /deepseek-ai-dsh-storage-domain/known-limitations-and-deferred-work/dev-note:
69
69
  en: e67f633dc6fe7773
70
70
  zh: 3bb0c20c93f16f98
@@ -85,7 +85,7 @@ The domain layer is a single implementation, not an abstracted seam: consumers d
85
85
  ### Design concept
86
86
 
87
87
  - **The spec object is the single source of truth.** `defineDomain` pins the spec's literal types and validates its fields at the owning package's module load, before any medium is touched. Record schemas are zod, so `z.infer` avoids duplicating consumer types; plugin `Config` stays schemastery.
88
- - **Memory is authoritative; the medium is the durable projection.** Reads are synchronous from validated in-memory state. Every write queues on one per-domain write chain: backend durability first, then memory mutation, then `domain/changed` — a rejected backend write leaves memory untouched, so reads never diverge from the medium; a backend that reports `unknown-state` quarantines the domain, whose reads and later writes then reject until it is closed.
88
+ - **Memory is authoritative; the medium is the durable projection.** Reads are synchronous from validated in-memory state. Every write queues on one per-domain write chain: backend durability first, then memory mutation, then `domain/changed`. A rejected backend write does not publish a domain change; an `unknown-state` rejection quarantines reads and later writes until close. Any unknown durable outcome requires closing and reopening the backend and domain before further use.
89
89
  - **One write chain per domain.** `put`, `delete`, `deleteMany`, `update`, and `global.set` all queue on it; `update`'s transform runs at its chain slot, so concurrent updates never interleave. Records are plain immutable data — returned values are the stored objects themselves and must not be mutated in place.
90
90
  - **Writes emit after the commit point.** `domain/changed` is a notification, not a transaction participant: a throwing listener is contained with a logged warning rather than rejecting the already-durable write.
91
91
 
@@ -144,8 +144,8 @@ Independent: domain reads and writes never touch request prefixes, so nothing he
144
144
  These limits define when the domain layer is a poor fit or needs special operational care. They are current package constraints, not a task backlog.
145
145
 
146
146
  - **Single-process change visibility** — `domain/changed` is an in-process event; a second host process or a reconnecting GUI observes no changes until the cross-process revision pattern lands ([Agent Note](../../../.agents/notes/proposed/architecture/2026-07-24-domain-kv-storage-and-workspace.md)).
147
- - **No cross-table transactions, secondary indexes, or multi-segment keys** — each write touches one record; these extensions are deferred in the Agent Note's out-of-scope list.
148
- - **No data migration** — a domain whose stored version differs from its spec rejects at open (`version-mismatch`); changing a schema requires migrating the stored data by hand.
147
+ - **No cross-table transactions, secondary indexes, or multi-segment keys** — each write targets one table or the global slot; these extensions are deferred in the Agent Note's out-of-scope list.
148
+ - **No incompatible-value migration runner** — `compatibleVersions` admits older data for the current decoder; consumers convert values when rewriting selected records. A current stamp can still contain historical rows. See [domain versioning](../../../docs/subsystems/storage.md#domain-versioning) for backend differences, upgrades, downgrade refusal, and retiring old readers.
149
149
 
150
150
  <a id="dev-note"></a>
151
151
  ### Dev Note
@@ -85,7 +85,7 @@ domain.table('workspaces').update(id, (r) => ({ ...r, path: newPath }))
85
85
  ### 设计理念
86
86
 
87
87
  - **spec 对象是唯一真源。** `defineDomain` 固定 spec 的字面类型,并在所属包的模块加载时、任何介质被触碰之前校验其字段。记录 schema 使用 zod,因此 `z.infer` 可避免重复定义消费方类型;插件 `Config` 仍由 schemastery 负责。
88
- - **内存具有最终决定权;介质是持久投影。** 读取同步取自经过校验的内存状态。每次写入都在每个领域一条的写入链上排队:先到达后端持久状态,再变更内存,然后发出 `domain/changed`——被拒绝的后端写入不会触碰内存,因此读取永远不会与介质分叉;若后端报告 `unknown-state`,领域会被隔离,其读取与后续写入都会拒绝,直到领域关闭。
88
+ - **内存具有最终决定权;介质是持久投影。** 读取同步取自经过校验的内存状态。每次写入都在每个领域一条的写入链上排队:先到达后端持久状态,再变更内存,然后发出 `domain/changed`。后端写入被拒绝时不发布领域变更;`unknown-state` 拒绝会隔离读取和后续写入,直至关闭。持久化结果未知时,必须先关闭并重新打开后端与领域,才能继续使用。
89
89
  - **每个领域一条写入链。** `put`、`delete`、`deleteMany`、`update` 与 `global.set` 都在其上排队;`update` 的变换在链上自己的槽位运行,因此并发更新绝不会交错。记录是普通不可变数据——返回值就是已存对象本身,绝不能原地修改。
90
90
  - **写入在提交点之后发出。** `domain/changed` 是通知,不是事务参与者:监听器抛出异常时,系统会隔离该异常并记录警告,而不会让已经持久的写入被拒绝。
91
91
 
@@ -144,8 +144,8 @@ domain.table('workspaces').update(id, (r) => ({ ...r, path: newPath }))
144
144
  这些限制说明领域层何时不合适,或何时需要特别的运维注意。它们是当前包约束,不是任务积压。
145
145
 
146
146
  - **变更只在单进程内可见**——`domain/changed` 是进程内事件;在跨进程修订模式落地前,第二个主机进程或重新连接的 GUI 无法观察变更([Agent Note](../../../.agents/notes/proposed/architecture/2026-07-24-domain-kv-storage-and-workspace.zh.md))。
147
- - **没有跨表事务、二级索引或多段键**——每次写入只触碰一条记录;这些扩展列在 Agent Note 的范围外清单中。
148
- - **没有数据迁移**——领域的已存版本与 spec 不同时,打开操作会被拒绝(`version-mismatch`);修改 schema 需要手工迁移已存数据。
147
+ - **没有跨表事务、二级索引或多段键**——每次写入针对一张表或全局槽位;这些扩展列在 Agent Note 的范围外清单中。
148
+ - **没有不兼容值迁移执行器**——`compatibleVersions` 允许当前解码器读取旧数据;消费方在重写选定记录时转换其值。当前版本戳下仍可能包含历史行。后端差异、升级、降级拒绝与移除旧读取器参阅[领域版本](../../../docs/subsystems/storage.zh.md#domain-versioning)。
149
149
 
150
150
  <a id="dev-note"></a>
151
151
  ### 开发备注
@@ -279,12 +279,7 @@ var KvTableImpl = class {
279
279
  if (!this.records.has(key)) return false;
280
280
  await this.host.unit.deleteRecord(this.tableName, key);
281
281
  this.records.delete(key);
282
- this.host.emitChanged({
283
- domain: this.host.domainName,
284
- table: this.tableName,
285
- key,
286
- operation: "deleted"
287
- });
282
+ this.emitDeleted(key);
288
283
  return true;
289
284
  });
290
285
  }
@@ -294,12 +289,7 @@ var KvTableImpl = class {
294
289
  if (present.length === 0) return 0;
295
290
  await this.host.unit.deleteRecords(this.tableName, present);
296
291
  for (const key of present) this.records.delete(key);
297
- for (const key of present) this.host.emitChanged({
298
- domain: this.host.domainName,
299
- table: this.tableName,
300
- key,
301
- operation: "deleted"
302
- });
292
+ for (const key of present) this.emitDeleted(key);
303
293
  return present.length;
304
294
  });
305
295
  }
@@ -322,6 +312,14 @@ var KvTableImpl = class {
322
312
  value
323
313
  });
324
314
  }
315
+ emitDeleted(key) {
316
+ this.host.emitChanged({
317
+ domain: this.host.domainName,
318
+ table: this.tableName,
319
+ key,
320
+ operation: "deleted"
321
+ });
322
+ }
325
323
  };
326
324
  //#endregion
327
325
  //#region lib/types/index.js
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-storage-domain",
3
3
  "description": "Domain data form (ctx.storage.domain): schema-validated, event-emitting KV domains over storage backends for the DeepSeek Harness",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,15 +29,15 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/dsh-storage": "0.2.1-rc.3",
33
- "@deepseek-ai/cordis": "4.0.5"
32
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
33
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
34
34
  },
35
35
  "dependencies": {
36
- "@deepseek-ai/schemastery": "3.18.5",
36
+ "@deepseek-ai/schemastery": "3.18.6-alpha.1",
37
37
  "zod": "4.4.3"
38
38
  },
39
39
  "devDependencies": {
40
- "@deepseek-ai/dsh-storage": "0.2.1-rc.3",
41
- "@deepseek-ai/cordis": "4.0.5"
40
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
41
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
42
42
  }
43
43
  }
@@ -9,8 +9,8 @@
9
9
  en: b04256279a328d19
10
10
  zh: b0913489b49403b1
11
11
  /deepseek-ai-dsh-storage-json/summary:
12
- en: 9eb9c035b03acd09
13
- zh: 2adec96e42a054e1
12
+ en: ba875a866989d7d8
13
+ zh: 92e94db1d3d3577e
14
14
  /deepseek-ai-dsh-storage-json/table-of-contents:
15
15
  en: d152484eb41ac6b4
16
16
  zh: 09388d293f9be9cb
@@ -18,20 +18,20 @@
18
18
  en: 87ddc847b7024cac
19
19
  zh: 6e97d0f216587d5b
20
20
  /deepseek-ai-dsh-storage-json/use-this-package/when-to-choose-it:
21
- en: 28ebb528cbe13f31
22
- zh: 7e3744e9d080d2bb
21
+ en: 40e60fa139e0d6f6
22
+ zh: 0c4ce58c26ee4bf7
23
23
  /deepseek-ai-dsh-storage-json/use-this-package/configuration:
24
24
  en: 7144aa3b5af76874
25
25
  zh: dfc528d027f86037
26
26
  /deepseek-ai-dsh-storage-json/use-this-package/observable-behavior:
27
- en: 75b7e8c8ae917439
28
- zh: 30ff8fc276621b7a
27
+ en: 79d83481397cb10b
28
+ zh: e160178363a57ba6
29
29
  /deepseek-ai-dsh-storage-json/understand-the-implementation:
30
30
  en: b7d222309b3e5438
31
31
  zh: 807c7314ee341d94
32
32
  /deepseek-ai-dsh-storage-json/understand-the-implementation/design-concept:
33
- en: 6cd51dcd7e255715
34
- zh: 8c4514893f89064a
33
+ en: 975a4b005d9f8d0d
34
+ zh: 71127701477ae358
35
35
  /deepseek-ai-dsh-storage-json/understand-the-implementation/file-formats:
36
36
  en: b3de0a697db4f916
37
37
  zh: 56b26f7823392bd5
@@ -57,8 +57,8 @@
57
57
  en: c13c59d13a5f1651
58
58
  zh: 5aab838ae3ff5324
59
59
  /deepseek-ai-dsh-storage-json/known-limitations-and-deferred-work:
60
- en: 07d386decf38f247
61
- zh: c3e866b4d8e3372a
60
+ en: 073ca8d8c9bb8123
61
+ zh: 088ca8438f11ce6c
62
62
  /deepseek-ai-dsh-storage-json/known-limitations-and-deferred-work/dev-note:
63
63
  en: dd40dd4cb9109aea
64
64
  zh: 3fd79d2242eccadb
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- `dsh-storage-json` stores domain data as readable JSON under a configured root and registers as backend `json`. Its default `single` layout keeps one complete `<unit>.json` file per unit; its `per-record` layout keeps one version-stamped document per record. Both layouts publish each changed file atomically, while the domain layer orders calls. Choose it when operators need inspectable files and the selected layout fits the write volume; choose SQLite for larger or highly concurrent data. The backend is host-side only and contributes no prompt, tool, or schema.
12
+ `dsh-storage-json` stores domain data as readable JSON under a configured root and registers as backend `json`. Its default `single` layout keeps one complete `<unit>.json` file per unit; its `per-record` layout keeps one version-stamped document per record. Both layouts publish each changed file atomically, while the domain layer orders calls. Choose it when operators need inspectable files and the selected layout fits the write volume; choose SQLite for larger, frequently updated units. The backend is host-side only and contributes no prompt, tool, or schema.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -29,7 +29,7 @@ Use this package when a composition needs readable, editable JSON storage. Route
29
29
 
30
30
  ### When to choose it
31
31
 
32
- Choose the default `single` layout for small units that benefit from one complete, pretty-printed file. Choose `per-record` when point writes should replace only one record document. Choose the SQLite backend when data is large, writes are frequent, or multiple records need transactional updates.
32
+ Choose the default `single` layout for small units that benefit from one complete, pretty-printed file. Choose `per-record` for disposable records whose point writes should replace only one document; unsupported or unreadable documents read as absent. Choose SQLite for frequent point updates in large units. The domain API has no multi-record transaction operation on either backend.
33
33
 
34
34
  ### Configuration
35
35
 
@@ -53,9 +53,11 @@ The generated [configuration catalog](../../../docs/config-catalog.md#deepseek-a
53
53
 
54
54
  ### Observable behavior
55
55
 
56
- A missing `single` file or `per-record` directory opens as an empty unit and materializes on the first write. In `single`, malformed content rejects with `malformed-medium`, and a different stored version rejects with `version-mismatch`. In `per-record`, each malformed or unreadable document, and each document whose version is outside the descriptor's current and compatible versions, reads as an absent record, so one bad document does not reject the unit. In `per-record`, record keys must match `[a-zA-Z0-9_-]+`; an unsafe key rejects before any file operation, while the `single` layout keeps keys opaque. Single-record writes and `single`-layout publishes are durable once resolved; a `per-record` batch deletion depends on the filesystem persisting directory-entry updates (see Known Limitations). A batch that cannot establish or restore its state rejects with `unknown-state`, after which every later operation except `close()` rejects; calls after close reject with `closed`.
56
+ Without a legacy bootstrap, a missing `single` file or `per-record` directory opens as an empty unit and materializes on the first write. In `single`, malformed content rejects with `malformed-medium`, and a stored version outside the current and `compatibleVersions` set rejects with `version-mismatch`. An accepted older file stays unchanged on read; the next atomic write stamps the current version and preserves untouched values in declared tables. Deleting missing keys or an empty batch does not restamp. In `per-record`, each malformed or unreadable document, and each document whose version is outside the accepted set, reads as an absent record, so one bad document does not reject the unit. Version refusal does not delete the document. Per-record keys must match `[a-zA-Z0-9_-]+`; an unsafe key rejects before any file operation. Resolved writes are durable; `per-record` deletions sync their directory changes on POSIX before resolving. A batch interrupted before resolution can be partially applied. A batch that cannot restore its readable or durable state rejects with `unknown-state`, after which every later operation except `close()` rejects; calls after close reject with `closed`.
57
57
 
58
- An empty `per-record` tree can initialize its declared tables from a valid `<root>/<unit>.json` whole-unit document only when the source unit name matches and its version is current or declared compatible. The backend leaves that source file unchanged and stamps migrated records with the current version. A source version outside the accepted set leaves the new tree empty. Any document path in a declared table, or a declared `global.json`, suppresses this initialization for the complete unit, even if that document is unreadable or stale.
58
+ An unmaterialized `per-record` tree can initialize its declared tables from a valid `<root>/<unit>.json` whole-unit document only when the source unit name matches and its version is current or declared compatible. This bootstrap writes during loading: it leaves the source file unchanged and copies stored values into current-stamped documents without converting them. A source version outside the accepted set leaves the new tree empty. Any declared table directory, even when empty, or a declared `global.json` suppresses this initialization for the complete unit. Deleted records therefore remain absent while the retained source file stays unchanged.
59
+
60
+ A synchronous serialization failure restores the open `single` unit's previous memory and permits retry on that handle. An I/O failure can occur after file replacement, so a rejected write does not prove that disk data or its stamp stayed unchanged. Stop using and close the backend and its domains, then reopen to reload saved state before deciding whether to retry. See [domain versioning](../../../docs/subsystems/storage.md#domain-versioning) for mixed records and downgrade behavior.
59
61
 
60
62
  -----
61
63
 
@@ -69,8 +71,8 @@ The two layouts share atomic publication but assign state ownership differently.
69
71
 
70
72
  ### Design concept
71
73
 
72
- - **`single` keeps memory authoritative.** Each write changes the in-memory unit, serializes its complete state, and atomically replaces `<unit>.json`. A failed publish restores the prior in-memory value. A batch delete is one such publish: the whole batch is applied or restored together.
73
- - **`per-record` keeps the directory authoritative.** Each put or delete changes one `<unit>/<table>/<key>.json` document, and `loadAll()` rereads the tree. A batch delete renames the batch's documents out of the readable set, restores them if a rename fails, and unlinks the staged copies afterwards. If that restoration fails, the unit rejects with `unknown-state` and every later operation on it except `close()` rejects. Each document stamps the unit version and carries one record value.
74
+ - **`single` keeps memory authoritative.** Each write changes the in-memory unit, serializes its complete state, and atomically replaces `<unit>.json`. A batch delete publishes once. Serialization failures restore every affected in-memory value; uncertain I/O outcomes require reopening instead of continuing from that snapshot.
75
+ - **`per-record` keeps the directory authoritative.** Each put or delete changes one `<unit>/<table>/<key>.json` document, and `loadAll()` rereads the tree. A batch delete renames the batch's documents out of the readable set, syncs the directory on POSIX, then unlinks the staged copies. A failed staging or sync restores the documents and syncs the restored directory. If that restoration or sync fails, the unit rejects with `unknown-state` and every later operation on it except `close()` rejects. Each document stamps the unit version and carries one record value.
74
76
  - **Publication is durable per call.** A write uses a temporary file, fsync, atomic `rename()` replacement, and a parent-directory fsync on POSIX. The domain layer's write chain supplies ordering across calls.
75
77
 
76
78
  ### File formats
@@ -140,7 +142,7 @@ These limits define when this backend is a poor fit or needs special operational
140
142
  - **`single` rewrites the whole unit** — each write republishes the complete unit file; use `per-record` or route the domain to SQLite when this cost is too high.
141
143
  - **No cross-process write locking** — two processes writing the same unit can interleave replacements; writes to the same file use last-completion wins.
142
144
  - **Windows rename without explicit write-through** — durability relies on libuv's `rename()` (`MoveFileExW` with replacement); the stricter Win32 write-through publish helper from the session-log backend is planned to move down here when the `log` facet lands.
143
- - **`per-record` batch delete is not directory-fsynced** — the batch's renames and unlinks rely on the filesystem persisting directory-entry updates; a crash can restore a deleted document under its original key or leave `.deleting` residue. `single` publishes fsync the parent directory.
145
+ - **No crash-atomic `per-record` batch** — a crash before deletion resolves can leave a partial batch and `.deleting` residue. Completed deletions sync the staged directory changes on POSIX; cleanup residue is unreadable.
144
146
 
145
147
  <a id="dev-note"></a>
146
148
  ### Dev Note
@@ -9,7 +9,7 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- `dsh-storage-json` 在配置的根目录下把领域数据存为可读 JSON,并注册为后端 `json`。默认的 `single` 布局为每个单元保存一份完整的 `<unit>.json` 文件;`per-record` 布局为每条记录保存一份带版本戳的文档。两种布局都以原子方式发布每个变更文件,领域层负责安排调用顺序。当运维方需要可检查文件且所选布局适合写入量时选择它;对于更大或高并发的数据则选择 SQLite。本后端只面向宿主侧,不贡献提示词、工具或 schema。
12
+ `dsh-storage-json` 在配置的根目录下把领域数据存为可读 JSON,并注册为后端 `json`。默认的 `single` 布局为每个单元保存一份完整的 `<unit>.json` 文件;`per-record` 布局为每条记录保存一份带版本戳的文档。两种布局都以原子方式发布每个变更文件,领域层负责安排调用顺序。当运维方需要可检查文件且所选布局适合写入量时选择它;对于更大且频繁更新的单元则选择 SQLite。本后端只面向宿主侧,不贡献提示词、工具或 schema。
13
13
 
14
14
  ## 目录
15
15
 
@@ -29,7 +29,7 @@ kind: "package-reference"
29
29
 
30
30
  ### 何时选择
31
31
 
32
- 小型单元需要一份完整、美化打印的文件时,选择默认的 `single` 布局。定点写入只应替换一份记录文档时,选择 `per-record`。当数据量大、写入频繁或多条记录需要事务更新时,选择 SQLite 后端。
32
+ 小型单元需要一份完整、美化打印的文件时,选择默认的 `single` 布局。可丢弃记录的定点写入只需替换一份文档时,选择 `per-record`;不支持或不可读的文档会读作不存在。大型单元需要频繁定点更新时,选择 SQLite。领域 API 在两种后端上都没有多记录事务操作。
33
33
 
34
34
  ### 配置
35
35
 
@@ -53,9 +53,11 @@ kind: "package-reference"
53
53
 
54
54
  ### 可观察行为
55
55
 
56
- 缺失的 `single` 文件或 `per-record` 目录会作为空单元打开,并在第一次写入时物化。在 `single` 中,畸形内容以 `malformed-medium` 拒绝,不同的已存版本以 `version-mismatch` 拒绝。在 `per-record` 中,每份畸形或不可读的文档,以及版本不在描述符的当前版本和兼容版本内的文档,都读作记录不存在,因此单个坏文档不会使单元被拒绝。在 `per-record` 中记录键必须匹配 `[a-zA-Z0-9_-]+`,不安全的键在任何文件操作前被拒绝;`single` 布局保持键不透明。单记录写入与 `single` 布局的发布在 resolve 后即已持久;`per-record` 的批量删除依赖文件系统对目录项更新的持久化(见已知限制)。无法建立或恢复状态的批量删除以 `unknown-state` 拒绝,之后除 `close()` 外对它的所有操作都会拒绝;关闭后的调用以 `closed` 拒绝。
56
+ 没有旧文件引导时,缺失的 `single` 文件或 `per-record` 目录会作为空单元打开,并在第一次写入时物化。在 `single` 中,畸形内容以 `malformed-medium` 拒绝,已存版本不在当前版本和 `compatibleVersions` 集合内时以 `version-mismatch` 拒绝。读取接受的旧文件时保持原状;下一次原子写入使用当前版本戳,保留已声明表中未改动记录的原值。删除不存在的键或空批次不会重新盖戳。在 `per-record` 中,每份畸形或不可读的文档,以及版本不在接受集合内的文档,都读作记录不存在,因此单个坏文档不会使单元被拒绝。版本拒绝不会删除文档。逐记录布局的键必须匹配 `[a-zA-Z0-9_-]+`;不安全的键在任何文件操作前被拒绝。写入完成后即已持久化;`per-record` 删除在完成前会在 POSIX 上同步目录变更。在完成前中断的批次可能只应用一部分。无法恢复可读或持久状态的批量删除以 `unknown-state` 拒绝,之后除 `close()` 外的所有操作都会拒绝;关闭后的调用以 `closed` 拒绝。
57
57
 
58
- 只有当源单元名称匹配,且源版本为当前版本或已声明的兼容版本时,空的 `per-record` 目录树才可以从有效的 `<root>/<unit>.json` 整单元文档初始化其已声明表。后端保持该源文件不变,并为迁移的记录写入当前版本戳。接受集合之外的源版本会使新目录树保持为空。已声明表中只要存在任意文档路径,或存在已声明的 `global.json`,就会对整个单元禁止该初始化,即使该文档不可读或版本陈旧。
58
+ 只有当源单元名称匹配,且源版本为当前版本或已声明的兼容版本时,尚未物化的 `per-record` 目录树才可以从有效的 `<root>/<unit>.json` 整单元文档初始化其已声明表。该引导会在加载时写入:它保持源文件不变,并把已存值复制到当前版本戳的文档中,不转换其中的值。接受集合之外的源版本会使新目录树保持为空。只要存在任意已声明表的目录(即使为空),或已声明的 `global.json`,就会对整个单元禁止该初始化。因此删除的记录会保持缺失,同时保留的源文件不变。
59
+
60
+ 同步序列化失败会恢复已打开 `single` 单元先前的内存状态,允许在同一句柄上重试。I/O 失败可能发生在文件替换之后,因此写入被拒绝并不能证明磁盘数据或版本戳保持不变。必须停止使用并关闭后端及其领域,然后重新打开以加载已存状态,再决定是否重试。混合记录与降级行为参阅[领域版本](../../../docs/subsystems/storage.zh.md#domain-versioning)。
59
61
 
60
62
  -----
61
63
 
@@ -69,8 +71,8 @@ kind: "package-reference"
69
71
 
70
72
  ### 设计理念
71
73
 
72
- - **`single` 以内存为权威状态。** 每次写入都会更改内存单元、序列化其完整状态,并以原子方式替换 `<unit>.json`。发布失败会恢复先前的内存值。批量删除就是这样一次发布:整批一起应用或一起恢复。
73
- - **`per-record` 以目录为权威状态。** 每次 put 或 delete 都会更改一个 `<unit>/<table>/<key>.json` 文档,`loadAll()` 则重新读取目录树。每份文档都带有单元版本戳与一条记录值。批量删除先把整批文档改名移出可读集合,任一次改名失败就恢复,之后删除暂存副本;恢复本身失败时该 unit 以 `unknown-state` 拒绝,之后除 `close()` 外对它的所有操作都会拒绝。
74
+ - **`single` 以内存为权威状态。** 每次写入都会更改内存单元、序列化其完整状态,并以原子方式替换 `<unit>.json`。批量删除只发布一次。序列化失败会恢复所有受影响的内存值;I/O 结果不确定时必须重新打开,不能继续使用该快照。
75
+ - **`per-record` 以目录为权威状态。** 每次 put 或 delete 都会更改一个 `<unit>/<table>/<key>.json` 文档,`loadAll()` 则重新读取目录树。每份文档都带有单元版本戳与一条记录值。批量删除先把整批文档改名移出可读集合,在 POSIX 上同步目录,然后删除暂存副本。暂存或同步失败时会恢复文档,并同步恢复后的目录;恢复或同步失败时该 unit 以 `unknown-state` 拒绝,之后除 `close()` 外对它的所有操作都会拒绝。
74
76
  - **每次调用都持久发布。** 写入过程使用临时文件、fsync、原子 `rename()` 替换,并在 POSIX 上 fsync 父目录。领域层写入链负责安排跨调用的顺序。
75
77
 
76
78
  ### 文件格式
@@ -140,7 +142,7 @@ kind: "package-reference"
140
142
  - **`single` 会重写整个单元**——每次写入都重新发布完整单元文件;当此成本过高时,使用 `per-record` 或把领域路由到 SQLite。
141
143
  - **没有跨进程写锁**——两个进程写入同一单元时可能交错执行替换;对同一文件的写入以最后完成者为准。
142
144
  - **Windows rename 没有显式 write-through**——持久性依赖 libuv 的 `rename()`(`MoveFileExW` 并启用替换);`log` 分面落地时,计划把会话日志后端更严格的 Win32 write-through 发布辅助函数下移到此处。
143
- - **`per-record` 批量删除不做目录 fsync**——批量删除的改名与删除依赖文件系统对目录项更新的持久化;崩溃可能让被删记录以原键重新出现,或留下 `.deleting` 残留。`single` 发布会 fsync 父目录。
145
+ - **`per-record` 批次不保证崩溃原子性**——删除完成前崩溃可能留下部分批次与 `.deleting` 残留。已完成的删除会在 POSIX 上同步暂存后的目录变更;清理残留不可读。
144
146
 
145
147
  <a id="dev-note"></a>
146
148
  ### 开发备注
@@ -39,7 +39,11 @@ async function writeAtomic(path, data) {
39
39
  throw error;
40
40
  }
41
41
  }
42
- /** fsync a POSIX directory so a just-renamed entry is crash-durable. */
42
+ /**
43
+ * Persist directory-entry changes on POSIX; skip this unsupported operation on Windows.
44
+ * @param path - Absolute directory path.
45
+ * @returns resolution after the directory is synced, or immediately on Windows.
46
+ */
43
47
  /* v8 ignore start -- Windows rejects O_RDONLY directory opens; POSIX coverage exercises this. */
44
48
  async function fsyncDirectory(path) {
45
49
  if (process.platform === "win32") return;
@@ -85,7 +89,7 @@ function serialize(name, state) {
85
89
  /**
86
90
  * Parse file content into unit state, validating shape and version.
87
91
  * @param text - Raw file content.
88
- * @param descriptor - Expected identity; version mismatch rejects.
92
+ * @param descriptor - Expected identity and accepted current or compatible versions.
89
93
  * @returns the parsed state.
90
94
  */
91
95
  function parse(text, descriptor) {
@@ -99,7 +103,7 @@ function parse(text, descriptor) {
99
103
  const { unit, global: globalValue, tables } = document;
100
104
  if (typeof unit !== "object" || unit === null || unit["name"] !== descriptor.name || typeof unit["version"] !== "number") throw new StorageError("malformed-medium", `unit '${descriptor.name}': missing or foreign unit header`);
101
105
  const version = unit["version"];
102
- if (version !== descriptor.version) throw new StorageError("version-mismatch", `unit '${descriptor.name}': stored version ${version} != expected ${descriptor.version}`);
106
+ if (version !== descriptor.version && !descriptor.compatibleVersions?.includes(version)) throw new StorageError("version-mismatch", `unit '${descriptor.name}': stored version ${version} is not accepted by version ${descriptor.version}`);
103
107
  if (typeof tables !== "object" || tables === null || Array.isArray(tables)) throw new StorageError("malformed-medium", `unit '${descriptor.name}': tables is not an object`);
104
108
  const state = {
105
109
  version,
@@ -184,11 +188,13 @@ async function openSingleUnit(descriptor, root, onClose) {
184
188
  } catch (error) {
185
189
  if (error.code !== "ENOENT") throw error;
186
190
  }
187
- return new SingleJsonUnit(descriptor, path, text === void 0 ? {
191
+ const state = text === void 0 ? {
188
192
  version: descriptor.version,
189
193
  global: null,
190
194
  tables: new Map(descriptor.tables.map((table) => [table, /* @__PURE__ */ new Map()]))
191
- } : parse(text, descriptor), onClose);
195
+ } : parse(text, descriptor);
196
+ state.version = descriptor.version;
197
+ return new SingleJsonUnit(descriptor, path, state, onClose);
192
198
  }
193
199
  var SingleJsonUnit = class {
194
200
  descriptor;
@@ -225,16 +231,8 @@ var SingleJsonUnit = class {
225
231
  throw error;
226
232
  });
227
233
  }
228
- async deleteRecord(table, key) {
229
- this.assertOpen();
230
- const records = this.records(table);
231
- if (!records.has(key)) return;
232
- const previous = records.get(key);
233
- records.delete(key);
234
- await this.publish().catch((error) => {
235
- records.set(key, previous);
236
- throw error;
237
- });
234
+ deleteRecord(table, key) {
235
+ return this.deleteRecords(table, [key]);
238
236
  }
239
237
  async deleteRecords(table, keys) {
240
238
  this.assertOpen();
@@ -278,7 +276,7 @@ var SingleJsonUnit = class {
278
276
  if (!records) throw new Error(`unit '${this.descriptor.name}' does not declare table '${table}'`);
279
277
  return records;
280
278
  }
281
- publish() {
279
+ async publish() {
282
280
  const write = writeAtomic(this.path, serialize(this.descriptor.name, this.state));
283
281
  this.inFlight.add(write);
284
282
  write.catch(() => {}).finally(() => this.inFlight.delete(write));
@@ -295,9 +293,9 @@ var SingleJsonUnit = class {
295
293
  * put or delete touches one durable document, and a batch delete renames its
296
294
  * documents out of the readable set before unlinking them. The domain layer owns the live
297
295
  * in-memory tables (seeded by the open-time `loadAll`) and serializes writes
298
- * through its write chain, so this unit never mutates memory and needs no
299
- * rollback — a failed write simply leaves both the file and the domain's
300
- * memory unchanged.
296
+ * through its write chain. A rejected write leaves domain memory unchanged;
297
+ * a failed deletion restores its staged documents or quarantines the unit
298
+ * with `unknown-state` when restoration cannot be established.
301
299
  *
302
300
  * Per-record contract: a record document that is malformed or stamped with a
303
301
  * version outside the accepted set (the descriptor's current version plus
@@ -306,13 +304,13 @@ var SingleJsonUnit = class {
306
304
  * the record instead of migrating it. Record keys become path segments, so
307
305
  * they must be path-safe (`[a-zA-Z0-9_-]+`); an unsafe key rejects at write.
308
306
  *
309
- * Legacy bootstrap: when the new tree has no document path, a legacy
310
- * whole-unit file `<root>/<name>.json` (the pre-per-record layout) seeds
307
+ * Legacy bootstrap: when the new tree has no declared table directory or
308
+ * global document, a whole-unit file `<root>/<name>.json` seeds
311
309
  * per-record documents, provided its stored unit version is in the accepted
312
310
  * set — a legacy file stamped with any other version is left alone and reads
313
- * as the empty unit. Any new document path, including one whose contents are
314
- * unreadable or stale, suppresses the bootstrap for the whole unit. The
315
- * legacy file is never changed or deleted.
311
+ * as the empty unit. An existing declared table directory, even when empty,
312
+ * or a declared global document suppresses the bootstrap for the whole unit.
313
+ * The legacy file is never changed or deleted.
316
314
  * @module @deepseek-ai/dsh-storage-json/src/per-record-unit
317
315
  */
318
316
  /** Keys become path segments in this layout; this set is path-safe on every OS. */
@@ -355,7 +353,10 @@ async function loadPerRecordState(descriptor, dir) {
355
353
  if (!(entries === void 0 ? false : (await Promise.all(entries.map(async (entry) => {
356
354
  if (entry.isDirectory()) {
357
355
  const records = state.tables.get(entry.name);
358
- if (records !== void 0) return loadTableRecords(records, versions, join(dir, entry.name));
356
+ if (records !== void 0) {
357
+ await loadTableRecords(records, versions, join(dir, entry.name));
358
+ return true;
359
+ }
359
360
  }
360
361
  if (entry.name === "global.json" && descriptor.hasGlobal) {
361
362
  const global = await readRecord(join(dir, entry.name), versions);
@@ -371,7 +372,7 @@ function acceptedStamps(descriptor) {
371
372
  return [descriptor.version, ...descriptor.compatibleVersions ?? []];
372
373
  }
373
374
  /**
374
- * Bootstrap an empty per-record tree from a legacy whole-unit file
375
+ * Bootstrap an unmaterialized per-record tree from a legacy whole-unit file
375
376
  * (`<root>/<name>.json`, the pre-per-record layout). Every declared-table
376
377
  * record is copied into a current-version document, while the legacy file is
377
378
  * retained unchanged. A missing, foreign (another unit's name), malformed,
@@ -421,12 +422,9 @@ async function bootstrapLegacyUnit(descriptor, dir, state) {
421
422
  }
422
423
  /**
423
424
  * Read one declared table's record documents into `records`.
424
- * @returns whether the directory contains any `.json` document path,
425
- * independently of key safety, readability, or stored version.
426
425
  */
427
426
  async function loadTableRecords(records, versions, dir) {
428
427
  const files = await readdir(dir, { withFileTypes: true });
429
- const hasDocuments = files.some((file) => file.name.endsWith(".json"));
430
428
  const loaded = await Promise.all(files.map(async (file) => {
431
429
  if (!file.name.endsWith(".json")) return;
432
430
  const key = file.name.slice(0, -5);
@@ -435,7 +433,6 @@ async function loadTableRecords(records, versions, dir) {
435
433
  if (record !== void 0) return [key, record];
436
434
  }));
437
435
  for (const record of loaded) if (record !== void 0) records.set(...record);
438
- return hasDocuments;
439
436
  }
440
437
  /** Read one record document; a foreign (unreadable or stale) one reads as absent. */
441
438
  async function readRecord(path, versions) {
@@ -447,9 +444,9 @@ async function readRecord(path, versions) {
447
444
  }
448
445
  /**
449
446
  * One opened `per-record`-layout unit. Stateless by design: the directory is
450
- * the medium, the domain layer owns the live memory, and each method here is
451
- * a single durable file operation. Write ordering belongs to the caller (the
452
- * domain layer's write chain), exactly like the `single`-layout unit.
447
+ * the medium and the domain layer owns the live memory. Replacements publish
448
+ * one document; deletions stage and sync their documents before cleanup.
449
+ * Write ordering belongs to the caller (the domain layer's write chain).
453
450
  */
454
451
  var PerRecordJsonUnit = class {
455
452
  descriptor;
@@ -483,20 +480,19 @@ var PerRecordJsonUnit = class {
483
480
  await this.tracked(this.writeDocument(join(this.tableDir(table), `${key}.json`), value));
484
481
  }
485
482
  /** Durably delete one record. Idempotent: a missing key is a no-op. */
486
- async deleteRecord(table, key) {
487
- this.assertOpen();
488
- assertSafeKey(this.descriptor.name, key);
489
- await this.tracked(rm(join(this.tableDir(table), `${key}.json`), { force: true }));
483
+ deleteRecord(table, key) {
484
+ return this.deleteRecords(table, [key]);
490
485
  }
491
486
  /**
492
487
  * Durably delete many records as one batch. Documents are renamed out of the
493
488
  * readable set first; only after the whole batch is staged are the staged
494
489
  * copies unlinked. A failure while staging restores the documents it moved,
495
490
  * so a rejection normally leaves the batch unapplied. If that restoration
496
- * itself fails, the readable state is unknown: the unit rejects with
491
+ * itself fails, the readable or durable state is unknown: the unit rejects with
497
492
  * `unknown-state` and every later operation on it rejects, while `close`
498
- * still releases it. A staged document a crash leaves behind is not readable
499
- * (`open` reads `*.json` documents only).
493
+ * still releases it. Staged directory changes are synced before cleanup on
494
+ * POSIX, so a resolved deletion remains absent after a crash. Cleanup residue
495
+ * is not readable (`open` reads `*.json` documents only).
500
496
  */
501
497
  async deleteRecords(table, keys) {
502
498
  this.assertOpen();
@@ -527,6 +523,7 @@ var PerRecordJsonUnit = class {
527
523
  to
528
524
  });
529
525
  }
526
+ if (staged.length > 0) await fsyncDirectory(dir);
530
527
  } catch (error) {
531
528
  const restoreFailures = [];
532
529
  for (const { from, to } of staged) try {
@@ -534,8 +531,13 @@ var PerRecordJsonUnit = class {
534
531
  } catch (restoreError) {
535
532
  restoreFailures.push(restoreError);
536
533
  }
534
+ if (staged.length > 0) try {
535
+ await fsyncDirectory(dir);
536
+ } catch (restoreError) {
537
+ restoreFailures.push(restoreError);
538
+ }
537
539
  if (restoreFailures.length === 0) throw error;
538
- this.unusable = new StorageError("unknown-state", `unit '${this.descriptor.name}' could not restore ${restoreFailures.length} staged document(s) after a failed batch delete; its readable state is unknown`, { cause: new AggregateError([error, ...restoreFailures], "batch delete failed and restoration failed") });
540
+ this.unusable = new StorageError("unknown-state", `unit '${this.descriptor.name}' could not restore a failed batch delete; its state is unknown`, { cause: new AggregateError([error, ...restoreFailures], "batch delete failed and restoration failed") });
539
541
  throw this.unusable;
540
542
  }
541
543
  await Promise.allSettled(staged.map(({ to }) => rm(to, { force: true })));
@@ -581,14 +583,13 @@ var PerRecordJsonUnit = class {
581
583
  return join(this.dir, table);
582
584
  }
583
585
  /** Durably replace one document, creating its parent directory. */
584
- writeDocument(path, value) {
585
- return (async () => {
586
- await mkdir(dirname(path), {
587
- recursive: true,
588
- mode: 448
589
- });
590
- await writeAtomic(path, serializeRecord(this.descriptor.version, value));
591
- })();
586
+ async writeDocument(path, value) {
587
+ const text = serializeRecord(this.descriptor.version, value);
588
+ await mkdir(dirname(path), {
589
+ recursive: true,
590
+ mode: 448
591
+ });
592
+ await writeAtomic(path, text);
592
593
  }
593
594
  /** Track one durable write so close() drains it. */
594
595
  tracked(write) {
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-storage-json",
3
3
  "description": "JSON file KV storage backend for the DeepSeek Harness storage hub",
4
- "version": "0.2.1-rc.3",
4
+ "version": "0.2.2-alpha.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -29,14 +29,14 @@
29
29
  ],
30
30
  "license": "MIT",
31
31
  "peerDependencies": {
32
- "@deepseek-ai/dsh-storage": "0.2.1-rc.3",
33
- "@deepseek-ai/cordis": "4.0.5"
32
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
33
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
34
34
  },
35
35
  "dependencies": {
36
- "@deepseek-ai/schemastery": "3.18.5"
36
+ "@deepseek-ai/schemastery": "3.18.6-alpha.1"
37
37
  },
38
38
  "devDependencies": {
39
- "@deepseek-ai/dsh-storage": "0.2.1-rc.3",
40
- "@deepseek-ai/cordis": "4.0.5"
39
+ "@deepseek-ai/dsh-storage": "0.2.2-alpha.2",
40
+ "@deepseek-ai/cordis": "4.0.6-alpha.1"
41
41
  }
42
42
  }