@songtonyli/dsh-cli 0.1.89 → 0.1.91

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 (625) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  14. package/node_modules/@aws-sdk/core/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  18. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  20. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  21. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
  24. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
  25. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
  26. package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
  27. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
  34. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
  35. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  36. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  37. package/node_modules/@deepseek-ai/cordis/README.md +6 -2
  38. package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
  39. package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
  40. package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
  41. package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
  42. package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
  43. package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
  44. package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
  45. package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
  46. package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
  47. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  48. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
  49. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
  50. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
  51. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
  52. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
  53. package/node_modules/@deepseek-ai/dsh/package.json +0 -1
  54. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
  56. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
  57. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
  58. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  59. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
  60. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
  62. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
  63. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
  66. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  67. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
  68. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
  69. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  71. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
  72. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
  73. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
  75. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
  76. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
  79. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
  80. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
  81. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
  82. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
  83. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
  84. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
  85. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  86. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
  89. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
  90. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
  91. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
  92. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
  93. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
  94. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
  95. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
  96. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
  97. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
  99. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
  100. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
  101. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
  102. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
  103. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  104. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  105. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  106. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
  107. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
  108. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  109. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
  110. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
  111. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
  112. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
  113. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
  114. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
  115. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
  116. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
  117. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
  118. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
  119. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
  120. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
  121. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
  122. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
  125. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
  126. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
  127. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
  128. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
  129. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
  130. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
  131. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  132. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
  133. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
  134. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
  135. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
  136. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
  137. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
  138. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
  141. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
  142. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
  143. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
  144. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  145. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  146. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  147. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
  148. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
  150. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
  151. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
  152. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
  153. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
  154. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  155. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
  157. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
  158. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
  159. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
  160. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
  161. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
  162. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
  163. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
  164. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
  165. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
  166. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
  167. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
  168. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
  169. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
  170. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
  171. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
  172. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
  173. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
  174. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
  175. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
  176. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
  178. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  179. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
  180. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
  181. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  182. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  183. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
  185. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
  186. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
  187. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
  188. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
  189. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
  190. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
  191. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
  192. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
  194. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
  195. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
  196. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
  197. package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
  198. package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
  199. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  200. package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  201. package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
  202. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
  203. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
  204. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
  206. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
  209. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
  210. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
  211. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
  212. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
  213. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
  214. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
  215. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
  216. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
  217. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
  218. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
  219. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
  220. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
  221. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
  222. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
  223. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
  224. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
  225. package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
  226. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
  227. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
  228. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
  229. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
  230. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
  231. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
  232. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
  233. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
  235. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
  236. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
  237. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
  238. package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
  239. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
  240. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
  241. package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
  242. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
  243. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
  246. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
  247. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
  248. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
  249. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
  250. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
  251. package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
  252. package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
  253. package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
  254. package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
  255. package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
  256. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
  257. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
  258. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
  259. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
  260. package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
  261. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  262. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
  263. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  264. package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
  265. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
  266. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
  267. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
  268. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
  269. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
  270. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
  271. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
  272. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  274. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  275. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
  276. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  278. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
  279. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
  280. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
  281. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
  282. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
  283. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
  284. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
  285. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
  286. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
  287. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
  288. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
  289. package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
  290. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
  291. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
  292. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
  293. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
  294. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
  295. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
  296. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
  297. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
  298. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
  299. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
  300. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
  301. package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
  302. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
  303. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
  304. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
  305. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  306. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
  307. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
  308. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
  309. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
  310. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
  311. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
  312. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
  313. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
  314. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
  315. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
  316. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
  317. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
  318. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
  319. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
  320. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
  321. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  322. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
  323. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
  324. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
  325. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
  326. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
  327. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  328. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
  329. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
  330. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
  331. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
  332. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
  333. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
  334. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
  335. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
  336. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
  337. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
  338. package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
  339. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
  340. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  341. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +1 -1
  342. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +1 -1
  343. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +24 -8
  344. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
  345. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
  346. package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
  347. package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
  348. package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
  349. package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
  350. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  351. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  352. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  353. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
  354. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
  355. package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
  356. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
  357. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
  358. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
  359. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
  360. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
  361. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  362. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  363. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
  364. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
  365. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
  366. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
  367. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
  368. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
  369. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
  370. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
  371. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  372. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  373. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
  374. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
  375. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
  376. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  377. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
  378. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  379. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  380. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  381. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  382. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  383. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
  384. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
  385. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  386. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  387. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
  388. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
  389. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  390. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  391. package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
  392. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  393. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
  394. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
  395. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  396. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  397. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  398. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  399. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  400. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
  401. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
  402. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
  403. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  404. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  405. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  406. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  407. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  408. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  409. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  410. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  411. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  412. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  413. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  414. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  415. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  416. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  417. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  418. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  419. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  420. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  421. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  422. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  423. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  424. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  425. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  426. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  427. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  428. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  429. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
  430. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  431. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  432. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  433. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  434. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  435. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  436. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
  437. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  438. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  439. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  440. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
  441. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  442. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  443. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  444. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  445. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  446. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  447. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  448. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  449. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  450. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  451. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  452. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  453. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  454. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  455. package/node_modules/@smithy/core/package.json +1 -1
  456. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
  457. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  458. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
  459. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  460. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  461. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  462. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  463. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  464. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  465. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  466. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  467. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  468. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  469. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  470. package/node_modules/@smithy/signature-v4/package.json +2 -2
  471. package/node_modules/@types/node/README.md +1 -1
  472. package/node_modules/@types/node/package.json +2 -2
  473. package/node_modules/encodeurl/README.md +14 -0
  474. package/node_modules/encodeurl/index.js +5 -10
  475. package/node_modules/encodeurl/package.json +7 -3
  476. package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
  477. package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
  478. package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
  479. package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
  480. package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
  481. package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
  482. package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
  483. package/node_modules/hast-util-to-html/lib/index.js +9 -4
  484. package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
  485. package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
  486. package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
  487. package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
  488. package/node_modules/hast-util-to-html/package.json +5 -23
  489. package/node_modules/hast-util-to-html/readme.md +3 -2
  490. package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  491. package/node_modules/jose/package.json +1 -1
  492. package/node_modules/rrule/LICENCE +65 -0
  493. package/node_modules/rrule/README.md +837 -0
  494. package/node_modules/rrule/dist/es5/rrule.js +3803 -0
  495. package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
  496. package/node_modules/rrule/dist/esm/cache.js +95 -0
  497. package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
  498. package/node_modules/rrule/dist/esm/datetime.js +186 -0
  499. package/node_modules/rrule/dist/esm/dateutil.js +161 -0
  500. package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
  501. package/node_modules/rrule/dist/esm/helpers.js +118 -0
  502. package/node_modules/rrule/dist/esm/index.js +22 -0
  503. package/node_modules/rrule/dist/esm/iter/index.js +138 -0
  504. package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
  505. package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
  506. package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
  507. package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
  508. package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
  509. package/node_modules/rrule/dist/esm/iterresult.js +88 -0
  510. package/node_modules/rrule/dist/esm/iterset.js +63 -0
  511. package/node_modules/rrule/dist/esm/masks.js +30 -0
  512. package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
  513. package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
  514. package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
  515. package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
  516. package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
  517. package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
  518. package/node_modules/rrule/dist/esm/parsestring.js +128 -0
  519. package/node_modules/rrule/dist/esm/rrule.js +232 -0
  520. package/node_modules/rrule/dist/esm/rruleset.js +182 -0
  521. package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
  522. package/node_modules/rrule/dist/esm/types.js +14 -0
  523. package/node_modules/rrule/dist/esm/weekday.js +45 -0
  524. package/node_modules/rrule/package.json +79 -0
  525. package/package.json +32 -31
  526. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
  527. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
  528. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
  529. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
  530. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
  531. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
  532. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
  533. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
  534. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
  535. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
  536. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
  537. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
  538. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
  539. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
  540. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
  541. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
  542. package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
  543. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
  544. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
  545. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
  546. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
  547. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
  548. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
  549. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
  550. package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
  551. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
  552. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
  553. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
  554. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
  555. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
  556. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
  557. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
  558. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
  559. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
  560. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
  561. package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
  562. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
  563. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
  564. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
  565. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
  566. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
  567. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
  568. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
  569. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
  570. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
  571. package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
  572. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
  573. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
  574. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
  575. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
  576. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
  577. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
  578. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
  579. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
  580. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
  581. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
  582. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
  583. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  584. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
  585. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
  586. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  587. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  588. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  589. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  590. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  591. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
  592. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  593. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
  594. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  595. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  596. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  597. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
  598. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
  599. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
  600. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  601. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  602. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  603. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  604. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  605. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
  606. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  607. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  608. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  609. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  610. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  611. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
  612. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  613. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  614. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  615. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  616. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  617. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  618. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  619. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  620. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  621. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
  622. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  623. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  624. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  625. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
