@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
@@ -1,90 +0,0 @@
1
- ---
2
- description: "计算机操作提供方注册:供每次启用一个桌面驱动的部署使用。"
3
- kind: "package-reference"
4
- ---
5
-
6
- # @deepseek-ai/dsh-computer-use
7
-
8
- [English](README.md) | 中文
9
-
10
- ## 概述
11
-
12
- 部署每次可启用一个计算机操作提供方。加载另一个提供方时会失败,并报告已注册的提供方名称。DSH 原生 CUA 和 Cua Driver 适配包都使用此注册器。各提供方提供自己的工具和桌面操作。本包不添加模型可见工具,也不协调并发 Session。
13
-
14
- ## 目录
15
-
16
- - [使用本包](#use-this-package)
17
- - [理解实现](#understand-the-implementation)
18
- - [延伸阅读](#further-exploration)
19
- - [模型体验](#model-experience)
20
- - [已知限制与后续工作](#known-limitations-and-deferred-work)
21
- - [开发备注](#dev-note)
22
-
23
- -----
24
-
25
- <a id="use-this-package"></a>
26
- ## 使用本包
27
-
28
- 在 Cordis 组合中,将服务与选定的提供方一起挂载一次:
29
-
30
- ```yaml
31
- - name: '@deepseek-ai/dsh-computer-use'
32
- ```
33
-
34
- 服务没有配置项。提供方插件注入 `computerUse` 并调用 `ctx.computerUse.register(ComputerUseProviderName(name))`;该品牌类型从 `@deepseek-ai/dsh-computer-use/brand` 导出。返回的 effect 清理函数释放此次注册。
35
-
36
- 提供方先停止接收工具调用、关闭资源并等待自有工作结束,再释放注册。释放前,`ctx.computerUse.providerName` 始终报告已注册的名称。
37
-
38
- -----
39
-
40
- <a id="understand-the-implementation"></a>
41
- ## 理解实现
42
-
43
- <details>
44
- <summary>实现细节 — 点击展开</summary>
45
-
46
- 一个私有名称占用注册位置。Cordis effect 在插件卸载时移除贡献;重复调用清理函数不会移除后续注册。[源码](src/index.ts)不包含驱动对象、操作接口或提供方选择器。
47
-
48
- </details>
49
-
50
- -----
51
-
52
- <a id="further-exploration"></a>
53
- ## 延伸阅读
54
-
55
- - [计算机操作](../../../docs/subsystems/computer-use.zh.md) — 提供方选择和共享桌面限制。
56
- - [Computer Use 组合包](../../experimental/cua-bundle/README.zh.md):启用 DSH 原生 CUA 和权限管理功能。
57
- - [共享 CUA 库](../../experimental/cua/README.zh.md):应用与窗口对象、工具执行和应用授权。
58
- - [macOS CUA 提供方](../../experimental/cua-macos/README.zh.md):DSH 的 Swift 实现和原生辅助进程生命周期。
59
- - [Cua Driver MCP 提供方](../../experimental/computer-use-cua-driver-mcp/README.zh.md) — 使用已安装的驱动。
60
- - [Cua Driver 原生提供方](../../experimental/computer-use-cua-driver-native/README.zh.md) — 使用 npm 运行时。
61
-
62
- -----
63
-
64
- <a id="model-experience"></a>
65
- ## 模型体验
66
-
67
- 无,因为此注册表只记录提供方名称。
68
-
69
- #### KV 缓存影响
70
-
71
- 注册不改变模型请求。提供方拥有的工具和指导文本决定各自对请求前缀的影响。
72
-
73
- ## 已知限制与后续工作
74
-
75
- <a id="known-limitations-and-deferred-work"></a>
76
-
77
- 服务在其 Cordis 服务实例内限制注册。
78
-
79
- - **共享桌面** — 并发 Session 和独立 DSH 进程可以操作同一桌面;调用方协调完整的计算机操作流程。
80
- - **提供方选择** — 由配置选择提供方;模型不能在运行时切换已注册的驱动。
81
-
82
- <a id="dev-note"></a>
83
- ### 开发备注
84
-
85
- <details>
86
- <summary>维护者工作背景 — 点击展开</summary>
87
-
88
- 无。
89
-
90
- </details>
@@ -1,35 +0,0 @@
1
- import { Service } from "@deepseek-ai/cordis";
2
- //#region lib/types/index.js
3
- /**
4
- * Exclusive named registration for the computer-use capability.
5
- * @module @deepseek-ai/dsh-computer-use
6
- */
7
- /** Owns one optional provider registration in the shared computer-use service. */
8
- var ComputerUseRegistry = class extends Service {
9
- registration;
10
- constructor(ctx) {
11
- super(ctx, "computerUse");
12
- }
13
- /** Name of the registered provider, including while its resources are closing. */
14
- get providerName() {
15
- return this.registration;
16
- }
17
- /**
18
- * Reserve the sole provider slot until the contribution is disposed.
19
- * A second registration fails even when it repeats the current name. Providers
20
- * must stop their tools and await owned work before releasing this registration.
21
- * @param name - provider-owned name used in registration diagnostics.
22
- * @returns the effect disposer for this exact registration.
23
- */
24
- register(name) {
25
- if (this.registration !== void 0) throw new Error(`computer use provider "${this.registration}" is already registered`);
26
- return this.ctx.effect(() => {
27
- this.registration = name;
28
- return () => {
29
- this.registration = void 0;
30
- };
31
- }, "computerUse.register()");
32
- }
33
- };
34
- //#endregion
35
- export { ComputerUseRegistry, ComputerUseRegistry as default };
@@ -1,10 +0,0 @@
1
- /** Computer-use provider identities. @module @deepseek-ai/dsh-computer-use/brand */
2
- /**
3
- * Brand a provider-owned name without changing or validating it.
4
- * @param name - name chosen by the provider implementation.
5
- * @returns the same name with its computer-use provider brand.
6
- */
7
- export function ComputerUseProviderName(name) {
8
- return name;
9
- }
10
- //# sourceMappingURL=brand.js.map
@@ -1,36 +0,0 @@
1
- /**
2
- * Exclusive named registration for the computer-use capability.
3
- * @module @deepseek-ai/dsh-computer-use
4
- */
5
- import { Service } from '@deepseek-ai/cordis';
6
- /** Owns one optional provider registration in the shared computer-use service. */
7
- export class ComputerUseRegistry extends Service {
8
- registration;
9
- constructor(ctx) {
10
- super(ctx, 'computerUse');
11
- }
12
- /** Name of the registered provider, including while its resources are closing. */
13
- get providerName() {
14
- return this.registration;
15
- }
16
- /**
17
- * Reserve the sole provider slot until the contribution is disposed.
18
- * A second registration fails even when it repeats the current name. Providers
19
- * must stop their tools and await owned work before releasing this registration.
20
- * @param name - provider-owned name used in registration diagnostics.
21
- * @returns the effect disposer for this exact registration.
22
- */
23
- register(name) {
24
- if (this.registration !== undefined) {
25
- throw new Error(`computer use provider "${this.registration}" is already registered`);
26
- }
27
- return this.ctx.effect(() => {
28
- this.registration = name;
29
- return () => {
30
- this.registration = undefined;
31
- };
32
- }, 'computerUse.register()');
33
- }
34
- }
35
- export default ComputerUseRegistry;
36
- //# sourceMappingURL=index.js.map
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Register des Computeranbieters",
4
- "description": "Registrieren Sie Computer Use-Anbieter namentlich, mit einem Anbieter pro Name."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Computer provider registry",
4
- "description": "Register Computer Use providers by name, with one provider per name."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Registro de proveedores de informática",
4
- "description": "Registre proveedores Computer Use por nombre, con un proveedor por nombre."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Registre des fournisseurs d'ordinateurs",
4
- "description": "Enregistrez les fournisseurs Computer Use par nom, avec un fournisseur par nom."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "コンピュータ操作の提供元レジストリ",
4
- "description": "名前ごとに排他的なコンピュータ操作の提供元を登録します。"
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Registro de provedor de computador",
4
- "description": "Registre Computer Use provedores por nome, com um provedor por nome."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "Реестр поставщиков компьютеров",
4
- "description": "Зарегистрируйте Computer Use поставщиков по имени, по одному поставщику на имя."
5
- }
6
- }
@@ -1,6 +0,0 @@
1
- {
2
- "meta": {
3
- "title": "电脑操作服务注册",
4
- "description": "按名称注册独占的电脑操作提供方。"
5
- }
6
- }
@@ -1,44 +0,0 @@
1
- {
2
- "name": "@deepseek-ai/dsh-computer-use",
3
- "description": "Exclusive named computer-use provider registration",
4
- "version": "0.2.2-alpha.2",
5
- "publishConfig": {
6
- "access": "public"
7
- },
8
- "repository": {
9
- "type": "git",
10
- "url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
11
- "directory": "packages/computer-use/computer-use"
12
- },
13
- "type": "module",
14
- "main": "lib/index.js",
15
- "types": "lib/types/index.d.ts",
16
- "exports": {
17
- ".": {
18
- "types": "./lib/types/index.d.ts",
19
- "default": "./lib/index.js"
20
- },
21
- "./src/*": "./src/*",
22
- "./locale/*.json": "./locale/*.json",
23
- "./package.json": "./package.json",
24
- "./brand": {
25
- "types": "./lib/types/brand.d.ts",
26
- "default": "./lib/types/brand.js"
27
- }
28
- },
29
- "files": [
30
- "locale/*.json",
31
- "lib/index.js",
32
- "lib/types/**/*.js",
33
- "lib/types/**/*.d.ts"
34
- ],
35
- "license": "MIT",
36
- "peerDependencies": {
37
- "@deepseek-ai/cordis": "4.0.6-alpha.1",
38
- "@deepseek-ai/dsh-brand": "0.2.2-alpha.2"
39
- },
40
- "devDependencies": {
41
- "@deepseek-ai/cordis": "4.0.6-alpha.1",
42
- "@deepseek-ai/dsh-brand": "0.2.2-alpha.2"
43
- }
44
- }
@@ -1,49 +0,0 @@
1
- # Bilingual-pair consistency record for README.md (docs/i18n/README.md): per heading
2
- # section, a hash of its English and Chinese blocks outside code blocks and generated regions.
3
- # After editing either side, bring the other along and re-record with:
4
- # pnpm run verify-translation-pairing --write packages/experimental/cua/README.md
5
- /:
6
- en: ed2539c6d12f814a
7
- zh: 55a6c9d7f0d21fb7
8
- /deepseek-ai-dsh-cua:
9
- en: 0ef7ee882840cf1b
10
- zh: 01b9e768eff2d302
11
- /deepseek-ai-dsh-cua/summary:
12
- en: f4d9cc48587d62a2
13
- zh: d1bac6c1fe7eb29e
14
- /deepseek-ai-dsh-cua/table-of-contents:
15
- en: 5db4d4fea25493b9
16
- zh: 65ab64fc24eb0d09
17
- /deepseek-ai-dsh-cua/use-this-package:
18
- en: ed736a45140a6d56
19
- zh: 8dc89373a0a88fcc
20
- /deepseek-ai-dsh-cua/use-this-package/permission-controls:
21
- en: deb4ec91b186399e
22
- zh: 7febe3b08dbb185e
23
- /deepseek-ai-dsh-cua/understand-the-implementation:
24
- en: 951d9a3b925de34a
25
- zh: f3444e127953a63f
26
- /deepseek-ai-dsh-cua/further-exploration:
27
- en: 166e3c1f9a67f753
28
- zh: 698c5136c5350052
29
- /deepseek-ai-dsh-cua/model-experience:
30
- en: 215e7ba838619b7b
31
- zh: a311da3843709f90
32
- /deepseek-ai-dsh-cua/model-experience/authorized-application-operations:
33
- en: 0faf1e4d409d61aa
34
- zh: 1866dd0b702f2a26
35
- /deepseek-ai-dsh-cua/model-experience/authorized-application-operations/what-the-model-sees:
36
- en: 4f90c4a6b121bce0
37
- zh: c36ab4b80985c76e
38
- /deepseek-ai-dsh-cua/model-experience/authorized-application-operations/token-effect:
39
- en: 88463f0304c207bd
40
- zh: 6d3ae2f1b8e45747
41
- /deepseek-ai-dsh-cua/model-experience/authorized-application-operations/kv-cache-effect:
42
- en: 2d5df52dafa1d940
43
- zh: 06e815759b9150c3
44
- /deepseek-ai-dsh-cua/known-limitations-and-deferred-work:
45
- en: a4b9d44dec85b0d1
46
- zh: 3a393e508397ecc2
47
- /deepseek-ai-dsh-cua/known-limitations-and-deferred-work/dev-note:
48
- en: 0a1253c6f7b5e8b9
49
- zh: 9f56528562c7c914
@@ -1,130 +0,0 @@
1
- ---
2
- description: "Reuse Computer Use application and window objects with authorized, logged platform operations."
3
- kind: "package-reference"
4
- ---
5
-
6
- # @deepseek-ai/dsh-cua
7
-
8
- English | [中文](README.zh.md)
9
-
10
- ## Summary
11
-
12
- Inspect applications, retain window objects across PTC calls, and send actions through the normal tool pipeline. Platform providers supply native execution; this library owns the object API, request validation, application consent, and image admission. The external PTC runtime owns variable persistence.
13
-
14
- ## Table of Contents
15
-
16
- - [Use this package](#use-this-package)
17
- - [Understand the implementation](#understand-the-implementation)
18
- - [Further Exploration](#further-exploration)
19
- - [Model Experience](#model-experience)
20
- - [Known Limitations and Deferred Work](#known-limitations-and-deferred-work)
21
- - [Dev Note](#dev-note)
22
-
23
- Application consent supplies English, Chinese, and Japanese display text from `src/locales.ts`. It uses the fixed approval presentation of User Questions and remains independent of the session tool-approval policy. Native icons accompany the prompt and permission-page observations, but remain outside saved identities and model results. System checks, saved grants and refusals, and icons use separate queries so each result can appear without waiting for the others.
24
-
25
- -----
26
-
27
- <a id="use-this-package"></a>
28
- ## Use this package
29
-
30
- Mount the [macOS provider](../cua-macos/README.md) to enable native operations. External PTC hosts import `connectCua` from `@deepseek-ai/dsh-cua/bridge` and supply the current `tools.cua` binding. Source compositions and native preparation belong to the provider.
31
-
32
- Use App methods for a single-window task. `getApp` reads initial accessibility state; `getWindows` and `getWindow` select an explicit window when needed. Re-reading one app/window scope replaces its element indices without invalidating another window's snapshot. Keyboard input follows the application's focus. Invalid request arguments reject before dispatch with a readable method, parameter and requirement.
33
-
34
- Observation methods emit and return their result. Use `void await app.getAXState()` for one visible copy, or use `emit:false` and print the returned text once. Screenshots return `CuaScreenshot` with `bytes`, `mimeType`, `pixelWidth`, `pixelHeight`, and `windowId`. The image sink receives the same object. Use its MIME type when selecting a file extension or declaring an image; the format can be PNG, JPEG, WebP, or GIF. Each screenshot enters the attachment pipeline once; `emit:false` only suppresses the object sink.
35
-
36
- `tools.cua` returns operation values directly. Screenshot values retain the encoded image Base64 and add a durable `attachment` reference for the tool renderer; model content contains coordinate metadata and one image, without the encoded bytes. Before capture, the tool requires an attachment store and a resolved model route declaring image input. Admission and storage failures reject the call. The object bridge preserves the screenshot bytes and validated metadata without uploading or emitting the same image again.
37
-
38
- Application consent precedes launch, observation, capture, and input. Session access is stored by conversation and application identity and survives DSH restart and Computer Use disablement. Other conversations require their own consent. Saved grants require a platform-provided reusable application identity. Refusal and revocation close affected Agent connections, so their old objects require fresh selection. No input is replayed after cancellation, timeout, or reconnect.
39
-
40
- Actions return `dispatched:true, verified:false`; read fresh state to verify the result. Coordinate actions default to pixels in the latest returned screenshot; `relative: true` accepts integers from 0 to 999 after a successful window observation. Values are divided by 1000 and scaled to the window dimensions, then clamped inside the window. The Host resolves attachment normalization and the selected model route’s image projection before returning the screenshot, then converts input to native window points. Resizing invalidates the screenshot mapping; `SCREENSHOT_REQUIRED` requires a new screenshot for absolute coordinates. Resizing rejects old coordinates with `WINDOW_CHANGED`; movement alone preserves window-local coordinates.
41
-
42
- `click(target, { holdMs: 800 })` holds the mouse button for 800 milliseconds before release. `holdMs` accepts nonnegative integers and applies to each press of a double-click; zero releases without an additional hold. The provider config `maxClickHoldMs` limits explicit holds and defaults to 5000 ms. Explicit holds use pointer input for both AX indices and coordinates; omission preserves ordinary click behavior. The operation deadline includes the hold, and cancellation or timeout releases the button. Received input cannot be undone; forced helper termination cannot guarantee release.
43
-
44
- ### Permission controls
45
-
46
- On the Computer Use detail page, permission cards, component rows, and source facts use l3 borders, with 32px gaps between sections. Application badges retain their l1 borders.
47
-
48
- The [Computer Use bundle](../cua-bundle/README.md) mounts this page with its native provider. **Authorize computer use** groups the new-session default, PTC execution mode, Accessibility, and Screen Recording inside one border, with dividers between the rows. Each system-permission row shows the system-reported responsible application’s `.app` bundle filename and icon together in a bordered label. **Manage applications computer use can access** places the application lists inside a separate bordered group. Choose **Request permission**, find that application in the macOS permission list, and enable its switch; if macOS names another application, follow that prompt. With no detected source, the page directs the user to the application named by macOS. Each system-permission row has one control: **Request permission** when access is missing, or an outlined **Allowed** button with a settings icon after authorization. Clicking it opens the corresponding privacy pane, where the user can revoke access; hovering shows **Open System Settings**. Unknown status uses the same button with an **Unknown** label; pending initial observations retain a single placeholder. The page refreshes on entry, when the window regains focus, and after permission actions. A failed query offers **Retry**. Follow any macOS quit-and-reopen prompt and restart DSH as needed.
49
-
50
- System-permission operations affect the computer running DSH. When accessing DSH remotely, complete authorization on that computer.
51
-
52
- Enabling from the plugin list or detail page shows setup guidance when system permissions need attention, with **Later** and **Open settings** actions. The detail page provides **Set to PTC** under **Default mode for new sessions**; only this action saves the default. Existing sessions keep their preset. **Use persistent mode** in the **PTC execution mode** row separately enables `ptc-runtime.scriptPersistence` when Script mode is selected; otherwise it saves `ptc-runtime.executionMode: persistent-in-memory`. Switching reloads the shared PTC runtime and may interrupt an active call; subsequent calls retain variables and application objects in memory. Already-persistent runtimes show a disabled **Persistent mode enabled** button.
53
-
54
- The page lists always-allowed applications and refusals from any session. A refusal in one session does not cancel another session’s grant or prevent a new session from asking. Session-only grants remain effective within their sessions and are omitted from this page. **Revoke** removes the selected application's access and cancels affected work. Input already delivered to an application cannot be undone; observe the application before any further action. **Allow asking again** clears that application’s refusal records across all sessions; the next application selection still requires a new decision.
55
-
56
- The Host marker has no configurable fields; platform providers own native configuration.
57
-
58
- -----
59
-
60
- <a id="understand-the-implementation"></a>
61
- ## Understand the implementation
62
-
63
- <details>
64
- <summary>Shared execution and platform ownership</summary>
65
-
66
- The [permission store](src/permission-store.ts) uses `storageDomain` with the configured backend. The default JSON backend writes `$DSH_HOME/storages/cua_permissions_<sha256>.json`, where the digest identifies the canonical profile directory. Each authorization check opens fresh state under the profile's file lock and closes its domain afterward; native dispatch uses a separate application lock. Revocation waits for operations already admitted by another process; after it completes, every process rejects old handles. Files on different machines or PID namespaces must not share this lock.
67
-
68
- Legacy `allowedApps` are imported on first store access and never reapplied after migration. The old configuration can be removed after checking the permission page. Grants, denials and the option to ask again are durable; the page still omits conversation-only grants. Standalone compositions without a profile retain only process-local decisions; a profile without domain storage refuses authorization operations.
69
-
70
- Grant executable paths are optional display metadata. Missing paths omit the tooltip and icon query while retaining the application name and revoke action. Existing stored records remain valid; new records without paths require a reader that supports the optional field. Storage failures still reject authorization and dispatch without substituting temporary permission.
71
-
72
- The permission Remote also exposes `ptcConfiguration()` and `enablePersistentPtc()` for the detail-page runtime setting. Reads inspect the existing runtime and editable profile entry. Explicit writes obtain execution settings from the Node provider's `resolvePersistentExecution` helper and use `configEditor.edit()` to preserve other fields and apply normal Loader reload; an already-persistent runtime is left intact. CUA declares the Node provider as a peer so these settings follow the installed provider version. This setting is separate from system and application authorization.
73
-
74
- The provider calls [installCua](src/index.ts) with its prepared helper, connection factory, and guidance. [NativeClient](src/native-client.ts) owns request correlation, byte limits, cancellation acknowledgement, and failure settlement. The platform connector owns startup and connection cleanup. The shared executor retains one connection per Agent and joins in-flight image writes during disposal.
75
-
76
- `agentPreset` defaults to `ptc`, restricting tools and guidance to Agents bound to that preset. The provider uses the existing `agent/created` and `agent-preset/selected` events and Agent-owned scopes, including Agents already present when it loads. Provider unload and Agent disposal release those registrations. Preset definitions may register after the provider; a preset name filters bound Agents and supplies no tools until a matching Agent exists. Set `agentPreset: false` for global registration in standalone compositions without presets. The Host continues to own permissions, native connections and cancellation; preset definitions remain unchanged.
77
-
78
- [The operation schema](src/protocol.ts) is the authority for model parameters and separately declared Host-only fields. Native implementations enforce target identity, window geometry, resource limits, and operating-system access at execution. The permission store owns durable consent separately from the native protocol.
79
-
80
-
81
- The root Host entry exports `installCua`, `CuaConfig`, and the Typert-discovered `CuaAccess` service; its `apply()` only marks the optional Client contribution. `/client` loads the permission UI through the existing module loader. Separate Host and Client compiler projects keep React, CSS, and browser registrations out of headless imports. `/api` owns the app/window API and its types; `/bridge`, `/native-client`, and `/protocol` retain runtime and platform consumers. `/types` exports only the four named boundary types required by generated Remote declarations. The Client uses package-local types. `/typert` supplies Host reflection and `/remote` supplies generated browser descriptors and codecs; permission authority remains on the Host.
82
-
83
- The optional browser contribution mounts the native provider's permission Remote and reuses the Plugins activation and configuration slots. The four setup rows remain visible while unknown fields use placeholders; the same permission-management guidance remains visible while queries settle and after access is granted, including when the text wraps. The default-mode form, runtime configuration, system checks, application decisions, and application icons fill in as each query completes. Application names and actions do not wait for icons; icon positions retain their space. User actions run in order without waiting for pending observation queries. Disposal waits for both actions and queries to settle before releasing the separately owned Remote mount. Known query errors and read-only settings stay visible while management operations or retries run, with their actions disabled. Query errors stay with the affected section, and activation guidance depends only on system checks. The injection layer observes Plugin Manager operations independently of the page. Bundle and row changes pause all four queries and invalidate in-flight results; settlement refreshes observations even after the page closes. Last known errors remain until a successful read. Disposal discards late results. The controller consumes the generated `ctx.remote.cuaAccess` namespace directly and handles unsuccessful Remote results in its existing query and action paths. It projects queries into the page and setup dialog; reconnects refresh it. Page entry, focus and completed actions read the current permission store. Operation notices live in the shell overlay, so closing the page does not remove them. The provider owns permission checks, persisted decisions, and cancellation; the browser owns no authorization state.
84
-
85
- The detail page reads the effective default (`selectedDefault ?? default`) from the existing `configForms` service. The default button writes only `selectedDefault` through the form's revision-checked settings path. The execution-mode row uses CUA's `ptcConfiguration()` and `enablePersistentPtc()` controls: persistence follows the loaded runtime's `retainsState`. Enabling persistence preserves an active Script evaluator and writes `executionMode` and `scriptPersistence` together through the configuration editor; other modes select the retained REPL with Script persistence disabled. The ordinary Loader reload lifecycle applies. Permission checks and runtime state settle independently. Loading, read-only and unavailable settings cannot submit a change; a failed write remains beside the setting for retry.
86
- </details>
87
-
88
- -----
89
-
90
- <a id="further-exploration"></a>
91
- ## Further Exploration
92
-
93
- - [macOS provider](../cua-macos/README.md)
94
- - [Object interfaces](src/types.ts)
95
- - [Consent storage migration](../../../docs/upgrade-guide/v0.2.1-rc.2/cua-consent-storage/guide.md)
96
-
97
- -----
98
-
99
- <a id="model-experience"></a>
100
- ## Model Experience
101
-
102
- ### Authorized application operations
103
-
104
- #### What the model sees
105
-
106
- Platform providers mount the shared `cua` tool and supply operating instructions. Calls and observations use the same app/window interface and enter normal Session history. Platform guidance is documented by the [macOS provider](../cua-macos/README.md#model-experience).
107
-
108
- #### Token effect
109
-
110
- Operation results and admitted images add model input. Retained JavaScript objects are not serialized into prompts. Duplicate caller printing can repeat observation text.
111
-
112
- #### KV Cache effect
113
-
114
- Results append to history. Retaining objects does not rewrite previous messages; changing the mounted tools or guidance can change the request prefix.
115
-
116
- ## Known Limitations and Deferred Work
117
-
118
- <a id="known-limitations-and-deferred-work"></a>
119
-
120
- - Conversation decisions have no automatic retention limit or deletion when a conversation is removed. Revocation removes permission, while its generation remains to reject older handles and pending approvals.
121
- - Native execution currently uses the macOS provider. Windows support is planned as a separate provider package with a C# helper, retaining the shared app/window API, authorization, snapshot validity, and action-result semantics. Its implementation must document system-specific limitations and distinguish cross-compilation evidence from Windows desktop validation.
122
- - Persistent variables do not reserve an application across a sequence of operations. Other Agents and the user can change its state. Hover and observations do not restore the previous pointer position; [continuous interaction](../../../.agents/notes/implemented/architecture/2026-10-13-cua-continuous-hover.md) uses no cross-call ownership.
123
- - The package stays in `experimental` until Windows support and platform validation permit promotion to the `computer-use` group.
124
-
125
- -----
126
-
127
- <a id="dev-note"></a>
128
- ### Dev Note
129
-
130
- None.
@@ -1,130 +0,0 @@
1
- ---
2
- description: "复用 Computer Use 应用和窗口对象,通过已授权并记录日志的平台操作完成任务。"
3
- kind: "package-reference"
4
- ---
5
-
6
- # @deepseek-ai/dsh-cua
7
-
8
- [English](README.md) | 中文
9
-
10
- ## 概述
11
-
12
- 检查应用、跨 PTC 调用保留窗口对象,并通过正常工具执行链发送动作。平台提供方负责原生执行;本库负责对象 API、请求校验、应用授权和图像接纳。变量持久性由外部 PTC 运行时负责。
13
-
14
- ## 目录
15
-
16
- - [使用本包](#use-this-package)
17
- - [理解实现](#understand-the-implementation)
18
- - [进一步探索](#further-exploration)
19
- - [模型体验](#model-experience)
20
- - [已知限制与后续工作](#known-limitations-and-deferred-work)
21
- - [开发备注](#dev-note)
22
-
23
- 应用授权从 `src/locales.ts` 提供中英日展示文案。它使用 User Questions 的固定审批呈现,仍独立于会话的工具审批策略。本机图标用于授权提示和权限页展示,不进入保存的身份信息或模型结果。系统权限、持久授权与拒绝记录、图标分别查询,各项结果返回后即可显示。
24
-
25
- -----
26
-
27
- <a id="use-this-package"></a>
28
- ## 使用本包
29
-
30
- 挂载 [macOS 提供方](../cua-macos/README.zh.md)以启用原生操作。外部 PTC 宿主从 `@deepseek-ai/dsh-cua/bridge` 导入 `connectCua`,并提供当前 `tools.cua` 绑定。源码组合与原生组件准备由提供方负责。
31
-
32
- 单窗口任务直接使用 App 方法。`getApp` 读取初始辅助功能状态;需要指定窗口时使用 `getWindows` 和 `getWindow`。重新读取一个应用或窗口范围会替换其中的元素编号,不使其他窗口的快照失效。键盘输入跟随应用焦点。请求参数校验失败时,在分派前返回包含方法、参数和要求的可读消息。
33
-
34
- 观察方法会输出并返回结果。使用 `void await app.getAXState()` 只展示一份内容,或使用 `emit:false` 后打印一次返回文本。截图返回包含 `bytes`、`mimeType`、`pixelWidth`、`pixelHeight` 和 `windowId` 的 `CuaScreenshot`,图片输出回调接收同一个对象。选择文件后缀或声明图片时使用其中的 MIME 类型;格式可能是 PNG、JPEG、WebP 或 GIF。每张截图只进入一次附件处理链;`emit:false` 只抑制对象层的输出。
35
-
36
- `tools.cua` 直接返回操作结果。截图结果保留图片 Base64,并增加供工具渲染使用的持久 `attachment` 引用;模型内容只包含坐标元数据和一张图片,不包含编码字节。截图前要求附件服务可用,并确认当前模型支持图片输入。图片接入或保存失败会拒绝调用。对象桥接保留截图字节和已校验的元数据,不重复上传或输出同一张图片。
37
-
38
- 应用授权发生在启动、观察、截图和输入之前。会话许可按对话和应用身份持久化,重启 DSH 或关闭 Computer Use 后仍可复用,其他对话需要单独授权。长期许可要求平台提供可复用的应用身份。拒绝或撤销会关闭受影响的 Agent 连接,因此旧对象必须重新选择目标。取消、超时或重新连接后均不重放输入。
39
-
40
- 动作返回 `dispatched:true, verified:false`;请读取新状态以验证结果。坐标操作默认使用最近返回截图中的像素;成功观察窗口后,传入 `relative: true` 可使用 0~999 的整数坐标。数值除以 1000 后按窗口尺寸缩放,并限制在窗口内。Host 在返回截图前解析附件归一化和当前模型的图片缩放规则,再将输入换算为原生窗口 point。窗口尺寸变化会使截图映射失效,绝对坐标遇到 `SCREENSHOT_REQUIRED` 时需要重新截图。窗口缩放后以 `WINDOW_CHANGED` 拒绝旧坐标;单纯移动窗口不改变窗口内坐标。
41
-
42
- `click(target, { holdMs: 800 })` 按住鼠标按钮 800 毫秒后松开。`holdMs` 接受非负整数,双击时应用于每次按下;0 表示按下后立即松开,不额外等待。提供方配置 `maxClickHoldMs` 限制显式按住时长,默认 5000 毫秒。指定时长后,AX 索引和坐标目标都使用鼠标事件;省略时保留普通点击行为。按住时间计入操作超时,取消或超时会松开按钮。已接收的输入无法撤销;辅助进程被强制终止时无法保证松开。
43
-
44
- ### 权限控件
45
-
46
- Computer Use 详情页的权限卡片、组件列表和来源信息使用 l3 边框,区块间距为 32px。应用名称徽标保留 l1 边框。
47
-
48
- [Computer Use 组合](../cua-bundle/README.zh.md)将本页与原生 provider 一起挂载。“给 Computer Use 授权”把新会话默认模式、PTC 执行方式、辅助功能和屏幕录制放在同一个边框内,四排之间使用分隔线。两条系统权限要求在能识别责任应用时,把该应用的 `.app` 包名称和图标放在同一个标签中。“管理 Computer Use 可访问的应用”使用独立边框包住应用列表。点击“申请权限”,在 macOS 权限列表中找到该应用并开启对应开关;若 macOS 显示其他名称,以系统提示为准。来源无法识别时,页面引导用户查找系统提示的应用。每条系统权限要求只显示一个控件:未授权时为“申请权限”,已授权时为带设置图标的“已允许”描边按钮,点击直接进入对应隐私设置页,由用户撤销权限,悬停提示“打开系统设置”。无法确认状态时使用同样的按钮,文字为“未确认”。首次查询期间保留一个占位。进入详情页、返回窗口或完成授权操作后会自动刷新;查询失败时可点击“重试”。若系统要求退出并重新打开应用,请按提示操作并重新启动 DSH。
49
-
50
- 系统权限操作作用于运行 DSH 的电脑。远程访问时,请在该电脑上完成授权。
51
-
52
- 从插件列表或详情页启用后,系统权限尚未就绪时会显示设置引导,提供“稍后”和“前往设置”。详情页的“新会话默认模式”提供“设为 PTC”按钮,仅点击此按钮才保存默认值。已有会话保留原 preset。“PTC 执行方式”一行的“设为持久化”在选用 Script 模式时单独启用 `ptc-runtime.scriptPersistence`;其他模式下保存 `ptc-runtime.executionMode: persistent-in-memory`。切换会重载共享 PTC 执行器,可能打断当前调用;后续调用在内存中保留变量和应用对象。已经使用持久化模式时,按钮显示“已设为持久化”并禁用。
53
-
54
- 页面展示“始终允许的应用”和“不允许访问的应用”。后者汇总任一会话的拒绝记录,不取消其他会话已有的授权,也不阻止新会话询问授权。会话授权仍在对应会话中生效,详情页不展示这类应用。“撤销”会移除对应应用的访问许可并取消相关操作。已发送到应用的输入无法撤回,继续操作前需重新观察应用。“允许再次询问”清除该应用在所有会话中的拒绝记录;下次选择应用时仍需用户重新决定。
55
-
56
- 本插件没有配置字段。
57
-
58
- -----
59
-
60
- <a id="understand-the-implementation"></a>
61
- ## 理解实现
62
-
63
- <details>
64
- <summary>共享执行与平台职责</summary>
65
-
66
- [授权存储](src/permission-store.ts)复用 `storageDomain` 和配置的后端。默认 JSON 后端写入 `$DSH_HOME/storages/cua_permissions_<sha256>.json`,摘要对应 profile 的真实目录。每次授权检查在 profile 文件锁内打开并读取最新状态,随后关闭存储域;原生操作使用单独的应用锁。撤销会等待其他进程已获准执行的操作结束;撤销完成后,各进程都拒绝旧句柄。不同电脑或 PID 命名空间不能共享这把锁。
67
-
68
- 旧 `allowedApps` 只在首次访问存储时导入,迁移后不再应用。确认权限页显示正确后,可以删除旧配置。授权、拒绝和允许再次询问均持久化,页面仍不显示仅对某个会话生效的许可。没有 profile 的独立组合只保留进程内决定;有 profile 但缺少域存储的组合会拒绝授权操作。
69
-
70
- 授权记录中的可执行路径是可选的展示信息。缺少路径时不显示路径提示,也不查询图标,应用名称和撤销操作仍然可用。已有存储记录保持有效,缺少路径的新记录需要支持可选字段的读取方。存储失败仍会拒绝授权和操作,不会改用临时许可。
71
-
72
- 权限 Remote 还通过 `ptcConfiguration()` 和 `enablePersistentPtc()` 支持详情页的执行方式设置。查询读取现有执行器和可编辑的 profile 条目。显式写入从 Node 提供方的 `resolvePersistentExecution` 辅助函数获取执行设置,再用 `configEditor.edit()` 保留其他字段并按正常 Loader 规则重载;已是持久化模式的执行器保持不变。CUA 将 Node 提供方声明为 peer 依赖,使这些设置与已安装的提供方版本一致。此设置独立于系统权限和应用授权。
73
-
74
- 提供方将准备好的 helper、连接工厂和指引传给 [installCua](src/index.ts)。[NativeClient](src/native-client.ts) 负责请求关联、字节上限、取消确认和失败处理。平台连接器负责启动和连接清理。共享执行器为每个 Agent 保留一个连接,并在销毁时等待进行中的图像写入。
75
-
76
- `agentPreset` 默认为 `ptc`,将工具和指引限制到绑定该 preset 的 Agent。提供方使用现有 `agent/created`、`agent-preset/selected` 事件及 Agent 拥有的作用域,也处理启用前已存在的 Agent。提供方卸载和 Agent 销毁都会释放这些注册。preset 定义可以晚于提供方注册;名称用于筛选已绑定的 Agent,在匹配的 Agent 出现前不提供工具。不使用 preset 的独立组合可设置 `agentPreset: false` 来全局注册。Host 仍拥有权限、本机连接和取消操作,preset 定义保持不变。
77
-
78
- [操作 schema](src/protocol.ts) 定义模型参数,并单独声明 Host 专用字段。原生实现在执行时检查目标身份、窗口几何、资源上限和操作系统访问条件。授权存储独立于原生协议保存持久许可。
79
-
80
-
81
- 根 Host 入口导出 `installCua`、`CuaConfig` 和供 Typert 发现的 `CuaAccess` 服务,`apply()` 只标记可选 Client 贡献。`/client` 通过现有模块加载器加载权限界面。Host 和 Client 使用独立编译项目,headless 导入不会加载 React、CSS 或浏览器注册。`/api` 提供应用、窗口 API 及其类型;`/bridge`、`/native-client` 和 `/protocol` 保留运行时和平台消费者。`/types` 仅导出生成 Remote 声明所需的四个命名类型,Client 使用包内类型。`/typert` 提供 Host 反射,`/remote` 提供浏览器描述和编解码,权限判断仍由 Host 执行。
82
-
83
- 可选浏览器插件挂载原生 provider 的权限 Remote,复用插件页的启用引导和配置插槽。四排使用条件始终可见,未加载的字段保留占位;查询期间和权限已允许时显示相同的权限管理说明,换行也不会改变内容。默认模式、执行方式、系统权限、应用列表和应用图标分别查询,结果返回后各自显示。应用名称和操作按钮不等待图标,图标位置保留空位。用户操作按顺序执行,不等待尚未完成的查询;卸载时等待操作和查询全部结束,再释放独立持有的 Remote 挂载。已知查询错误和只读设置提示在管理操作或重试期间保持可见,操作按钮禁用。查询错误只显示在对应部分,启用引导只等待系统权限结果。注入层独立于页面观察插件管理操作。组合包和组件行变更会暂停四项查询,并使进行中的结果失效;操作结束后即使页面已关闭,也会重新查询。已知错误保留至读取成功;卸载后的迟到结果会被丢弃。控制器直接接收生成的 `ctx.remote.cuaAccess`,在现有查询和操作流程中处理失败响应,并把查询结果投影到页面和设置弹窗;重新连接时刷新状态。进入页面、窗口聚焦或操作完成后读取当前授权存储。操作提示挂载到 shell overlay,关闭页面后仍可显示。provider 负责权限检查、持久授权和取消;浏览器不保存授权决定。
84
-
85
- 详情页通过现有 `configForms` 服务读取实际默认值(`selectedDefault ?? default`)。默认模式按钮仅写入 `selectedDefault`,沿用表单带版本检查的设置写入流程。执行方式一行调用 CUA 的 `ptcConfiguration()` 和 `enablePersistentPtc()`,根据已加载运行时的 `retainsState` 判断状态保留。启用持久化时保留正在使用的 Script 求值器,并通过配置编辑器同时写入 `executionMode` 和 `scriptPersistence`;其他模式选择保留状态的 REPL,并关闭 Script 状态保留。操作沿用普通 Loader 重载规则。权限检查和执行方式状态独立返回。设置仍在加载、只读或不可用时不能提交;写入失败时在设置旁显示错误,供用户重试。
86
- </details>
87
-
88
- -----
89
-
90
- <a id="further-exploration"></a>
91
- ## 进一步探索
92
-
93
- - [macOS 提供方](../cua-macos/README.zh.md)
94
- - [对象接口](src/types.ts)
95
- - [授权存储迁移](../../../docs/upgrade-guide/v0.2.1-rc.2/cua-consent-storage/guide.zh.md)
96
-
97
- -----
98
-
99
- <a id="model-experience"></a>
100
- ## 模型体验
101
-
102
- ### 已授权的应用操作
103
-
104
- #### 模型可见内容
105
-
106
- 平台提供方挂载共享的 `cua` 工具并提供操作指引。调用和观察使用同一套应用与窗口接口,进入正常 Session 历史。平台指引见 [macOS 提供方](../cua-macos/README.zh.md#model-experience)。
107
-
108
- #### Token 影响
109
-
110
- 操作结果和接纳的图像增加模型输入。保留的 JavaScript 对象不会序列化进提示词。调用方重复打印会重复观察文本。
111
-
112
- #### KV Cache 影响
113
-
114
- 结果追加到历史。保留对象不重写已有消息;更改挂载的工具或指引可能改变请求前缀。
115
-
116
- ## 已知限制与后续工作
117
-
118
- <a id="known-limitations-and-deferred-work"></a>
119
-
120
- - 会话决定没有自动保留期限,也不会随对话删除而自动清理。撤销会移除许可,但保留撤销代次,用于拒绝旧句柄和先前尚未完成的审批。
121
- - 当前原生执行使用 macOS 提供方。Windows 支持计划使用独立的提供方包和 C# helper,保留共享应用与窗口 API、授权、快照有效性和动作结果语义。实现须说明系统特有的限制,并区分交叉编译证据和 Windows 桌面验证。
122
- - 持久变量不会在一组连续操作期间独占应用。其他 Agent 和用户可能改变其状态。 悬停和观察不恢复先前的鼠标位置;[连续交互](../../../.agents/notes/implemented/architecture/2026-10-13-cua-continuous-hover.zh.md)不分配跨调用所有权。
123
- - 本包保留在 `experimental`,Windows 支持和平台验证完成后可迁至 `computer-use` 组。
124
-
125
- -----
126
-
127
- <a id="dev-note"></a>
128
- ### 开发备注
129
-
130
- 无。