@songtonyli/dsh-cli 0.1.31 → 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 +10 -10
  1171. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +10 -10
  1172. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +510 -113
  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
@@ -71,7 +71,157 @@ window.__ModuleLoader__.load({
71
71
  }
72
72
  };
73
73
  //#endregion
74
- //#region ../../preset/agent-presets/src/display.ts
74
+ //#region lib/types/client/guide-locales.js
75
+ /** Curated help for shipped presets, kept separate from their short picker copy. */
76
+ const guideEn = {
77
+ modeExplanation: "Mode details",
78
+ howToUse: "How to use",
79
+ guideSections: "Guide sections",
80
+ guideExampleTask: "Example task",
81
+ guideCopy: "Copy",
82
+ guideCopied: "Copied",
83
+ guideFootnotes: "Footnotes",
84
+ guideStandardIntro: "Choose Standard mode when starting a new task. Describe what you want to accomplish, point to the relevant files, and explain how to check the result.",
85
+ guideStandardExplanation: [
86
+ "### How it works",
87
+ "The agent calls tools directly to read and edit files, search, and run terminal commands. It includes Skills, planning, goals, subagents, workflows, and context compaction.",
88
+ "### When to choose it",
89
+ "Start here for everyday coding, file work, and research. Standard mode can also write scripts and process files in batches. PTC changes how tool calls are organized; it is not required for batch tasks."
90
+ ].join("\n\n"),
91
+ guideStandardUsage: [
92
+ "### Fix a bug",
93
+ "> Find out why submitting the search form twice makes the results disappear. Fix it and run the relevant tests. Explain the cause and what changed.",
94
+ "Expected output: a code change, the relevant test results, and an explanation of the cause.",
95
+ "### Organize project notes",
96
+ "> Read the Markdown notes in this project. Summarize the agreed decisions and open questions, with links to the source files.",
97
+ "Expected output: a summary with references that you can check against the original notes."
98
+ ].join("\n\n"),
99
+ guidePtcIntro: "Choose PTC mode when starting a new task. Specify the input files, processing rules, and output format. The agent writes the code.",
100
+ guidePtcExplanation: [
101
+ "### How tools are called",
102
+ "PTC means Programmatic Tool Calling. In this built-in preset, the agent uses run_code to write a TypeScript program that calls tools through a generated SDK. The program can use loops, conditions, error handling, and concurrent calls where appropriate.",
103
+ "### What reaches the model",
104
+ "Tool results first reach the program, which can filter and combine them. The model receives what the program prints or returns; image results are attached separately. Nested tool calls are still recorded and remain subject to tool permissions.",
105
+ "### Compared with Standard mode",
106
+ "Both modes can handle coding and batch tasks. Standard mode exposes individual tools directly; PTC organizes tool calls in code. The current PTC preset leaves the workflow tool disabled. Speed and token use depend on the task and how the program handles its results."
107
+ ].join("\n\n"),
108
+ guidePtcUsage: [
109
+ "### Check a set of configuration files",
110
+ "> Check all JSON files in configs/. List missing required fields and invalid values against schema.json. Save a CSV with one row per issue. Include unreadable files in the report and keep checking the rest. Leave the original files unchanged.",
111
+ "Expected output: an issue summary and a CSV report. The program can repeat the same checks, handle individual failures, and collect the results.",
112
+ "### Summarize error logs",
113
+ "> Analyze the log files in logs/. Group errors by service and error type. Show the ten most frequent groups and one example from each. Save the full counts to a CSV.",
114
+ "Expected output: the top error groups and a complete count table. Intermediate data can be aggregated in the program before the summary reaches the model."
115
+ ].join("\n\n"),
116
+ guideMinimalIntro: "Choose Minimal mode for a new task. For a comparison, hold the model, permissions, input, and starting workspace state constant across runs.",
117
+ guideMinimalExplanation: [
118
+ "### What is included",
119
+ "One persistent shell tool and a fixed system prompt. The built-in preset does not load Skills, planning, context compaction, or the standard runtime context.",
120
+ "### When to choose it",
121
+ "Use it as a baseline for experiments and comparisons. It can still read files and execute scripts through shell commands, but offers fewer built-in ways to manage a long task. Fewer tools does not necessarily make it easier for a beginner."
122
+ ].join("\n\n"),
123
+ guideMinimalUsage: [
124
+ "### Compare performance on a small bug fix",
125
+ "> Run the tests for this project, find the cause of the failure, and make the smallest fix. Run the relevant tests again and report the result.",
126
+ "Run the same task separately in Standard and Minimal modes from the same starting state. Compare task completion, tool calls, and the resulting changes. Minimal mode performs the work through terminal commands."
127
+ ].join("\n\n"),
128
+ guideCordisIntro: "Choose Creator mode for a new task. Describe the capability you want, where it should appear, and how you will verify it.",
129
+ guideCordisExplanation: [
130
+ "### What you can create",
131
+ "Creator mode includes the standard task tools plus runtime inspection, persistent plugin management, and guidance for authoring Cordis plugins and agent presets. It can create a plugin that adds a capability or UI, or a preset that combines tools and prompts for a particular job.",
132
+ "### Plugins and modes",
133
+ "A plugin adds capabilities to DSH, such as a tool, a service connection, or a UI entry. A mode is an agent preset that selects tools and defines how the agent works in a task. A plugin can be included in a custom preset.",
134
+ "### How the result takes effect",
135
+ "Ask the agent to install and verify the result, not just generate source code. A plugin may load immediately or require a restart, depending on what it changes. A newly created preset is selected when starting a new task."
136
+ ].join("\n\n"),
137
+ guideCordisUsage: [
138
+ "### Add a UI",
139
+ "> Create a DSH plugin that adds a project notes entry to the sidebar. Let me browse the Markdown files in this workspace and preview a selected note. Install it and verify that the page opens.",
140
+ "Expected output: an installed plugin with a working entry and preview page, plus any remaining activation steps.",
141
+ "### Add a tool",
142
+ "> Create a plugin with a tool that reads this project’s test report and summarizes the failed tests. Register it and verify it with a sample report.",
143
+ "Expected output: a plugin with a callable tool and a verified sample call.",
144
+ "### Create my own mode",
145
+ "> Create a “Code review” mode based on Standard mode. Have it prioritize potential bugs and test gaps, cite file paths and lines, and ask before modifying files. Save it as a selectable preset.",
146
+ "Expected output: a custom preset for new tasks. These review instructions guide the agent; permission settings determine which actions it can execute."
147
+ ].join("\n\n")
148
+ };
149
+ /** Simplified Chinese help. Examples describe suggested tasks, not recorded runs. */
150
+ const guideZh = {
151
+ modeExplanation: "模式说明",
152
+ howToUse: "如何使用",
153
+ guideSections: "帮助内容",
154
+ guideExampleTask: "示例任务",
155
+ guideCopy: "复制",
156
+ guideCopied: "已复制",
157
+ guideFootnotes: "脚注",
158
+ guideStandardIntro: "新建任务时选择「标准模式」,说明要完成什么、相关文件在哪里,以及怎样判断任务完成。",
159
+ guideStandardExplanation: [
160
+ "### 工作方式",
161
+ "Agent 直接调用工具来读写文件、检索资料和执行终端命令。包含 Skills、计划、目标、子 Agent、工作流和上下文压缩等能力。",
162
+ "### 什么时候选",
163
+ "日常编程、文件处理和资料整理可以从这里开始。标准模式也能编写脚本、批量处理文件;PTC 改变的是工具调用方式,批量任务并不必须使用 PTC。"
164
+ ].join("\n\n"),
165
+ guideStandardUsage: [
166
+ "### 修复一个问题",
167
+ "> 搜索表单连续提交两次后,结果会消失。请定位原因、修复问题并运行相关测试,最后说明原因和修改内容。",
168
+ "预期产出:代码修改、相关测试结果,以及问题原因说明。",
169
+ "### 整理项目资料",
170
+ "> 阅读项目中的 Markdown 记录,整理已经达成的结论和仍待确认的问题,并附上对应文件链接。",
171
+ "预期产出:一份带来源引用的总结,方便回到原文核对。"
172
+ ].join("\n\n"),
173
+ guidePtcIntro: "新建任务时选择「PTC 模式」,说明输入文件、处理规则和输出格式。代码由 Agent 编写。",
174
+ guidePtcExplanation: [
175
+ "### 怎样调用工具",
176
+ "PTC 是 Programmatic Tool Calling,即通过程序调用工具。当前内置预设让 Agent 通过 run_code 编写 TypeScript 程序,使用生成的工具 SDK 发起调用。程序可以组织循环、条件判断、错误处理,以及适合并发执行的调用。",
177
+ "### 哪些结果交给模型",
178
+ "工具返回的数据先交给程序,经过筛选、计算或合并,再通过输出或返回值交给模型;图片结果会另行附加。程序中的工具调用仍会被记录,也仍受工具权限约束。",
179
+ "### 与标准模式的区别",
180
+ "两种模式都能编程、批量处理文件。标准模式直接向模型提供各个工具;PTC 让模型用代码组织工具调用。当前 PTC 预设未启用 workflow 工具。速度和 token 用量取决于具体任务与结果处理方式。"
181
+ ].join("\n\n"),
182
+ guidePtcUsage: [
183
+ "### 批量检查配置文件",
184
+ "> 检查 configs/ 下所有 JSON 文件,按照 schema.json 找出缺失字段和不合法的值。每个问题写成 CSV 中的一行;读取失败的文件也记入报告,继续检查其余文件。保留原文件。",
185
+ "预期产出:问题汇总和一份 CSV 报告。程序可以对多份文件执行相同检查,处理单个文件的失败,再汇总结果。",
186
+ "### 汇总错误日志",
187
+ "> 分析 logs/ 下的日志,按服务和错误类型统计次数,列出出现最多的十类错误,每类保留一条示例。完整统计另存为 CSV。",
188
+ "预期产出:高频错误摘要和完整统计表。中间数据可以先在程序中聚合,再把汇总交给模型。"
189
+ ].join("\n\n"),
190
+ guideMinimalIntro: "新建任务时选择「极简模式」。做对照测试时,保持模型、权限、任务输入和工作区起始状态一致。",
191
+ guideMinimalExplanation: [
192
+ "### 保留哪些能力",
193
+ "仅提供一个持久 Shell 工具,并使用固定系统提示词。内置预设不加载 Skills、计划、上下文压缩,也不注入标准运行时上下文。",
194
+ "### 什么时候选",
195
+ "适合作为实验和对照测试的基线。Agent 仍能通过终端命令读写文件、运行脚本,但缺少管理长任务的内置辅助能力。工具少,不代表对新手更容易。"
196
+ ].join("\n\n"),
197
+ guideMinimalUsage: [
198
+ "### 对比基础修复表现",
199
+ "> 运行这个项目的测试,找出失败原因,做最小修复,再运行相关测试并报告结果。",
200
+ "分别用标准模式和极简模式,从相同的工作区状态执行这条任务,对比完成情况、工具调用和最终修改。极简模式会通过终端命令完成这些操作。"
201
+ ].join("\n\n"),
202
+ guideCordisIntro: "新建任务时选择「创造模式」,说明希望增加什么能力、从哪里使用,以及怎样验证效果。",
203
+ guideCordisExplanation: [
204
+ "### 可以创造什么",
205
+ "创造模式具备标准任务工具,并增加运行时检查、持久化插件管理,以及 Cordis 插件和 Agent 预设的开发指引。可以编写插件来添加功能或界面,也可以组合工具和提示词,创建适合特定任务的模式。",
206
+ "### 插件与模式的关系",
207
+ "插件为 DSH 增加能力,例如工具、服务连接或界面入口。模式是一份 Agent 预设,用来选择任务可用的工具,并约定 Agent 的工作方式。自定义模式中也可以使用自己开发的插件。",
208
+ "### 怎样让成果生效",
209
+ "可以要求 Agent 完成安装并验证实际效果。插件可能即时加载,也可能需要重启,取决于修改内容;新建的模式在创建新任务时选择。"
210
+ ].join("\n\n"),
211
+ guideCordisUsage: [
212
+ "### 添加一个界面",
213
+ "> 帮我写一个 DSH 插件,在侧栏增加「项目笔记」入口,列出当前工作区的 Markdown 文件,点击后能预览内容。完成安装并验证页面能打开。",
214
+ "预期产出:带侧栏入口和预览页的插件,以及仍需完成的生效步骤。",
215
+ "### 添加一个工具",
216
+ "> 写一个插件,提供读取项目测试报告、汇总失败用例的工具。注册工具,并用一份示例报告验证调用结果。",
217
+ "预期产出:可调用的新工具,以及一次示例调用的验证结果。",
218
+ "### 创建自己的模式",
219
+ "> 基于标准模式创建「代码审查」模式,优先检查潜在错误和测试缺口,指出文件与行号,修改文件前先询问我。保存成可选择的预设。",
220
+ "预期产出:可在新任务中选择的自定义模式。审查要求用于指导 Agent,实际可执行的操作仍由权限设置决定。"
221
+ ].join("\n\n")
222
+ };
223
+ //#endregion
224
+ //#region ../../preset/agent-preset-registry/src/display.ts
75
225
  const BUILT_IN_PRESET_KEYS = {
76
226
  standard: {
77
227
  name: "presetStandardName",
@@ -91,13 +241,22 @@ window.__ModuleLoader__.load({
91
241
  }
92
242
  };
93
243
  /**
244
+ * Whether a roster row is one of the shipped presets whose copy the dictionaries carry.
245
+ * A shipped preset publishes no `name`; a declaration that names itself owns its copy.
246
+ * @param preset - roster row.
247
+ * @returns true for a shipped preset id without a published name.
248
+ */
249
+ function isBuiltInPreset(preset) {
250
+ return preset.name === void 0 && BUILT_IN_PRESET_KEYS[preset.id] !== void 0;
251
+ }
252
+ /**
94
253
  * Resolve preset display copy without making user-authored metadata translatable.
95
254
  * @param preset - roster row whose copy is being rendered.
96
255
  * @param t - active locale lookup covering {@link BuiltInPresetCopyKey}.
97
- * @returns localized copy for a known shipped preset, otherwise file metadata.
256
+ * @returns localized copy for a known shipped preset, otherwise declaration metadata.
98
257
  */
99
258
  function presetDisplayText(preset, t) {
100
- const keys = preset.trust === "system" ? BUILT_IN_PRESET_KEYS[preset.id] : void 0;
259
+ const keys = isBuiltInPreset(preset) ? BUILT_IN_PRESET_KEYS[preset.id] : void 0;
101
260
  if (keys !== void 0) return {
102
261
  name: t(keys.name),
103
262
  description: t(keys.description)
@@ -112,133 +271,75 @@ window.__ModuleLoader__.load({
112
271
  /** Locale bundles for the agent-preset hero chip, header label, and management section. */
113
272
  /** English copy. */
114
273
  const en = {
115
- error: "Could not load agent presets.",
116
- userTrust: "Custom",
117
- seatHint: "Agent preset for the session you are about to start",
118
- headerHint: "The agent preset this session runs, fixed when it started",
274
+ ...guideEn,
275
+ builtInGroup: "Built-in",
276
+ customGroup: "Custom",
277
+ sectionIntro: "Choose the agent’s tools and how it works. Use Standard mode for everyday tasks, or Creator mode to add capabilities to DSH.",
278
+ seatHint: "Choose the agent preset for your new task",
279
+ headerHint: "The agent preset chosen when this task started",
119
280
  nav: "Agent presets",
120
- sectionIntro: "A preset is the plugin composition one session's agent runs — its tools, prompt, and capabilities. Duplicate an existing one and make it yours, or let the agent draft one for you in Creator mode.",
121
- builtIn: "Built-in",
122
- setDefault: "Set as default",
123
- view: "View",
281
+ setDefault: "Set as new task default",
124
282
  presetStandardName: "Standard mode",
125
- presetStandardDescription: "Full coding agent with file editing, shell, file and web search, skills, planning, goals, subagents, and workflows.",
283
+ presetStandardDescription: "Work with code, files, and information. Suitable for most tasks, with search, editing, terminal commands, and other tools available as needed.",
126
284
  presetPtcName: "PTC mode",
127
- presetPtcDescription: "Full coding agent without the workflow tool; other tools are exposed through the PTC mode SDK so the model can combine multi-step operations in one TypeScript program.",
285
+ presetPtcDescription: "Includes all Standard mode capabilities. Better suited to tasks that call tools in batches and then filter, organize, deduplicate, count, or summarize the results.",
128
286
  presetMinimalName: "Minimal mode",
129
- presetMinimalDescription: "Single-tool coding agent with a persistent shell.",
287
+ presetMinimalDescription: "The agent works using only a terminal tool. Useful for testing and comparing its basic performance.",
130
288
  presetCordisName: "Creator mode",
131
- presetCordisDescription: "Built for creating custom agent presets, with all Standard mode capabilities plus runtime inspection, persistent plugin management, and preset-authoring guidance.",
132
- duplicate: "Duplicate",
133
- duplicateUnavailable: "This deployment has no writable preset directory",
134
- delete: "Delete",
135
- presetId: "Identifier",
136
- presetIdPlaceholder: "my-agent",
137
- displayName: "Name",
138
- displayNamePlaceholder: "Shown in the picker; defaults to the identifier",
289
+ presetCordisDescription: "Customize DSH through conversation. Let the agent write plugins that add features or UI, or combine tools and prompts to create your own mode.",
139
290
  inUse: "New task default",
140
- selectionOffDefault: "Default",
141
- builtInGroup: "Built-in",
142
- customGroup: "Custom",
291
+ selectionOffDefault: "Application default",
143
292
  noDescription: "No description.",
144
293
  brokenBadge: "Failed to load",
145
- brokenNoCopy: "A preset that failed to load cannot be duplicated",
146
294
  switchRefused: "Could not switch to {name}: {reason}",
147
- copyOf: "Copied from",
148
- composition: "Composition (agent.cordis.yml)",
149
- cancel: "Cancel",
150
295
  close: "Close",
151
- retry: "Retry",
152
- copyTitle: "Duplicate preset",
153
- copyIntro: "The whole preset is copied on this machine. The identifier becomes its directory name and cannot be changed later; everything else is edited in the preset's own files.",
154
- create: "Create",
155
- creating: "Creating…",
156
- creatorDraft: "Draft a custom preset with Creator mode",
157
- openLocation: "Open folder",
158
- showLocation: "Show location",
159
- revealedPathLabel: "Preset files:",
160
- idRequired: "Give the preset an identifier.",
161
- idInvalid: "Use lowercase letters, digits, and hyphens, starting with a letter or digit.",
162
- idTaken: "A preset with this identifier already exists.",
163
- deleteTitle: "Delete this preset?",
164
- deleteDescription: "The preset directory is deleted. Sessions already running on it keep working; new sessions cannot select it.",
165
- deleteConfirm: "Delete",
166
- deleting: "Deleting…",
167
- showPicker: "Allow switching Agent modes",
296
+ creatorDraft: "Let the agent help me create a preset",
297
+ showPicker: "Choose a mode for new tasks",
168
298
  showPickerBeta: "Beta",
169
- showPickerDescription: "When enabled, new tasks can choose Standard, PTC, Creator, Minimal, and custom modes. When disabled, all new tasks use the default mode (Standard by default; configurable). Only affects new tasks.",
170
- enablePickerToSetDefault: "Turn on Agent mode selection to choose a default",
171
- enablePickerToCreate: "Turn on Agent mode selection to start Creator mode"
299
+ showPickerDescription: "When enabled, each new task can choose a mode and the default is set here. When disabled, new tasks use the application default preset. Existing tasks are unaffected.",
300
+ enablePickerToSetDefault: "Turn on mode selection for new tasks to choose a default",
301
+ enablePickerToCreate: "Turn on mode selection for new tasks to start Creator mode"
172
302
  };
173
303
  /** Simplified Chinese copy. */
174
304
  const zh = {
175
- error: "无法加载 Agent 预设。",
176
- userTrust: "自定义",
177
- seatHint: "即将开始的这个会话所用的 Agent 预设",
178
- headerHint: "本会话运行的 Agent 预设,开始时即固定",
305
+ ...guideZh,
306
+ builtInGroup: "内置",
307
+ customGroup: "自定义",
308
+ sectionIntro: "选择 Agent 的工具和工作方式。日常任务用「标准模式」,扩展 DSH 的能力用「创造模式」。",
309
+ seatHint: "选择新任务使用的 Agent 预设",
310
+ headerHint: "本任务的 Agent 预设,在任务开始时确定",
179
311
  nav: "Agent 预设",
180
- sectionIntro: "预设即一个会话的 Agent 所运行的插件组装 —— 它的工具、提示词与能力。复制一份既有预设改成自己的,或用「创造模式」让 Agent 帮你创建。",
181
- builtIn: "内置",
182
- setDefault: "设为默认",
183
- view: "查看",
312
+ setDefault: "设为新任务默认",
184
313
  presetStandardName: "标准模式",
185
- presetStandardDescription: "功能完整的编码 Agent,支持文件编辑、Shell、文件与网页检索、Skills、计划、目标、子代理和工作流。",
314
+ presetStandardDescription: "处理代码、文件和资料,适合大多数任务。Agent 会按需使用检索、编辑和终端等工具。",
186
315
  presetPtcName: "PTC 模式",
187
- presetPtcDescription: "功能完整的编码 Agent,但默认不提供 workflow 工具;其他工具通过 PTC 模式 SDK 呈现,让模型用一个 TypeScript 程序组合多步操作。",
316
+ presetPtcDescription: "包含标准模式的所有能力,更适合批量调用工具,并对结果进行筛选、整理、去重、统计或汇总的任务。",
188
317
  presetMinimalName: "极简模式",
189
- presetMinimalDescription: "仅提供持久 shell 的单工具编码 Agent。",
318
+ presetMinimalDescription: "Agent 仅使用终端工具完成任务,适合测试和对比其基础表现。",
190
319
  presetCordisName: "创造模式",
191
- presetCordisDescription: "用于创建自定义 Agent preset:具备标准模式的全部能力,并提供运行时检查、持久化插件管理和 preset 创作指导。",
192
- duplicate: "复制",
193
- duplicateUnavailable: "此部署未配置可写的预设目录",
194
- delete: "删除",
195
- presetId: "标识符",
196
- presetIdPlaceholder: "my-agent",
197
- displayName: "名称",
198
- displayNamePlaceholder: "选择器中显示的名字,缺省用标识符",
320
+ presetCordisDescription: "用对话定制 DSH:让 Agent 编写插件,添加新功能或界面;也能组合工具和提示词,创建自己的模式。",
199
321
  inUse: "新任务默认",
200
- selectionOffDefault: "默认",
201
- builtInGroup: "内置",
202
- customGroup: "自定义",
322
+ selectionOffDefault: "应用默认",
203
323
  noDescription: "暂无描述。",
204
324
  brokenBadge: "加载失败",
205
- brokenNoCopy: "预设加载失败,不能复制",
206
325
  switchRefused: "无法切换到「{name}」:{reason}",
207
- copyOf: "复制自",
208
- composition: "组装(agent.cordis.yml)",
209
- cancel: "取消",
210
326
  close: "关闭",
211
- retry: "重试",
212
- copyTitle: "复制预设",
213
- copyIntro: "整个预设会在本机复制一份。标识符将成为目录名,事后无法更改;其余内容之后直接在预设自己的文件里编辑。",
214
- create: "创建",
215
- creating: "正在创建…",
216
- creatorDraft: "用「创造模式」创作自定义预设",
217
- openLocation: "打开目录",
218
- showLocation: "查看路径",
219
- revealedPathLabel: "预设文件:",
220
- idRequired: "请填写标识符。",
221
- idInvalid: "只能使用小写字母、数字与连字符,且以字母或数字开头。",
222
- idTaken: "该标识符已被占用。",
223
- deleteTitle: "删除该预设?",
224
- deleteDescription: "预设目录将被删除。已在其上运行的会话不受影响;新会话将无法再选择它。",
225
- deleteConfirm: "删除",
226
- deleting: "正在删除…",
227
- showPicker: "允许切换agent模式",
228
- showPickerBeta: "beta",
229
- showPickerDescription: "开启后,新任务可选择标准、PTC、创造、极简及自定义模式;关闭后统一使用默认模式(默认为标准模式,可自定义)。仅影响新任务。",
230
- enablePickerToSetDefault: "请先开启 Agent 模式选择,再设置默认模式",
231
- enablePickerToCreate: "请先开启 Agent 模式选择,再启动创造模式"
327
+ creatorDraft: "让 Agent 帮我创建预设模式",
328
+ showPicker: "新任务可选择模式",
329
+ showPickerBeta: "Beta",
330
+ showPickerDescription: "开启后,可为每个新任务选择模式,并在这里设置默认值。关闭后,新任务使用应用配置的默认预设。已有任务不受影响。",
331
+ enablePickerToSetDefault: "请先开启新任务模式选择,再设置默认值",
332
+ enablePickerToCreate: "请先开启新任务模式选择,再启动创造模式"
232
333
  };
233
334
  //#endregion
234
335
  //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetLabel.module.css.mjs
235
- const css$2 = ".HxAcOG_label{background:var(--dsw-alias-fill-tsp-secondary);max-width:180px;height:22px;color:var(--dsw-alias-label-secondary);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;align-items:center;gap:4px;padding:0 2px 0 0;font-size:12px;line-height:22px;display:inline-flex;overflow:hidden}.HxAcOG_icon{opacity:.7;flex:none}";
236
- const tagId$2 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetLabel.module.css";
237
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
336
+ const css$3 = ".HxAcOG_label{background:var(--dsw-alias-fill-tsp-secondary);max-width:180px;height:22px;color:var(--dsw-alias-label-secondary);white-space:nowrap;text-overflow:ellipsis;border-radius:6px;align-items:center;gap:4px;padding:0 2px 0 0;font-size:12px;line-height:22px;display:inline-flex;overflow:hidden}.HxAcOG_icon{opacity:.7;flex:none}";
337
+ const tagId$3 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetLabel.module.css";
338
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$3) + "]") === null) {
238
339
  const tag = document.createElement("style");
239
340
  tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
240
- tag.dataset.pluginCss = tagId$2;
241
- tag.textContent = css$2;
341
+ tag.dataset.pluginCss = tagId$3;
342
+ tag.textContent = css$3;
242
343
  document.head.appendChild(tag);
243
344
  }
244
345
  var AgentPresetLabel_module_css_default = {
@@ -276,7 +377,7 @@ window.__ModuleLoader__.load({
276
377
  return (0, react_jsx_runtime.jsxs)("span", {
277
378
  className: AgentPresetLabel_module_css_default.label,
278
379
  title: text?.description ?? t("headerHint"),
279
- children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutline16, {
380
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutlineRegular, {
280
381
  size: 14,
281
382
  className: AgentPresetLabel_module_css_default.icon
282
383
  }), text?.name ?? preset]
@@ -284,13 +385,13 @@ window.__ModuleLoader__.load({
284
385
  }
285
386
  //#endregion
286
387
  //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSeat.module.css.mjs
287
- const css$1 = ".Y55O_q_menuAnchor{min-width:54px;max-width:100%}.Y55O_q_seat{min-width:0;max-width:min(100%,240px);min-height:28px;color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:16px;align-items:center;gap:4px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}.Y55O_q_seat:not(:disabled):hover,.Y55O_q_seat[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}.Y55O_q_seat:disabled{cursor:default;color:var(--dsw-alias-label-quaternary)}.Y55O_q_seatIcon{color:var(--dsw-alias-label-primary);flex:none}.Y55O_q_seatLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y55O_q_introIcon{animation:.15s cubic-bezier(.16,1,.3,1) both Y55O_q_seat-icon-in}@keyframes Y55O_q_seat-icon-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.Y55O_q_introText{white-space:pre;display:inline-block}.Y55O_q_introChar{white-space:pre;opacity:0;animation:.4s ease-out forwards Y55O_q_seat-char-in;display:inline-block}@keyframes Y55O_q_seat-char-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.Y55O_q_introIcon,.Y55O_q_introChar{opacity:1;animation:none}}.Y55O_q_chevron{color:var(--dsw-alias-label-caption);flex:none}.Y55O_q_item{flex-direction:column;gap:2px;max-width:280px;display:flex}.Y55O_q_itemName{color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px}.Y55O_q_itemDesc{color:var(--dsw-alias-label-caption);white-space:normal;font-size:12px;line-height:16px}";
288
- const tagId$1 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSeat.module.css";
289
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
388
+ const css$2 = ".Y55O_q_menuAnchor{min-width:54px;max-width:100%}.Y55O_q_seat{min-width:0;max-width:min(100%,240px);min-height:28px;color:var(--dsw-alias-label-primary);white-space:nowrap;cursor:pointer;background:0 0;border:none;border-radius:16px;align-items:center;gap:4px;padding:0 8px;font-size:13px;font-weight:500;line-height:20px;display:inline-flex}.Y55O_q_seat:not(:disabled):hover,.Y55O_q_seat[aria-expanded=true]{background:var(--dsw-alias-interactive-bg-hover)}.Y55O_q_seat:disabled{cursor:default;color:var(--dsw-alias-label-quaternary)}.Y55O_q_seatIcon{color:var(--dsw-alias-label-primary);flex:none}.Y55O_q_seatLabel{text-overflow:ellipsis;white-space:nowrap;min-width:0;overflow:hidden}.Y55O_q_introIcon{animation:.15s cubic-bezier(.16,1,.3,1) both Y55O_q_seat-icon-in}@keyframes Y55O_q_seat-icon-in{0%{opacity:0;transform:scale(.5)}to{opacity:1;transform:scale(1)}}.Y55O_q_introText{white-space:pre;display:inline-block}.Y55O_q_introChar{white-space:pre;opacity:0;animation:.4s ease-out forwards Y55O_q_seat-char-in;display:inline-block}@keyframes Y55O_q_seat-char-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media (prefers-reduced-motion:reduce){.Y55O_q_introIcon,.Y55O_q_introChar{opacity:1;animation:none}}.Y55O_q_chevron{color:var(--dsw-alias-label-caption);flex:none}.Y55O_q_item{flex-direction:column;gap:2px;max-width:280px;display:flex}.Y55O_q_itemName{color:var(--dsw-alias-label-primary);font-size:13px;line-height:20px}.Y55O_q_itemDesc{color:var(--dsw-alias-label-caption);white-space:normal;font-size:12px;line-height:16px}";
389
+ const tagId$2 = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSeat.module.css";
390
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$2) + "]") === null) {
290
391
  const tag = document.createElement("style");
291
392
  tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
292
- tag.dataset.pluginCss = tagId$1;
293
- tag.textContent = css$1;
393
+ tag.dataset.pluginCss = tagId$2;
394
+ tag.textContent = css$2;
294
395
  document.head.appendChild(tag);
295
396
  }
296
397
  var AgentPresetSeat_module_css_default = {
@@ -327,16 +428,7 @@ window.__ModuleLoader__.load({
327
428
  const INTRO_CHAR_STAGGER_MS = 40;
328
429
  const INTRO_TEXT_REVEAL_MS = 200;
329
430
  const INTRO_CHAR_FADE_MS = 400;
330
- /**
331
- * How long a refused switch holds before fading.
332
- *
333
- * Longer than the primitive's default because this banner is the only place
334
- * the refusal appears. The chip's label has already snapped back to the
335
- * preset the session still runs, and a preset the host refuses to MOUNT is
336
- * one discovery reported healthy — its row on the settings page carries no
337
- * reason to go back and read, because there was nothing to see until the
338
- * rows actually ran.
339
- */
431
+ /** Duration of a selection-refusal banner, including a revision becoming unavailable during a pick. */
340
432
  const REFUSAL_HOLD_MS = 8e3;
341
433
  /**
342
434
  * Per-character start offset for the introduce reveal.
@@ -352,22 +444,24 @@ window.__ModuleLoader__.load({
352
444
  * @param props - composed slot props.
353
445
  * @returns the chip, or null when the deployment composes no presets.
354
446
  */
355
- function AgentPresetSeat({ sessionId, useSessionRetainInfo, load, select, introduced, useAgentPresetSeat, t }) {
447
+ function AgentPresetSeat({ sessionId, useSessionRetainInfo, load, select, introduced, useAgentPresetSeat, useShowPresetPicker, t }) {
448
+ const showPresetPicker = useShowPresetPicker((value) => value);
356
449
  const state = useAgentPresetSeat((snapshot) => snapshot);
357
450
  const main = useSessionRetainInfo((info) => sessionId === void 0 || (info?.retainedBy.mainView ?? 0) > 0);
358
451
  const [open, setOpen] = (0, react.useState)(false);
359
452
  const toastSeq = (0, react.useRef)(0);
360
453
  const [toast, setToast] = (0, react.useState)(null);
361
- const pickerVisible = (0, react.useRef)(state.showPicker);
362
- pickerVisible.current = state.showPicker;
454
+ const visible = showPresetPicker && state.showPicker;
455
+ const pickerVisible = (0, react.useRef)(visible);
456
+ pickerVisible.current = visible;
363
457
  (0, react.useEffect)(() => {
364
458
  load();
365
459
  }, [load]);
366
460
  (0, react.useEffect)(() => {
367
- if (state.showPicker) return;
461
+ if (visible) return;
368
462
  setOpen(false);
369
463
  setToast(null);
370
- }, [state.showPicker]);
464
+ }, [visible]);
371
465
  const chosen = state.options.find((option) => option.id === state.current);
372
466
  const label = (chosen === void 0 ? void 0 : presetDisplayText(chosen, t))?.name ?? state.current;
373
467
  const ready = state.options.length > 0 && state.current !== "";
@@ -393,7 +487,7 @@ window.__ModuleLoader__.load({
393
487
  label,
394
488
  introduced
395
489
  ]);
396
- if (!main || !state.showPicker || !ready) return null;
490
+ if (!main || !visible || !ready) return null;
397
491
  const characters = Array.from(label);
398
492
  const stagger = introStaggerMs(characters.length);
399
493
  const shownLabel = introducing ? (0, react_jsx_runtime.jsx)("span", {
@@ -457,17 +551,17 @@ window.__ModuleLoader__.load({
457
551
  setOpen((value) => !value);
458
552
  },
459
553
  children: [
460
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutline16, { className: introducing ? `${AgentPresetSeat_module_css_default.seatIcon} ${AgentPresetSeat_module_css_default.introIcon}` : AgentPresetSeat_module_css_default.seatIcon }),
554
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconAgentPresetOutlineRegular, { className: introducing ? `${AgentPresetSeat_module_css_default.seatIcon} ${AgentPresetSeat_module_css_default.introIcon}` : AgentPresetSeat_module_css_default.seatIcon }),
461
555
  (0, react_jsx_runtime.jsx)("span", {
462
556
  className: AgentPresetSeat_module_css_default.seatLabel,
463
557
  children: shownLabel
464
558
  }),
465
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutline14, { className: AgentPresetSeat_module_css_default.chevron })
559
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutlineRegular, { className: AgentPresetSeat_module_css_default.chevron })
466
560
  ]
467
561
  })
468
562
  }), toast !== null && (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Toast, {
469
563
  text: toast.text,
470
- icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutline16, {}),
564
+ icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutlineRegular, {}),
471
565
  holdMs: REFUSAL_HOLD_MS,
472
566
  anchor: document.querySelector("[data-composer-card]"),
473
567
  onDone: () => {
@@ -476,6 +570,463 @@ window.__ModuleLoader__.load({
476
570
  }, toast.seq)] });
477
571
  }
