@songtonyli/dsh-cli 0.1.30 → 0.1.32

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 (1814) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/README.md +4 -0
  4. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  5. package/node_modules/@deepseek-ai/cordis/src/index.ts +2 -0
  6. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  7. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  8. package/node_modules/@deepseek-ai/cordis-plugin-loader/README.md +4 -0
  9. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +87 -7
  10. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -3
  11. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/diff.ts +45 -0
  12. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +53 -7
  13. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/index.ts +13 -1
  14. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  15. package/node_modules/@deepseek-ai/cosmokit/README.md +6 -0
  16. package/node_modules/@deepseek-ai/cosmokit/lib/index.js +112 -19
  17. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  18. package/node_modules/@deepseek-ai/cosmokit/src/index.ts +2 -0
  19. package/node_modules/@deepseek-ai/cosmokit/src/types.ts +49 -23
  20. package/node_modules/@deepseek-ai/cosmokit/src/volatile.ts +86 -0
  21. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  22. package/node_modules/@deepseek-ai/dsh/README.md +1 -1
  23. package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
  24. package/node_modules/@deepseek-ai/dsh/lib/bin.js +21 -5
  25. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-Bb5YvFIX.js → dump-config-C-0P1h0W.js} +14 -3
  26. package/node_modules/@deepseek-ai/dsh/lib/dump-config-DaAE0NHG.js +2 -0
  27. package/node_modules/@deepseek-ai/dsh/lib/dump-config-schema-BgEU7VYz.js +41 -0
  28. package/node_modules/@deepseek-ai/dsh/lib/{plugin-DJ-rVHUS.js → plugin-CnNK4cws.js} +1 -1
  29. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-BNu17Y9U.js → profile-boot-DIiro1p-.js} +8 -15
  30. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh/package.json +113 -119
  32. package/node_modules/@deepseek-ai/dsh-acp/lib/index.js +7 -6
  33. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  34. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  35. package/node_modules/@deepseek-ai/dsh-agent/README.i18n.yaml +2 -2
  36. package/node_modules/@deepseek-ai/dsh-agent/README.md +3 -0
  37. package/node_modules/@deepseek-ai/dsh-agent/README.zh.md +3 -0
  38. package/node_modules/@deepseek-ai/dsh-agent/lib/index.js +40 -6
  39. package/node_modules/@deepseek-ai/dsh-agent/lib/types/archive-admission.js +35 -0
  40. package/node_modules/@deepseek-ai/dsh-agent/lib/types/consumed-work.js +5 -4
  41. package/node_modules/@deepseek-ai/dsh-agent/lib/types/index.js +4 -0
  42. package/node_modules/@deepseek-ai/dsh-agent/lib/types/model-selection.js +1 -2
  43. package/node_modules/@deepseek-ai/dsh-agent/package.json +27 -20
  44. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.i18n.yaml +2 -2
  45. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.md +9 -9
  46. package/node_modules/@deepseek-ai/dsh-agent-default-model/README.zh.md +9 -9
  47. package/node_modules/@deepseek-ai/dsh-agent-default-model/lib/index.js +26 -39
  48. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  49. package/node_modules/@deepseek-ai/dsh-agent-instructions/lib/index.js +3 -2
  50. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +25 -25
  51. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  52. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +3 -1
  53. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +3 -1
  54. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +39 -49
  55. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +26 -28
  56. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset}/README.i18n.yaml +3 -3
  57. package/node_modules/@deepseek-ai/dsh-agent-preset/README.md +94 -0
  58. package/node_modules/@deepseek-ai/dsh-agent-preset/README.zh.md +94 -0
  59. package/node_modules/@deepseek-ai/dsh-agent-preset/lib/index.js +29 -0
  60. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +49 -0
  61. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/SKILL.md +29 -0
  62. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +506 -0
  63. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/SKILL.md +38 -0
  64. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/host-plugin.md +60 -0
  65. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/mcp-bundle.md +5 -0
  66. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/ui-plugin.md +13 -0
  67. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/references/verification.md +5 -0
  68. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/client.js +22 -0
  69. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/cordis.patch.yml +3 -0
  70. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/index.js +2 -0
  71. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/decoration/package.json +15 -0
  72. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/cordis.patch.yml +8 -0
  73. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-plugin-development/templates/mcp/package.json +7 -0
  74. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/editing-cordis-compositions/SKILL.md +84 -0
  75. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-agent-preset-registry}/README.i18n.yaml +3 -3
  76. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.md +107 -0
  77. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/README.zh.md +107 -0
  78. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/index.js +781 -0
  79. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/invariant.js +806 -0
  80. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/typert.host.js +118 -270
  81. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/typert.remote-client.js +84 -0
  82. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/composition-inventory.js +9 -36
  83. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/definition.js +29 -0
  84. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/display.js +12 -3
  85. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/index.js +371 -0
  86. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/invariant.js +7 -19
  87. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/mount.js +243 -0
  88. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/lib/types/preset.js +2 -0
  89. package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/session.js +1 -1
  90. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +96 -0
  91. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.i18n.yaml +2 -2
  92. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.md +3 -3
  93. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/README.zh.md +3 -3
  94. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  95. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  96. package/node_modules/@deepseek-ai/{dsh-settings-file → dsh-api-account-controller}/README.i18n.yaml +3 -3
  97. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.md +53 -0
  98. package/node_modules/@deepseek-ai/dsh-api-account-controller/README.zh.md +53 -0
  99. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/index.js +209 -0
  100. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +273 -0
  101. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +267 -0
  102. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/index.js +116 -0
  103. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/types/types.js +2 -0
  104. package/node_modules/@deepseek-ai/{dsh-api-authorization-controller → dsh-api-account-controller}/package.json +13 -20
  105. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  106. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -4
  107. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -4
  108. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +294 -51
  109. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/index.js +516 -92
  110. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +104 -14
  111. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +2 -2
  112. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +164 -11
  113. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/index.js +322 -33
  114. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-protocol.js +10 -46
  115. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/stream-server.js +210 -23
  116. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +18 -13
  117. package/node_modules/@deepseek-ai/{dsh-llm-cursor → dsh-api-job-controller}/README.i18n.yaml +3 -3
  118. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.md +69 -0
  119. package/node_modules/@deepseek-ai/dsh-api-job-controller/README.zh.md +69 -0
  120. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/client.js +367 -0
  121. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/index.js +377 -0
  122. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.host.js +273 -0
  123. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/typert.remote-client.js +181 -0
  124. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/index.js +23 -0
  125. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/model.js +164 -0
  126. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/client/service.js +182 -0
  127. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/index.js +150 -0
  128. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/observe.js +107 -0
  129. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/rows.js +43 -0
  130. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/types.js +8 -0
  131. package/node_modules/@deepseek-ai/dsh-api-job-controller/lib/types/wake.js +59 -0
  132. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +82 -0
  133. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  134. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +2 -0
  135. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +2 -0
  136. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1751 -1017
  137. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +7 -3
  138. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +40 -39
  139. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  140. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +31 -8
  141. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +31 -8
  142. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +603 -515
  143. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +299 -137
  144. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +373 -183
  145. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +216 -124
  146. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/archived-session-gate.js +52 -0
  147. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +2 -1
  148. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +249 -277
  149. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +45 -13
  150. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +35 -47
  151. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +112 -50
  152. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +72 -36
  153. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +2 -44
  154. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/history.js +1 -1
  155. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +117 -13
  156. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/list.js +24 -15
  157. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/skill-catalog.js +60 -50
  158. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/types.js +0 -1
  159. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +68 -72
  160. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.i18n.yaml +2 -2
  161. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.md +1 -2
  162. package/node_modules/@deepseek-ai/dsh-api-settings-controller/README.zh.md +1 -2
  163. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/index.js +6 -78
  164. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.host.js +33 -99
  165. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/typert.remote-client.js +32 -80
  166. package/node_modules/@deepseek-ai/dsh-api-settings-controller/lib/types/index.js +6 -61
  167. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  168. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +50 -22
  169. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +4 -4
  170. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -19
  171. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.i18n.yaml +2 -2
  172. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.md +16 -2
  173. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/README.zh.md +16 -2
  174. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/client.js +98 -6
  175. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/index.js +202 -15
  176. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.host.js +161 -11
  177. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/typert.remote-client.js +121 -8
  178. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/index.js +4 -1
  179. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/model.js +70 -2
  180. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/client/service.js +33 -3
  181. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/commands.js +45 -7
  182. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/default-directory.js +65 -0
  183. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/feed.js +9 -1
  184. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/lib/types/index.js +62 -5
  185. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -18
  186. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
  187. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +26 -25
  188. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +26 -25
  189. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/client.js +41 -35
  190. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +129 -121
  191. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +72 -141
  192. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +61 -120
  193. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/changes.js +106 -46
  194. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/change-feed.js +34 -27
  195. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/client/provider.js +13 -6
  196. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +32 -53
  197. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -14
  198. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  199. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +33 -15
  200. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +33 -15
  201. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +1647 -681
  202. package/node_modules/@deepseek-ai/dsh-app-boot/lib/worker/profile-resolution-bootstrap.js +255 -357
  203. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +20 -18
  204. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
  205. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +4 -4
  206. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +4 -4
  207. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  208. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  209. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  210. package/node_modules/@deepseek-ai/dsh-authorization/README.i18n.yaml +2 -2
  211. package/node_modules/@deepseek-ai/dsh-authorization/README.md +2 -0
  212. package/node_modules/@deepseek-ai/dsh-authorization/README.zh.md +2 -0
  213. package/node_modules/@deepseek-ai/dsh-authorization/lib/index.js +16 -4
  214. package/node_modules/@deepseek-ai/dsh-authorization/lib/types/index.js +19 -4
  215. package/node_modules/@deepseek-ai/dsh-authorization/package.json +9 -9
  216. package/node_modules/@deepseek-ai/dsh-base/README.i18n.yaml +2 -2
  217. package/node_modules/@deepseek-ai/dsh-base/README.md +2 -0
  218. package/node_modules/@deepseek-ai/dsh-base/README.zh.md +2 -0
  219. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +20 -26
  220. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
  221. package/node_modules/@deepseek-ai/dsh-bash-local/README.i18n.yaml +2 -2
  222. package/node_modules/@deepseek-ai/dsh-bash-local/README.md +7 -6
  223. package/node_modules/@deepseek-ai/dsh-bash-local/README.zh.md +7 -6
  224. package/node_modules/@deepseek-ai/dsh-bash-local/lib/index.js +153 -202
  225. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -13
  226. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.i18n.yaml +2 -2
  227. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.md +3 -3
  228. package/node_modules/@deepseek-ai/dsh-bash-sandbox/README.zh.md +3 -3
  229. package/node_modules/@deepseek-ai/dsh-bash-sandbox/lib/index.js +58 -63
  230. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  231. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  232. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  233. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
  234. package/node_modules/@deepseek-ai/dsh-client-connection/README.md +7 -3
  235. package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +7 -3
  236. package/node_modules/@deepseek-ai/dsh-client-connection/lib/client.js +169 -28
  237. package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +98 -36
  238. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -10
  239. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/client.js +8 -12
  240. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/index.js +1 -0
  241. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/typert.host.js +46 -18
  242. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/client/runtime.js +5 -12
  243. package/node_modules/@deepseek-ai/dsh-client-file-upload/lib/types/protocol.js +5 -0
  244. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +14 -14
  245. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  246. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +2 -2
  247. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +2 -2
  248. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +6 -4
  249. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +8 -5
  250. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +8 -8
  251. package/node_modules/@deepseek-ai/dsh-client-locale/README.i18n.yaml +2 -2
  252. package/node_modules/@deepseek-ai/dsh-client-locale/README.md +9 -1
  253. package/node_modules/@deepseek-ai/dsh-client-locale/README.zh.md +9 -1
  254. package/node_modules/@deepseek-ai/dsh-client-locale/lib/client.js +225 -75
  255. package/node_modules/@deepseek-ai/dsh-client-locale/lib/index.js +9 -8
  256. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -11
  257. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  258. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +2 -1
  259. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +2 -1
  260. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +57 -36
  261. package/node_modules/@deepseek-ai/dsh-client-modules/lib/invariant.js +2 -2
  262. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +8 -7
  263. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -6
  264. package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +21 -0
  265. package/node_modules/@deepseek-ai/{dsh-client-ui-settings-unarchive-sessions → dsh-client-store}/README.i18n.yaml +3 -3
  266. package/node_modules/@deepseek-ai/dsh-client-store/README.md +48 -0
  267. package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +48 -0
  268. package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +180 -0
  269. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +121 -0
  270. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +92 -0
  271. package/node_modules/@deepseek-ai/dsh-client-store/package.json +37 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.i18n.yaml +2 -2
  273. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.md +13 -31
  274. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/README.zh.md +22 -40
  275. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +865 -1033
  276. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +21 -19
  277. package/node_modules/@deepseek-ai/dsh-client-ui-approval/lib/client.js +3 -3
  278. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +14 -14
  279. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
  280. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +1 -1
  281. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +1 -1
  282. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +28 -8
  283. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  284. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  285. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
  286. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +62 -10
  287. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +60 -10
  288. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +4808 -1393
  289. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/index.js +37 -10
  290. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +41 -37
  291. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  292. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +2 -0
  293. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +2 -0
  294. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +20 -12
  295. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -16
  296. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  297. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +19 -5
  298. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +19 -5
  299. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +1321 -349
  300. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/index.js +9 -8
  301. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +34 -32
  302. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
  303. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +2 -2
  304. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +2 -2
  305. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +28 -25
  306. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +14 -14
  307. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  308. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +14 -7
  309. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +14 -7
  310. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +628 -497
  311. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +17 -8
  312. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +31 -28
  313. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/lib/client.js +7 -7
  314. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  315. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  316. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.i18n.yaml +2 -2
  317. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.md +3 -1
  318. package/node_modules/@deepseek-ai/dsh-client-ui-goal/README.zh.md +3 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-goal/lib/client.js +18 -9
  320. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  321. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +13 -7
  322. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -13
  323. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.i18n.yaml +2 -2
  324. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.md +25 -18
  325. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/README.zh.md +29 -22
  326. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/client.js +413 -63
  327. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/lib/index.js +5 -5
  328. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +26 -23
  329. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
  330. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +6 -2
  331. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +6 -2
  332. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +75 -4
  333. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +10 -9
  334. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.i18n.yaml +2 -2
  335. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.md +3 -3
  336. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/README.zh.md +3 -3
  337. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/lib/client.js +15 -13
  338. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -17
  339. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  340. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +4 -0
  341. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +4 -0
  342. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +12 -9
  343. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +17 -16
  344. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.i18n.yaml +2 -2
  345. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.md +20 -8
  346. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/README.zh.md +20 -8
  347. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/lib/client.js +530 -195
  348. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +25 -15
  349. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.i18n.yaml +2 -2
  350. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.md +1 -1
  351. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/README.zh.md +1 -1
  352. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/lib/client.js +39 -100
  353. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -16
  354. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  355. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +7 -5
  356. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +8 -6
  357. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +73 -60
  358. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -21
  359. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +2 -2
  360. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +29 -8
  361. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +29 -8
  362. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +1095 -381
  363. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +16 -12
  364. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +2 -2
  365. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +25 -11
  366. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +25 -11
  367. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +1 -10
  368. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +27 -0
  369. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +68 -48
  370. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +6 -2
  371. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +1 -2
  372. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +28 -0
  373. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +1 -1
  374. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +76 -0
  375. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +55 -0
  376. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +64 -37
  377. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +13 -6
  378. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +27 -0
  379. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +31 -2
  380. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +12 -0
  381. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +5418 -2739
  382. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +1 -1
  383. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +53 -0
  384. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +145 -0
  385. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +33 -0
  386. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +4 -1
  387. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +14 -4
  388. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +15 -30
  389. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +50 -5
  390. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +13 -0
  391. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +39 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +12 -7
  393. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +35 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +26 -0
  395. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +1 -1
  396. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +6 -4
  397. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +15 -3
  398. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +13 -0
  399. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +19 -2
  400. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +12 -2
  401. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +1 -1
  402. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +19 -0
  403. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +376 -195
  404. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +1 -1
  405. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +36 -0
  406. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +21 -4
  407. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +14 -0
  408. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +17 -0
  409. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +46 -0
  410. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +69 -0
  411. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +214 -0
  412. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +4 -1
  413. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +3 -1
  414. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +5 -3
  415. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  416. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +2 -0
  417. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +2 -0
  418. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +12 -3
  419. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  420. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +7 -5
  421. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +5 -5
  422. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.i18n.yaml +2 -2
  423. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.md +1 -1
  424. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/README.zh.md +1 -1
  425. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/lib/client.js +7 -8
  426. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +12 -12
  427. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  428. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +2 -0
  429. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +2 -0
  430. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +2 -3
  431. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -9
  432. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.i18n.yaml +2 -2
  433. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.md +20 -11
  434. package/node_modules/@deepseek-ai/dsh-client-ui-settings/README.zh.md +20 -11
  435. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/client.js +281 -117
  436. package/node_modules/@deepseek-ai/dsh-client-ui-settings/lib/index.js +18 -4
  437. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +13 -10
  438. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +6 -0
  439. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +75 -0
  440. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +75 -0
  441. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2383 -0
  442. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/index.js +28 -0
  443. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +69 -0
  444. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.i18n.yaml +6 -0
  445. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.md +78 -0
  446. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/README.zh.md +78 -0
  447. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/client.js +175 -0
  448. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/lib/index.js +12 -0
  449. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +60 -0
  450. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  451. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +17 -6
  452. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +17 -6
  453. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +166 -36
  454. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/index.js +8 -8
  455. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +19 -15
  456. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  457. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +14 -11
  458. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +25 -22
  459. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +1246 -180
  460. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/index.js +24 -4
  461. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +15 -10
  462. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  463. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +5 -3
  464. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +5 -3
  465. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +116 -61
  466. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -12
  467. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
  468. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +11 -46
  469. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +15 -50
  470. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +15 -1753
  471. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -14
  472. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.i18n.yaml +6 -0
  473. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.md +78 -0
  474. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/README.zh.md +78 -0
  475. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/client.js +199 -0
  476. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/lib/index.js +12 -0
  477. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +60 -0
  478. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -8
  479. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.i18n.yaml +6 -0
  480. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.md +82 -0
  481. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/README.zh.md +82 -0
  482. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/client.js +857 -0
  483. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/lib/index.js +13 -0
  484. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +61 -0
  485. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.i18n.yaml +6 -0
  486. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.md +79 -0
  487. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/README.zh.md +79 -0
  488. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/client.js +324 -0
  489. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/lib/index.js +13 -0
  490. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +61 -0
  491. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  492. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +2 -2
  493. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +2 -2
  494. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +35 -28
  495. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +12 -13
  496. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +2 -2
  497. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +13 -12
  498. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +13 -12
  499. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +1191 -429
  500. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +16 -9
  501. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  502. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +46 -20
  503. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +46 -20
  504. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.excel.js +133782 -0
  505. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +3766 -789
  506. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +37 -15
  507. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +13 -6
  508. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +34 -21
  509. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.i18n.yaml +2 -2
  510. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.md +11 -9
  511. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/README.zh.md +11 -9
  512. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/lib/client.js +316 -106
  513. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +15 -13
  514. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  515. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +10 -7
  516. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +10 -7
  517. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +323 -111
  518. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +15 -14
  519. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
  520. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +3 -3
  521. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +3 -3
  522. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +24 -141
  523. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +1 -1
  524. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +16 -15
  525. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +2 -2
  526. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +3 -1
  527. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +3 -1
  528. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +25 -24
  529. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +15 -15
  530. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  531. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
  532. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +13 -7
  533. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +13 -7
  534. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +168 -260
  535. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  536. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.i18n.yaml +2 -2
  537. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.md +6 -4
  538. package/node_modules/@deepseek-ai/dsh-client-ui-theme/README.zh.md +6 -4
  539. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +172 -70
  540. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +14 -27
  541. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/Montserrat-OFL.txt +93 -0
  542. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/brand-font.css +24 -0
  543. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-light.woff2 +0 -0
  544. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-medium.woff2 +0 -0
  545. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/styles/montserrat-regular.woff2 +0 -0
  546. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +17 -15
  547. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
  548. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +10 -2
  549. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +10 -2
  550. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1887 -204
  551. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +24 -23
  552. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  553. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +3 -1
  554. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +3 -1
  555. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +32 -44
  556. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +18 -17
  557. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  558. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +1 -1
  559. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +1 -1
  560. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +19 -13
  561. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +20 -19
  562. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.i18n.yaml +2 -2
  563. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.md +1 -1
  564. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/README.zh.md +1 -1
  565. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +9 -8
  566. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -15
  567. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  568. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +102 -11
  569. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +102 -11
  570. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +2182 -1015
  571. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -22
  572. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  573. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  574. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  575. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  576. package/node_modules/@deepseek-ai/dsh-commands/lib/typert.host.js +46 -18
  577. package/node_modules/@deepseek-ai/dsh-commands/package.json +20 -20
  578. package/node_modules/@deepseek-ai/dsh-compaction/lib/index.js +2 -5
  579. package/node_modules/@deepseek-ai/dsh-compaction/lib/invariant.js +4 -22
  580. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/checkpoint.js +2 -2
  581. package/node_modules/@deepseek-ai/dsh-compaction/lib/types/invariant.js +2 -3
  582. package/node_modules/@deepseek-ai/dsh-compaction/package.json +13 -13
  583. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.i18n.yaml +2 -2
  584. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.md +9 -8
  585. package/node_modules/@deepseek-ai/dsh-compaction-basic/README.zh.md +9 -8
  586. package/node_modules/@deepseek-ai/dsh-compaction-basic/lib/index.js +50 -19
  587. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +27 -27
  588. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/index.js +1 -7
  589. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/image-offload.js +0 -3
  590. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/lib/types/project-message.js +0 -5
  591. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  592. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/lib/index.js +3 -7
  593. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +18 -18
  594. package/node_modules/@deepseek-ai/dsh-config-editor/README.i18n.yaml +6 -0
  595. package/node_modules/@deepseek-ai/dsh-config-editor/README.md +79 -0
  596. package/node_modules/@deepseek-ai/dsh-config-editor/README.zh.md +79 -0
  597. package/node_modules/@deepseek-ai/dsh-config-editor/lib/index.js +132 -0
  598. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +54 -0
  599. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +878 -170
  600. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  601. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +6 -68
  602. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.host.js +107 -51
  603. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/typert.remote-client.js +15 -15
  604. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -6
  605. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/sandbox.js +0 -27
  606. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +20 -20
  607. package/node_modules/@deepseek-ai/dsh-credentials/package.json +6 -6
  608. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  609. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.i18n.yaml +6 -0
  610. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.md +63 -0
  611. package/node_modules/@deepseek-ai/dsh-deepseek-account/README.zh.md +63 -0
  612. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/index.js +35 -0
  613. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/index.js +36 -0
  614. package/node_modules/@deepseek-ai/dsh-deepseek-account/lib/types/types.js +2 -0
  615. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +42 -0
  616. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +6 -0
  617. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +96 -0
  618. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +96 -0
  619. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +891 -0
  620. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +55 -0
  621. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/index.js +488 -0
  622. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/logout.js +34 -0
  623. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/protocol.js +210 -0
  624. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/types.js +2 -0
  625. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +52 -0
  626. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.i18n.yaml +2 -2
  627. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.md +1 -1
  628. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/README.zh.md +1 -1
  629. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  630. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  631. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +2 -2
  632. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +8 -4
  633. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +8 -4
  634. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +14 -74
  635. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +6 -8
  636. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +51 -189
  637. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +3 -151
  638. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +1 -1
  639. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +0 -41
  640. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +10 -10
  641. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +8 -4
  642. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/en.json +6 -0
  643. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/locale/zh.json +6 -0
  644. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +28 -26
  645. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +2 -2
  646. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +16 -4
  647. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +16 -4
  648. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +3 -0
  649. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/icon.svg +12 -0
  650. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/en.json +6 -0
  651. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/locale/zh.json +6 -0
  652. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +12 -7
  653. package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-api-speech-to-text}/README.i18n.yaml +3 -3
  654. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.md +78 -0
  655. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/README.zh.md +78 -0
  656. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/index.js +218 -0
  657. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.host.js +432 -0
  658. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/typert.remote-client.js +311 -0
  659. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/index.js +142 -0
  660. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/lib/types/types.js +2 -0
  661. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +60 -0
  662. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +2 -2
  663. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +11 -9
  664. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +11 -9
  665. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +127 -562
  666. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/en.json +6 -0
  667. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/locale/zh.json +6 -0
  668. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +30 -27
  669. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.i18n.yaml +6 -0
  670. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.md +76 -0
  671. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/README.zh.md +76 -0
  672. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/client.js +5714 -0
  673. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/lib/index.js +6 -0
  674. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +92 -0
  675. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.i18n.yaml +6 -0
  676. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.md +80 -0
  677. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/README.zh.md +80 -0
  678. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/index.js +200 -0
  679. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/index.js +181 -0
  680. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/types.js +2 -0
  681. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/lib/types/wave.js +24 -0
  682. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +57 -0
  683. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.i18n.yaml +6 -0
  684. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.md +82 -0
  685. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/README.zh.md +82 -0
  686. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/index.js +818 -0
  687. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +219 -0
  688. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +53 -0
  689. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/runtime/assets.json +28 -0
  690. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +2 -2
  691. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +3 -3
  692. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +3 -3
  693. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +23 -24
  694. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/en.json +6 -0
  695. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/locale/zh.json +6 -0
  696. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +27 -25
  697. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.i18n.yaml +6 -0
  698. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.md +77 -0
  699. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/README.zh.md +77 -0
  700. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/cordis.patch.yml +13 -0
  701. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/icon.svg +9 -0
  702. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/en.json +6 -0
  703. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/locale/zh.json +6 -0
  704. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +54 -0
  705. package/node_modules/@deepseek-ai/dsh-file-reference/README.i18n.yaml +2 -2
  706. package/node_modules/@deepseek-ai/dsh-file-reference/README.md +1 -1
  707. package/node_modules/@deepseek-ai/dsh-file-reference/README.zh.md +1 -1
  708. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  709. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.i18n.yaml +2 -2
  710. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.md +3 -4
  711. package/node_modules/@deepseek-ai/dsh-file-reference-local/README.zh.md +3 -4
  712. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  713. package/node_modules/@deepseek-ai/dsh-fs/README.i18n.yaml +2 -2
  714. package/node_modules/@deepseek-ai/dsh-fs/README.md +7 -5
  715. package/node_modules/@deepseek-ai/dsh-fs/README.zh.md +7 -5
  716. package/node_modules/@deepseek-ai/dsh-fs/lib/index.js +12 -0
  717. package/node_modules/@deepseek-ai/dsh-fs/package.json +11 -11
  718. package/node_modules/@deepseek-ai/dsh-fs-local/README.i18n.yaml +2 -2
  719. package/node_modules/@deepseek-ai/dsh-fs-local/README.md +6 -3
  720. package/node_modules/@deepseek-ai/dsh-fs-local/README.zh.md +6 -3
  721. package/node_modules/@deepseek-ai/dsh-fs-local/lib/index.js +27 -0
  722. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +8 -7
  723. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  724. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.i18n.yaml +2 -2
  725. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.md +1 -1
  726. package/node_modules/@deepseek-ai/dsh-fs-sandbox/README.zh.md +1 -1
  727. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  728. package/node_modules/@deepseek-ai/dsh-goal/lib/typert.host.js +46 -18
  729. package/node_modules/@deepseek-ai/dsh-goal/package.json +25 -25
  730. package/node_modules/@deepseek-ai/dsh-goal-round-driver/lib/index.js +2 -3
  731. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +17 -17
  732. package/node_modules/@deepseek-ai/dsh-headless/lib/index.js +1 -1
  733. package/node_modules/@deepseek-ai/dsh-headless/lib/{json-stream-Bh4BGGk9.js → json-stream-BA-F3lfb.js} +4 -4
  734. package/node_modules/@deepseek-ai/dsh-headless/lib/startup.js +1 -1
  735. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  736. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +2 -2
  737. package/node_modules/@deepseek-ai/dsh-hmr/README.md +1 -1
  738. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +1 -1
  739. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  740. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  741. package/node_modules/@deepseek-ai/dsh-hook-protocol/lib/index.js +1 -1
  742. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +9 -9
  743. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/lib/index.js +4 -7
  744. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  745. package/node_modules/@deepseek-ai/dsh-hooks-codex/lib/index.js +3 -6
  746. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  747. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  748. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  749. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  750. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  751. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.i18n.yaml +2 -2
  752. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.md +3 -1
  753. package/node_modules/@deepseek-ai/dsh-host-frontend-static/README.zh.md +3 -1
  754. package/node_modules/@deepseek-ai/dsh-host-frontend-static/lib/index.js +1 -1
  755. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  756. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.i18n.yaml +2 -2
  757. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.md +2 -0
  758. package/node_modules/@deepseek-ai/dsh-host-open-in-app/README.zh.md +2 -0
  759. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/index.js +28 -81
  760. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/icons.js +4 -49
  761. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/index.js +8 -8
  762. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/resolver.js +8 -27
  763. package/node_modules/@deepseek-ai/dsh-host-open-in-app/lib/types/shared.js +16 -7
  764. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  765. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.i18n.yaml +2 -2
  766. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.md +8 -4
  767. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/README.zh.md +8 -4
  768. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +19 -11
  769. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +23 -4
  770. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +23 -4
  771. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +18 -10
  772. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +14 -12
  773. package/node_modules/@deepseek-ai/dsh-host-webserver/README.i18n.yaml +2 -2
  774. package/node_modules/@deepseek-ai/dsh-host-webserver/README.md +1 -1
  775. package/node_modules/@deepseek-ai/dsh-host-webserver/README.zh.md +1 -1
  776. package/node_modules/@deepseek-ai/dsh-host-webserver/lib/index.js +1 -0
  777. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  778. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +4 -4
  779. package/node_modules/@deepseek-ai/dsh-invariants/README.i18n.yaml +2 -2
  780. package/node_modules/@deepseek-ai/dsh-invariants/README.md +1 -1
  781. package/node_modules/@deepseek-ai/dsh-invariants/README.zh.md +1 -1
  782. package/node_modules/@deepseek-ai/dsh-invariants/package.json +4 -4
  783. package/node_modules/@deepseek-ai/dsh-jobs/README.i18n.yaml +2 -2
  784. package/node_modules/@deepseek-ai/dsh-jobs/README.md +18 -11
  785. package/node_modules/@deepseek-ai/dsh-jobs/README.zh.md +18 -11
  786. package/node_modules/@deepseek-ai/dsh-jobs/lib/index.js +74 -16
  787. package/node_modules/@deepseek-ai/dsh-jobs/lib/invariant.js +67 -17
  788. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/archive-admission.js +43 -0
  789. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/index.js +34 -16
  790. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/invariant.js +90 -27
  791. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/types.js +3 -2
  792. package/node_modules/@deepseek-ai/dsh-jobs/lib/types/view.js +9 -0
  793. package/node_modules/@deepseek-ai/dsh-jobs/package.json +22 -11
  794. package/node_modules/@deepseek-ai/dsh-jobs-local/README.i18n.yaml +2 -2
  795. package/node_modules/@deepseek-ai/dsh-jobs-local/README.md +18 -11
  796. package/node_modules/@deepseek-ai/dsh-jobs-local/README.zh.md +17 -10
  797. package/node_modules/@deepseek-ai/dsh-jobs-local/lib/index.js +566 -193
  798. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  799. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  800. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  801. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  802. package/node_modules/@deepseek-ai/dsh-llm/README.md +11 -8
  803. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +11 -8
  804. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +41 -97
  805. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +69 -13
  806. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +3 -3
  807. package/node_modules/@deepseek-ai/dsh-llm/lib/types/assembler.js +4 -4
  808. package/node_modules/@deepseek-ai/dsh-llm/lib/types/content.js +12 -64
  809. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +3 -1
  810. package/node_modules/@deepseek-ai/dsh-llm/lib/types/message.js +21 -16
  811. package/node_modules/@deepseek-ai/dsh-llm/package.json +11 -11
  812. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  813. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +35 -49
  814. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +36 -50
  815. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +1132 -2048
  816. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +53 -43
  817. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  818. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +12 -9
  819. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +11 -8
  820. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +84 -184
  821. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +30 -24
  822. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +25 -25
  823. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  824. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  825. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  826. package/node_modules/@deepseek-ai/dsh-native-command/README.i18n.yaml +2 -2
  827. package/node_modules/@deepseek-ai/dsh-native-command/README.md +8 -9
  828. package/node_modules/@deepseek-ai/dsh-native-command/README.zh.md +8 -9
  829. package/node_modules/@deepseek-ai/dsh-native-command/lib/index.js +612 -3
  830. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/desktop-entry.js +79 -0
  831. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-linux.js +70 -0
  832. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications-windows.js +228 -0
  833. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/file-applications.js +191 -0
  834. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/index.js +10 -0
  835. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/path-opener.js +230 -0
  836. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/runner.js +27 -0
  837. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/types.js +25 -0
  838. package/node_modules/@deepseek-ai/dsh-native-command/lib/types/url-opener.js +88 -0
  839. package/node_modules/@deepseek-ai/dsh-native-command/package.json +10 -5
  840. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/lib/index.js +33 -57
  841. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  842. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +2 -2
  843. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +2 -2
  844. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +2 -2
  845. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +4 -4
  846. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +41 -3
  847. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +39 -1
  848. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +4 -3
  849. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  850. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  851. package/node_modules/@deepseek-ai/dsh-package-manifest/README.i18n.yaml +2 -2
  852. package/node_modules/@deepseek-ai/dsh-package-manifest/README.md +3 -1
  853. package/node_modules/@deepseek-ai/dsh-package-manifest/README.zh.md +3 -1
  854. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  855. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +2 -2
  856. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +1 -1
  857. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +1 -1
  858. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +16 -35
  859. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +54 -20
  860. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +7 -1
  861. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +14 -38
  862. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +23 -24
  863. package/node_modules/@deepseek-ai/dsh-persona/README.i18n.yaml +2 -2
  864. package/node_modules/@deepseek-ai/dsh-persona/README.md +1 -1
  865. package/node_modules/@deepseek-ai/dsh-persona/README.zh.md +1 -1
  866. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  867. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +1 -2
  868. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
  869. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +24 -24
  870. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  871. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +12 -2
  872. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +12 -2
  873. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +371 -74
  874. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +203 -29
  875. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +155 -15
  876. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +210 -70
  877. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +1 -1
  878. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +16 -2
  879. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +35 -5
  880. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/registry.js +95 -0
  881. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +5 -1
  882. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +37 -32
  883. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.i18n.yaml +2 -2
  884. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.md +1 -1
  885. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/README.zh.md +1 -1
  886. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/index.js +1 -1
  887. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/lib/types/index.js +1 -1
  888. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +20 -20
  889. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  890. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  891. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.i18n.yaml +2 -2
  892. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.md +6 -5
  893. package/node_modules/@deepseek-ai/dsh-pwsh-local/README.zh.md +6 -5
  894. package/node_modules/@deepseek-ai/dsh-pwsh-local/lib/index.js +161 -196
  895. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -13
  896. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.i18n.yaml +2 -2
  897. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.md +5 -5
  898. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/README.zh.md +5 -5
  899. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/lib/index.js +58 -63
  900. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  901. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +36 -60
  902. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  903. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  904. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.i18n.yaml +3 -3
  905. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.md +3 -3
  906. package/node_modules/@deepseek-ai/dsh-sandbox-local/README.zh.md +3 -3
  907. package/node_modules/@deepseek-ai/dsh-sandbox-local/lib/index.js +3 -2
  908. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  909. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +16 -16
  910. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.i18n.yaml +3 -3
  911. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.md +19 -15
  912. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/README.zh.md +17 -13
  913. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/index.js +1 -1
  914. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/runner.js +1 -1
  915. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/lib/{types-CutH1Lgc.js → types-DxezulnA.js} +267 -78
  916. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  917. package/node_modules/@deepseek-ai/dsh-schedule/README.i18n.yaml +2 -2
  918. package/node_modules/@deepseek-ai/dsh-schedule/README.md +3 -1
  919. package/node_modules/@deepseek-ai/dsh-schedule/README.zh.md +4 -1
  920. package/node_modules/@deepseek-ai/dsh-schedule/lib/index.js +104 -37
  921. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/index.js +61 -5
  922. package/node_modules/@deepseek-ai/dsh-schedule/lib/types/runtime.js +11 -1
  923. package/node_modules/@deepseek-ai/dsh-schedule/package.json +25 -23
  924. package/node_modules/@deepseek-ai/dsh-scope/package.json +5 -5
  925. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
  926. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -0
  927. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -0
  928. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +15 -0
  929. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +10 -8
  930. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/lib/index.js +1 -1
  931. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  932. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +31 -31
  933. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  934. package/node_modules/@deepseek-ai/dsh-session/README.i18n.yaml +2 -2
  935. package/node_modules/@deepseek-ai/dsh-session/README.md +11 -9
  936. package/node_modules/@deepseek-ai/dsh-session/README.zh.md +12 -8
  937. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +215 -125
  938. package/node_modules/@deepseek-ai/dsh-session/lib/invariant.js +4 -1
  939. package/node_modules/@deepseek-ai/dsh-session/lib/types/fork.js +28 -0
  940. package/node_modules/@deepseek-ai/dsh-session/lib/types/index.js +56 -61
  941. package/node_modules/@deepseek-ai/dsh-session/lib/types/invariant.js +5 -1
  942. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  943. package/node_modules/@deepseek-ai/dsh-session/lib/types/repair.js +52 -23
  944. package/node_modules/@deepseek-ai/dsh-session/lib/types/surface.js +73 -17
  945. package/node_modules/@deepseek-ai/dsh-session/lib/types/types.js +1 -1
  946. package/node_modules/@deepseek-ai/dsh-session/package.json +15 -11
  947. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  948. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  949. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.i18n.yaml +2 -2
  950. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.md +5 -1
  951. package/node_modules/@deepseek-ai/dsh-session-format-catalog/README.zh.md +5 -1
  952. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/index.js +55 -10
  953. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/children.js +17 -0
  954. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/generated.js +25 -11
  955. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/historical.js +20 -0
  956. package/node_modules/@deepseek-ai/dsh-session-format-catalog/lib/types/index.js +2 -0
  957. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -10
  958. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  959. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  960. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  961. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.i18n.yaml +6 -0
  962. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.md +350 -0
  963. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/README.zh.md +350 -0
  964. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/lib/index.js +1552 -0
  965. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +51 -0
  966. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/index.js +1 -0
  967. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/lib/types/index.js +1 -0
  968. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +19 -19
  969. package/node_modules/@deepseek-ai/dsh-session-log-export/README.i18n.yaml +2 -2
  970. package/node_modules/@deepseek-ai/dsh-session-log-export/README.md +6 -2
  971. package/node_modules/@deepseek-ai/dsh-session-log-export/README.zh.md +6 -2
  972. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/client.js +43 -20
  973. package/node_modules/@deepseek-ai/dsh-session-log-export/lib/index.js +48 -17
  974. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -23
  975. package/node_modules/@deepseek-ai/dsh-session-persistence/lib/index.js +2 -0
  976. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  977. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.i18n.yaml +2 -2
  978. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.md +6 -2
  979. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/README.zh.md +6 -2
  980. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/index.js +210 -45
  981. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +1456 -313
  982. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +14 -14
  983. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  984. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.i18n.yaml +2 -2
  985. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.md +2 -2
  986. package/node_modules/@deepseek-ai/dsh-session-projection-cache/README.zh.md +2 -2
  987. package/node_modules/@deepseek-ai/dsh-session-projection-cache/lib/index.js +71 -51
  988. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  989. package/node_modules/@deepseek-ai/dsh-session-query/lib/index.js +4 -5
  990. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  991. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  992. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +5 -5
  993. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +47 -19
  994. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +1 -1
  995. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +3 -7
  996. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/projection.js +1 -0
  997. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  998. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  999. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.i18n.yaml +2 -2
  1000. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.md +1 -1
  1001. package/node_modules/@deepseek-ai/dsh-session-telemetry/README.zh.md +1 -1
  1002. package/node_modules/@deepseek-ai/dsh-session-telemetry/lib/index.js +6 -5
  1003. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  1004. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +23 -23
  1005. package/node_modules/@deepseek-ai/dsh-session-title/package.json +19 -19
  1006. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +17 -17
  1007. package/node_modules/@deepseek-ai/dsh-session-title-llm/lib/index.js +1 -4
  1008. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  1009. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  1010. package/node_modules/@deepseek-ai/dsh-settings/README.i18n.yaml +2 -2
  1011. package/node_modules/@deepseek-ai/dsh-settings/README.md +19 -96
  1012. package/node_modules/@deepseek-ai/dsh-settings/README.zh.md +25 -102
  1013. package/node_modules/@deepseek-ai/dsh-settings/lib/index.js +360 -426
  1014. package/node_modules/@deepseek-ai/dsh-settings/lib/types/index.js +271 -512
  1015. package/node_modules/@deepseek-ai/dsh-settings/lib/types/redact.js +14 -8
  1016. package/node_modules/@deepseek-ai/dsh-settings/lib/types/schema.js +85 -0
  1017. package/node_modules/@deepseek-ai/dsh-settings/lib/types/types.js +1 -9
  1018. package/node_modules/@deepseek-ai/dsh-settings/package.json +21 -17
  1019. package/node_modules/@deepseek-ai/dsh-shell/README.i18n.yaml +2 -2
  1020. package/node_modules/@deepseek-ai/dsh-shell/README.md +17 -10
  1021. package/node_modules/@deepseek-ai/dsh-shell/README.zh.md +17 -10
  1022. package/node_modules/@deepseek-ai/dsh-shell/lib/index.js +19 -21
  1023. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -9
  1024. package/node_modules/@deepseek-ai/dsh-shell-env/README.i18n.yaml +2 -2
  1025. package/node_modules/@deepseek-ai/dsh-shell-env/README.md +5 -5
  1026. package/node_modules/@deepseek-ai/dsh-shell-env/README.zh.md +5 -5
  1027. package/node_modules/@deepseek-ai/dsh-shell-env/lib/index.js +10 -1
  1028. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -12
  1029. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  1030. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  1031. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  1032. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +6 -0
  1033. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +100 -0
  1034. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +100 -0
  1035. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-docx/SKILL.md +46 -0
  1036. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-pptx/SKILL.md +70 -0
  1037. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-xlsx/SKILL.md +56 -0
  1038. package/node_modules/@deepseek-ai/dsh-skill-office/assets/scripts/check_office.py +279 -0
  1039. package/node_modules/@deepseek-ai/dsh-skill-office/lib/index.js +80 -0
  1040. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +43 -0
  1041. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  1042. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  1043. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +21 -21
  1044. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  1045. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +8 -8
  1046. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  1047. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  1048. package/node_modules/@deepseek-ai/dsh-subagent/README.md +9 -6
  1049. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +9 -6
  1050. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +301 -239
  1051. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +60 -89
  1052. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +2 -56
  1053. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/archive-admission.js +151 -0
  1054. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/catalog.js +12 -6
  1055. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control-types.js +2 -3
  1056. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +2 -40
  1057. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -91
  1058. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/lifecycle.js +14 -19
  1059. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/list-children.js +45 -49
  1060. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/projection.js +10 -4
  1061. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/run-settlement.js +1 -1
  1062. package/node_modules/@deepseek-ai/dsh-subagent/package.json +57 -54
  1063. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  1064. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +18 -18
  1065. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +26 -26
  1066. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
  1067. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  1068. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  1069. package/node_modules/@deepseek-ai/dsh-system-prompt/lib/index.js +3 -3
  1070. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +10 -10
  1071. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  1072. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  1073. package/node_modules/@deepseek-ai/dsh-time-context/lib/index.js +2 -3
  1074. package/node_modules/@deepseek-ai/dsh-time-context/lib/invariant.js +4 -4
  1075. package/node_modules/@deepseek-ai/dsh-time-context/package.json +23 -23
  1076. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  1077. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +35 -57
  1078. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  1079. package/node_modules/@deepseek-ai/dsh-token-meter/lib/index.js +0 -7
  1080. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/estimate.js +0 -3
  1081. package/node_modules/@deepseek-ai/dsh-token-meter/lib/types/surface-fold.js +0 -5
  1082. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  1083. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +11 -11
  1084. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  1085. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +16 -10
  1086. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +16 -10
  1087. package/node_modules/@deepseek-ai/dsh-tool-bash/lib/index.js +421 -183
  1088. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  1089. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.i18n.yaml +2 -2
  1090. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.md +1 -1
  1091. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/README.zh.md +1 -1
  1092. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/lib/index.js +9 -3
  1093. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +22 -22
  1094. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  1095. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  1096. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +6 -5
  1097. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +6 -5
  1098. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +4 -9980
  1099. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +7809 -0
  1100. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/config.js +93 -0
  1101. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/host.js +17 -0
  1102. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/index.js +57 -0
  1103. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/present.js +16 -0
  1104. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/providers.js +85 -0
  1105. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +21 -12
  1106. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +30 -30
  1107. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +23 -23
  1108. package/node_modules/@deepseek-ai/dsh-tool-goal/lib/index.js +1 -2
  1109. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  1110. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.i18n.yaml +2 -2
  1111. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.md +9 -8
  1112. package/node_modules/@deepseek-ai/dsh-tool-jobs/README.zh.md +10 -9
  1113. package/node_modules/@deepseek-ai/dsh-tool-jobs/lib/index.js +110 -51
  1114. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  1115. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +2 -2
  1116. package/node_modules/@deepseek-ai/dsh-tool-present/README.md +1 -1
  1117. package/node_modules/@deepseek-ai/dsh-tool-present/README.zh.md +1 -1
  1118. package/node_modules/@deepseek-ai/dsh-tool-present/lib/index.js +1 -1
  1119. package/node_modules/@deepseek-ai/dsh-tool-present/lib/types/index.js +5 -4
  1120. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  1121. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.i18n.yaml +2 -2
  1122. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.md +10 -5
  1123. package/node_modules/@deepseek-ai/dsh-tool-pwsh/README.zh.md +10 -5
  1124. package/node_modules/@deepseek-ai/dsh-tool-pwsh/lib/index.js +440 -207
  1125. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  1126. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.i18n.yaml +2 -2
  1127. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.md +1 -1
  1128. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/README.zh.md +1 -1
  1129. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/lib/index.js +9 -3
  1130. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +23 -23
  1131. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  1132. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  1133. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +20 -20
  1134. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
  1135. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  1136. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  1137. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +2 -2
  1138. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/model-selection-settings.js +12 -38
  1139. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +30 -32
  1140. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.i18n.yaml +2 -2
  1141. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.md +4 -4
  1142. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/README.zh.md +4 -4
  1143. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/index.js +1 -1
  1144. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/index.js +1 -1
  1145. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/lib/types/list-agents.js +10 -20
  1146. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  1147. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +20 -20
  1148. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +21 -21
  1149. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.i18n.yaml +2 -2
  1150. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.md +21 -8
  1151. package/node_modules/@deepseek-ai/dsh-tool-workflow/README.zh.md +21 -8
  1152. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/index.js +179 -11
  1153. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/index.js +147 -14
  1154. package/node_modules/@deepseek-ai/dsh-tool-workflow/lib/types/record.js +43 -0
  1155. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +25 -21
  1156. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.i18n.yaml +6 -0
  1157. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.md +128 -0
  1158. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/README.zh.md +128 -0
  1159. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/lib/index.js +252 -0
  1160. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +44 -0
  1161. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
  1162. package/node_modules/@deepseek-ai/dsh-tools/README.md +4 -0
  1163. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +4 -0
  1164. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +5 -6
  1165. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +2 -1
  1166. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +1 -1
  1167. package/node_modules/@deepseek-ai/dsh-tools/lib/types/schema.js +1 -0
  1168. package/node_modules/@deepseek-ai/dsh-tools/package.json +27 -27
  1169. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  1170. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +18 -16
  1171. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +18 -16
  1172. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +866 -144
  1173. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +75 -75
  1174. package/node_modules/@deepseek-ai/dsh-typert-loader/lib/index.js +1 -0
  1175. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  1176. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  1177. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +7 -2
  1178. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +7 -2
  1179. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +66 -3
  1180. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +20 -2
  1181. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/json-value.js +61 -0
  1182. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +6 -3
  1183. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/client.js +3 -0
  1184. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/index.js +3 -0
  1185. package/node_modules/@deepseek-ai/dsh-typert-registry/lib/types/service.js +6 -0
  1186. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  1187. package/node_modules/@deepseek-ai/dsh-user-approval/lib/index.js +1 -4
  1188. package/node_modules/@deepseek-ai/dsh-user-approval/lib/invariant.js +1 -4
  1189. package/node_modules/@deepseek-ai/dsh-user-approval/lib/types/index.js +1 -1
  1190. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +18 -18
  1191. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +9 -9
  1192. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  1193. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  1194. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  1195. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  1196. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  1197. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  1198. package/node_modules/@deepseek-ai/dsh-web-app/README.md +9 -6
  1199. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +9 -6
  1200. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +51 -29
  1201. package/node_modules/@deepseek-ai/dsh-web-app/lib/index.js +293 -1
  1202. package/node_modules/@deepseek-ai/dsh-web-app/package.json +150 -102
  1203. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +154 -0
  1204. package/node_modules/@deepseek-ai/dsh-web-app/presets/minimal.patch.yml +61 -0
  1205. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +152 -0
  1206. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +146 -0
  1207. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  1208. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-DU8FBaxM.js +127 -0
  1209. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Uv-aF9RH.css +1 -0
  1210. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon-dark.svg +3 -0
  1211. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/favicon.svg +0 -5
  1212. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +4 -3
  1213. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/manifest.webmanifest +3 -4
  1214. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +15 -10
  1215. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.i18n.yaml +2 -2
  1216. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.md +4 -4
  1217. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/README.zh.md +4 -4
  1218. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/lib/index.js +21 -29
  1219. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +16 -18
  1220. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  1221. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  1222. package/node_modules/@deepseek-ai/dsh-webhook/lib/index.js +121 -50
  1223. package/node_modules/@deepseek-ai/dsh-webhook/lib/types/session.js +111 -46
  1224. package/node_modules/@deepseek-ai/dsh-webhook/package.json +25 -25
  1225. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  1226. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  1227. package/node_modules/@deepseek-ai/dsh-workflow/package.json +13 -13
  1228. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  1229. package/node_modules/@deepseek-ai/dsh-workspace/README.i18n.yaml +2 -2
  1230. package/node_modules/@deepseek-ai/dsh-workspace/README.md +16 -4
  1231. package/node_modules/@deepseek-ai/dsh-workspace/README.zh.md +17 -4
  1232. package/node_modules/@deepseek-ai/dsh-workspace/lib/index.js +166 -25
  1233. package/node_modules/@deepseek-ai/dsh-workspace/lib/invariant.js +8 -3
  1234. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/index.js +185 -21
  1235. package/node_modules/@deepseek-ai/dsh-workspace/lib/types/spec.js +11 -4
  1236. package/node_modules/@deepseek-ai/dsh-workspace/package.json +16 -16
  1237. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  1238. package/node_modules/@deepseek-ai/schemastery/README.md +4 -0
  1239. package/node_modules/@deepseek-ai/schemastery/lib/index.cjs +40 -1
  1240. package/node_modules/@deepseek-ai/schemastery/lib/index.mjs +41 -2
  1241. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  1242. package/node_modules/@deepseek-ai/schemastery/src/index.ts +93 -33
  1243. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +0 -1
  1244. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +0 -1
  1245. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +0 -1
  1246. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +0 -1
  1247. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +0 -1
  1248. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +0 -2
  1249. package/node_modules/@eslint-community/regexpp/LICENSE +21 -0
  1250. package/node_modules/@eslint-community/regexpp/README.md +177 -0
  1251. package/node_modules/@eslint-community/regexpp/index.js +3042 -0
  1252. package/node_modules/@eslint-community/regexpp/index.mjs +3032 -0
  1253. package/node_modules/@eslint-community/regexpp/package.json +71 -0
  1254. package/node_modules/ajv/.runkit_example.js +23 -0
  1255. package/node_modules/ajv/LICENSE +22 -0
  1256. package/node_modules/ajv/README.md +207 -0
  1257. package/node_modules/ajv/dist/2019.js +61 -0
  1258. package/node_modules/ajv/dist/2020.js +55 -0
  1259. package/node_modules/ajv/dist/ajv.js +50 -0
  1260. package/node_modules/ajv/dist/compile/codegen/code.js +156 -0
  1261. package/node_modules/ajv/dist/compile/codegen/index.js +697 -0
  1262. package/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
  1263. package/node_modules/ajv/dist/compile/errors.js +123 -0
  1264. package/node_modules/ajv/dist/compile/index.js +242 -0
  1265. package/node_modules/ajv/dist/compile/jtd/parse.js +350 -0
  1266. package/node_modules/ajv/dist/compile/jtd/serialize.js +236 -0
  1267. package/node_modules/ajv/dist/compile/jtd/types.js +14 -0
  1268. package/node_modules/ajv/dist/compile/names.js +28 -0
  1269. package/node_modules/ajv/dist/compile/ref_error.js +12 -0
  1270. package/node_modules/ajv/dist/compile/resolve.js +155 -0
  1271. package/node_modules/ajv/dist/compile/rules.js +26 -0
  1272. package/node_modules/ajv/dist/compile/util.js +178 -0
  1273. package/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
  1274. package/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
  1275. package/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
  1276. package/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
  1277. package/node_modules/ajv/dist/compile/validate/index.js +520 -0
  1278. package/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
  1279. package/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
  1280. package/node_modules/ajv/dist/core.js +618 -0
  1281. package/node_modules/ajv/dist/jtd.js +72 -0
  1282. package/node_modules/ajv/dist/refs/data.json +13 -0
  1283. package/node_modules/ajv/dist/refs/json-schema-2019-09/index.js +28 -0
  1284. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1285. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/content.json +17 -0
  1286. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/core.json +57 -0
  1287. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/format.json +14 -0
  1288. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1289. package/node_modules/ajv/dist/refs/json-schema-2019-09/meta/validation.json +90 -0
  1290. package/node_modules/ajv/dist/refs/json-schema-2019-09/schema.json +39 -0
  1291. package/node_modules/ajv/dist/refs/json-schema-2020-12/index.js +30 -0
  1292. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1293. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/content.json +17 -0
  1294. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/core.json +51 -0
  1295. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1296. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1297. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1298. package/node_modules/ajv/dist/refs/json-schema-2020-12/meta/validation.json +90 -0
  1299. package/node_modules/ajv/dist/refs/json-schema-2020-12/schema.json +55 -0
  1300. package/node_modules/ajv/dist/refs/json-schema-draft-06.json +137 -0
  1301. package/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
  1302. package/node_modules/ajv/dist/refs/json-schema-secure.json +88 -0
  1303. package/node_modules/ajv/dist/refs/jtd-schema.js +118 -0
  1304. package/node_modules/ajv/dist/runtime/equal.js +7 -0
  1305. package/node_modules/ajv/dist/runtime/parseJson.js +185 -0
  1306. package/node_modules/ajv/dist/runtime/quote.js +30 -0
  1307. package/node_modules/ajv/dist/runtime/re2.js +6 -0
  1308. package/node_modules/ajv/dist/runtime/timestamp.js +42 -0
  1309. package/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
  1310. package/node_modules/ajv/dist/runtime/uri.js +6 -0
  1311. package/node_modules/ajv/dist/runtime/validation_error.js +11 -0
  1312. package/node_modules/ajv/dist/standalone/index.js +90 -0
  1313. package/node_modules/ajv/dist/standalone/instance.js +35 -0
  1314. package/node_modules/ajv/dist/types/index.js +3 -0
  1315. package/node_modules/ajv/dist/types/json-schema.js +3 -0
  1316. package/node_modules/ajv/dist/types/jtd-schema.js +3 -0
  1317. package/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
  1318. package/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
  1319. package/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
  1320. package/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
  1321. package/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
  1322. package/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
  1323. package/node_modules/ajv/dist/vocabularies/applicator/dependentSchemas.js +11 -0
  1324. package/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
  1325. package/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
  1326. package/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
  1327. package/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
  1328. package/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
  1329. package/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
  1330. package/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
  1331. package/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
  1332. package/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
  1333. package/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
  1334. package/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
  1335. package/node_modules/ajv/dist/vocabularies/code.js +131 -0
  1336. package/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
  1337. package/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
  1338. package/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
  1339. package/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
  1340. package/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
  1341. package/node_modules/ajv/dist/vocabularies/draft2020.js +23 -0
  1342. package/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
  1343. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicAnchor.js +30 -0
  1344. package/node_modules/ajv/dist/vocabularies/dynamic/dynamicRef.js +51 -0
  1345. package/node_modules/ajv/dist/vocabularies/dynamic/index.js +9 -0
  1346. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveAnchor.js +16 -0
  1347. package/node_modules/ajv/dist/vocabularies/dynamic/recursiveRef.js +10 -0
  1348. package/node_modules/ajv/dist/vocabularies/errors.js +3 -0
  1349. package/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
  1350. package/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
  1351. package/node_modules/ajv/dist/vocabularies/jtd/discriminator.js +71 -0
  1352. package/node_modules/ajv/dist/vocabularies/jtd/elements.js +24 -0
  1353. package/node_modules/ajv/dist/vocabularies/jtd/enum.js +43 -0
  1354. package/node_modules/ajv/dist/vocabularies/jtd/error.js +20 -0
  1355. package/node_modules/ajv/dist/vocabularies/jtd/index.js +29 -0
  1356. package/node_modules/ajv/dist/vocabularies/jtd/metadata.js +25 -0
  1357. package/node_modules/ajv/dist/vocabularies/jtd/nullable.js +22 -0
  1358. package/node_modules/ajv/dist/vocabularies/jtd/optionalProperties.js +15 -0
  1359. package/node_modules/ajv/dist/vocabularies/jtd/properties.js +149 -0
  1360. package/node_modules/ajv/dist/vocabularies/jtd/ref.js +67 -0
  1361. package/node_modules/ajv/dist/vocabularies/jtd/type.js +69 -0
  1362. package/node_modules/ajv/dist/vocabularies/jtd/union.js +12 -0
  1363. package/node_modules/ajv/dist/vocabularies/jtd/values.js +51 -0
  1364. package/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
  1365. package/node_modules/ajv/dist/vocabularies/next.js +8 -0
  1366. package/node_modules/ajv/dist/vocabularies/unevaluated/index.js +7 -0
  1367. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedItems.js +40 -0
  1368. package/node_modules/ajv/dist/vocabularies/unevaluated/unevaluatedProperties.js +65 -0
  1369. package/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
  1370. package/node_modules/ajv/dist/vocabularies/validation/dependentRequired.js +12 -0
  1371. package/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
  1372. package/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
  1373. package/node_modules/ajv/dist/vocabularies/validation/limitContains.js +15 -0
  1374. package/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
  1375. package/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
  1376. package/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
  1377. package/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
  1378. package/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
  1379. package/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
  1380. package/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
  1381. package/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
  1382. package/node_modules/ajv/lib/2019.ts +81 -0
  1383. package/node_modules/ajv/lib/2020.ts +75 -0
  1384. package/node_modules/ajv/lib/ajv.ts +70 -0
  1385. package/node_modules/ajv/lib/compile/codegen/code.ts +169 -0
  1386. package/node_modules/ajv/lib/compile/codegen/index.ts +852 -0
  1387. package/node_modules/ajv/lib/compile/codegen/scope.ts +215 -0
  1388. package/node_modules/ajv/lib/compile/errors.ts +184 -0
  1389. package/node_modules/ajv/lib/compile/index.ts +324 -0
  1390. package/node_modules/ajv/lib/compile/jtd/parse.ts +411 -0
  1391. package/node_modules/ajv/lib/compile/jtd/serialize.ts +277 -0
  1392. package/node_modules/ajv/lib/compile/jtd/types.ts +16 -0
  1393. package/node_modules/ajv/lib/compile/names.ts +27 -0
  1394. package/node_modules/ajv/lib/compile/ref_error.ts +13 -0
  1395. package/node_modules/ajv/lib/compile/resolve.ts +149 -0
  1396. package/node_modules/ajv/lib/compile/rules.ts +50 -0
  1397. package/node_modules/ajv/lib/compile/util.ts +213 -0
  1398. package/node_modules/ajv/lib/compile/validate/applicability.ts +22 -0
  1399. package/node_modules/ajv/lib/compile/validate/boolSchema.ts +47 -0
  1400. package/node_modules/ajv/lib/compile/validate/dataType.ts +230 -0
  1401. package/node_modules/ajv/lib/compile/validate/defaults.ts +32 -0
  1402. package/node_modules/ajv/lib/compile/validate/index.ts +582 -0
  1403. package/node_modules/ajv/lib/compile/validate/keyword.ts +171 -0
  1404. package/node_modules/ajv/lib/compile/validate/subschema.ts +135 -0
  1405. package/node_modules/ajv/lib/core.ts +892 -0
  1406. package/node_modules/ajv/lib/jtd.ts +132 -0
  1407. package/node_modules/ajv/lib/refs/data.json +13 -0
  1408. package/node_modules/ajv/lib/refs/json-schema-2019-09/index.ts +28 -0
  1409. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/applicator.json +53 -0
  1410. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/content.json +17 -0
  1411. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/core.json +57 -0
  1412. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/format.json +14 -0
  1413. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/meta-data.json +37 -0
  1414. package/node_modules/ajv/lib/refs/json-schema-2019-09/meta/validation.json +90 -0
  1415. package/node_modules/ajv/lib/refs/json-schema-2019-09/schema.json +39 -0
  1416. package/node_modules/ajv/lib/refs/json-schema-2020-12/index.ts +30 -0
  1417. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/applicator.json +48 -0
  1418. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/content.json +17 -0
  1419. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/core.json +51 -0
  1420. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/format-annotation.json +14 -0
  1421. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/meta-data.json +37 -0
  1422. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/unevaluated.json +15 -0
  1423. package/node_modules/ajv/lib/refs/json-schema-2020-12/meta/validation.json +90 -0
  1424. package/node_modules/ajv/lib/refs/json-schema-2020-12/schema.json +55 -0
  1425. package/node_modules/ajv/lib/refs/json-schema-draft-06.json +137 -0
  1426. package/node_modules/ajv/lib/refs/json-schema-draft-07.json +151 -0
  1427. package/node_modules/ajv/lib/refs/json-schema-secure.json +88 -0
  1428. package/node_modules/ajv/lib/refs/jtd-schema.ts +130 -0
  1429. package/node_modules/ajv/lib/runtime/equal.ts +7 -0
  1430. package/node_modules/ajv/lib/runtime/parseJson.ts +177 -0
  1431. package/node_modules/ajv/lib/runtime/quote.ts +31 -0
  1432. package/node_modules/ajv/lib/runtime/re2.ts +6 -0
  1433. package/node_modules/ajv/lib/runtime/timestamp.ts +46 -0
  1434. package/node_modules/ajv/lib/runtime/ucs2length.ts +20 -0
  1435. package/node_modules/ajv/lib/runtime/uri.ts +6 -0
  1436. package/node_modules/ajv/lib/runtime/validation_error.ts +13 -0
  1437. package/node_modules/ajv/lib/standalone/index.ts +100 -0
  1438. package/node_modules/ajv/lib/standalone/instance.ts +36 -0
  1439. package/node_modules/ajv/lib/types/index.ts +244 -0
  1440. package/node_modules/ajv/lib/types/json-schema.ts +187 -0
  1441. package/node_modules/ajv/lib/types/jtd-schema.ts +273 -0
  1442. package/node_modules/ajv/lib/vocabularies/applicator/additionalItems.ts +56 -0
  1443. package/node_modules/ajv/lib/vocabularies/applicator/additionalProperties.ts +118 -0
  1444. package/node_modules/ajv/lib/vocabularies/applicator/allOf.ts +22 -0
  1445. package/node_modules/ajv/lib/vocabularies/applicator/anyOf.ts +14 -0
  1446. package/node_modules/ajv/lib/vocabularies/applicator/contains.ts +109 -0
  1447. package/node_modules/ajv/lib/vocabularies/applicator/dependencies.ts +112 -0
  1448. package/node_modules/ajv/lib/vocabularies/applicator/dependentSchemas.ts +11 -0
  1449. package/node_modules/ajv/lib/vocabularies/applicator/if.ts +80 -0
  1450. package/node_modules/ajv/lib/vocabularies/applicator/index.ts +53 -0
  1451. package/node_modules/ajv/lib/vocabularies/applicator/items.ts +59 -0
  1452. package/node_modules/ajv/lib/vocabularies/applicator/items2020.ts +36 -0
  1453. package/node_modules/ajv/lib/vocabularies/applicator/not.ts +38 -0
  1454. package/node_modules/ajv/lib/vocabularies/applicator/oneOf.ts +82 -0
  1455. package/node_modules/ajv/lib/vocabularies/applicator/patternProperties.ts +91 -0
  1456. package/node_modules/ajv/lib/vocabularies/applicator/prefixItems.ts +12 -0
  1457. package/node_modules/ajv/lib/vocabularies/applicator/properties.ts +57 -0
  1458. package/node_modules/ajv/lib/vocabularies/applicator/propertyNames.ts +50 -0
  1459. package/node_modules/ajv/lib/vocabularies/applicator/thenElse.ts +13 -0
  1460. package/node_modules/ajv/lib/vocabularies/code.ts +168 -0
  1461. package/node_modules/ajv/lib/vocabularies/core/id.ts +10 -0
  1462. package/node_modules/ajv/lib/vocabularies/core/index.ts +16 -0
  1463. package/node_modules/ajv/lib/vocabularies/core/ref.ts +129 -0
  1464. package/node_modules/ajv/lib/vocabularies/discriminator/index.ts +113 -0
  1465. package/node_modules/ajv/lib/vocabularies/discriminator/types.ts +12 -0
  1466. package/node_modules/ajv/lib/vocabularies/draft2020.ts +23 -0
  1467. package/node_modules/ajv/lib/vocabularies/draft7.ts +17 -0
  1468. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicAnchor.ts +31 -0
  1469. package/node_modules/ajv/lib/vocabularies/dynamic/dynamicRef.ts +51 -0
  1470. package/node_modules/ajv/lib/vocabularies/dynamic/index.ts +9 -0
  1471. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveAnchor.ts +14 -0
  1472. package/node_modules/ajv/lib/vocabularies/dynamic/recursiveRef.ts +10 -0
  1473. package/node_modules/ajv/lib/vocabularies/errors.ts +18 -0
  1474. package/node_modules/ajv/lib/vocabularies/format/format.ts +120 -0
  1475. package/node_modules/ajv/lib/vocabularies/format/index.ts +6 -0
  1476. package/node_modules/ajv/lib/vocabularies/jtd/discriminator.ts +89 -0
  1477. package/node_modules/ajv/lib/vocabularies/jtd/elements.ts +32 -0
  1478. package/node_modules/ajv/lib/vocabularies/jtd/enum.ts +45 -0
  1479. package/node_modules/ajv/lib/vocabularies/jtd/error.ts +23 -0
  1480. package/node_modules/ajv/lib/vocabularies/jtd/index.ts +37 -0
  1481. package/node_modules/ajv/lib/vocabularies/jtd/metadata.ts +24 -0
  1482. package/node_modules/ajv/lib/vocabularies/jtd/nullable.ts +21 -0
  1483. package/node_modules/ajv/lib/vocabularies/jtd/optionalProperties.ts +15 -0
  1484. package/node_modules/ajv/lib/vocabularies/jtd/properties.ts +184 -0
  1485. package/node_modules/ajv/lib/vocabularies/jtd/ref.ts +76 -0
  1486. package/node_modules/ajv/lib/vocabularies/jtd/type.ts +75 -0
  1487. package/node_modules/ajv/lib/vocabularies/jtd/union.ts +12 -0
  1488. package/node_modules/ajv/lib/vocabularies/jtd/values.ts +58 -0
  1489. package/node_modules/ajv/lib/vocabularies/metadata.ts +17 -0
  1490. package/node_modules/ajv/lib/vocabularies/next.ts +8 -0
  1491. package/node_modules/ajv/lib/vocabularies/unevaluated/index.ts +7 -0
  1492. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedItems.ts +47 -0
  1493. package/node_modules/ajv/lib/vocabularies/unevaluated/unevaluatedProperties.ts +85 -0
  1494. package/node_modules/ajv/lib/vocabularies/validation/const.ts +28 -0
  1495. package/node_modules/ajv/lib/vocabularies/validation/dependentRequired.ts +23 -0
  1496. package/node_modules/ajv/lib/vocabularies/validation/enum.ts +54 -0
  1497. package/node_modules/ajv/lib/vocabularies/validation/index.ts +49 -0
  1498. package/node_modules/ajv/lib/vocabularies/validation/limitContains.ts +16 -0
  1499. package/node_modules/ajv/lib/vocabularies/validation/limitItems.ts +26 -0
  1500. package/node_modules/ajv/lib/vocabularies/validation/limitLength.ts +30 -0
  1501. package/node_modules/ajv/lib/vocabularies/validation/limitNumber.ts +42 -0
  1502. package/node_modules/ajv/lib/vocabularies/validation/limitProperties.ts +26 -0
  1503. package/node_modules/ajv/lib/vocabularies/validation/multipleOf.ts +34 -0
  1504. package/node_modules/ajv/lib/vocabularies/validation/pattern.ts +39 -0
  1505. package/node_modules/ajv/lib/vocabularies/validation/required.ts +98 -0
  1506. package/node_modules/ajv/lib/vocabularies/validation/uniqueItems.ts +79 -0
  1507. package/node_modules/ajv/package.json +104 -0
  1508. package/node_modules/fast-uri/.gitattributes +2 -0
  1509. package/node_modules/fast-uri/.github/dependabot.yml +13 -0
  1510. package/node_modules/fast-uri/.github/workflows/ci.yml +106 -0
  1511. package/node_modules/fast-uri/.github/workflows/lock-threads.yml +19 -0
  1512. package/node_modules/fast-uri/.github/workflows/package-manager-ci.yml +24 -0
  1513. package/node_modules/fast-uri/LICENSE +30 -0
  1514. package/node_modules/fast-uri/README.md +152 -0
  1515. package/node_modules/fast-uri/benchmark/benchmark.mjs +159 -0
  1516. package/node_modules/fast-uri/benchmark/equal.mjs +51 -0
  1517. package/node_modules/fast-uri/benchmark/non-simple-domain.mjs +22 -0
  1518. package/node_modules/fast-uri/benchmark/package.json +17 -0
  1519. package/node_modules/fast-uri/benchmark/string-array-to-hex-stripped.mjs +24 -0
  1520. package/node_modules/fast-uri/benchmark/ws-is-secure.mjs +65 -0
  1521. package/node_modules/fast-uri/eslint.config.js +6 -0
  1522. package/node_modules/fast-uri/index.js +631 -0
  1523. package/node_modules/fast-uri/lib/schemes.js +272 -0
  1524. package/node_modules/fast-uri/lib/utils.js +747 -0
  1525. package/node_modules/fast-uri/package.json +56 -0
  1526. package/node_modules/fast-uri/test/ajv.test.js +43 -0
  1527. package/node_modules/fast-uri/test/component-safe-serialization.test.js +163 -0
  1528. package/node_modules/fast-uri/test/equal.test.js +145 -0
  1529. package/node_modules/fast-uri/test/fixtures/uri-js-parse.json +503 -0
  1530. package/node_modules/fast-uri/test/fixtures/uri-js-serialize.json +120 -0
  1531. package/node_modules/fast-uri/test/ipv6-canonical.test.js +34 -0
  1532. package/node_modules/fast-uri/test/ipv6-validation.test.js +124 -0
  1533. package/node_modules/fast-uri/test/malformed-percent.test.js +77 -0
  1534. package/node_modules/fast-uri/test/malformed-urn.test.js +61 -0
  1535. package/node_modules/fast-uri/test/parse.test.js +327 -0
  1536. package/node_modules/fast-uri/test/query-fragment-normalization.test.js +33 -0
  1537. package/node_modules/fast-uri/test/reserved-path-normalization.test.js +109 -0
  1538. package/node_modules/fast-uri/test/resolve.test.js +87 -0
  1539. package/node_modules/fast-uri/test/rfc-3986.test.js +90 -0
  1540. package/node_modules/fast-uri/test/scheme-validation.test.js +124 -0
  1541. package/node_modules/fast-uri/test/security-normalization.test.js +178 -0
  1542. package/node_modules/fast-uri/test/security.test.js +431 -0
  1543. package/node_modules/fast-uri/test/serialize.test.js +151 -0
  1544. package/node_modules/fast-uri/test/uri-js-compatibility.test.js +33 -0
  1545. package/node_modules/fast-uri/test/uri-js.test.js +912 -0
  1546. package/node_modules/fast-uri/test/urn-full-input.test.js +29 -0
  1547. package/node_modules/fast-uri/test/util.test.js +38 -0
  1548. package/node_modules/fast-uri/test/websocket-query-preservation.test.js +24 -0
  1549. package/node_modules/fast-uri/tsconfig.json +9 -0
  1550. package/node_modules/fast-uri/types/index.test-d.ts +17 -0
  1551. package/node_modules/json-schema-traverse/.eslintrc.yml +27 -0
  1552. package/node_modules/json-schema-traverse/.github/FUNDING.yml +2 -0
  1553. package/node_modules/json-schema-traverse/.github/workflows/build.yml +28 -0
  1554. package/node_modules/json-schema-traverse/.github/workflows/publish.yml +27 -0
  1555. package/node_modules/json-schema-traverse/LICENSE +21 -0
  1556. package/node_modules/json-schema-traverse/README.md +95 -0
  1557. package/node_modules/json-schema-traverse/index.js +93 -0
  1558. package/node_modules/json-schema-traverse/package.json +38 -0
  1559. package/node_modules/json-schema-traverse/spec/.eslintrc.yml +6 -0
  1560. package/node_modules/json-schema-traverse/spec/fixtures/schema.js +125 -0
  1561. package/node_modules/json-schema-traverse/spec/index.spec.js +171 -0
  1562. package/node_modules/require-from-string/index.js +34 -0
  1563. package/node_modules/require-from-string/license +21 -0
  1564. package/node_modules/require-from-string/package.json +25 -0
  1565. package/node_modules/require-from-string/readme.md +56 -0
  1566. package/node_modules/sherpa-onnx-node/README.md +11 -0
  1567. package/node_modules/sherpa-onnx-node/addon-static-import.js +70 -0
  1568. package/node_modules/sherpa-onnx-node/addon.js +98 -0
  1569. package/node_modules/sherpa-onnx-node/audio-tagg.js +45 -0
  1570. package/node_modules/sherpa-onnx-node/keyword-spotter.js +68 -0
  1571. package/node_modules/sherpa-onnx-node/non-streaming-asr.js +158 -0
  1572. package/node_modules/sherpa-onnx-node/non-streaming-speaker-diarization.js +38 -0
  1573. package/node_modules/sherpa-onnx-node/non-streaming-speech-denoiser.js +32 -0
  1574. package/node_modules/sherpa-onnx-node/non-streaming-tts.js +116 -0
  1575. package/node_modules/sherpa-onnx-node/online-speech-denoiser.js +46 -0
  1576. package/node_modules/sherpa-onnx-node/package.json +56 -0
  1577. package/node_modules/sherpa-onnx-node/punctuation.js +43 -0
  1578. package/node_modules/sherpa-onnx-node/resampler.js +80 -0
  1579. package/node_modules/sherpa-onnx-node/sherpa-onnx.js +49 -0
  1580. package/node_modules/sherpa-onnx-node/speaker-identification.js +152 -0
  1581. package/node_modules/sherpa-onnx-node/spoken-language-identification.js +38 -0
  1582. package/node_modules/sherpa-onnx-node/streaming-asr.js +181 -0
  1583. package/node_modules/sherpa-onnx-node/types.js +788 -0
  1584. package/node_modules/sherpa-onnx-node/vad.js +134 -0
  1585. package/package.json +318 -272
  1586. package/node_modules/@bufbuild/protobuf/README.md +0 -41
  1587. package/node_modules/@bufbuild/protobuf/dist/commonjs/clone.js +0 -66
  1588. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/boot.js +0 -18
  1589. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/enum.js +0 -31
  1590. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/extension.js +0 -28
  1591. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/file.js +0 -18
  1592. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/index.js +0 -39
  1593. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/message.js +0 -24
  1594. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/service.js +0 -27
  1595. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/symbols.js +0 -43
  1596. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv1/types.js +0 -15
  1597. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/boot.js +0 -105
  1598. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/embed.js +0 -244
  1599. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/enum.js +0 -58
  1600. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/extension.js +0 -28
  1601. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/file.js +0 -35
  1602. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/index.js +0 -39
  1603. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/message.js +0 -24
  1604. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/restore-json-names.js +0 -29
  1605. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/scalar.js +0 -67
  1606. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/service.js +0 -27
  1607. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/symbols.js +0 -74
  1608. package/node_modules/@bufbuild/protobuf/dist/commonjs/codegenv2/types.js +0 -15
  1609. package/node_modules/@bufbuild/protobuf/dist/commonjs/create.js +0 -296
  1610. package/node_modules/@bufbuild/protobuf/dist/commonjs/descriptors.js +0 -53
  1611. package/node_modules/@bufbuild/protobuf/dist/commonjs/equals.js +0 -209
  1612. package/node_modules/@bufbuild/protobuf/dist/commonjs/extensions.js +0 -168
  1613. package/node_modules/@bufbuild/protobuf/dist/commonjs/fields.js +0 -45
  1614. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-binary.js +0 -415
  1615. package/node_modules/@bufbuild/protobuf/dist/commonjs/from-json.js +0 -1037
  1616. package/node_modules/@bufbuild/protobuf/dist/commonjs/index.js +0 -55
  1617. package/node_modules/@bufbuild/protobuf/dist/commonjs/is-message.js +0 -33
  1618. package/node_modules/@bufbuild/protobuf/dist/commonjs/json-value.js +0 -15
  1619. package/node_modules/@bufbuild/protobuf/dist/commonjs/merge.js +0 -70
  1620. package/node_modules/@bufbuild/protobuf/dist/commonjs/package.json +0 -4
  1621. package/node_modules/@bufbuild/protobuf/dist/commonjs/proto-int64.js +0 -131
  1622. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/error.js +0 -36
  1623. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/guard.js +0 -78
  1624. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/index.js +0 -41
  1625. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/message.js +0 -157
  1626. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/names.js +0 -115
  1627. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/nested-types.js +0 -110
  1628. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/path.js +0 -376
  1629. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-check.js +0 -292
  1630. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect-types.js +0 -16
  1631. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/reflect.js +0 -469
  1632. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/scalar.js +0 -129
  1633. package/node_modules/@bufbuild/protobuf/dist/commonjs/reflect/unsafe.js +0 -149
  1634. package/node_modules/@bufbuild/protobuf/dist/commonjs/registry.js +0 -954
  1635. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-binary.js +0 -437
  1636. package/node_modules/@bufbuild/protobuf/dist/commonjs/to-json.js +0 -625
  1637. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/from-text.js +0 -684
  1638. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/index.js +0 -21
  1639. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/is-group-like.js +0 -47
  1640. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/reader.js +0 -481
  1641. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/to-text.js +0 -358
  1642. package/node_modules/@bufbuild/protobuf/dist/commonjs/txtpb/writer.js +0 -220
  1643. package/node_modules/@bufbuild/protobuf/dist/commonjs/types.js +0 -15
  1644. package/node_modules/@bufbuild/protobuf/dist/commonjs/unknown-enum.js +0 -26
  1645. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/base64-encoding.js +0 -188
  1646. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/binary-encoding.js +0 -726
  1647. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/index.js +0 -37
  1648. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/size-delimited.js +0 -191
  1649. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-encoding.js +0 -106
  1650. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/text-format.js +0 -199
  1651. package/node_modules/@bufbuild/protobuf/dist/commonjs/wire/varint.js +0 -334
  1652. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/any.js +0 -75
  1653. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/duration.js +0 -39
  1654. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/any_pb.js +0 -27
  1655. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/api_pb.js +0 -39
  1656. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -68
  1657. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/cpp_features_pb.js +0 -60
  1658. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/descriptor_pb.js +0 -892
  1659. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/duration_pb.js +0 -27
  1660. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/empty_pb.js +0 -27
  1661. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/field_mask_pb.js +0 -27
  1662. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/go_features_pb.js +0 -126
  1663. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/java_features_pb.js +0 -106
  1664. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/source_context_pb.js +0 -27
  1665. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/struct_pb.js +0 -59
  1666. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/timestamp_pb.js +0 -27
  1667. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/type_pb.js +0 -242
  1668. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/gen/google/protobuf/wrappers_pb.js +0 -67
  1669. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/index.js +0 -48
  1670. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/json.js +0 -44
  1671. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/timestamp.js +0 -57
  1672. package/node_modules/@bufbuild/protobuf/dist/commonjs/wkt/wrappers.js +0 -66
  1673. package/node_modules/@bufbuild/protobuf/dist/esm/clone.js +0 -63
  1674. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/boot.js +0 -14
  1675. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/enum.js +0 -26
  1676. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/extension.js +0 -25
  1677. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/file.js +0 -14
  1678. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/index.js +0 -23
  1679. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/message.js +0 -21
  1680. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/service.js +0 -24
  1681. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/symbols.js +0 -40
  1682. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv1/types.js +0 -14
  1683. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +0 -101
  1684. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +0 -239
  1685. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +0 -53
  1686. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +0 -25
  1687. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +0 -32
  1688. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +0 -23
  1689. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +0 -21
  1690. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +0 -26
  1691. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +0 -63
  1692. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +0 -24
  1693. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +0 -71
  1694. package/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +0 -14
  1695. package/node_modules/@bufbuild/protobuf/dist/esm/create.js +0 -293
  1696. package/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +0 -50
  1697. package/node_modules/@bufbuild/protobuf/dist/esm/equals.js +0 -206
  1698. package/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +0 -159
  1699. package/node_modules/@bufbuild/protobuf/dist/esm/fields.js +0 -41
  1700. package/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +0 -409
  1701. package/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +0 -1029
  1702. package/node_modules/@bufbuild/protobuf/dist/esm/index.js +0 -29
  1703. package/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +0 -30
  1704. package/node_modules/@bufbuild/protobuf/dist/esm/json-value.js +0 -14
  1705. package/node_modules/@bufbuild/protobuf/dist/esm/merge.js +0 -67
  1706. package/node_modules/@bufbuild/protobuf/dist/esm/package.json +0 -4
  1707. package/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +0 -128
  1708. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +0 -31
  1709. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +0 -71
  1710. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/index.js +0 -21
  1711. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/message.js +0 -152
  1712. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +0 -109
  1713. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +0 -105
  1714. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/path.js +0 -369
  1715. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +0 -284
  1716. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-types.js +0 -14
  1717. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +0 -464
  1718. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +0 -124
  1719. package/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +0 -140
  1720. package/node_modules/@bufbuild/protobuf/dist/esm/registry.js +0 -948
  1721. package/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +0 -433
  1722. package/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +0 -620
  1723. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/from-text.js +0 -680
  1724. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/index.js +0 -15
  1725. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/is-group-like.js +0 -44
  1726. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/reader.js +0 -477
  1727. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/to-text.js +0 -355
  1728. package/node_modules/@bufbuild/protobuf/dist/esm/txtpb/writer.js +0 -214
  1729. package/node_modules/@bufbuild/protobuf/dist/esm/types.js +0 -14
  1730. package/node_modules/@bufbuild/protobuf/dist/esm/unknown-enum.js +0 -23
  1731. package/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +0 -184
  1732. package/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +0 -721
  1733. package/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +0 -18
  1734. package/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +0 -186
  1735. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +0 -101
  1736. package/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +0 -195
  1737. package/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +0 -325
  1738. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +0 -69
  1739. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +0 -35
  1740. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +0 -24
  1741. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +0 -36
  1742. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +0 -65
  1743. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +0 -57
  1744. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +0 -888
  1745. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +0 -24
  1746. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +0 -24
  1747. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +0 -24
  1748. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +0 -123
  1749. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +0 -103
  1750. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +0 -24
  1751. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +0 -56
  1752. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +0 -24
  1753. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +0 -239
  1754. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +0 -64
  1755. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +0 -32
  1756. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/json.js +0 -41
  1757. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +0 -50
  1758. package/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +0 -61
  1759. package/node_modules/@bufbuild/protobuf/package.json +0 -136
  1760. package/node_modules/@deepseek-ai/dsh-agent-presets/README.md +0 -195
  1761. package/node_modules/@deepseek-ai/dsh-agent-presets/README.zh.md +0 -195
  1762. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/index.js +0 -1820
  1763. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/invariant.js +0 -1838
  1764. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/typert.remote-client.js +0 -207
  1765. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/authoring.js +0 -176
  1766. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/discovery.js +0 -316
  1767. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/index.js +0 -799
  1768. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/metadata.js +0 -92
  1769. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/mount.js +0 -386
  1770. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/preset.js +0 -11
  1771. package/node_modules/@deepseek-ai/dsh-agent-presets/lib/types/specifier.js +0 -41
  1772. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +0 -98
  1773. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +0 -283
  1774. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +0 -3
  1775. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +0 -108
  1776. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +0 -102
  1777. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/agent.cordis.yml +0 -69
  1778. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/minimal/preset.yml +0 -3
  1779. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +0 -287
  1780. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/preset.yml +0 -3
  1781. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +0 -266
  1782. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/preset.yml +0 -3
  1783. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.md +0 -138
  1784. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/README.zh.md +0 -138
  1785. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/index.js +0 -501
  1786. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.host.js +0 -350
  1787. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/typert.remote-client.js +0 -249
  1788. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/index.js +0 -424
  1789. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/lib/types/types.js +0 -12
  1790. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/queue-mirror.js +0 -61
  1791. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.md +0 -112
  1792. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/README.zh.md +0 -112
  1793. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/client.js +0 -216
  1794. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/lib/index.js +0 -6
  1795. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +0 -66
  1796. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +0 -98
  1797. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +0 -98
  1798. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +0 -6
  1799. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +0 -47
  1800. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.md +0 -142
  1801. package/node_modules/@deepseek-ai/dsh-llm-cursor/README.zh.md +0 -142
  1802. package/node_modules/@deepseek-ai/dsh-llm-cursor/lib/index.js +0 -3050
  1803. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +0 -62
  1804. package/node_modules/@deepseek-ai/dsh-settings/lib/invariant.js +0 -35
  1805. package/node_modules/@deepseek-ai/dsh-settings/lib/types/invariant.js +0 -41
  1806. package/node_modules/@deepseek-ai/dsh-settings-file/README.md +0 -150
  1807. package/node_modules/@deepseek-ai/dsh-settings-file/README.zh.md +0 -150
  1808. package/node_modules/@deepseek-ai/dsh-settings-file/lib/index.js +0 -285
  1809. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +0 -47
  1810. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-UEJ3Ntqn.js +0 -1511
  1811. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +0 -127
  1812. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +0 -1
  1813. /package/node_modules/@deepseek-ai/{dsh-agent-presets → dsh-agent-preset-registry}/lib/types/types.js +0 -0
  1814. /package/node_modules/@deepseek-ai/{dsh-experimental-agent-team-web-profile → dsh-experimental-voice-input-bundle}/lib/index.js +0 -0