@@ -37,7 +37,8 @@
37
37
  "@deepseek-ai/dsh-api-remotes",
38
38
  "@deepseek-ai/dsh-client-locale",
39
39
  "@deepseek-ai/dsh-client-ui-settings",
40
- "@deepseek-ai/dsh-client-ui-file-drag"
40
+ "@deepseek-ai/dsh-client-ui-file-drag",
41
+ "@deepseek-ai/dsh-client-ui-context-menu"
41
42
  ],
42
43
  "platform": "web"
43
44
  }
@@ -57,6 +58,7 @@
57
58
  "@deepseek-ai/dsh-client-ui-renderer": "0.2.2-alpha.2",
58
59
  "@deepseek-ai/dsh-client-ui-session": "0.2.2-alpha.2",
59
60
  "@deepseek-ai/dsh-client-ui-settings": "0.2.2-alpha.2",
61
+ "@deepseek-ai/dsh-client-ui-sidebar-files": "0.2.2-alpha.2",
60
62
  "@deepseek-ai/dsh-client-ui-sidebar-right": "0.2.2-alpha.2",
61
63
  "@deepseek-ai/dsh-office-to-pdf": "0.2.2-alpha.2",
62
64
  "@deepseek-ai/dsh-host-webserver": "0.2.2-alpha.2",
@@ -77,7 +79,8 @@
77
79
  "react-dom": "^18.2.0",
78
80
  "xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz",
79
81
  "yaml": "^2.9.0",
80
- "@deepseek-ai/dsh-client-ui-file-drag": "0.2.2-alpha.2"
82
+ "@deepseek-ai/dsh-client-ui-file-drag": "0.2.2-alpha.2",
83
+ "@deepseek-ai/dsh-client-ui-context-menu": "0.2.2-alpha.2"
81
84
  },