478
572
  //#endregion
573
+ //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/PresetGuideDialog.module.css.mjs
574
+ const css$1 = ".iYayda_guideDialog{box-sizing:border-box;gap:0;width:min(640px,100%);height:min(600px,100%);max-height:100%;padding:0}.iYayda_guideLayout{flex-direction:column;height:100%;min-height:0;display:flex}.iYayda_guideHeader{flex:none;padding:24px 24px 20px 28px}.iYayda_guideTitleRow{justify-content:space-between;align-items:center;gap:16px;display:flex}.iYayda_guideTitle{margin:0;font-size:20px;font-weight:600;line-height:28px}.iYayda_guideIntro{color:var(--dsw-alias-label-secondary);margin:8px 0 0;font-size:14px;line-height:22px}.iYayda_guideClose{width:32px;height:32px;min-height:32px;color:var(--dsw-alias-label-tertiary);border-radius:10px;padding:0}.iYayda_guideTabs{flex:none;margin:0 28px 22px}.iYayda_guidePanel{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);overscroll-behavior:contain;scrollbar-gutter:stable;min-height:0;color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;flex:1;padding:0 24px 24px 28px;font-size:16px;overflow-y:auto}.iYayda_guidePanel:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.iYayda_guidePanel h3{margin:28px 0 10px;font-size:16px;font-weight:600;line-height:24px}.iYayda_guidePanel h3:first-child{margin-top:0}.iYayda_guidePanel p{color:var(--dsw-alias-label-primary);margin:0 0 16px;font-size:16px;line-height:1.625}.iYayda_guidePanel blockquote{background:var(--dsw-alias-bg-module-platform);border:0;border-radius:12px;margin:10px 0 14px;padding:14px 16px}.iYayda_guidePanel blockquote p{color:var(--dsw-alias-label-primary);margin:0}.iYayda_guidePanel[data-guide-page=usage] p{color:var(--dsw-alias-label-secondary);margin-bottom:12px;font-size:14px;line-height:22px}.iYayda_guidePanel[data-guide-page=usage] h3{margin:0}.iYayda_guideExample+.iYayda_guideExample{margin-top:28px}.iYayda_guideExampleHeader{flex-wrap:wrap;align-items:center;gap:8px 10px;margin-bottom:8px;display:flex}.iYayda_guideExampleTag{flex-shrink:0;gap:4px}.iYayda_guidePanel[data-guide-page=usage] blockquote{margin:8px 0;padding:12px 16px}.iYayda_guidePanel[data-guide-page=usage] blockquote p{color:var(--dsw-alias-label-primary);margin:0;font-size:16px;line-height:26px}";
575
+ const tagId$1 = "@deepseek-ai/dsh-client-ui-agent-preset/PresetGuideDialog.module.css";
576
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId$1) + "]") === null) {
577
+ const tag = document.createElement("style");
578
+ tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
579
+ tag.dataset.pluginCss = tagId$1;
580
+ tag.textContent = css$1;
581
+ document.head.appendChild(tag);
582
+ }
583
+ var PresetGuideDialog_module_css_default = {
584
+ "guideClose": "iYayda_guideClose",
585
+ "guideDialog": "iYayda_guideDialog",
586
+ "guideExample": "iYayda_guideExample",
587
+ "guideExampleHeader": "iYayda_guideExampleHeader",
588
+ "guideExampleTag": "iYayda_guideExampleTag",
589
+ "guideHeader": "iYayda_guideHeader",
590
+ "guideIntro": "iYayda_guideIntro",
591
+ "guideLayout": "iYayda_guideLayout",
592
+ "guidePanel": "iYayda_guidePanel",
593
+ "guideTabs": "iYayda_guideTabs",
594
+ "guideTitle": "iYayda_guideTitle",
595
+ "guideTitleRow": "iYayda_guideTitleRow"
596
+ };
597
+ //#endregion
598
+ //#region lib/types/client/PresetGuideDialog.js
599
+ /** Read-only help stays local to Settings and never changes the selected preset. */
600
+ const guides = new Map([
601
+ ["standard", {
602
+ name: "presetStandardName",
603
+ intro: "guideStandardIntro",
604
+ explanation: "guideStandardExplanation",
605
+ usage: "guideStandardUsage"
606
+ }],
607
+ ["ptc", {
608
+ name: "presetPtcName",
609
+ intro: "guidePtcIntro",
610
+ explanation: "guidePtcExplanation",
611
+ usage: "guidePtcUsage"
612
+ }],
613
+ ["minimal", {
614
+ name: "presetMinimalName",
615
+ intro: "guideMinimalIntro",
616
+ explanation: "guideMinimalExplanation",
617
+ usage: "guideMinimalUsage"
618
+ }],
619
+ ["cordis", {
620
+ name: "presetCordisName",
621
+ intro: "guideCordisIntro",
622
+ explanation: "guideCordisExplanation",
623
+ usage: "guideCordisUsage"
624
+ }]
625
+ ]);
626
+ /**
627
+ * Look up help only for known, shipped presets.
628
+ * @param id - preset identifier from the roster.
629
+ * @param trust - roster source; custom presets own their capability claims.
630
+ * @returns the shipped guide, or undefined for unknown and custom presets.
631
+ */
632
+ function presetGuide(id, trust) {
633
+ return trust === "system" ? guides.get(id) : void 0;
634
+ }
635
+ /** Curated usage dictionaries contain only level-three example sections. */
636
+ function GuideUsage({ text, t }) {
637
+ const labels = {
638
+ code: {
639
+ copyLabel: t("guideCopy"),
640
+ copiedLabel: t("guideCopied")
641
+ },
642
+ footnotes: t("guideFootnotes")
643
+ };
644
+ return text.split(/(?=^### )/m).map((section) => {
645
+ const headingEnd = section.indexOf("\n");
646
+ const title = section.slice(4, headingEnd);
647
+ return (0, react_jsx_runtime.jsxs)("section", {
648
+ className: PresetGuideDialog_module_css_default.guideExample,
649
+ children: [(0, react_jsx_runtime.jsxs)("div", {
650
+ className: PresetGuideDialog_module_css_default.guideExampleHeader,
651
+ children: [(0, react_jsx_runtime.jsx)("h3", { children: title }), (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
652
+ tone: "neutral",
653
+ className: PresetGuideDialog_module_css_default.guideExampleTag,
654
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconListPenOutlineRegular, { size: 12 }), t("guideExampleTask")]
655
+ })]
656
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownText, {
657
+ text: section.slice(headingEnd + 1),
658
+ labels
659
+ })]
660
+ }, title);
661
+ });
662
+ }
663
+ /**
664
+ * Open read-only help without changing the selected preset.
665
+ * @param props - localized guide, initial page, and close callback.
666
+ * @returns the modal reader with independent scroll positions for each page.
667
+ */
668
+ function PresetGuideDialog({ guide, initialPage, t, onClose }) {
669
+ const [page, setPage] = (0, react.useState)(initialPage);
670
+ const guideId = (0, react.useId)();
671
+ const content = (0, react.useRef)(null);
672
+ (0, react.useLayoutEffect)(() => {
673
+ const previous = document.activeElement;
674
+ content.current?.querySelector("[role=\"tab\"][aria-selected=\"true\"]")?.focus();
675
+ return () => {
676
+ if (previous instanceof HTMLElement) previous.focus();
677
+ };
678
+ }, []);
679
+ const onKeyDown = (event) => {
680
+ if (event.key === "Escape") {
681
+ event.preventDefault();
682
+ event.stopPropagation();
683
+ onClose();
684
+ } else if (event.key === "Tab") {
685
+ const targets = Array.from(event.currentTarget.querySelectorAll("button:not([disabled]):not([tabindex=\"-1\"]), [tabindex=\"0\"]")).filter((element) => !element.closest("[hidden]"));
686
+ const first = targets[0];
687
+ const last = targets[targets.length - 1];
688
+ if (event.shiftKey && document.activeElement === first) {
689
+ event.preventDefault();
690
+ last?.focus();
691
+ } else if (!event.shiftKey && document.activeElement === last) {
692
+ event.preventDefault();
693
+ first?.focus();
694
+ }
695
+ }
696
+ };
697
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
698
+ open: true,
699
+ headless: true,
700
+ onClose,
701
+ title: t(guide.name),
702
+ className: PresetGuideDialog_module_css_default.guideDialog,
703
+ children: (0, react_jsx_runtime.jsxs)("div", {
704
+ ref: content,
705
+ className: PresetGuideDialog_module_css_default.guideLayout,
706
+ role: "presentation",
707
+ onKeyDownCapture: onKeyDown,
708
+ children: [
709
+ (0, react_jsx_runtime.jsxs)("div", {
710
+ className: PresetGuideDialog_module_css_default.guideHeader,
711
+ children: [(0, react_jsx_runtime.jsxs)("div", {
712
+ className: PresetGuideDialog_module_css_default.guideTitleRow,
713
+ children: [(0, react_jsx_runtime.jsx)("h2", {
714
+ className: PresetGuideDialog_module_css_default.guideTitle,
715
+ children: t(guide.name)
716
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
717
+ variant: "ghost",
718
+ className: PresetGuideDialog_module_css_default.guideClose,
719
+ "aria-label": t("close"),
720
+ onClick: onClose,
721
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutlineRegular, { size: 18 })
722
+ })]
723
+ }), (0, react_jsx_runtime.jsx)("p", {
724
+ className: PresetGuideDialog_module_css_default.guideIntro,
725
+ children: t(guide.intro)
726
+ })]
727
+ }),
728
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.SegmentedTabs, {
729
+ className: PresetGuideDialog_module_css_default.guideTabs,
730
+ label: t("guideSections"),
731
+ value: page,
732
+ onChange: setPage,
733
+ items: [{
734
+ value: "explanation",
735
+ label: t("modeExplanation"),
736
+ id: `${guideId}-explanation-tab`,
737
+ panelId: `${guideId}-explanation-panel`
738
+ }, {
739
+ value: "usage",
740
+ label: t("howToUse"),
741
+ id: `${guideId}-usage-tab`,
742
+ panelId: `${guideId}-usage-panel`
743
+ }]
744
+ }),
745
+ ["explanation", "usage"].map((section) => (0, react_jsx_runtime.jsx)("div", {
746
+ id: `${guideId}-${section}-panel`,
747
+ role: "tabpanel",
748
+ "aria-labelledby": `${guideId}-${section}-tab`,
749
+ className: PresetGuideDialog_module_css_default.guidePanel,
750
+ "data-guide-page": section,
751
+ hidden: page !== section,
752
+ tabIndex: 0,
753
+ children: section === "usage" ? (0, react_jsx_runtime.jsx)(GuideUsage, {
754
+ text: t(guide.usage),
755
+ t
756
+ }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.MarkdownText, {
757
+ text: t(guide.explanation),
758
+ labels: {
759
+ code: {
760
+ copyLabel: t("guideCopy"),
761
+ copiedLabel: t("guideCopied")
762
+ },
763
+ footnotes: t("guideFootnotes")
764
+ }
765
+ })
766
+ }, section))
767
+ ]
768
+ })
769
+ });
770
+ }
771
+ //#endregion
772
+ //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css.mjs
773
+ const css = ".PiZwra_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.PiZwra_title{margin:0;font-size:18px;font-weight:600}.PiZwra_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.PiZwra_pickerPreference{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);border-radius:14px;justify-content:space-between;align-items:flex-start;gap:20px;padding:14px 16px;display:flex}.PiZwra_pickerPreferenceCopy{gap:4px;min-width:0;display:grid}.PiZwra_pickerPreferenceTitleRow{align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_pickerPreferenceTitle{font-size:14px;font-weight:600;line-height:1.5}.PiZwra_pickerPreferenceDescription{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.PiZwra_group{flex-direction:column;gap:10px;display:flex}.PiZwra_group+.PiZwra_group{margin-top:20px}.PiZwra_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.PiZwra_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));gap:12px;margin:0;padding:0;list-style:none;display:grid}.PiZwra_card{border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:20px;flex-direction:column;transition:border-color .16s,background .16s;display:flex}.PiZwra_card:hover:not(.PiZwra_cardActive):not(.PiZwra_cardSelectionDisabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.PiZwra_cardSelectionDisabled{background:var(--dsw-alias-bg-module-platform)}.PiZwra_cardSelectionDisabled .PiZwra_cardMain{opacity:.48}.PiZwra_cardBroken,.PiZwra_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.PiZwra_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.PiZwra_brokenTip{z-index:1;background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.PiZwra_brokenBadge:hover .PiZwra_brokenTip,.PiZwra_cardMain:focus-visible .PiZwra_brokenTip{opacity:1}.PiZwra_cardMain[aria-disabled=true]{cursor:default}.PiZwra_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.PiZwra_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px 12px 0 0;flex-direction:column;flex:1;gap:12px;padding:14px 16px 12px;display:flex}.PiZwra_cardMain:disabled{cursor:default}.PiZwra_cardMain:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.PiZwra_cardHead{align-items:flex-start;gap:12px;display:flex;position:relative}.PiZwra_cardIdentity{flex:1;align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_cardName{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:15px;font-weight:600;line-height:1.4;overflow:hidden}.PiZwra_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;margin-block:auto;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.PiZwra_cardId{max-width:35%;font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);text-overflow:ellipsis;white-space:nowrap;flex-shrink:0;font-size:11px;line-height:21px;overflow:hidden}.PiZwra_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:2px;padding:6px 10px;display:flex}.PiZwra_cardHelp{align-items:center;gap:4px;margin-right:auto;display:flex}.PiZwra_helpButton{min-height:28px;color:var(--dsw-alias-label-tertiary);padding:5px 6px;font-size:12px;font-weight:400}.PiZwra_helpButton:hover,.PiZwra_helpButton:focus-visible{color:var(--dsw-alias-label-primary)}.PiZwra_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.PiZwra_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border-radius:20px;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.PiZwra_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_creatorButton:disabled{opacity:.4;cursor:default}";
774
+ const tagId = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSection.module.css";
775
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
776
+ const tag = document.createElement("style");
777
+ tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
778
+ tag.dataset.pluginCss = tagId;
779
+ tag.textContent = css;
780
+ document.head.appendChild(tag);
781
+ }
782
+ var AgentPresetSection_module_css_default = {
783
+ "brokenBadge": "PiZwra_brokenBadge",
784
+ "brokenTip": "PiZwra_brokenTip",
785
+ "card": "PiZwra_card",
786
+ "cardActive": "PiZwra_cardActive",
787
+ "cardBroken": "PiZwra_cardBroken",
788
+ "cardBrokenReason": "PiZwra_cardBrokenReason",
789
+ "cardDesc": "PiZwra_cardDesc",
790
+ "cardFoot": "PiZwra_cardFoot",
791
+ "cardHead": "PiZwra_cardHead",
792
+ "cardHelp": "PiZwra_cardHelp",
793
+ "cardId": "PiZwra_cardId",
794
+ "cardIdentity": "PiZwra_cardIdentity",
795
+ "cardMain": "PiZwra_cardMain",
796
+ "cardName": "PiZwra_cardName",
797
+ "cardSelectionDisabled": "PiZwra_cardSelectionDisabled",
798
+ "cards": "PiZwra_cards",
799
+ "creatorButton": "PiZwra_creatorButton",
800
+ "error": "PiZwra_error",
801
+ "group": "PiZwra_group",
802
+ "groupHead": "PiZwra_groupHead",
803
+ "helpButton": "PiZwra_helpButton",
804
+ "intro": "PiZwra_intro",
805
+ "pickerPreference": "PiZwra_pickerPreference",
806
+ "pickerPreferenceCopy": "PiZwra_pickerPreferenceCopy",
807
+ "pickerPreferenceDescription": "PiZwra_pickerPreferenceDescription",
808
+ "pickerPreferenceTitle": "PiZwra_pickerPreferenceTitle",
809
+ "pickerPreferenceTitleRow": "PiZwra_pickerPreferenceTitleRow",
810
+ "section": "PiZwra_section",
811
+ "title": "PiZwra_title"
812
+ };
813
+ //#endregion
814
+ //#region lib/types/client/AgentPresetSection.js
815
+ function CardDescription({ text }) {
816
+ const ref = (0, react.useRef)(null);
817
+ const [truncated, setTruncated] = (0, react.useState)(false);
818
+ (0, react.useLayoutEffect)(() => {
819
+ const el = ref.current;
820
+ /* v8 ignore next -- the ref is attached before layout effects run. */
821
+ if (el === null) return;
822
+ const measure = () => {
823
+ setTruncated(el.scrollHeight > el.clientHeight);
824
+ };
825
+ measure();
826
+ if (typeof ResizeObserver === "undefined") return;
827
+ const observer = new ResizeObserver(measure);
828
+ observer.observe(el);
829
+ return () => {
830
+ observer.disconnect();
831
+ };
832
+ }, [text]);
833
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
834
+ label: text,
835
+ side: "bottom",
836
+ delayMs: 400,
837
+ disabled: !truncated,
838
+ maxWidth: 360,
839
+ children: (0, react_jsx_runtime.jsx)("span", {
840
+ ref,
841
+ className: AgentPresetSection_module_css_default.cardDesc,
842
+ title: "",
843
+ children: text
844
+ })
845
+ });
846
+ }
847
+ /** Render the roster with its default, mode help, and the guidance to Creator mode.
848
+ * @param props Settings actions, snapshot hooks and localized text.
849
+ * @returns The preset settings section.
850
+ */
851
+ function AgentPresetSection({ useAgentPresetSection, load, makeDefault, setPickerVisible, startCreatorDraft, close: closeSettings, useDeveloperTools, t }) {
852
+ const state = useAgentPresetSection((value) => value);
853
+ const developerTools = useDeveloperTools((enabled) => enabled);
854
+ const [guide, setGuide] = (0, react.useState)(null);
855
+ (0, react.useEffect)(() => {
856
+ load();
857
+ }, [load]);
858
+ const creator = startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "cordis") ? startCreatorDraft : void 0;
859
+ const creatorButton = creator === void 0 ? null : (0, react_jsx_runtime.jsxs)("button", {
860
+ type: "button",
861
+ className: AgentPresetSection_module_css_default.creatorButton,
862
+ disabled: !state.showPicker || state.policySaving,
863
+ title: state.showPicker ? void 0 : t("enablePickerToCreate"),
864
+ onClick: () => {
865
+ creator();
866
+ closeSettings();
867
+ },
868
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutlineRegular, { size: 14 }), t("creatorDraft")]
869
+ });
870
+ return (0, react_jsx_runtime.jsxs)("section", {
871
+ className: AgentPresetSection_module_css_default.section,
872
+ children: [
873
+ (0, react_jsx_runtime.jsx)("h2", {
874
+ className: AgentPresetSection_module_css_default.title,
875
+ children: t("nav")
876
+ }),
877
+ (0, react_jsx_runtime.jsx)("p", {
878
+ className: AgentPresetSection_module_css_default.intro,
879
+ children: t("sectionIntro")
880
+ }),
881
+ developerTools && (0, react_jsx_runtime.jsxs)("div", {
882
+ className: AgentPresetSection_module_css_default.pickerPreference,
883
+ children: [(0, react_jsx_runtime.jsxs)("div", {
884
+ className: AgentPresetSection_module_css_default.pickerPreferenceCopy,
885
+ children: [(0, react_jsx_runtime.jsxs)("span", {
886
+ className: AgentPresetSection_module_css_default.pickerPreferenceTitleRow,
887
+ children: [(0, react_jsx_runtime.jsx)("span", {
888
+ className: AgentPresetSection_module_css_default.pickerPreferenceTitle,
889
+ children: t("showPicker")
890
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("showPickerBeta") })]
891
+ }), (0, react_jsx_runtime.jsx)("p", {
892
+ className: AgentPresetSection_module_css_default.pickerPreferenceDescription,
893
+ children: t("showPickerDescription")
894
+ })]
895
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
896
+ checked: state.showPicker,
897
+ disabled: state.status !== "ready" || state.policySaving,
898
+ onChange: (value) => {
899
+ setPickerVisible(value);
900
+ },
901
+ label: t("showPicker")
902
+ })]
903
+ }),
904
+ state.error === null ? null : (0, react_jsx_runtime.jsx)("p", {
905
+ className: AgentPresetSection_module_css_default.error,
906
+ role: "alert",
907
+ children: state.error
908
+ }),
909
+ [true, false].map((builtIn) => {
910
+ const rows = state.rows.filter((row) => isBuiltInPreset(row) === builtIn);
911
+ const entry = builtIn ? null : creatorButton;
912
+ if (rows.length === 0 && entry === null) return null;
913
+ return (0, react_jsx_runtime.jsxs)("section", {
914
+ className: AgentPresetSection_module_css_default.group,
915
+ children: [
916
+ (0, react_jsx_runtime.jsx)("h3", {
917
+ className: AgentPresetSection_module_css_default.groupHead,
918
+ children: t(builtIn ? "builtInGroup" : "customGroup")
919
+ }),
920
+ rows.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
921
+ className: AgentPresetSection_module_css_default.cards,
922
+ children: rows.map((row) => {
923
+ const display = presetDisplayText(row, t);
924
+ const help = presetGuide(row.id, builtIn ? "system" : "user");
925
+ const selectionAction = row.broken !== void 0 ? t("brokenBadge") : row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(state.showPicker ? "setDefault" : "enablePickerToSetDefault");
926
+ return (0, react_jsx_runtime.jsxs)("li", {
927
+ "data-agent-preset-id": row.id,
928
+ className: [
929
+ AgentPresetSection_module_css_default.card,
930
+ row.broken === void 0 ? void 0 : AgentPresetSection_module_css_default.cardBroken,
931
+ row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0,
932
+ !state.showPicker && row.broken === void 0 && !row.isDefault ? AgentPresetSection_module_css_default.cardSelectionDisabled : void 0
933
+ ].filter(Boolean).join(" "),
934
+ children: [(0, react_jsx_runtime.jsxs)("button", {
935
+ type: "button",
936
+ className: AgentPresetSection_module_css_default.cardMain,
937
+ "aria-pressed": row.isDefault,
938
+ disabled: row.isDefault || row.broken === void 0 && (!state.showPicker || state.policySaving),
939
+ "aria-disabled": row.broken !== void 0,
940
+ "aria-label": `${selectionAction}: ${display.name}`,
941
+ title: selectionAction,
942
+ onClick: () => {
943
+ if (row.broken === void 0) makeDefault(row.id);
944
+ },
945
+ children: [
946
+ (0, react_jsx_runtime.jsxs)("span", {
947
+ className: AgentPresetSection_module_css_default.cardHead,
948
+ children: [(0, react_jsx_runtime.jsxs)("span", {
949
+ className: AgentPresetSection_module_css_default.cardIdentity,
950
+ children: [
951
+ (0, react_jsx_runtime.jsx)("span", {
952
+ className: AgentPresetSection_module_css_default.cardName,
953
+ title: display.name,
954
+ children: display.name
955
+ }),
956
+ row.broken === void 0 ? null : (0, react_jsx_runtime.jsxs)("span", {
957
+ className: AgentPresetSection_module_css_default.brokenBadge,
958
+ children: [t("brokenBadge"), (0, react_jsx_runtime.jsx)("span", {
959
+ className: AgentPresetSection_module_css_default.brokenTip,
960
+ "aria-hidden": "true",
961
+ children: row.broken
962
+ })]
963
+ }),
964
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
965
+ tone: row.isDefault ? "solid" : "outline",
966
+ children: row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(builtIn ? "builtInGroup" : "customGroup")
967
+ })
968
+ ]
969
+ }), (0, react_jsx_runtime.jsx)("code", {
970
+ className: AgentPresetSection_module_css_default.cardId,
971
+ title: row.id,
972
+ children: row.id
973
+ })]
974
+ }),
975
+ (0, react_jsx_runtime.jsx)(CardDescription, { text: display.description ?? t("noDescription") }),
976
+ row.broken === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
977
+ className: AgentPresetSection_module_css_default.cardBrokenReason,
978
+ role: "alert",
979
+ children: row.broken
980
+ })
981
+ ]
982
+ }), help === void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
983
+ className: AgentPresetSection_module_css_default.cardFoot,
984
+ children: (0, react_jsx_runtime.jsxs)("div", {
985
+ className: AgentPresetSection_module_css_default.cardHelp,
986
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
987
+ variant: "ghost",
988
+ className: AgentPresetSection_module_css_default.helpButton,
989
+ "aria-label": `${t("modeExplanation")}: ${display.name}`,
990
+ onClick: () => {
991
+ setGuide({
992
+ content: help,
993
+ page: "explanation"
994
+ });
995
+ },
996
+ children: t("modeExplanation")
997
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
998
+ variant: "ghost",
999
+ className: AgentPresetSection_module_css_default.helpButton,
1000
+ "aria-label": `${t("howToUse")}: ${display.name}`,
1001
+ onClick: () => {
1002
+ setGuide({
1003
+ content: help,
1004
+ page: "usage"
1005
+ });
1006
+ },
1007
+ children: t("howToUse")
1008
+ })]
1009
+ })
1010
+ })]
1011
+ }, row.id);
1012
+ })
1013
+ }),
1014
+ entry
1015
+ ]
1016
+ }, String(builtIn));
1017
+ }),
1018
+ guide === null ? null : (0, react_jsx_runtime.jsx)(PresetGuideDialog, {
1019
+ guide: guide.content,
1020
+ initialPage: guide.page,
1021
+ t,
1022
+ onClose: () => {
1023
+ setGuide(null);
1024
+ }
1025
+ })
1026
+ ]
1027
+ });
1028
+ }
1029
+ //#endregion
479
1030
  //#region lib/types/client/settings-store.js