@@ -1,1820 +0,0 @@
1
- import { isBuiltin } from "node:module";
2
- import { chmod, cp, readFile, readdir, rm, stat } from "node:fs/promises";
3
- import { evaluate, isJsExpr } from "@deepseek-ai/cordis-plugin-loader";
4
- import z from "@deepseek-ai/schemastery";
5
- import { Remote, RemoteError, TypertRemoteService } from "@deepseek-ai/dsh-typert-protocol";
6
- import { bindScopeParent, createScope, scopeOf, scopeParentOf } from "@deepseek-ai/dsh-scope";
7
- import { dshHomePath, expandHomePath } from "@deepseek-ai/dsh-home-paths";
8
- import { existsSync } from "node:fs";
9
- import { dirname, isAbsolute, join, resolve } from "node:path";
10
- import { fileURLToPath, pathToFileURL } from "node:url";
11
- import yaml, { load } from "js-yaml";
12
- import { Include, entryListSchema } from "@deepseek-ai/cordis-plugin-include";
13
- import { writeFileAtomic } from "@deepseek-ai/dsh-atomic-write";
14
- import { Context } from "@deepseek-ai/cordis";
15
- import { z as z$1 } from "zod";
16
- //#region lib/types/metadata.js
17
- /**
18
- * A preset's display metadata: the name and description a picker shows.
19
- *
20
- * It lives in its own file because the composition is a top-level list of
21
- * plugin rows — YAML cannot carry sibling keys beside it, and faking a
22
- * metadata row would hand the Loader something to load. Keeping it separate
23
- * also keeps the composition exactly what its name says: a Cordis file the
24
- * loader owns and the cordis preset can author.
25
- *
26
- * The file carries display text ONLY. `id` is the directory name and `trust`
27
- * comes from the root a preset was discovered under, so neither is writable
28
- * here — otherwise a locally authored preset could claim to be a shipped one.
29
- *
30
- * Every read failure degrades to no metadata. A preset whose display text is
31
- * missing, malformed, or unreadable still mounts: presentation is not a
32
- * capability, and a broken name must never become an agent that cannot start.
33
- * @module @deepseek-ai/dsh-agent-presets/metadata
34
- */
35
- /** The optional display-metadata file beside a preset's composition. */
36
- const METADATA_FILE = "preset.yml";
37
- /** A non-empty trimmed string, or undefined for anything else. */
38
- function text(value) {
39
- if (typeof value !== "string") return void 0;
40
- const trimmed = value.trim();
41
- return trimmed === "" ? void 0 : trimmed;
42
- }
43
- /**
44
- * Read one preset directory's display metadata.
45
- *
46
- * Absent, unparsable, and wrongly-shaped files are all the same answer —
47
- * empty metadata — because the caller renders a picker, not a diagnostic.
48
- * @param directory - the preset directory.
49
- * @returns the display text the preset published, possibly empty.
50
- */
51
- async function readPresetMetadata(directory) {
52
- let raw;
53
- try {
54
- raw = await readFile(join(directory, METADATA_FILE), "utf8");
55
- } catch {
56
- return {};
57
- }
58
- let parsed;
59
- try {
60
- parsed = yaml.load(raw);
61
- } catch {
62
- return {};
63
- }
64
- if (typeof parsed !== "object" || parsed === null || Array.isArray(parsed)) return {};
65
- const record = parsed;
66
- const name = text(record.name);
67
- const description = text(record.description);
68
- const order = typeof record.order === "number" && Number.isFinite(record.order) ? record.order : void 0;
69
- return {
70
- ...name === void 0 ? {} : { name },
71
- ...description === void 0 ? {} : { description },
72
- ...order === void 0 ? {} : { order }
73
- };
74
- }
75
- /**
76
- * Render display metadata as the file's contents.
77
- *
78
- * Absent fields are omitted rather than written empty, so a preset with no
79
- * description does not ship a key that reads as an intentional blank.
80
- * @param metadata - the display text to store.
81
- * @returns the YAML document, or undefined when there is nothing to store.
82
- */
83
- function renderPresetMetadata(metadata) {
84
- const name = text(metadata.name);
85
- const description = text(metadata.description);
86
- const { order } = metadata;
87
- if (name === void 0 && description === void 0 && order === void 0) return void 0;
88
- return yaml.dump({
89
- ...name === void 0 ? {} : { name },
90
- ...description === void 0 ? {} : { description },
91
- ...order === void 0 ? {} : { order }
92
- }, { lineWidth: -1 });
93
- }
94
- //#endregion
95
- //#region lib/types/preset.js
96
- /** Agent-preset vocabulary shared by discovery, mounting, and consumers. */
97
- /**
98
- * Ids a preset directory may use.
99
- *
100
- * The id becomes a path segment, so this is a containment boundary rather than
101
- * a style rule: `..`, a separator, or an absolute-looking name would place the
102
- * composition outside the root the deployment authorised. Discovery shares it:
103
- * a directory whose name no copy could ever claim is not a preset slot.
104
- */
105
- const PRESET_ID = /^[a-z0-9][a-z0-9-]*$/;
106
- //#endregion
107
- //#region lib/types/specifier.js
108
- /**
109
- * How one composition row's `name` reaches a module.
110
- *
111
- * A preset composition is read by `Include`, which rewrites its context's
112
- * `baseUrl` to the composition's own directory. That is right for a row
113
- * naming a file the preset ships and wrong for a row naming a package: a
114
- * locally authored preset lives under the user's home, where Node's upward
115
- * `node_modules` walk never reaches the harness's own dependencies. Both the
116
- * mount's import override and discovery's health check therefore have to
117
- * classify a row's name before they can act on it, and they must classify it
118
- * the same way — a row discovery resolves from one base and the mount imports
119
- * from another would be reported healthy and then fail to load.
120
- * @module @deepseek-ai/dsh-agent-presets/specifier
121
- */
122
- /**
123
- * Classify one row's `name`.
124
- *
125
- * An absolute filesystem path becomes a file URL here rather than at each
126
- * call site, because Node's ESM resolver rejects a bare drive-letter path on
127
- * Windows. A `file:` URL is already one and joins it: the Loader accepts both
128
- * spellings for the same thing, and treating the URL as a package name would
129
- * hand it to a resolver that only normalizes it, reporting a file that is not
130
- * there as present. The `specifier` a caller receives is always the string to
131
- * hand a resolver; only `kind` decides which base it goes with.
132
- * @param name - the module specifier exactly as the row wrote it.
133
- * @returns the classification, carrying the specifier to resolve.
134
- */
135
- function classifyRowSpecifier(name) {
136
- if (name.startsWith("cordis:")) return {
137
- kind: "builtin",
138
- specifier: name
139
- };
140
- if (name.startsWith(".")) return {
141
- kind: "preset",
142
- specifier: name
143
- };
144
- if (name.startsWith("file:")) return {
145
- kind: "file",
146
- specifier: name
147
- };
148
- if (isAbsolute(name)) return {
149
- kind: "file",
150
- specifier: pathToFileURL(name).href
151
- };
152
- return {
153
- kind: "package",
154
- specifier: name
155
- };
156
- }
157
- //#endregion
158
- //#region lib/types/discovery.js
159
- /**
160
- * Filesystem discovery of agent presets. A preset is a directory holding
161
- * {@link COMPOSITION_FILE}, optionally beside a {@link METADATA_FILE} carrying
162
- * its display text; the directory name is the preset id. Discovery
163
- * re-reads the roots on every call so a preset authored while the process is
164
- * running is visible without a restart.
165
- *
166
- * Discovery also owns preset HEALTH: a directory whose composition is
167
- * missing or unloadable is reported as a broken roster row rather than
168
- * skipped. A skipped directory would still occupy its id on disk — the copy
169
- * path refuses the name while no surface shows anything to delete — and a
170
- * malformed composition would otherwise read as an ordinary preset until the
171
- * first session fails to mount it.
172
- *
173
- * Health is what every consumer reads before offering a preset — the pickers
174
- * drop a broken row rather than defer the discovery to a failed session
175
- * start — so it covers the way an authored preset actually rots: a row naming
176
- * a package that was renamed or uninstalled. Resolving those names is a
177
- * separate pass from the shape check and stops short of importing anything,
178
- * so a composition is judged without running a line of plugin code.
179
- * @module @deepseek-ai/dsh-agent-presets/discovery
180
- */
181
- /** The composition file that makes a directory a preset. */
182
- const COMPOSITION_FILE = "agent.cordis.yml";
183
- /**
184
- * Harness-home directory holding locally authored presets.
185
- *
186
- * This package owns the writable root the way `dsh-skill-filesystem` owns
187
- * `<dshHome>/skills`: where a person's own presets go is the same place in
188
- * every deployment that does not say otherwise, so a launcher that forgets to
189
- * configure one still finds them.
190
- *
191
- * Package-internal on purpose: no consumer outside this package addresses the
192
- * directory by name, and a test that imported it could not catch this value
193
- * being wrong — the expected segment is spelled out where it is asserted.
194
- */
195
- const USER_PRESET_DIR = ".agent-presets";
196
- /**
197
- * The shipped presets, bundled inside this package: the roster's built-in
198
- * compositions travel with the machinery that mounts them, the way each
199
- * preset's own skills travel inside its directory. Resolved relative to this
200
- * module so both launch layouts work — `src/` under tsx and the bundled
201
- * `lib/` sit one level below the package root.
202
- */
203
- const SHIPPED_PRESET_ROOT = fileURLToPath(new URL("../presets/", import.meta.url));
204
- /**
205
- * Why `rows` cannot be an entry list, or undefined when it can.
206
- *
207
- * A shallow shape check, deliberately short of the loader's work: it does not
208
- * resolve plugin names or apply configs. What it catches is the hand-edit
209
- * that produces a file the loader cannot even begin with — and it must accept
210
- * everything the loader accepts, which is why rows are only required to be
211
- * maps carrying a plugin `name` (groups recurse into their own lists).
212
- *
213
- * Shared with the composition inventory, whose file reads race edits against
214
- * the health verdict and must judge the raced content by the same rule.
215
- * @param rows - the parsed composition document.
216
- * @param at - row-path prefix for nested diagnostics, empty at the top level.
217
- * @returns one human-readable reason, or undefined when the shape holds.
218
- */
219
- function entryListProblem(rows, at = "") {
220
- if (!Array.isArray(rows)) return at === "" ? "the composition must be a top-level list of plugin rows" : `group ${at} must hold a list of plugin rows`;
221
- for (const [index, row] of rows.entries()) {
222
- const label = at === "" ? `row ${String(index + 1)}` : `${at} row ${String(index + 1)}`;
223
- if (typeof row !== "object" || row === null || Array.isArray(row)) return `${label} is not a plugin row (expected a map with a "name")`;
224
- const { name, group, config } = row;
225
- if (typeof name !== "string" || name === "") return `${label} names no plugin (a "name" string is required)`;
226
- if (group === true) {
227
- const nested = entryListProblem(config, label);
228
- if (nested !== void 0) return nested;
229
- }
230
- }
231
- }
232
- /**
233
- * Whether a package specifier is installed above `base` without importing it.
234
- *
235
- * The direct disk walk accepts unexported subpaths and rejects stale links
236
- * whose package directory no longer exists.
237
- * @param name - package specifier, possibly carrying a subpath.
238
- * @param base - directory URL whose ancestors contain candidate `node_modules` directories.
239
- * @returns true when the package is installed.
240
- */
241
- function packageInstalled(name, base) {
242
- const pkg = name.split("/").slice(0, name.startsWith("@") ? 2 : 1).join("/");
243
- let dir = fileURLToPath(base);
244
- for (;;) {
245
- if (existsSync(join(dir, "node_modules", pkg, "package.json"))) return true;
246
- const parent = dirname(dir);
247
- if (parent === dir) return false;
248
- dir = parent;
249
- }
250
- }
251
- /**
252
- * Whether one classified row names a module that exists, importing nothing.
253
- *
254
- * Package rows delegate to the injected lookup. Relative and `file:` rows use
255
- * file metadata. No check evaluates the named module.
256
- * @param row - the classified specifier, from {@link classifyRowSpecifier}.
257
- * @param presetBase - directory URL a preset-relative specifier resolves against.
258
- * @param harnessBase - base URL a package name resolves against.
259
- * @param resolves - package lookup selected by the owning caller.
260
- * @returns true when the row names something that can be imported.
261
- */
262
- async function rowResolves(row, presetBase, harnessBase, resolves) {
263
- if (row.kind === "builtin") return true;
264
- if (row.kind === "package") return isBuiltin(row.specifier) || resolves(row.specifier, harnessBase);
265
- return await isFile(fileURLToPath(row.kind === "file" ? new URL(row.specifier) : new URL(row.specifier, presetBase)));
266
- }
267
- /**
268
- * Rows whose module cannot be resolved.
269
- *
270
- * Only rows that will certainly be started are checked, and the test is the
271
- * Loader's own: it starts a row when `Boolean(options.disabled)` is false, so
272
- * `disabled: 0` names a row that DOES start and must be checked. A `!!js`
273
- * expression is an object and therefore truthy, which skips exactly the rows
274
- * whose value only the loader context can decide. Skipping those trades a
275
- * missed name for the failure that matters more: calling a usable preset
276
- * broken makes it unselectable and uncopyable, which is worse than reporting
277
- * the same stale row at mount time as before.
278
- *
279
- * Shape is the caller's precondition: {@link entryListProblem} has already
280
- * proven every row is a map carrying a `name` string, and groups recurse the
281
- * same way it does.
282
- * @param rows - the parsed composition rows.
283
- * @param presetBase - directory URL a preset-relative specifier resolves against.
284
- * @param harnessBase - base URL a package name resolves against.
285
- * @param at - row-path prefix for nested diagnostics, empty at the top level.
286
- * @returns one entry per unresolvable row, in composition order.
287
- */
288
- async function unresolvableRows(rows, presetBase, harnessBase, resolves, at = "") {
289
- const found = [];
290
- for (const [index, entry] of rows.entries()) {
291
- const row = entry;
292
- if (Boolean(row.disabled)) continue;
293
- const positional = at === "" ? `row ${String(index + 1)}` : `${at} row ${String(index + 1)}`;
294
- if (row.group === true) {
295
- found.push(...await unresolvableRows(row.config, presetBase, harnessBase, resolves, positional));
296
- continue;
297
- }
298
- if (await rowResolves(classifyRowSpecifier(row.name), presetBase, harnessBase, resolves)) continue;
299
- const label = typeof row.id === "string" && row.id !== "" ? `row "${row.id}"` : positional;
300
- found.push({
301
- label,
302
- name: row.name
303
- });
304
- }
305
- return found;
306
- }
307
- /**
308
- * Why the composition at `path` cannot mount, or undefined when it looks
309
- * loadable. Parsed with the loader's own YAML dialect ({@link entryListSchema},
310
- * the one carrying `!!js`), so health can never call a composition broken
311
- * that the loader would accept.
312
- * A package-lookup failure becomes this composition's broken reason, so one
313
- * preset cannot abort discovery of the rest of the roster.
314
- * @param path - absolute path of the composition file.
315
- * @param harnessBase - base URL a row's package name resolves against.
316
- * @returns one human-readable reason, or undefined when the file is loadable.
317
- */
318
- async function compositionProblem(path, harnessBase, resolves) {
319
- let content;
320
- try {
321
- content = await readFile(path, "utf8");
322
- } catch {
323
- return `the composition file ${COMPOSITION_FILE} cannot be read`;
324
- }
325
- let rows;
326
- try {
327
- rows = load(content, { schema: entryListSchema });
328
- } catch (error) {
329
- return `the composition is not valid YAML: ${(error instanceof Error ? error.message : String(error)).replace(/\n[\s\S]*$/, "")}`;
330
- }
331
- const shape = entryListProblem(rows);
332
- if (shape !== void 0) return shape;
333
- const presetBase = new URL(".", pathToFileURL(path)).href;
334
- let unresolvable;
335
- try {
336
- unresolvable = await unresolvableRows(rows, presetBase, harnessBase, resolves);
337
- } catch (error) {
338
- return `the composition's plugins cannot be checked: ${(error instanceof Error ? error.message : String(error)).replace(/\n[\s\S]*$/, "")}`;
339
- }
340
- const [first] = unresolvable;
341
- if (first === void 0) return void 0;
342
- if (unresolvable.length === 1) return `${first.label} names a plugin that cannot be resolved: ${first.name}`;
343
- return `${String(unresolvable.length)} rows name plugins that cannot be resolved:\n` + unresolvable.map((row) => `- ${row.label}: ${row.name}`).join("\n");
344
- }
345
- /**
346
- * Whether `path` names an existing regular file.
347
- * @param path - absolute path to test.
348
- * @returns true when the path resolves to a file.
349
- */
350
- async function isFile(path) {
351
- try {
352
- return (await stat(path)).isFile();
353
- } catch {
354
- return false;
355
- }
356
- }
357
- /**
358
- * Scan one root for preset directories.
359
- *
360
- * An absent root yields no presets rather than throwing: the user root does
361
- * not exist until the first locally authored preset, and naming a default
362
- * that no root supplies already fails loud at resolution.
363
- *
364
- * Every directory whose name is a usable preset id is a roster row — broken
365
- * when its composition is missing or unloadable. A directory named outside
366
- * {@link PRESET_ID} is skipped instead: no copy could ever claim that name,
367
- * so it blocks nothing, and reporting `.DS_Store`-grade residue as broken
368
- * presets would teach users to ignore the marker.
369
- * @param root - the directory and the trust its presets inherit.
370
- * @param harnessBase - base URL a row's package name resolves against; the
371
- * caller's own `ctx.baseUrl`, which is where the installed harness lives.
372
- * @param resolves - package-presence lookup for the active runtime.
373
- * @returns the root's presets ordered by id.
374
- */
375
- async function scanRoot(root, harnessBase, resolves = packageInstalled) {
376
- const dir = resolve(expandHomePath(root.path));
377
- let children;
378
- try {
379
- children = await readdir(dir, { withFileTypes: true });
380
- } catch (error) {
381
- if (error.code === "ENOENT") return [];
382
- throw new Error(`agent-presets: cannot read preset root ${dir}: ${String(error)}`, { cause: error });
383
- }
384
- const found = [];
385
- for (const child of children) {
386
- if (!child.isDirectory() || !PRESET_ID.test(child.name)) continue;
387
- const directory = join(dir, child.name);
388
- const path = join(directory, COMPOSITION_FILE);
389
- const broken = await isFile(path) ? await compositionProblem(path, harnessBase, resolves) : `the composition file ${COMPOSITION_FILE} is missing — the directory still occupies the id; delete it or restore the file`;
390
- const metadata = await readPresetMetadata(directory);
391
- found.push({
392
- id: child.name,
393
- trust: root.trust,
394
- path,
395
- ...metadata,
396
- ...broken === void 0 ? {} : { broken }
397
- });
398
- }
399
- return found.sort((left, right) => {
400
- const byOrder = (left.order ?? Number.POSITIVE_INFINITY) - (right.order ?? Number.POSITIVE_INFINITY);
401
- return byOrder === 0 ? left.id.localeCompare(right.id) : byOrder;
402
- });
403
- }
404
- /**
405
- * Scan every root in precedence order.
406
- * @param roots - roots in precedence order; an earlier root wins a duplicate id.
407
- * @param harnessBase - base URL a row's package name resolves against.
408
- * @param resolves - package-presence lookup for the active runtime.
409
- * @returns every discovered preset, first-root-wins per id.
410
- */
411
- async function discoverPresets(roots, harnessBase, resolves = packageInstalled) {
412
- const byId = /* @__PURE__ */ new Map();
413
- for (const root of roots) for (const preset of await scanRoot(root, harnessBase, resolves)) {
414
- if (byId.has(preset.id)) continue;
415
- byId.set(preset.id, preset);
416
- }
417
- return [...byId.values()];
418
- }
419
- //#endregion
420
- //#region lib/types/authoring.js
421
- /**
422
- * Copying, reading, and deleting locally authored presets.
423
- *
424
- * Authoring is confined to a `user` root: the shipped `.system` set is part of
425
- * the deployment, and letting a browser rewrite it would turn "reset to a known
426
- * preset" into something the same caller could have broken first.
427
- *
428
- * The only authoring write is a whole-directory copy of an existing preset.
429
- * No caller supplies composition text: the inputs are ids the host resolves
430
- * against its own roots plus an optional display name, so authoring grants no
431
- * capability the copied preset did not already carry.
432
- * @module @deepseek-ai/dsh-agent-presets/authoring
433
- */
434
- /**
435
- * Refuse one authoring request the deployment does not allow.
436
- * @param presetId - what the caller tried to change, for the diagnostic.
437
- * @param reason - why authoring is refused.
438
- * @returns the failure to throw.
439
- */
440
- function notWritable(presetId, reason) {
441
- return new RemoteError("agent-preset/read-only", `agent-presets: preset "${presetId}" cannot be written: ${reason}`, {
442
- agentPreset: presetId,
443
- reason
444
- });
445
- }
446
- /**
447
- * Refuse a copy onto an id something already occupies. Both the roster check
448
- * and the on-disk check answer with it, so a taken id reads the same either way.
449
- * @param presetId - the id that is already taken.
450
- * @returns the failure to throw.
451
- */
452
- function presetExists(presetId) {
453
- const reason = `preset "${presetId}" already exists — a copy never overwrites; delete the existing preset first or choose another id`;
454
- return new RemoteError("agent-preset/invalid", `agent-presets: ${reason}`, {
455
- agentPreset: presetId,
456
- reason
457
- });
458
- }
459
- /**
460
- * The root locally authored presets are written to.
461
- * @param roots - the configured roots in precedence order.
462
- * @param presetId - the preset the caller is authoring, named by the refusal.
463
- * @returns the absolute path of the first `user` root.
464
- * @throws when the deployment configured no writable root.
465
- */
466
- function writableRoot(roots, presetId) {
467
- const root = roots.find((candidate) => candidate.trust === "user");
468
- if (root === void 0) throw notWritable(presetId, "this deployment configures no user-writable preset root");
469
- return resolve(expandHomePath(root.path));
470
- }
471
- /**
472
- * Read one preset's composition text.
473
- * @param preset - the resolved preset.
474
- * @returns the file's contents.
475
- */
476
- async function readComposition(preset) {
477
- return await readFile(preset.path, "utf8");
478
- }
479
- /** Whether anything occupies the path (cp's own errorOnExist backstops races). */
480
- async function occupied(path) {
481
- let present = true;
482
- try {
483
- await stat(path);
484
- } catch {
485
- present = false;
486
- }
487
- return present;
488
- }
489
- /**
490
- * Re-tighten a copied tree to owner-only. A shipped preset is world-readable
491
- * in its install and `cp` preserves that; the copy carries the same weight as
492
- * the settings document beside it, so group/other access is stripped. A
493
- * file's owner-execute bit survives — a preset may ship runnable helpers.
494
- */
495
- async function tightenModes(dir) {
496
- await chmod(dir, 448);
497
- for (const entry of await readdir(dir, { withFileTypes: true })) {
498
- const target = join(dir, entry.name);
499
- if (entry.isDirectory()) await tightenModes(target);
500
- else
501
- /* v8 ignore next -- Windows exposes no POSIX owner-execute bit; the POSIX lane covers both file modes. */
502
- await chmod(target, ((await stat(target)).mode & 64) === 0 ? 384 : 448);
503
- }
504
- }
505
- /**
506
- * Create a preset by copying an existing one's whole directory.
507
- *
508
- * The copy carries everything the source directory holds — composition,
509
- * metadata, skill directories, assets — because a preset is its directory,
510
- * not one file. Symlinks are dereferenced so the copy is self-contained
511
- * rather than a set of links back into the install it was copied from.
512
- *
513
- * The copied metadata is then rewritten: the source's description is kept
514
- * (the file is the author's to edit afterwards), but its name and roster
515
- * `order` are not — a copy presenting itself identically to its source, or
516
- * sorted into the shipped set's declared order, would make the roster stop
517
- * distinguishing them. With no name given and no description to keep, the
518
- * file is removed so the copy publishes nothing rather than a blank.
519
- * @param roots - the configured roots; the first `user` one receives the copy.
520
- * @param source - the resolved preset the copy starts from.
521
- * @param id - the new preset's id, which becomes its directory name.
522
- * @param name - display name for the copy; omitted falls back to the id.
523
- * @returns the absolute path of the new preset directory.
524
- * @throws when the id is unusable or already occupied on disk, or the
525
- * deployment configures no writable root.
526
- */
527
- async function copyComposition(roots, source, id, name) {
528
- if (!PRESET_ID.test(id)) {
529
- const reason = `preset id ${JSON.stringify(id)} must match ${String(PRESET_ID)} — the id is a directory name, so anything else could escape the preset root`;
530
- throw new RemoteError("agent-preset/invalid", `agent-presets: ${reason}`, {
531
- agentPreset: id,
532
- reason
533
- });
534
- }
535
- const dir = join(writableRoot(roots, id), id);
536
- if (await occupied(dir)) throw presetExists(id);
537
- try {
538
- await cp(dirname(source.path), dir, {
539
- recursive: true,
540
- dereference: true,
541
- force: false,
542
- errorOnExist: true
543
- });
544
- await tightenModes(dir);
545
- const rendered = renderPresetMetadata({
546
- ...name === void 0 ? {} : { name },
547
- ...source.description === void 0 ? {} : { description: source.description }
548
- });
549
- const metadataPath = join(dir, METADATA_FILE);
550
- if (rendered === void 0) await rm(metadataPath, { force: true });
551
- else await writeFileAtomic(metadataPath, rendered, {
552
- mode: 384,
553
- dirMode: 448
554
- });
555
- } catch (error) {
556
- await rm(dir, {
557
- recursive: true,
558
- force: true
559
- });
560
- throw error;
561
- }
562
- return dir;
563
- }
564
- /**
565
- * Delete a locally authored preset.
566
- *
567
- * A shipped preset is refused: it belongs to the deployment. A preset a live
568
- * session mounted is NOT refused — the composition was read at creation and is
569
- * never re-read, so that session keeps running exactly as it was.
570
- * @param roots - the configured roots.
571
- * @param preset - the resolved preset to remove.
572
- * @throws when the preset ships with the deployment or lies outside the writable root.
573
- */
574
- async function deleteComposition(roots, preset) {
575
- if (preset.trust !== "user") throw notWritable(preset.id, "it ships with the deployment");
576
- const dir = join(writableRoot(roots, preset.id), preset.id);
577
- if (!isAbsolute(preset.path) || !preset.path.startsWith(dir)) throw notWritable(preset.id, "it does not live under the writable preset root");
578
- await rm(dir, {
579
- recursive: true,
580
- force: true
581
- });
582
- }
583
- //#endregion
584
- //#region lib/types/mount.js
585
- /**
586
- * Mount one preset composition under an agent's scope context, then prove the
587
- * result is usable before the agent is published.
588
- *
589
- * The scope context is what makes the composition per-session: entry contexts
590
- * chain to the context the subtree was plugged into, so every `ctx.tools`
591
- * and `ctx.systemPrompt` registration inside the preset files into that
592
- * agent's layer and unwinds with it. Two guards make that safe. A row that
593
- * never reached a usable state is rejected, because a directly-plugged subtree
594
- * is absent from `ctx.loader.entries()` and no boot audit covers it. A row that
595
- * published a service into the ROOT realm is rejected, because such a service
596
- * is process-global rather than per-session and the second session mounting the
597
- * same preset collides with the first.
598
- * @module @deepseek-ai/dsh-agent-presets/mount
599
- */
600
- /**
601
- * Subtrees captured by config identity. A subtree plugged directly (rather than
602
- * created as a loader entry) never links itself to an `Entry`, so this is the
603
- * only handle to the rows it created; config objects are minted per mount, so
604
- * concurrent mounts cannot collide.
605
- */
606
- const mounted = /* @__PURE__ */ new WeakMap();
607
- /**
608
- * The base URL bare specifiers resolve against, per pending mount, keyed by the
609
- * same config object. Recorded before the subtree is plugged, because `Include`
610
- * rewrites its own context's `baseUrl` to the composition's directory and the
611
- * pre-mount value is the only handle on where the harness itself lives.
612
- */
613
- const harnessBase = /* @__PURE__ */ new WeakMap();
614
- /**
615
- * Include subclass that publishes its tree and fiber for the audit, and never
616
- * writes to the file it read.
617
- */
618
- var PresetTree = class extends Include {
619
- constructor(ctx, config) {
620
- super(ctx, config);
621
- const owner = this.ctx.fiber.entry;
622
- if (owner?.subtree === this) delete owner.subtree;
623
- mounted.set(config, {
624
- tree: this,
625
- fiber: ctx.fiber
626
- });
627
- }
628
- /**
629
- * Resolve a bare specifier from the harness rather than from the preset.
630
- *
631
- * `EntryTree.import()` resolves against the tree's own `baseUrl`, which
632
- * `Include` sets to the composition's directory. That is right for a
633
- * relative specifier — a preset's own files travel with it — and wrong for
634
- * a package name: a locally authored preset lives under the user's home,
635
- * where Node's upward `node_modules` walk never reaches the harness's own
636
- * dependencies, so every `@deepseek-ai/dsh-*` row would fail to import. The
637
- * mount records the host composition's base instead, which is inside the
638
- * installed harness, and bare names resolve from there. An absolute
639
- * filesystem path names neither base and becomes a file URL before Node's
640
- * ESM loader receives it, which is required for drive-letter paths on
641
- * Windows.
642
- *
643
- * {@link classifyRowSpecifier} makes that split, so discovery's health check
644
- * resolves every row from the same base this import uses.
645
- * @param name - the module specifier from the row.
646
- * @param getOuterStack - the loader's stack composer for import diagnostics.
647
- * @returns the imported module, or the `cordis:` builtin.
648
- */
649
- import(name, getOuterStack) {
650
- const row = classifyRowSpecifier(name);
651
- const base = harnessBase.get(this.config);
652
- /* v8 ignore next -- every PresetTree is constructed by `mountPreset`, which records the base first */
653
- if (base === void 0) return super.import(row.specifier, getOuterStack);
654
- if (row.kind === "builtin" || row.kind === "preset") return super.import(row.specifier, getOuterStack);
655
- const internal = this.ctx.loader.internal;
656
- /* v8 ignore next -- Node always supplies the internal module loader; the branch keeps a
657
- hypothetical embedder from losing the row's name in a resolution error. */
658
- if (internal === void 0) return super.import(row.specifier, getOuterStack);
659
- return internal.import(row.specifier, base, {});
660
- }
661
- /**
662
- * A preset is an input, never a persistence target.
663
- *
664
- * The Loader writes a tree back through this method whenever it decides the
665
- * config changed — a plugin self-disposing is enough, and tearing an agent
666
- * down disposes its whole subtree. Inherited, that rewrites the preset file
667
- * with whatever the dying tree held, which in practice means truncating a
668
- * shipped composition to `[]` the first time a session ends. Persisting a
669
- * preset is also meaningless: nothing here is user state, and the same file
670
- * backs every session that names it.
671
- *
672
- * Dropping the write drops the `loader/config-update` the inherited method
673
- * emits with it. No consumer observes one for a preset subtree, and a
674
- * future "edit your preset while it runs" flow needs a deliberate
675
- * persistence path rather than this method's return.
676
- */
677
- write() {}
678
- };
679
- const mounts = /* @__PURE__ */ new Set();
680
- /**
681
- * Drop every record whose subtree is gone.
682
- *
683
- * Records are pruned by observation rather than through a disposal hook
684
- * because a subtree can be torn down by its owning agent, by a failed mount, or
685
- * by the whole tree unloading, and a cleared `uid` is what all three share.
686
- *
687
- * Pruning therefore has to happen on a path this module owns. Reading is one
688
- * such path, but not a reliable one: the only production reader is the
689
- * invariant companion's service listener, and `dsh-invariants` is a
690
- * development composition — a shipped host never loads it. Mounting is the
691
- * other, and it is the one every session takes, which bounds the set at one
692
- * generation of dead records rather than one per session ever composed. Each
693
- * record would otherwise retain its whole disposed subtree: the fiber holds
694
- * its config, and that config is the key its `EntryTree` is stored under.
695
- */
696
- function pruneDisposedMounts() {
697
- for (const mount of mounts) if (mount.fiber.uid === null) mounts.delete(mount);
698
- }
699
- /**
700
- * Every preset composition still installed, pruning fibers disposed since the
701
- * last read.
702
- *
703
- * The record set is module state and therefore spans every Cordis runtime in
704
- * the process; a reader that serves one runtime passes that runtime's root
705
- * fiber so another runtime mounting the same preset id (a second embedded
706
- * app, a test's second harness) never answers for it.
707
- * @param within - when present, only mounts inside this fiber's subtree.
708
- * @returns the live mounts.
709
- */
710
- function livePresetMounts(within) {
711
- pruneDisposedMounts();
712
- const all = [...mounts];
713
- return within === void 0 ? all : all.filter((mount) => withinFiber(mount.fiber, within));
714
- }
715
- /**
716
- * Whether `fiber` is `root` itself or is mounted anywhere inside its subtree.
717
- *
718
- * Membership is object identity. `uid` looks like a cheaper key but is a
719
- * per-registry counter, so fibers in two different roots collide on it and a
720
- * subtree in one runtime would be blamed for a service published in another.
721
- * @param fiber - the fiber to locate.
722
- * @param root - the subtree root to test membership against.
723
- * @returns true when `fiber` belongs to `root`'s subtree.
724
- */
725
- function withinFiber(fiber, root) {
726
- let current = fiber;
727
- while (true) {
728
- if (current === root) return true;
729
- const parent = current.parent.fiber;
730
- if (parent === current) return false;
731
- current = parent;
732
- }
733
- }
734
- /**
735
- * Service names the mounted subtree published into the root realm.
736
- *
737
- * A provider without an `isolate` realm stores its implementation under the
738
- * root's symbol for that name, which is exactly the comparison below; a
739
- * provider inside an `isolate` realm stores under a realm-private symbol and
740
- * is correctly absent here.
741
- * @param ctx - any context of the runtime whose service store is inspected.
742
- * @param mount - the mounted subtree's fiber.
743
- * @returns the leaked service names in lexical order.
744
- */
745
- function leakedServices(ctx, mount) {
746
- const store = ctx.reflect.store;
747
- const rootIsolate = ctx.root[Context.isolate];
748
- const leaked = [];
749
- for (const key of Object.getOwnPropertySymbols(store)) {
750
- const impl = store[key];
751
- /* v8 ignore next -- cordis deletes a store slot on disposal rather than
752
- clearing it, so an own symbol always resolves; the guard exists only
753
- because the store's index signature is optional. */
754
- if (impl === void 0) continue;
755
- if (!withinFiber(impl.fiber, mount)) continue;
756
- if (rootIsolate[impl.name] === key) leaked.push(impl.name);
757
- }
758
- return leaked.sort((left, right) => left.localeCompare(right));
759
- }
760
- /**
761
- * The standing composition one agent is joined to.
762
- *
763
- * The agent's own key is parented to its preset's standing key, so the mount
764
- * is found by matching that parent rather than by walking up from the agent —
765
- * the mount is not under the agent's fiber. An agent that joined no preset —
766
- * a deployment composing no roster, or a child agent before its join — has no
767
- * parent link and resolves to undefined.
768
- * @param agentCtx - the agent's scope context.
769
- * @returns the mount the agent joined, or undefined when it joined none.
770
- */
771
- function standingMountFor(agentCtx) {
772
- const agentKey = scopeOf(agentCtx);
773
- if (agentKey === void 0) return void 0;
774
- const standingKey = scopeParentOf(agentKey);
775
- if (standingKey === void 0) return void 0;
776
- return livePresetMounts().find((candidate) => candidate.key === standingKey);
777
- }
778
- /**
779
- * One agent's instance of a service its preset mounted.
780
- *
781
- * A preset publishes a service behind an `isolate` realm so two sessions
782
- * cannot collide, and an entry-local realm is invisible to everything outside
783
- * the group — including the agent's own scope context and the host. That is
784
- * right for the rows inside the group and wrong for one caller: a request that
785
- * is ABOUT a session but arrives from outside it, which is every browser RPC
786
- * the api-proxy serves.
787
- *
788
- * Ownership is the same relation {@link leakedServices} reads, inverted: there
789
- * it names implementations a subtree published into the ROOT realm, here it
790
- * names the one this subtree published anywhere. Fiber membership is object
791
- * identity for the reason stated on {@link withinFiber}.
792
- *
793
- * This is READ addressing for a caller that already holds the agent. It is not
794
- * a general host handle on a session's internals: a host row that `inject`s a
795
- * service cannot use it, because injection resolves before any session exists
796
- * and has no agent to key by — such a service belongs on the host plane.
797
- * @param ctx - any context of the runtime whose service store is inspected.
798
- * @param agent - the agent whose mounted composition to look inside.
799
- * @param name - the service name as the preset's rows resolve it.
800
- * @returns the agent's instance, or undefined when its preset mounts none.
801
- */
802
- function serviceForAgent(ctx, agent, name) {
803
- const mount = standingMountFor(agent.ctx);
804
- if (mount === void 0) return void 0;
805
- const store = ctx.reflect.store;
806
- for (const key of Object.getOwnPropertySymbols(store)) {
807
- const impl = store[key];
808
- /* v8 ignore next -- cordis deletes a store slot on disposal rather than clearing it */
809
- if (impl === void 0) continue;
810
- if (impl.name !== name) continue;
811
- if (withinFiber(impl.fiber, mount.fiber)) return impl.value;
812
- }
813
- }
814
- /**
815
- * Rows that did not reach a usable state, each rendered as one diagnostic line.
816
- *
817
- * Wait for the subtree, then report import failures, activation failures, and
818
- * rows waiting for services the composition does not supply.
819
- * @param tree - the mounted subtree.
820
- * @returns one line per unusable row, empty when every enabled row is usable.
821
- */
822
- async function inactiveRows(tree) {
823
- await tree.await();
824
- const lines = [];
825
- for (const entry of tree.entries()) {
826
- if (entry.disabled) continue;
827
- const fiber = entry.fiber;
828
- if (fiber === void 0) {
829
- lines.push(`${entry.options.id} (${entry.options.name}): never started`);
830
- continue;
831
- }
832
- try {
833
- await fiber.await();
834
- } catch (error) {
835
- const detail = mountDetail(error);
836
- lines.push(`${entry.options.id} (${entry.options.name}): ${detail}`);
837
- continue;
838
- }
839
- const missing = Object.keys(fiber.inject).filter((name) => fiber.ctx.get(name) === void 0);
840
- if (missing.length > 0) lines.push(`${entry.options.id} (${entry.options.name}): waiting for ${missing.join(", ")}`);
841
- }
842
- return lines;
843
- }
844
- /**
845
- * The causes of `error` whose detail its own message does not already carry.
846
- *
847
- * Aggregate errors carry separate member messages. A wrapper can preserve the
848
- * aggregate as its cause without including those messages in its own text.
849
- * @param error - the failure to read branches from.
850
- * @returns the branches to render beneath `error.message`, possibly empty.
851
- */
852
- function detailBranches(error) {
853
- if (error instanceof AggregateError) return error.errors;
854
- return error.cause instanceof AggregateError ? error.cause.errors : [];
855
- }
856
- /**
857
- * The reportable text of a mount failure.
858
- *
859
- * A plugin may reject with an aggregate or wrap one as its cause. Include its
860
- * member messages beneath the row diagnostic so each failure is visible.
861
- * @param error - the value the mount rejected with.
862
- * @returns a single-line-per-cause description.
863
- */
864
- function mountDetail(error) {
865
- if (!(error instanceof Error)) return String(error);
866
- const branches = detailBranches(error);
867
- if (branches.length === 0) return error.message;
868
- return [error.message, ...branches.map((branch) => `- ${mountDetail(branch).replaceAll("\n", "\n ")}`)].join("\n");
869
- }
870
- /**
871
- * Mount `preset` under `agentCtx` and return only once every row is usable.
872
- *
873
- * The subtree is owned by `agentCtx`'s fiber, so it unwinds with the agent and
874
- * the caller receives no disposer. A rejection leaves nothing mounted.
875
- * @param agentCtx - the agent's scope context, from the agent factory's `setup`.
876
- * @param preset - the resolved preset to compose the agent from.
877
- * @throws when `agentCtx` carries no scope, a row is unusable, or a row
878
- * published a service into the root realm.
879
- */
880
- async function mountPreset(agentCtx, preset) {
881
- if (scopeOf(agentCtx) === void 0) throw new Error(`agent-presets: refusing to mount preset "${preset.id}" into an unscoped context; its registrations would apply to every agent in the process`);
882
- const config = { path: pathToFileURL(preset.path).href };
883
- /* v8 ignore next -- the Loader sets `baseUrl` on the root before any scoped context derives from it */
884
- if (agentCtx.baseUrl !== void 0) harnessBase.set(config, agentCtx.baseUrl);
885
- pruneDisposedMounts();
886
- const handle = agentCtx.plugin(PresetTree, config);
887
- try {
888
- await handle.await();
889
- const subtree = mounted.get(config);
890
- /* v8 ignore next -- the subclass constructor runs before `await()` settles for every mounted tree */
891
- if (subtree === void 0) throw new Error("mounted subtree did not publish its entry tree");
892
- const { tree, fiber } = subtree;
893
- const unusable = await inactiveRows(tree);
894
- if (unusable.length > 0) throw new Error(`${String(unusable.length)} row(s) did not activate:\n${unusable.join("\n")}`);
895
- const leaked = leakedServices(agentCtx, fiber);
896
- if (leaked.length > 0) throw new Error(`row(s) published process-global service(s) [${leaked.join(", ")}]; a preset service must sit behind an \`isolate\` realm or move to the host composition`);
897
- mounts.add({
898
- presetId: preset.id,
899
- fiber,
900
- tree,
901
- key: scopeOf(agentCtx)
902
- });
903
- } catch (error) {
904
- try {
905
- await handle.dispose();
906
- } catch {}
907
- const reason = `${mountDetail(error)} (${preset.path})`;
908
- throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${reason}`, {
909
- agentPreset: preset.id,
910
- reason
911
- }, { cause: error });
912
- }
913
- }
914
- //#endregion
915
- //#region lib/types/composition-inventory.js
916
- /**
917
- * Structured composition reads for plugin-listing surfaces: the plugin rows
918
- * each preset names, with each row's effective enablement. A preset with a
919
- * live standing mount answers from that mount's Loader entries — evaluated
920
- * `disabled`, real root-fiber states; a preset no session has composed since
921
- * boot answers from its composition file, with `!!js` disabled expressions
922
- * evaluated through the caller-supplied Loader evaluator so the file answer
923
- * matches the decision a mount on this host would make. A row whose
924
- * expression the evaluator refuses stays `'conditional'`.
925
- * @module @deepseek-ai/dsh-agent-presets/composition-inventory
926
- */
927
- /**
928
- * One `disabled` node's contribution to effective enablement, mirroring the
929
- * Loader's own reading: a `!!js` expression is asked of the evaluator — a
930
- * refusal (throw) leaves the decision to a mount — and anything else disables
931
- * exactly when `Boolean(value)` does.
932
- * @param value - the raw `disabled` node of one composition row.
933
- * @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
934
- * @returns true (disabled), false (enabled), or `'conditional'`.
935
- */
936
- function disabledContribution(value, evaluateExpression) {
937
- if (isJsExpr(value)) try {
938
- return Boolean(evaluateExpression(value.__jsExpr));
939
- } catch {
940
- return "conditional";
941
- }
942
- return Boolean(value);
943
- }
944
- /**
945
- * Combine an ancestor group's disabled state with a row's own, the way the
946
- * Loader walks owning groups: any literal true disables, otherwise any
947
- * expression leaves the decision to a mount.
948
- * @param outer - the combined ancestor contribution.
949
- * @param own - this row's contribution.
950
- * @returns the row's effective disabled state.
951
- */
952
- function combineDisabled(outer, own) {
953
- if (outer === true || own === true) return true;
954
- if (outer === "conditional" || own === "conditional") return "conditional";
955
- return false;
956
- }
957
- /**
958
- * Flatten one parsed row list into plugin rows. Group rows are structural —
959
- * the Loader reports a group entry as always enabled and lets children
960
- * inherit its `disabled` — so only their children are emitted.
961
- * @param rows - the parsed rows, shape-checked by the caller.
962
- * @param outerDisabled - the combined ancestor-group disabled state.
963
- * @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
964
- * @param found - the accumulator receiving flattened rows.
965
- */
966
- function flattenRows(rows, outerDisabled, evaluateExpression, found) {
967
- for (const value of rows) {
968
- const row = value;
969
- const disabled = combineDisabled(outerDisabled, disabledContribution(row.disabled, evaluateExpression));
970
- if (row.group === true) {
971
- flattenRows(row.config, disabled, evaluateExpression, found);
972
- continue;
973
- }
974
- found.push({
975
- entryId: typeof row.id === "string" && row.id !== "" ? row.id : null,
976
- moduleName: row.name,
977
- enabled: disabled === true ? false : disabled === "conditional" ? "conditional" : true,
978
- ...isJsExpr(row.disabled) ? { condition: row.disabled.__jsExpr } : {}
979
- });
980
- }
981
- }
982
- /**
983
- * Plugin rows of one composition file, for a preset with no live mount.
984
- *
985
- * Parsed with the Loader's own dialect ({@link entryListSchema}), so the rows
986
- * reported are the rows a mount would start from. A file that stopped reading
987
- * as a composition — discovery judged the preset healthy moments earlier, so
988
- * only an edit racing this read gets here — answers as broken with the raced
989
- * reason rather than dropping the rows silently.
990
- * @param path - absolute path of the composition file.
991
- * @param evaluateExpression - the Loader-context evaluator for `!!js` nodes.
992
- * @returns flattened rows in composition order, or why they cannot be read.
993
- */
994
- async function fileComposition(path, evaluateExpression) {
995
- let rows;
996
- try {
997
- rows = load(await readFile(path, "utf8"), { schema: entryListSchema });
998
- } catch (error) {
999
- /* v8 ignore next -- fs and js-yaml throw Errors for every failure here; the fallback keeps a hostile value readable */
1000
- return { broken: error instanceof Error ? error.message : String(error) };
1001
- }
1002
- const problem = entryListProblem(rows);
1003
- if (problem !== void 0) return { broken: problem };
1004
- const found = [];
1005
- flattenRows(rows, false, evaluateExpression, found);
1006
- return { rows: found };
1007
- }
1008
- /**
1009
- * Plugin rows of one live standing composition, in Loader-entry order.
1010
- * @param tree - the standing mount's entry tree.
1011
- * @returns rows with the Loader's evaluated enablement and root-fiber states.
1012
- */
1013
- function mountedCompositionRows(tree) {
1014
- const found = [];
1015
- for (const entry of tree.entries()) {
1016
- if (entry.options.group) continue;
1017
- found.push({
1018
- entryId: entry.id,
1019
- moduleName: entry.options.name,
1020
- enabled: !entry.disabled,
1021
- ...isJsExpr(entry.options.disabled) ? { condition: entry.options.disabled.__jsExpr } : {},
1022
- ...entry.fiber === void 0 ? {} : { fiberState: entry.fiber.state }
1023
- });
1024
- }
1025
- return found;
1026
- }
1027
- //#endregion
1028
- //#region lib/types/session.js
1029
- /**
1030
- * The session-log record of which preset a session actually runs.
1031
- *
1032
- * The creation header names the preset a session STARTED with, and it is
1033
- * deep-frozen because that is a creation fact. A session may still change
1034
- * preset while it is blank, and the effect of that change outlives the blank
1035
- * window: the first turn — and every turn after it — runs under the newly
1036
- * mounted composition. Recording the change is what keeps the log honest, and
1037
- * it is required outright by the repo's model-visible ⟺ logged rule, since the
1038
- * preset decides the tool schemas and prompt sections the model sees.
1039
- *
1040
- * Reconstruction reads the `agentPreset` Session projection, never the header
1041
- * alone.
1042
- * @module @deepseek-ai/dsh-agent-presets/session
1043
- */
1044
- const agentPresetSchema = z$1.union([z$1.string(), z$1.null()]);
1045
- /** Current Session preset, initialized from its header and advanced by selection events. */
1046
- const agentPresetProjectionDefinition = {
1047
- key: "agentPreset",
1048
- stateSchema: agentPresetSchema,
1049
- init: (header) => header.agentPreset ?? null,
1050
- apply: (state, event) => event.type === "agent-preset/selected" ? event.data.agentPreset : state,
1051
- wire: {
1052
- viewSchema: agentPresetSchema,
1053
- view: (state) => state
1054
- },
1055
- stateVersion: 1
1056
- };
1057
- //#endregion
1058
- //#region lib/types/index.js
1059
- /**
1060
- * Agent presets: each session composes its model-facing plugin set from one
1061
- * preset `cordis.yml`, mounted ONCE per preset under a standing scope and
1062
- * joined by every agent that names it.
1063
- *
1064
- * The standing mount is what makes a preset one composition rather than one
1065
- * per session: its plugin instances, tool registrations, prompt sections, and
1066
- * projection units exist exactly once, keyed per session inside the plugins
1067
- * themselves (they predate presets and were written for a shared world). An
1068
- * agent joins by having its scope key parented to the mount's
1069
- * ({@link bindScopeParent}), which makes the mount's registrations visible to
1070
- * that agent's views and the mount's listeners receive that agent's events —
1071
- * and a host reader with no agent at all (a cold transcript read) resolves
1072
- * the same standing registrations by preset id.
1073
- *
1074
- * This package owns the preset vocabulary, filesystem discovery, and the
1075
- * guarded standing mount. It does not decide when an agent is created — the
1076
- * agent factory's `setup(agentCtx)` hook is the one supported call site,
1077
- * because only there is the join installed while the agent is still
1078
- * unpublished, so a rejected composition rolls the whole creation back.
1079
- * @module @deepseek-ai/dsh-agent-presets
1080
- */
1081
- var __runInitializers = function(thisArg, initializers, value) {
1082
- var useValue = arguments.length > 2;
1083
- for (var i = 0; i < initializers.length; i++) value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
1084
- return useValue ? value : void 0;
1085
- };
1086
- var __esDecorate = function(ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
1087
- function accept(f) {
1088
- if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected");
1089
- return f;
1090
- }
1091
- var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
1092
- var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
1093
- var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
1094
- var _, done = false;
1095
- for (var i = decorators.length - 1; i >= 0; i--) {
1096
- var context = {};
1097
- for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
1098
- for (var p in contextIn.access) context.access[p] = contextIn.access[p];
1099
- context.addInitializer = function(f) {
1100
- if (done) throw new TypeError("Cannot add initializers after decoration has completed");
1101
- extraInitializers.push(accept(f || null));
1102
- };
1103
- var result = (0, decorators[i])(kind === "accessor" ? {
1104
- get: descriptor.get,
1105
- set: descriptor.set
1106
- } : descriptor[key], context);
1107
- if (kind === "accessor") {
1108
- if (result === void 0) continue;
1109
- if (result === null || typeof result !== "object") throw new TypeError("Object expected");
1110
- if (_ = accept(result.get)) descriptor.get = _;
1111
- if (_ = accept(result.set)) descriptor.set = _;
1112
- if (_ = accept(result.init)) initializers.unshift(_);
1113
- } else if (_ = accept(result)) if (kind === "field") initializers.unshift(_);
1114
- else descriptor[key] = _;
1115
- }
1116
- if (target) Object.defineProperty(target, contextIn.name, descriptor);
1117
- done = true;
1118
- };
1119
- /** Settings namespace carrying the user's preset-picker preference and chosen default. */
1120
- const SETTINGS_NAMESPACE = "agent-presets";
1121
- /** Refuse an empty preset id before invoking a domain operation. */
1122
- function validatePresetId(value, field) {
1123
- if (value.length === 0) throw new RemoteError("gateway/bad-request", `${field} must be a non-empty string`, {});
1124
- }
1125
- /** Runtime schema for the user-writable slice. */
1126
- const AgentPresetSettingsSchema = z.object({
1127
- default: z.string(),
1128
- modeSelectionEnabled: z.boolean()
1129
- });
1130
- /**
1131
- * Registry over the deployment's agent presets.
1132
- *
1133
- * Discovery is unmemoized: `list()` and `resolve()` re-read the roots on every
1134
- * call so a preset authored while the process runs is visible immediately,
1135
- * and a preset deleted underneath a picker disappears from the next read.
1136
- */
1137
- let AgentPresets = (() => {
1138
- let _classSuper = TypertRemoteService;
1139
- let _instanceExtraInitializers = [];
1140
- let _remoteExportList_decorators;
1141
- let _readDocument_decorators;
1142
- let _remoteExportCopy_decorators;
1143
- let _remoteExportDelete_decorators;
1144
- let _select_decorators;
1145
- return class AgentPresets extends _classSuper {
1146
- static {
1147
- const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
1148
- _remoteExportList_decorators = [Remote("list")];
1149
- _readDocument_decorators = [Remote("read")];
1150
- _remoteExportCopy_decorators = [Remote("copy")];
1151
- _remoteExportDelete_decorators = [Remote("deletePreset")];
1152
- _select_decorators = [Remote("select")];
1153
- __esDecorate(this, null, _remoteExportList_decorators, {
1154
- kind: "method",
1155
- name: "remoteExportList",
1156
- static: false,
1157
- private: false,
1158
- access: {
1159
- has: (obj) => "remoteExportList" in obj,
1160
- get: (obj) => obj.remoteExportList
1161
- },
1162
- metadata: _metadata
1163
- }, null, _instanceExtraInitializers);
1164
- __esDecorate(this, null, _readDocument_decorators, {
1165
- kind: "method",
1166
- name: "readDocument",
1167
- static: false,
1168
- private: false,
1169
- access: {
1170
- has: (obj) => "readDocument" in obj,
1171
- get: (obj) => obj.readDocument
1172
- },
1173
- metadata: _metadata
1174
- }, null, _instanceExtraInitializers);
1175
- __esDecorate(this, null, _remoteExportCopy_decorators, {
1176
- kind: "method",
1177
- name: "remoteExportCopy",
1178
- static: false,
1179
- private: false,
1180
- access: {
1181
- has: (obj) => "remoteExportCopy" in obj,
1182
- get: (obj) => obj.remoteExportCopy
1183
- },
1184
- metadata: _metadata
1185
- }, null, _instanceExtraInitializers);
1186
- __esDecorate(this, null, _remoteExportDelete_decorators, {
1187
- kind: "method",
1188
- name: "remoteExportDelete",
1189
- static: false,
1190
- private: false,
1191
- access: {
1192
- has: (obj) => "remoteExportDelete" in obj,
1193
- get: (obj) => obj.remoteExportDelete
1194
- },
1195
- metadata: _metadata
1196
- }, null, _instanceExtraInitializers);
1197
- __esDecorate(this, null, _select_decorators, {
1198
- kind: "method",
1199
- name: "select",
1200
- static: false,
1201
- private: false,
1202
- access: {
1203
- has: (obj) => "select" in obj,
1204
- get: (obj) => obj.select
1205
- },
1206
- metadata: _metadata
1207
- }, null, _instanceExtraInitializers);
1208
- if (_metadata) Object.defineProperty(this, Symbol.metadata, {
1209
- enumerable: true,
1210
- configurable: true,
1211
- writable: true,
1212
- value: _metadata
1213
- });
1214
- }
1215
- config = __runInitializers(this, _instanceExtraInitializers);
1216
- static inject = ["loader", "sessionProjections"];
1217
- /** Runtime schema for the preset roster. */
1218
- static Config = z.object({
1219
- default: z.string().required(),
1220
- roots: z.array(z.object({
1221
- path: z.string().required(),
1222
- trust: z.union(["system", "user"]).default("user")
1223
- })).default([]),
1224
- includeShippedRoot: z.boolean().default(true),
1225
- includeUserRoot: z.boolean().default(true)
1226
- });
1227
- /**
1228
- * The roots discovery and authoring actually scan: the package's shipped
1229
- * root unless `includeShippedRoot` is false, then every configured root in
1230
- * order, then the harness-home user root unless `includeUserRoot` is false.
1231
- *
1232
- * Derived once, because a root set that changed between `list()` and the
1233
- * `copy()` acting on its answer would author into a directory the caller
1234
- * never saw. The shipped root comes FIRST and the user root LAST because an
1235
- * earlier root wins a duplicate id: a shipped preset shadows any directory
1236
- * that claimed its name, and a configured root still shadows a locally
1237
- * authored one.
1238
- */
1239
- resolvedRoots;
1240
- /**
1241
- * Where a row's package name resolves from: the base URL of the composition
1242
- * this roster was loaded by, which is inside the installed harness.
1243
- *
1244
- * Discovery needs it because a preset's own directory is the wrong base for
1245
- * a package name — a locally authored preset lives under the user's home,
1246
- * where Node's upward `node_modules` walk never reaches the harness's
1247
- * dependencies. The mount already resolves rows this way; holding the same
1248
- * base here is what lets health answer the question before a session does.
1249
- */
1250
- harnessBase;
1251
- /**
1252
- * The user layer over `config.default`, present only while a settings
1253
- * provider is composed. Held rather than snapshotted so a hot-reloaded
1254
- * document takes effect without a restart.
1255
- */
1256
- settings;
1257
- /**
1258
- * The settings service behind {@link settings}, held for the one write this
1259
- * service makes: clearing a user default it has just deleted.
1260
- */
1261
- settingsService;
1262
- /**
1263
- * The service's own untraced context. Methods invoked through the traceable
1264
- * proxy see `this.ctx` rebound to the CALLER's context, which carries a
1265
- * shadow; a subtree minted from it resolves every service through that
1266
- * shadow's fiber instead of each entry's own inject store, so preset rows
1267
- * would fail on the very services they declare. Standing mounts must hang
1268
- * off the untraced original (the `jobs-local` selfCtx precedent).
1269
- */
1270
- selfCtx;
1271
- constructor(ctx, config) {
1272
- super(ctx, "agentPresets");
1273
- this.config = config;
1274
- this.selfCtx = ctx;
1275
- const { baseUrl } = ctx;
1276
- if (baseUrl === void 0) throw new Error("agent-presets: the roster needs `ctx.baseUrl` to resolve the plugins a composition names; compose it under a Loader, or set the base on the context this plugin is applied to");
1277
- this.harnessBase = baseUrl;
1278
- this.resolvedRoots = [
1279
- ...config.includeShippedRoot ? [{
1280
- path: SHIPPED_PRESET_ROOT,
1281
- trust: "system"
1282
- }] : [],
1283
- ...config.roots,
1284
- ...config.includeUserRoot ? [{
1285
- path: dshHomePath(USER_PRESET_DIR),
1286
- trust: "user"
1287
- }] : []
1288
- ];
1289
- ctx.inject(["settings"], (settingsCtx) => {
1290
- this.settings = settingsCtx.settings.register(SETTINGS_NAMESPACE, AgentPresetSettingsSchema, { base: {
1291
- default: config.default,
1292
- modeSelectionEnabled: true
1293
- } });
1294
- this.settingsService = settingsCtx.settings;
1295
- settingsCtx.effect(() => () => {
1296
- this.settings = void 0;
1297
- this.settingsService = void 0;
1298
- }, "agentPresets.settings()");
1299
- });
1300
- ctx.sessionProjections.register(agentPresetProjectionDefinition);
1301
- ctx.on("agent/created", ({ agent }) => {
1302
- if (this.resolvedRoots.length === 0) return;
1303
- if (this.composedPreset(agent.ctx) !== void 0) return;
1304
- ctx.logger.warn(`agent "${agent.id}" was published without joining an agent preset; its tools, prompt sections, and skill catalog resolve against the empty global layer (join through AgentPresets.mount() or composeFrom() in the agent factory setup)`);
1305
- });
1306
- ctx.on("session/event", (session, event) => {
1307
- if (event.type !== "agent-preset/selected") return;
1308
- ctx.emit("agent-preset/selected", session.id, event.data.agentPreset);
1309
- });
1310
- }
1311
- /**
1312
- * The preset id mounted when a caller names none.
1313
- *
1314
- * Read per call rather than cached: the settings document is hot-reloaded, so
1315
- * changing the default takes effect on the next session created and leaves
1316
- * every running session on the preset it was composed from.
1317
- */
1318
- get defaultId() {
1319
- return this.selectionPolicy().defaultId;
1320
- }
1321
- /** Read one internally consistent snapshot of the selection policy. */
1322
- selectionPolicy() {
1323
- const settings = this.settings?.get();
1324
- if (settings === void 0) return {
1325
- enabled: true,
1326
- defaultId: this.config.default
1327
- };
1328
- const enabled = settings.modeSelectionEnabled;
1329
- return {
1330
- enabled,
1331
- defaultId: enabled ? settings.default : this.config.default
1332
- };
1333
- }
1334
- /**
1335
- * Every preset the configured roots currently supply.
1336
- * @returns the presets, first-root-wins per id.
1337
- */
1338
- async list() {
1339
- const packages = this.ctx.get("pluginPackages");
1340
- return packages === void 0 ? await discoverPresets(this.resolvedRoots, this.harnessBase) : await discoverPresets(this.resolvedRoots, this.harnessBase, (specifier, base) => packages.packageOf(specifier, base) !== void 0);
1341
- }
1342
- /**
1343
- * The roster off the Host: {@link list} projected to path-free rows, with
1344
- * the policy-effective default marked, this deployment's authoring
1345
- * capability, and its mode-selection policy beside it.
1346
- *
1347
- * Whether a client can open a preset's directory is the Host's own opener
1348
- * capability, not a roster property — a caller needing both joins them.
1349
- * @returns the rows, authoring capability, and effective selection policy.
1350
- */
1351
- async remoteExportList() {
1352
- const policy = this.selectionPolicy();
1353
- return {
1354
- presets: (await this.list()).map((preset) => ({
1355
- id: preset.id,
1356
- trust: preset.trust,
1357
- isDefault: preset.id === policy.defaultId,
1358
- ...preset.name === void 0 ? {} : { name: preset.name },
1359
- ...preset.description === void 0 ? {} : { description: preset.description },
1360
- ...preset.broken === void 0 ? {} : { broken: preset.broken }
1361
- })),
1362
- authorable: this.authorable,
1363
- modeSelectionEnabled: policy.enabled
1364
- };
1365
- }
1366
- /**
1367
- * Every preset's composition as flattened plugin rows, for plugin-listing
1368
- * surfaces beside the roster's own picker.
1369
- *
1370
- * A preset with a live standing mount answers from its newest generation's
1371
- * Loader entries — the composition new sessions join — even when the file
1372
- * behind it has since been edited into an unreadable state: the mount is
1373
- * what sessions actually run, so the broken verdict only applies to a
1374
- * preset nothing composed. One never composed since boot answers from its
1375
- * file, with `!!js` disabled gates evaluated against the Loader context so
1376
- * both answers reflect the same host. Reading never mounts: an unmounted
1377
- * preset is parsed, not composed, so listing a preset's plugins cannot
1378
- * activate them early. A composition that stopped reading between
1379
- * discovery's health verdict and this read is reported broken with the
1380
- * raced reason rather than dropped.
1381
- * @returns one composition per roster preset, in roster order.
1382
- */
1383
- async compositionInventory() {
1384
- const defaultId = this.defaultId;
1385
- const evaluateExpression = (expression) => evaluate(this.ctx.loader.ctx, expression);
1386
- const rootFiber = this.ctx.root.fiber;
1387
- const found = [];
1388
- for (const preset of await this.list()) {
1389
- const identity = {
1390
- id: preset.id,
1391
- trust: preset.trust,
1392
- ...preset.name === void 0 ? {} : { name: preset.name },
1393
- isDefault: preset.id === defaultId
1394
- };
1395
- const mount = livePresetMounts(rootFiber).findLast((candidate) => candidate.presetId === preset.id);
1396
- if (mount !== void 0) {
1397
- found.push({
1398
- ...identity,
1399
- rows: mountedCompositionRows(mount.tree)
1400
- });
1401
- continue;
1402
- }
1403
- if (preset.broken !== void 0) {
1404
- found.push({
1405
- ...identity,
1406
- broken: preset.broken,
1407
- rows: []
1408
- });
1409
- continue;
1410
- }
1411
- const read = await fileComposition(preset.path, evaluateExpression);
1412
- found.push("broken" in read ? {
1413
- ...identity,
1414
- broken: read.broken,
1415
- rows: []
1416
- } : {
1417
- ...identity,
1418
- rows: read.rows
1419
- });
1420
- }
1421
- return found;
1422
- }
1423
- /**
1424
- * Resolve one preset by id.
1425
- *
1426
- * A broken preset resolves — deleting one, reading one, and reporting one
1427
- * all need the row — and the mounting paths refuse it AFTER resolution
1428
- * through {@link resolveMountable}.
1429
- * @param id - the preset id, or `undefined` for {@link defaultId}.
1430
- * @returns the resolved preset.
1431
- * @throws when no configured root supplies that id.
1432
- */
1433
- async resolve(id) {
1434
- const wanted = id ?? this.defaultId;
1435
- const presets = await this.list();
1436
- const found = presets.find((preset) => preset.id === wanted);
1437
- if (found === void 0) {
1438
- const available = presets.map((preset) => preset.id);
1439
- throw new RemoteError("agent-preset/not-found", `agent-presets: preset "${wanted}" not found (available: ${available.join(", ") || "none"})`, {
1440
- agentPreset: wanted,
1441
- available
1442
- });
1443
- }
1444
- return found;
1445
- }
1446
- /**
1447
- * Resolve one preset that is about to compose an agent, refusing a broken
1448
- * one with its discovery-reported reason. Failing here rather than inside
1449
- * the loader keeps the answer the same for every unloadable shape — ghost
1450
- * directory, unparsable YAML, rowless list — and spends no mount attempt
1451
- * on a composition discovery already read as unusable.
1452
- * @param id - the preset id, or `undefined` for {@link defaultId}.
1453
- * @returns the resolved, mountable preset.
1454
- * @throws when the preset is unknown or discovery reports it broken.
1455
- */
1456
- async resolveMountable(id) {
1457
- const preset = await this.resolve(id);
1458
- if (preset.broken !== void 0) throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${preset.broken}`, {
1459
- agentPreset: preset.id,
1460
- reason: preset.broken
1461
- });
1462
- return preset;
1463
- }
1464
- /**
1465
- * Standing mounts by preset id, single-flight so two agents racing the
1466
- * first use of one preset share one composition. A settled failure is
1467
- * removed so a later session retries a preset whose file has been fixed; a
1468
- * settled success serves until the composition FILE visibly changes — each
1469
- * generation records its file stamp, and a stale stamp starts the next
1470
- * generation for sessions created afterwards. Sessions already joined keep
1471
- * the generation they run on; a superseded one is never disposed while the
1472
- * process lives (reclaimed only by whole-tree teardown), so editing files
1473
- * is bounded by how often compositions change, not by session count.
1474
- */
1475
- standing = /* @__PURE__ */ new Map();
1476
- /**
1477
- * Parent bindings of the agents this roster composed, keyed by the agent's
1478
- * scope key. The binding is dsh-scope's only re-link capability; holding it
1479
- * here makes this service the sole authority that can move an agent between
1480
- * standing compositions. WeakMap: entries die with their agents.
1481
- */
1482
- bindings = /* @__PURE__ */ new WeakMap();
1483
- /**
1484
- * Compose one agent from a preset: ensure the preset's standing mount, then
1485
- * parent the agent's scope key to it so the mount's registrations and
1486
- * listeners cover this agent.
1487
- *
1488
- * Call from the agent factory's `setup(agentCtx)`; a rejection there rolls
1489
- * the agent creation back, so a broken preset never yields a half-composed
1490
- * session.
1491
- * @param agentCtx - the agent's scope context.
1492
- * @param id - the preset id, or `undefined` for {@link defaultId}.
1493
- * @returns the preset that was composed, for the caller to record.
1494
- * @throws when the preset is unknown or its composition is unusable.
1495
- */
1496
- async mount(agentCtx, id) {
1497
- const agentKey = scopeOf(agentCtx);
1498
- if (agentKey === void 0) throw new Error("agent-presets: refusing to compose an unscoped context; the scope key is what joins an agent to its preset");
1499
- const preset = await this.resolveMountable(id);
1500
- const standing = await this.ensureStanding(preset);
1501
- this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
1502
- return preset;
1503
- }
1504
- /**
1505
- * Join one agent to the SAME standing composition another already runs on.
1506
- *
1507
- * This is how a child agent inherits its parent's capabilities. It is a bind,
1508
- * not a mount: the parent's generation is already composed, so the child gets
1509
- * that exact instance — the same plugin objects, the same tool registrations,
1510
- * the same prompt sections. Re-resolving the parent's preset by id instead
1511
- * would re-read the roster, and a composition file edited since the parent
1512
- * started would hand the child a DIFFERENT generation than the one its
1513
- * parent's history was produced under (and a preset deleted since would fail
1514
- * the child outright while its parent keeps running).
1515
- *
1516
- * Synchronous, and with no composition failure mode of its own — it reads no
1517
- * roster, mounts nothing, and touches no file — which is what lets a child
1518
- * creation window use it: the two in-process subagent drivers compose their
1519
- * children inside a synchronous `setup`. It still rejects a caller error, as
1520
- * the `@throws` below record.
1521
- *
1522
- * A parent that joined no preset — a rosterless deployment — yields no join
1523
- * and no error: there, the model-facing rows sit in the host composition and
1524
- * the child already sees them through the global layer.
1525
- * @param agentCtx - the joining agent's scope context.
1526
- * @param parentCtx - the scope context of the agent whose composition to join.
1527
- * @returns the preset id joined, or undefined when the parent joined none.
1528
- * @throws when `agentCtx` carries no scope, or has already joined a preset.
1529
- */
1530
- composeFrom(agentCtx, parentCtx) {
1531
- const agentKey = scopeOf(agentCtx);
1532
- if (agentKey === void 0) throw new Error("agent-presets: refusing to compose an unscoped context; the scope key is what joins an agent to its preset");
1533
- const standing = standingMountFor(parentCtx);
1534
- if (standing === void 0) return void 0;
1535
- this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
1536
- return standing.presetId;
1537
- }
1538
- /**
1539
- * The preset one live agent runs on.
1540
- *
1541
- * Read from the live scope chain rather than from the session, so it answers
1542
- * for an agent whose session has not recorded a preset yet — a child agent
1543
- * whose durable header is being built from its parent's composition.
1544
- * @param agentCtx - the agent's scope context.
1545
- * @returns the preset id, or undefined when the agent joined none.
1546
- */
1547
- composedPreset(agentCtx) {
1548
- return standingMountFor(agentCtx)?.presetId;
1549
- }
1550
- /**
1551
- * The roots this roster scans, which is not `config.roots`: the package's
1552
- * shipped root unless `includeShippedRoot` is false, every configured root
1553
- * in order, then the harness-home user root unless `includeUserRoot` is
1554
- * false. Read this — not the config field — to answer whether a roster is
1555
- * composed at all, so one derivation decides it.
1556
- */
1557
- get roots() {
1558
- return this.resolvedRoots;
1559
- }
1560
- /** Whether this deployment has a root locally authored presets go to. */
1561
- get authorable() {
1562
- return this.resolvedRoots.some((root) => root.trust === "user");
1563
- }
1564
- /**
1565
- * Read one preset's composition text.
1566
- * @param id - the preset id.
1567
- * @returns the composition exactly as stored.
1568
- * @throws when no configured root supplies that id.
1569
- */
1570
- async read(id) {
1571
- return await readComposition(await this.resolve(id));
1572
- }
1573
- /**
1574
- * One preset's composition text with the roster row it belongs to.
1575
- * @param agentPreset - the preset id.
1576
- * @returns the composition beside its trust and published metadata.
1577
- * @throws {RemoteError} `gateway/bad-request` for an empty id, or
1578
- * `agent-preset/not-found` when no configured root supplies it.
1579
- */
1580
- async readDocument(agentPreset) {
1581
- validatePresetId(agentPreset, "agentPreset");
1582
- const preset = await this.resolve(agentPreset);
1583
- return {
1584
- agentPreset: preset.id,
1585
- trust: preset.trust,
1586
- content: await this.read(preset.id),
1587
- ...preset.name === void 0 ? {} : { name: preset.name },
1588
- ...preset.description === void 0 ? {} : { description: preset.description }
1589
- };
1590
- }
1591
- /**
1592
- * Create a locally authored preset by copying an existing one whole.
1593
- *
1594
- * Copy is the only authoring write. Composition text never crosses this
1595
- * seam: the source is named by id and its directory is copied as it stands,
1596
- * so the copy is exactly as loadable as its source and authoring grants no
1597
- * capability the roster did not already carry. The copy is NOT mounted to
1598
- * validate — a source that mounts today yields a copy that mounts today.
1599
- * @param from - the preset the copy starts from; shipped presets are the
1600
- * primary source, so any trust is accepted.
1601
- * @param id - the new preset's id, which becomes its directory name.
1602
- * @param name - display name for the copy; absent falls back to the id.
1603
- * @throws when the source is unknown, the id is unusable or already taken,
1604
- * or the deployment configures no writable root.
1605
- */
1606
- async copy(from, id, name) {
1607
- const source = await this.resolve(from);
1608
- if ((await this.list()).some((preset) => preset.id === id)) throw presetExists(id);
1609
- await copyComposition(this.resolvedRoots, source, id, name);
1610
- this.standing.delete(id);
1611
- }
1612
- /**
1613
- * Copy one preset through the Remote API.
1614
- * @param from - the source preset id.
1615
- * @param id - the new preset id.
1616
- * @param name - the copy's optional display name.
1617
- * @returns once the copy is stored.
1618
- * @throws {RemoteError} with the corresponding stable preset code and
1619
- * details when the copy is refused.
1620
- */
1621
- async remoteExportCopy(from, id, name) {
1622
- validatePresetId(from, "from");
1623
- validatePresetId(id, "agentPreset");
1624
- await this.copy(from, id, name);
1625
- }
1626
- /**
1627
- * Delete a locally authored preset.
1628
- *
1629
- * @param id - the preset id.
1630
- * @throws when the preset is unknown or ships with the deployment.
1631
- */
1632
- async remove(id) {
1633
- await deleteComposition(this.resolvedRoots, await this.resolve(id));
1634
- this.standing.delete(id);
1635
- if (this.settings?.get().default !== id) return;
1636
- await this.settingsService?.mutate(SETTINGS_NAMESPACE, [{
1637
- op: "unset",
1638
- path: ["default"]
1639
- }]);
1640
- }
1641
- /**
1642
- * Delete one preset through the Remote API.
1643
- * @param id - the preset id.
1644
- * @returns once the preset is deleted.
1645
- * @throws {RemoteError} with the corresponding stable preset code and
1646
- * details when deletion is refused.
1647
- */
1648
- async remoteExportDelete(id) {
1649
- validatePresetId(id, "agentPreset");
1650
- await this.remove(id);
1651
- }
1652
- /**
1653
- * One agent's instance of a service its preset mounted.
1654
- *
1655
- * A preset publishes services behind `isolate` realms, which are invisible
1656
- * outside the group that declares them — including to the host. This is how a
1657
- * caller holding the agent reads one anyway: a request that is ABOUT a
1658
- * session but arrives from outside it, which is every browser RPC.
1659
- *
1660
- * Read addressing only. A host row that `inject`s a service cannot use this,
1661
- * because injection resolves before any session exists and has no agent to
1662
- * key by; such a service belongs on the host plane instead.
1663
- * @param agent - the agent whose composition to look inside.
1664
- * @param name - the service name as the preset's rows resolve it.
1665
- * @returns the agent's instance, or undefined when its preset mounts none.
1666
- */
1667
- serviceFor(agent, name) {
1668
- return serviceForAgent(this.ctx, agent, name);
1669
- }
1670
- /**
1671
- * Re-link one agent to a different preset's standing composition.
1672
- *
1673
- * Only valid while the agent has produced nothing: swapping tools mid
1674
- * conversation would leave logged tool calls the new composition cannot
1675
- * make. The CALLER owns that check — this method does not read session
1676
- * history.
1677
- *
1678
- * The swap is a parent re-link, not an unmount: standing mounts are shared
1679
- * and permanent, so the old composition stays for its other agents and the
1680
- * new one is ensured BEFORE the link moves. An unknown or unusable preset
1681
- * therefore throws with the agent exactly as it was — there is no torn-down
1682
- * state to restore. The re-link runs through the binding this roster kept
1683
- * from the agent's mount — dsh-scope's only re-link authority. An agent
1684
- * that never composed one has nothing to re-link: the switch is then the
1685
- * agent's first bind, exactly a mount. A committed re-link emits
1686
- * `tools/change` because changing the parent scope changes the Agent's
1687
- * resolved tool set without adding or removing registry entries.
1688
- * @param agentCtx - the agent's scope context.
1689
- * @param id - the preset to compose the agent from instead.
1690
- * @returns the preset now installed.
1691
- * @throws when the preset is unknown or its composition is unusable.
1692
- */
1693
- async recompose(agentCtx, id) {
1694
- const agentKey = scopeOf(agentCtx);
1695
- if (agentKey === void 0) throw new Error("agent-presets: refusing to recompose an unscoped context");
1696
- const preset = await this.resolveMountable(id);
1697
- const standing = await this.ensureStanding(preset);
1698
- const binding = this.bindings.get(agentKey);
1699
- if (binding === void 0) this.bindings.set(agentKey, bindScopeParent(agentKey, standing.key));
1700
- else binding.rebind(standing.key);
1701
- try {
1702
- this.ctx.emit("tools/change");
1703
- } catch (error) {
1704
- this.ctx.logger.warn(`agent-presets: tools/change listener failed after recomposing an Agent: ${String(error)}`);
1705
- }
1706
- return preset;
1707
- }
1708
- /**
1709
- * Serializes {@link select} per session. Two concurrent selects would both
1710
- * pass the blank check, and the second re-link would then find the record
1711
- * the first already replaced — leaving two compositions registered into one
1712
- * agent layer. A client's `busy` flag is not enforcement: the wire is
1713
- * reachable directly.
1714
- *
1715
- * Entries hold a failure-swallowing guard rather than the turn itself, so a
1716
- * refused switch does not reject the next caller's chain.
1717
- */
1718
- switches = /* @__PURE__ */ new Map();
1719
- /**
1720
- * Compose a blank session's agent from a different preset and record it.
1721
- * @param agent - the session's live agent, resolved from the wire identity.
1722
- * @param agentPreset - the preset to compose the agent from instead.
1723
- * @returns the preset id that was recorded.
1724
- * @throws {RemoteError} with `gateway/bad-request`, `agent-preset/locked`,
1725
- * `agent-preset/not-found`, or `agent-preset/invalid` when refused.
1726
- */
1727
- async select(agent, agentPreset) {
1728
- validatePresetId(agentPreset, "agentPreset");
1729
- const turn = (this.switches.get(agent.id) ?? Promise.resolve()).then(() => this.swap(agent, agentPreset));
1730
- const guard = turn.catch(() => void 0);
1731
- this.switches.set(agent.id, guard);
1732
- try {
1733
- return await turn;
1734
- } finally {
1735
- if (this.switches.get(agent.id) === guard) this.switches.delete(agent.id);
1736
- }
1737
- }
1738
- /** One queued switch: re-check, recompose, then record what the agent runs. */
1739
- async swap(agent, agentPreset) {
1740
- const boundary = this.selfCtx.sessionProjections.stateOf(agent.session, "turnBoundary");
1741
- if (boundary !== void 0 && (boundary.openTurnStartSeq !== null || boundary.lastTurn > 0)) throw new RemoteError("agent-preset/locked", `session "${agent.id}" has already started; its agent preset is fixed`, {
1742
- sessionId: agent.id,
1743
- agentPreset
1744
- });
1745
- const preset = await this.recompose(agent.ctx, agentPreset);
1746
- agent.session.append("agent-preset/selected", { agentPreset: preset.id });
1747
- return preset.id;
1748
- }
1749
- /**
1750
- * The standing scope key of one preset, for a host reader with no agent.
1751
- *
1752
- * A cold transcript read resolves tool presenters against the composition
1753
- * the session recorded, and the standing mount makes that possible without
1754
- * resuming anything: ensuring the mount composes plugins but starts no
1755
- * agent, no session, and no turn.
1756
- * @param id - the preset id, or `undefined` for {@link defaultId}.
1757
- * @returns the standing scope key readers pass as a registry view scope.
1758
- * @throws when the preset is unknown or its composition is unusable.
1759
- */
1760
- async standingKeyFor(id) {
1761
- const preset = await this.resolveMountable(id);
1762
- return (await this.ensureStanding(preset)).key;
1763
- }
1764
- /** Resolve (or create, single-flight) the standing mount of one preset. */
1765
- async ensureStanding(preset) {
1766
- const pending = this.standing.get(preset.id);
1767
- if (pending !== void 0) {
1768
- const mounted = await pending;
1769
- const current = await compositionStamp(preset.path);
1770
- if (current === void 0 || sameStamp(mounted.stamp, current)) return mounted;
1771
- if (this.standing.get(preset.id) === pending) this.standing.delete(preset.id);
1772
- return this.ensureStanding(preset);
1773
- }
1774
- const created = (async () => {
1775
- const key = { agentPreset: preset.id };
1776
- const scope = createScope(this.selfCtx, key);
1777
- try {
1778
- const stamp = await compositionStamp(preset.path);
1779
- if (stamp === void 0) {
1780
- const reason = `composition file is unreadable: ${preset.path}`;
1781
- throw new RemoteError("agent-preset/invalid", `agent-presets: preset "${preset.id}" failed to mount: ${reason}`, {
1782
- agentPreset: preset.id,
1783
- reason
1784
- });
1785
- }
1786
- await mountPreset(scope.ctx, preset);
1787
- return {
1788
- key,
1789
- scope,
1790
- stamp
1791
- };
1792
- } catch (error) {
1793
- this.standing.delete(preset.id);
1794
- await scope.dispose();
1795
- throw error;
1796
- }
1797
- })();
1798
- this.standing.set(preset.id, created);
1799
- return created;
1800
- }
1801
- };
1802
- })();
1803
- /** Read one composition file's stamp, or undefined when it cannot be statted. */
1804
- async function compositionStamp(path) {
1805
- try {
1806
- const { mtimeMs, size } = await stat(path);
1807
- return {
1808
- mtimeMs,
1809
- size
1810
- };
1811
- } catch {
1812
- return;
1813
- }
1814
- }
1815
- /** Whether two stamps name the same file state. */
1816
- function sameStamp(a, b) {
1817
- return a.mtimeMs === b.mtimeMs && a.size === b.size;
1818
- }
1819
- //#endregion
1820
- export { AgentPresetSettingsSchema, AgentPresets, AgentPresets as default, COMPOSITION_FILE, METADATA_FILE, SETTINGS_NAMESPACE, SHIPPED_PRESET_ROOT, agentPresetProjectionDefinition, copyComposition, deleteComposition, discoverPresets, inactiveRows, leakedServices, livePresetMounts, mountPreset, readComposition, readPresetMetadata, renderPresetMetadata, scanRoot, serviceForAgent, standingMountFor, writableRoot };