@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
@@ -4,11 +4,22 @@ window.__ModuleLoader__.load({
4
4
  var module = { exports: {} };
5
5
  var exports = module.exports;
6
6
  Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
- let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
8
7
  let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
8
+ let react = require("react");
9
+ let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
9
10
  let _deepseek_ai_cordis = require("@deepseek-ai/cordis");
10
11
  let react_jsx_runtime = require("react/jsx-runtime");
11
- let react = require("react");
12
+ //#region lib/types/client/session-actions/SessionMenu.js
13
+ /** Legacy external Session contributions shared by the row, header, and More trigger. */
14
+ /** @param props - captured Session and the existing extension position. @returns legacy component contributions. */
15
+ function SessionMenu({ target, dismiss, renderSlot }) {
16
+ const hookContext = (0, react.useMemo)(() => [true, (open) => {
17
+ if (!open) dismiss();
18
+ }], [dismiss]);
19
+ if (target.kind !== "session") return null;
20
+ return renderSlot("sidebar.workspaces.session.menu.item", target.value, { hookContext });
21
+ }
22
+ //#endregion
12
23
  //#region lib/types/client/contract/slots.js
13
24
  /**
14
25
  * Bind the row's render occurrence into the entries' `useMenuOpenState` hook:
@@ -77,7 +88,7 @@ window.__ModuleLoader__.load({
77
88
  }
78
89
  /**
79
90
  * Register navigation commands against the existing workspace owner.
80
- * Rename requires a nonblank main Conversation with no modal obscuring it.
91
+ * Rename requires a nonblank main Conversation with no modal other than the navigation drawer obscuring it.
81
92
  * @param ctx - plugin context with the shortcut, locale, and model services.
82
93
  * @param navigation - session creation and forking from the pointer controls' navigation service.
83
94
  * @param controls - browser-owned opening requests.
@@ -116,7 +127,7 @@ window.__ModuleLoader__.load({
116
127
  }
117
128
  },
118
129
  regions: ["page", "editable"],
119
- modals: [],
130
+ modals: ["sidebar"],
120
131
  resolve
121
132
  }), `ui-workspace: ${id}`);
122
133
  };
@@ -142,7 +153,7 @@ window.__ModuleLoader__.load({
142
153
  });
143
154
  register("session.rename", () => t("rename.session.title"), ["rename session"], "KeyG", ["primary", "alt"], ["primary", "alt"], (context) => {
144
155
  const target = current();
145
- return target === void 0 || target.blank || context.modal !== null || ctx.layout.panelInfo.getSnapshot().activePanelId !== null ? {
156
+ return target === void 0 || target.blank || context.modal !== null && context.modal !== "sidebar" || ctx.layout.panelInfo.getSnapshot().activePanelId !== null ? {
146
157
  status: "blocked",
147
158
  reason: t("shortcut.noSession")
148
159
  } : {
@@ -1722,6 +1733,210 @@ window.__ModuleLoader__.load({
1722
1733
  for (var e, t, f = 0, n = "", o = arguments.length; f < o; f++) (e = arguments[f]) && (t = r(e)) && (n && (n += " "), n += t);
1723
1734
  return n;
1724
1735
  }
1736
+ //#endregion
1737
+ //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/WorkspaceBrowser.module.css.mjs
1738
+ const css$2 = ".BpFSpG_root{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding);--dsh-session-list-scrollbar-width:5px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;min-height:0;padding-right:var(--dsh-session-list-edge-inset);flex-direction:column;flex:1;display:flex}.BpFSpG_root.BpFSpG_rail{padding-right:0}.BpFSpG_iconButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_iconButton:focus-visible,.BpFSpG_searchButton:focus-visible,.BpFSpG_clearButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}@media (hover:hover){.BpFSpG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_viewOptionsMenu{min-width:200px}.BpFSpG_sectionHeader{height:36px;padding-left:var(--dsh-sidebar-row-padding);box-sizing:border-box;border-radius:var(--dsw-radius-md);color:var(--dsw-alias-label-tertiary);flex:none;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:4px;display:flex;overflow:hidden}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader{margin-top:2px;margin-right:-4px}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader.BpFSpG_searchSpacingMotion{transition:margin-right .18s var(--ds-ease-in-out), padding-inline .18s var(--ds-ease-in-out), gap .18s var(--ds-ease-in-out)}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader:not(:has(.BpFSpG_searchExpanded)){padding-right:1px}.BpFSpG_sectionLabel{white-space:nowrap;opacity:1;visibility:visible;min-width:0;max-width:45%;transition:max-width .18s var(--ds-ease-in-out), margin-right .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;line-height:20px;position:relative;left:-1px;overflow:hidden}.BpFSpG_sectionLabelHidden{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transition-delay:0s,0s,0s,0s,.18s;transform:translate(-4px)}.BpFSpG_searchSlot{box-sizing:border-box;min-width:0;max-width:28px;transition:max-width .18s var(--ds-ease-in-out), padding-left .18s var(--ds-ease-in-out);flex:1;align-items:center;margin-left:auto;padding-left:0;display:flex}.BpFSpG_searchSlotExpanded{max-width:100%;padding-left:0}.BpFSpG_headerActions{opacity:1;visibility:visible;max-width:60px;transition:max-width .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:hidden}.BpFSpG_headerActionsHidden{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transition-delay:0s,0s,0s,.18s;transform:translate(4px)}.BpFSpG_search{box-sizing:border-box;border-radius:var(--dsw-radius-sm);cursor:text;width:100%;height:28px;color:var(--dsw-alias-label-secondary);transition:width .18s var(--ds-ease-in-out), padding .18s var(--ds-ease-in-out), border-color .18s var(--ds-ease-in-out), background-color .18s var(--ds-ease-in-out);background:0 0;border:none;flex:none;align-items:center;gap:0;margin:0;padding:0;display:flex;overflow:hidden}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader:has(.BpFSpG_searchExpanded){padding-inline:calc(var(--dsh-sidebar-paint-inset) + 1px);gap:0;margin-right:0}.BpFSpG_sectionHeader:has(.BpFSpG_searchExpanded) .BpFSpG_sectionLabelHidden{margin-right:0}.BpFSpG_searchExpanded{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;color:var(--dsw-alias-label-caption);background:0 0;margin-inline:0;padding:0 4px 0 0}.BpFSpG_searchButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:inherit;background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_searchExpanded .BpFSpG_searchButton{width:28px;height:32px}@media (hover:hover){.BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_searchExpanded .BpFSpG_searchButton:hover{background:0 0}}.BpFSpG_searchInput{opacity:0;pointer-events:none;width:0;min-width:0;color:var(--dsw-alias-label-primary);transition:opacity .12s var(--ds-ease-in-out);background:0 0;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.BpFSpG_searchExpanded .BpFSpG_searchInput{opacity:1;pointer-events:auto;margin-left:-2px}.BpFSpG_searchInput::placeholder{color:var(--dsw-alias-label-tertiary)}.BpFSpG_clearButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.BpFSpG_clearButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_rail .BpFSpG_sectionHeader{justify-content:flex-start;gap:0;margin-bottom:12px;padding-left:0}.BpFSpG_rail .BpFSpG_headerActions{max-width:none}.BpFSpG_rail .BpFSpG_iconButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}.BpFSpG_rail .BpFSpG_search{border-radius:var(--dsw-radius-md);background:0 0;border-color:#0000;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.BpFSpG_rail .BpFSpG_searchButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}@media (hover:hover){.BpFSpG_rail .BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_listArea{min-height:0;margin-left:-4px;margin-right:calc(-1 * var(--dsh-session-list-edge-inset));flex-direction:column;flex:1;padding-left:4px;display:flex;overflow:visible}.BpFSpG_rail .BpFSpG_listArea{margin-left:0;margin-right:0;padding-left:0}.BpFSpG_treeBody{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.BpFSpG_fade{left:0;right:var(--dsh-session-list-edge-inset);background:linear-gradient(to bottom, transparent, var(--dsw-specific-sidebar-fill));pointer-events:none;height:24px;position:absolute;bottom:0}[data-platform=darwin] .BpFSpG_fade{display:none}.BpFSpG_wide{animation:BpFSpG_wide-in .2s var(--ds-ease-in-out)}@keyframes BpFSpG_wide-in{0%{opacity:0}}.BpFSpG_list{min-height:0;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);padding-left:4px;padding-right:calc(var(--dsh-session-list-edge-inset) - var(--dsh-session-list-scrollbar-width) - var(--dsh-session-list-scrollbar-offset));scrollbar-gutter:stable;flex:1;padding-bottom:16px;overflow-y:auto}.BpFSpG_flatList>*+*,.BpFSpG_searchTree>[role=treeitem]+[role=treeitem],.BpFSpG_groupSection>*+*{margin-top:2px}.BpFSpG_searchStatus{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.BpFSpG_skeletonRow{align-items:flex-start;gap:var(--dsh-sidebar-label-gap);box-sizing:border-box;min-height:48px;padding:6px var(--dsh-sidebar-row-padding) 7px;display:flex}.BpFSpG_skeletonDot{corner-shape:round;border-radius:50%;flex:none;width:16px;height:16px}.BpFSpG_skeletonBars{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{background:var(--dsw-alias-bg-skeleton);animation:2s cubic-bezier(.36,0,.64,1) infinite BpFSpG_search-skeleton}.BpFSpG_skeletonBar{border-radius:var(--dsw-radius-xs);width:65%;height:16px}.BpFSpG_skeletonBarWide{width:90%;height:13px}@keyframes BpFSpG_search-skeleton{0%{opacity:1}40%{opacity:.6}80%,to{opacity:1}}.BpFSpG_groupSection{position:relative}.BpFSpG_groupSection+.BpFSpG_groupSection{margin-top:4px}.BpFSpG_listTopDropIndicator,.BpFSpG_workspaceDropBefore:before,.BpFSpG_workspaceDropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:0}.BpFSpG_listTopDropIndicator{top:-8px;left:0;right:var(--dsh-session-list-edge-inset)}.BpFSpG_listTopDropActive>.BpFSpG_workspaceDropBefore:first-child:before{display:none}.BpFSpG_workspaceDropBefore:before{top:-8px}.BpFSpG_workspaceDropAfter:after{bottom:-8px}.BpFSpG_sessionOverflowButton{border-radius:var(--dsw-radius-sm);width:100%;height:28px;padding:0 var(--dsh-sidebar-row-padding) 0 calc(var(--dsh-sidebar-row-padding) + 16px + var(--dsh-sidebar-label-gap) + var(--dsh-workspace-indent,0px));cursor:pointer;text-align:left;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;font-size:12px}.BpFSpG_groupSection>.BpFSpG_sessionOverflowButton{margin-top:0}@media (hover:hover){.BpFSpG_sessionOverflowButton:hover{color:var(--dsw-alias-label-secondary);background:0 0}}.BpFSpG_empty{color:var(--dsw-alias-label-tertiary);padding:16px 12px;font-size:13px}.BpFSpG_emptyState{color:var(--dsw-alias-label-tertiary);flex-direction:column;align-items:center;gap:8px;margin-top:80px;padding:0 12px;font-size:13px;line-height:20px;display:flex}.BpFSpG_emptyState>svg{color:var(--dsw-alias-label-caption);margin-bottom:4px}.BpFSpG_emptyAction{cursor:pointer;color:var(--dsw-alias-link);background:0 0;border:none;padding:0;font-size:13px;line-height:20px}.BpFSpG_renameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);width:100%;height:44px;color:var(--dsw-alias-label-primary);background:0 0;outline:none;padding:7px 14px;font-size:14px;font-weight:400;line-height:22px}.BpFSpG_renameInput:disabled{color:var(--dsw-alias-label-dimmed)}.BpFSpG_renameError{color:var(--dsw-alias-state-error-primary);margin-top:8px;font-size:12px;line-height:18px}.BpFSpG_deleteAction:not(:disabled){color:var(--dsw-alias-state-error-primary)}.BpFSpG_deleteStatus{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.BpFSpG_archiveActivity{color:var(--dsw-alias-label-primary);margin:0 0 8px;padding-left:18px;font-size:13px;line-height:20px}.BpFSpG_archiveActivity li{overflow-wrap:anywhere}@media (pointer:coarse){.BpFSpG_searchInput,.BpFSpG_renameInput{font-size:16px}}@media (prefers-reduced-motion:reduce){.BpFSpG_wide,.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{animation:none}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader.BpFSpG_searchSpacingMotion,.BpFSpG_search,.BpFSpG_sectionLabel,.BpFSpG_searchSlot,.BpFSpG_searchInput,.BpFSpG_headerActions{transition:none}}";
1739
+ const tagId$2 = "@deepseek-ai/dsh-client-ui-workspace/WorkspaceBrowser.module.css";
1740
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
1741
+ const tag = document.createElement("style");
1742
+ tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-workspace";
1743
+ tag.dataset.pluginCss = tagId$2;
1744
+ tag.textContent = css$2;
1745
+ document.head.appendChild(tag);
1746
+ }
1747
+ var WorkspaceBrowser_module_css_default = {
1748
+ "archiveActivity": "BpFSpG_archiveActivity",
1749
+ "clearButton": "BpFSpG_clearButton",
1750
+ "deleteAction": "BpFSpG_deleteAction",
1751
+ "deleteStatus": "BpFSpG_deleteStatus",
1752
+ "empty": "BpFSpG_empty",
1753
+ "emptyAction": "BpFSpG_emptyAction",
1754
+ "emptyState": "BpFSpG_emptyState",
1755
+ "fade": "BpFSpG_fade",
1756
+ "flatList": "BpFSpG_flatList",
1757
+ "groupSection": "BpFSpG_groupSection",
1758
+ "headerActions": "BpFSpG_headerActions",
1759
+ "headerActionsHidden": "BpFSpG_headerActionsHidden",
1760
+ "iconButton": "BpFSpG_iconButton",
1761
+ "list": "BpFSpG_list",
1762
+ "listArea": "BpFSpG_listArea",
1763
+ "listTopDropActive": "BpFSpG_listTopDropActive",
1764
+ "listTopDropIndicator": "BpFSpG_listTopDropIndicator",
1765
+ "rail": "BpFSpG_rail",
1766
+ "renameError": "BpFSpG_renameError",
1767
+ "renameInput": "BpFSpG_renameInput",
1768
+ "root": "BpFSpG_root",
1769
+ "search": "BpFSpG_search",
1770
+ "search-skeleton": "BpFSpG_search-skeleton",
1771
+ "searchButton": "BpFSpG_searchButton",
1772
+ "searchExpanded": "BpFSpG_searchExpanded",
1773
+ "searchInput": "BpFSpG_searchInput",
1774
+ "searchSlot": "BpFSpG_searchSlot",
1775
+ "searchSlotExpanded": "BpFSpG_searchSlotExpanded",
1776
+ "searchSpacingMotion": "BpFSpG_searchSpacingMotion",
1777
+ "searchStatus": "BpFSpG_searchStatus",
1778
+ "searchTree": "BpFSpG_searchTree",
1779
+ "sectionHeader": "BpFSpG_sectionHeader",
1780
+ "sectionLabel": "BpFSpG_sectionLabel",
1781
+ "sectionLabelHidden": "BpFSpG_sectionLabelHidden",
1782
+ "sessionOverflowButton": "BpFSpG_sessionOverflowButton",
1783
+ "skeletonBar": "BpFSpG_skeletonBar",
1784
+ "skeletonBarWide": "BpFSpG_skeletonBarWide",
1785
+ "skeletonBars": "BpFSpG_skeletonBars",
1786
+ "skeletonDot": "BpFSpG_skeletonDot",
1787
+ "skeletonRow": "BpFSpG_skeletonRow",
1788
+ "treeBody": "BpFSpG_treeBody",
1789
+ "viewOptionsMenu": "BpFSpG_viewOptionsMenu",
1790
+ "wide": "BpFSpG_wide",
1791
+ "wide-in": "BpFSpG_wide-in",
1792
+ "workspaceDropAfter": "BpFSpG_workspaceDropAfter",
1793
+ "workspaceDropBefore": "BpFSpG_workspaceDropBefore"
1794
+ };
1795
+ //#endregion
1796
+ //#region lib/types/client/rows/WorkspaceDialogs.js
1797
+ /** Workspace rename and removal dialogs, keyed by their captured request. */
1798
+ /** @param props - captured request, current Workspace list, and existing mutations. @returns the active dialog. */
1799
+ function WorkspaceDialogs({ request, workspaces, renameWorkspace, deleteWorkspace, settleWorkspaceAction, t }) {
1800
+ const composingRef = (0, react.useRef)(false);
1801
+ const renameTarget = request.action === "rename" ? request : null;
1802
+ const [renameDraft, setRenameDraft] = (0, react.useState)(request.displayTitle);
1803
+ const [renaming, setRenaming] = (0, react.useState)(false);
1804
+ const [renameError, setRenameError] = (0, react.useState)(null);
1805
+ const renameTrimmed = renameDraft.trim();
1806
+ const renameDuplicate = renameTarget !== null && renameTrimmed !== "" && workspaces.some((w) => w.workspaceId !== renameTarget.workspaceId && w.title === renameTrimmed);
1807
+ const renameBlocked = renaming || renameTrimmed === "" || renameTarget === null || renameTrimmed === renameTarget.storedTitle || renameDuplicate;
1808
+ const closeRename = () => {
1809
+ if (renaming) return;
1810
+ settleWorkspaceAction();
1811
+ setRenameError(null);
1812
+ };
1813
+ const confirmRename = () => {
1814
+ if (renameBlocked) return;
1815
+ setRenaming(true);
1816
+ setRenameError(null);
1817
+ renameWorkspace(renameTarget.workspaceId, renameTrimmed).then(() => {
1818
+ setRenaming(false);
1819
+ settleWorkspaceAction();
1820
+ }).catch((reason) => {
1821
+ setRenaming(false);
1822
+ setRenameError(reason instanceof Error ? reason.message : String(reason));
1823
+ });
1824
+ };
1825
+ const deleteTarget = request.action === "delete" ? request : null;
1826
+ const [deleting, setDeleting] = (0, react.useState)(false);
1827
+ const [deleteCommittedId, setDeleteCommittedId] = (0, react.useState)(null);
1828
+ const [deleteError, setDeleteError] = (0, react.useState)(null);
1829
+ (0, react.useEffect)(() => {
1830
+ if (deleteCommittedId === null || workspaces.some((workspace) => workspace.workspaceId === deleteCommittedId)) return;
1831
+ setDeleting(false);
1832
+ setDeleteCommittedId(null);
1833
+ settleWorkspaceAction();
1834
+ }, [
1835
+ deleteCommittedId,
1836
+ workspaces,
1837
+ settleWorkspaceAction
1838
+ ]);
1839
+ const closeDelete = () => {
1840
+ if (deleting) return;
1841
+ settleWorkspaceAction();
1842
+ setDeleteError(null);
1843
+ };
1844
+ const confirmDelete = () => {
1845
+ /* v8 ignore next -- the Modal is absent without a target and its button is disabled while deleting. */
1846
+ if (deleting || deleteTarget === null) return;
1847
+ setDeleting(true);
1848
+ setDeleteCommittedId(null);
1849
+ setDeleteError(null);
1850
+ deleteWorkspace(deleteTarget.workspaceId).then(() => {
1851
+ setDeleteCommittedId(deleteTarget.workspaceId);
1852
+ }).catch((reason) => {
1853
+ setDeleting(false);
1854
+ setDeleteError(reason instanceof Error ? reason.message : String(reason));
1855
+ });
1856
+ };
1857
+ return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1858
+ open: renameTarget !== null,
1859
+ onClose: closeRename,
1860
+ closeLabel: t("close"),
1861
+ title: t("rename.workspace.title"),
1862
+ footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1863
+ variant: "outline",
1864
+ disabled: renaming,
1865
+ onClick: closeRename,
1866
+ children: t("cancel")
1867
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1868
+ variant: "primary",
1869
+ disabled: renameBlocked,
1870
+ onClick: confirmRename,
1871
+ children: t("rename")
1872
+ })] }),
1873
+ children: [
1874
+ (0, react_jsx_runtime.jsx)("input", {
1875
+ className: WorkspaceBrowser_module_css_default.renameInput,
1876
+ value: renameDraft,
1877
+ "aria-label": t("field.workspaceName"),
1878
+ "data-modal-autofocus": true,
1879
+ disabled: renaming,
1880
+ onFocus: (e) => {
1881
+ e.target.select();
1882
+ },
1883
+ onChange: (e) => {
1884
+ setRenameDraft(e.target.value);
1885
+ setRenameError(null);
1886
+ },
1887
+ onCompositionStart: () => {
1888
+ composingRef.current = true;
1889
+ },
1890
+ onCompositionEnd: () => {
1891
+ composingRef.current = false;
1892
+ },
1893
+ onKeyDown: (e) => {
1894
+ if (e.key === "Enter" && !composingRef.current) {
1895
+ e.preventDefault();
1896
+ confirmRename();
1897
+ }
1898
+ }
1899
+ }),
1900
+ renameDuplicate && (0, react_jsx_runtime.jsx)("div", {
1901
+ className: WorkspaceBrowser_module_css_default.renameError,
1902
+ role: "alert",
1903
+ children: t("conflict.named", { name: renameTrimmed })
1904
+ }),
1905
+ renameError !== null && (0, react_jsx_runtime.jsx)("div", {
1906
+ className: WorkspaceBrowser_module_css_default.renameError,
1907
+ role: "alert",
1908
+ children: renameError
1909
+ })
1910
+ ]
1911
+ }), (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1912
+ open: deleteTarget !== null,
1913
+ onClose: closeDelete,
1914
+ closeLabel: t("close"),
1915
+ title: t("delete.workspace"),
1916
+ ...deleteTarget === null ? {} : { description: t("delete.desc", { name: deleteTarget.displayTitle }) },
1917
+ footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1918
+ variant: "outline",
1919
+ disabled: deleting,
1920
+ onClick: closeDelete,
1921
+ children: t("cancel")
1922
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1923
+ variant: "outline",
1924
+ className: WorkspaceBrowser_module_css_default.deleteAction,
1925
+ disabled: deleting,
1926
+ onClick: confirmDelete,
1927
+ children: t("delete.workspace")
1928
+ })] }),
1929
+ children: [deleting && (0, react_jsx_runtime.jsx)("div", {
1930
+ className: WorkspaceBrowser_module_css_default.deleteStatus,
1931
+ role: "status",
1932
+ children: t("delete.pending")
1933
+ }), deleteError !== null && (0, react_jsx_runtime.jsx)("div", {
1934
+ className: WorkspaceBrowser_module_css_default.renameError,
1935
+ role: "alert",
1936
+ children: deleteError
1937
+ })]
1938
+ })] });
1939
+ }
1725
1940
  /**
1726
1941
  * The text one Workspace is labeled with. A Workspace still carrying the
1727
1942
  * automatic first-use title reads as the caller's localized default name; every
@@ -1737,13 +1952,13 @@ window.__ModuleLoader__.load({
1737
1952
  }
1738
1953
  //#endregion
1739
1954
  //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/Rows.module.css.mjs
1740
- const css$2 = ".wyiY7G_projectRow,.wyiY7G_sessionRow{align-items:center;gap:var(--dsh-sidebar-label-gap);border-radius:var(--dsw-radius-md);border-inline:var(--dsh-sidebar-paint-inset) solid transparent;box-sizing:border-box;padding:0 8px;cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--dsw-alias-label-primary);background-clip:padding-box;padding-inline-start:calc(var(--dsh-sidebar-row-padding) - var(--dsh-sidebar-paint-inset) + var(--dsh-workspace-indent,0px));display:flex}@media (hover:hover){.wyiY7G_projectRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}}.wyiY7G_sessionRow.wyiY7G_selected{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_dragPreview{background:var(--dsw-specific-sidebar-fill)}.wyiY7G_searchResultRow{box-sizing:border-box;border-radius:var(--dsw-radius-lg);width:100%;min-height:48px;padding:4px calc(var(--dsh-sidebar-row-padding) - var(--dsh-sidebar-paint-inset));border:none;border-inline:var(--dsh-sidebar-paint-inset) solid transparent;cursor:pointer;text-align:left;color:var(--dsw-alias-label-primary);background:padding-box padding-box;flex-direction:column;align-items:stretch;display:flex}@media (hover:hover){.wyiY7G_searchResultRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}}.wyiY7G_searchResultRow.wyiY7G_selected{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_searchResultHeading{align-items:center;min-width:0;display:flex}.wyiY7G_searchResultTitle{min-width:0;margin:0 var(--dsh-sidebar-label-gap);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_searchResultMeta{min-width:0;margin-left:calc(16px + var(--dsh-sidebar-label-gap));align-items:center;gap:6px;display:flex}.wyiY7G_searchResultWorkspace,.wyiY7G_searchResultSnippet{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.wyiY7G_searchResultWorkspace{max-width:40%;color:var(--dsw-alias-label-tertiary);flex:none}.wyiY7G_searchResultWorkspace:only-child{max-width:100%}.wyiY7G_searchResultSnippet{min-width:0;color:var(--dsw-alias-label-secondary);flex:1}.wyiY7G_projectRow{box-sizing:border-box;align-items:center;height:34px}.wyiY7G_projectRow .wyiY7G_rowActions{height:20px}.wyiY7G_sessionRow{gap:0;height:32px}.wyiY7G_sessionRow .wyiY7G_title{margin:0 6px 0 var(--dsh-sidebar-label-gap)}.wyiY7G_slot{width:16px;height:20px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;display:inline-flex}.wyiY7G_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wyiY7G_folderActive{color:var(--dsw-alias-state-business-primary)}.wyiY7G_projectRow .wyiY7G_chevron{display:none}@media (hover:hover){.wyiY7G_projectRow:hover .wyiY7G_chevron{display:inline-flex}.wyiY7G_projectRow:hover .wyiY7G_folder{display:none}}.wyiY7G_arrow{transition:transform .15s var(--ds-ease-in-out)}.wyiY7G_arrowOpen{transform:rotate(90deg)}.wyiY7G_projectText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.wyiY7G_title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_renameInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-button-elevated-fill);min-width:0;color:inherit;outline:none;padding:0 2px;font-size:14px;line-height:20px}.wyiY7G_sessionRow .wyiY7G_title{flex:1}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled]{mask-image:linear-gradient(90deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-clipped]{mask-image:linear-gradient(270deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled][data-clipped]{mask-image:linear-gradient(90deg,#0000,#000 12px calc(100% - 12px),#0000)}.wyiY7G_meta{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow:hidden}.wyiY7G_time{color:var(--dsw-alias-label-tertiary);flex:none;margin-inline-end:-1px;font-size:10px;line-height:16px}.wyiY7G_pinIndicator{width:16px;height:20px;color:var(--dsw-alias-label-caption);flex:none;justify-content:center;align-items:center;margin-left:6px;display:inline-flex}.wyiY7G_sessionRow.wyiY7G_archived .wyiY7G_title,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultTitle,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultWorkspace,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultSnippet{color:var(--dsw-alias-label-caption)}.wyiY7G_dot{flex:none}.wyiY7G_rowActions{flex:none;align-items:center;gap:13px;display:none}@media (hover:hover){.wyiY7G_projectRow:hover .wyiY7G_rowActions,.wyiY7G_searchResultRow:hover .wyiY7G_rowActions{display:inline-flex}}.wyiY7G_projectRow.wyiY7G_menuOpen .wyiY7G_rowActions{display:inline-flex}.wyiY7G_rowQuickActions{display:contents}.wyiY7G_searchResultHeading .wyiY7G_rowActions{margin-left:auto}.wyiY7G_rowResting{color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:6px;display:inline-flex}.wyiY7G_rowResting .wyiY7G_pinIndicator{margin-left:0}@media (hover:hover){.wyiY7G_sessionRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_sessionRow:hover .wyiY7G_rowActions,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_rowActions,html[data-input-modality=keyboard] .wyiY7G_sessionRow:focus-within .wyiY7G_rowActions{display:inline-flex}.wyiY7G_sessionRow:hover .wyiY7G_rowResting,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_rowResting,html[data-input-modality=keyboard] .wyiY7G_sessionRow:focus-within .wyiY7G_rowResting{display:none}.wyiY7G_sessionRow:hover .wyiY7G_title,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_title{text-overflow:clip}}@media (hover:none){.wyiY7G_projectRow .wyiY7G_rowActions,.wyiY7G_searchResultRow .wyiY7G_rowActions,.wyiY7G_sessionRow .wyiY7G_rowActions{display:inline-flex}.wyiY7G_sessionRow .wyiY7G_rowQuickActions{display:none}}.wyiY7G_projectRow.wyiY7G_menuOpen,.wyiY7G_sessionRow.wyiY7G_menuOpen{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_sessionRow.wyiY7G_dropBefore,.wyiY7G_sessionRow.wyiY7G_dropAfter{position:relative}.wyiY7G_sessionRow.wyiY7G_dropBefore:before,.wyiY7G_sessionRow.wyiY7G_dropAfter:after{content:\"\";z-index:1;left:calc(-1 * var(--dsh-sidebar-paint-inset));right:calc(4px - var(--dsh-sidebar-paint-inset));background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute}.wyiY7G_sessionRow.wyiY7G_dropBefore:before{top:-7px}.wyiY7G_sessionRow.wyiY7G_dropAfter:after{bottom:-7px}.wyiY7G_hoverContent{flex-direction:column;gap:8px;display:flex}.wyiY7G_hoverTitle{color:#fff;overflow-wrap:break-word;font-size:14px;line-height:20px}.wyiY7G_hoverPath{color:#cfd3d6;word-break:break-all;font-size:12px;line-height:16px}.wyiY7G_hoverTime{color:#cfd3d6;font-size:12px;line-height:16px}.wyiY7G_hoverStatus{color:#adb2b8;align-items:center;gap:8px;font-size:12px;line-height:20px;display:flex}.wyiY7G_hoverArchived svg{flex-shrink:0;margin:0 -4px}.wyiY7G_iconButton{border-radius:var(--dsw-radius-xs);cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;margin:-4px;padding:0;display:inline-flex}.wyiY7G_iconButton:focus-visible{outline-offset:-2px}@media (hover:hover){.wyiY7G_iconButton:hover{color:var(--dsw-alias-label-primary)}}.wyiY7G_chevron{color:var(--dsw-alias-label-caption)}@media (prefers-reduced-motion:reduce){.wyiY7G_arrow{transition:none;animation:none}}";
1741
- const tagId$2 = "@deepseek-ai/dsh-client-ui-workspace/Rows.module.css";
1742
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
1955
+ const css$1 = ".wyiY7G_projectRow,.wyiY7G_sessionRow{align-items:center;gap:var(--dsh-sidebar-label-gap);border-radius:var(--dsw-radius-md);border-inline:var(--dsh-sidebar-paint-inset) solid transparent;box-sizing:border-box;padding:0 8px;cursor:pointer;-webkit-user-select:none;user-select:none;color:var(--dsw-alias-label-primary);background-clip:padding-box;padding-inline-start:calc(var(--dsh-sidebar-row-padding) - var(--dsh-sidebar-paint-inset) + var(--dsh-workspace-indent,0px));display:flex}@media (hover:hover){.wyiY7G_projectRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}}.wyiY7G_sessionRow.wyiY7G_selected{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_dragPreview{background:var(--dsw-specific-sidebar-fill)}.wyiY7G_searchResultRow{box-sizing:border-box;border-radius:var(--dsw-radius-lg);width:100%;min-height:48px;padding:4px calc(var(--dsh-sidebar-row-padding) - var(--dsh-sidebar-paint-inset));border:none;border-inline:var(--dsh-sidebar-paint-inset) solid transparent;cursor:pointer;text-align:left;color:var(--dsw-alias-label-primary);background:padding-box padding-box;flex-direction:column;align-items:stretch;display:flex}@media (hover:hover){.wyiY7G_searchResultRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}}.wyiY7G_searchResultRow.wyiY7G_selected{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_searchResultHeading{align-items:center;min-width:0;display:flex}.wyiY7G_searchResultTitle{min-width:0;margin:0 var(--dsh-sidebar-label-gap);text-overflow:ellipsis;white-space:nowrap;flex:0 auto;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_searchResultMeta{min-width:0;margin-left:calc(16px + var(--dsh-sidebar-label-gap));align-items:center;gap:6px;display:flex}.wyiY7G_searchResultWorkspace,.wyiY7G_searchResultSnippet{text-overflow:ellipsis;white-space:nowrap;font-size:12px;line-height:17px;overflow:hidden}.wyiY7G_searchResultWorkspace{max-width:40%;color:var(--dsw-alias-label-tertiary);flex:none}.wyiY7G_searchResultWorkspace:only-child{max-width:100%}.wyiY7G_searchResultSnippet{min-width:0;color:var(--dsw-alias-label-secondary);flex:1}.wyiY7G_projectRow{box-sizing:border-box;align-items:center;height:34px}.wyiY7G_projectRow .wyiY7G_rowActions{height:20px}.wyiY7G_sessionRow{gap:0;height:32px}.wyiY7G_sessionRow .wyiY7G_title{margin:0 6px 0 var(--dsh-sidebar-label-gap)}.wyiY7G_slot{width:16px;height:20px;color:var(--dsw-alias-label-tertiary);flex:none;justify-content:center;align-items:center;display:inline-flex}.wyiY7G_visuallyHidden{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.wyiY7G_folderActive{color:var(--dsw-alias-state-business-primary)}.wyiY7G_projectRow .wyiY7G_chevron{display:none}@media (hover:hover){.wyiY7G_projectRow:hover .wyiY7G_chevron{display:inline-flex}.wyiY7G_projectRow:hover .wyiY7G_folder{display:none}}.wyiY7G_arrow{transition:transform .15s var(--ds-ease-in-out)}.wyiY7G_arrowOpen{transform:rotate(90deg)}.wyiY7G_projectText{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.wyiY7G_title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:14px;line-height:20px;overflow:hidden}.wyiY7G_renameInput{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-sm);background:var(--dsw-alias-button-elevated-fill);min-width:0;color:inherit;outline:none;padding:0 2px;font-size:14px;line-height:20px}.wyiY7G_sessionRow .wyiY7G_title{flex:1}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled]{mask-image:linear-gradient(90deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-clipped]{mask-image:linear-gradient(270deg,#0000,#000 12px)}.wyiY7G_sessionRow .wyiY7G_title[data-scrolled][data-clipped]{mask-image:linear-gradient(90deg,#0000,#000 12px calc(100% - 12px),#0000)}.wyiY7G_meta{text-overflow:ellipsis;white-space:nowrap;color:var(--dsw-alias-label-tertiary);font-size:12px;line-height:20px;overflow:hidden}.wyiY7G_time{color:var(--dsw-alias-label-tertiary);flex:none;margin-inline-end:-1px;font-size:10px;line-height:16px}.wyiY7G_pinIndicator{width:16px;height:20px;color:var(--dsw-alias-label-caption);flex:none;justify-content:center;align-items:center;margin-left:6px;display:inline-flex}.wyiY7G_sessionRow.wyiY7G_archived .wyiY7G_title,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultTitle,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultWorkspace,.wyiY7G_searchResultRow.wyiY7G_archived .wyiY7G_searchResultSnippet{color:var(--dsw-alias-label-caption)}.wyiY7G_dot{flex:none}.wyiY7G_rowActions{flex:none;align-items:center;gap:13px;display:none}@media (hover:hover){.wyiY7G_projectRow:hover .wyiY7G_rowActions,.wyiY7G_searchResultRow:hover .wyiY7G_rowActions{display:inline-flex}}.wyiY7G_projectRow.wyiY7G_menuOpen .wyiY7G_rowActions{display:inline-flex}.wyiY7G_rowQuickActions{display:contents}.wyiY7G_searchResultHeading .wyiY7G_rowActions{margin-left:auto}.wyiY7G_rowResting{color:var(--dsw-alias-label-tertiary);flex:none;align-items:center;gap:6px;display:inline-flex}.wyiY7G_rowResting .wyiY7G_pinIndicator{margin-left:0}@media (hover:hover){.wyiY7G_sessionRow:hover{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_sessionRow:hover .wyiY7G_rowActions,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_rowActions,html[data-input-modality=keyboard] .wyiY7G_sessionRow:focus-within .wyiY7G_rowActions{display:inline-flex}.wyiY7G_sessionRow:hover .wyiY7G_rowResting,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_rowResting,html[data-input-modality=keyboard] .wyiY7G_sessionRow:focus-within .wyiY7G_rowResting{display:none}.wyiY7G_sessionRow:hover .wyiY7G_title,.wyiY7G_sessionRow.wyiY7G_menuOpen .wyiY7G_title{text-overflow:clip}}@media (hover:none){.wyiY7G_projectRow .wyiY7G_rowActions,.wyiY7G_searchResultRow .wyiY7G_rowActions,.wyiY7G_sessionRow .wyiY7G_rowActions{display:inline-flex}.wyiY7G_sessionRow .wyiY7G_timestamp,.wyiY7G_sessionRow:has(.wyiY7G_pinnedAction) .wyiY7G_pinIndicator,.wyiY7G_sessionRow .wyiY7G_rowQuickActions>[data-slot]>:not(.wyiY7G_pinnedAction),.wyiY7G_projectRow[aria-expanded=false] .wyiY7G_rowActions{display:none}.wyiY7G_sessionRow .wyiY7G_pinnedAction{order:-1}}.wyiY7G_projectRow.wyiY7G_menuOpen,.wyiY7G_sessionRow.wyiY7G_menuOpen{background-color:var(--dsw-alias-interactive-bg-hover)}.wyiY7G_sessionRow.wyiY7G_dropBefore,.wyiY7G_sessionRow.wyiY7G_dropAfter{position:relative}.wyiY7G_sessionRow.wyiY7G_dropBefore:before,.wyiY7G_sessionRow.wyiY7G_dropAfter:after{content:\"\";z-index:1;left:calc(-1 * var(--dsh-sidebar-paint-inset));right:calc(4px - var(--dsh-sidebar-paint-inset));background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute}.wyiY7G_sessionRow.wyiY7G_dropBefore:before{top:-7px}.wyiY7G_sessionRow.wyiY7G_dropAfter:after{bottom:-7px}.wyiY7G_hoverContent{flex-direction:column;gap:8px;display:flex}.wyiY7G_hoverTitle{color:#fff;overflow-wrap:break-word;font-size:14px;line-height:20px}.wyiY7G_hoverPath{color:#cfd3d6;word-break:break-all;font-size:12px;line-height:16px}.wyiY7G_hoverTime{color:#cfd3d6;font-size:12px;line-height:16px}.wyiY7G_hoverStatus{color:#adb2b8;align-items:center;gap:8px;font-size:12px;line-height:20px;display:flex}.wyiY7G_hoverArchived svg{flex-shrink:0;margin:0 -4px}.wyiY7G_iconButton{border-radius:var(--dsw-radius-xs);cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;margin:-4px;padding:0;display:inline-flex}.wyiY7G_iconButton:focus-visible{outline-offset:-2px}@media (hover:hover){.wyiY7G_iconButton:hover{color:var(--dsw-alias-label-primary)}}.wyiY7G_chevron{color:var(--dsw-alias-label-caption)}@media (prefers-reduced-motion:reduce){.wyiY7G_arrow{transition:none;animation:none}}";
1956
+ const tagId$1 = "@deepseek-ai/dsh-client-ui-workspace/Rows.module.css";
1957
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
1743
1958
  const tag = document.createElement("style");
1744
1959
  tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-workspace";
1745
- tag.dataset.pluginCss = tagId$2;
1746
- tag.textContent = css$2;
1960
+ tag.dataset.pluginCss = tagId$1;
1961
+ tag.textContent = css$1;
1747
1962
  document.head.appendChild(tag);
1748
1963
  }
1749
1964
  var Rows_module_css_default = {
@@ -1767,6 +1982,7 @@ window.__ModuleLoader__.load({
1767
1982
  "menuOpen": "wyiY7G_menuOpen",
1768
1983
  "meta": "wyiY7G_meta",
1769
1984
  "pinIndicator": "wyiY7G_pinIndicator",
1985
+ "pinnedAction": "wyiY7G_pinnedAction",
1770
1986
  "projectRow": "wyiY7G_projectRow",
1771
1987
  "projectText": "wyiY7G_projectText",
1772
1988
  "renameInput": "wyiY7G_renameInput",
@@ -1783,6 +1999,7 @@ window.__ModuleLoader__.load({
1783
1999
  "sessionRow": "wyiY7G_sessionRow",
1784
2000
  "slot": "wyiY7G_slot",
1785
2001
  "time": "wyiY7G_time",
2002
+ "timestamp": "wyiY7G_timestamp",
1786
2003
  "title": "wyiY7G_title",
1787
2004
  "visuallyHidden": "wyiY7G_visuallyHidden"
1788
2005
  };
@@ -1793,7 +2010,7 @@ window.__ModuleLoader__.load({
1793
2010
  * all data and callbacks arrive via props. Hover swaps (folder->chevron,
1794
2011
  * time->ellipsis, action buttons) are CSS-only, and a session row's clipped
1795
2012
  * title marquees programmatically while the row is hovered. Workspace row
1796
- * menus are visual-only except Rename/Delete. A Session row's "..." menu and
2013
+ * menus share captured Workspace actions with right-click. A Session row's "..." menu and
1797
2014
  * its hover buttons are the `sidebar.workspaces.session.menu.item` and
1798
2015
  * `sidebar.workspaces.session.row.action` lists, rendered through the
1799
2016
  * browser's `renderSlot` with the menu's open state as the occurrence's hook
@@ -1859,13 +2076,17 @@ window.__ModuleLoader__.load({
1859
2076
  */