480
1031
  /**
481
1032
  * Agent-preset roster store shared by the display surfaces.
@@ -485,7 +1036,7 @@ window.__ModuleLoader__.load({
485
1036
  * the surface that writes them.
486
1037
  */
487
1038
  /** The agent-preset settings namespace on the host wire. */
488
- const AGENT_PRESET_SETTINGS_NS = "agent-presets";
1039
+ const AGENT_PRESET_SETTINGS_NS = "agent-preset-registry";
489
1040
  /** Write only the named agent-preset settings fields. */
490
1041
  async function writeAgentPresetSettings(ctx, patch) {
491
1042
  const response = await ctx.remote.settings.update(AGENT_PRESET_SETTINGS_NS, patch, void 0);
@@ -502,7 +1053,7 @@ window.__ModuleLoader__.load({
502
1053
  * @returns the failure message, or undefined once the write landed.
503
1054
  */
504
1055
  function writeDefaultPreset(ctx, id) {
505
- return writeAgentPresetSettings(ctx, { default: id });
1056
+ return writeAgentPresetSettings(ctx, { selectedDefault: id });
506
1057
  }
507
1058
  /**
508
1059
  * Persist whether new-session surfaces expose preset selection.
@@ -515,7 +1066,6 @@ window.__ModuleLoader__.load({
515
1066
  }
516
1067
  const EMPTY_ROSTER = {
517
1068
  presets: [],
518
- authorable: false,
519
1069
  modeSelectionEnabled: false
520
1070
  };
521
1071
  /**
@@ -583,7 +1133,6 @@ window.__ModuleLoader__.load({
583
1133
  function presetOptions(presets) {
584
1134
  return presets.filter((preset) => preset.broken === void 0).map((preset) => ({
585
1135
  id: preset.id,
586
- trust: preset.trust,
587
1136
  ...preset.name === void 0 ? {} : { name: preset.name },
588
1137
  ...preset.description === void 0 ? {} : { description: preset.description }
589
1138
  }));
@@ -635,838 +1184,33 @@ window.__ModuleLoader__.load({
635
1184
  }
636
1185
  };
637
1186
  //#endregion
638
- //#region lib/types/client/section-store.js
1187
+ //#region lib/types/client/seat-store.js
639
1188
  /**
640
- * Agent-preset management controller: the roster as a list, a copy dialog as
641
- * the only way a preset is created, and a read-only viewer over the shipped
642
- * compositions.
1189
+ * Hero-chip controller: which preset the NEXT session gets.
643
1190
  *
644
- * The browser edits no composition text. A new preset is a host-side copy of
645
- * an existing one (`{ from, id, name? }` is all that crosses the wire), and
646
- * everything after creation happens in the preset's own files — which is why
647
- * the page's other job is getting the user TO those files: open the directory
648
- * where the host has a desktop, show its path where it does not.
1191
+ * The new-session screen has no session, so a pick is staged rather than
1192
+ * applied. It reaches a session when one becomes current and is still blank —
1193
+ * whether the workspace connect created it or reused an existing blank one,
1194
+ * which is why staging cannot simply ride along on `sessions.create`.
649
1195
  *
650
- * The host stays the single fact source. Every mutation writes through the
651
- * wire and the page re-reads the roster afterwards, because a copy changes
652
- * more than the row it targeted.
1196
+ * The stage is forgotten once applied. The next new session starts from the
1197
+ * Host-effective default again.
653
1198
  */
654
- /** Ids a preset directory may be named, mirroring the host's own rule. */
655
- const PRESET_ID = /^[a-z0-9][a-z0-9-]*$/;
656
- const errorMessage = (error) => error instanceof Error ? error.message : String(error);
657
1199
  const INITIAL$1 = {
658
- status: "idle",
659
- error: null,
660
- authorable: false,
661
- hasDocument: false,
662
1200
  showPicker: false,
663
- policySaving: false,
664
- rows: [],
665
- copy: null,
666
- view: null,
667
- pendingDelete: null,
668
- deleting: false,
669
- revealedPaths: {}
1201
+ options: [],
1202
+ current: "",
1203
+ error: null,
1204
+ busy: false,
1205
+ introduce: false
670
1206
  };
671
- /**
672
- * Why this copy cannot be submitted yet, as a locale key, or undefined when
673
- * it can. Client-side only: the host re-checks the id and its answer is what
674
- * the dialog reports on failure.
675
- * @param draft - the open copy dialog.
676
- * @param rows - the roster, for the collision check.
677
- * @returns the blocking reason's locale key, or undefined when submittable.
678
- */
679
- function draftBlocker(draft, rows) {
680
- if (draft.id === "") return "idRequired";
681
- if (!PRESET_ID.test(draft.id)) return "idInvalid";
682
- if (rows.some((row) => row.id === draft.id)) return "idTaken";
683
- }
684
- /** Reads the roster and drives the copy dialog, viewer, and location reveals. */
685
- var AgentPresetSectionController = class {
1207
+ /** Stages the next session's preset and applies it when one appears. */
1208
+ var AgentPresetSeatController = class {
686
1209
  ctx;
687
- rosterChanged;
688
- /** Page snapshot the renderer subscribes to. */
1210
+ currentSession;
1211
+ staged;
1212
+ /** Chip snapshot the renderer subscribes to. */
689
1213
  store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL$1);
690
- /** The one roster load whose completion current callers await. */
691
- loadFlight;
692
- reloadRequested = false;
693
- constructor(ctx, rosterChanged = () => {}) {
694
- this.ctx = ctx;
695
- this.rosterChanged = rosterChanged;
696
- }
697
- set(patch) {
698
- this.store.set({
699
- ...this.store.getSnapshot(),
700
- ...patch
701
- });
702
- }
703
- /** Read back and reflect the Host-effective default after a policy write. */
704
- async confirmEffectiveDefault(showPicker) {
705
- await this.load();
706
- if (this.store.getSnapshot().status === "error") await this.load();
707
- const state = this.store.getSnapshot();
708
- if (state.status !== "ready" || state.showPicker !== showPicker) return void 0;
709
- return state.rows.find((row) => row.isDefault)?.id;
710
- }
711
- /**
712
- * Show or hide new-session preset selection without changing the saved
713
- * default. The Host roster resolves that saved default while selection is
714
- * shown and the deployment default while it is hidden.
715
- * @param showPicker - whether the new-session picker should be exposed.
716
- * @param syncBlankSession - optional current-blank-task sync kept inside the saving state.
717
- * @returns once the Host state and optional blank-task sync settle.
718
- */
719
- async setPickerVisible(showPicker, syncBlankSession) {
720
- const state = this.store.getSnapshot();
721
- if (state.status !== "ready" || state.policySaving || state.showPicker === showPicker) return;
722
- this.set({
723
- policySaving: true,
724
- error: null
725
- });
726
- try {
727
- const failure = await writeModeSelectionEnabled(this.ctx, showPicker);
728
- if (failure !== void 0) {
729
- await this.load();
730
- this.set({ error: failure });
731
- return;
732
- }
733
- const effectiveDefault = await this.confirmEffectiveDefault(showPicker);
734
- if (effectiveDefault === void 0) return;
735
- const syncFailure = await syncBlankSession?.(effectiveDefault);
736
- if (syncFailure !== void 0) this.set({ error: syncFailure });
737
- } catch (error) {
738
- await this.load();
739
- this.set({ error: errorMessage(error) });
740
- } finally {
741
- this.set({ policySaving: false });
742
- }
743
- }
744
- patchCopy(patch) {
745
- const { copy } = this.store.getSnapshot();
746
- if (copy === null) return;
747
- this.set({ copy: {
748
- ...copy,
749
- ...patch
750
- } });
751
- }
752
- /**
753
- * Load the roster. An empty roster means the deployment composes no
754
- * presets, which is a valid deployment rather than a failure — the section
755
- * reports `unavailable` and renders nothing.
756
- * @returns once the snapshot reflects the host.
757
- */
758
- async load() {
759
- this.reloadRequested = true;
760
- this.loadFlight ??= this.drainLoads();
761
- await this.loadFlight;
762
- }
763
- /** Coalesce invalidations without losing changes received during a read. */
764
- async drainLoads() {
765
- try {
766
- do
767
- await this.loadOnce();
768
- while (this.reloadRequested);
769
- } finally {
770
- this.loadFlight = void 0;
771
- }
772
- }
773
- /** Perform the section's one owned roster read. */
774
- async loadOnce() {
775
- this.reloadRequested = false;
776
- const opener = this.ctx.remote.settings.canOpenAgentPresetDirectory();
777
- const roster = await beginRosterRead(this.ctx, this.store);
778
- const described = await opener;
779
- if (roster === void 0) return;
780
- const { presets, authorable, modeSelectionEnabled: showPicker } = roster;
781
- const hasDocument = described.ok && described.value;
782
- if (presets.length === 0) {
783
- this.set({
784
- status: "unavailable",
785
- rows: [],
786
- authorable,
787
- hasDocument,
788
- showPicker,
789
- copy: null,
790
- view: null
791
- });
792
- return;
793
- }
794
- const revealed = this.store.getSnapshot().revealedPaths;
795
- const kept = Object.fromEntries(Object.entries(revealed).filter(([id]) => presets.some((preset) => preset.id === id)));
796
- this.set({
797
- status: "ready",
798
- error: null,
799
- authorable,
800
- hasDocument,
801
- showPicker,
802
- rows: presets.map((preset) => ({ ...preset })),
803
- revealedPaths: kept
804
- });
805
- }
806
- /**
807
- * Open one shipped preset's composition in the read-only viewer.
808
- * @param id - the preset to view.
809
- * @returns once the composition loaded or the failure is on the page.
810
- */
811
- async view(id) {
812
- this.set({ error: null });
813
- const result = await this.ctx.remote.agentPresets.read(id);
814
- if (!result.ok) {
815
- this.set({ error: result.error.message });
816
- return;
817
- }
818
- const { name, content } = result.value;
819
- this.set({ view: {
820
- id,
821
- title: name ?? id,
822
- content
823
- } });
824
- }
825
- /** Close the read-only viewer. */
826
- closeView() {
827
- this.set({ view: null });
828
- }
829
- /**
830
- * Open the copy dialog over one preset.
831
- * @param from - the preset the copy will start from.
832
- */
833
- beginCopy(from) {
834
- const row = this.store.getSnapshot().rows.find((candidate) => candidate.id === from);
835
- this.set({
836
- error: null,
837
- copy: {
838
- from,
839
- fromTitle: row?.name ?? from,
840
- id: "",
841
- name: "",
842
- saving: false,
843
- error: null
844
- }
845
- });
846
- }
847
- /** Close the copy dialog, discarding whatever was typed. */
848
- cancelCopy() {
849
- this.set({ copy: null });
850
- }
851
- /**
852
- * Name the preset the copy creates.
853
- * @param id - the id typed into the dialog.
854
- */
855
- setCopyId(id) {
856
- this.patchCopy({
857
- id,
858
- error: null
859
- });
860
- }
861
- /**
862
- * Name the copy's display name.
863
- * @param name - the display name typed into the dialog.
864
- */
865
- setCopyName(name) {
866
- this.patchCopy({
867
- name,
868
- error: null
869
- });
870
- }
871
- /**
872
- * Submit the copy, re-read the roster, then take the user to the new
873
- * preset's files — the directory opens where the host has a desktop, and
874
- * its path appears on the new row where it does not.
875
- * @returns once the copy settled and the page reflects it.
876
- */
877
- async confirmCopy() {
878
- const draft = this.store.getSnapshot().copy;
879
- if (draft === null || draft.saving) return;
880
- if (draftBlocker(draft, this.store.getSnapshot().rows) !== void 0) return;
881
- this.patchCopy({
882
- saving: true,
883
- error: null
884
- });
885
- const name = draft.name.trim();
886
- const result = await this.ctx.remote.agentPresets.copy(draft.from, draft.id, name === "" ? void 0 : name);
887
- if (!result.ok) {
888
- this.patchCopy({
889
- saving: false,
890
- error: result.error.message
891
- });
892
- return;
893
- }
894
- this.set({ copy: null });
895
- await this.load();
896
- this.rosterChanged();
897
- await this.openLocation(draft.id);
898
- }
899
- /**
900
- * Open one preset's directory on the host desktop, or reveal its path on
901
- * the row where the deployment has no opener to hand it to.
902
- * @param id - the preset whose files the user wants.
903
- * @returns once the host answered and the page reflects it.
904
- */
905
- async openLocation(id) {
906
- const result = await this.ctx.remote.settings.openAgentPresetDirectory(id);
907
- if (!result.ok) {
908
- this.set({ error: result.error.message });
909
- return;
910
- }
911
- if (result.value.opened) return;
912
- const { path } = result.value;
913
- this.set({ revealedPaths: {
914
- ...this.store.getSnapshot().revealedPaths,
915
- [id]: path
916
- } });
917
- }
918
- /**
919
- * Ask for confirmation before deleting one preset.
920
- * @param id - the preset to delete, or null to dismiss the confirmation.
921
- */
922
- confirmDelete(id) {
923
- if (this.store.getSnapshot().deleting) return;
924
- this.set({ pendingDelete: id });
925
- }
926
- /**
927
- * Delete the preset awaiting confirmation, then re-read the roster.
928
- *
929
- * A session already composed from it keeps running: its composition was
930
- * mounted at creation and nothing re-reads the file.
931
- * @returns once the delete settled and the page reflects it.
932
- */
933
- async remove() {
934
- const { pendingDelete, deleting } = this.store.getSnapshot();
935
- if (pendingDelete === null || deleting) return;
936
- this.set({
937
- deleting: true,
938
- error: null
939
- });
940
- const result = await this.ctx.remote.agentPresets.deletePreset(pendingDelete);
941
- if (!result.ok) {
942
- this.set({
943
- deleting: false,
944
- pendingDelete: null,
945
- error: result.error.message
946
- });
947
- return;
948
- }
949
- this.set({
950
- deleting: false,
951
- pendingDelete: null
952
- });
953
- await this.load();
954
- this.rosterChanged();
955
- }
956
- /**
957
- * Make one preset the default for sessions created later. Running sessions
958
- * keep the composition they began with, so this never disturbs work.
959
- * @param id - the preset to make default.
960
- * @param syncBlankSession - optional current-blank-task sync kept inside the policy lock.
961
- * @returns once the write and optional blank-task sync settle.
962
- */
963
- async makeDefault(id, syncBlankSession) {
964
- const state = this.store.getSnapshot();
965
- if (!state.showPicker || state.policySaving) return;
966
- this.set({
967
- policySaving: true,
968
- error: null
969
- });
970
- try {
971
- const failure = await writeDefaultPreset(this.ctx, id);
972
- if (failure !== void 0) {
973
- this.set({ error: failure });
974
- return;
975
- }
976
- const effectiveDefault = await this.confirmEffectiveDefault(true);
977
- if (effectiveDefault === void 0) return;
978
- const syncFailure = await syncBlankSession?.(effectiveDefault);
979
- if (syncFailure !== void 0) this.set({ error: syncFailure });
980
- } catch (error) {
981
- this.set({ error: errorMessage(error) });
982
- } finally {
983
- this.set({ policySaving: false });
984
- }
985
- }
986
- };
987
- //#endregion
988
- //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-agent-preset/src/client/AgentPresetSection.module.css.mjs
989
- const css = ".PiZwra_section{max-width:720px;color:var(--dsw-alias-label-primary);flex-direction:column;gap:12px;display:flex}.PiZwra_title{margin:0;font-size:18px;font-weight:600}.PiZwra_intro{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px}.PiZwra_pickerPreference{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-module-platform);border-radius:14px;justify-content:space-between;align-items:flex-start;gap:20px;padding:14px 16px;display:flex}.PiZwra_pickerPreferenceCopy{gap:4px;min-width:0;display:grid}.PiZwra_pickerPreferenceTitleRow{align-items:center;gap:6px;min-width:0;display:flex}.PiZwra_pickerPreferenceTitle{font-size:14px;font-weight:600;line-height:1.5}.PiZwra_pickerPreferenceDescription{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:1.5}.PiZwra_group{flex-direction:column;gap:10px;display:flex}.PiZwra_group+.PiZwra_group{margin-top:20px}.PiZwra_groupHead{letter-spacing:.06em;text-transform:uppercase;color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;font-weight:600}.PiZwra_cards{grid-template-columns:repeat(auto-fill,minmax(268px,1fr));grid-auto-rows:1fr;gap:12px;margin:0;padding:0;list-style:none;display:grid}.PiZwra_card{border:.5px solid var(--dsw-alias-border-l4);background:0 0;border-radius:20px;flex-direction:column;transition:border-color .16s,background .16s;display:flex}.PiZwra_card:hover:not(.PiZwra_cardActive):not(.PiZwra_cardSelectionDisabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_cardActive{background:var(--dsw-alias-bg-module-platform);border-color:var(--dsw-static-neutral-bluish-400)}.PiZwra_cardSelectionDisabled{background:var(--dsw-alias-bg-module-platform)}.PiZwra_cardSelectionDisabled .PiZwra_cardMain{opacity:.48}.PiZwra_cardBroken,.PiZwra_cardBroken:hover{border-color:var(--dsw-alias-state-error-primary)}.PiZwra_brokenBadge{corner-shape:round;white-space:nowrap;background:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-bg-layer-3);border-radius:999px;padding:1px 8px;font-size:11px;font-weight:500;line-height:17px}.PiZwra_brokenTip{z-index:1;background:var(--dsw-alias-label-primary);width:max-content;max-width:100%;color:var(--dsw-alias-bg-layer-3);text-align:left;white-space:pre-line;overflow-wrap:anywhere;opacity:0;pointer-events:none;border-radius:6px;padding:6px 8px;font-size:11px;font-weight:400;line-height:1.5;transition:opacity .12s;position:absolute;top:calc(100% + 6px);left:0}.PiZwra_brokenBadge:hover .PiZwra_brokenTip,.PiZwra_cardMain:focus-visible .PiZwra_brokenTip{opacity:1}.PiZwra_cardMain[aria-disabled=true]{cursor:default}.PiZwra_cardBrokenReason{clip:rect(0 0 0 0);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.PiZwra_cardMain{appearance:none;font:inherit;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:12px 12px 0 0;flex-direction:column;flex:1;gap:8px;padding:14px 16px 12px;display:flex}.PiZwra_cardMain:disabled{cursor:default}.PiZwra_cardMain:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-2px}.PiZwra_cardHead{align-items:center;gap:8px;display:flex;position:relative}.PiZwra_cardName{font-size:15px;font-weight:600;line-height:1.4}.PiZwra_inUse{margin-left:auto}.PiZwra_cardDesc{color:var(--dsw-alias-label-secondary);-webkit-line-clamp:4;overflow-wrap:anywhere;-webkit-box-orient:vertical;min-height:42px;font-size:13px;line-height:1.55;display:-webkit-box;overflow:hidden}.PiZwra_cardId{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);margin-top:auto;font-size:11px}.PiZwra_cardFoot{border-top:.5px solid var(--dsw-alias-border-l2);justify-content:flex-end;gap:2px;padding:6px 10px;display:flex}.PiZwra_iconButton{appearance:none;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:7px;align-items:center;padding:6px;display:inline-flex;position:relative}.PiZwra_iconButton:disabled{opacity:.4;cursor:default}.PiZwra_iconButton:hover:not(:disabled){background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary)}.PiZwra_iconButton:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:-1px}.PiZwra_iconButton:after{content:attr(data-tip);background:var(--dsw-alias-label-primary);color:var(--dsw-alias-bg-layer-3);white-space:nowrap;opacity:0;pointer-events:none;border-radius:6px;padding:3px 8px;font-size:11px;line-height:17px;transition:opacity .12s;position:absolute;bottom:calc(100% + 6px);left:50%;transform:translate(-50%)}.PiZwra_iconButton:hover:after,.PiZwra_iconButton:focus-visible:after{opacity:1}.PiZwra_iconDanger:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger);color:var(--dsw-alias-state-error-primary)}.PiZwra_revealedPath{color:var(--dsw-alias-label-tertiary);align-items:baseline;gap:6px;margin:0;padding:6px 16px 10px;font-size:11px;display:flex}.PiZwra_revealedPath code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-secondary);user-select:all;overflow-wrap:anywhere}.PiZwra_revealedPathLabel{white-space:nowrap}.PiZwra_secondaryButton{color:var(--dsw-alias-label-secondary);font:inherit;cursor:pointer;background:0 0;border:none;border-radius:7px;padding:5px 8px;font-size:12.5px}.PiZwra_secondaryButton:hover:not(:disabled){background:var(--dsw-alias-bg-layer-1)}.PiZwra_secondaryButton:disabled{opacity:.5;cursor:default}.PiZwra_field{flex-direction:column;gap:6px;display:flex}.PiZwra_fieldLabel{color:var(--dsw-alias-label-secondary);font-size:12px;font-weight:500}.PiZwra_input{box-sizing:border-box;border:.5px solid var(--dsw-alias-border-l4);font:inherit;background:var(--dsw-alias-bg-layer-1);color:var(--dsw-alias-label-primary);border-radius:10px;padding:9px 12px;font-size:13px}.PiZwra_input:focus{border-color:var(--dsw-alias-brand-primary);outline:none}.PiZwra_input::placeholder{color:var(--dsw-alias-label-dimmed)}.PiZwra_dialog{width:min(560px,100%)}.PiZwra_dialogFields{flex-direction:column;gap:12px;display:flex}.PiZwra_viewerCode{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-2);max-height:min(52vh,480px);color:var(--dsw-alias-label-secondary);font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);white-space:pre;tab-size:2;--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:10px;margin:0;padding:12px;font-size:12.5px;line-height:1.5;overflow:auto}.PiZwra_error{color:var(--dsw-alias-state-error-primary);margin:0;font-size:12px}.PiZwra_deleteDialog{width:min(480px,100%)}.PiZwra_deleteConfirm:not(:disabled){border-color:var(--dsw-alias-state-error-primary);color:var(--dsw-alias-state-error-primary)}.PiZwra_deleteConfirm:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger)}.PiZwra_creatorButton{box-sizing:border-box;border:1px dashed var(--dsw-alias-border-l3);height:44px;font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border-radius:20px;justify-content:center;align-self:stretch;align-items:center;gap:6px;font-size:14px;line-height:22px;display:flex}.PiZwra_creatorButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover)}.PiZwra_creatorButton:disabled{opacity:.4;cursor:default}";
990
- const tagId = "@deepseek-ai/dsh-client-ui-agent-preset/AgentPresetSection.module.css";
991
- if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
992
- const tag = document.createElement("style");
993
- tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-agent-preset";
994
- tag.dataset.pluginCss = tagId;
995
- tag.textContent = css;
996
- document.head.appendChild(tag);
997
- }
998
- var AgentPresetSection_module_css_default = {
999
- "brokenBadge": "PiZwra_brokenBadge",
1000
- "brokenTip": "PiZwra_brokenTip",
1001
- "card": "PiZwra_card",
1002
- "cardActive": "PiZwra_cardActive",
1003
- "cardBroken": "PiZwra_cardBroken",
1004
- "cardBrokenReason": "PiZwra_cardBrokenReason",
1005
- "cardDesc": "PiZwra_cardDesc",
1006
- "cardFoot": "PiZwra_cardFoot",
1007
- "cardHead": "PiZwra_cardHead",
1008
- "cardId": "PiZwra_cardId",
1009
- "cardMain": "PiZwra_cardMain",
1010
- "cardName": "PiZwra_cardName",
1011
- "cardSelectionDisabled": "PiZwra_cardSelectionDisabled",
1012
- "cards": "PiZwra_cards",
1013
- "creatorButton": "PiZwra_creatorButton",
1014
- "deleteConfirm": "PiZwra_deleteConfirm",
1015
- "deleteDialog": "PiZwra_deleteDialog",
1016
- "dialog": "PiZwra_dialog",
1017
- "dialogFields": "PiZwra_dialogFields",
1018
- "error": "PiZwra_error",
1019
- "field": "PiZwra_field",
1020
- "fieldLabel": "PiZwra_fieldLabel",
1021
- "group": "PiZwra_group",
1022
- "groupHead": "PiZwra_groupHead",
1023
- "iconButton": "PiZwra_iconButton",
1024
- "iconDanger": "PiZwra_iconDanger",
1025
- "inUse": "PiZwra_inUse",
1026
- "input": "PiZwra_input",
1027
- "intro": "PiZwra_intro",
1028
- "pickerPreference": "PiZwra_pickerPreference",
1029
- "pickerPreferenceCopy": "PiZwra_pickerPreferenceCopy",
1030
- "pickerPreferenceDescription": "PiZwra_pickerPreferenceDescription",
1031
- "pickerPreferenceTitle": "PiZwra_pickerPreferenceTitle",
1032
- "pickerPreferenceTitleRow": "PiZwra_pickerPreferenceTitleRow",
1033
- "revealedPath": "PiZwra_revealedPath",
1034
- "revealedPathLabel": "PiZwra_revealedPathLabel",
1035
- "secondaryButton": "PiZwra_secondaryButton",
1036
- "section": "PiZwra_section",
1037
- "title": "PiZwra_title",
1038
- "viewerCode": "PiZwra_viewerCode"
1039
- };
1040
- //#endregion
1041
- //#region lib/types/client/AgentPresetSection.js
1042
- /**
1043
- * Agent-presets settings section: the roster as cards, a copy dialog as the
1044
- * only way a preset is created, and a read-only viewer over the shipped
1045
- * compositions.
1046
- *
1047
- * The browser edits no composition text — a shipped preset opens read-only to
1048
- * be READ (it is the known-good composition a copy starts from), and a custom
1049
- * preset is edited in its own files, which is what the location action leads
1050
- * to. Deleting a preset leaves running sessions alone: a composition is
1051
- * mounted once at session creation and nothing re-reads the file.
1052
- */
1053
- function CopyDialog({ state, t, actions }) {
1054
- const draft = state.copy;
1055
- const blocker = draft === null ? void 0 : draftBlocker(draft, state.rows);
1056
- const message = draft === null ? null : draft.error ?? (blocker === void 0 ? null : t(blocker));
1057
- const source = draft === null ? void 0 : state.rows.find((row) => row.id === draft.from);
1058
- const sourceTitle = source === void 0 ? draft?.fromTitle : presetDisplayText(source, t).name;
1059
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1060
- open: draft !== null,
1061
- onClose: () => {
1062
- actions.cancelCopy();
1063
- },
1064
- title: draft === null ? t("copyTitle") : `${t("copyTitle")} · ${t("copyOf")} ${sourceTitle}`,
1065
- closeLabel: t("close"),
1066
- description: t("copyIntro"),
1067
- className: AgentPresetSection_module_css_default.dialog,
1068
- footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1069
- variant: "outline",
1070
- disabled: draft?.saving === true,
1071
- onClick: () => {
1072
- actions.cancelCopy();
1073
- },
1074
- children: t("cancel")
1075
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1076
- disabled: draft === null || draft.saving || blocker !== void 0,
1077
- onClick: () => {
1078
- actions.confirmCopy();
1079
- },
1080
- children: draft?.saving === true ? t("creating") : t("create")
1081
- })] }),
1082
- children: draft === null ? null : (0, react_jsx_runtime.jsxs)("div", {
1083
- className: AgentPresetSection_module_css_default.dialogFields,
1084
- children: [
1085
- (0, react_jsx_runtime.jsxs)("label", {
1086
- className: AgentPresetSection_module_css_default.field,
1087
- children: [(0, react_jsx_runtime.jsx)("span", {
1088
- className: AgentPresetSection_module_css_default.fieldLabel,
1089
- children: t("presetId")
1090
- }), (0, react_jsx_runtime.jsx)("input", {
1091
- className: AgentPresetSection_module_css_default.input,
1092
- value: draft.id,
1093
- autoFocus: true,
1094
- spellCheck: false,
1095
- placeholder: t("presetIdPlaceholder"),
1096
- onChange: (event) => {
1097
- actions.setCopyId(event.target.value);
1098
- }
1099
- })]
1100
- }),
1101
- (0, react_jsx_runtime.jsxs)("label", {
1102
- className: AgentPresetSection_module_css_default.field,
1103
- children: [(0, react_jsx_runtime.jsx)("span", {
1104
- className: AgentPresetSection_module_css_default.fieldLabel,
1105
- children: t("displayName")
1106
- }), (0, react_jsx_runtime.jsx)("input", {
1107
- className: AgentPresetSection_module_css_default.input,
1108
- value: draft.name,
1109
- spellCheck: false,
1110
- placeholder: t("displayNamePlaceholder"),
1111
- onChange: (event) => {
1112
- actions.setCopyName(event.target.value);
1113
- }
1114
- })]
1115
- }),
1116
- message === null ? null : (0, react_jsx_runtime.jsx)("p", {
1117
- className: AgentPresetSection_module_css_default.error,
1118
- role: "alert",
1119
- children: message
1120
- })
1121
- ]
1122
- })
1123
- });
1124
- }
1125
- /**
1126
- * Render one card's description, clamped by CSS and offered in full on hover.
1127
- * The tooltip is attached only while the text is actually cut off, so a short
1128
- * description does not answer a hover with a bubble repeating the card.
1129
- * @param props.text - the description as rendered, already localized.
1130
- * @returns the description element, tooltip-anchored while it overflows.
1131
- */
1132
- function CardDescription({ text }) {
1133
- const ref = (0, react.useRef)(null);
1134
- const [truncated, setTruncated] = (0, react.useState)(false);
1135
- (0, react.useLayoutEffect)(() => {
1136
- const el = ref.current;
1137
- /* v8 ignore next -- the ref is attached before layout effects run. */
1138
- if (el === null) return;
1139
- const measure = () => {
1140
- setTruncated(el.scrollHeight > el.clientHeight);
1141
- };
1142
- measure();
1143
- if (typeof ResizeObserver === "undefined") return;
1144
- const observer = new ResizeObserver(measure);
1145
- observer.observe(el);
1146
- return () => {
1147
- observer.disconnect();
1148
- };
1149
- }, [text]);
1150
- return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tooltip, {
1151
- label: text,
1152
- side: "bottom",
1153
- delayMs: 400,
1154
- disabled: !truncated,
1155
- maxWidth: 360,
1156
- children: (0, react_jsx_runtime.jsx)("span", {
1157
- ref,
1158
- className: AgentPresetSection_module_css_default.cardDesc,
1159
- title: "",
1160
- children: text
1161
- })
1162
- });
1163
- }
1164
- /**
1165
- * Render the Agent presets section content column.
1166
- * @param props - composed slot props.
1167
- * @returns the section, or null when the deployment composes no presets.
1168
- */
1169
- function AgentPresetSection(props) {
1170
- const { useAgentPresetSection, t, load } = props;
1171
- const state = useAgentPresetSection((snapshot) => snapshot);
1172
- const viewedId = state.view?.id;
1173
- const viewedRow = viewedId === void 0 ? void 0 : state.rows.find((row) => row.id === viewedId);
1174
- const viewedTitle = state.view === null ? "" : viewedRow === void 0 ? state.view.title : presetDisplayText(viewedRow, t).name;
1175
- (0, react.useEffect)(() => {
1176
- load();
1177
- }, [load]);
1178
- if (state.status === "unavailable") return null;
1179
- if (state.status === "error") {
1180
- /* v8 ignore next -- an error status always carries text; the fallback satisfies the nullable type */
1181
- const detail = state.error ?? "";
1182
- return (0, react_jsx_runtime.jsxs)("div", {
1183
- className: AgentPresetSection_module_css_default.section,
1184
- children: [(0, react_jsx_runtime.jsx)("p", {
1185
- className: AgentPresetSection_module_css_default.error,
1186
- role: "alert",
1187
- children: `${t("error")} ${detail}`
1188
- }), (0, react_jsx_runtime.jsx)("button", {
1189
- type: "button",
1190
- className: AgentPresetSection_module_css_default.secondaryButton,
1191
- onClick: () => {
1192
- load();
1193
- },
1194
- children: t("retry")
1195
- })]
1196
- });
1197
- }
1198
- const creatorButton = props.startCreatorDraft !== void 0 && state.rows.some((row) => row.id === "cordis") ? (0, react_jsx_runtime.jsxs)("button", {
1199
- type: "button",
1200
- className: AgentPresetSection_module_css_default.creatorButton,
1201
- disabled: !state.authorable || !state.showPicker || state.policySaving,
1202
- title: !state.showPicker ? t("enablePickerToCreate") : state.authorable ? void 0 : t("duplicateUnavailable"),
1203
- onClick: () => {
1204
- props.startCreatorDraft?.();
1205
- props.close();
1206
- },
1207
- children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, { size: 14 }), t("creatorDraft")]
1208
- }) : null;
1209
- return (0, react_jsx_runtime.jsxs)("div", {
1210
- className: AgentPresetSection_module_css_default.section,
1211
- children: [
1212
- (0, react_jsx_runtime.jsx)("h2", {
1213
- className: AgentPresetSection_module_css_default.title,
1214
- children: t("nav")
1215
- }),
1216
- (0, react_jsx_runtime.jsx)("p", {
1217
- className: AgentPresetSection_module_css_default.intro,
1218
- children: t("sectionIntro")
1219
- }),
1220
- (0, react_jsx_runtime.jsxs)("div", {
1221
- className: AgentPresetSection_module_css_default.pickerPreference,
1222
- children: [(0, react_jsx_runtime.jsxs)("div", {
1223
- className: AgentPresetSection_module_css_default.pickerPreferenceCopy,
1224
- children: [(0, react_jsx_runtime.jsxs)("span", {
1225
- className: AgentPresetSection_module_css_default.pickerPreferenceTitleRow,
1226
- children: [(0, react_jsx_runtime.jsx)("span", {
1227
- className: AgentPresetSection_module_css_default.pickerPreferenceTitle,
1228
- children: t("showPicker")
1229
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: t("showPickerBeta") })]
1230
- }), (0, react_jsx_runtime.jsx)("p", {
1231
- className: AgentPresetSection_module_css_default.pickerPreferenceDescription,
1232
- children: t("showPickerDescription")
1233
- })]
1234
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
1235
- checked: state.showPicker,
1236
- label: t("showPicker"),
1237
- disabled: state.status !== "ready" || state.policySaving,
1238
- onChange: (next) => {
1239
- props.setPickerVisible(next);
1240
- }
1241
- })]
1242
- }),
1243
- state.error === null ? null : (0, react_jsx_runtime.jsx)("p", {
1244
- className: AgentPresetSection_module_css_default.error,
1245
- role: "alert",
1246
- children: state.error
1247
- }),
1248
- [["system", t("builtInGroup")], ["user", t("customGroup")]].map(([trust, heading]) => {
1249
- const group = state.rows.filter((row) => row.trust === trust).map((row) => ({
1250
- row,
1251
- text: presetDisplayText(row, t),
1252
- selectionAction: row.broken !== void 0 ? t("brokenBadge") : row.isDefault ? t(state.showPicker ? "inUse" : "selectionOffDefault") : t(state.showPicker ? "setDefault" : "enablePickerToSetDefault")
1253
- }));
1254
- const tail = trust === "user" ? creatorButton : null;
1255
- if (group.length === 0 && tail === null) return null;
1256
- return (0, react_jsx_runtime.jsxs)("section", {
1257
- className: AgentPresetSection_module_css_default.group,
1258
- children: [
1259
- (0, react_jsx_runtime.jsx)("h3", {
1260
- className: AgentPresetSection_module_css_default.groupHead,
1261
- children: heading
1262
- }),
1263
- group.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
1264
- className: AgentPresetSection_module_css_default.cards,
1265
- children: group.map(({ row, text, selectionAction }) => (0, react_jsx_runtime.jsxs)("li", {
1266
- className: [
1267
- AgentPresetSection_module_css_default.card,
1268
- row.broken !== void 0 ? AgentPresetSection_module_css_default.cardBroken : void 0,
1269
- row.isDefault ? AgentPresetSection_module_css_default.cardActive : void 0,
1270
- !state.showPicker && row.broken === void 0 && !row.isDefault ? AgentPresetSection_module_css_default.cardSelectionDisabled : void 0
1271
- ].filter(Boolean).join(" "),
1272
- children: [
1273
- (0, react_jsx_runtime.jsxs)("button", {
1274
- type: "button",
1275
- className: AgentPresetSection_module_css_default.cardMain,
1276
- "aria-pressed": row.isDefault,
1277
- disabled: row.isDefault || row.broken === void 0 && (!state.showPicker || state.policySaving),
1278
- "aria-disabled": row.broken !== void 0,
1279
- "aria-label": `${selectionAction}: ${text.name}`,
1280
- title: selectionAction,
1281
- onClick: () => {
1282
- if (row.broken !== void 0) return;
1283
- props.makeDefault(row.id);
1284
- },
1285
- children: [
1286
- (0, react_jsx_runtime.jsxs)("span", {
1287
- className: AgentPresetSection_module_css_default.cardHead,
1288
- children: [
1289
- (0, react_jsx_runtime.jsx)("span", {
1290
- className: AgentPresetSection_module_css_default.cardName,
1291
- children: text.name
1292
- }),
1293
- row.broken !== void 0 ? (0, react_jsx_runtime.jsxs)("span", {
1294
- className: AgentPresetSection_module_css_default.brokenBadge,
1295
- children: [t("brokenBadge"), (0, react_jsx_runtime.jsx)("span", {
1296
- className: AgentPresetSection_module_css_default.brokenTip,
1297
- "aria-hidden": "true",
1298
- children: row.broken
1299
- })]
1300
- }) : null,
1301
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, { children: row.trust === "user" ? t("userTrust") : t("builtIn") }),
1302
- row.isDefault ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1303
- tone: "solid",
1304
- className: AgentPresetSection_module_css_default.inUse,
1305
- children: state.showPicker ? t("inUse") : t("selectionOffDefault")
1306
- }) : null
1307
- ]
1308
- }),
1309
- (0, react_jsx_runtime.jsx)(CardDescription, { text: text.description ?? t("noDescription") }),
1310
- row.broken === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
1311
- className: AgentPresetSection_module_css_default.cardBrokenReason,
1312
- role: "alert",
1313
- children: row.broken
1314
- }),
1315
- (0, react_jsx_runtime.jsx)("code", {
1316
- className: AgentPresetSection_module_css_default.cardId,
1317
- children: row.id
1318
- })
1319
- ]
1320
- }),
1321
- (0, react_jsx_runtime.jsxs)("div", {
1322
- className: AgentPresetSection_module_css_default.cardFoot,
1323
- children: [
1324
- row.trust === "system" ? row.broken === void 0 ? (0, react_jsx_runtime.jsx)("button", {
1325
- type: "button",
1326
- className: AgentPresetSection_module_css_default.iconButton,
1327
- "data-tip": t("view"),
1328
- "aria-label": `${t("view")}: ${text.name}`,
1329
- onClick: () => {
1330
- props.view(row.id);
1331
- },
1332
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconBrowseOutline16, {})
1333
- }) : null : (0, react_jsx_runtime.jsx)("button", {
1334
- type: "button",
1335
- className: AgentPresetSection_module_css_default.iconButton,
1336
- "data-tip": state.hasDocument ? t("openLocation") : t("showLocation"),
1337
- "aria-label": `${state.hasDocument ? t("openLocation") : t("showLocation")}: ${text.name}`,
1338
- onClick: () => {
1339
- props.openLocation(row.id);
1340
- },
1341
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconFolderOpenOutline16, {})
1342
- }),
1343
- (0, react_jsx_runtime.jsx)("button", {
1344
- type: "button",
1345
- className: AgentPresetSection_module_css_default.iconButton,
1346
- disabled: !state.authorable || row.broken !== void 0,
1347
- "data-tip": row.broken !== void 0 ? t("brokenNoCopy") : state.authorable ? t("duplicate") : t("duplicateUnavailable"),
1348
- "aria-label": `${t("duplicate")}: ${text.name}`,
1349
- onClick: () => {
1350
- props.beginCopy(row.id);
1351
- },
1352
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCopyOutline16, {})
1353
- }),
1354
- row.trust === "user" ? (0, react_jsx_runtime.jsx)("button", {
1355
- type: "button",
1356
- className: `${AgentPresetSection_module_css_default.iconButton} ${AgentPresetSection_module_css_default.iconDanger}`,
1357
- "data-tip": t("delete"),
1358
- "aria-label": `${t("delete")}: ${text.name}`,
1359
- onClick: () => {
1360
- props.confirmDelete(row.id);
1361
- },
1362
- children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, {})
1363
- }) : null
1364
- ]
1365
- }),
1366
- state.revealedPaths[row.id] === void 0 ? null : (0, react_jsx_runtime.jsxs)("p", {
1367
- className: AgentPresetSection_module_css_default.revealedPath,
1368
- children: [(0, react_jsx_runtime.jsx)("span", {
1369
- className: AgentPresetSection_module_css_default.revealedPathLabel,
1370
- children: t("revealedPathLabel")
1371
- }), (0, react_jsx_runtime.jsx)("code", { children: state.revealedPaths[row.id] })]
1372
- })
1373
- ]
1374
- }, row.id))
1375
- }),
1376
- tail
1377
- ]
1378
- }, trust);
1379
- }),
1380
- (0, react_jsx_runtime.jsx)(CopyDialog, {
1381
- state,
1382
- t,
1383
- actions: {
1384
- cancelCopy: props.cancelCopy,
1385
- confirmCopy: props.confirmCopy,
1386
- setCopyId: props.setCopyId,
1387
- setCopyName: props.setCopyName
1388
- }
1389
- }),
1390
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1391
- open: state.view !== null,
1392
- onClose: () => {
1393
- props.closeView();
1394
- },
1395
- title: state.view === null ? "" : `${t("view")} · ${viewedTitle}`,
1396
- closeLabel: t("close"),
1397
- description: t("composition"),
1398
- className: AgentPresetSection_module_css_default.dialog,
1399
- footer: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1400
- variant: "outline",
1401
- autoFocus: true,
1402
- onClick: () => {
1403
- props.closeView();
1404
- },
1405
- children: t("close")
1406
- }),
1407
- children: state.view === null ? null : (0, react_jsx_runtime.jsx)("pre", {
1408
- className: AgentPresetSection_module_css_default.viewerCode,
1409
- children: state.view.content
1410
- })
1411
- }),
1412
- (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1413
- open: state.pendingDelete !== null,
1414
- onClose: () => {
1415
- props.confirmDelete(null);
1416
- },
1417
- title: t("deleteTitle"),
1418
- closeLabel: t("close"),
1419
- description: t("deleteDescription"),
1420
- className: AgentPresetSection_module_css_default.deleteDialog,
1421
- footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1422
- variant: "outline",
1423
- autoFocus: true,
1424
- disabled: state.deleting,
1425
- onClick: () => {
1426
- props.confirmDelete(null);
1427
- },
1428
- children: t("cancel")
1429
- }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1430
- variant: "outline",
1431
- className: AgentPresetSection_module_css_default.deleteConfirm,
1432
- disabled: state.deleting,
1433
- onClick: () => {
1434
- props.remove();
1435
- },
1436
- children: state.deleting ? t("deleting") : t("deleteConfirm")
1437
- })] })
1438
- })
1439
- ]
1440
- });
1441
- }
1442
- //#endregion
1443
- //#region lib/types/client/seat-store.js
1444
- /**
1445
- * Hero-chip controller: which preset the NEXT session gets.
1446
- *
1447
- * The new-session screen has no session, so a pick is staged rather than
1448
- * applied. It reaches a session when one becomes current and is still blank —
1449
- * whether the workspace connect created it or reused an existing blank one,
1450
- * which is why staging cannot simply ride along on `sessions.create`.
1451
- *
1452
- * The stage is forgotten once applied. The next new session starts from the
1453
- * Host-effective default again.
1454
- */
1455
- const INITIAL = {
1456
- showPicker: false,
1457
- options: [],
1458
- current: "",
1459
- error: null,
1460
- busy: false,
1461
- introduce: false
1462
- };
1463
- /** Stages the next session's preset and applies it when one appears. */
1464
- var AgentPresetSeatController = class {
1465
- ctx;
1466
- currentSession;
1467
- staged;
1468
- /** Chip snapshot the renderer subscribes to. */
1469
- store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL);
1470
1214
  /**
1471
1215
  * The Host-effective default, so a consumed stage can fall back to it without
1472
1216
  * re-reading the roster.
@@ -1474,6 +1218,8 @@ window.__ModuleLoader__.load({
1474
1218
  fallback = "";
1475
1219
  /** Only the newest roster read may publish after overlapping refreshes. */