82
85
  "files": [
83
86
  "locale/*.json",
@@ -3,23 +3,29 @@
3
3
  # After editing either side, bring the other along and re-record with:
4
4
  # pnpm run verify-translation-pairing --write packages/client/ui-sidebar-files/README.md
5
5
  /:
6
- en: d6514e0d092a210b
7
- zh: 9980cb0f4fc6f903
6
+ en: d7dbdeee1744fac0
7
+ zh: 35dc07a9e797f855
8
8
  /deepseek-ai-dsh-client-ui-sidebar-files:
9
9
  en: ae5625c23b3a864f
10
10
  zh: 20cf48a229e806bf
11
11
  /deepseek-ai-dsh-client-ui-sidebar-files/summary:
12
- en: 1605ae92aee5c231
13
- zh: ad519ddb9e338892
12
+ en: 27a736e484be8693
13
+ zh: 4778c310014c2c16
14
14
  /deepseek-ai-dsh-client-ui-sidebar-files/table-of-contents:
15
- en: 9411fb4809692e09
16
- zh: dd13990d39c5be7f
15
+ en: 94e520881bd8666e
16
+ zh: 869ed79bd370c8b3
17
17
  /deepseek-ai-dsh-client-ui-sidebar-files/what-it-registers:
18
- en: ed52405be7c3fa24
19
- zh: d06dbd49c786c5f0
18
+ en: 2b620997cf39cac8
19
+ zh: ddfaa2da1c1bcd55
20
+ /deepseek-ai-dsh-client-ui-sidebar-files/the-navigator:
21
+ en: 803d10142360264b
22
+ zh: 042568a8ba293037
20
23
  /deepseek-ai-dsh-client-ui-sidebar-files/the-tree:
21
- en: a0ae0b1f223b3df1
22
- zh: 8ddc325519bd75b2
24
+ en: c6d5d2d068bdec7b
25
+ zh: dd41bcfa3e9080ad
26
+ /deepseek-ai-dsh-client-ui-sidebar-files/reusable-tree-factory:
27
+ en: 0a3e9645426b4203
28
+ zh: 0478669e4157f15c
23
29
  /deepseek-ai-dsh-client-ui-sidebar-files/model-experience:
24
30
  en: a18a43f6842f1371
25
31
  zh: 69f2a2b35f06dfc7
@@ -27,8 +33,8 @@
27
33
  en: 5a6febb45089991a
28
34
  zh: b17ed755fd098b83
29
35
  /deepseek-ai-dsh-client-ui-sidebar-files/known-limitations-and-deferred-work:
30
- en: c0e1831d8975186c
31
- zh: 332aac8738458bb0
36
+ en: dd317b62980a9269
37
+ zh: 0be3b9924f6b6c67
32
38
  /deepseek-ai-dsh-client-ui-sidebar-files/known-limitations-and-deferred-work/dev-note:
33
- en: d8b51fb935f38650
34
- zh: fee9d330ecf8ec0e
39
+ en: 1ec99e9fb6b4c948
40
+ zh: c4f7883934307c3c
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "The right Sidebar's file-tree tab type for the dsh web client: the session workspace root listed one level at a time over the wire, opening files into the Sidebar by resource address."
2
+ description: "The right Sidebar's workspace file browser for the dsh web client: the files page and one workspace tree per pane beside docked and floating file previews, listed one level at a time over the wire."
3
3
  kind: "package-reference"
4
4
  ---
5
5
 
@@ -9,12 +9,14 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- Browse a Session's workspace tree and open files in Sidebar previews. The root and expanded directories refresh automatically from direct-entry watches; manual reload remains available. The tab is reached from the guide and claims no resource address.
12
+ Browse a Session's workspace tree beside the files you preview. Each pane, docked or floating, keeps one tree that every file tab in it shows: switching, opening, or closing files keeps its width, expansion, and scroll, and the tree marks the current file. A preview's tree opens a file in place of that preview; the `files` page opens it in a new tab where the right Sidebar places it by default. The root and expanded directories refresh automatically from direct-entry watches; manual reload remains available. The `files` page is reached from the guide and claims no resource address.
13
13
 
14
14
  ## Table of Contents
15
15
 
16
16
  - [What it registers](#what-it-registers)
17
+ - [The navigator](#the-navigator)
17
18
  - [The tree](#the-tree)
19
+ - [Reusable tree Factory](#tree-factory)
18
20
  - [Model Experience](#model-experience)
19
21
  - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
20
22
  - [Dev Note](#dev-note)
@@ -24,30 +26,61 @@ Browse a Session's workspace tree and open files in Sidebar previews. The root a
24
26
  <a id="what-it-registers"></a>
25
27
  ## What it registers
26
28
 
27
- The `workspace.files` command opens or focuses the file page in the focused pane; from the conversation it uses the current Session's active dock pane. A guide gives way to the file page, and repeated opens retain one file page per pane. Desktop defaults to Mod+P. The guide entry displays the effective shortcut; Windows and macOS Web use the [shortcut service’s platform defaults](../shortcuts/README.md); Linux Web leaves this command unbound by default.
29
+ The `workspace.files` command shows the navigator drawn beside a docked tab's content in the focused pane and moves keyboard focus to its tree, keeping the tab; from the conversation it uses the current Session's active dock pane. Elsewhere — the files page itself, a tab without the navigator, a Session without a working directory, a floating tab — it opens or focuses the files page, whose tree always shows. A guide gives way to the files page, and repeated opens retain one files page per pane. Desktop defaults to Mod+P. The guide entry displays the effective shortcut; Windows and macOS Web use the [shortcut service’s platform defaults](../shortcuts/README.md); Linux Web leaves this command unbound by default.
28
30
 
29
31
  - **The type** — `ctx.sidebarRightTabs.register(...)` with kind `files`, id `@deepseek-ai/dsh-client-ui-sidebar-files`, band `builtin`, no patterns, and one guide entry (order 10, its title and description from the `sidebarFiles` namespace, its glyph a yellow folder) that opens the type.
30
- - **The body** — the keyed `sidebar.right.pane.tab` seat under that id: a header row under the strip, then the tree. The shared [`PathLabel`](../ui-primitives/README.md#component-catalog) displays the root path with subdued directories and a primary final segment. A clipped path retains its trailing characters with a left-edge fade; hovering reveals the full path. The reload control and the Session-scoped `sidebar.right.tab.files.actions` list stay at its right, with the displayed root passed as `absolutePath`; [`ui-open-in-app`](../ui-open-in-app/README.md) contributes the workspace directory opener.
32
+ - **The page body** — the keyed `sidebar.right.pane.tab` seat under that id. Its header row spans the page and shows the root through the shared [`PathLabel`](../ui-primitives/README.md#component-catalog) with subdued directories and a primary final segment; a clipped path retains its trailing characters with a left-edge fade, and hovering reveals the full path. The tree's reload control, the Session-scoped `sidebar.right.tab.files.actions` list, which the page's registration declares, with the displayed root passed as `absolutePath`, follow at its end, in the order a preview's header ends with its reload and file actions; [`ui-open-in-app`](../ui-open-in-app/README.md) contributes the workspace directory opener. The pane's navigator fills the page below the header, docked or floating, and has no toggle there.
33
+ - **The rows** — the root-scoped Component Factory `sidebar.files.tree`, with caller-owned entries and a local `accessory` slot; see [Reusable tree Factory](#tree-factory).
34
+ - **The navigator** — the Session-scoped Component Factory `sidebar.files.navigator`, rendered directly by the page body and [`ui-sidebar-documentpreview`](../ui-sidebar-documentpreview/README.md) beside every preview, docked or floating. It draws the tree and its resize edge without a header of its own: beside a preview the preview's header is the only one, and the tree's reload and directory actions stay on the `files` page.
35
+ - **The toggle** — the Session-scoped Factory `sidebar.files.navigator.toggle`, rendered directly at the end of the preview header with `useTabInfo`. Both Factories share the page's store handle and inject face, retaining one open choice per pane; the page body has no toggle.
31
36
  - **The chip title** — the keyed `sidebar.right.pane.tab.title` seat under that id: a shared `FileTypeIcon` folder glyph at 16px before the type's label. The tree's own rows never draw this sheet.
32
37
 
33
- Source files under `src/client/`: `definition.tsx` (the type), `store.ts` (what it keeps), `face.ts` (Remote reads and watches), `directory-node.ts` (open directories and their lifetimes), `FilesBody.tsx` (what it draws, with its ordering and failure-line helpers), `FilesTitle.tsx` (the chip title), `locales.ts` (what it says), and `index.ts` (the wiring).
38
+ The [registration](src/client/index.ts) assembles the page, navigator, toggle, and tree Factories over the shared [files face](src/client/face.ts) and [pane store](src/client/store.ts).
39
+
40
+ <a id="the-navigator"></a>
41
+ ## The navigator
42
+
43
+ Render `sidebar.files.navigator` with `FileNavigatorInput`: `{ useTabInfo, page, onOpen }`. The required `onOpen: (address: string) => void` callback belongs to the containing plugin; the navigator builds the file address without choosing placement. `page` controls presentation only: `true` always fills the files page, while `false` follows the preview's pane preference and available width.
44
+
45
+ The navigator is drawn below the preview's header, which spans the pane, at the right of the row it shares with the body. Beside a preview, its pane's record decides whether it shows: a pane starts with it hidden, and the choice holds for every file tab of the pane until the toggle, Escape, the workspace command, or navigation to a covered preview changes it. A pane without a record of its own, such as a floating panel a tab was dragged out into, starts hidden at the default width. A click outside the tree does not hide it, and opening content in another pane does not hide it either. On the files page the tree fills the page below the header, docked or floating, without a separator, and always shows: the page draws no toggle and Escape leaves it. A file the page opens starts with the destination pane's own choice, hidden for a pane that has made none.
46
+
47
+ Its width is the pane's preference, 260px until the reader drags the separator on its left edge with the primary button or moves it with the arrow keys, Home (narrowest), or End (widest), clamped to the row: at least 180px when the row allows it, and at most the row's width less 336px where the navigator sits beside the body and less 120px where it floats. Beside a preview in a viewport at least 768px wide, the row's width, measured by the face, picks one of three layouts. From 560px on, the navigator is a raised panel beside the body, 8px inside the row's top, right, and bottom edges and 8px clear of the body, which narrows by the panel and its margins but keeps at least 320px. From 400px up to 560px, the same panel floats over the body's right part, so the body keeps its full width and the part the panel leaves uncovered stays scrollable and interactive; the panel covers the body's scrollbar and a renderer's sticky toolbar where they run beneath it. Both panels have rounded corners, the floating dock panel's surface and shadow in light mode, and the compact tree's dark background with a soft white shadow in dark mode. The 560px threshold depends on the row alone, so resizing the tree never moves it between the two layouts. In a row narrower than 400px, or a viewport narrower than 768px, where the right Sidebar presents its panel fullscreen, the navigator fills the row below the header without the separator, and navigation to that preview hides the tree so the file shows. While filled, the covered body is hidden from keyboard navigation, including embedded frames. If the body holds focus when the row or viewport enters this layout, including the tree's first drawing, focus moves into the tree without changing the pane's open choice. The browser may blur the hidden body before the new width is reported; that focus also moves into the tree unless the reader moves the keyboard or the pointer, or the window loses focus, before the report. Docked and floating panes follow the same rules; the floating pane's resize handle remains reachable with the tree open in every layout. Beside a preview, an unmodified Escape that reaches the page's document from the body or the tree in the row closes the navigator at any row width and moves keyboard focus to the toggle; a key pressed while an embedded frame's document holds focus does not bubble to the page's document, so it leaves the navigator open. Escape is heard on the document after the row's own handlers, so a handler in the row that prevents it keeps it.
48
+
49
+ The preview's `onOpen` passes [`replaceTab: true`](../ui-sidebar-right/README.md#ctxsidebarright); the files page passes `{ paneId: panel.id }` when docked and omits placement when floating. The right Sidebar owns replacement, default docked placement, and reveal. A replacement retains the pane's tree. When the tree holds keyboard focus and an open replaces or switches the tab in the same pane, the next drawing focuses the current file's row; revealing another pane leaves the initiating tree and its focus unchanged.
50
+
51
+ A new `tab.navigation.revision` closes only the destination preview's tree, and only when it covers the content row at the destination's current width. The rule applies to every navigation source, including an open from that floating preview's own tree. Hidden trees consume navigation too, so manually showing one does not replay an old close. Ordinary tab switches, floating or docking, and revision `0` restored by reload or undo do not close the tree. The files face retains consumption records for the tab lifetime; navigation subscriptions end on tab closure or plugin disposal. The page's always-visible tree is not closed by navigation.
52
+
53
+ The tree marks the row of the current file with `aria-current`. While the tree is drawn, a file not yet revealed in the pane has its ancestors expanded one listed level at a time and its row scrolled into view; a kept level that is being listed again, as when a hidden tree shows or a collapsed directory reopens, is waited for before a name missing from it ends the reveal; the pane remembers the file it revealed last, so a remount of the same tab changes neither expansion nor scroll. A directory the reader collapses during a reveal ends it, and the pane counts the file as revealed. A file outside the workspace root, or one of another Session, is not located; under a Windows drive or UNC root, containment ignores case and separator spelling, and under a POSIX root it is case-sensitive.
34
54
 
35
55
  <a id="the-tree"></a>
36
56
  ## The tree
37
57
 
38
- The root is the session's working directory, read from `useSessions().byId[sessionId].cwd`. Filesystem roots such as `/` and Windows drive roots are valid tree roots. Every level is keyed by absolute path; a child's path is its parent's joined with the entry name by `/`. A level is listed when it is first expanded, through `remote.workspaceFiles.list(sessionId, absolutePath)` on the `@deepseek-ai/dsh-api-workspace-files` namespace; the adapter keeps the listing's entries and truncation flag and drops its workspace-relative path. Rows are ordered directories first, then by natural, case-insensitive name; dotfiles are shown like any other entry.
58
+ The root is the session's working directory, read from `useSessions().byId[sessionId].cwd`. Filesystem roots such as `/` and Windows drive roots are valid tree roots. Every level is keyed by absolute path; a child's path is its parent's joined with the entry name by `/`. A level is listed when it is first expanded, through `remote.workspaceFiles.list(sessionId, absolutePath)` on the `@deepseek-ai/dsh-api-workspace-files` namespace. The rows are drawn by the [tree Factory](#tree-factory), which orders them; `workspace-tree.ts` passes every listed entry with its listing's name and type as `meta.kind`, the root key without trailing separators, and localized failure lines. The Factory reads its own copy from the files locale. Dotfiles are shown like any other entry.
39
59
 
40
60
  | Entry type | Row |
41
61
  |---|---|
42
62
  | `directory` | Toggles; reopening lists again and restores still-present expanded descendants. Displayed entries remain cached while collapsed. |
43
- | `file` | Opens `dsh-resource://file/session/<sessionId>/<encoded path relative to the root>`, built by `fileAddressFor` from `@deepseek-ai/dsh-util-workspace-path` from the entry's absolute path and the tree's root, through `useTabInfo().tab.actions.openResource`, landing in the tab's own pane. |
63
+ | `file` | Opens `dsh-resource://file/session/<sessionId>/<encoded path relative to the root>`, built by `fileAddressFor` from `@deepseek-ai/dsh-util-workspace-path` from the entry's absolute path and the tree's root, as [the navigator](#the-navigator) describes. While no registered tab type can open that address, for example without `ui-sidebar-documentpreview`, the row is shown greyed and not clickable with a line saying so, and it becomes clickable as soon as a type that opens it registers. |
44
64
  | `other` | Shown greyed and not clickable, so the directory is reported whole. |
45
65
 
46
66
  A level cut by the endpoint's entry cap ends with a marker; an empty level says so; a level that failed shows one line per code — `workspace-file/not-found`, `outside-workspace`, `not-directory` — and the transport's own message otherwise. Reload refreshes the root and expanded levels in place, retaining displayed entries during reads instead of resetting the whole tree; collapsed levels are fetched again when they next open. A session without a working directory shows a single line instead of a tree.
47
67
 
48
- State lives in the type's own store, bucketed by tab id: `root`, `levels` (loading / ready / failed per absolute path), `expanded`, `autoRefresh`, and `scrollTop`, which the body tracks locally while scrolling and commits once when it unmounts. Because the store outlives the body, switching to another sidebar tab and back remounts the tree with its levels intact and its scroll offset restored. The owner's `signal` ends a bucket: on abort the tab is forgotten, and neither a listing that settles afterwards nor the unmount's offset commit writes anything.
68
+ State lives outside the drawing, keyed by the pane id that `useTabInfo().panel` reports. The type's own store holds, per pane, the navigator's `open` choice and `width`, and its `tree` once first shown: `root`, `levels` (loading / ready / failed per absolute path, a ready level marked `refreshing` while it is listed again), `expanded`, and `autoRefresh`. Every file tab of a pane reads the same record, so switching, opening, or closing tabs redraws the navigator with its levels, expansion, width, and scroll intact; a tab switch lists nothing again. Hiding the tree, or showing only tabs without it, closes its directory watches; showing it again lists the root and the expanded directories again in place while their kept rows stay drawn. A tree rooted at a directory other than the Session's current working directory is replaced, and its scroll position and revealed file are reset. A pane keeps its tree while it shows the navigator or holds an open tab that last drew the navigator there: a file tab moved to another pane shows that pane's tree, a tab replaced in place, as a picked file replaces a preview, keeps it, and floating or docking a tab never ends it by itself. Once the last such tab closes or draws the navigator elsewhere, the pane's tree is forgotten. The page and every preview's navigator share one face per Session.
69
+
70
+ Each open `DirectoryNode` owns its target watch while the tree is drawn; collapse closes that node and its hidden descendants. Expansion changes during ancestor restoration update the store and pending nodes, so restored descendants follow the latest expansion preferences. Automatic refresh defaults to enabled; its separate toggle is hidden while state, labels, styles, and toggle logic remain. Changes received during a directory read or its completion remain pending for another refresh.
71
+
72
+ File rows expose the shared [context menu](../ui-context-menu/README.md) without invoking ordinary click navigation. Directory rows and the root path use the `directory` target for native reveal and path copying without expanding the tree.
73
+
74
+ <a id="tree-factory"></a>
75
+ ## Reusable tree Factory
76
+
77
+ To draw workspace listings, changed files, or local diffs, declare `const TREE_OPTIONS = { slots: { accessory: ModuleLevelComponent }, fallback: null }` at module scope, then call `renderFactorySlot('sidebar.files.tree', input, TREE_OPTIONS)`. Keep the options and its `slots` object stable; recreating the local selection makes the whole tree redraw on parent renders. The root-scoped Factory is available only while the files plugin is loaded; without it, `renderFactorySlot` renders the supplied `fallback`, or nothing when omitted. Import declarations and `FileTreeInput`, `TreeEntry`, `TreeEntryMeta`, `TreeEntryKind`, and `TreeDirectoryState` type-only from `@deepseek-ai/dsh-client-ui-sidebar-files/client`; no component value is exported.
78
+
79
+ `FileTreeInput` carries `root`, flat `entries`, `expanded`, `onToggle(entry, expanded)`, and `onOpen(entry)`. Optional `directories` supplies loading, localized failure, and truncation states by key; `current` and `currentRef` mark and expose the current file button. `canOpen(entry)` can refuse a file without disabling its accessory. `rowTriggerProps(entry, kind)` supplies context menu handlers for directory rows and openable file rows. The Factory owns loading, empty, truncated, and unavailable copy through the files locale; callers own data access, expansion, opening, ancestor reveal, and scrolling.
80
+
81
+ A `TreeEntry` is `{ path, name, meta?: { kind?, hidden?, size? } }`. Only `/` separates levels; the parent is the prefix before the last `/`, or `root` when there is none. Names remain caller-supplied; repeated paths keep the first entry. Root-key entries are ignored, including the empty root. Missing intermediate directories are added once, with explicit entries taking precedence. An omitted kind means directory when entries lie below that path, otherwise file. Hidden rows use subdued ink without filtering; size is not drawn. Only visible levels sort, directories first and then by natural case-insensitive name order; each level keeps its sorting cache until its names or directory kinds change.
49
82
 
50
- Each open `DirectoryNode` owns its target watch for the Tab lifetime; collapse closes that node and its hidden descendants. Expansion changes during ancestor restoration update the store and pending nodes, so restored descendants follow the latest expansion preferences. Automatic refresh defaults to enabled; its separate toggle is hidden while state, labels, styles, and toggle logic remain. Changes received during a directory read or its completion remain pending for another refresh.
83
+ The local `accessory` slot has root scope and owner props `{ entry: TreeEntry }`; its Component may also use the derived `FactoryLocalComponentPropsOf<'sidebar.files.tree', 'accessory'>` seats. It receives only `entry` and the Factory's own seats, not the caller's store or inject face. Supply a module-level Component to preserve its identity. Its content sits beside the main button, never inside its action or disabled scope. The default Component renders nothing. The accessory wrapper always exists in the DOM; CSS hides it without taking row space when the slot is absent or its Component returns empty content.
51
84
 
52
85
  <a id="model-experience"></a>
53
86
  ## Model Experience
@@ -61,7 +94,7 @@ None; directory listings travel over the Remote and assemble no model request.
61
94
  ## Known Limitations and Deferred Work
62
95
 
63
96
  <a id="known-limitations-and-deferred-work"></a>
64
- - **Listing only.** No search, artifact filter, drag-and-drop, rename, context menu, or current-file highlight.
97
+ - **Listing only.** No search, artifact filter, drag-and-drop, or rename.
65
98
  - **One root.** The tree is rooted at the session's working directory; there is no way to browse above it, and the Host refuses paths outside the workspace root anyway.
66
99
 
67
100
  <a id="dev-note"></a>
@@ -72,6 +105,6 @@ None; directory listings travel over the Remote and assemble no model request.
72
105
 
73
106
  None.
74
107
 
75
- The page refresh shortcut refreshes the focused file tree through its ordinary directory reader. The reload control displays the effective binding on hover and keyboard focus.
108
+ The page refresh shortcut refreshes the files page's tree through its ordinary directory reader while the tree shows; on a preview it reloads the preview. The page's reload control displays the effective binding on hover and keyboard focus.
76
109
 
77
110
  </details>
@@ -1,5 +1,5 @@
1
1
  ---
2
- description: "dsh Web 客户端右侧 Sidebar 的文件树 tab 类型:通过网络逐层列出会话工作区根目录,按资源地址把文件打开到 Sidebar。"
2
+ description: "dsh Web 客户端右侧 Sidebar 的工作区文件浏览器:文件页,以及停靠与浮动文件预览旁每个分栏一棵的工作区目录树,通过网络逐层列出。"
3
3
  kind: "package-reference"
4
4
  ---
5
5
 
@@ -9,12 +9,14 @@ kind: "package-reference"
9
9
 
10
10
  ## 概述
11
11
 
12
- 浏览 Session 的工作区目录树,并在 Sidebar 预览中打开文件。根目录与已展开目录通过直接子项监听自动刷新,手动重新读取仍可用。该 tab 从引导页进入,不认领资源地址。
12
+ 在预览文件的同时浏览 Session 的工作区目录树。每个分栏(停靠或浮动)保留一棵树,分栏内的每个文件 tab 都显示它:切换、打开或关闭文件时保留其宽度、展开状态与滚动位置,并标出当前文件。预览旁的目录树在该预览的位置打开文件;`files` 页则在右侧 Sidebar 默认落位的新 tab 中打开文件。根目录与已展开目录通过直接子项监听自动刷新,手动重新读取仍可用。`files` 页从引导页进入,不认领资源地址。
13
13
 
14
14
  ## 目录
15
15
 
16
16
  - [注册了什么](#what-it-registers)
17
+ - [导航栏](#the-navigator)
17
18
  - [树](#the-tree)
19
+ - [复用目录树 Factory](#tree-factory)
18
20
  - [模型体验](#model-experience)
19
21
  - [已知限制与暂缓事项](#known-limitations-and-deferred-work)
20
22
  - [开发备注](#dev-note)
@@ -24,30 +26,61 @@ kind: "package-reference"
24
26
  <a id="what-it-registers"></a>
25
27
  ## 注册了什么
26
28
 
27
- 命令 `workspace.files` 在焦点分栏内打开或聚焦文件页;从聊天区触发时使用当前会话的活动停靠分栏。文件页替换开始页,同一分栏内重复打开仍保留一个文件页。桌面默认键为 Mod+P。开始页入口显示有效快捷键;Windows 和 macOS Web 使用[快捷键服务的平台默认值](../shortcuts/README.zh.md);Linux Web 默认不绑定此命令。
29
+ 命令 `workspace.files` 在焦点分栏内显示画在停靠 tab 内容旁的导航栏,并把键盘焦点移到目录树,保留该 tab;从聊天区触发时使用当前会话的活动停靠分栏。其他情况下(文件页本身、不带导航栏的 tab、没有工作目录的会话、浮动 tab)打开或聚焦文件页,文件页的目录树始终显示。文件页替换开始页,同一分栏内重复打开仍保留一个文件页。桌面默认键为 Mod+P。开始页入口显示有效快捷键;Windows 和 macOS Web 使用[快捷键服务的平台默认值](../shortcuts/README.zh.md);Linux Web 默认不绑定此命令。
28
30
 
29
31
  - **类型**:`ctx.sidebarRightTabs.register(...)`,kind 为 `files`,id 为 `@deepseek-ai/dsh-client-ui-sidebar-files`,档位 `builtin`,没有 patterns,另有一个打开该类型的引导页入口(order 10,标题与描述取自 `sidebarFiles` 命名空间,图标为黄色文件夹)。
30
- - **正文**:以该 id 为键的 `sidebar.right.pane.tab` slot:strip 下的一行标题行,然后是树。共享的 [`PathLabel`](../ui-primitives/README.zh.md#component-catalog) 显示根路径,目录使用弱化颜色,最后一段使用主色。路径过长时保留尾部字符并在左侧渐隐;悬停显示完整路径。重新读取控件和 Session 作用域的 `sidebar.right.tab.files.actions` 列表位于右端,并通过 `absolutePath` 传入当前显示的根目录;[`ui-open-in-app`](../ui-open-in-app/README.zh.md) 在此提供工作区目录打开按钮。
32
+ - **文件页正文**:以该 id 为键的 `sidebar.right.pane.tab` slot。其标题行横跨页面,通过共享的 [`PathLabel`](../ui-primitives/README.zh.md#component-catalog) 显示根路径,目录使用弱化颜色,最后一段使用主色;路径过长时保留尾部字符并在左侧渐隐,悬停显示完整路径。末端依次是目录树的重新读取控件、由文件页注册声明的 Session 作用域 `sidebar.right.tab.files.actions` 列表(通过 `absolutePath` 传入当前显示的根目录),顺序与预览标题行末端的重新读取与文件操作一致;[`ui-open-in-app`](../ui-open-in-app/README.zh.md) 在此提供工作区目录打开按钮。标题行下方由该分栏的导航栏铺满整页,停靠与浮动时都一样,这里没有开关。
33
+ - **各行**:root 作用域的 Component Factory `sidebar.files.tree`,接收调用方的条目和局部 `accessory` slot;见[复用目录树 Factory](#tree-factory)。
34
+ - **导航栏**:Session 作用域的 Component Factory `sidebar.files.navigator`。文件页正文和 [`ui-sidebar-documentpreview`](../ui-sidebar-documentpreview/README.zh.md) 直接渲染它,显示在每个预览旁,无论停靠还是浮动。它只绘制目录树及其调整宽度的边缘,没有自己的标题行:预览旁只有预览自己的标题行,目录树的重新读取与目录操作留在 `files` 页上。
35
+ - **开关**:Session 作用域的 Factory `sidebar.files.navigator.toggle`,在预览头部末端直接渲染,传入 `useTabInfo`。两个 Factory 共用文件页的 store handle 和 inject face,每个分栏保留一份开关状态;文件页正文没有开关。
31
36
  - **标签页标题**:以该 id 为键的 `sidebar.right.pane.tab.title` slot:类型标签前的一枚 16px 共享 `FileTypeIcon` 文件夹图标。树本身的行不画这枚图标。
32
37
 
33
- `src/client/` 下的源文件:`definition.tsx`(类型是什么)、`store.ts`(它保存什么)、`face.ts`(Remote 读取与监听)、`directory-node.ts`(打开的目录及其生命周期)、`FilesBody.tsx`(它画什么,含排序与失败行两个辅助函数)、`FilesTitle.tsx`(标签页标题)、`locales.ts`(它说什么)、`index.ts`(接线)。
38
+ [注册入口](src/client/index.ts) 在共享 [files face](src/client/face.ts) 与[分栏 store](src/client/store.ts) 上组装文件页、导航栏、开关和目录树 Factory。
39
+
40
+ <a id="the-navigator"></a>
41
+ ## 导航栏
42
+
43
+ 用 `FileNavigatorInput` 渲染 `sidebar.files.navigator`:`{ useTabInfo, page, onOpen }`。必填的 `onOpen: (address: string) => void` 回调由容纳它的插件提供;导航栏构造文件地址,不决定落位。`page` 只控制呈现:`true` 时始终铺满文件页,`false` 时遵循预览所在分栏的偏好与可用宽度。
44
+
45
+ 导航栏画在横跨分栏的预览标题行下方,位于它与正文共用的那一行的右侧。在预览旁,是否显示由其分栏的记录决定:分栏默认隐藏,这一选择对分栏内的每个文件 tab 都有效,直到开关、Escape、工作区命令,或导航到被目录树遮住的预览改变它。自身没有记录的分栏(例如 tab 拖出后所在的浮窗)从隐藏、默认宽度开始。点击目录树以外的地方不会隐藏它;在另一分栏打开内容也不会隐藏它。在文件页上,目录树铺满标题行下方的整页,停靠与浮动时都一样,不显示分隔条,且始终显示:文件页不画开关,Escape 也不关闭它。文件页打开的文件沿用落定分栏自己的选择,尚未做过选择的分栏为隐藏。
46
+
47
+ 其宽度是分栏的偏好,在读者用主键拖动左缘分隔条,或用方向键、Home(最窄)、End(最宽)调整之前为 260px,并限制在这一行内:行宽允许时至少 180px;与正文并排时至多为行宽减去 336px,悬浮时至多为行宽减去 120px。在预览旁、视口至少 768px 时,face 测得的行宽决定三种布局之一。行宽至少 560px 时,导航栏是正文旁的浮起面板,距行的上、右、下边缘各 8px,与正文相隔 8px;正文让出面板及其外边距的宽度而变窄,但至少保留 320px。行宽在 400px 到 560px 之间时,同样的面板悬浮在正文右侧之上,因此正文保持完整宽度,面板未覆盖的部分仍可滚动、可交互;正文的滚动条和渲染器的吸顶工具栏在面板下方的部分会被它遮住。两种面板都带圆角:浅色模式采用浮动停靠面板的背景与阴影,深色模式采用与紧凑目录树一致的深背景和柔和白色阴影。560px 这一界限只取决于行宽,因此调整目录树宽度不会让它在两种布局之间切换。在窄于 400px 的行中,或窄于 768px、右侧 Sidebar 以全屏呈现面板的视口中,导航栏铺满标题行下方的整行,不显示分隔条,导航到该预览后会隐藏目录树,让文件显示出来。铺满时,被覆盖的正文及其内嵌框架会隐藏,不能通过键盘进入。若行宽或视口进入此布局时正文持有焦点(包括目录树首次绘制时),焦点移到目录树内,不改变分栏的开关选择。浏览器可能在新宽度报告之前就让被隐藏的正文失焦;除非读者在报告之前移动了键盘焦点或指针,或窗口失去焦点,这一焦点同样移到目录树内。停靠与浮动分栏遵循相同规则;目录树开启时,在每种布局下浮窗的缩放手柄都仍可操作。在预览旁,从这一行内的正文或目录树传到页面 document 的不带修饰键的 Escape,在任何行宽下都会关闭导航栏,并把键盘焦点移到开关上;内嵌框架的 document 持有焦点时,按键不会冒泡到页面 document,因此导航栏保持打开。Escape 在 document 上接收,晚于这一行自己的处理器,因此行内处理器若阻止了默认行为,这次按键就留给它。
48
+
49
+ 预览的 `onOpen` 传入 [`replaceTab: true`](../ui-sidebar-right/README.zh.md#ctxsidebarright);文件页在停靠时传入 `{ paneId: panel.id }`,浮动时省略落位。右侧 Sidebar 负责原位替换、默认停靠落位与揭示。原位替换保留分栏的目录树。目录树持有键盘焦点时,若打开操作在同一分栏内替换或切换 tab,下次绘制会聚焦当前文件所在行;揭示其他分栏时,发起侧的目录树与焦点保持不变。
50
+
51
+ 新的 `tab.navigation.revision` 只关闭目标预览的目录树,而且仅在它按目标当前宽度铺满内容行时关闭。该规则适用于任何导航来源,包括从浮动预览自己的目录树发起的打开。隐藏的目录树也消费导航,因此手动显示它不会重放旧的关闭操作。普通 tab 切换、浮出或停靠,以及刷新或 undo 恢复的 revision `0` 都不关闭目录树。files face 的消费记录按 tab 生命周期保存;导航订阅在 tab 关闭或插件卸载时释放。文件页始终可见的目录树不因导航而关闭。
52
+
53
+ 树用 `aria-current` 标出当前文件所在行。目录树绘制期间,分栏内尚未定位过的文件会逐层展开其已列出的祖先目录,并把该行滚动到可见区域;保留的某一层正在重新列出时(例如隐藏的目录树重新显示,或收起的目录重新展开),定位会等它列完,再认定其中缺少的名称不存在;分栏记住上次定位的文件,因此同一 tab 重新挂载时既不改变展开状态,也不改变滚动位置。定位期间读者收起某个目录会结束这次定位,分栏把该文件记为已定位。工作区根目录之外的文件或其他 Session 的文件不会被定位;在 Windows 盘符或 UNC 根目录下,判断是否位于根目录内时不区分大小写和斜杠方向,在 POSIX 根目录下区分大小写。
34
54
 
35
55
  <a id="the-tree"></a>
36
56
  ## 树
37
57
 
38
- 根是会话的工作目录,读自 `useSessions().byId[sessionId].cwd`。`/` 和 Windows 盘根等文件系统根路径均可作为树的根。每一层以绝对路径为键;子路径是父路径以 `/` 拼上条目名。一层在首次展开时经 `@deepseek-ai/dsh-api-workspace-files` 命名空间的 `remote.workspaceFiles.list(sessionId, absolutePath)` 列出;适配器保留列表的条目与截断标志,丢弃其工作区相对路径。行序为目录优先,其后按自然序、不分大小写的名称排列;dotfiles 与其他条目一样显示。
58
+ 根是会话的工作目录,读自 `useSessions().byId[sessionId].cwd`。`/` 和 Windows 盘根等文件系统根路径均可作为树的根。每一层以绝对路径为键;子路径是父路径以 `/` 拼上条目名。一层在首次展开时经 `@deepseek-ai/dsh-api-workspace-files` 命名空间的 `remote.workspaceFiles.list(sessionId, absolutePath)` 列出。各行由[目录树 Factory](#tree-factory) 绘制并排序;`workspace-tree.ts` 传入每个已列出的条目,名字取目录列表中的拼写,类型作为 `meta.kind`,根的键去掉末尾分隔符,并传入已本地化的失败行。Factory 自行从 files locale 读取文案。dotfiles 与其他条目一样显示。
39
59
 
40
60
  | 条目类型 | 行 |
41
61
  |---|---|
42
62
  | `directory` | 切换展开与折叠;再次打开时重新列举,并恢复仍存在的已展开后代。折叠期间保留已显示条目的缓存。 |
43
- | `file` | 经 `useTabInfo().tab.actions.openResource` 打开 `dsh-resource://file/session/<sessionId>/<encoded path relative to the root>`,地址由 `@deepseek-ai/dsh-util-workspace-path` 的 `fileAddressFor` 从条目的绝对路径与树的根生成,落在该 tab 自己的 pane 里。 |
63
+ | `file` | 按[导航栏](#the-navigator)所述打开 `dsh-resource://file/session/<sessionId>/<encoded path relative to the root>`,地址由 `@deepseek-ai/dsh-util-workspace-path` 的 `fileAddressFor` 从条目的绝对路径与树的根生成。没有已注册的 tab 类型能打开该地址时(例如未启用 `ui-sidebar-documentpreview`),该行灰显、不可点击并说明原因;一旦有能打开它的类型注册,就变为可点击。 |
44
64
  | `other` | 灰显且不可点击,从而完整呈现目录内容。 |
45
65
 
46
66
  被端点条目上限截断的层以一条标记收尾;空层如实说明;失败的层按错误码各显示一行(`workspace-file/not-found`、`outside-workspace`、`not-directory`),其他情况显示传输层自己的消息。重新读取就地刷新根与展开中的层,读取期间保留显示条目,不重置整棵树;折叠的层在下次打开时重新拉取。没有工作目录的会话只显示一行说明,而不是树。
47
67
 
48
- 状态保存在类型自己的存储里,按 tab id 分桶:`root`、`levels`(每个绝对路径的 loading / ready / failed)、`expanded`、`autoRefresh` 与 `scrollTop`——滚动期间偏移由正文自己记录,卸载时一次性写入。存储比 body 活得久,切到其他侧栏 tab 再切回来时树带着已加载的层重新挂载,滚动位置也随之恢复。owner 的 `signal` 终结一个桶:中止时忘掉该 tab,其后才结算的列表与卸载时的偏移提交都什么也不写。
68
+ 状态保存在绘制之外,以 `useTabInfo().panel` 报告的分栏 id 为键。类型自己的存储按分栏保存导航栏的 `open` 选择与 `width`,以及首次显示后的 `tree`:`root`、`levels`(每个绝对路径的 loading / ready / failed,ready 层重新列出期间标记 `refreshing`)、`expanded` 与 `autoRefresh`。分栏内的每个文件 tab 读取同一份记录,因此切换、打开或关闭 tab 时导航栏重新绘制,已加载的层、展开状态、宽度与滚动位置保持不变;切换 tab 不会重新列目录。隐藏目录树,或只显示不带目录树的 tab,会关闭其目录监听;再次显示时就地重新列出根目录与已展开的目录,期间保留的行照常显示。根目录不是 Session 当前工作目录的树会被替换,其滚动位置与已定位文件随之重置。分栏在显示导航栏、或仍有打开的 tab 最近一次在该分栏绘制导航栏时保留其目录树:移到另一分栏的文件 tab 显示那个分栏的目录树;原位替换的 tab(如选中的文件替换预览)保留它;浮动或停靠 tab 本身从不终结它。最后一个这样的 tab 关闭或在别处绘制导航栏后,分栏的目录树即被忘掉。文件页与每个预览的导航栏在同一 Session 中共用一个 face。
69
+
70
+ 每个打开的 `DirectoryNode` 在目录树绘制期间持有自己的目标监听;折叠关闭该节点及其不可见后代。祖先恢复期间的展开状态变化会更新存储和待恢复节点,后代恢复时遵循最新展开偏好。自动刷新默认开启;独立开关暂时隐藏,状态、文案、样式与切换逻辑保留。目录读取期间或收尾时收到的变化仍会留待下一次刷新。
71
+
72
+ 文件行提供共享[右键菜单](../ui-context-menu/README.zh.md),不会同时触发普通点击导航。文件夹行和根路径使用 `directory` 操作对象,提供本机显示位置和复制路径操作,不会展开目录。
73
+
74
+ <a id="tree-factory"></a>
75
+ ## 复用目录树 Factory
76
+
77
+ 要绘制工作区列表、变更文件或本地 diff,在模块级声明 `const TREE_OPTIONS = { slots: { accessory: ModuleLevelComponent }, fallback: null }`,再调用 `renderFactorySlot('sidebar.files.tree', input, TREE_OPTIONS)`。保持 options 及其 `slots` 对象稳定;重新创建局部选择会让整棵树随父组件渲染而重画。该 root 作用域 Factory 仅在 files 插件加载时可用;未加载时,`renderFactorySlot` 绘制传入的 `fallback`,省略时不绘制内容。从 `@deepseek-ai/dsh-client-ui-sidebar-files/client` 仅以类型方式导入声明以及 `FileTreeInput`、`TreeEntry`、`TreeEntryMeta`、`TreeEntryKind`、`TreeDirectoryState`;不导出组件值。
78
+
79
+ `FileTreeInput` 携带 `root`、扁平 `entries`、`expanded`、`onToggle(entry, expanded)` 和 `onOpen(entry)`。可选的 `directories` 按键提供加载、本地化失败和截断状态;`current` 与 `currentRef` 标记并提供当前文件按钮。`canOpen(entry)` 可以拒绝打开文件而不禁用其附件。`rowTriggerProps(entry, kind)` 为文件夹行和可打开的文件行提供右键菜单处理器。Factory 通过 files locale 拥有加载、空目录、截断与不可用文案;调用方负责数据访问、展开、打开、祖先定位和滚动。
80
+
81
+ `TreeEntry` 为 `{ path, name, meta?: { kind?, hidden?, size? } }`。只有 `/` 分隔层级;父级是最后一个 `/` 前的部分,没有 `/` 时为 `root`。名字保持调用方传入的值;重复路径保留首个条目。根键条目被忽略,包括空根。缺少的中间目录只补一次,显式条目优先。省略 kind 时,路径下有条目则为目录,否则为文件。隐藏行用弱化文字颜色显示,不过滤;大小不显示。只有可见层排序,目录优先,再按名字的自然顺序、不区分大小写排列;各层保留排序缓存,直到名字或目录类型变化。
49
82
 
50
- 每个打开的 `DirectoryNode` 在 Tab 生命周期内持有自己的目标监听;折叠关闭该节点及其不可见后代。祖先恢复期间的展开状态变化会更新存储和待恢复节点,后代恢复时遵循最新展开偏好。自动刷新默认开启;独立开关暂时隐藏,状态、文案、样式与切换逻辑保留。目录读取期间或收尾时收到的变化仍会留待下一次刷新。
83
+ 局部 `accessory` slot 使用 root 作用域,owner props 为 `{ entry: TreeEntry }`;其组件还可使用派生的 `FactoryLocalComponentPropsOf<'sidebar.files.tree', 'accessory'>` 席位。它只收到 `entry` 和 Factory 自己的席位,拿不到调用方的 store 或 inject face。传入模块级组件以保持身份稳定。附件位于主按钮旁,不在其操作或禁用范围内。默认组件不渲染内容。附件包装容器始终存在于 DOM 中;未提供 slot 或其组件返回空内容时,CSS 将其隐藏且不占用行空间。
51
84
 
52
85
  <a id="model-experience"></a>
53
86
  ## 模型体验
@@ -61,7 +94,7 @@ kind: "package-reference"
61
94
  ## 已知限制与暂缓事项
62
95
 
63
96
  <a id="known-limitations-and-deferred-work"></a>
64
- - **只有列目录。**没有搜索、产物过滤、拖拽、重命名、右键菜单或当前文件高亮。
97
+ - **只有列目录。**没有搜索、产物过滤、拖拽或重命名。
65
98
  - **只有一个根。**树以会话工作目录为根;没有办法浏览到它之上,而 Host 本来也拒绝工作区根之外的路径。
66
99
 
67
100
  <a id="dev-note"></a>
@@ -72,6 +105,6 @@ kind: "package-reference"
72
105
 
73
106
  无。
74
107
 
75
- 页面刷新快捷键通过常规目录读取器刷新聚焦的文件树。重新读取控件在悬停和键盘聚焦时显示有效绑定。
108
+ 页面刷新快捷键在文件页上、目录树显示期间通过常规目录读取器刷新其树,在预览中重新载入预览。文件页的重新读取控件在悬停和键盘聚焦时显示有效绑定。
76
109
 
77
110
  </details>