1860
2077
  function useTitleMarquee(title) {
1861
2078
  const frame = (0, react.useRef)(0);
2079
+ const revealing = (0, react.useRef)(false);
1862
2080
  (0, react.useEffect)(() => () => {
1863
2081
  cancelAnimationFrame(frame.current);
1864
2082
  }, []);
1865
2083
  return (0, react.useMemo)(() => ({
1866
- enter: () => {
2084
+ enter: (event) => {
2085
+ if (event?.pointerType === "touch") return;
1867
2086
  /* v8 ignore next -- defensive: the title span renders unconditionally. */
1868
2087
  if (title.current === null) return;
2088
+ if (revealing.current) return;
2089
+ revealing.current = true;
1869
2090
  const element = title.current;
1870
2091
  const range = element.scrollWidth - element.clientWidth;
1871
2092
  if (range <= MIN_TITLE_REVEAL_PX) return;
@@ -1885,6 +2106,7 @@ window.__ModuleLoader__.load({
1885
2106
  frame.current = requestAnimationFrame(step);
1886
2107
  },
1887
2108
  leave: () => {
2109
+ revealing.current = false;
1888
2110
  cancelAnimationFrame(frame.current);
1889
2111
  /* v8 ignore next -- defensive: the title span renders unconditionally. */
1890
2112
  if (title.current === null) return;
@@ -1946,9 +2168,8 @@ window.__ModuleLoader__.load({
1946
2168
  * hover reveals the chevron and create button, and dwelling on a real
1947
2169
  * Workspace shows its hover card (the ungrouped bucket has none).
1948
2170
  * `containsCurrent` arrives on the node (derivation fact, no renderer scan).
1949
- * The create button, each Workspace menu row, and the drag handle are absent
1950
- * while the access snapshot excludes their endpoint: a real Workspace asks
1951
- * its own resource, and the ungrouped bucket asks the global resource.
2171
+ * Create and drag follow the Workspace access snapshot. Menu providers own
2172
+ * their access checks; the ungrouped bucket has no Workspace menu.
1952
2173
  * @param props.group - derived group node.
1953
2174
  * @param props.containsCurrentDescendant - highlight an ancestor even when its subtree is collapsed.
1954
2175
  * @param props.onToggle - expand/collapse the group.
@@ -1972,8 +2193,6 @@ window.__ModuleLoader__.load({
1972
2193
  ...props,
1973
2194
  access: {
1974
2195
  create,
1975
- rename: false,
1976
- delete: false,
1977
2196
  reorder: false
1978
2197
  }
1979
2198
  });
@@ -1983,8 +2202,6 @@ window.__ModuleLoader__.load({
1983
2202
  const { useWorkspaceAccess } = props;
1984
2203
  const access = {
1985
2204
  create: useWorkspaceAccess(workspaceId, "session/create"),
1986
- rename: useWorkspaceAccess(workspaceId, "workspace/rename"),
1987
- delete: useWorkspaceAccess(workspaceId, "workspace/delete"),
1988
2205
  reorder: useWorkspaceAccess(workspaceId, "workspace/insertBefore")
1989
2206
  };
1990
2207
  return (0, react_jsx_runtime.jsx)(ProjectRow, {
@@ -1992,29 +2209,31 @@ window.__ModuleLoader__.load({
1992
2209
  access
1993
2210
  });
1994
2211
  }
1995
- function ProjectRow({ group, containsCurrentDescendant = false, onToggle, onCreate, actions, drag: offeredDrag, home, newShortcut, t, access }) {
2212
+ function ProjectRow({ group, containsCurrentDescendant = false, onToggle, onCreate, drag: offeredDrag, home, newShortcut, t, access, openWorkspaceMenu, useContextMenuTarget, useContextMenu }) {
2213
+ const { getTriggerProps } = useContextMenu();
1996
2214
  const drag = access.reorder ? offeredDrag : void 0;
1997
2215
  const row = group;
1998
2216
  const label = row.workspaceId === void 0 ? t("group.ungrouped") : row.label;
1999
2217
  const active = containsCurrentDescendant || group.expanded && group.containsCurrent;
2000
- const [menuOpen, setMenuOpen] = (0, react.useState)(false);
2218
+ const menuOpen = useContextMenuTarget((target) => target?.kind === "workspace" && target.value.workspaceId === row.workspaceId);
2001
2219
  const dragPreview = (0, _deepseek_ai_dsh_client_ui_primitives.useRowDragPreview)(Rows_module_css_default.dragPreview, DRAG_PREVIEW_PROPERTIES);
2002
- const workspaceMenuItems = [...access.rename ? [{
2003
- id: "rename",
2004
- label: t("rename"),
2005
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutlineRegular, {})
2006
- }] : [], ...access.delete ? [{
2007
- id: "delete",
2008
- label: t("delete.workspace"),
2009
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular, {}),
2010
- danger: true
2011
- }] : []];
2220
+ const workspaceMenuTarget = row.workspaceId !== void 0 && row.cwd !== void 0 ? {
2221
+ workspaceId: row.workspaceId,
2222
+ path: row.cwd
2223
+ } : void 0;
2012
2224
  const ownRow = (0, react_jsx_runtime.jsxs)("div", {
2013
2225
  className: clsx(Rows_module_css_default.projectRow, menuOpen && Rows_module_css_default.menuOpen),
2014
2226
  "data-row-key": `workspace:${group.key}`,
2015
2227
  role: "treeitem",
2016
2228
  "aria-expanded": row.expanded,
2017
2229
  onClick: onToggle,
2230
+ ...getTriggerProps(workspaceMenuTarget === void 0 ? void 0 : {
2231
+ kind: "workspace",
2232
+ value: {
2233
+ ...workspaceMenuTarget,
2234
+ displayTitle: label
2235
+ }
2236
+ }),
2018
2237
  draggable: drag !== void 0,
2019
2238
  onDragStart: drag === void 0 ? void 0 : (e) => {
2020
2239
  e.dataTransfer.effectAllowed = "move";
@@ -2043,31 +2262,22 @@ window.__ModuleLoader__.load({
2043
2262
  }),
2044
2263
  (0, react_jsx_runtime.jsxs)("span", {
2045
2264
  className: Rows_module_css_default.rowActions,
2046
- children: [actions !== void 0 && workspaceMenuItems.length > 0 && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
2047
- open: menuOpen,
2048
- onClose: () => {
2049
- setMenuOpen(false);
2050
- },
2051
- items: workspaceMenuItems,
2052
- onSelect: (id) => {
2053
- setMenuOpen(false);
2054
- /* v8 ignore next -- Menu can emit only the rename and delete rows supplied above. */
2055
- if (id !== "rename" && id !== "delete") return;
2056
- if (id === "rename") actions.rename();
2057
- else actions.delete();
2265
+ children: [workspaceMenuTarget !== void 0 && (0, react_jsx_runtime.jsx)("button", {
2266
+ type: "button",
2267
+ className: Rows_module_css_default.iconButton,
2268
+ "data-context-menu-trigger": true,
2269
+ "aria-label": t("actions.workspace.aria", { name: label }),
2270
+ "aria-haspopup": "menu",
2271
+ "aria-expanded": menuOpen,
2272
+ onClick: (event) => {
2273
+ event.stopPropagation();
2274
+ const rect = event.currentTarget.getBoundingClientRect();
2275
+ openWorkspaceMenu(workspaceMenuTarget.workspaceId, workspaceMenuTarget.path, label, {
2276
+ x: rect.left,
2277
+ y: rect.bottom
2278
+ }, "toggle");
2058
2279
  },
2059
- portal: true,
2060
- closeOnPointerLeave: true,
2061
- anchor: (0, react_jsx_runtime.jsx)("button", {
2062
- type: "button",
2063
- className: Rows_module_css_default.iconButton,
2064
- "aria-label": t("actions.workspace.aria", { name: label }),
2065
- onClick: (e) => {
2066
- e.stopPropagation();
2067
- setMenuOpen((v) => !v);
2068
- },
2069
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutlineRegular, {})
2070
- })
2280
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutlineRegular, {})
2071
2281
  }), access.create && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
2072
2282
  label: t("actions.newSession"),
2073
2283
  shortcutKeys: newShortcut?.keys,
@@ -2315,7 +2525,8 @@ window.__ModuleLoader__.load({
2315
2525
  * @param props.t - the browser root's locale seat.
2316
2526
  * @returns the session row.
2317
2527
  */
2318
- function SessionNodeItem({ node, currentId, now, onOpen, onRenameRequest, renderSlot, onReveal, drag, home, useSessionAccess, t }) {
2528
+ function SessionNodeItem({ node, currentId, now, onOpen, onRenameRequest, renderSlot, openSessionMenu, useContextMenuTarget, useContextMenu, onReveal, drag, home, useSessionAccess, t }) {
2529
+ const { getTriggerProps } = useContextMenu();
2319
2530
  const row = node;
2320
2531
  const title = displayTitle(node, t);
2321
2532
  const selected = node.id === currentId;
@@ -2325,9 +2536,8 @@ window.__ModuleLoader__.load({
2325
2536
  const renamable = useSessionAccess(node.id, "session/rename");
2326
2537
  const reorderable = useSessionAccess(node.id, "workspace/insertSessionBefore");
2327
2538
  const draggable = drag !== void 0 && reorderable && !row.blank && !row.archived;
2328
- const [menuOpen, setMenuOpen] = (0, react.useState)(false);
2539
+ const menuOpen = useContextMenuTarget((target) => target?.kind === "session" && target.value.sessionId === node.id);
2329
2540
  const dragPreview = (0, _deepseek_ai_dsh_client_ui_primitives.useRowDragPreview)(Rows_module_css_default.dragPreview, DRAG_PREVIEW_PROPERTIES);
2330
- const menuOpenState = (0, react.useMemo)(() => [menuOpen, setMenuOpen], [menuOpen]);
2331
2541
  const rowRef = (0, react.useRef)(null);
2332
2542
  const titleRef = (0, react.useRef)(null);
2333
2543
  const renameArmed = (0, react.useRef)(false);
@@ -2335,6 +2545,10 @@ window.__ModuleLoader__.load({
2335
2545
  renameArmed.current = false;
2336
2546
  }).current;
2337
2547
  const marquee = useTitleMarquee(titleRef);
2548
+ (0, react.useEffect)(() => {
2549
+ if (menuOpen || rowRef.current?.matches(":hover")) marquee.enter();
2550
+ else marquee.leave();
2551
+ }, [menuOpen, marquee]);
2338
2552
  (0, react.useEffect)(() => {
2339
2553
  if (onReveal === void 0) return;
2340
2554
  rowRef.current?.scrollIntoView({ block: "nearest" });
@@ -2352,14 +2566,22 @@ window.__ModuleLoader__.load({
2352
2566
  onClick: () => {
2353
2567
  onOpen(node.id);
2354
2568
  },
2355
- onKeyDown: (event) => {
2569
+ ...getTriggerProps(row.blank ? void 0 : {
2570
+ kind: "session",
2571
+ value: {
2572
+ sessionId: node.id,
2573
+ displayTitle: row.title
2574
+ }
2575
+ }, { onKeyDown: (event) => {
2356
2576
  if (event.target !== event.currentTarget || event.key !== "Enter" && event.key !== " ") return;
2357
2577
  if (event.altKey || event.ctrlKey || event.metaKey || event.shiftKey) return;
2358
2578
  event.preventDefault();
2359
2579
  onOpen(node.id);
2360
- },
2580
+ } }),
2361
2581
  onPointerEnter: marquee.enter,
2362
- onPointerLeave: marquee.leave,
2582
+ onPointerLeave: () => {
2583
+ if (!menuOpen) marquee.leave();
2584
+ },
2363
2585
  draggable,
2364
2586
  onDragStart: !draggable ? void 0 : (e) => {
2365
2587
  e.dataTransfer.effectAllowed = "move";
@@ -2406,7 +2628,7 @@ window.__ModuleLoader__.load({
2406
2628
  className: Rows_module_css_default.rowResting,
2407
2629
  children: [
2408
2630
  (0, react_jsx_runtime.jsx)("span", {
2409
- className: Rows_module_css_default.time,
2631
+ className: clsx(Rows_module_css_default.time, primaryStatus.trailingLabel === void 0 && Rows_module_css_default.timestamp),
2410
2632
  "aria-hidden": primaryStatus.trailingLabel === void 0 ? void 0 : true,
2411
2633
  children: primaryStatus.trailingLabel ?? timeLabel(row.updatedAt, now, t)
2412
2634
  }),
@@ -2419,26 +2641,23 @@ window.__ModuleLoader__.load({
2419
2641
  onClick: (e) => {
2420
2642
  e.stopPropagation();
2421
2643
  },
2422
- children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Menu, {
2423
- open: menuOpen,
2424
- onClose: () => {
2425
- setMenuOpen(false);
2644
+ children: [(0, react_jsx_runtime.jsx)("button", {
2645
+ type: "button",
2646
+ className: Rows_module_css_default.iconButton,
2647
+ "aria-label": t("actions.session.aria", { name: title }),
2648
+ onPointerDown: (event) => {
2649
+ event.stopPropagation();
2426
2650
  },
2427
- portal: true,
2428
- closeOnPointerLeave: true,
2429
- anchor: (0, react_jsx_runtime.jsx)("button", {
2430
- type: "button",
2431
- className: Rows_module_css_default.iconButton,
2432
- "aria-label": t("actions.session.aria", { name: title }),
2433
- onClick: () => {
2434
- setMenuOpen((v) => !v);
2435
- },
2436
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutlineRegular, {})
2437
- }),
2438
- children: renderSlot("sidebar.workspaces.session.menu.item", {
2439
- sessionId: node.id,
2440
- displayTitle: row.title
2441
- }, { hookContext: menuOpenState })
2651
+ "data-context-menu-trigger": "",
2652
+ onClick: (event) => {
2653
+ event.currentTarget.focus({ preventScroll: true });
2654
+ const rect = event.currentTarget.getBoundingClientRect();
2655
+ openSessionMenu(node.id, row.title, {
2656
+ x: rect.left,
2657
+ y: rect.bottom
2658
+ }, "toggle");
2659
+ },
2660
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEllipsisOutlineRegular, {})
2442
2661
  }), (0, react_jsx_runtime.jsx)("span", {
2443
2662
  className: Rows_module_css_default.rowQuickActions,
2444
2663
  children: renderSlot("sidebar.workspaces.session.row.action", {
@@ -2493,13 +2712,13 @@ window.__ModuleLoader__.load({
2493
2712
  }
2494
2713
  //#endregion
2495
2714
  //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/WorkspacePicker.module.css.mjs
2496
- const css$1 = ".E6FAYG_modalAction{min-width:72px}.E6FAYG_modalError,.E6FAYG_menuStatus{margin-top:8px;font-size:12px;line-height:18px}.E6FAYG_modalError{color:var(--dsw-alias-state-error-primary)}.E6FAYG_menuStatus,.E6FAYG_pathSuffix{color:var(--dsw-alias-label-secondary)}.E6FAYG_disambiguated{gap:4px;min-width:0;display:flex}.E6FAYG_title,.E6FAYG_pathSuffix{text-overflow:ellipsis;min-width:0;overflow:hidden}.E6FAYG_pathSuffix{flex:none;max-width:75%}";
2497
- const tagId$1 = "@deepseek-ai/dsh-client-ui-workspace/WorkspacePicker.module.css";
2498
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
2715
+ const css = ".E6FAYG_modalAction{min-width:72px}.E6FAYG_modalError,.E6FAYG_menuStatus{margin-top:8px;font-size:12px;line-height:18px}.E6FAYG_modalError{color:var(--dsw-alias-state-error-primary)}.E6FAYG_menuStatus,.E6FAYG_pathSuffix{color:var(--dsw-alias-label-secondary)}.E6FAYG_disambiguated{gap:4px;min-width:0;display:flex}.E6FAYG_title,.E6FAYG_pathSuffix{text-overflow:ellipsis;min-width:0;overflow:hidden}.E6FAYG_pathSuffix{flex:none;max-width:75%}";
2716
+ const tagId = "@deepseek-ai/dsh-client-ui-workspace/WorkspacePicker.module.css";
2717
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
2499
2718
  const tag = document.createElement("style");
2500
2719
  tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-workspace";
2501
- tag.dataset.pluginCss = tagId$1;
2502
- tag.textContent = css$1;
2720
+ tag.dataset.pluginCss = tagId;
2721
+ tag.textContent = css;
2503
2722
  document.head.appendChild(tag);
2504
2723
  }
2505
2724
  var WorkspacePicker_module_css_default = {
@@ -2700,65 +2919,6 @@ window.__ModuleLoader__.load({
2700
2919
  });
2701
2920
  }
2702
2921
  //#endregion
2703
- //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-workspace/src/client/rows/WorkspaceBrowser.module.css.mjs
2704
- const css = ".BpFSpG_root{--dsh-session-list-edge-inset:var(--dsh-sidebar-inline-padding);--dsh-session-list-scrollbar-width:5px;--dsh-session-list-scrollbar-offset:2px;box-sizing:border-box;min-height:0;padding-right:var(--dsh-session-list-edge-inset);flex-direction:column;flex:1;display:flex}.BpFSpG_root.BpFSpG_rail{padding-right:0}.BpFSpG_iconButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_iconButton:focus-visible,.BpFSpG_searchButton:focus-visible,.BpFSpG_clearButton:focus-visible{outline:var(--dsw-focus-ring-width) solid var(--dsw-focus-ring-color,var(--dsw-alias-state-business-primary));outline-offset:-2px}@media (hover:hover){.BpFSpG_iconButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_viewOptionsMenu{min-width:200px}.BpFSpG_sectionHeader{height:36px;padding-left:var(--dsh-sidebar-row-padding);box-sizing:border-box;border-radius:var(--dsw-radius-md);color:var(--dsw-alias-label-tertiary);flex:none;justify-content:flex-end;align-items:center;gap:4px;margin-bottom:4px;display:flex;overflow:hidden}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader{margin-top:2px;margin-right:-4px}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader.BpFSpG_searchSpacingMotion{transition:margin-right .18s var(--ds-ease-in-out), padding-inline .18s var(--ds-ease-in-out), gap .18s var(--ds-ease-in-out)}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader:not(:has(.BpFSpG_searchExpanded)){padding-right:1px}.BpFSpG_sectionLabel{white-space:nowrap;opacity:1;visibility:visible;min-width:0;max-width:45%;transition:max-width .18s var(--ds-ease-in-out), margin-right .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;line-height:20px;position:relative;left:-1px;overflow:hidden}.BpFSpG_sectionLabelHidden{opacity:0;visibility:hidden;max-width:0;margin-right:-4px;transition-delay:0s,0s,0s,0s,.18s;transform:translate(-4px)}.BpFSpG_searchSlot{box-sizing:border-box;min-width:0;max-width:28px;transition:max-width .18s var(--ds-ease-in-out), padding-left .18s var(--ds-ease-in-out);flex:1;align-items:center;margin-left:auto;padding-left:0;display:flex}.BpFSpG_searchSlotExpanded{max-width:100%;padding-left:0}.BpFSpG_headerActions{opacity:1;visibility:visible;max-width:60px;transition:max-width .18s var(--ds-ease-in-out), opacity .12s var(--ds-ease-in-out), transform .18s var(--ds-ease-in-out), visibility 0s linear;flex:none;align-items:center;gap:4px;display:flex;overflow:hidden}.BpFSpG_headerActionsHidden{opacity:0;visibility:hidden;pointer-events:none;max-width:0;transition-delay:0s,0s,0s,.18s;transform:translate(4px)}.BpFSpG_search{box-sizing:border-box;border-radius:var(--dsw-radius-sm);cursor:text;width:100%;height:28px;color:var(--dsw-alias-label-secondary);transition:width .18s var(--ds-ease-in-out), padding .18s var(--ds-ease-in-out), border-color .18s var(--ds-ease-in-out), background-color .18s var(--ds-ease-in-out);background:0 0;border:none;flex:none;align-items:center;gap:0;margin:0;padding:0;display:flex;overflow:hidden}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader:has(.BpFSpG_searchExpanded){padding-inline:calc(var(--dsh-sidebar-paint-inset) + 1px);gap:0;margin-right:0}.BpFSpG_sectionHeader:has(.BpFSpG_searchExpanded) .BpFSpG_sectionLabelHidden{margin-right:0}.BpFSpG_searchExpanded{border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-md);width:100%;height:32px;color:var(--dsw-alias-label-caption);background:0 0;margin-inline:0;padding:0 4px 0 0}.BpFSpG_searchButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:28px;height:28px;color:inherit;background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.BpFSpG_searchExpanded .BpFSpG_searchButton{width:28px;height:32px}@media (hover:hover){.BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}.BpFSpG_searchExpanded .BpFSpG_searchButton:hover{background:0 0}}.BpFSpG_searchInput{opacity:0;pointer-events:none;width:0;min-width:0;color:var(--dsw-alias-label-primary);transition:opacity .12s var(--ds-ease-in-out);background:0 0;border:none;outline:none;flex:1;font-size:13px;line-height:18px}.BpFSpG_searchExpanded .BpFSpG_searchInput{opacity:1;pointer-events:auto;margin-left:-2px}.BpFSpG_searchInput::placeholder{color:var(--dsw-alias-label-tertiary)}.BpFSpG_clearButton{border-radius:var(--dsw-radius-sm);cursor:pointer;width:24px;height:24px;color:var(--dsw-alias-label-secondary);background:0 0;border:none;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}@media (hover:hover){.BpFSpG_clearButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_rail .BpFSpG_sectionHeader{justify-content:flex-start;gap:0;margin-bottom:12px;padding-left:0}.BpFSpG_rail .BpFSpG_headerActions{max-width:none}.BpFSpG_rail .BpFSpG_iconButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}.BpFSpG_rail .BpFSpG_search{border-radius:var(--dsw-radius-md);background:0 0;border-color:#0000;gap:0;width:36px;height:36px;margin:0 0 12px;padding:0}.BpFSpG_rail .BpFSpG_searchButton{border-radius:var(--dsw-radius-md);width:36px;height:36px;color:var(--dsw-alias-label-primary)}@media (hover:hover){.BpFSpG_rail .BpFSpG_searchButton:hover{background:var(--dsw-alias-interactive-bg-hover)}}.BpFSpG_listArea{min-height:0;margin-left:-4px;margin-right:calc(-1 * var(--dsh-session-list-edge-inset));flex-direction:column;flex:1;padding-left:4px;display:flex;overflow:visible}.BpFSpG_rail .BpFSpG_listArea{margin-left:0;margin-right:0;padding-left:0}.BpFSpG_treeBody{flex-direction:column;flex:1;min-height:0;display:flex;position:relative}.BpFSpG_fade{left:0;right:var(--dsh-session-list-edge-inset);background:linear-gradient(to bottom, transparent, var(--dsw-specific-sidebar-fill));pointer-events:none;height:24px;position:absolute;bottom:0}[data-platform=darwin] .BpFSpG_fade{display:none}.BpFSpG_wide{animation:BpFSpG_wide-in .2s var(--ds-ease-in-out)}@keyframes BpFSpG_wide-in{0%{opacity:0}}.BpFSpG_list{min-height:0;margin-left:-4px;margin-right:var(--dsh-session-list-scrollbar-offset);padding-left:4px;padding-right:calc(var(--dsh-session-list-edge-inset) - var(--dsh-session-list-scrollbar-width) - var(--dsh-session-list-scrollbar-offset));scrollbar-gutter:stable;flex:1;padding-bottom:16px;overflow-y:auto}.BpFSpG_flatList>*+*,.BpFSpG_searchTree>[role=treeitem]+[role=treeitem],.BpFSpG_groupSection>*+*{margin-top:2px}.BpFSpG_searchStatus{color:var(--dsw-alias-label-tertiary);padding:10px 12px;font-size:12px;line-height:18px}.BpFSpG_skeletonRow{align-items:flex-start;gap:var(--dsh-sidebar-label-gap);box-sizing:border-box;min-height:48px;padding:6px var(--dsh-sidebar-row-padding) 7px;display:flex}.BpFSpG_skeletonDot{corner-shape:round;border-radius:50%;flex:none;width:16px;height:16px}.BpFSpG_skeletonBars{flex-direction:column;flex:1;gap:6px;min-width:0;display:flex}.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{background:var(--dsw-alias-bg-skeleton);animation:2s cubic-bezier(.36,0,.64,1) infinite BpFSpG_search-skeleton}.BpFSpG_skeletonBar{border-radius:var(--dsw-radius-xs);width:65%;height:16px}.BpFSpG_skeletonBarWide{width:90%;height:13px}@keyframes BpFSpG_search-skeleton{0%{opacity:1}40%{opacity:.6}80%,to{opacity:1}}.BpFSpG_groupSection{position:relative}.BpFSpG_groupSection+.BpFSpG_groupSection{margin-top:4px}.BpFSpG_listTopDropIndicator,.BpFSpG_workspaceDropBefore:before,.BpFSpG_workspaceDropAfter:after{content:\"\";z-index:1;background:linear-gradient(55deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 0 / 5px 7px no-repeat, linear-gradient(125deg, transparent calc(50% - 1px), var(--dsw-alias-state-business-primary) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)) 0 5px / 5px 7px no-repeat, linear-gradient(var(--dsw-alias-state-business-primary) 0 0) 4px 5px / calc(100% - 4px) 2px no-repeat;pointer-events:none;height:12px;position:absolute;left:0;right:0}.BpFSpG_listTopDropIndicator{top:-8px;left:0;right:var(--dsh-session-list-edge-inset)}.BpFSpG_listTopDropActive>.BpFSpG_workspaceDropBefore:first-child:before{display:none}.BpFSpG_workspaceDropBefore:before{top:-8px}.BpFSpG_workspaceDropAfter:after{bottom:-8px}.BpFSpG_sessionOverflowButton{border-radius:var(--dsw-radius-sm);width:100%;height:28px;padding:0 var(--dsh-sidebar-row-padding) 0 calc(var(--dsh-sidebar-row-padding) + 16px + var(--dsh-sidebar-label-gap) + var(--dsh-workspace-indent,0px));cursor:pointer;text-align:left;color:var(--dsw-alias-label-tertiary);background:0 0;border:none;font-size:12px}.BpFSpG_groupSection>.BpFSpG_sessionOverflowButton{margin-top:0}@media (hover:hover){.BpFSpG_sessionOverflowButton:hover{color:var(--dsw-alias-label-secondary);background:0 0}}.BpFSpG_empty{color:var(--dsw-alias-label-tertiary);padding:16px 12px;font-size:13px}.BpFSpG_emptyState{color:var(--dsw-alias-label-tertiary);flex-direction:column;align-items:center;gap:8px;margin-top:80px;padding:0 12px;font-size:13px;line-height:20px;display:flex}.BpFSpG_emptyState>svg{color:var(--dsw-alias-label-caption);margin-bottom:4px}.BpFSpG_emptyAction{cursor:pointer;color:var(--dsw-alias-link);background:0 0;border:none;padding:0;font-size:13px;line-height:20px}.BpFSpG_renameInput{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);border-radius:var(--dsw-radius-lg);width:100%;height:44px;color:var(--dsw-alias-label-primary);background:0 0;outline:none;padding:7px 14px;font-size:14px;font-weight:400;line-height:22px}.BpFSpG_renameInput:disabled{color:var(--dsw-alias-label-dimmed)}.BpFSpG_renameError{color:var(--dsw-alias-state-error-primary);margin-top:8px;font-size:12px;line-height:18px}.BpFSpG_deleteAction:not(:disabled){color:var(--dsw-alias-state-error-primary)}.BpFSpG_deleteStatus{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.BpFSpG_archiveActivity{color:var(--dsw-alias-label-primary);margin:0 0 8px;padding-left:18px;font-size:13px;line-height:20px}.BpFSpG_archiveActivity li{overflow-wrap:anywhere}@media (prefers-reduced-motion:reduce){.BpFSpG_wide,.BpFSpG_skeletonDot,.BpFSpG_skeletonBar{animation:none}.BpFSpG_root:not(.BpFSpG_rail) .BpFSpG_sectionHeader.BpFSpG_searchSpacingMotion,.BpFSpG_search,.BpFSpG_sectionLabel,.BpFSpG_searchSlot,.BpFSpG_searchInput,.BpFSpG_headerActions{transition:none}}";
2705
- const tagId = "@deepseek-ai/dsh-client-ui-workspace/WorkspaceBrowser.module.css";
2706
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
2707
- const tag = document.createElement("style");
2708
- tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-workspace";
2709
- tag.dataset.pluginCss = tagId;
2710
- tag.textContent = css;
2711
- document.head.appendChild(tag);
2712
- }
2713
- var WorkspaceBrowser_module_css_default = {
2714
- "archiveActivity": "BpFSpG_archiveActivity",
2715
- "clearButton": "BpFSpG_clearButton",
2716
- "deleteAction": "BpFSpG_deleteAction",
2717
- "deleteStatus": "BpFSpG_deleteStatus",
2718
- "empty": "BpFSpG_empty",
2719
- "emptyAction": "BpFSpG_emptyAction",
2720
- "emptyState": "BpFSpG_emptyState",
2721
- "fade": "BpFSpG_fade",
2722
- "flatList": "BpFSpG_flatList",
2723
- "groupSection": "BpFSpG_groupSection",
2724
- "headerActions": "BpFSpG_headerActions",
2725
- "headerActionsHidden": "BpFSpG_headerActionsHidden",
2726
- "iconButton": "BpFSpG_iconButton",
2727
- "list": "BpFSpG_list",
2728
- "listArea": "BpFSpG_listArea",
2729
- "listTopDropActive": "BpFSpG_listTopDropActive",
2730
- "listTopDropIndicator": "BpFSpG_listTopDropIndicator",
2731
- "rail": "BpFSpG_rail",
2732
- "renameError": "BpFSpG_renameError",
2733
- "renameInput": "BpFSpG_renameInput",
2734
- "root": "BpFSpG_root",
2735
- "search": "BpFSpG_search",
2736
- "search-skeleton": "BpFSpG_search-skeleton",
2737
- "searchButton": "BpFSpG_searchButton",
2738
- "searchExpanded": "BpFSpG_searchExpanded",
2739
- "searchInput": "BpFSpG_searchInput",
2740
- "searchSlot": "BpFSpG_searchSlot",
2741
- "searchSlotExpanded": "BpFSpG_searchSlotExpanded",
2742
- "searchSpacingMotion": "BpFSpG_searchSpacingMotion",
2743
- "searchStatus": "BpFSpG_searchStatus",
2744
- "searchTree": "BpFSpG_searchTree",
2745
- "sectionHeader": "BpFSpG_sectionHeader",
2746
- "sectionLabel": "BpFSpG_sectionLabel",
2747
- "sectionLabelHidden": "BpFSpG_sectionLabelHidden",
2748
- "sessionOverflowButton": "BpFSpG_sessionOverflowButton",
2749
- "skeletonBar": "BpFSpG_skeletonBar",
2750
- "skeletonBarWide": "BpFSpG_skeletonBarWide",
2751
- "skeletonBars": "BpFSpG_skeletonBars",
2752
- "skeletonDot": "BpFSpG_skeletonDot",
2753
- "skeletonRow": "BpFSpG_skeletonRow",
2754
- "treeBody": "BpFSpG_treeBody",
2755
- "viewOptionsMenu": "BpFSpG_viewOptionsMenu",
2756
- "wide": "BpFSpG_wide",
2757
- "wide-in": "BpFSpG_wide-in",
2758
- "workspaceDropAfter": "BpFSpG_workspaceDropAfter",
2759
- "workspaceDropBefore": "BpFSpG_workspaceDropBefore"
2760
- };
2761
- //#endregion
2762
2922
  //#region lib/types/client/rows/WorkspaceBrowser.js
2763
2923
  /**
2764
2924
  * The workspace/session browsing region filling the sidebar shell's
@@ -2956,6 +3116,7 @@ window.__ModuleLoader__.load({
2956
3116
  label: t("viewOptions.label"),
2957
3117
  side: "bottom",
2958
3118
  delayMs: 500,
3119
+ portal: true,
2959
3120
  children: (0, react_jsx_runtime.jsx)("button", {
2960
3121
  type: "button",
2961
3122
  className: clsx(WorkspaceBrowser_module_css_default.iconButton, WorkspaceBrowser_module_css_default.wide),
@@ -3006,7 +3167,7 @@ window.__ModuleLoader__.load({
3006
3167
  });
3007
3168
  }
3008
3169
  /** The scrolling session tree; unmounting drops the sessions subscription and the session watermarks. */
3009
- function SessionTree({ list, useSessionStatus, startSession, open, workspaces, ungroupedSessionIds, rowState, onLeaveArchivedOnly, workspaceReady, animationResetKey, usePanelInfo, useRemoteAccess, useSessionAccess, useWorkspaceAccess, onRenameRequest, onDeleteRequest, onSessionRenameRequest, renderSlot, insertWorkspaceBefore, nestWorkspaces, groupExpansion, setGroupExpanded, setSessionOrder, home, t, revealSessionId, onSessionRevealed, shortcuts }) {
3170
+ function SessionTree({ list, useSessionStatus, startSession, open, workspaces, ungroupedSessionIds, rowState, onLeaveArchivedOnly, workspaceReady, animationResetKey, usePanelInfo, useRemoteAccess, useSessionAccess, useWorkspaceAccess, onSessionRenameRequest, renderSlot, openSessionMenu, openWorkspaceMenu, useContextMenuTarget, useContextMenu, insertWorkspaceBefore, nestWorkspaces, groupExpansion, setGroupExpanded, setSessionOrder, home, t, revealSessionId, onSessionRevealed, shortcuts }) {
3010
3171
  const panelActive = usePanelInfo((info) => info.activePanelId !== null);
3011
3172
  const statuses = useSessionStatus((s) => s);
3012
3173
  const current = panelActive ? void 0 : Object.values(list.byId).find((session) => (session.retainedBy.mainView ?? 0) > 0)?.id;
@@ -3208,6 +3369,9 @@ window.__ModuleLoader__.load({
3208
3369
  (0, react_jsx_runtime.jsx)(ProjectRowItem, {
3209
3370
  newShortcut: shortcuts.find((row) => row.id === "session.new"),
3210
3371
  group,
3372
+ openWorkspaceMenu,
3373
+ useContextMenu,
3374
+ useContextMenuTarget,
3211
3375
  useRemoteAccess,
3212
3376
  useWorkspaceAccess,
3213
3377
  containsCurrentDescendant: currentAncestors.has(group.key),
@@ -3223,17 +3387,7 @@ window.__ModuleLoader__.load({
3223
3387
  startSession(group.workspaceId);
3224
3388
  }
3225
3389
  },
3226
- drag: workspaceDragProps,
3227
- actions: group.workspaceId === void 0 ? void 0 : {
3228
- rename: () => {
3229
- /* v8 ignore next -- narrowing guard: the actions object exists only for real-workspace groups. */
3230
- if (group.workspaceId !== void 0) onRenameRequest(group.workspaceId, group.label);
3231
- },
3232
- delete: () => {
3233
- /* v8 ignore next -- narrowing guard: the actions object exists only for real-workspace groups. */
3234
- if (group.workspaceId !== void 0) onDeleteRequest(group.workspaceId, group.label);
3235
- }
3236
- }
3390
+ drag: workspaceDragProps
3237
3391
  }),
3238
3392
  childRows.length > 0 && (0, react_jsx_runtime.jsx)("div", {
3239
3393
  role: "group",
@@ -3286,6 +3440,9 @@ window.__ModuleLoader__.load({
3286
3440
  onOpen: open,
3287
3441
  onRenameRequest: onSessionRenameRequest,
3288
3442
  renderSlot,
3443
+ openSessionMenu,
3444
+ useContextMenu,
3445
+ useContextMenuTarget,
3289
3446
  onReveal: node.id === revealSessionId && group.key === revealGroup ? () => {
3290
3447
  onSessionRevealed(node.id);
3291
3448
  } : void 0,
@@ -3342,7 +3499,7 @@ window.__ModuleLoader__.load({
3342
3499
  });
3343
3500
  }
3344
3501
  /** The flat "In one list" body: every session is one draggable top-level row. */
3345
- function FlatList({ list, sessionIds, rowState, onLeaveArchivedOnly, useSessionStatus, useSessionAccess, open, onSessionRenameRequest, usePanelInfo, setSessionOrder, workspaceReady, animationResetKey, revealSessionId, onSessionRevealed, renderSlot, home, t }) {
3502
+ function FlatList({ list, sessionIds, rowState, onLeaveArchivedOnly, useSessionStatus, useSessionAccess, open, onSessionRenameRequest, usePanelInfo, setSessionOrder, workspaceReady, animationResetKey, revealSessionId, onSessionRevealed, renderSlot, openSessionMenu, useContextMenuTarget, useContextMenu, home, t }) {
3346
3503
  const panelActive = usePanelInfo((info) => info.activePanelId !== null);
3347
3504
  const statuses = useSessionStatus((s) => s);
3348
3505
  const rows = (0, react.useMemo)(() => deriveFlat(list, sessionIds, rowState, statuses), [
@@ -3386,6 +3543,9 @@ window.__ModuleLoader__.load({
3386
3543
  onOpen: open,
3387
3544
  onRenameRequest: onSessionRenameRequest,
3388
3545
  renderSlot,
3546
+ openSessionMenu,
3547
+ useContextMenu,
3548
+ useContextMenuTarget,
3389
3549
  onReveal: node.id === revealSessionId ? () => {
3390
3550
  onSessionRevealed(node.id);
3391
3551
  } : void 0,
@@ -3500,7 +3660,7 @@ window.__ModuleLoader__.load({
3500
3660
  * @param props - composed slot props (shell owner share + store + injected actions).
3501
3661
  * @returns the region element tree.
3502
3662
  */
3503
- function WorkspaceBrowser({ wide, usePanelInfo, expandSidebar, useSessions, useSessionStatus, useRemoteAccess, useSessionAccess, useWorkspaceAccess, useWorkspaces, useStore, actions, startSession, open, requestSessionRename, notifyArchivedNotOpenable, renameWorkspace, deleteWorkspace, insertWorkspaceBefore, unarchiveSession, createWorkspace, searchSessions, searchResultLimit, useDirectoryFlow, useHostInfo, useShortcuts, useWorkspaceShortcuts, requestSearch, requestAddWorkspace, closeAddWorkspace, setDirectoryBusy, renderSlot, t }) {
3663
+ function WorkspaceBrowser({ wide, usePanelInfo, expandSidebar, useSessions, useSessionStatus, useRemoteAccess, useSessionAccess, useWorkspaceAccess, useWorkspaces, useStore, actions, startSession, open, requestSessionRename, notifyArchivedNotOpenable, renameWorkspace, useWorkspaceActionRequest, settleWorkspaceAction, deleteWorkspace, insertWorkspaceBefore, unarchiveSession, createWorkspace, searchSessions, searchResultLimit, useDirectoryFlow, useHostInfo, useShortcuts, useWorkspaceShortcuts, requestSearch, requestAddWorkspace, closeAddWorkspace, setDirectoryBusy, renderSlot, openSessionMenu, openWorkspaceMenu, useContextMenuTarget, useContextMenu, t }) {
3504
3664
  const home = useHostInfo((info) => info.home);
3505
3665
  const shortcuts = useShortcuts((rows) => rows);
3506
3666
  const searchShortcut = shortcuts.find((row) => row.id === "session.search");
@@ -3670,7 +3830,7 @@ window.__ModuleLoader__.load({
3670
3830
  const searchInput = (0, react.useRef)(null);
3671
3831
  const wsPickerOpen = shortcutState.addRequested;
3672
3832
  const wsPlusRef = (0, react.useRef)(null);
3673
- const composingRef = (0, react.useRef)(false);
3833
+ const workspaceActionRequest = useWorkspaceActionRequest((value) => value);
3674
3834
  const openSearchResult = (sessionId) => {
3675
3835
  if (archivedSessionIds.includes(sessionId)) {
3676
3836
  notifyArchivedNotOpenable();
@@ -3701,8 +3861,10 @@ window.__ModuleLoader__.load({
3701
3861
  (0, react.useEffect)(() => {
3702
3862
  if (shortcutState.searchRequest === 0) return;
3703
3863
  closeAddWorkspace();
3704
- if (!wide) expandSidebar();
3705
- else searchInput.current?.focus({ preventScroll: true });
3864
+ if (!wide || searchInput.current?.closest("[inert]")) {
3865
+ setSearchOnExpand(true);
3866
+ expandSidebar();
3867
+ } else searchInput.current?.focus({ preventScroll: true });
3706
3868
  }, [shortcutState.searchRequest]);
3707
3869
  (0, react.useEffect)(() => {
3708
3870
  if (!wide || !searchExpanded || searchOnExpand) return;
@@ -3771,63 +3933,11 @@ window.__ModuleLoader__.load({
3771
3933
  controller.abort();
3772
3934
  };
3773
3935
  }, [normalizedQuery, searchSessions]);
3774
- const [renameTarget, setRenameTarget] = (0, react.useState)(null);
3775
- const [renameDraft, setRenameDraft] = (0, react.useState)("");
3776
- const [renaming, setRenaming] = (0, react.useState)(false);
3777
- const [renameError, setRenameError] = (0, react.useState)(null);
3778
- const renameTrimmed = renameDraft.trim();
3779
- const renameDuplicate = renameTarget !== null && renameTrimmed !== "" && workspaces.some((w) => w.workspaceId !== renameTarget.workspaceId && w.title === renameTrimmed);
3780
- const renameBlocked = renaming || renameTrimmed === "" || renameTarget === null || renameTrimmed === renameTarget.storedTitle || renameDuplicate;
3781
- const closeRename = () => {
3782
- if (renaming) return;
3783
- setRenameTarget(null);
3784
- setRenameError(null);
3785
- };
3786
- const confirmRename = () => {
3787
- if (renameBlocked) return;
3788
- setRenaming(true);
3789
- setRenameError(null);
3790
- renameWorkspace(renameTarget.workspaceId, renameTrimmed).then(() => {
3791
- setRenaming(false);
3792
- setRenameTarget(null);
3793
- }).catch((reason) => {
3794
- setRenaming(false);
3795
- setRenameError(reason instanceof Error ? reason.message : String(reason));
3796
- });
3797
- };
3798
3936
  const onSessionUnarchive = (sessionId) => {
3799
3937
  unarchiveSession(sessionId).catch((reason) => {
3800
3938
  console.warn("session unarchive rejected:", reason);
3801
3939
  });
3802
3940
  };
3803
- const [deleteTarget, setDeleteTarget] = (0, react.useState)(null);
3804
- const [deleting, setDeleting] = (0, react.useState)(false);
3805
- const [deleteCommittedId, setDeleteCommittedId] = (0, react.useState)(null);
3806
- const [deleteError, setDeleteError] = (0, react.useState)(null);
3807
- (0, react.useEffect)(() => {
3808
- if (deleteCommittedId === null || workspaces.some((workspace) => workspace.workspaceId === deleteCommittedId)) return;
3809
- setDeleting(false);
3810
- setDeleteCommittedId(null);
3811
- setDeleteTarget(null);
3812
- }, [deleteCommittedId, workspaces]);
3813
- const closeDelete = () => {
3814
- if (deleting) return;
3815
- setDeleteTarget(null);
3816
- setDeleteError(null);
3817
- };
3818
- const confirmDelete = () => {
3819
- /* v8 ignore next -- the Modal is absent without a target and its button is disabled while deleting. */
3820
- if (deleting || deleteTarget === null) return;
3821
- setDeleting(true);
3822
- setDeleteCommittedId(null);
3823
- setDeleteError(null);
3824
- deleteWorkspace(deleteTarget.workspaceId).then(() => {
3825
- setDeleteCommittedId(deleteTarget.workspaceId);
3826
- }).catch((reason) => {
3827
- setDeleting(false);
3828
- setDeleteError(reason instanceof Error ? reason.message : String(reason));
3829
- });
3830
- };
3831
3941
  return (0, react_jsx_runtime.jsxs)("div", {
3832
3942
  className: clsx(WorkspaceBrowser_module_css_default.root, !wide && WorkspaceBrowser_module_css_default.rail),
3833
3943
  children: [
@@ -3855,6 +3965,7 @@ window.__ModuleLoader__.load({
3855
3965
  side: "bottom",
3856
3966
  delayMs: 500,
3857
3967
  disabled: searchExpanded,
3968
+ portal: true,
3858
3969
  children: (0, react_jsx_runtime.jsx)("button", {
3859
3970
  type: "button",
3860
3971
  className: WorkspaceBrowser_module_css_default.searchButton,
@@ -3915,6 +4026,7 @@ window.__ModuleLoader__.load({
3915
4026
  shortcutKeys: addShortcut?.keys,
3916
4027
  side: "bottom",
3917
4028
  delayMs: 500,
4029
+ portal: true,
3918
4030
  children: (0, react_jsx_runtime.jsx)("button", {
3919
4031
  ref: wsPlusRef,
3920
4032
  type: "button",
@@ -3954,6 +4066,7 @@ window.__ModuleLoader__.load({
3954
4066
  children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
3955
4067
  label: t("search"),
3956
4068
  shortcutKeys: searchShortcut?.keys,
4069
+ portal: true,
3957
4070
  children: (0, react_jsx_runtime.jsx)("button", {
3958
4071
  type: "button",
3959
4072
  className: WorkspaceBrowser_module_css_default.searchButton,
@@ -3995,6 +4108,9 @@ window.__ModuleLoader__.load({
3995
4108
  open: guardedOpen,
3996
4109
  onSessionRenameRequest: requestSessionRename,
3997
4110
  renderSlot,
4111
+ openSessionMenu,
4112
+ useContextMenu,
4113
+ useContextMenuTarget,
3998
4114
  setSessionOrder: saveSessionOrder,
3999
4115
  revealSessionId,
4000
4116
  onSessionRevealed: acknowledgeSessionReveal,
@@ -4010,6 +4126,10 @@ window.__ModuleLoader__.load({
4010
4126
  useSessionStatus,
4011
4127
  onSessionRenameRequest: requestSessionRename,
4012
4128
  renderSlot,
4129
+ openSessionMenu,
4130
+ useContextMenu,
4131
+ openWorkspaceMenu,
4132
+ useContextMenuTarget,
4013
4133
  workspaces: orderedWorkspaces,
4014
4134
  ungroupedSessionIds: orderedUngroupedSessionIds,
4015
4135
  workspaceReady,
@@ -4026,141 +4146,23 @@ window.__ModuleLoader__.load({
4026
4146
  revealSessionId,
4027
4147
  onSessionRevealed: acknowledgeSessionReveal,
4028
4148
  home,
4029
- t,
4030
- onRenameRequest: (workspaceId, displayTitle) => {
4031
- setRenameTarget({
4032
- workspaceId,
4033
- storedTitle: storedWorkspaces.find((w) => w.workspaceId === workspaceId)?.title ?? displayTitle
4034
- });
4035
- setRenameDraft(displayTitle);
4036
- setRenameError(null);
4037
- },
4038
- onDeleteRequest: (workspaceId, title) => {
4039
- setDeleteTarget({
4040
- workspaceId,
4041
- title
4042
- });
4043
- setDeleteError(null);
4044
- }
4149
+ t
4045
4150
  }))
4046
4151
  }),
4047
- (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
4048
- open: renameTarget !== null,
4049
- onClose: closeRename,
4050
- closeLabel: t("close"),
4051
- title: t("rename.workspace.title"),
4052
- footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
4053
- variant: "outline",
4054
- disabled: renaming,
4055
- onClick: closeRename,
4056
- children: t("cancel")
4057
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
4058
- variant: "primary",
4059
- disabled: renameBlocked,
4060
- onClick: confirmRename,
4061
- children: t("rename")
4062
- })] }),
4063
- children: [
4064
- (0, react_jsx_runtime.jsx)("input", {
4065
- className: WorkspaceBrowser_module_css_default.renameInput,
4066
- value: renameDraft,
4067
- "aria-label": t("field.workspaceName"),
4068
- "data-modal-autofocus": true,
4069
- disabled: renaming,
4070
- onFocus: (e) => {
4071
- e.target.select();
4072
- },
4073
- onChange: (e) => {
4074
- setRenameDraft(e.target.value);
4075
- setRenameError(null);
4076
- },
4077
- onCompositionStart: () => {
4078
- composingRef.current = true;
4079
- },
4080
- onCompositionEnd: () => {
4081
- composingRef.current = false;
4082
- },
4083
- onKeyDown: (e) => {
4084
- if (e.key === "Enter" && !composingRef.current) {
4085
- e.preventDefault();
4086
- confirmRename();
4087
- }
4088
- }
4089
- }),
4090
- renameDuplicate && (0, react_jsx_runtime.jsx)("div", {
4091
- className: WorkspaceBrowser_module_css_default.renameError,
4092
- role: "alert",
4093
- children: t("conflict.named", { name: renameTrimmed })
4094
- }),
4095
- renameError !== null && (0, react_jsx_runtime.jsx)("div", {
4096
- className: WorkspaceBrowser_module_css_default.renameError,
4097
- role: "alert",
4098
- children: renameError
4099
- })
4100
- ]
4101
- }),
4102
- (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
4103
- open: deleteTarget !== null,
4104
- onClose: closeDelete,
4105
- closeLabel: t("close"),
4106
- title: t("delete.workspace"),
4107
- ...deleteTarget === null ? {} : { description: t("delete.desc", { name: deleteTarget.title }) },
4108
- footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
4109
- variant: "outline",
4110
- disabled: deleting,
4111
- onClick: closeDelete,
4112
- children: t("cancel")
4113
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
4114
- variant: "outline",
4115
- className: WorkspaceBrowser_module_css_default.deleteAction,
4116
- disabled: deleting,
4117
- onClick: confirmDelete,
4118
- children: t("delete.workspace")
4119
- })] }),
4120
- children: [deleting && (0, react_jsx_runtime.jsx)("div", {
4121
- className: WorkspaceBrowser_module_css_default.deleteStatus,
4122
- role: "status",
4123
- children: t("delete.pending")
4124
- }), deleteError !== null && (0, react_jsx_runtime.jsx)("div", {
4125
- className: WorkspaceBrowser_module_css_default.renameError,
4126
- role: "alert",
4127
- children: deleteError
4128
- })]
4129
- })
4152
+ workspaceActionRequest !== null && (0, react_jsx_runtime.jsx)(WorkspaceDialogs, {
4153
+ request: workspaceActionRequest,
4154
+ workspaces,
4155
+ renameWorkspace,
4156
+ deleteWorkspace,
4157
+ settleWorkspaceAction,
4158
+ t
4159
+ }, `${workspaceActionRequest.action}/${workspaceActionRequest.workspaceId}`)
4130
4160
  ]
4131
4161
  });
4132
4162
  }
4133
4163
  //#endregion
4134
4164
  //#region lib/types/client/session-actions/ArchiveSession.js
4135
- /**
4136
- * The archive action: a `sidebar.workspaces.session.menu.item` row and a
4137
- * `sidebar.workspaces.session.row.action` button over one injected behavior,
4138
- * plus the `shell.overlay` dialog that confirms stopping a Session's running
4139
- * work before archiving it. The same entries restore an archived row; the
4140
- * notice a successful archive raises and the diagnostics for Host rejections
4141
- * live in the injected callbacks, not here.
4142
- */
4143
- /**
4144
- * Menu row (order 400): archive, or restore an archived row. Absent while the Session's access
4145
- * snapshot excludes that toggle.
4146
- * @param props - owner share, the archive share, the access Hook, and the menu open state.
4147
- * @returns the row, or nothing when the caller may not toggle this Session's archival.
4148
- */
4149
- function ArchiveSessionMenuItem({ sessionId, useArchived, useMenuOpenState, useShortcuts, useSessionAccess, archiveSession, unarchiveSession, t }) {
4150
- const [, setMenuOpen] = useMenuOpenState();
4151
- const shortcut = useShortcuts((rows) => rows.find((row) => row.id === "session.archive"));
4152
- const archived = useArchived((set) => set.has(sessionId));
4153
- if (!useSessionAccess(sessionId, archived ? "workspace/unarchiveSession" : "workspace/archiveSession")) return null;
4154
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
4155
- shortcut: archived ? void 0 : shortcut,
4156
- icon: archived ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconUnarchiveOutlineRegular, { size: 14 }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconArchiveOutlineRegular, { size: 14 }),
4157
- onSelect: () => {
4158
- setMenuOpen(false);
4159
- (archived ? unarchiveSession : archiveSession)(sessionId);
4160
- },
4161
- children: t(archived ? "menu.unarchiveSession" : "menu.archiveSession")
4162
- });
4163
- }
4165
+ /** Archive hover button and confirmation for stopping the Session’s running work. */
4164
4166
  /**
4165
4167
  * Hover button (order 100): archive, or restore an archived row. Absent while the Session's access
4166
4168
  * snapshot excludes that toggle.
@@ -4317,39 +4319,85 @@ window.__ModuleLoader__.load({
4317
4319
  };
4318
4320
  }
4319
4321
  //#endregion
4320
- //#region lib/types/client/session-actions/ForkSession.js
4321
- /** The fork action: one `sidebar.workspaces.session.menu.item` row. */
4322
+ //#region lib/types/client/session-actions/context-menus.js
4322
4323
  /**
4323
- * Menu row (order 300): fork at the Session's last completed turn; the child
4324
- * arrives through the Host list beside its source. Absent when the access
4325
- * snapshot excludes `session/fork` for this Session.
4326
- * @param props - owner share, menu open state, access Hook, and the fork share.
4327
- * @returns the row, or nothing when the caller may not fork this Session.
4324
+ * Register built-in actions while retaining the legacy Slot for external components.
4325
+ * @param ctx - workspace plugin context owning menus, access, membership, and locale.
4326
+ * @param actions - shared row and dialog callbacks; execution always uses the captured Session.
4328
4327
  */
4329
- function ForkSessionMenuItem({ sessionId, useMenuOpenState, useShortcuts, useSessionAccess, forkSession, t }) {
4330
- const [, setMenuOpen] = useMenuOpenState();
4331
- const shortcut = useShortcuts((rows) => rows.find((row) => row.id === "session.fork"));
4332
- if (!useSessionAccess(sessionId, "session/fork")) return null;
4333
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
4334
- shortcut,
4335
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular, {}),
4336
- onSelect: () => {
4337
- setMenuOpen(false);
4338
- forkSession(sessionId);
4339
- },
4340
- children: t("menu.fork")
4328
+ function registerSessionMenus(ctx, actions) {
4329
+ const t = ctx.locale.bind("workspace");
4330
+ const register = (id, order, endpoints, resolve) => {
4331
+ ctx.effect(() => ctx.contextMenus.register({
4332
+ id: `session.${id}`,
4333
+ target: "session",
4334
+ order,
4335
+ observe: ({ sessionId }) => [
4336
+ ctx.workspaces.list,
4337
+ ctx.locale,
4338
+ ...endpoints.map((action) => ctx.remoteAccess.source("session", sessionId, action))
4339
+ ],
4340
+ resolve
4341
+ }), `ui-workspace: ${id} menu`);
4342
+ };
4343
+ const allowed = (target, action) => ctx.remoteAccess.source("session", target.sessionId, action).getSnapshot();
4344
+ const archived = (target) => ctx.workspaces.list.getSnapshot().archivedSessionIds.includes(target.sessionId);
4345
+ register("pin", 100, ["workspace/pinSession", "workspace/unpinSession"], (target) => {
4346
+ const pinned = ctx.workspaces.list.getSnapshot().pinnedSessionIds.includes(target.sessionId);
4347
+ if (archived(target) || !allowed(target, pinned ? "workspace/unpinSession" : "workspace/pinSession")) return [];
4348
+ return [{
4349
+ id: "pin",
4350
+ label: t(pinned ? "menu.unpinSession" : "menu.pinSession"),
4351
+ icon: { key: pinned ? "workspace.unpin" : "workspace.pin" },
4352
+ run: () => {
4353
+ (pinned ? actions.unpinSession : actions.pinSession)(target.sessionId);
4354
+ }
4355
+ }];
4356
+ });
4357
+ register("rename", 200, ["session/rename"], (target) => allowed(target, "session/rename") ? [{
4358
+ id: "rename",
4359
+ label: t("rename"),
4360
+ icon: { key: "workspace.rename" },
4361
+ commandId: "session.rename",
4362
+ run: () => {
4363
+ actions.requestSessionRename(target.sessionId, target.displayTitle);
4364
+ }
4365
+ }] : []);
4366
+ register("fork", 300, ["session/fork"], (target) => allowed(target, "session/fork") ? [{
4367
+ id: "fork",
4368
+ label: t("menu.fork"),
4369
+ icon: { key: "workspace.fork" },
4370
+ commandId: "session.fork",
4371
+ run: () => {
4372
+ actions.forkSession(target.sessionId);
4373
+ }
4374
+ }] : []);
4375
+ register("id", 450, [], (target) => [{
4376
+ id: "copy",
4377
+ label: t("menu.sessionId"),
4378
+ icon: { key: "workspace.copy" },
4379
+ separatorBefore: true,
4380
+ run: () => actions.copySessionId(target.sessionId)
4381
+ }]);
4382
+ register("archive", 600, ["workspace/archiveSession", "workspace/unarchiveSession"], (target) => {
4383
+ const restoring = archived(target);
4384
+ if (!allowed(target, restoring ? "workspace/unarchiveSession" : "workspace/archiveSession")) return [];
4385
+ return [{
4386
+ id: "archive",
4387
+ label: t(restoring ? "menu.unarchiveSession" : "menu.archiveSession"),
4388
+ icon: { key: restoring ? "workspace.unarchive" : "workspace.archive" },
4389
+ separatorBefore: true,
4390
+ afterContent: true,
4391
+ ...restoring ? {} : { commandId: "session.archive" },
4392
+ run: () => {
4393
+ (restoring ? actions.unarchiveSession : actions.archiveSession)(target.sessionId);
4394
+ }
4395
+ }];
4341
4396
  });
4342
4397
  }
4343
4398
  //#endregion
4344
4399
  //#region lib/types/client/session-actions/PinSession.js
4345
- /**
4346
- * The pin action: a `sidebar.workspaces.session.menu.item` row and a
4347
- * `sidebar.workspaces.session.row.action` button over one injected behavior.
4348
- * Pin and archive are mutually exclusive on the Host, so the action reads both
4349
- * sets and does not offer itself on an archived row; what a pin does beyond
4350
- * the Host call (fronting the Session in its saved orders, the failure
4351
- * notice) lives in the injected callbacks, not here.
4352
- */
4400
+ /** Session pin hover button over the workspace owner’s shared callbacks. */
4353
4401
  /** The row's pin and archive membership, one Set lookup each, and whether its access allows the toggle. */
4354
4402
  function usePinState({ sessionId, usePinned, useArchived, useSessionAccess }) {
4355
4403
  const pinned = usePinned((set) => set.has(sessionId));
@@ -4360,28 +4408,10 @@ window.__ModuleLoader__.load({
4360
4408
  };
4361
4409
  }
4362
4410
  /**
4363
- * Menu row (order 100): pin or unpin by the row's current state; absent on archived rows and while
4364
- * the Session's access snapshot excludes that toggle.
4365
- * @param props - owner share, the pin share, the access Hook, and the menu open state.
4366
- * @returns the row, or null for an archived or refused Session.
4367
- */
4368
- function PinSessionMenuItem(props) {
4369
- const { sessionId, useMenuOpenState, pinSession, unpinSession, t } = props;
4370
- const [, setMenuOpen] = useMenuOpenState();
4371
- const { pinned, archived, allowed } = usePinState(props);
4372
- if (archived || !allowed) return null;
4373
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
4374
- icon: pinned ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPinFillRegular, {}) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPinOutlineRegular, {}),
4375
- onSelect: () => {
4376
- setMenuOpen(false);
4377
- (pinned ? unpinSession : pinSession)(sessionId);
4378
- },
4379
- children: t(pinned ? "menu.unpinSession" : "menu.pinSession")
4380
- });
4381
- }
4382
- /**
4383
- * Hover button (order 200, rightmost: it lands where the rest-state pin marker sits); absent on
4411
+ * Hover button (order 200), also visible without hover when pinned; absent on
4384
4412
  * archived rows and while the Session's access snapshot excludes that toggle.
4413
+ * Tooltip forwards the class to the button. Keep that button directly inside
4414
+ * the display-contents slot anchor so hoverless rows can retain the Unpin action.
4385
4415
  * @param props - owner share, the access Hook, and the pin share.
4386
4416
  * @returns the button, or null for an archived or refused Session.
4387
4417
  */
@@ -4397,7 +4427,7 @@ window.__ModuleLoader__.load({
4397
4427
  portal: true,
4398
4428
  children: (0, react_jsx_runtime.jsx)("button", {
4399
4429
  type: "button",
4400
- className: Rows_module_css_default.iconButton,
4430
+ className: clsx(Rows_module_css_default.iconButton, pinned && Rows_module_css_default.pinnedAction),
4401
4431
  "aria-label": t(pinned ? "menu.unpinSession" : "menu.pinSession"),
4402
4432
  onClick: () => {
4403
4433
  (pinned ? unpinSession : pinSession)(sessionId);
@@ -4408,32 +4438,7 @@ window.__ModuleLoader__.load({
4408
4438
  }
4409
4439
  //#endregion
4410
4440
  //#region lib/types/client/session-actions/RenameSession.js
4411
- /**
4412
- * The rename action: a `sidebar.workspaces.session.menu.item` row that raises
4413
- * the rename request, and the `shell.overlay` dialog entry that answers it.
4414
- * The dialog lives outside the row menu because the row unmounts with the
4415
- * menu; the browser raises the same request from a title double-click.
4416
- */
4417
- /**
4418
- * Menu row (order 200): ask for the rename dialog, seeded with the row's current title. Absent while
4419
- * the Session's access snapshot excludes `session/rename`.
4420
- * @param props - owner share, menu open state, access Hook, and the rename share.
4421
- * @returns the row, or nothing when the caller may not rename this Session.
4422
- */
4423
- function RenameSessionMenuItem({ sessionId, displayTitle, useMenuOpenState, useShortcuts, useSessionAccess, requestSessionRename, t }) {
4424
- const [, setMenuOpen] = useMenuOpenState();
4425
- const shortcut = useShortcuts((rows) => rows.find((row) => row.id === "session.rename"));
4426
- if (!useSessionAccess(sessionId, "session/rename")) return null;
4427
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
4428
- shortcut,
4429
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconEditOutlineRegular, {}),
4430
- onSelect: () => {
4431
- setMenuOpen(false);
4432
- requestSessionRename(sessionId, displayTitle);
4433
- },
4434
- children: t("rename")
4435
- });
4436
- }
4441
+ /** Rename dialog shared by Session menus, shortcuts, and title double-clicks. */
4437
4442
  /**
4438
4443
  * The `shell.overlay` entry: nothing while no rename is requested, otherwise
4439
4444
  * one dialog per request (keyed by the Session, so a new request starts a
@@ -4743,25 +4748,6 @@ window.__ModuleLoader__.load({
4743
4748
  });
4744
4749
  }
4745
4750
  //#endregion
4746
- //#region lib/types/client/session-actions/SessionId.js
4747
- /** Copy the row's Session ID without opening its history. */
4748
- /**
4749
- * Copy the complete ID after dismissing the row menu.
4750
- * @param props - Row identity, menu dismissal, clipboard action, and locale.
4751
- * @returns The final built-in menu item.
4752
- */
4753
- function SessionIdMenuItem({ sessionId, useMenuOpenState, copySessionId, t }) {
4754
- const [, setMenuOpen] = useMenuOpenState();
4755
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MenuItemButton, {
4756
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCopyOutlineRegular, {}),
4757
- onSelect: () => {
4758
- setMenuOpen(false);
4759
- copySessionId(sessionId);
4760
- },
4761
- children: t("menu.sessionId")
4762
- });
4763
- }
4764
- //#endregion
4765
4751
  //#region lib/types/client/locales.js
4766
4752
  /**
4767
4753
  * `workspace` namespace dictionaries: the browsing region (section header,
@@ -5757,6 +5743,7 @@ window.__ModuleLoader__.load({
5757
5743
  * declaration through `slots.inject()` instead of assuming order.
5758
5744
  */
5759
5745
  const inject = [
5746
+ "contextMenus",
5760
5747
  "slots",
5761
5748
  "sessions",
5762
5749
  "workspaces",
@@ -5939,7 +5926,87 @@ window.__ModuleLoader__.load({
5939
5926
  rowToast.set(null);
5940
5927
  }
5941
5928
  });
5929
+ const workspaceActionRequest = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(null);
5930
+ const requestWorkspaceAction = (workspaceId, displayTitle, action) => {
5931
+ const workspace = workspaces.list.getSnapshot().items.find((row) => row.workspaceId === workspaceId);
5932
+ if (workspace === void 0 || !ctx.remoteAccess.source("workspace", workspaceId, `workspace/${action}`).getSnapshot()) return;
5933
+ workspaceActionRequest.set({
5934
+ action,
5935
+ workspaceId,
5936
+ displayTitle,
5937
+ storedTitle: workspace.title
5938
+ });
5939
+ };
5940
+ ctx.slots.inject("contextMenu.icon", function* () {
5941
+ for (const [key, Icon] of Object.entries({
5942
+ "workspace.rename": _deepseek_ai_dsh_client_ui_primitives.IconEditOutlineRegular,
5943
+ "workspace.delete": _deepseek_ai_dsh_client_ui_primitives.IconTrashOutlineRegular,
5944
+ "workspace.pin": _deepseek_ai_dsh_client_ui_primitives.IconPinOutlineRegular,
5945
+ "workspace.unpin": _deepseek_ai_dsh_client_ui_primitives.IconPinFillRegular,
5946
+ "workspace.archive": _deepseek_ai_dsh_client_ui_primitives.IconArchiveOutlineRegular,
5947
+ "workspace.unarchive": _deepseek_ai_dsh_client_ui_primitives.IconUnarchiveOutlineRegular,
5948
+ "workspace.fork": _deepseek_ai_dsh_client_ui_primitives.IconBranchOutlineRegular,
5949
+ "workspace.copy": _deepseek_ai_dsh_client_ui_primitives.IconCopyOutlineRegular
5950
+ })) yield ctx.slots.register({
5951
+ name: "contextMenu.icon",
5952
+ key
5953
+ }, Icon);
5954
+ });
5955
+ ctx.effect(() => ctx.contextMenus.register({
5956
+ id: "workspace.rename",
5957
+ target: "workspace",
5958
+ order: 100,
5959
+ resolve: ({ workspaceId, displayTitle }) => ctx.remoteAccess.source("workspace", workspaceId, "workspace/rename").getSnapshot() ? [{
5960
+ id: "rename",
5961
+ label: ctx.locale.bind(NS)("rename"),
5962
+ icon: { key: "workspace.rename" },
5963
+ run: () => {
5964
+ requestWorkspaceAction(workspaceId, displayTitle, "rename");
5965
+ }
5966
+ }] : []
5967
+ }), "workspace: rename menu action");
5968
+ ctx.effect(() => ctx.contextMenus.register({
5969
+ id: "workspace.delete",
5970
+ target: "workspace",
5971
+ order: 300,
5972
+ resolve: ({ workspaceId, displayTitle }) => ctx.remoteAccess.source("workspace", workspaceId, "workspace/delete").getSnapshot() ? [{
5973
+ id: "delete",
5974
+ label: ctx.locale.bind(NS)("delete.workspace"),
5975
+ icon: { key: "workspace.delete" },
5976
+ danger: true,
5977
+ separatorBefore: true,
5978
+ run: () => {
5979
+ requestWorkspaceAction(workspaceId, displayTitle, "delete");
5980
+ }
5981
+ }] : []
5982
+ }), "workspace: delete menu action");
5942
5983
  const browserInjected = () => ({
5984
+ openWorkspaceMenu: (workspaceId, path, displayTitle, point, mode) => {
5985
+ const target = ctx.contextMenus.active.getSnapshot();
5986
+ if (mode === "toggle" && target?.kind === "workspace" && target.value.workspaceId === workspaceId) ctx.contextMenus.close();
5987
+ else ctx.contextMenus.open({
5988
+ kind: "workspace",
5989
+ value: {
5990
+ workspaceId,
5991
+ path,
5992
+ displayTitle
5993
+ }
5994
+ }, point);
5995
+ },
5996
+ settleWorkspaceAction: () => {
5997
+ workspaceActionRequest.set(null);
5998
+ },
5999
+ openSessionMenu: (sessionId, displayTitle, point, mode) => {
6000
+ const target = ctx.contextMenus.active.getSnapshot();
6001
+ if (mode === "toggle" && target?.kind === "session" && target.value.sessionId === sessionId) ctx.contextMenus.close();
6002
+ else ctx.contextMenus.open({
6003
+ kind: "session",
6004
+ value: {
6005
+ sessionId,
6006
+ displayTitle
6007
+ }
6008
+ }, point);
6009
+ },
5943
6010
  startSession: (workspaceId, options) => {
5944
6011
  uiWorkspace.startSession(workspaceId, options);
5945
6012
  },
@@ -5968,6 +6035,8 @@ window.__ModuleLoader__.load({
5968
6035
  closeAddWorkspace: shortcutControls.closeAdd,
5969
6036
  setDirectoryBusy: shortcutControls.directoryBusy,
5970
6037
  hooks: {
6038
+ workspaceActionRequest,
6039
+ contextMenuTarget: ctx.contextMenus.active,
5971
6040
  directoryFlow: browserFlowSource,
5972
6041
  hostInfo,
5973
6042
  workspaceShortcuts: shortcutControls.state,
@@ -5985,14 +6054,6 @@ window.__ModuleLoader__.load({
5985
6054
  kind: "single",
5986
6055
  scope: "root"
5987
6056
  },
5988
- "sidebar.workspaces.session.menu.item": {
5989
- kind: "list",
5990
- scope: "root",
5991
- inject: { hooks: {
5992
- menuOpenState: menuOpenStateFactory,
5993
- shortcuts: ctx.shortcuts.catalog
5994
- } }
5995
- },
5996
6057
  "sidebar.workspaces.session.row.action": {
5997
6058
  kind: "list",
5998
6059
  scope: "root"
@@ -6016,42 +6077,24 @@ window.__ModuleLoader__.load({
6016
6077
  inject: browserInjected,
6017
6078
  locale: NS
6018
6079
  }, WorkspaceBrowser));
6019
- ctx.slots.inject("sidebar.workspaces.session.menu.item", function* () {
6020
- yield ctx.slots.register({
6021
- name: "sidebar.workspaces.session.menu.item",
6022
- id: "pin",
6023
- order: 100,
6024
- locale: NS,
6025
- inject: pinInjected
6026
- }, PinSessionMenuItem);
6027
- yield ctx.slots.register({
6028
- name: "sidebar.workspaces.session.menu.item",
6029
- id: "rename",
6030
- order: 200,
6031
- locale: NS,
6032
- inject: renameInjected
6033
- }, RenameSessionMenuItem);
6034
- yield ctx.slots.register({
6035
- name: "sidebar.workspaces.session.menu.item",
6036
- id: "fork",
6037
- order: 300,
6038
- locale: NS,
6039
- inject: forkInjected
6040
- }, ForkSessionMenuItem);
6041
- yield ctx.slots.register({
6042
- name: "sidebar.workspaces.session.menu.item",
6043
- id: "archive",
6044
- order: 400,
6045
- locale: NS,
6046
- inject: archiveInjected
6047
- }, ArchiveSessionMenuItem);
6048
- yield ctx.slots.register({
6049
- name: "sidebar.workspaces.session.menu.item",
6050
- id: "session-id",
6051
- order: 450,
6052
- locale: NS,
6053
- inject: sessionIdInjected
6054
- }, SessionIdMenuItem);
6080
+ ctx.slots.inject("contextMenu.content", () => ctx.slots.register({
6081
+ name: "contextMenu.content",
6082
+ key: "session",
6083
+ children: { "sidebar.workspaces.session.menu.item": {
6084
+ kind: "list",
6085
+ scope: "root",
6086
+ inject: { hooks: {
6087
+ menuOpenState: menuOpenStateFactory,
6088
+ shortcuts: ctx.shortcuts.catalog
6089
+ } }
6090
+ } }
6091
+ }, SessionMenu));
6092
+ registerSessionMenus(ctx, {
6093
+ ...pinInjected(),
6094
+ ...archiveInjected(),
6095
+ ...renameInjected(),
6096
+ ...forkInjected(),
6097
+ ...sessionIdInjected()
6055
6098
  });
6056
6099
  ctx.slots.inject("sidebar.workspaces.session.row.action", function* () {
6057
6100
  yield ctx.slots.register({