1476
1220
  loadGeneration = 0;
1221
+ /** Completion of the active Host selection; Settings choices wait before staging. */
1222
+ pendingSelection;
1477
1223
  constructor(ctx, currentSession, staged = {
1478
1224
  id: void 0,
1479
1225
  introduce: false
@@ -1488,6 +1234,10 @@ window.__ModuleLoader__.load({
1488
1234
  ...patch
1489
1235
  });
1490
1236
  }
1237
+ clearStage() {
1238
+ this.staged.id = void 0;
1239
+ this.staged.introduce = false;
1240
+ }
1491
1241
  /**
1492
1242
  * Read the roster and open the chip on the Host-effective default.
1493
1243
  * @returns once the snapshot reflects the host.
@@ -1501,10 +1251,7 @@ window.__ModuleLoader__.load({
1501
1251
  return;
1502
1252
  }
1503
1253
  const { presets, modeSelectionEnabled } = roster.value;
1504
- if (!modeSelectionEnabled) {
1505
- this.staged.id = void 0;
1506
- this.staged.introduce = false;
1507
- }
1254
+ if (!modeSelectionEnabled) this.clearStage();
1508
1255
  this.fallback = presets.find((preset) => preset.isDefault)?.id ?? presets[0]?.id ?? "";
1509
1256
  const session = this.currentSession();
1510
1257
  this.set({
@@ -1531,8 +1278,7 @@ window.__ModuleLoader__.load({
1531
1278
  async select(id) {
1532
1279
  if (this.store.getSnapshot().busy) return void 0;
1533
1280
  this.stage(id);
1534
- await this.apply();
1535
- return this.store.getSnapshot().error ?? void 0;
1281
+ return await this.apply();
1536
1282
  }
1537
1283
  /**
1538
1284
  * Stage a pick WITHOUT the immediate apply, for a flow that starts the
@@ -1564,17 +1310,17 @@ window.__ModuleLoader__.load({
1564
1310
  }
1565
1311
  /**
1566
1312
  * Apply a Settings choice only if its captured Session is still current and
1567
- * blank. The selection uses the existing stage/apply path.
1313
+ * blank after any pending selection settles. The selection uses the existing stage/apply path.
1568
1314
  * @param expectedSessionId - blank Session captured before the Settings write.
1569
1315
  * @param id - the effective default that the write persisted.
1570
1316
  * @returns the Host refusal text, or undefined when applied or no longer relevant.
1571
1317
  */
1572
1318
  async syncBlankSession(expectedSessionId, id) {
1319
+ while (this.pendingSelection !== void 0) await this.pendingSelection;
1573
1320
  const session = this.currentSession();
1574
1321
  if (session === void 0 || !session.blank || session.id !== expectedSessionId) return void 0;
1575
1322
  this.stage(id);
1576
- await this.apply();
1577
- return this.store.getSnapshot().error ?? void 0;
1323
+ return await this.apply();
1578
1324
  }
1579
1325
  /** Acknowledge the introduction cue once the chip has played it. */
1580
1326
  introduced() {
@@ -1587,9 +1333,11 @@ window.__ModuleLoader__.load({
1587
1333
  *
1588
1334
  * Called both by `select()` and by whoever observes the current session
1589
1335
  * changing, because the session may appear either before or after the pick.
1590
- * @returns once the switch settled, or immediately when there is nothing to do.
1336
+ * List updates do not repeat a selection while its response is pending.
1337
+ * @returns this attempt's Host refusal, or undefined when successful or no switch starts.
1591
1338
  */
1592
1339
  async apply() {
1340
+ if (this.store.getSnapshot().busy) return;
1593
1341
  const staged = this.staged.id;
1594
1342
  const session = this.currentSession();
1595
1343
  if (staged === void 0) {
@@ -1599,30 +1347,33 @@ window.__ModuleLoader__.load({
1599
1347
  }
1600
1348
  if (session === void 0) return;
1601
1349
  if (!session.blank || presetOf(session) === staged) {
1602
- this.staged.id = void 0;
1603
- this.staged.introduce = false;
1350
+ this.clearStage();
1604
1351
  return;
1605
1352
  }
1606
- this.set({
1607
- busy: true,
1608
- error: null
1609
- });
1610
- const result = await this.ctx.remote.agentPresets.select(session.id, staged);
1611
- this.staged.id = void 0;
1612
- this.staged.introduce = false;
1613
- if (!result.ok) {
1614
- const { error } = result;
1353
+ const completion = Promise.withResolvers();
1354
+ this.pendingSelection = completion.promise;
1355
+ this.clearStage();
1356
+ try {
1615
1357
  this.set({
1616
- busy: false,
1617
- error: "reason" in error.details && typeof error.details.reason === "string" ? error.details.reason : error.message,
1618
- current: presetOf(session) ?? ""
1358
+ busy: true,
1359
+ error: null
1619
1360
  });
1620
- return;
1361
+ const result = await this.ctx.remote.agentPresets.select(session.id, staged);
1362
+ if (!result.ok) {
1363
+ const { error } = result;
1364
+ const refusal = "reason" in error.details && typeof error.details.reason === "string" ? error.details.reason : error.message;
1365
+ this.set({
1366
+ error: refusal,
1367
+ current: this.staged.id ?? presetOf(session) ?? ""
1368
+ });
1369
+ return refusal;
1370
+ }
1371
+ this.set({ current: this.staged.id ?? result.value });
1372
+ } finally {
1373
+ this.pendingSelection = void 0;
1374
+ this.set({ busy: false });
1375
+ completion.resolve(void 0);
1621
1376
  }
1622
- this.set({
1623
- busy: false,
1624
- current: result.value
1625
- });
1626
1377
  }
1627
1378
  };
1628
1379
  function presetOf(session) {
@@ -1630,12 +1381,101 @@ window.__ModuleLoader__.load({
1630
1381
  return typeof value === "string" ? value : void 0;
1631
1382
  }
1632
1383
  //#endregion
1384
+ //#region lib/types/client/section-store.js
1385
+ const INITIAL = {
1386
+ status: "idle",
1387
+ error: null,
1388
+ showPicker: true,
1389
+ policySaving: false,
1390
+ rows: []
1391
+ };
1392
+ const message = (error) => error instanceof Error ? error.message : String(error);
1393
+ /** Loads the roster and writes the default and chooser policy. */
1394
+ var AgentPresetSectionController = class {
1395
+ ctx;
1396
+ /** Observable roster and selection state. */
1397
+ store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)(INITIAL);
1398
+ loading;
1399
+ constructor(ctx) {
1400
+ this.ctx = ctx;
1401
+ }
1402
+ set(patch) {
1403
+ this.store.set({
1404
+ ...this.store.getSnapshot(),
1405
+ ...patch
1406
+ });
1407
+ }
1408
+ /** Refresh the roster; concurrent calls share one read.
1409
+ * @returns Once the roster read settles.
1410
+ */
1411
+ load() {
1412
+ return this.loading ??= this.readRoster().finally(() => {
1413
+ this.loading = void 0;
1414
+ });
1415
+ }
1416
+ async readRoster() {
1417
+ try {
1418
+ const result = await this.ctx.remote.agentPresets.list();
1419
+ if (!result.ok) throw new Error(result.error.message);
1420
+ this.set({
1421
+ status: "ready",
1422
+ error: null,
1423
+ rows: result.value.presets,
1424
+ showPicker: result.value.modeSelectionEnabled
1425
+ });
1426
+ } catch (error) {
1427
+ this.set({
1428
+ status: "error",
1429
+ error: message(error)
1430
+ });
1431
+ }
1432
+ }
1433
+ /** Set the default and synchronize the current blank task when supplied.
1434
+ * @param id Selected default.
1435
+ * @param sync Blank-session synchronization callback.
1436
+ * @returns Once saved and refreshed.
1437
+ */
1438
+ async makeDefault(id, sync) {
1439
+ if (!this.store.getSnapshot().showPicker) return;
1440
+ await this.policy(() => writeDefaultPreset(this.ctx, id), sync);
1441
+ }
1442
+ /** Change chooser visibility.
1443
+ * @param visible Whether the chooser is visible.
1444
+ * @param sync Blank-session synchronization callback.
1445
+ * @returns Once saved and refreshed.
1446
+ */
1447
+ async setPickerVisible(visible, sync) {
1448
+ await this.policy(() => writeModeSelectionEnabled(this.ctx, visible), sync);
1449
+ }
1450
+ async policy(write, sync) {
1451
+ if (this.store.getSnapshot().policySaving) return;
1452
+ this.set({
1453
+ policySaving: true,
1454
+ error: null
1455
+ });
1456
+ try {
1457
+ const error = await write();
1458
+ await this.load();
1459
+ if (error !== void 0) throw new Error(error);
1460
+ const selected = this.store.getSnapshot().rows.find((row) => row.isDefault);
1461
+ if (selected !== void 0) {
1462
+ const error = await sync?.(selected.id);
1463
+ if (error !== void 0) throw new Error(error);
1464
+ }
1465
+ } catch (error) {
1466
+ this.set({ error: message(error) });
1467
+ } finally {
1468
+ this.set({ policySaving: false });
1469
+ }
1470
+ }
1471
+ };
1472
+ //#endregion
1633
1473
  //#region lib/types/client/index.js
1634
1474
  /**
1635
1475
  * Agent-preset surface plugin, browser half — three surfaces over one roster:
1636
1476
  * a chip on the new-session screen for the session about to start, a
1637
- * read-only label in the session header, and a settings section that manages
1638
- * the roster (copy, delete, default, and the way into a preset's own files).
1477
+ * read-only label in the session header, and a settings section that lists
1478
+ * the roster (selection, the new-task default, and the way into Creator mode).
1639
1479
  *
1640
1480
  * A running session keeps the composition it began with (the host refuses to
1641
1481
  * adopt an existing session under a different preset). That is what splits
@@ -1651,7 +1491,8 @@ window.__ModuleLoader__.load({
1651
1491
  "locale",
1652
1492
  "remote",
1653
1493
  "remote.agentPresets",
1654
- "remote.settings"
1494
+ "remote.settings",
1495
+ "configForms"
1655
1496
  ];
1656
1497
  /**
1657
1498
  * Mount the roster surfaces: hero chip, session-header label, settings section.
@@ -1664,33 +1505,41 @@ window.__ModuleLoader__.load({
1664
1505
  introduce: false
1665
1506
  };
1666
1507
  const seats = new WeakMapWithValues();
1508
+ const boundSeatDisposers = /* @__PURE__ */ new Set();
1509
+ ctx.effect(() => async () => {
1510
+ await Promise.all([...boundSeatDisposers].map((dispose) => dispose()));
1511
+ }, "ui-agent-preset: bound selections");
1667
1512
  const unboundSeat = new AgentPresetSeatController(ctx, () => void 0, staged);
1668
- const seatFor = (scope, binding) => {
1669
- let seat = seats.get(binding);
1670
- if (seat !== void 0) return seat;
1671
- seat = new AgentPresetSeatController(scope, () => {
1672
- if (scope.sessions.binding(binding.sessionId) !== binding) return void 0;
1673
- const summary = scope.sessions.list.getSnapshot().byId[binding.sessionId];
1674
- return summary !== void 0 && (scope.sessions.retainInfo(binding.sessionId).getSnapshot().retainedBy.mainView ?? 0) > 0 ? summary : void 0;
1513
+ const seatFor = (binding) => {
1514
+ const existing = seats.get(binding);
1515
+ if (existing !== void 0) return existing;
1516
+ const seat = new AgentPresetSeatController(ctx, () => {
1517
+ if (ctx.sessions.binding(binding.sessionId) !== binding) return void 0;
1518
+ const summary = ctx.sessions.list.getSnapshot().byId[binding.sessionId];
1519
+ return summary !== void 0 && (ctx.sessions.retainInfo(binding.sessionId).getSnapshot().retainedBy.mainView ?? 0) > 0 ? summary : void 0;
1675
1520
  }, staged);
1676
1521
  seats.set(binding, seat);
1677
- binding.ctx.effect(() => () => {
1678
- seats.delete(binding);
1522
+ const dispose = binding.ctx.effect(() => {
1523
+ const stop = ctx.sessions.list.subscribe(() => {
1524
+ seat.apply();
1525
+ });
1526
+ return () => {
1527
+ stop();
1528
+ seats.delete(binding);
1529
+ boundSeatDisposers.delete(dispose);
1530
+ };
1679
1531
  }, "ui-agent-preset: Provider binding");
1532
+ boundSeatDisposers.add(dispose);
1680
1533
  return seat;
1681
1534
  };
1682
- const section = new AgentPresetSectionController(ctx, () => {
1683
- controller.load();
1684
- unboundSeat.load();
1685
- for (const seat of seats.values) seat.load();
1686
- });
1687
- const mainBlankSeat = (scope) => {
1688
- const summary = Object.values(scope.sessions.list.getSnapshot().byId).find((session) => {
1535
+ const section = new AgentPresetSectionController(ctx);
1536
+ const mainBlankSeat = () => {
1537
+ const summary = Object.values(ctx.sessions.list.getSnapshot().byId).find((session) => {
1689
1538
  /* v8 ignore next -- retained source counts omit zero-valued entries. */
1690
1539
  return session.blank && (session.retainedBy.mainView ?? 0) > 0;
1691
1540
  });
1692
- const binding = summary === void 0 ? void 0 : scope.sessions.binding(summary.id);
1693
- return binding === void 0 ? void 0 : seatFor(scope, binding);
1541
+ const binding = summary === void 0 ? void 0 : ctx.sessions.binding(summary.id);
1542
+ return binding === void 0 ? void 0 : seatFor(binding);
1694
1543
  };
1695
1544
  ctx.effect(() => ctx.locale.register("settings.agentPreset", {
1696
1545
  zh,
@@ -1704,7 +1553,7 @@ window.__ModuleLoader__.load({
1704
1553
  for (const seat of seats.values) seat.load();
1705
1554
  };
1706
1555
  const disposers = [ctx.remote.$on("settings/document-updated", (ns) => {
1707
- if (ns !== "agent-presets") return;
1556
+ if (ns !== "agent-preset-registry") return;
1708
1557
  refresh();
1709
1558
  }), ctx.on("connection/reset", () => {
1710
1559
  refresh();
@@ -1721,10 +1570,13 @@ window.__ModuleLoader__.load({
1721
1570
  "uiWorkspace"
1722
1571
  ], (scope) => {
1723
1572
  const seatInjected = (sessionId) => {
1724
- const binding = sessionId === void 0 ? void 0 : scope.sessions.binding(sessionId);
1725
- const seat = binding === void 0 ? unboundSeat : seatFor(scope, binding);
1573
+ const binding = sessionId === void 0 ? void 0 : ctx.sessions.binding(sessionId);
1574
+ const seat = binding === void 0 ? unboundSeat : seatFor(binding);
1726
1575
  return {
1727
- hooks: { agentPresetSeat: seat.store },
1576
+ hooks: {
1577
+ agentPresetSeat: seat.store,
1578
+ showPresetPicker: ctx.configForms.developerTools.enabled
1579
+ },
1728
1580
  load: () => seat.load(),
1729
1581
  select: (id) => seat.select(id),
1730
1582
  introduced: () => {
@@ -1739,7 +1591,7 @@ window.__ModuleLoader__.load({
1739
1591
  scope.effect(() => {
1740
1592
  creatorDraft = () => {
1741
1593
  if (!section.store.getSnapshot().showPicker) return;
1742
- const seat = mainBlankSeat(scope) ?? unboundSeat;
1594
+ const seat = mainBlankSeat() ?? unboundSeat;
1743
1595
  seat.stage("cordis", true);
1744
1596
  scope.uiWorkspace.startSession();
1745
1597
  seat.apply();
@@ -1767,7 +1619,7 @@ window.__ModuleLoader__.load({
1767
1619
  const captureBlankSessionSync = () => {
1768
1620
  const summary = Object.values(ctx.sessions.list.getSnapshot().byId).find((session) => session.blank && (session.retainedBy.mainView ?? 0) > 0);
1769
1621
  const binding = summary === void 0 ? void 0 : ctx.sessions.binding(summary.id);
1770
- const seat = binding === void 0 ? void 0 : seats.get(binding);
1622
+ const seat = binding === void 0 ? void 0 : seatFor(binding);
1771
1623
  const sessionId = seat?.blankSessionId();
1772
1624
  return async (id) => {
1773
1625
  if (seat === void 0 || sessionId === void 0 || binding === void 0 || seats.get(binding) !== seat) return void 0;
@@ -1775,31 +1627,12 @@ window.__ModuleLoader__.load({
1775
1627
  };
1776
1628
  };
1777
1629
  const sectionInjected = () => ({
1778
- hooks: { agentPresetSection: section.store },
1779
- load: () => section.load(),
1780
- view: (id) => section.view(id),
1781
- closeView: () => {
1782
- section.closeView();
1630
+ hooks: {
1631
+ agentPresetSection: section.store,
1632
+ developerTools: ctx.configForms.developerTools.enabled
1783
1633
  },
1784
- beginCopy: (from) => {
1785
- section.beginCopy(from);
1786
- },
1787
- cancelCopy: () => {
1788
- section.cancelCopy();
1789
- },
1790
- setCopyId: (id) => {
1791
- section.setCopyId(id);
1792
- },
1793
- setCopyName: (name) => {
1794
- section.setCopyName(name);
1795
- },
1796
- confirmCopy: () => section.confirmCopy(),
1797
- openLocation: (id) => section.openLocation(id),
1634
+ load: () => section.load(),
1798
1635
  ...creatorDraft === void 0 ? {} : { startCreatorDraft: creatorDraft },
1799
- confirmDelete: (id) => {
1800
- section.confirmDelete(id);
1801
- },
1802
- remove: () => section.remove(),
1803
1636
  makeDefault: (id) => section.makeDefault(id, captureBlankSessionSync()),
1804
1637
  setPickerVisible: (showPicker) => section.setPickerVisible(showPicker, captureBlankSessionSync())
1805
1638
  });
@@ -1815,7 +1648,6 @@ window.__ModuleLoader__.load({
1815
1648
  //#endregion
1816
1649
  exports.AGENT_PRESET_SETTINGS_NS = AGENT_PRESET_SETTINGS_NS;
1817
1650
  exports.apply = apply;
1818
- exports.draftBlocker = draftBlocker;
1819
1651
  exports.inject = inject;
1820
1652
  exports.writeDefaultPreset = writeDefaultPreset;
1821
1653
  return module.exports;