@songtonyli/dsh-cli 0.1.90 → 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 (621) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/core/dist-cjs/submodules/client/index.js +26 -13
  4. package/node_modules/@aws-sdk/core/dist-cjs/submodules/httpAuthSchemes/index.js +6 -3
  5. package/node_modules/@aws-sdk/core/dist-cjs/submodules/protocols/index.js +51 -1
  6. package/node_modules/@aws-sdk/core/dist-cjs/submodules/util/index.js +2 -1
  7. package/node_modules/@aws-sdk/core/dist-es/submodules/client/middleware-host-header/hostHeaderMiddleware.js +4 -2
  8. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-endpoints/lib/aws/parseArn.js +4 -2
  9. package/node_modules/@aws-sdk/core/dist-es/submodules/client/util-user-agent-browser/defaultUserAgent.js +18 -9
  10. package/node_modules/@aws-sdk/core/dist-es/submodules/httpAuthSchemes/aws_sdk/NODE_AUTH_SCHEME_PREFERENCE_OPTIONS.js +6 -3
  11. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/index.js +1 -0
  12. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/AwsSmithyRpcV2JsonProtocol.js +51 -0
  13. package/node_modules/@aws-sdk/core/dist-es/submodules/util/util-arn-parser/arn.js +2 -1
  14. package/node_modules/@aws-sdk/core/package.json +2 -2
  15. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  16. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  18. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  19. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  20. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  21. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  22. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  23. package/node_modules/@aws-sdk/middleware-eventstream/dist-cjs/index.js +4 -2
  24. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHandlingMiddleware.js +2 -1
  25. package/node_modules/@aws-sdk/middleware-eventstream/dist-es/eventStreamHeaderMiddleware.js +2 -1
  26. package/node_modules/@aws-sdk/middleware-eventstream/package.json +1 -1
  27. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  28. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  29. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  30. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  31. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  32. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  33. package/node_modules/@aws-sdk/nested-clients/package.json +3 -3
  34. package/node_modules/@aws-sdk/signature-v4-multi-region/package.json +1 -1
  35. package/node_modules/@aws-sdk/token-providers/package.json +3 -3
  36. package/node_modules/@aws-sdk/xml-builder/package.json +1 -1
  37. package/node_modules/@deepseek-ai/cordis/README.md +6 -2
  38. package/node_modules/@deepseek-ai/cordis/lib/index.js +955 -909
  39. package/node_modules/@deepseek-ai/cordis/src/context.ts +1 -1
  40. package/node_modules/@deepseek-ai/cordis/src/events.ts +81 -62
  41. package/node_modules/@deepseek-ai/cordis/src/fiber.ts +95 -58
  42. package/node_modules/@deepseek-ai/cordis/src/logger.ts +10 -5
  43. package/node_modules/@deepseek-ai/cordis/src/reflect.ts +37 -19
  44. package/node_modules/@deepseek-ai/cordis/src/utils.ts +28 -21
  45. package/node_modules/@deepseek-ai/cordis-plugin-include/lib/index.js +2 -2
  46. package/node_modules/@deepseek-ai/cordis-plugin-include/src/index.ts +2 -6
  47. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  48. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +40 -39
  49. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +13 -13
  50. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/group.ts +1 -3
  51. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/isolate.ts +10 -7
  52. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +17 -20
  53. package/node_modules/@deepseek-ai/dsh/package.json +0 -1
  54. package/node_modules/@deepseek-ai/dsh-action-cards/lib/typert.host.js +1 -1
  55. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +5 -3
  56. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +13 -0
  57. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +2 -2
  58. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.host.js +1 -1
  59. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +2 -2
  60. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.browser.js +1 -1
  61. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.node.js +1 -1
  62. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +1 -1
  63. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +7464 -2004
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +77 -92
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +47 -3
  66. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +1 -1
  67. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +8 -19
  68. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +3 -0
  69. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +1 -1
  70. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  71. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +3 -1
  72. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +3 -1
  73. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +37 -15
  75. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +4 -4
  76. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +3 -1
  77. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +3 -1
  78. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +19 -6
  79. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +4 -2
  80. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +10 -10
  81. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +8 -2
  82. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +8 -2
  83. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +146 -30
  84. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +4 -2
  85. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  86. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +295 -274
  89. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.i18n.yaml +40 -0
  90. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.md +100 -0
  91. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/README.zh.md +100 -0
  92. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/client.js +1445 -0
  93. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/lib/index.js +6 -0
  94. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/de.json +5 -0
  95. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/en.json +5 -0
  96. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/es.json +5 -0
  97. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/fr.json +5 -0
  98. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ja.json +5 -0
  99. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/pt.json +5 -0
  100. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/ru.json +5 -0
  101. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/locale/zh.json +5 -0
  102. package/node_modules/@deepseek-ai/dsh-client-ui-context-menu/package.json +61 -0
  103. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +4 -4
  104. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +4 -0
  105. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +4 -0
  106. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +119 -55
  107. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +4 -2
  108. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  109. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +2 -0
  110. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +2 -0
  111. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +19 -7
  112. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +4 -2
  113. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.i18n.yaml +40 -0
  114. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.md +92 -0
  115. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/README.zh.md +92 -0
  116. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/client.js +1875 -0
  117. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/lib/index.js +6 -0
  118. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/de.json +5 -0
  119. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/en.json +5 -0
  120. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/es.json +5 -0
  121. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/fr.json +5 -0
  122. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ja.json +5 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/pt.json +5 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/ru.json +5 -0
  125. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/locale/zh.json +5 -0
  126. package/node_modules/@deepseek-ai/dsh-client-ui-file-actions/package.json +65 -0
  127. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +6 -6
  128. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +9 -3
  129. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +9 -3
  130. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +91 -26
  131. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  132. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +8 -0
  133. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +8 -0
  134. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +431 -2
  135. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +13 -2
  136. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +8 -8
  137. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +6 -3
  138. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +6 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +111 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +2 -2
  141. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +1 -1
  142. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +1 -1
  143. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +2 -1
  144. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  145. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  146. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  147. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +28 -5
  148. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +4 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +19 -19
  150. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +25 -39
  151. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +23 -37
  152. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +10359 -3743
  153. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +1 -0
  154. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  155. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +1 -1
  157. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +76 -58
  158. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +6 -6
  159. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +5 -1
  160. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +5 -1
  161. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +46 -18
  162. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +8 -8
  163. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +7 -5
  164. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +7 -5
  165. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +349 -251
  166. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +5 -2
  167. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +20 -14
  168. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +44 -11
  169. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +44 -11
  170. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +1571 -472
  171. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +5 -3
  172. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +12 -12
  173. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +15 -7
  174. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +15 -7
  175. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +435 -52
  176. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +4 -2
  177. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +8 -0
  178. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  179. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +1 -1
  180. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +1 -1
  181. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  182. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +4 -4
  183. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +5 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +5 -1
  185. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +195 -59
  186. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +5 -2
  187. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +4 -4
  188. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +6 -2
  189. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +6 -2
  190. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +127 -27
  191. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +15 -15
  192. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +16 -8
  193. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +17 -8
  194. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +523 -480
  195. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +4 -2
  196. package/node_modules/@deepseek-ai/dsh-commands/README.i18n.yaml +4 -4
  197. package/node_modules/@deepseek-ai/dsh-commands/README.md +3 -0
  198. package/node_modules/@deepseek-ai/dsh-commands/README.zh.md +3 -0
  199. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +1 -1
  200. package/node_modules/@deepseek-ai/dsh-commands/lib/types/builtin.js +39 -0
  201. package/node_modules/@deepseek-ai/dsh-commands/package.json +5 -1
  202. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +4 -10
  203. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +2 -0
  204. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +2 -0
  205. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +233 -56
  206. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +2 -2
  207. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  208. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +2 -0
  209. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +2 -0
  210. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +16 -19
  211. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +11 -22
  212. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +11 -22
  213. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +2 -0
  214. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/lib/client.js +1 -1
  215. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.i18n.yaml +12 -12
  216. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.md +18 -10
  217. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/README.zh.md +20 -12
  218. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/client.js +3338 -297
  219. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/index.js +159 -52
  220. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.host.js +298 -18
  221. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-forge/lib/typert.remote-client.js +267 -13
  222. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.i18n.yaml +2 -2
  223. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.md +5 -1
  224. package/node_modules/@deepseek-ai/dsh-experimental-forge/README.zh.md +5 -1
  225. package/node_modules/@deepseek-ai/dsh-experimental-forge/lib/index.js +48 -6
  226. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.i18n.yaml +8 -8
  227. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.md +9 -5
  228. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/README.zh.md +9 -5
  229. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/lib/index.js +301 -31
  230. package/node_modules/@deepseek-ai/dsh-experimental-forge-github/package.json +1 -0
  231. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/client.js +5 -58
  232. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/lib/index.js +5 -2
  233. package/node_modules/@deepseek-ai/dsh-experimental-liveshare/package.json +1 -1
  234. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/lib/client.js +77 -92
  235. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/index.js +2 -2
  236. package/node_modules/@deepseek-ai/dsh-experimental-translator/lib/types/deepseek.js +2 -2
  237. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +12 -12
  238. package/node_modules/@deepseek-ai/dsh-fs/README.md +15 -7
  239. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +15 -7
  240. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +21 -2
  241. package/node_modules/@deepseek-ai/dsh-fs/package.json +3 -0
  242. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +4 -4
  243. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +4 -2
  244. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +4 -2
  245. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +156 -30
  246. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +2 -1
  247. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.i18n.yaml +6 -6
  248. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.md +4 -2
  249. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/README.zh.md +4 -2
  250. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/lib/index.js +12 -4
  251. package/node_modules/@deepseek-ai/dsh-fs-patch/LICENSE +235 -0
  252. package/node_modules/@deepseek-ai/dsh-fs-patch/README.i18n.yaml +40 -0
  253. package/node_modules/@deepseek-ai/dsh-fs-patch/README.md +112 -0
  254. package/node_modules/@deepseek-ai/dsh-fs-patch/README.zh.md +112 -0
  255. package/node_modules/@deepseek-ai/dsh-fs-patch/lib/index.js +275 -0
  256. package/node_modules/@deepseek-ai/dsh-fs-patch/package.json +35 -0
  257. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +6 -6
  258. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +4 -2
  259. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +4 -2
  260. package/node_modules/@deepseek-ai/dsh-fs-sandbox/lib/index.js +24 -1
  261. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +1 -1
  262. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +4 -3
  263. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  264. package/node_modules/@deepseek-ai/dsh-llm/README.md +2 -0
  265. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +2 -0
  266. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +9 -1
  267. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +4 -3
  268. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +5 -2
  269. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +7 -0
  270. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +7 -0
  271. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +27 -11
  272. package/node_modules/@deepseek-ai/dsh-official-bundles/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-official-bundles/README.md +1 -1
  274. package/node_modules/@deepseek-ai/dsh-official-bundles/README.zh.md +1 -1
  275. package/node_modules/@deepseek-ai/dsh-official-bundles/lib/index.js +86 -52
  276. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +1 -1
  277. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  278. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +4 -4
  279. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +4 -4
  280. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +32 -12
  281. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +31 -31
  282. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +27 -27
  283. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/github-connection.js +13 -3
  284. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +14 -2
  285. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +1 -1
  286. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +2 -0
  287. package/node_modules/@deepseek-ai/dsh-plugin-recommendations/lib/typert.host.js +1 -1
  288. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +72 -39
  289. package/node_modules/@deepseek-ai/dsh-schedule/README.md +180 -56
  290. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +185 -61
  291. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +1270 -992
  292. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.host.js +1842 -274
  293. package/node_modules/@deepseek-ai/dsh-schedule/lib/typert.remote-client.js +1712 -194
  294. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/delivery-history.js +7 -20
  295. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/domain.js +199 -655
  296. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +452 -204
  297. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +389 -70
  298. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/storage.js +85 -16
  299. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/types.js +1 -1
  300. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/update.js +72 -144
  301. package/node_modules/@deepseek-ai/dsh-schedule/package.json +5 -2
  302. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +12 -12
  303. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +7 -4
  304. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +7 -4
  305. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  306. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.i18n.yaml +52 -4
  307. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.md +77 -1
  308. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/README.zh.md +77 -1
  309. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +306 -2
  310. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +15 -0
  311. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.i18n.yaml +4 -4
  312. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.md +10 -2
  313. package/node_modules/@deepseek-ai/dsh-sdk-protocol/README.zh.md +10 -2
  314. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +2 -0
  315. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.i18n.yaml +9 -6
  316. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.md +20 -1
  317. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/README.zh.md +20 -1
  318. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +91 -57
  319. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +100 -66
  320. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +947 -917
  321. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +1 -1
  322. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.i18n.yaml +2 -2
  323. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.md +1 -1
  324. package/node_modules/@deepseek-ai/dsh-session-title-llm/README.zh.md +1 -1
  325. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +2 -2
  326. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +2 -2
  327. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +1 -1
  328. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +2 -0
  329. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +260 -92
  330. package/node_modules/@deepseek-ai/dsh-tool-fs/README.i18n.yaml +38 -20
  331. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +63 -5
  332. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +63 -5
  333. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +784 -27
  334. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +4 -1
  335. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.i18n.yaml +50 -32
  336. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.md +47 -20
  337. package/node_modules/@deepseek-ai/dsh-tool-schedule/README.zh.md +47 -20
  338. package/node_modules/@deepseek-ai/dsh-tool-schedule/lib/index.js +477 -445
  339. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +7 -2
  340. package/node_modules/@deepseek-ai/dsh-user-questions/lib/typert.host.js +1 -1
  341. package/node_modules/@deepseek-ai/dsh-util-time/README.i18n.yaml +10 -10
  342. package/node_modules/@deepseek-ai/dsh-util-time/README.md +11 -7
  343. package/node_modules/@deepseek-ai/dsh-util-time/README.zh.md +11 -7
  344. package/node_modules/@deepseek-ai/dsh-util-time/lib/index.js +1020 -3
  345. package/node_modules/@deepseek-ai/dsh-util-time/package.json +4 -2
  346. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  347. package/node_modules/@deepseek-ai/dsh-util-values/README.md +1 -1
  348. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +1 -1
  349. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +77 -92
  350. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +5 -1
  351. package/node_modules/@deepseek-ai/dsh-web-app/package.json +3 -1
  352. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
  353. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
  354. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
  355. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BCbHmUSs.js +197 -0
  356. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BUDGJY4R.css +1 -0
  357. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  358. package/node_modules/@deepseek-ai/dsh-workflow-ptc/lib/index.js +1 -1
  359. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +4 -4
  360. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +3 -1
  361. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +4 -2
  362. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +5 -0
  363. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +5 -0
  364. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +4 -1
  365. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.cjs +16917 -0
  366. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_attributes.mjs +15193 -0
  367. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.cjs +325 -0
  368. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_events.mjs +295 -0
  369. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.cjs +4642 -0
  370. package/node_modules/@opentelemetry/semantic-conventions/dist/experimental_metrics.mjs +4155 -0
  371. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.cjs +2495 -0
  372. package/node_modules/@opentelemetry/semantic-conventions/dist/index-incubating.mjs +7 -0
  373. package/node_modules/@opentelemetry/semantic-conventions/dist/index.cjs +662 -0
  374. package/node_modules/@opentelemetry/semantic-conventions/dist/index.mjs +6 -0
  375. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.cjs +20 -0
  376. package/node_modules/@opentelemetry/semantic-conventions/dist/internal/utils.mjs +20 -0
  377. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.cjs +1326 -0
  378. package/node_modules/@opentelemetry/semantic-conventions/dist/resource/SemanticResourceAttributes.mjs +1188 -0
  379. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.cjs +1947 -0
  380. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_attributes.mjs +1756 -0
  381. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.cjs +9 -0
  382. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_events.mjs +9 -0
  383. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.cjs +362 -0
  384. package/node_modules/@opentelemetry/semantic-conventions/dist/stable_metrics.mjs +312 -0
  385. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.cjs +2508 -0
  386. package/node_modules/@opentelemetry/semantic-conventions/dist/trace/SemanticAttributes.mjs +2236 -0
  387. package/node_modules/@opentelemetry/semantic-conventions/package.json +22 -35
  388. package/node_modules/@smithy/core/dist-cjs/index.js +4 -2
  389. package/node_modules/@smithy/core/dist-cjs/submodules/cbor/index.js +32 -16
  390. package/node_modules/@smithy/core/dist-cjs/submodules/client/index.js +26 -13
  391. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.browser.js +8 -4
  392. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.js +16 -8
  393. package/node_modules/@smithy/core/dist-cjs/submodules/config/index.native.js +8 -4
  394. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +2 -1
  395. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +10 -5
  396. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +18 -9
  397. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +18 -9
  398. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +42 -24
  399. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.browser.js +20 -10
  400. package/node_modules/@smithy/core/dist-cjs/submodules/retry/index.js +24 -12
  401. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.browser.js +13 -4
  402. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.js +7 -1
  403. package/node_modules/@smithy/core/dist-cjs/submodules/serde/index.native.js +13 -4
  404. package/node_modules/@smithy/core/dist-cjs/submodules/transport/index.js +6 -3
  405. package/node_modules/@smithy/core/dist-es/legacy-root-exports/util-identity-and-auth/DefaultIdentityProviderConfig.js +2 -1
  406. package/node_modules/@smithy/core/dist-es/normalizeProvider.js +2 -1
  407. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeDeserializer.js +8 -4
  408. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v1/CborShapeSerializer.js +6 -3
  409. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeDeserializer2.js +12 -6
  410. package/node_modules/@smithy/core/dist-es/submodules/cbor/codec-v2/CborShapeSerializer2.js +4 -2
  411. package/node_modules/@smithy/core/dist-es/submodules/cbor/parseCborBody.js +2 -1
  412. package/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js +10 -5
  413. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/create-aggregated-client.js +2 -1
  414. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/exceptions.js +4 -2
  415. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/extensions/checksum.js +2 -1
  416. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/get-value-from-text-node.js +2 -1
  417. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/object-mapping.js +4 -2
  418. package/node_modules/@smithy/core/dist-es/submodules/client/smithy-client/serde-json.js +2 -1
  419. package/node_modules/@smithy/core/dist-es/submodules/config/shared-ini-file-loader/getHomeDir.js +8 -4
  420. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/booleanSelector.js +6 -3
  421. package/node_modules/@smithy/core/dist-es/submodules/config/util-config-provider/numberSelector.js +2 -1
  422. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +8 -4
  423. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/resolveEndpoint.js +2 -1
  424. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +6 -3
  425. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/HeaderMarshaller.js +2 -1
  426. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/Int64.js +2 -1
  427. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-codec/SmithyMessageDecoderStream.js +2 -1
  428. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde/utils.js +2 -1
  429. package/node_modules/@smithy/core/dist-es/submodules/event-streams/eventstream-serde-universal/getUnmarshalledStream.js +4 -2
  430. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpBindingProtocol.js +8 -4
  431. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +4 -2
  432. package/node_modules/@smithy/core/dist-es/submodules/protocols/RpcProtocol.js +2 -1
  433. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeDeserializer.js +7 -5
  434. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v1/JsonShapeSerializer.js +7 -5
  435. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeDeserializer2.js +7 -5
  436. package/node_modules/@smithy/core/dist-es/submodules/protocols/json/codec-v2/JsonShapeSerializer2.js +6 -3
  437. package/node_modules/@smithy/core/dist-es/submodules/protocols/protocol-http/extensions/httpExtensionConfiguration.js +3 -0
  438. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/configurations.js +4 -2
  439. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/parseRetryAfterHeader.js +2 -1
  440. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retry-pre-sra-deprecated/StandardRetryStrategy.js +6 -3
  441. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/retryMiddleware.js +6 -3
  442. package/node_modules/@smithy/core/dist-es/submodules/retry/middleware-retry/util.js +6 -3
  443. package/node_modules/@smithy/core/dist-es/submodules/serde/index.browser.js +1 -0
  444. package/node_modules/@smithy/core/dist-es/submodules/serde/index.js +1 -0
  445. package/node_modules/@smithy/core/dist-es/submodules/serde/index.native.js +1 -0
  446. package/node_modules/@smithy/core/dist-es/submodules/serde/parse-utils.js +2 -1
  447. package/node_modules/@smithy/core/dist-es/submodules/serde/util-body-length/calculateBodyLength.browser.js +6 -3
  448. package/node_modules/@smithy/core/dist-es/submodules/transport/httpResponse.js +2 -1
  449. package/node_modules/@smithy/core/dist-es/submodules/transport/normalizeProvider.js +2 -1
  450. package/node_modules/@smithy/core/dist-es/submodules/transport/toEndpointV1.js +2 -1
  451. package/node_modules/@smithy/core/package.json +1 -1
  452. package/node_modules/@smithy/node-http-handler/dist-cjs/index.js +19 -7
  453. package/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +2 -1
  454. package/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +11 -6
  455. package/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +6 -0
  456. package/node_modules/@smithy/node-http-handler/package.json +2 -2
  457. package/node_modules/@smithy/signature-v4/dist-cjs/index.js +23 -11
  458. package/node_modules/@smithy/signature-v4/dist-es/HeaderFormatter.js +4 -2
  459. package/node_modules/@smithy/signature-v4/dist-es/SignatureV4Base.js +4 -2
  460. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +5 -1
  461. package/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +2 -1
  462. package/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +2 -1
  463. package/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +6 -3
  464. package/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +2 -1
  465. package/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +2 -1
  466. package/node_modules/@smithy/signature-v4/package.json +2 -2
  467. package/node_modules/@types/node/README.md +1 -1
  468. package/node_modules/@types/node/package.json +2 -2
  469. package/node_modules/encodeurl/README.md +14 -0
  470. package/node_modules/encodeurl/index.js +5 -10
  471. package/node_modules/encodeurl/package.json +7 -3
  472. package/node_modules/hast-util-to-html/lib/handle/comment.js +6 -1
  473. package/node_modules/hast-util-to-html/lib/handle/doctype.js +1 -1
  474. package/node_modules/hast-util-to-html/lib/handle/element.js +33 -9
  475. package/node_modules/hast-util-to-html/lib/handle/index.js +1 -1
  476. package/node_modules/hast-util-to-html/lib/handle/raw.js +1 -1
  477. package/node_modules/hast-util-to-html/lib/handle/root.js +1 -1
  478. package/node_modules/hast-util-to-html/lib/handle/text.js +1 -1
  479. package/node_modules/hast-util-to-html/lib/index.js +9 -4
  480. package/node_modules/hast-util-to-html/lib/omission/closing.js +7 -5
  481. package/node_modules/hast-util-to-html/lib/omission/omission.js +0 -1
  482. package/node_modules/hast-util-to-html/lib/omission/opening.js +4 -2
  483. package/node_modules/hast-util-to-html/lib/omission/util/siblings.js +3 -0
  484. package/node_modules/hast-util-to-html/package.json +5 -23
  485. package/node_modules/hast-util-to-html/readme.md +3 -2
  486. package/node_modules/jose/dist/webapi/jwks/remote.js +1 -1
  487. package/node_modules/jose/package.json +1 -1
  488. package/node_modules/rrule/LICENCE +65 -0
  489. package/node_modules/rrule/README.md +837 -0
  490. package/node_modules/rrule/dist/es5/rrule.js +3803 -0
  491. package/node_modules/rrule/dist/es5/rrule.min.js +2 -0
  492. package/node_modules/rrule/dist/esm/cache.js +95 -0
  493. package/node_modules/rrule/dist/esm/callbackiterresult.js +24 -0
  494. package/node_modules/rrule/dist/esm/datetime.js +186 -0
  495. package/node_modules/rrule/dist/esm/dateutil.js +161 -0
  496. package/node_modules/rrule/dist/esm/datewithzone.js +36 -0
  497. package/node_modules/rrule/dist/esm/helpers.js +118 -0
  498. package/node_modules/rrule/dist/esm/index.js +22 -0
  499. package/node_modules/rrule/dist/esm/iter/index.js +138 -0
  500. package/node_modules/rrule/dist/esm/iter/poslist.js +42 -0
  501. package/node_modules/rrule/dist/esm/iterinfo/easter.js +21 -0
  502. package/node_modules/rrule/dist/esm/iterinfo/index.js +188 -0
  503. package/node_modules/rrule/dist/esm/iterinfo/monthinfo.js +51 -0
  504. package/node_modules/rrule/dist/esm/iterinfo/yearinfo.js +128 -0
  505. package/node_modules/rrule/dist/esm/iterresult.js +88 -0
  506. package/node_modules/rrule/dist/esm/iterset.js +63 -0
  507. package/node_modules/rrule/dist/esm/masks.js +30 -0
  508. package/node_modules/rrule/dist/esm/nlp/i18n.js +74 -0
  509. package/node_modules/rrule/dist/esm/nlp/index.js +122 -0
  510. package/node_modules/rrule/dist/esm/nlp/parsetext.js +391 -0
  511. package/node_modules/rrule/dist/esm/nlp/totext.js +395 -0
  512. package/node_modules/rrule/dist/esm/optionstostring.js +98 -0
  513. package/node_modules/rrule/dist/esm/parseoptions.js +201 -0
  514. package/node_modules/rrule/dist/esm/parsestring.js +128 -0
  515. package/node_modules/rrule/dist/esm/rrule.js +232 -0
  516. package/node_modules/rrule/dist/esm/rruleset.js +182 -0
  517. package/node_modules/rrule/dist/esm/rrulestr.js +188 -0
  518. package/node_modules/rrule/dist/esm/types.js +14 -0
  519. package/node_modules/rrule/dist/esm/weekday.js +45 -0
  520. package/node_modules/rrule/package.json +79 -0
  521. package/package.json +32 -31
  522. package/node_modules/@deepseek-ai/dsh-computer-use/README.i18n.yaml +0 -37
  523. package/node_modules/@deepseek-ai/dsh-computer-use/README.md +0 -90
  524. package/node_modules/@deepseek-ai/dsh-computer-use/README.zh.md +0 -90
  525. package/node_modules/@deepseek-ai/dsh-computer-use/lib/index.js +0 -35
  526. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/brand.js +0 -10
  527. package/node_modules/@deepseek-ai/dsh-computer-use/lib/types/index.js +0 -36
  528. package/node_modules/@deepseek-ai/dsh-computer-use/locale/de.json +0 -6
  529. package/node_modules/@deepseek-ai/dsh-computer-use/locale/en.json +0 -6
  530. package/node_modules/@deepseek-ai/dsh-computer-use/locale/es.json +0 -6
  531. package/node_modules/@deepseek-ai/dsh-computer-use/locale/fr.json +0 -6
  532. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ja.json +0 -6
  533. package/node_modules/@deepseek-ai/dsh-computer-use/locale/pt.json +0 -6
  534. package/node_modules/@deepseek-ai/dsh-computer-use/locale/ru.json +0 -6
  535. package/node_modules/@deepseek-ai/dsh-computer-use/locale/zh.json +0 -6
  536. package/node_modules/@deepseek-ai/dsh-computer-use/package.json +0 -44
  537. package/node_modules/@deepseek-ai/dsh-cua/README.i18n.yaml +0 -49
  538. package/node_modules/@deepseek-ai/dsh-cua/README.md +0 -130
  539. package/node_modules/@deepseek-ai/dsh-cua/README.zh.md +0 -130
  540. package/node_modules/@deepseek-ai/dsh-cua/lib/api.js +0 -597
  541. package/node_modules/@deepseek-ai/dsh-cua/lib/bridge.js +0 -611
  542. package/node_modules/@deepseek-ai/dsh-cua/lib/client.js +0 -1758
  543. package/node_modules/@deepseek-ai/dsh-cua/lib/index.js +0 -1916
  544. package/node_modules/@deepseek-ai/dsh-cua/lib/native-client.js +0 -285
  545. package/node_modules/@deepseek-ai/dsh-cua/lib/protocol.js +0 -305
  546. package/node_modules/@deepseek-ai/dsh-cua/lib/remote-types.js +0 -1
  547. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.host.js +0 -416
  548. package/node_modules/@deepseek-ai/dsh-cua/lib/typert.remote-client.js +0 -301
  549. package/node_modules/@deepseek-ai/dsh-cua/locale/de.json +0 -6
  550. package/node_modules/@deepseek-ai/dsh-cua/locale/en.json +0 -6
  551. package/node_modules/@deepseek-ai/dsh-cua/locale/es.json +0 -6
  552. package/node_modules/@deepseek-ai/dsh-cua/locale/fr.json +0 -6
  553. package/node_modules/@deepseek-ai/dsh-cua/locale/ja.json +0 -6
  554. package/node_modules/@deepseek-ai/dsh-cua/locale/pt.json +0 -6
  555. package/node_modules/@deepseek-ai/dsh-cua/locale/ru.json +0 -6
  556. package/node_modules/@deepseek-ai/dsh-cua/locale/zh.json +0 -6
  557. package/node_modules/@deepseek-ai/dsh-cua/package.json +0 -151
  558. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.i18n.yaml +0 -46
  559. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.md +0 -94
  560. package/node_modules/@deepseek-ai/dsh-cua-bundle/README.zh.md +0 -94
  561. package/node_modules/@deepseek-ai/dsh-cua-bundle/cordis.patch.yml +0 -10
  562. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.md +0 -1
  563. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/DETAIL.zh.md +0 -1
  564. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.svg +0 -33
  565. package/node_modules/@deepseek-ai/dsh-cua-bundle/docs/preview.zh.svg +0 -33
  566. package/node_modules/@deepseek-ai/dsh-cua-bundle/icon.svg +0 -35
  567. package/node_modules/@deepseek-ai/dsh-cua-bundle/lib/index.js +0 -1
  568. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/de.json +0 -7
  569. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/en.json +0 -7
  570. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/es.json +0 -7
  571. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/fr.json +0 -7
  572. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ja.json +0 -7
  573. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/pt.json +0 -7
  574. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/ru.json +0 -7
  575. package/node_modules/@deepseek-ai/dsh-cua-bundle/locale/zh.json +0 -7
  576. package/node_modules/@deepseek-ai/dsh-cua-bundle/package.json +0 -58
  577. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index--TtJvO-i.js +0 -197
  578. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Jtzf36XE.css +0 -1
  579. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_attributes.js +0 -14991
  580. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_events.js +0 -298
  581. package/node_modules/@opentelemetry/semantic-conventions/build/esm/experimental_metrics.js +0 -4060
  582. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index-incubating.js +0 -13
  583. package/node_modules/@opentelemetry/semantic-conventions/build/esm/index.js +0 -16
  584. package/node_modules/@opentelemetry/semantic-conventions/build/esm/internal/utils.js +0 -23
  585. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/SemanticResourceAttributes.js +0 -1250
  586. package/node_modules/@opentelemetry/semantic-conventions/build/esm/resource/index.js +0 -10
  587. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_attributes.js +0 -1733
  588. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_events.js +0 -12
  589. package/node_modules/@opentelemetry/semantic-conventions/build/esm/stable_metrics.js +0 -315
  590. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/SemanticAttributes.js +0 -2360
  591. package/node_modules/@opentelemetry/semantic-conventions/build/esm/trace/index.js +0 -10
  592. package/node_modules/@opentelemetry/semantic-conventions/build/esm/version.js +0 -7
  593. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_attributes.js +0 -14991
  594. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_events.js +0 -298
  595. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/experimental_metrics.js +0 -4060
  596. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index-incubating.js +0 -13
  597. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/index.js +0 -16
  598. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/internal/utils.js +0 -23
  599. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/SemanticResourceAttributes.js +0 -1250
  600. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/resource/index.js +0 -10
  601. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_attributes.js +0 -1733
  602. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_events.js +0 -12
  603. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/stable_metrics.js +0 -315
  604. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/SemanticAttributes.js +0 -2360
  605. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/trace/index.js +0 -10
  606. package/node_modules/@opentelemetry/semantic-conventions/build/esnext/version.js +0 -7
  607. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_attributes.js +0 -15049
  608. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_events.js +0 -301
  609. package/node_modules/@opentelemetry/semantic-conventions/build/src/experimental_metrics.js +0 -4072
  610. package/node_modules/@opentelemetry/semantic-conventions/build/src/index-incubating.js +0 -29
  611. package/node_modules/@opentelemetry/semantic-conventions/build/src/index.js +0 -32
  612. package/node_modules/@opentelemetry/semantic-conventions/build/src/internal/utils.js +0 -27
  613. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/SemanticResourceAttributes.js +0 -1255
  614. package/node_modules/@opentelemetry/semantic-conventions/build/src/resource/index.js +0 -26
  615. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_attributes.js +0 -1759
  616. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_events.js +0 -15
  617. package/node_modules/@opentelemetry/semantic-conventions/build/src/stable_metrics.js +0 -319
  618. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/SemanticAttributes.js +0 -2368
  619. package/node_modules/@opentelemetry/semantic-conventions/build/src/trace/index.js +0 -26
  620. package/node_modules/@opentelemetry/semantic-conventions/build/src/version.js +0 -10
  621. /package/node_modules/@smithy/core/dist-es/submodules/{protocols → serde}/writeKey.js +0 -0
@@ -114,14 +114,22 @@ export namespace Property {
114
114
 
115
115
  /** Concrete service implementation record stored in the root reflect service. */
116
116
  export interface Impl {
117
+ /** Unique identity of this provision. */
118
+ uid: number
117
119
  /** The service name. */
118
120
  name: string
119
- /** The fiber that provided the service (owns its lifetime). */
120
- fiber: Fiber
121
+ /** The providing context, including its service isolation. */
122
+ ctx: Context
123
+ /** Fibers retaining this implementation until their teardown finishes. */
124
+ dependents: Set<Fiber>
125
+ /** Wake a provision disposer after its final dependent unloads. */
126
+ release?: () => void
121
127
  /** The current service value. */
122
128
  value?: any
123
129
  /** Optional availability predicate consulted before dependents may load. */
124
130
  check?: () => boolean
131
+ // Actual isolation symbol; may differ from the provider context after a blocked move.
132
+ isolate: symbol
125
133
  }
126
134
 
127
135
  /**
@@ -149,12 +157,17 @@ export class ReflectService {
149
157
  return def.get.call(ctx, ctx[symbols.receiver], error)
150
158
  }
151
159
 
152
- if (!ctx.fiber.runtime) return ctx.reflect.get(prop, false)
160
+ // a fiber-less def site cannot declare `inject` at all, so it keeps the unchecked root access.
161
+ const defSite = (ctx[symbols.shadow] as Context | undefined) ?? ctx
162
+ if (!defSite.fiber.runtime) return ctx.reflect.get(prop, false)
153
163
  return ctx.events.waterfall('internal/get', ctx, prop, error, () => {
154
- const key = target[symbols.isolate][prop]
155
- let fiber = (ctx[symbols.shadow] as Context ?? ctx).fiber
164
+ const key = defSite[symbols.isolate][prop]
165
+ let fiber = defSite.fiber
156
166
  while (true) {
157
- const impl = fiber.store?.[prop]
167
+ let impl = fiber.committed?.[prop]
168
+ for (const provision of fiber.provisions) {
169
+ if (provision.name === prop && provision.ctx[symbols.isolate][prop] === key) impl = provision
170
+ }
158
171
  if (impl) return getTraceable(ctx, impl.value)
159
172
  if (prop in fiber.inject) {
160
173
  error.message = `cannot get required service "${prop}" in inactive context`
@@ -209,6 +222,7 @@ export class ReflectService {
209
222
  public store: Dict<Impl, symbol> = Object.create(null)
210
223
  /** Declared context properties (services and accessors), by name. */
211
224
  public props: Dict<Property> = Object.create(null)
225
+ private _implCounter = 0
212
226
 
213
227
  constructor(public ctx: Context) {
214
228
  defineProperty(this, symbols.tracker, {
@@ -238,7 +252,7 @@ export class ReflectService {
238
252
  const key = this.ctx[symbols.isolate][name]
239
253
  const impl = key && this.store[key]
240
254
  if (!impl) return
241
- if (strict && impl.fiber.state !== FiberState.ACTIVE) return
255
+ if (strict && impl.ctx.fiber.state !== FiberState.ACTIVE) return
242
256
  return impl
243
257
  }
244
258
 
@@ -257,7 +271,7 @@ export class ReflectService {
257
271
  if (!impl) {
258
272
  throw new Error(`cannot set property "${name}" without provide`)
259
273
  }
260
- if (impl.fiber !== this.ctx.fiber) {
274
+ if (impl.ctx.fiber !== this.ctx.fiber) {
261
275
  throw new Error(`cannot set property "${name}" in multiple fibers`)
262
276
  }
263
277
  impl.value = value
@@ -285,21 +299,29 @@ export class ReflectService {
285
299
 
286
300
  this.ctx.root[symbols.isolate][name] ??= Symbol(name)
287
301
  const key = this.ctx[symbols.isolate][name]
288
- const impl: Impl = { name, value, fiber: this.ctx.fiber, check }
302
+ const impl: Impl = { uid: ++this._implCounter, name, value, ctx: this.ctx, check, isolate: key, dependents: new Set() }
289
303
  if (this.store[key]) {
290
- throw new Error(`service "${name}" has been registered at <${this.store[key].fiber.name}>`)
304
+ throw new Error(`service "${name}" has been registered at <${this.store[key].ctx.fiber.name}>`)
291
305
  }
292
306
  this.store[key] = impl
293
- this.ctx.fiber.store![name] = impl
307
+ this.ctx.fiber.provisions.add(impl)
294
308
  if (this.ctx.fiber.state === FiberState.ACTIVE) {
295
309
  this.notify([name])
296
310
  }
297
311
  return async () => {
298
- delete this.store[key]
299
- const fibers = this.notify([name])
300
- await Promise.allSettled(fibers.map(fiber => fiber.await()))
312
+ if (this.store[impl.isolate] === impl) delete this.store[impl.isolate]
313
+ this.ctx.isolate(name, impl.isolate).reflect.notify([name])
314
+ // Retired bindings cannot gain new dependents. Wait only for their
315
+ // cleanup, even if a fiber has left the registry or starts a new load.
316
+ // Yield even without direct dependents so child cleanup can still
317
+ // access the inherited service before its provision is removed.
318
+ await new Promise<void>((resolve) => {
319
+ impl.release = resolve
320
+ if (!impl.dependents.size) resolve()
321
+ })
322
+ impl.release = undefined
301
323
  // ensure self access before dependencies cleanup
302
- delete this.ctx.fiber.store![name]
324
+ this.ctx.fiber.provisions.delete(impl)
303
325
  }
304
326
  }, `ctx.provide(${JSON.stringify(name)})`)
305
327
  }
@@ -309,10 +331,8 @@ export class ReflectService {
309
331
  *
310
332
  * @param names — the service names that changed.
311
333
  * @param filter — restricts notification to matching isolation scopes.
312
- * @returns the fibers whose dependency state was refreshed.
313
334
  */
314
335
  notify(names: string[], filter = (ctx: Context, name: string) => ctx[symbols.isolate][name] === this.ctx[symbols.isolate][name]) {
315
- const fibers: Fiber[] = []
316
336
  for (const runtime of this.ctx.registry.values()) {
317
337
  for (const fiber of runtime.fibers) {
318
338
  let hasUpdate = false
@@ -324,7 +344,6 @@ export class ReflectService {
324
344
  }
325
345
  if (!hasUpdate) continue
326
346
  fiber._refresh()
327
- fibers.push(fiber)
328
347
  }
329
348
  }
330
349
  for (const name of names) {
@@ -332,7 +351,6 @@ export class ReflectService {
332
351
  self[symbols.filter] = (target: Context) => filter(target, name)
333
352
  this.ctx.events.emit(self, 'internal/service', name, this._getImpl(name, false)?.value)
334
353
  }
335
- return fibers
336
354
  }
337
355
 
338
356
  /**
@@ -50,6 +50,7 @@ export interface Tracker {
50
50
  export const symbols = {
51
51
  // internal symbols
52
52
  shadow: Symbol.for('cordis.shadow'),
53
+ caller: Symbol.for('cordis.caller'),
53
54
  receiver: Symbol.for('cordis.receiver'),
54
55
  original: Symbol.for('cordis.original'),
55
56
  metadata: Symbol.for('cordis.metadata'),
@@ -146,11 +147,12 @@ function withProp(target: any, prop: string | symbol, value: any) {
146
147
  }))
147
148
  }
148
149
 
149
- function createShadow(ctx: Context, target: any, property: string | undefined, receiver: any) {
150
+ function createShadow(useSite: Context, target: any, property: string | undefined, receiver: any) {
150
151
  if (!property) return receiver
151
- const origin = Reflect.getOwnPropertyDescriptor(target, property)?.value
152
- if (!origin) return receiver
153
- return withProp(receiver, property, ctx.extend({ [symbols.shadow]: origin }))
152
+ const value = getPropertyDescriptor(target, property)?.value
153
+ if (!value) return receiver
154
+ const defSite = (value[symbols.shadow] as Context | undefined) ?? value
155
+ return withProp(receiver, property, useSite.extend({ [symbols.shadow]: defSite }))
154
156
  }
155
157
 
156
158
  function createShadowMethod(ctx: Context, value: any, outer: any, shadow: {}) {
@@ -162,22 +164,23 @@ function createShadowMethod(ctx: Context, value: any, outer: any, shadow: {}) {
162
164
  })
163
165
  }
164
166
 
167
+ // `ctx` may be a shadow, i.e. a pair of:
168
+ // - def site: where the accessing code was defined, governs service resolution
169
+ // - use site: where the service is consumed, governs intercept, isolate and effects
165
170
  function createTraceable(ctx: Context, value: any, tracker: Tracker) {
166
- // noShadow services are identity-aware (e.g. logger uses the origin fiber to
167
- // derive its name): keep the shadow ctx so they can read [symbols.shadow]
168
- // and resolve the origin. Non-noShadow services strip — their side effects
169
- // bind to caller, not origin.
170
- if (ctx[symbols.shadow] && !tracker.noShadow) {
171
- ctx = Object.getPrototypeOf(ctx)
172
- }
171
+ const defSite = (ctx[symbols.shadow] as Context | undefined) ?? ctx
172
+ const useSite = ctx[symbols.shadow] ? Object.getPrototypeOf(ctx) as Context : ctx
173
173
  const proxy = new Proxy(value, {
174
174
  get: (target, prop, receiver) => {
175
175
  if (prop === symbols.original) return target
176
- if (prop === tracker.property) return ctx
176
+ if (prop === symbols.caller) return defSite
177
+ if (prop === tracker.property) return useSite
177
178
  if (typeof prop === 'symbol') {
178
179
  return Reflect.get(target, prop, receiver)
179
180
  }
180
- if (tracker.associate && ctx.reflect.props[`${tracker.associate}.${prop}`]) {
181
+ // `ctx` rather than `useSite`, so that `ctx.foo.bar` and `ctx['foo.bar']` are
182
+ // governed by the same def site
183
+ if (tracker.associate && useSite.reflect.props[`${tracker.associate}.${prop}`]) {
181
184
  return Reflect.get(ctx, `${tracker.associate}.${prop}`, withProp(ctx, symbols.receiver, receiver))
182
185
  }
183
186
  let shadow: any, innerValue: any
@@ -185,33 +188,37 @@ function createTraceable(ctx: Context, value: any, tracker: Tracker) {
185
188
  if (desc && 'value' in desc) {
186
189
  innerValue = desc.value
187
190
  } else {
188
- shadow = createShadow(ctx, target, tracker.property, receiver)
191
+ shadow = createShadow(useSite, target, tracker.property, receiver)
189
192
  innerValue = Reflect.get(target, prop, shadow)
190
193
  }
191
194
  const innerTracker = innerValue?.[symbols.tracker]
192
195
  if (innerTracker) {
193
- return createTraceable(ctx, innerValue, innerTracker)
196
+ return createTraceable(useSite, innerValue, innerTracker)
194
197
  } else if (!tracker.noShadow && typeof innerValue === 'function') {
195
- shadow ??= createShadow(ctx, target, tracker.property, receiver)
196
- return createShadowMethod(ctx, innerValue, receiver, shadow)
198
+ shadow ??= createShadow(useSite, target, tracker.property, receiver)
199
+ return createShadowMethod(useSite, innerValue, receiver, shadow)
197
200
  } else {
198
201
  return innerValue
199
202
  }
200
203
  },
201
204
  set: (target, prop, value, receiver) => {
202
205
  if (prop === symbols.original) return false
206
+ if (prop === symbols.caller) return false
203
207
  if (prop === tracker.property) return false
204
208
  if (typeof prop === 'symbol') {
205
209
  return Reflect.set(target, prop, value, receiver)
206
210
  }
207
- if (tracker.associate && ctx.reflect.props[`${tracker.associate}.${prop}`]) {
211
+ if (tracker.associate && useSite.reflect.props[`${tracker.associate}.${prop}`]) {
208
212
  return Reflect.set(ctx, `${tracker.associate}.${prop}`, value, withProp(ctx, symbols.receiver, receiver))
209
213
  }
210
- const shadow = createShadow(ctx, target, tracker.property, receiver)
214
+ const shadow = createShadow(useSite, target, tracker.property, receiver)
211
215
  return Reflect.set(target, prop, value, shadow)
212
216
  },
213
217
  apply: (target, thisArg, args) => {
214
- return applyTraceable(proxy, target, thisArg, args)
218
+ const receiver = tracker.noShadow
219
+ ? proxy
220
+ : createShadow(useSite, target, tracker.property, proxy)
221
+ return applyTraceable(receiver, target, thisArg, args)
215
222
  },
216
223
  })
217
224
  return proxy
@@ -226,7 +233,7 @@ function applyTraceable(proxy: any, value: any, thisArg: any, args: any[]) {
226
233
  export function createCallable(name: string, proto: {}, tracker: Tracker) {
227
234
  const self = function (...args: any[]) {
228
235
  const proxy = createTraceable(self['ctx'], self, tracker)
229
- return applyTraceable(proxy, self, this, args)
236
+ return Reflect.apply(proxy, this, args)
230
237
  }
231
238
  defineProperty(self, 'name', name)
232
239
  return Object.setPrototypeOf(self, proto)
@@ -126,10 +126,10 @@ var Include = class extends EntryTree {
126
126
  this.type = writable[ext];
127
127
  this.readonly = !this.type;
128
128
  this.ctx.baseUrl = new URL(".", pathToFileURL(this.filename)).href;
129
- ctx.on("internal/update", (config, _, next) => {
129
+ ctx.on("internal/update", (config, next) => {
130
130
  if (config.path !== this.config.path) return next();
131
131
  this.config = config;
132
- this.root.update(this.applyPatches(this.data, config.patches)).catch((error) => {
132
+ return this.root.update(this.applyPatches(this.data, config.patches)).catch((error) => {
133
133
  this.ctx.logger.warn("config update at %C failed", this.filename);
134
134
  this.ctx.logger.warn(error);
135
135
  });
@@ -187,14 +187,10 @@ export class Include extends EntryTree {
187
187
  this.readonly = !this.type
188
188
  this.ctx.baseUrl = new URL('.', pathToFileURL(this.filename)).href
189
189
 
190
- ctx.on('internal/update', (config, _, next) => {
190
+ ctx.on('internal/update', (config, next) => {
191
191
  if (config.path !== this.config.path) return next()
192
- // Veto the fiber restart (children update in place), but persist the new
193
- // config ourselves — `Fiber.update` only assigns `this.config` behind
194
- // `next()`, and a stale `this.config.patches` would make the next
195
- // `refresh()` re-apply the old overlay.
196
192
  this.config = config
197
- this.root.update(this.applyPatches(this.data!, config.patches)).catch((error) => {
193
+ return this.root.update(this.applyPatches(this.data!, config.patches)).catch((error) => {
198
194
  this.ctx.logger.warn('config update at %C failed', this.filename)
199
195
  this.ctx.logger.warn(error)
200
196
  })
@@ -61,3 +61,7 @@ Node module internals are classified by their available APIs, including the v1 A
61
61
  ## Volatile configuration
62
62
 
63
63
  `Entry.update` compares raw entry options strictly; when only `config` changed on an active fiber in an unchanged context, the pure `equalExceptVolatile` function in `config/diff.ts` compares the raw configs using Schemastery metadata. It ignores volatile fields at fixed object paths without executing expressions, validators or `internal/config` hooks. Object nodes use their declared defaults for null or absent values, including objects without volatile fields; equivalent defaults skip updates. Other ordinary values, parent expressions and unknown fields retain raw comparison. Recursive schema backedges use raw comparison. Entry passes the actual plugin schema; a non-Schemastery schema compares raw. Context changes, other option changes and pending fibers use ordinary updates. A volatile-only change retains the raw Fiber config for later activation, then `_commitVolatile` parses it through the fiber's `internal/config` hook and schema, commits the new values into the running references when every ordinary effective value still matches, and emits `loader/volatile-update` to the owning fiber with the changed paths. A changed ordinary effective value uses the ordinary remount with a debug log naming the entry; because strict comparison treats class instances other than URL, Date and RegExp by identity, an ordinary field whose transform builds a fresh instance on every parse always takes that remount. An invalid candidate is logged and leaves the running references unchanged. A throwing `loader/volatile-update` listener is logged and does not fail the update; the values are already committed. Group/Include retain child dispatch, and programmatic Fiber updates preserve saving and `noSave`; `simplify` is called with its schema receiver so saved config contains plain values.
64
+
65
+ ## Update completion
66
+
67
+ Entry updates await `loader/patch-context`, the Fiber update waterfall and disabled-entry disposal. Combined context/config changes refresh required bindings before restarting. Group and Include updates expose completion of their child updates; file persistence still follows Include’s debounced writer.
@@ -109,9 +109,7 @@ var Group = class extends EntryGroup {
109
109
  super(ctx, ctx.fiber.entry.parent.tree);
110
110
  this.ctx = ctx;
111
111
  this.config = config;
112
- ctx.on("internal/update", (config) => {
113
- this.update(config);
114
- });
112
+ ctx.on("internal/update", (config) => this.update(config));
115
113
  }
116
114
  async *[Service.init]() {
117
115
  yield () => this.stop();
@@ -420,10 +418,14 @@ var Entry = class Entry {
420
418
  evaluate(expr) {
421
419
  return evaluate(this.ctx, expr);
422
420
  }
423
- _patchContext(diff) {
424
- this.context.waterfall("loader/patch-context", this, () => {
421
+ async _patchContext(diff) {
422
+ await this.context.waterfall("loader/patch-context", this, async () => {
425
423
  Object.setPrototypeOf(this.ctx, this.parent.ctx);
426
- if (this.fiber?.uid && (diff.includes("config") || this.options.group)) this.fiber.update(this.options.config, true);
424
+ if (this.fiber?.uid && (diff.includes("config") || this.options.group)) {
425
+ const fiber = this.fiber.ctx.fiber;
426
+ for (const name of Object.keys(fiber.inject)) fiber._checkImpl(name);
427
+ await fiber.update(this.options.config, true);
428
+ }
427
429
  });
428
430
  }
429
431
  async refresh() {
@@ -439,7 +441,7 @@ var Entry = class Entry {
439
441
  else this.options[key] = value;
440
442
  sortKeys(this.options);
441
443
  if (this.disabled) {
442
- this.fiber?.dispose();
444
+ await this.fiber?.dispose();
443
445
  return;
444
446
  }
445
447
  if (this.fiber?.uid) {
@@ -452,7 +454,7 @@ var Entry = class Entry {
452
454
  const pending = volatileOnly && this._commitVolatile() ? [] : changes;
453
455
  if (!pending.length && !force) return;
454
456
  this.context.emit("loader/partial-dispose", this, legacy, true);
455
- this._patchContext(pending);
457
+ await this._patchContext(pending);
456
458
  } else await this.init();
457
459
  }
458
460
  /**
@@ -461,7 +463,7 @@ var Entry = class Entry {
461
463
  * @returns `false` when an ordinary effective value changed, so the caller applies the ordinary update lifecycle.
462
464
  */
463
465
  _commitVolatile() {
464
- const fiber = this.fiber;
466
+ const fiber = this.fiber.ctx.fiber;
465
467
  const refs = volatileEntries(fiber.effectiveConfig);
466
468
  if (!refs.length) return true;
467
469
  const raw = this.options.config;
@@ -509,11 +511,10 @@ var Entry = class Entry {
509
511
  } finally {
510
512
  this._initTask = void 0;
511
513
  }
512
- const notify = () => {
514
+ this.fiber?.await().catch(() => {}).finally(() => {
513
515
  if (this.loader.getTasks().length) return;
514
516
  this.ctx.reflect.notify(["loader"]);
515
- };
516
- this.fiber?.await().then(notify, notify);
517
+ });
517
518
  }
518
519
  async _init() {
519
520
  let moduleNamespace;
@@ -522,13 +523,11 @@ var Entry = class Entry {
522
523
  } catch (error) {
523
524
  this.ctx.logger.error(error);
524
525
  return;
525
- } finally {
526
- this._initTask = void 0;
527
526
  }
528
527
  const plugin = this.loader.unwrapExports(moduleNamespace);
529
- this._patchContext([]);
528
+ await this._patchContext([]);
530
529
  this.loader.showLog(this, "apply");
531
- this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack).ctx.fiber;
530
+ this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack);
532
531
  this.moduleNamespace = moduleNamespace;
533
532
  }
534
533
  };
@@ -591,7 +590,7 @@ function isolate(ctx) {
591
590
  entry.ctx[Context.intercept] = Object.create(entry.ctx[Context.intercept]);
592
591
  entry.ctx[Context.isolate] = Object.create(entry.ctx[Context.isolate]);
593
592
  });
594
- ctx.on("loader/patch-context", (entry, next) => {
593
+ ctx.on("loader/patch-context", async (entry, next) => {
595
594
  const newMap = Object.create(entry.parent.ctx[Context.isolate]);
596
595
  for (const name of Object.keys(entry.options.isolate ?? {})) newMap[name] = access(entry, name, true);
597
596
  const diff = Object.create(null);
@@ -606,7 +605,8 @@ function isolate(ctx) {
606
605
  for (const symbol of [oldMap[name], newMap[name]]) {
607
606
  const impl = symbol && entry.ctx.reflect.store[symbol];
608
607
  if (!impl) continue;
609
- if (!impl.fiber) {
608
+ const fiber = impl.ctx.fiber;
609
+ if (!fiber) {
610
610
  entry.ctx.logger.warn(/* @__PURE__ */ new Error(`expected service ${name} to be implemented`));
611
611
  continue;
612
612
  }
@@ -614,19 +614,23 @@ function isolate(ctx) {
614
614
  oldMap[name],
615
615
  newMap[name],
616
616
  entry.ctx[delim],
617
- impl.fiber.ctx[delim]
617
+ fiber.ctx[delim]
618
618
  ];
619
- if (entry.ctx[delim] !== impl.fiber.ctx[delim]) break;
619
+ if (entry.ctx[delim] !== fiber.ctx[delim]) break;
620
620
  }
621
621
  }
622
622
  Object.setPrototypeOf(entry.ctx[Context.isolate], entry.parent.ctx[Context.isolate]);
623
623
  Object.setPrototypeOf(entry.ctx[Context.intercept], entry.parent.ctx[Context.intercept]);
624
624
  swap(entry.ctx[Context.isolate], newMap);
625
625
  swap(entry.ctx[Context.intercept], entry.options.intercept);
626
- next();
627
- for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff)) if (flag1 === flag2 && entry.ctx.reflect.store[symbol1] && !entry.ctx.reflect.store[symbol2]) {
628
- entry.ctx.reflect.store[symbol2] = entry.ctx.reflect.store[symbol1];
629
- delete entry.ctx.reflect.store[symbol1];
626
+ await next();
627
+ for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff)) {
628
+ const impl = entry.ctx.reflect.store[symbol1];
629
+ if (flag1 === flag2 && impl && !entry.ctx.reflect.store[symbol2]) {
630
+ entry.ctx.reflect.store[symbol2] = impl;
631
+ delete entry.ctx.reflect.store[symbol1];
632
+ impl.isolate = symbol2;
633
+ }
630
634
  }
631
635
  ctx.reflect.notify(Object.keys(diff), (ctx, name) => {
632
636
  const [symbol1, symbol2, flag1, flag2] = diff[name];
@@ -672,23 +676,20 @@ var Loader = class extends EntryTree {
672
676
  noShadow: true
673
677
  });
674
678
  ctx.reflect.provide("loader", this, this[Service.check]);
675
- ctx.on("internal/config", function(_config, next) {
679
+ ctx.on("internal/config", (fiber, next) => {
676
680
  const config = next();
677
- if (!this.entry || this.parent.fiber?.entry === this.entry) return config;
678
- if ((this.runtime?.callback)?.[EntryGroup.key]) return config;
679
- return interpolate(this.ctx, config);
680
- }, { global: true });
681
- ctx.on("internal/update", function(config, noSave, next) {
682
- if (!this.entry || noSave || this.parent.fiber?.entry === this.entry) return next();
683
- const unparse = this.runtime?.Config?.["simplify"];
684
- this.entry.options.config = unparse ? unparse.call(this.runtime.Config, config) : config;
685
- this.entry.parent.tree.write();
686
- return next();
687
- }, {
688
- global: true,
689
- prepend: true
681
+ if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return config;
682
+ if (fiber.runtime?.callback[EntryGroup.key]) return config;
683
+ return interpolate(fiber.ctx, config);
684
+ });
685
+ ctx.on("internal/commit", (fiber, config) => {
686
+ if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return;
687
+ const schema = fiber.runtime?.Config;
688
+ const unparse = schema?.["simplify"];
689
+ fiber.entry.options.config = unparse ? unparse.call(schema, config) : config;
690
+ fiber.entry.parent.tree.write();
690
691
  });
691
- ctx.on("internal/update", function(config, _, next) {
692
+ ctx.on("internal/update", function(config, next) {
692
693
  if (!this.entry || this.parent.fiber?.entry === this.entry) return next();
693
694
  self.showLog(this.entry, "reload");
694
695
  return next();
@@ -98,12 +98,15 @@ export class Entry {
98
98
  return evaluate(this.ctx, expr)
99
99
  }
100
100
 
101
- private _patchContext(diff: string[]) {
102
- this.context.waterfall('loader/patch-context', this, () => {
101
+ private async _patchContext(diff: string[]) {
102
+ await this.context.waterfall('loader/patch-context', this, async () => {
103
103
  Object.setPrototypeOf(this.ctx, this.parent.ctx)
104
104
 
105
105
  if (this.fiber?.uid && (diff.includes('config') || this.options.group)) {
106
- this.fiber.update(this.options.config, true)
106
+ // A simultaneous context/config edit must restart against the new dependencies.
107
+ const fiber = this.fiber.ctx.fiber
108
+ for (const name of Object.keys(fiber.inject)) fiber._checkImpl(name)
109
+ await fiber.update(this.options.config, true)
107
110
  }
108
111
  })
109
112
  }
@@ -134,7 +137,7 @@ export class Entry {
134
137
 
135
138
  // step 2: execute
136
139
  if (this.disabled) {
137
- this.fiber?.dispose()
140
+ await this.fiber?.dispose()
138
141
  return
139
142
  }
140
143
 
@@ -150,7 +153,7 @@ export class Entry {
150
153
  const pending = volatileOnly && this._commitVolatile() ? [] : changes
151
154
  if (!pending.length && !force) return
152
155
  this.context.emit('loader/partial-dispose', this, legacy, true)
153
- this._patchContext(pending)
156
+ await this._patchContext(pending)
154
157
  } else {
155
158
  await this.init()
156
159
  }
@@ -162,7 +165,7 @@ export class Entry {
162
165
  * @returns `false` when an ordinary effective value changed, so the caller applies the ordinary update lifecycle.
163
166
  */
164
167
  private _commitVolatile(): boolean {
165
- const fiber = this.fiber!
168
+ const fiber = this.fiber!.ctx.fiber
166
169
  const refs = volatileEntries(fiber.effectiveConfig)
167
170
  if (!refs.length) return true
168
171
  const raw = this.options.config
@@ -213,11 +216,10 @@ export class Entry {
213
216
  } finally {
214
217
  this._initTask = undefined
215
218
  }
216
- const notify = () => {
219
+ this.fiber?.await().catch(() => {}).finally(() => {
217
220
  if (this.loader.getTasks().length) return
218
221
  this.ctx.reflect.notify(['loader'])
219
- }
220
- this.fiber?.await().then(notify, notify)
222
+ })
221
223
  }
222
224
 
223
225
  private async _init() {
@@ -227,13 +229,11 @@ export class Entry {
227
229
  } catch (error) {
228
230
  this.ctx.logger.error(error)
229
231
  return
230
- } finally {
231
- this._initTask = undefined
232
232
  }
233
233
  const plugin = this.loader.unwrapExports(moduleNamespace)
234
- this._patchContext([])
234
+ await this._patchContext([])
235
235
  this.loader.showLog(this, 'apply')
236
- this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack).ctx.fiber
236
+ this.fiber = this.ctx.registry.plugin(plugin, this.options.config, this.getOuterStack)
237
237
  this.moduleNamespace = moduleNamespace
238
238
  }
239
239
  }
@@ -78,9 +78,7 @@ export class Group extends EntryGroup {
78
78
 
79
79
  constructor(public ctx: Context, public config: EntryOptions[]) {
80
80
  super(ctx, ctx.fiber.entry!.parent.tree)
81
- ctx.on('internal/update', (config) => {
82
- this.update(config)
83
- })
81
+ ctx.on('internal/update', config => this.update(config))
84
82
  }
85
83
 
86
84
  async* [Service.init]() {
@@ -93,7 +93,7 @@ export default function isolate(ctx: Context) {
93
93
  entry.ctx[Context.isolate] = Object.create(entry.ctx[Context.isolate])
94
94
  })
95
95
 
96
- ctx.on('loader/patch-context', (entry, next) => {
96
+ ctx.on('loader/patch-context', async (entry, next) => {
97
97
  // step 1: generate new isolate map
98
98
  const newMap: Dict<symbol> = Object.create(entry.parent.ctx[Context.isolate])
99
99
  for (const name of Object.keys(entry.options.isolate ?? {})) {
@@ -110,12 +110,13 @@ export default function isolate(ctx: Context) {
110
110
  for (const symbol of [oldMap[name], newMap[name]]) {
111
111
  const impl = symbol && entry.ctx.reflect.store[symbol]
112
112
  if (!impl) continue
113
- if (!impl.fiber) {
113
+ const fiber = impl.ctx.fiber
114
+ if (!fiber) {
114
115
  entry.ctx.logger.warn(new Error(`expected service ${name} to be implemented`))
115
116
  continue
116
117
  }
117
- diff[name] = [oldMap[name], newMap[name], entry.ctx[delim], impl.fiber.ctx[delim]]
118
- if (entry.ctx[delim] !== impl.fiber.ctx[delim]) break
118
+ diff[name] = [oldMap[name], newMap[name], entry.ctx[delim], fiber.ctx[delim]]
119
+ if (entry.ctx[delim] !== fiber.ctx[delim]) break
119
120
  }
120
121
  }
121
122
 
@@ -126,13 +127,15 @@ export default function isolate(ctx: Context) {
126
127
  swap(entry.ctx[Context.intercept], entry.options.intercept)
127
128
 
128
129
  // step 4: reload fiber
129
- next()
130
+ await next()
130
131
 
131
132
  // step 5: replace service impl
132
133
  for (const [symbol1, symbol2, flag1, flag2] of Object.values(diff)) {
133
- if (flag1 === flag2 && entry.ctx.reflect.store[symbol1] && !entry.ctx.reflect.store[symbol2]) {
134
- entry.ctx.reflect.store[symbol2] = entry.ctx.reflect.store[symbol1]
134
+ const impl = entry.ctx.reflect.store[symbol1]
135
+ if (flag1 === flag2 && impl && !entry.ctx.reflect.store[symbol2]) {
136
+ entry.ctx.reflect.store[symbol2] = impl
135
137
  delete entry.ctx.reflect.store[symbol1]
138
+ impl.isolate = symbol2
136
139
  }
137
140
  }
138
141
 
@@ -1,5 +1,5 @@
1
- import { Context, FiberState, Inject, Service, type Fiber } from '@deepseek-ai/cordis'
2
- import { defineProperty, isNullable, type Dict } from '@deepseek-ai/cosmokit'
1
+ import { Context, FiberState, Inject, Service } from '@deepseek-ai/cordis'
2
+ import { defineProperty, isNullable, type Awaitable, type Dict } from '@deepseek-ai/cosmokit'
3
3
  import { ModuleLoader } from './internal.ts'
4
4
  import { Entry, type EntryOptions } from './config/entry.ts'
5
5
  import { EntryGroup } from './config/group.ts'
@@ -38,7 +38,7 @@ declare module '@deepseek-ai/cordis' {
38
38
  * @param next - continue context refresh and Loader's config update.
39
39
  * @mode waterfall
40
40
  */
41
- 'loader/patch-context'(entry: Entry, next: () => void): void
41
+ 'loader/patch-context'(entry: Entry, next: () => Awaitable<void>): Awaitable<void>
42
42
  }
43
43
 
44
44
  interface Context {
@@ -101,26 +101,23 @@ export class Loader extends EntryTree {
101
101
 
102
102
  ctx.reflect.provide('loader', this, this[Service.check])
103
103
 
104
- ctx.on('internal/config', function (this: Fiber, _config, next) {
104
+ ctx.on('internal/config', (fiber, next) => {
105
105
  const config = next()
106
- if (!this.entry || this.parent.fiber?.entry === this.entry) return config
107
- // Tree carriers (Group, Include) keep their configs literal: their
108
- // entry and patch lists hold other rows' configs, whose `!!js`
109
- // expressions belong to those rows' own fibers.
110
- const plugin = this.runtime?.callback as Record<PropertyKey, unknown> | undefined
111
- if (plugin?.[EntryGroup.key]) return config
112
- return interpolate(this.ctx, config)
113
- }, { global: true })
106
+ if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return config
107
+ // Tree carriers preserve the expressions owned by their child entries.
108
+ if (fiber.runtime?.callback[EntryGroup.key]) return config
109
+ return interpolate(fiber.ctx, config)
110
+ })
114
111
 
115
- ctx.on('internal/update', function (config, noSave, next) {
116
- if (!this.entry || noSave || this.parent.fiber?.entry === this.entry) return next()
117
- const unparse = this.runtime?.Config?.['simplify']
118
- this.entry.options.config = unparse ? unparse.call(this.runtime!.Config, config) : config
119
- this.entry.parent.tree.write()
120
- return next()
121
- }, { global: true, prepend: true })
112
+ ctx.on('internal/commit', (fiber, config) => {
113
+ if (!fiber.entry || fiber.parent.fiber?.entry === fiber.entry) return
114
+ const schema = fiber.runtime?.Config
115
+ const unparse = schema?.['simplify']
116
+ fiber.entry.options.config = unparse ? unparse.call(schema, config) : config
117
+ fiber.entry.parent.tree.write()
118
+ })
122
119
 
123
- ctx.on('internal/update', function (config, _, next) {
120
+ ctx.on('internal/update', function (config, next) {
124
121
  if (!this.entry || this.parent.fiber?.entry === this.entry) return next()
125
122
  self.showLog(this.entry, 'reload')
126
123
  return next()