@songtonyli/dsh-cli 0.1.11 → 0.1.13

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 (1723) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/lib/index.js +3 -2
  4. package/node_modules/@deepseek-ai/cordis/src/logger.ts +3 -2
  5. package/node_modules/@deepseek-ai/cordis-plugin-loader/lib/index.js +1 -1
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/src/config/entry.ts +1 -1
  7. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  8. package/node_modules/@deepseek-ai/dsh/README.md +6 -4
  9. package/node_modules/@deepseek-ai/dsh/README.zh.md +6 -4
  10. package/node_modules/@deepseek-ai/dsh/lib/bin.js +118 -54
  11. package/node_modules/@deepseek-ai/dsh/lib/{dump-config-CpQgpJa2.js → dump-config-Bb5YvFIX.js} +1 -1
  12. package/node_modules/@deepseek-ai/dsh/lib/plugin-DJ-rVHUS.js +31 -0
  13. package/node_modules/@deepseek-ai/dsh/lib/{profile-boot-CuwbWsnH.js → profile-boot-BNu17Y9U.js} +82 -135
  14. package/node_modules/@deepseek-ai/dsh/lib/profile-boot.js +2 -0
  15. package/node_modules/@deepseek-ai/dsh/package.json +117 -102
  16. package/node_modules/@deepseek-ai/dsh-acp/package.json +22 -22
  17. package/node_modules/@deepseek-ai/dsh-acp-app/README.i18n.yaml +2 -2
  18. package/node_modules/@deepseek-ai/dsh-acp-app/README.md +1 -1
  19. package/node_modules/@deepseek-ai/dsh-acp-app/README.zh.md +1 -1
  20. package/node_modules/@deepseek-ai/dsh-acp-app/cordis.patch.yml +3 -0
  21. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  22. package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
  23. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  24. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +21 -21
  25. package/node_modules/@deepseek-ai/dsh-agent-loop/README.i18n.yaml +2 -2
  26. package/node_modules/@deepseek-ai/dsh-agent-loop/README.md +1 -1
  27. package/node_modules/@deepseek-ai/dsh-agent-loop/README.zh.md +1 -1
  28. package/node_modules/@deepseek-ai/dsh-agent-loop/lib/index.js +2 -3
  29. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +25 -25
  30. package/node_modules/@deepseek-ai/dsh-agent-presets/package.json +27 -27
  31. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/agent.cordis.yml +23 -13
  32. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/preset.yml +1 -1
  33. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/cordis-plugin-development/SKILL.md +73 -385
  34. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/cordis/skills/editing-cordis-compositions/SKILL.md +9 -72
  35. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/ptc/agent.cordis.yml +4 -0
  36. package/node_modules/@deepseek-ai/dsh-agent-presets/presets/standard/agent.cordis.yml +4 -0
  37. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  38. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  39. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +10 -10
  40. package/node_modules/@deepseek-ai/dsh-api-gateway/README.i18n.yaml +2 -2
  41. package/node_modules/@deepseek-ai/dsh-api-gateway/README.md +9 -5
  42. package/node_modules/@deepseek-ai/dsh-api-gateway/README.zh.md +9 -5
  43. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/client.js +41 -51
  44. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/index.js +4 -17
  45. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/remote-events.js +33 -38
  46. package/node_modules/@deepseek-ai/dsh-api-gateway/lib/types/client/stream-client.js +2 -1
  47. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +9 -9
  48. package/node_modules/@deepseek-ai/dsh-api-remotes/README.i18n.yaml +2 -2
  49. package/node_modules/@deepseek-ai/dsh-api-remotes/README.md +1 -1
  50. package/node_modules/@deepseek-ai/dsh-api-remotes/README.zh.md +1 -1
  51. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +754 -76
  52. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +12 -0
  53. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +5 -4
  54. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +3 -0
  55. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +37 -35
  56. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.i18n.yaml +2 -2
  57. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.md +15 -3
  58. package/node_modules/@deepseek-ai/dsh-api-session-controller/README.zh.md +15 -3
  59. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/client.js +428 -471
  60. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/index.js +16 -47
  61. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +11 -32
  62. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.remote-client.js +0 -21
  63. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/agent.js +8 -1
  64. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/index.js +16 -5
  65. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/scope.js +15 -22
  66. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/lineage.js +1 -3
  67. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/manager.js +75 -174
  68. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/projection-store.js +6 -14
  69. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/service.js +259 -244
  70. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/client/sessions/session.js +29 -33
  71. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/commands.js +10 -4
  72. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/control.js +1 -41
  73. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/types/index.js +1 -1
  74. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +66 -66
  75. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  76. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
  77. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +14 -5
  78. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +14 -5
  79. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +249 -19
  80. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/index.js +258 -50
  81. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.host.js +67 -11
  82. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/typert.remote-client.js +54 -9
  83. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/bindings.js +71 -0
  84. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +83 -8
  85. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +20 -7
  86. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/retention.js +77 -0
  87. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/index.js +49 -43
  88. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/retention.js +153 -0
  89. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/terminal.js +35 -0
  90. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +16 -16
  91. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +16 -16
  92. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.i18n.yaml +2 -2
  93. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.md +2 -0
  94. package/node_modules/@deepseek-ai/dsh-api-workspace-files/README.zh.md +2 -0
  95. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/index.js +6 -11
  96. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.host.js +4 -4
  97. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/typert.remote-client.js +4 -4
  98. package/node_modules/@deepseek-ai/dsh-api-workspace-files/lib/types/index.js +6 -7
  99. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +11 -10
  100. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  101. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +18 -8
  102. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +17 -7
  103. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +360 -202
  104. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +9 -17
  105. package/node_modules/@deepseek-ai/dsh-atomic-write/README.i18n.yaml +2 -2
  106. package/node_modules/@deepseek-ai/dsh-atomic-write/README.md +2 -0
  107. package/node_modules/@deepseek-ai/dsh-atomic-write/README.zh.md +2 -0
  108. package/node_modules/@deepseek-ai/dsh-atomic-write/lib/index.js +8 -3
  109. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  110. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  111. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  112. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  113. package/node_modules/@deepseek-ai/dsh-base/cordis.patch.yml +12 -5
  114. package/node_modules/@deepseek-ai/dsh-base/package.json +89 -88
  115. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +10 -10
  116. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  117. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  118. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  119. package/node_modules/@deepseek-ai/dsh-client-connection/README.i18n.yaml +2 -2
  120. package/node_modules/@deepseek-ai/dsh-client-connection/README.md +4 -0
  121. package/node_modules/@deepseek-ai/dsh-client-connection/README.zh.md +4 -0
  122. package/node_modules/@deepseek-ai/dsh-client-connection/lib/index.js +1 -1
  123. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +7 -7
  124. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  125. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  126. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +11 -11
  127. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +11 -11
  128. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +10 -59
  129. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/index.js +15 -7
  130. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -5
  131. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +8 -6
  132. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +2 -2
  133. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +14 -4
  134. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +14 -4
  135. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +407 -26
  136. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +62 -10
  137. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +4 -4
  138. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +4 -3
  139. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/lib/client.js +140 -48
  140. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +15 -12
  141. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +12 -10
  142. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.i18n.yaml +2 -2
  143. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.md +2 -0
  144. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/README.zh.md +2 -0
  145. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/lib/client.js +24 -12
  146. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +9 -7
  147. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +4 -3
  148. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.i18n.yaml +2 -2
  149. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.md +4 -2
  150. package/node_modules/@deepseek-ai/dsh-client-ui-chat/README.zh.md +4 -2
  151. package/node_modules/@deepseek-ai/dsh-client-ui-chat/lib/client.js +49 -34
  152. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +33 -29
  153. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  154. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  155. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  156. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +107 -34
  157. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +14 -11
  158. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  159. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +13 -2
  160. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +13 -2
  161. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +520 -384
  162. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -26
  163. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.i18n.yaml +2 -2
  164. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.md +9 -13
  165. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/README.zh.md +9 -13
  166. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/lib/client.js +3 -35
  167. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +12 -12
  168. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.i18n.yaml +2 -2
  169. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.md +25 -15
  170. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/README.zh.md +25 -15
  171. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/client.js +1364 -160
  172. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/lib/index.js +164 -41
  173. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +27 -22
  174. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +7 -5
  175. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.i18n.yaml +2 -2
  176. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.md +8 -5
  177. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/README.zh.md +7 -4
  178. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/lib/client.js +3 -1
  179. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +4 -4
  180. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +14 -12
  181. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +2 -2
  182. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +1 -1
  183. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +1 -1
  184. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +112 -11
  185. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +11 -8
  186. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -6
  187. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.i18n.yaml +2 -2
  188. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.md +2 -0
  189. package/node_modules/@deepseek-ai/dsh-client-ui-layout/README.zh.md +2 -0
  190. package/node_modules/@deepseek-ai/dsh-client-ui-layout/lib/client.js +27 -8
  191. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -6
  192. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +15 -13
  193. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +2 -2
  194. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +5 -1
  195. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +5 -1
  196. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +152 -33
  197. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +14 -11
  198. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +10 -8
  199. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +14 -12
  200. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.i18n.yaml +2 -2
  201. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.md +9 -1
  202. package/node_modules/@deepseek-ai/dsh-client-ui-plan/README.zh.md +9 -1
  203. package/node_modules/@deepseek-ai/dsh-client-ui-plan/lib/client.js +564 -4
  204. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +26 -10
  205. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +6 -0
  206. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +129 -0
  207. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +129 -0
  208. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +2550 -0
  209. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/index.js +6 -0
  210. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +65 -0
  211. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +21 -0
  212. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +6 -0
  213. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +172 -0
  214. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +172 -0
  215. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +79 -0
  216. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +28 -0
  217. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +123 -0
  218. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +109 -0
  219. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +84 -0
  220. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +50 -0
  221. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +54 -0
  222. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +38 -0
  223. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +345 -0
  224. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +261 -0
  225. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +103 -0
  226. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +29 -0
  227. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +27 -0
  228. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +111 -0
  229. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +73 -0
  230. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +112 -0
  231. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +73 -0
  232. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +50 -0
  233. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +57 -0
  234. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +205 -0
  235. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +72 -0
  236. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +42 -0
  237. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +141 -0
  238. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +8666 -0
  239. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +130 -0
  240. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +32 -0
  241. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +462 -0
  242. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +15 -0
  243. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +18 -0
  244. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +20 -0
  245. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +12 -0
  246. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +26 -0
  247. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +52 -0
  248. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +29 -0
  249. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +43 -0
  250. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +16 -0
  251. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +20 -0
  252. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +24 -0
  253. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +11 -0
  254. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +59 -0
  255. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +49 -0
  256. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +90 -0
  257. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +36 -0
  258. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +11 -0
  259. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +13 -0
  260. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +47 -0
  261. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +16 -0
  262. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +20 -0
  263. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +72 -0
  264. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +25 -0
  265. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +18 -0
  266. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +20 -0
  267. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +32 -0
  268. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +66 -0
  269. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +32 -0
  270. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +34 -0
  271. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +61 -0
  272. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +17 -0
  273. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +9 -0
  274. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +54 -0
  275. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +30 -0
  276. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +9 -0
  277. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +8 -0
  278. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +23 -0
  279. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +200 -0
  280. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +9 -0
  281. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +70 -0
  282. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +30 -0
  283. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +8 -0
  284. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +36 -0
  285. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +49 -0
  286. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +9 -0
  287. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +13 -0
  288. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +142 -0
  289. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +80 -0
  290. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +27 -0
  291. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +11 -0
  292. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +25 -0
  293. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +22 -0
  294. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +138 -0
  295. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +11 -0
  296. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +22 -0
  297. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +22 -0
  298. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +23 -0
  299. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +14 -0
  300. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +11 -0
  301. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +34 -0
  302. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +11 -0
  303. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +37 -0
  304. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +43 -0
  305. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +60 -0
  306. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.i18n.yaml +2 -2
  307. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.md +1 -1
  308. package/node_modules/@deepseek-ai/dsh-client-ui-reference/README.zh.md +1 -1
  309. package/node_modules/@deepseek-ai/dsh-client-ui-reference/lib/client.js +19 -5
  310. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -11
  311. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.i18n.yaml +2 -2
  312. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.md +4 -3
  313. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/README.zh.md +4 -3
  314. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/lib/client.js +463 -57
  315. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +3 -2
  316. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +10 -8
  317. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.i18n.yaml +2 -2
  318. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.md +1 -1
  319. package/node_modules/@deepseek-ai/dsh-client-ui-session/README.zh.md +1 -1
  320. package/node_modules/@deepseek-ai/dsh-client-ui-session/lib/client.js +232 -72
  321. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +8 -4
  322. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +5 -4
  323. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +2 -2
  324. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +2 -0
  325. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +2 -0
  326. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +293 -27
  327. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +11 -9
  328. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  329. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +4 -2
  330. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +4 -2
  331. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +244 -227
  332. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -6
  333. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.i18n.yaml +2 -2
  334. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.md +6 -2
  335. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/README.zh.md +6 -2
  336. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/lib/client.js +52 -10
  337. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +12 -8
  338. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.i18n.yaml +2 -2
  339. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.md +24 -19
  340. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/README.zh.md +23 -18
  341. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/lib/client.js +649 -509
  342. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +10 -7
  343. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +7 -5
  344. package/node_modules/@deepseek-ai/dsh-client-ui-settings-unarchive-sessions/package.json +11 -9
  345. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.i18n.yaml +2 -2
  346. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.md +8 -0
  347. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/README.zh.md +8 -0
  348. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +105 -25
  349. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +11 -7
  350. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.i18n.yaml +6 -0
  351. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.md +117 -0
  352. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/README.zh.md +117 -0
  353. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/client.js +821 -0
  354. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/lib/index.js +6 -0
  355. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +60 -0
  356. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.i18n.yaml +2 -2
  357. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.md +39 -6
  358. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/README.zh.md +39 -6
  359. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.js +1821 -25130
  360. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/client.pdf.js +32609 -0
  361. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/lib/index.js +26 -4
  362. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +25 -15
  363. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -9
  364. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.i18n.yaml +2 -2
  365. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.md +9 -3
  366. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/README.zh.md +9 -3
  367. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +4538 -13
  368. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +13 -10
  369. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.i18n.yaml +2 -2
  370. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.md +8 -5
  371. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/README.zh.md +8 -5
  372. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.js +42 -13423
  373. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/lib/client.terminal.js +13494 -0
  374. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +14 -11
  375. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +13 -11
  376. package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +21 -0
  377. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +6 -0
  378. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +111 -0
  379. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +111 -0
  380. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +577 -0
  381. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +951 -0
  382. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +263 -0
  383. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +3 -0
  384. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +37 -0
  385. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.i18n.yaml +2 -2
  386. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.md +3 -1
  387. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/README.zh.md +3 -1
  388. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/lib/client.js +212 -16
  389. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +22 -12
  390. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/client.js +1 -1
  391. package/node_modules/@deepseek-ai/dsh-client-ui-theme/lib/index.js +1 -0
  392. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +10 -8
  393. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +1 -0
  394. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +21 -19
  395. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.i18n.yaml +2 -2
  396. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.md +5 -1
  397. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/README.zh.md +5 -1
  398. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/lib/client.js +132 -66
  399. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +15 -13
  400. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.i18n.yaml +2 -2
  401. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.md +6 -4
  402. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/README.zh.md +6 -4
  403. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/lib/client.js +71 -74
  404. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -15
  405. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/lib/client.js +12 -5
  406. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +15 -11
  407. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.i18n.yaml +2 -2
  408. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.md +10 -2
  409. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/README.zh.md +10 -2
  410. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/lib/client.js +403 -217
  411. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +18 -15
  412. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  413. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  414. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  415. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  416. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  417. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  418. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +22 -22
  419. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  420. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +13 -13
  421. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.i18n.yaml +2 -2
  422. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.md +7 -7
  423. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/README.zh.md +7 -7
  424. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +736 -219
  425. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  426. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.i18n.yaml +2 -2
  427. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.md +7 -7
  428. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/README.zh.md +7 -7
  429. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/index.js +5 -5
  430. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/index.js +5 -8
  431. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/lib/types/lifecycle.js +2 -2
  432. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +16 -16
  433. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  434. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  435. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  436. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  437. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.i18n.yaml +6 -0
  438. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.md +220 -0
  439. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/README.zh.md +220 -0
  440. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/index.js +1894 -0
  441. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/invariant.js +361 -0
  442. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.host.js +879 -0
  443. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/typert.remote-client.js +218 -0
  444. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/activity.js +85 -0
  445. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/client.js +3 -0
  446. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/error.js +23 -0
  447. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/index.js +313 -0
  448. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/invariant.js +26 -0
  449. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/journal.js +63 -0
  450. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/lifecycle.js +85 -0
  451. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/mailbox.js +293 -0
  452. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/persisted.js +20 -0
  453. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/projection.js +260 -0
  454. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/roster.js +448 -0
  455. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/session-message.js +23 -0
  456. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-board.js +275 -0
  457. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/task-graph.js +62 -0
  458. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/types.js +26 -0
  459. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/lib/types/validation.js +33 -0
  460. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +87 -0
  461. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.i18n.yaml +6 -0
  462. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.md +107 -0
  463. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/README.zh.md +107 -0
  464. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/cordis.patch.yml +30 -0
  465. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/lib/index.js +1 -0
  466. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +48 -0
  467. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.i18n.yaml +6 -0
  468. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.md +98 -0
  469. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/README.zh.md +98 -0
  470. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/cordis.patch.yml +6 -0
  471. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/lib/index.js +1 -0
  472. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-web-profile/package.json +47 -0
  473. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.i18n.yaml +6 -0
  474. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.md +98 -0
  475. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/README.zh.md +98 -0
  476. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/client.js +4979 -0
  477. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/lib/index.js +6 -0
  478. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +81 -0
  479. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.i18n.yaml +6 -0
  480. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.md +159 -0
  481. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/README.zh.md +159 -0
  482. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/lib/index.js +550 -0
  483. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +59 -0
  484. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  485. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +9 -9
  486. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  487. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
  488. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  489. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  490. package/node_modules/@deepseek-ai/dsh-goal/package.json +22 -22
  491. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  492. package/node_modules/@deepseek-ai/dsh-headless/cordis.patch.yml +3 -0
  493. package/node_modules/@deepseek-ai/dsh-headless/package.json +17 -17
  494. package/node_modules/@deepseek-ai/dsh-hmr/README.i18n.yaml +6 -0
  495. package/node_modules/@deepseek-ai/dsh-hmr/README.md +95 -0
  496. package/node_modules/@deepseek-ai/dsh-hmr/README.zh.md +95 -0
  497. package/node_modules/@deepseek-ai/dsh-hmr/lib/index.js +672 -0
  498. package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/package.json +18 -21
  499. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  500. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  501. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +20 -20
  502. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +18 -18
  503. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  504. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +13 -13
  505. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  506. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
  507. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  508. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  509. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/index.js +40 -24
  510. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.host.js +2 -1
  511. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/typert.remote-client.js +2 -1
  512. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/lib/types/index.js +36 -24
  513. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +7 -7
  514. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  515. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +2 -2
  516. package/node_modules/@deepseek-ai/dsh-invariants/package.json +1 -1
  517. package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
  518. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  519. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  520. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  521. package/node_modules/@deepseek-ai/dsh-llm/README.i18n.yaml +2 -2
  522. package/node_modules/@deepseek-ai/dsh-llm/README.md +1 -1
  523. package/node_modules/@deepseek-ai/dsh-llm/README.zh.md +1 -1
  524. package/node_modules/@deepseek-ai/dsh-llm/lib/index.js +2 -1
  525. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.host.js +3 -2
  526. package/node_modules/@deepseek-ai/dsh-llm/lib/typert.remote-client.js +2 -1
  527. package/node_modules/@deepseek-ai/dsh-llm/lib/types/index.js +1 -0
  528. package/node_modules/@deepseek-ai/dsh-llm/package.json +8 -8
  529. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.i18n.yaml +2 -2
  530. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.md +4 -4
  531. package/node_modules/@deepseek-ai/dsh-llm-deepseek/README.zh.md +4 -4
  532. package/node_modules/@deepseek-ai/dsh-llm-deepseek/lib/index.js +33 -37
  533. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  534. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  535. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +3 -2
  536. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +3 -2
  537. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +47 -3
  538. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
  539. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +20 -20
  540. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  541. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  542. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  543. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  544. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.i18n.yaml +6 -0
  545. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.md +105 -0
  546. package/node_modules/@deepseek-ai/dsh-office-to-pdf/README.zh.md +105 -0
  547. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/index.js +659 -0
  548. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.host.js +193 -0
  549. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/typert.remote-client.js +94 -0
  550. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/errors.js +15 -0
  551. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/identity.js +23 -0
  552. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/index.js +287 -0
  553. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/output.js +47 -0
  554. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/queue.js +246 -0
  555. package/node_modules/@deepseek-ai/dsh-office-to-pdf/lib/types/types.js +2 -0
  556. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +64 -0
  557. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  558. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  559. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +21 -21
  560. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  561. package/node_modules/@deepseek-ai/dsh-plan-mode/README.i18n.yaml +2 -2
  562. package/node_modules/@deepseek-ai/dsh-plan-mode/README.md +2 -0
  563. package/node_modules/@deepseek-ai/dsh-plan-mode/README.zh.md +2 -0
  564. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/index.js +2 -1
  565. package/node_modules/@deepseek-ai/dsh-plan-mode/lib/types/index.js +1 -1
  566. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  567. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +6 -0
  568. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +133 -0
  569. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +133 -0
  570. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +1174 -0
  571. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +604 -0
  572. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +393 -0
  573. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/build-approval.js +56 -0
  574. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +8 -0
  575. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/index.js +623 -0
  576. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-failure.js +33 -0
  577. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/install-spec.js +73 -0
  578. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +177 -0
  579. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/patch.js +50 -0
  580. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +74 -0
  581. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/types.js +2 -0
  582. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +102 -0
  583. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  584. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  585. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.i18n.yaml +2 -2
  586. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.md +1 -1
  587. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/README.zh.md +1 -1
  588. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/lib/index.js +1 -1
  589. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  590. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +10 -10
  591. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  592. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/lib/index.js +2 -1
  593. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  594. package/node_modules/@deepseek-ai/dsh-sandbox/README.i18n.yaml +2 -2
  595. package/node_modules/@deepseek-ai/dsh-sandbox/README.md +2 -2
  596. package/node_modules/@deepseek-ai/dsh-sandbox/README.zh.md +2 -2
  597. package/node_modules/@deepseek-ai/dsh-sandbox/lib/index.js +6 -9
  598. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  599. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  600. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +13 -13
  601. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +8 -8
  602. package/node_modules/@deepseek-ai/dsh-schedule/package.json +20 -20
  603. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  604. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +2 -2
  605. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +1 -1
  606. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +1 -1
  607. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +3 -0
  608. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +3 -3
  609. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +21 -21
  610. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +28 -28
  611. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  612. package/node_modules/@deepseek-ai/dsh-session/lib/index.js +2 -1
  613. package/node_modules/@deepseek-ai/dsh-session/lib/types/known-event-types.js +1 -0
  614. package/node_modules/@deepseek-ai/dsh-session/package.json +9 -9
  615. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  616. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  617. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +8 -8
  618. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  619. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  620. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  621. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +14 -14
  622. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +19 -17
  623. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  624. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/lib/worker.cjs +7 -4
  625. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
  626. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  627. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  628. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  629. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  630. package/node_modules/@deepseek-ai/dsh-session-reference/README.i18n.yaml +2 -2
  631. package/node_modules/@deepseek-ai/dsh-session-reference/README.md +1 -1
  632. package/node_modules/@deepseek-ai/dsh-session-reference/README.zh.md +1 -1
  633. package/node_modules/@deepseek-ai/dsh-session-reference/lib/index.js +20 -16
  634. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.host.js +4 -3
  635. package/node_modules/@deepseek-ai/dsh-session-reference/lib/typert.remote-client.js +2 -1
  636. package/node_modules/@deepseek-ai/dsh-session-reference/lib/types/index.js +30 -23
  637. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +34 -32
  638. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  639. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  640. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +19 -19
  641. package/node_modules/@deepseek-ai/dsh-session-title/package.json +16 -16
  642. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +12 -12
  643. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  644. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  645. package/node_modules/@deepseek-ai/dsh-settings/package.json +8 -8
  646. package/node_modules/@deepseek-ai/dsh-settings-file/package.json +8 -8
  647. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  648. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +9 -9
  649. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  650. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  651. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  652. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  653. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  654. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +18 -18
  655. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  656. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +5 -5
  657. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  658. package/node_modules/@deepseek-ai/dsh-subagent/README.i18n.yaml +2 -2
  659. package/node_modules/@deepseek-ai/dsh-subagent/README.md +12 -0
  660. package/node_modules/@deepseek-ai/dsh-subagent/README.zh.md +12 -0
  661. package/node_modules/@deepseek-ai/dsh-subagent/lib/index.js +116 -50
  662. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.host.js +11 -4
  663. package/node_modules/@deepseek-ai/dsh-subagent/lib/typert.remote-client.js +3 -3
  664. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation-activation.js +41 -4
  665. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/continuation.js +2 -2
  666. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/control.js +1 -0
  667. package/node_modules/@deepseek-ai/dsh-subagent/lib/types/index.js +29 -3
  668. package/node_modules/@deepseek-ai/dsh-subagent/package.json +54 -48
  669. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  670. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +14 -14
  671. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +22 -22
  672. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +16 -16
  673. package/node_modules/@deepseek-ai/dsh-subprocess/README.i18n.yaml +2 -2
  674. package/node_modules/@deepseek-ai/dsh-subprocess/README.md +2 -0
  675. package/node_modules/@deepseek-ai/dsh-subprocess/README.zh.md +2 -0
  676. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  677. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +2 -2
  678. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +7 -0
  679. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +7 -0
  680. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +267 -20
  681. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner-launch-DGV26RBf.js +1525 -0
  682. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/runner.js +1 -1
  683. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
  684. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +7 -7
  685. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  686. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +17 -17
  687. package/node_modules/@deepseek-ai/dsh-time-context/package.json +20 -20
  688. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  689. package/node_modules/@deepseek-ai/dsh-tmux-context/lib/index.js +2 -1
  690. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  691. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  692. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
  693. package/node_modules/@deepseek-ai/dsh-tool-bash/README.i18n.yaml +2 -2
  694. package/node_modules/@deepseek-ai/dsh-tool-bash/README.md +1 -1
  695. package/node_modules/@deepseek-ai/dsh-tool-bash/README.zh.md +1 -1
  696. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +29 -29
  697. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +17 -17
  698. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  699. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.i18n.yaml +2 -2
  700. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.md +11 -131
  701. package/node_modules/@deepseek-ai/dsh-tool-cordis/README.zh.md +15 -135
  702. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/index.js +688 -743
  703. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -16
  704. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +10 -6
  705. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +27 -27
  706. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +20 -20
  707. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  708. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  709. package/node_modules/@deepseek-ai/dsh-tool-present/README.i18n.yaml +1 -1
  710. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +18 -18
  711. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +28 -28
  712. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +18 -18
  713. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  714. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +12 -12
  715. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +17 -17
  716. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.i18n.yaml +2 -2
  717. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +2 -2
  718. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +2 -2
  719. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +3 -3
  720. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +28 -28
  721. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  722. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +15 -15
  723. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +18 -18
  724. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +18 -18
  725. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  726. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +2 -2
  727. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +30 -18
  728. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +30 -18
  729. package/node_modules/@deepseek-ai/dsh-tui-app/cordis.patch.yml +9 -0
  730. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +1510 -181
  731. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +68 -62
  732. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +4 -4
  733. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.i18n.yaml +2 -2
  734. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.md +3 -1
  735. package/node_modules/@deepseek-ai/dsh-typert-protocol/README.zh.md +3 -1
  736. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/index.js +32 -1
  737. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/index.js +1 -0
  738. package/node_modules/@deepseek-ai/dsh-typert-protocol/lib/types/owned-value.js +32 -0
  739. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +1 -1
  740. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  741. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +15 -15
  742. package/node_modules/@deepseek-ai/dsh-user-questions/README.i18n.yaml +2 -2
  743. package/node_modules/@deepseek-ai/dsh-user-questions/README.md +2 -0
  744. package/node_modules/@deepseek-ai/dsh-user-questions/README.zh.md +2 -0
  745. package/node_modules/@deepseek-ai/dsh-user-questions/lib/index.js +2 -1
  746. package/node_modules/@deepseek-ai/dsh-user-questions/lib/types/plan-review.js +5 -1
  747. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +7 -7
  748. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  749. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  750. package/node_modules/@deepseek-ai/dsh-util-values/README.i18n.yaml +2 -2
  751. package/node_modules/@deepseek-ai/dsh-util-values/README.md +6 -3
  752. package/node_modules/@deepseek-ai/dsh-util-values/README.zh.md +6 -3
  753. package/node_modules/@deepseek-ai/dsh-util-values/lib/index.js +62 -1
  754. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  755. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  756. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  757. package/node_modules/@deepseek-ai/dsh-web-app/README.i18n.yaml +2 -2
  758. package/node_modules/@deepseek-ai/dsh-web-app/README.md +1 -1
  759. package/node_modules/@deepseek-ai/dsh-web-app/README.zh.md +1 -1
  760. package/node_modules/@deepseek-ai/dsh-web-app/cordis.patch.yml +35 -12
  761. package/node_modules/@deepseek-ai/dsh-web-app/package.json +98 -86
  762. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  763. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-8VXBH-f-.js +127 -0
  764. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-lP1BfJ4l.css +1 -0
  765. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/index.html +2 -2
  766. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +9 -6
  767. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
  768. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  769. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  770. package/node_modules/@deepseek-ai/dsh-webhook/package.json +21 -21
  771. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +10 -10
  772. package/node_modules/@deepseek-ai/dsh-win32-process/README.i18n.yaml +2 -2
  773. package/node_modules/@deepseek-ai/dsh-win32-process/README.md +2 -0
  774. package/node_modules/@deepseek-ai/dsh-win32-process/README.zh.md +2 -0
  775. package/node_modules/@deepseek-ai/dsh-win32-process/lib/index.js +7 -4
  776. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
  777. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  778. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +33 -33
  779. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  780. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.i18n.yaml +6 -0
  781. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.md +108 -0
  782. package/node_modules/@deepseek-ai/dsh-workspace-changes/README.zh.md +108 -0
  783. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/index.js +1106 -0
  784. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/capture.js +107 -0
  785. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/compare.js +56 -0
  786. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/git.js +224 -0
  787. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/index.js +139 -0
  788. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/numstat.js +45 -0
  789. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/paths.js +106 -0
  790. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/recorder.js +333 -0
  791. package/node_modules/@deepseek-ai/dsh-workspace-changes/lib/types/types.js +2 -0
  792. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +56 -0
  793. package/node_modules/@deepseek-ai/libreoffice-kit/LICENSE +373 -0
  794. package/node_modules/@deepseek-ai/libreoffice-kit/NOTICE +26 -0
  795. package/node_modules/@deepseek-ai/libreoffice-kit/README.md +73 -0
  796. package/node_modules/@deepseek-ai/libreoffice-kit/README.zh.md +73 -0
  797. package/node_modules/@deepseek-ai/libreoffice-kit/lib/index.js +924 -0
  798. package/node_modules/@deepseek-ai/libreoffice-kit/lib/worker.js +800 -0
  799. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/CHANGELOG.md +115 -0
  800. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/LICENSE +21 -0
  801. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/README.md +558 -0
  802. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/browser.js +2665 -0
  803. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/esm/index.mjs +2679 -0
  804. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/browser.cjs +2688 -0
  805. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/index.cjs +2668 -0
  806. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node-worker.cjs +32 -0
  807. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/node.cjs +2700 -0
  808. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/lib/worker.cjs +20 -0
  809. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/package.json +127 -0
  810. package/node_modules/@deepseek-ai/libreoffice-kit/node_modules/fflate/umd/index.js +1 -0
  811. package/node_modules/@deepseek-ai/libreoffice-kit/package.json +39 -0
  812. package/node_modules/@sec-ant/readable-stream/LICENSE +21 -0
  813. package/node_modules/@sec-ant/readable-stream/README.md +230 -0
  814. package/node_modules/@sec-ant/readable-stream/dist/index/asyncIterator.js +5 -0
  815. package/node_modules/@sec-ant/readable-stream/dist/index/fromAnyIterable.js +5 -0
  816. package/node_modules/@sec-ant/readable-stream/dist/index/index.js +8 -0
  817. package/node_modules/@sec-ant/readable-stream/dist/polyfill/asyncIterator.js +3 -0
  818. package/node_modules/@sec-ant/readable-stream/dist/polyfill/fromAnyIterable.js +2 -0
  819. package/node_modules/@sec-ant/readable-stream/dist/polyfill/index.js +4 -0
  820. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/asyncIterator.js +89 -0
  821. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/fromAnyIterable.js +34 -0
  822. package/node_modules/@sec-ant/readable-stream/dist/ponyfill/index.js +6 -0
  823. package/node_modules/@sec-ant/readable-stream/package.json +73 -0
  824. package/node_modules/@sindresorhus/merge-streams/index.js +265 -0
  825. package/node_modules/@sindresorhus/merge-streams/license +9 -0
  826. package/node_modules/@sindresorhus/merge-streams/package.json +46 -0
  827. package/node_modules/@sindresorhus/merge-streams/readme.md +53 -0
  828. package/node_modules/@swc/helpers/LICENSE +201 -0
  829. package/node_modules/@swc/helpers/_/_apply_decorated_descriptor/package.json +4 -0
  830. package/node_modules/@swc/helpers/_/_apply_decs_2203_r/package.json +4 -0
  831. package/node_modules/@swc/helpers/_/_apply_decs_2311/package.json +4 -0
  832. package/node_modules/@swc/helpers/_/_array_like_to_array/package.json +4 -0
  833. package/node_modules/@swc/helpers/_/_array_with_holes/package.json +4 -0
  834. package/node_modules/@swc/helpers/_/_array_without_holes/package.json +4 -0
  835. package/node_modules/@swc/helpers/_/_assert_this_initialized/package.json +4 -0
  836. package/node_modules/@swc/helpers/_/_async_generator/package.json +4 -0
  837. package/node_modules/@swc/helpers/_/_async_generator_delegate/package.json +4 -0
  838. package/node_modules/@swc/helpers/_/_async_iterator/package.json +4 -0
  839. package/node_modules/@swc/helpers/_/_async_to_generator/package.json +4 -0
  840. package/node_modules/@swc/helpers/_/_await_async_generator/package.json +4 -0
  841. package/node_modules/@swc/helpers/_/_await_value/package.json +4 -0
  842. package/node_modules/@swc/helpers/_/_call_super/package.json +4 -0
  843. package/node_modules/@swc/helpers/_/_check_private_redeclaration/package.json +4 -0
  844. package/node_modules/@swc/helpers/_/_class_apply_descriptor_destructure/package.json +4 -0
  845. package/node_modules/@swc/helpers/_/_class_apply_descriptor_get/package.json +4 -0
  846. package/node_modules/@swc/helpers/_/_class_apply_descriptor_set/package.json +4 -0
  847. package/node_modules/@swc/helpers/_/_class_apply_descriptor_update/package.json +4 -0
  848. package/node_modules/@swc/helpers/_/_class_call_check/package.json +4 -0
  849. package/node_modules/@swc/helpers/_/_class_check_private_static_access/package.json +4 -0
  850. package/node_modules/@swc/helpers/_/_class_check_private_static_field_descriptor/package.json +4 -0
  851. package/node_modules/@swc/helpers/_/_class_extract_field_descriptor/package.json +4 -0
  852. package/node_modules/@swc/helpers/_/_class_name_tdz_error/package.json +4 -0
  853. package/node_modules/@swc/helpers/_/_class_private_field_destructure/package.json +4 -0
  854. package/node_modules/@swc/helpers/_/_class_private_field_get/package.json +4 -0
  855. package/node_modules/@swc/helpers/_/_class_private_field_init/package.json +4 -0
  856. package/node_modules/@swc/helpers/_/_class_private_field_loose_base/package.json +4 -0
  857. package/node_modules/@swc/helpers/_/_class_private_field_loose_key/package.json +4 -0
  858. package/node_modules/@swc/helpers/_/_class_private_field_set/package.json +4 -0
  859. package/node_modules/@swc/helpers/_/_class_private_field_update/package.json +4 -0
  860. package/node_modules/@swc/helpers/_/_class_private_method_get/package.json +4 -0
  861. package/node_modules/@swc/helpers/_/_class_private_method_init/package.json +4 -0
  862. package/node_modules/@swc/helpers/_/_class_private_method_set/package.json +4 -0
  863. package/node_modules/@swc/helpers/_/_class_static_private_field_destructure/package.json +4 -0
  864. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_get/package.json +4 -0
  865. package/node_modules/@swc/helpers/_/_class_static_private_field_spec_set/package.json +4 -0
  866. package/node_modules/@swc/helpers/_/_class_static_private_field_update/package.json +4 -0
  867. package/node_modules/@swc/helpers/_/_class_static_private_method_get/package.json +4 -0
  868. package/node_modules/@swc/helpers/_/_construct/package.json +4 -0
  869. package/node_modules/@swc/helpers/_/_create_class/package.json +4 -0
  870. package/node_modules/@swc/helpers/_/_create_for_of_iterator_helper_loose/package.json +4 -0
  871. package/node_modules/@swc/helpers/_/_create_super/package.json +4 -0
  872. package/node_modules/@swc/helpers/_/_decorate/package.json +4 -0
  873. package/node_modules/@swc/helpers/_/_defaults/package.json +4 -0
  874. package/node_modules/@swc/helpers/_/_define_enumerable_properties/package.json +4 -0
  875. package/node_modules/@swc/helpers/_/_define_property/package.json +4 -0
  876. package/node_modules/@swc/helpers/_/_dispose/package.json +4 -0
  877. package/node_modules/@swc/helpers/_/_export_star/package.json +4 -0
  878. package/node_modules/@swc/helpers/_/_extends/package.json +4 -0
  879. package/node_modules/@swc/helpers/_/_get/package.json +4 -0
  880. package/node_modules/@swc/helpers/_/_get_prototype_of/package.json +4 -0
  881. package/node_modules/@swc/helpers/_/_identity/package.json +4 -0
  882. package/node_modules/@swc/helpers/_/_inherits/package.json +4 -0
  883. package/node_modules/@swc/helpers/_/_inherits_loose/package.json +4 -0
  884. package/node_modules/@swc/helpers/_/_initializer_define_property/package.json +4 -0
  885. package/node_modules/@swc/helpers/_/_initializer_warning_helper/package.json +4 -0
  886. package/node_modules/@swc/helpers/_/_instanceof/package.json +4 -0
  887. package/node_modules/@swc/helpers/_/_interop_require_default/package.json +4 -0
  888. package/node_modules/@swc/helpers/_/_interop_require_wildcard/package.json +4 -0
  889. package/node_modules/@swc/helpers/_/_is_native_function/package.json +4 -0
  890. package/node_modules/@swc/helpers/_/_is_native_reflect_construct/package.json +4 -0
  891. package/node_modules/@swc/helpers/_/_iterable_to_array/package.json +4 -0
  892. package/node_modules/@swc/helpers/_/_iterable_to_array_limit/package.json +4 -0
  893. package/node_modules/@swc/helpers/_/_iterable_to_array_limit_loose/package.json +4 -0
  894. package/node_modules/@swc/helpers/_/_jsx/package.json +4 -0
  895. package/node_modules/@swc/helpers/_/_new_arrow_check/package.json +4 -0
  896. package/node_modules/@swc/helpers/_/_non_iterable_rest/package.json +4 -0
  897. package/node_modules/@swc/helpers/_/_non_iterable_spread/package.json +4 -0
  898. package/node_modules/@swc/helpers/_/_object_destructuring_empty/package.json +4 -0
  899. package/node_modules/@swc/helpers/_/_object_spread/package.json +4 -0
  900. package/node_modules/@swc/helpers/_/_object_spread_props/package.json +4 -0
  901. package/node_modules/@swc/helpers/_/_object_without_properties/package.json +4 -0
  902. package/node_modules/@swc/helpers/_/_object_without_properties_loose/package.json +4 -0
  903. package/node_modules/@swc/helpers/_/_overload_yield/package.json +4 -0
  904. package/node_modules/@swc/helpers/_/_possible_constructor_return/package.json +4 -0
  905. package/node_modules/@swc/helpers/_/_read_only_error/package.json +4 -0
  906. package/node_modules/@swc/helpers/_/_set/package.json +4 -0
  907. package/node_modules/@swc/helpers/_/_set_prototype_of/package.json +4 -0
  908. package/node_modules/@swc/helpers/_/_skip_first_generator_next/package.json +4 -0
  909. package/node_modules/@swc/helpers/_/_sliced_to_array/package.json +4 -0
  910. package/node_modules/@swc/helpers/_/_sliced_to_array_loose/package.json +4 -0
  911. package/node_modules/@swc/helpers/_/_super_prop_base/package.json +4 -0
  912. package/node_modules/@swc/helpers/_/_tagged_template_literal/package.json +4 -0
  913. package/node_modules/@swc/helpers/_/_tagged_template_literal_loose/package.json +4 -0
  914. package/node_modules/@swc/helpers/_/_throw/package.json +4 -0
  915. package/node_modules/@swc/helpers/_/_to_array/package.json +4 -0
  916. package/node_modules/@swc/helpers/_/_to_consumable_array/package.json +4 -0
  917. package/node_modules/@swc/helpers/_/_to_primitive/package.json +4 -0
  918. package/node_modules/@swc/helpers/_/_to_property_key/package.json +4 -0
  919. package/node_modules/@swc/helpers/_/_ts_add_disposable_resource/package.json +4 -0
  920. package/node_modules/@swc/helpers/_/_ts_decorate/package.json +4 -0
  921. package/node_modules/@swc/helpers/_/_ts_dispose_resources/package.json +4 -0
  922. package/node_modules/@swc/helpers/_/_ts_generator/package.json +4 -0
  923. package/node_modules/@swc/helpers/_/_ts_metadata/package.json +4 -0
  924. package/node_modules/@swc/helpers/_/_ts_param/package.json +4 -0
  925. package/node_modules/@swc/helpers/_/_ts_rewrite_relative_import_extension/package.json +4 -0
  926. package/node_modules/@swc/helpers/_/_ts_values/package.json +4 -0
  927. package/node_modules/@swc/helpers/_/_type_of/package.json +4 -0
  928. package/node_modules/@swc/helpers/_/_unsupported_iterable_to_array/package.json +4 -0
  929. package/node_modules/@swc/helpers/_/_update/package.json +4 -0
  930. package/node_modules/@swc/helpers/_/_using/package.json +4 -0
  931. package/node_modules/@swc/helpers/_/_using_ctx/package.json +4 -0
  932. package/node_modules/@swc/helpers/_/_wrap_async_generator/package.json +4 -0
  933. package/node_modules/@swc/helpers/_/_wrap_native_super/package.json +4 -0
  934. package/node_modules/@swc/helpers/_/_wrap_reg_exp/package.json +4 -0
  935. package/node_modules/@swc/helpers/_/_write_only_error/package.json +4 -0
  936. package/node_modules/@swc/helpers/_/index/package.json +4 -0
  937. package/node_modules/@swc/helpers/cjs/_apply_decorated_descriptor.cjs +35 -0
  938. package/node_modules/@swc/helpers/cjs/_apply_decs_2203_r.cjs +574 -0
  939. package/node_modules/@swc/helpers/cjs/_apply_decs_2311.cjs +346 -0
  940. package/node_modules/@swc/helpers/cjs/_array_like_to_array.cjs +10 -0
  941. package/node_modules/@swc/helpers/cjs/_array_with_holes.cjs +6 -0
  942. package/node_modules/@swc/helpers/cjs/_array_without_holes.cjs +8 -0
  943. package/node_modules/@swc/helpers/cjs/_assert_this_initialized.cjs +8 -0
  944. package/node_modules/@swc/helpers/cjs/_async_generator.cjs +76 -0
  945. package/node_modules/@swc/helpers/cjs/_async_generator_delegate.cjs +53 -0
  946. package/node_modules/@swc/helpers/cjs/_async_iterator.cjs +46 -0
  947. package/node_modules/@swc/helpers/cjs/_async_to_generator.cjs +33 -0
  948. package/node_modules/@swc/helpers/cjs/_await_async_generator.cjs +8 -0
  949. package/node_modules/@swc/helpers/cjs/_await_value.cjs +6 -0
  950. package/node_modules/@swc/helpers/cjs/_call_super.cjs +19 -0
  951. package/node_modules/@swc/helpers/cjs/_check_private_redeclaration.cjs +8 -0
  952. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_destructure.cjs +25 -0
  953. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_get.cjs +8 -0
  954. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_set.cjs +15 -0
  955. package/node_modules/@swc/helpers/cjs/_class_apply_descriptor_update.cjs +30 -0
  956. package/node_modules/@swc/helpers/cjs/_class_call_check.cjs +6 -0
  957. package/node_modules/@swc/helpers/cjs/_class_check_private_static_access.cjs +6 -0
  958. package/node_modules/@swc/helpers/cjs/_class_check_private_static_field_descriptor.cjs +8 -0
  959. package/node_modules/@swc/helpers/cjs/_class_extract_field_descriptor.cjs +8 -0
  960. package/node_modules/@swc/helpers/cjs/_class_name_tdz_error.cjs +6 -0
  961. package/node_modules/@swc/helpers/cjs/_class_private_field_destructure.cjs +10 -0
  962. package/node_modules/@swc/helpers/cjs/_class_private_field_get.cjs +10 -0
  963. package/node_modules/@swc/helpers/cjs/_class_private_field_init.cjs +9 -0
  964. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_base.cjs +10 -0
  965. package/node_modules/@swc/helpers/cjs/_class_private_field_loose_key.cjs +8 -0
  966. package/node_modules/@swc/helpers/cjs/_class_private_field_set.cjs +11 -0
  967. package/node_modules/@swc/helpers/cjs/_class_private_field_update.cjs +10 -0
  968. package/node_modules/@swc/helpers/cjs/_class_private_method_get.cjs +8 -0
  969. package/node_modules/@swc/helpers/cjs/_class_private_method_init.cjs +9 -0
  970. package/node_modules/@swc/helpers/cjs/_class_private_method_set.cjs +6 -0
  971. package/node_modules/@swc/helpers/cjs/_class_static_private_field_destructure.cjs +13 -0
  972. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_get.cjs +13 -0
  973. package/node_modules/@swc/helpers/cjs/_class_static_private_field_spec_set.cjs +14 -0
  974. package/node_modules/@swc/helpers/cjs/_class_static_private_field_update.cjs +13 -0
  975. package/node_modules/@swc/helpers/cjs/_class_static_private_method_get.cjs +10 -0
  976. package/node_modules/@swc/helpers/cjs/_construct.cjs +22 -0
  977. package/node_modules/@swc/helpers/cjs/_create_class.cjs +20 -0
  978. package/node_modules/@swc/helpers/cjs/_create_for_of_iterator_helper_loose.cjs +24 -0
  979. package/node_modules/@swc/helpers/cjs/_create_super.cjs +23 -0
  980. package/node_modules/@swc/helpers/cjs/_decorate.cjs +270 -0
  981. package/node_modules/@swc/helpers/cjs/_defaults.cjs +15 -0
  982. package/node_modules/@swc/helpers/cjs/_define_enumerable_properties.cjs +26 -0
  983. package/node_modules/@swc/helpers/cjs/_define_property.cjs +10 -0
  984. package/node_modules/@swc/helpers/cjs/_dispose.cjs +43 -0
  985. package/node_modules/@swc/helpers/cjs/_export_star.cjs +17 -0
  986. package/node_modules/@swc/helpers/cjs/_extends.cjs +15 -0
  987. package/node_modules/@swc/helpers/cjs/_get.cjs +23 -0
  988. package/node_modules/@swc/helpers/cjs/_get_prototype_of.cjs +10 -0
  989. package/node_modules/@swc/helpers/cjs/_identity.cjs +7 -0
  990. package/node_modules/@swc/helpers/cjs/_inherits.cjs +14 -0
  991. package/node_modules/@swc/helpers/cjs/_inherits_loose.cjs +8 -0
  992. package/node_modules/@swc/helpers/cjs/_initializer_define_property.cjs +13 -0
  993. package/node_modules/@swc/helpers/cjs/_initializer_warning_helper.cjs +11 -0
  994. package/node_modules/@swc/helpers/cjs/_instanceof.cjs +10 -0
  995. package/node_modules/@swc/helpers/cjs/_interop_require_default.cjs +6 -0
  996. package/node_modules/@swc/helpers/cjs/_interop_require_wildcard.cjs +38 -0
  997. package/node_modules/@swc/helpers/cjs/_is_native_function.cjs +6 -0
  998. package/node_modules/@swc/helpers/cjs/_is_native_reflect_construct.cjs +18 -0
  999. package/node_modules/@swc/helpers/cjs/_iterable_to_array.cjs +8 -0
  1000. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit.cjs +31 -0
  1001. package/node_modules/@swc/helpers/cjs/_iterable_to_array_limit_loose.cjs +17 -0
  1002. package/node_modules/@swc/helpers/cjs/_jsx.cjs +28 -0
  1003. package/node_modules/@swc/helpers/cjs/_new_arrow_check.cjs +6 -0
  1004. package/node_modules/@swc/helpers/cjs/_non_iterable_rest.cjs +6 -0
  1005. package/node_modules/@swc/helpers/cjs/_non_iterable_spread.cjs +6 -0
  1006. package/node_modules/@swc/helpers/cjs/_object_destructuring_empty.cjs +8 -0
  1007. package/node_modules/@swc/helpers/cjs/_object_spread.cjs +25 -0
  1008. package/node_modules/@swc/helpers/cjs/_object_spread_props.cjs +30 -0
  1009. package/node_modules/@swc/helpers/cjs/_object_without_properties.cjs +35 -0
  1010. package/node_modules/@swc/helpers/cjs/_object_without_properties_loose.cjs +16 -0
  1011. package/node_modules/@swc/helpers/cjs/_overload_yield.cjs +8 -0
  1012. package/node_modules/@swc/helpers/cjs/_possible_constructor_return.cjs +11 -0
  1013. package/node_modules/@swc/helpers/cjs/_read_only_error.cjs +6 -0
  1014. package/node_modules/@swc/helpers/cjs/_set.cjs +44 -0
  1015. package/node_modules/@swc/helpers/cjs/_set_prototype_of.cjs +12 -0
  1016. package/node_modules/@swc/helpers/cjs/_skip_first_generator_next.cjs +11 -0
  1017. package/node_modules/@swc/helpers/cjs/_sliced_to_array.cjs +11 -0
  1018. package/node_modules/@swc/helpers/cjs/_sliced_to_array_loose.cjs +11 -0
  1019. package/node_modules/@swc/helpers/cjs/_super_prop_base.cjs +13 -0
  1020. package/node_modules/@swc/helpers/cjs/_tagged_template_literal.cjs +8 -0
  1021. package/node_modules/@swc/helpers/cjs/_tagged_template_literal_loose.cjs +10 -0
  1022. package/node_modules/@swc/helpers/cjs/_throw.cjs +6 -0
  1023. package/node_modules/@swc/helpers/cjs/_to_array.cjs +11 -0
  1024. package/node_modules/@swc/helpers/cjs/_to_consumable_array.cjs +11 -0
  1025. package/node_modules/@swc/helpers/cjs/_to_primitive.cjs +18 -0
  1026. package/node_modules/@swc/helpers/cjs/_to_property_key.cjs +11 -0
  1027. package/node_modules/@swc/helpers/cjs/_ts_add_disposable_resource.cjs +3 -0
  1028. package/node_modules/@swc/helpers/cjs/_ts_decorate.cjs +3 -0
  1029. package/node_modules/@swc/helpers/cjs/_ts_dispose_resources.cjs +3 -0
  1030. package/node_modules/@swc/helpers/cjs/_ts_generator.cjs +31 -0
  1031. package/node_modules/@swc/helpers/cjs/_ts_metadata.cjs +3 -0
  1032. package/node_modules/@swc/helpers/cjs/_ts_param.cjs +3 -0
  1033. package/node_modules/@swc/helpers/cjs/_ts_rewrite_relative_import_extension.cjs +3 -0
  1034. package/node_modules/@swc/helpers/cjs/_ts_values.cjs +3 -0
  1035. package/node_modules/@swc/helpers/cjs/_type_of.cjs +8 -0
  1036. package/node_modules/@swc/helpers/cjs/_unsupported_iterable_to_array.cjs +15 -0
  1037. package/node_modules/@swc/helpers/cjs/_update.cjs +16 -0
  1038. package/node_modules/@swc/helpers/cjs/_using.cjs +24 -0
  1039. package/node_modules/@swc/helpers/cjs/_using_ctx.cjs +75 -0
  1040. package/node_modules/@swc/helpers/cjs/_wrap_async_generator.cjs +10 -0
  1041. package/node_modules/@swc/helpers/cjs/_wrap_native_super.cjs +28 -0
  1042. package/node_modules/@swc/helpers/cjs/_wrap_reg_exp.cjs +84 -0
  1043. package/node_modules/@swc/helpers/cjs/_write_only_error.cjs +6 -0
  1044. package/node_modules/@swc/helpers/cjs/index.cjs +439 -0
  1045. package/node_modules/@swc/helpers/esm/_apply_decorated_descriptor.js +33 -0
  1046. package/node_modules/@swc/helpers/esm/_apply_decs_2203_r.js +572 -0
  1047. package/node_modules/@swc/helpers/esm/_apply_decs_2311.js +344 -0
  1048. package/node_modules/@swc/helpers/esm/_array_like_to_array.js +8 -0
  1049. package/node_modules/@swc/helpers/esm/_array_with_holes.js +4 -0
  1050. package/node_modules/@swc/helpers/esm/_array_without_holes.js +6 -0
  1051. package/node_modules/@swc/helpers/esm/_assert_this_initialized.js +6 -0
  1052. package/node_modules/@swc/helpers/esm/_async_generator.js +74 -0
  1053. package/node_modules/@swc/helpers/esm/_async_generator_delegate.js +51 -0
  1054. package/node_modules/@swc/helpers/esm/_async_iterator.js +44 -0
  1055. package/node_modules/@swc/helpers/esm/_async_to_generator.js +31 -0
  1056. package/node_modules/@swc/helpers/esm/_await_async_generator.js +6 -0
  1057. package/node_modules/@swc/helpers/esm/_await_value.js +4 -0
  1058. package/node_modules/@swc/helpers/esm/_call_super.js +17 -0
  1059. package/node_modules/@swc/helpers/esm/_check_private_redeclaration.js +6 -0
  1060. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_destructure.js +23 -0
  1061. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_get.js +6 -0
  1062. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_set.js +13 -0
  1063. package/node_modules/@swc/helpers/esm/_class_apply_descriptor_update.js +28 -0
  1064. package/node_modules/@swc/helpers/esm/_class_call_check.js +4 -0
  1065. package/node_modules/@swc/helpers/esm/_class_check_private_static_access.js +4 -0
  1066. package/node_modules/@swc/helpers/esm/_class_check_private_static_field_descriptor.js +6 -0
  1067. package/node_modules/@swc/helpers/esm/_class_extract_field_descriptor.js +6 -0
  1068. package/node_modules/@swc/helpers/esm/_class_name_tdz_error.js +4 -0
  1069. package/node_modules/@swc/helpers/esm/_class_private_field_destructure.js +8 -0
  1070. package/node_modules/@swc/helpers/esm/_class_private_field_get.js +8 -0
  1071. package/node_modules/@swc/helpers/esm/_class_private_field_init.js +7 -0
  1072. package/node_modules/@swc/helpers/esm/_class_private_field_loose_base.js +8 -0
  1073. package/node_modules/@swc/helpers/esm/_class_private_field_loose_key.js +6 -0
  1074. package/node_modules/@swc/helpers/esm/_class_private_field_set.js +9 -0
  1075. package/node_modules/@swc/helpers/esm/_class_private_field_update.js +8 -0
  1076. package/node_modules/@swc/helpers/esm/_class_private_method_get.js +6 -0
  1077. package/node_modules/@swc/helpers/esm/_class_private_method_init.js +7 -0
  1078. package/node_modules/@swc/helpers/esm/_class_private_method_set.js +4 -0
  1079. package/node_modules/@swc/helpers/esm/_class_static_private_field_destructure.js +11 -0
  1080. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_get.js +11 -0
  1081. package/node_modules/@swc/helpers/esm/_class_static_private_field_spec_set.js +12 -0
  1082. package/node_modules/@swc/helpers/esm/_class_static_private_field_update.js +11 -0
  1083. package/node_modules/@swc/helpers/esm/_class_static_private_method_get.js +8 -0
  1084. package/node_modules/@swc/helpers/esm/_construct.js +20 -0
  1085. package/node_modules/@swc/helpers/esm/_create_class.js +18 -0
  1086. package/node_modules/@swc/helpers/esm/_create_for_of_iterator_helper_loose.js +22 -0
  1087. package/node_modules/@swc/helpers/esm/_create_super.js +21 -0
  1088. package/node_modules/@swc/helpers/esm/_decorate.js +268 -0
  1089. package/node_modules/@swc/helpers/esm/_defaults.js +13 -0
  1090. package/node_modules/@swc/helpers/esm/_define_enumerable_properties.js +24 -0
  1091. package/node_modules/@swc/helpers/esm/_define_property.js +8 -0
  1092. package/node_modules/@swc/helpers/esm/_dispose.js +41 -0
  1093. package/node_modules/@swc/helpers/esm/_export_star.js +15 -0
  1094. package/node_modules/@swc/helpers/esm/_extends.js +13 -0
  1095. package/node_modules/@swc/helpers/esm/_get.js +21 -0
  1096. package/node_modules/@swc/helpers/esm/_get_prototype_of.js +8 -0
  1097. package/node_modules/@swc/helpers/esm/_identity.js +5 -0
  1098. package/node_modules/@swc/helpers/esm/_inherits.js +12 -0
  1099. package/node_modules/@swc/helpers/esm/_inherits_loose.js +6 -0
  1100. package/node_modules/@swc/helpers/esm/_initializer_define_property.js +11 -0
  1101. package/node_modules/@swc/helpers/esm/_initializer_warning_helper.js +9 -0
  1102. package/node_modules/@swc/helpers/esm/_instanceof.js +8 -0
  1103. package/node_modules/@swc/helpers/esm/_interop_require_default.js +4 -0
  1104. package/node_modules/@swc/helpers/esm/_interop_require_wildcard.js +36 -0
  1105. package/node_modules/@swc/helpers/esm/_is_native_function.js +4 -0
  1106. package/node_modules/@swc/helpers/esm/_is_native_reflect_construct.js +16 -0
  1107. package/node_modules/@swc/helpers/esm/_iterable_to_array.js +6 -0
  1108. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit.js +29 -0
  1109. package/node_modules/@swc/helpers/esm/_iterable_to_array_limit_loose.js +15 -0
  1110. package/node_modules/@swc/helpers/esm/_jsx.js +26 -0
  1111. package/node_modules/@swc/helpers/esm/_new_arrow_check.js +4 -0
  1112. package/node_modules/@swc/helpers/esm/_non_iterable_rest.js +4 -0
  1113. package/node_modules/@swc/helpers/esm/_non_iterable_spread.js +4 -0
  1114. package/node_modules/@swc/helpers/esm/_object_destructuring_empty.js +6 -0
  1115. package/node_modules/@swc/helpers/esm/_object_spread.js +23 -0
  1116. package/node_modules/@swc/helpers/esm/_object_spread_props.js +28 -0
  1117. package/node_modules/@swc/helpers/esm/_object_without_properties.js +33 -0
  1118. package/node_modules/@swc/helpers/esm/_object_without_properties_loose.js +14 -0
  1119. package/node_modules/@swc/helpers/esm/_overload_yield.js +6 -0
  1120. package/node_modules/@swc/helpers/esm/_possible_constructor_return.js +9 -0
  1121. package/node_modules/@swc/helpers/esm/_read_only_error.js +4 -0
  1122. package/node_modules/@swc/helpers/esm/_set.js +42 -0
  1123. package/node_modules/@swc/helpers/esm/_set_prototype_of.js +10 -0
  1124. package/node_modules/@swc/helpers/esm/_skip_first_generator_next.js +9 -0
  1125. package/node_modules/@swc/helpers/esm/_sliced_to_array.js +9 -0
  1126. package/node_modules/@swc/helpers/esm/_sliced_to_array_loose.js +9 -0
  1127. package/node_modules/@swc/helpers/esm/_super_prop_base.js +11 -0
  1128. package/node_modules/@swc/helpers/esm/_tagged_template_literal.js +6 -0
  1129. package/node_modules/@swc/helpers/esm/_tagged_template_literal_loose.js +8 -0
  1130. package/node_modules/@swc/helpers/esm/_throw.js +4 -0
  1131. package/node_modules/@swc/helpers/esm/_to_array.js +9 -0
  1132. package/node_modules/@swc/helpers/esm/_to_consumable_array.js +9 -0
  1133. package/node_modules/@swc/helpers/esm/_to_primitive.js +16 -0
  1134. package/node_modules/@swc/helpers/esm/_to_property_key.js +9 -0
  1135. package/node_modules/@swc/helpers/esm/_ts_add_disposable_resource.js +1 -0
  1136. package/node_modules/@swc/helpers/esm/_ts_decorate.js +1 -0
  1137. package/node_modules/@swc/helpers/esm/_ts_dispose_resources.js +1 -0
  1138. package/node_modules/@swc/helpers/esm/_ts_generator.js +29 -0
  1139. package/node_modules/@swc/helpers/esm/_ts_metadata.js +1 -0
  1140. package/node_modules/@swc/helpers/esm/_ts_param.js +1 -0
  1141. package/node_modules/@swc/helpers/esm/_ts_rewrite_relative_import_extension.js +1 -0
  1142. package/node_modules/@swc/helpers/esm/_ts_values.js +1 -0
  1143. package/node_modules/@swc/helpers/esm/_type_of.js +6 -0
  1144. package/node_modules/@swc/helpers/esm/_unsupported_iterable_to_array.js +13 -0
  1145. package/node_modules/@swc/helpers/esm/_update.js +14 -0
  1146. package/node_modules/@swc/helpers/esm/_using.js +22 -0
  1147. package/node_modules/@swc/helpers/esm/_using_ctx.js +73 -0
  1148. package/node_modules/@swc/helpers/esm/_wrap_async_generator.js +8 -0
  1149. package/node_modules/@swc/helpers/esm/_wrap_native_super.js +26 -0
  1150. package/node_modules/@swc/helpers/esm/_wrap_reg_exp.js +82 -0
  1151. package/node_modules/@swc/helpers/esm/_write_only_error.js +4 -0
  1152. package/node_modules/@swc/helpers/esm/index.js +110 -0
  1153. package/node_modules/@swc/helpers/package.json +702 -0
  1154. package/node_modules/@swc/helpers/scripts/ast_grep.js +218 -0
  1155. package/node_modules/@swc/helpers/scripts/build.js +133 -0
  1156. package/node_modules/@swc/helpers/scripts/errors.js +1 -0
  1157. package/node_modules/@swc/helpers/scripts/utils.js +3 -0
  1158. package/node_modules/@swc/helpers/src/_apply_decorated_descriptor.mjs +1 -0
  1159. package/node_modules/@swc/helpers/src/_apply_decs_2203_r.mjs +1 -0
  1160. package/node_modules/@swc/helpers/src/_apply_decs_2311.mjs +1 -0
  1161. package/node_modules/@swc/helpers/src/_array_like_to_array.mjs +1 -0
  1162. package/node_modules/@swc/helpers/src/_array_with_holes.mjs +1 -0
  1163. package/node_modules/@swc/helpers/src/_array_without_holes.mjs +1 -0
  1164. package/node_modules/@swc/helpers/src/_assert_this_initialized.mjs +1 -0
  1165. package/node_modules/@swc/helpers/src/_async_generator.mjs +1 -0
  1166. package/node_modules/@swc/helpers/src/_async_generator_delegate.mjs +1 -0
  1167. package/node_modules/@swc/helpers/src/_async_iterator.mjs +1 -0
  1168. package/node_modules/@swc/helpers/src/_async_to_generator.mjs +1 -0
  1169. package/node_modules/@swc/helpers/src/_await_async_generator.mjs +1 -0
  1170. package/node_modules/@swc/helpers/src/_await_value.mjs +1 -0
  1171. package/node_modules/@swc/helpers/src/_call_super.mjs +1 -0
  1172. package/node_modules/@swc/helpers/src/_check_private_redeclaration.mjs +1 -0
  1173. package/node_modules/@swc/helpers/src/_class_apply_descriptor_destructure.mjs +1 -0
  1174. package/node_modules/@swc/helpers/src/_class_apply_descriptor_get.mjs +1 -0
  1175. package/node_modules/@swc/helpers/src/_class_apply_descriptor_set.mjs +1 -0
  1176. package/node_modules/@swc/helpers/src/_class_apply_descriptor_update.mjs +1 -0
  1177. package/node_modules/@swc/helpers/src/_class_call_check.mjs +1 -0
  1178. package/node_modules/@swc/helpers/src/_class_check_private_static_access.mjs +1 -0
  1179. package/node_modules/@swc/helpers/src/_class_check_private_static_field_descriptor.mjs +1 -0
  1180. package/node_modules/@swc/helpers/src/_class_extract_field_descriptor.mjs +1 -0
  1181. package/node_modules/@swc/helpers/src/_class_name_tdz_error.mjs +1 -0
  1182. package/node_modules/@swc/helpers/src/_class_private_field_destructure.mjs +1 -0
  1183. package/node_modules/@swc/helpers/src/_class_private_field_get.mjs +1 -0
  1184. package/node_modules/@swc/helpers/src/_class_private_field_init.mjs +1 -0
  1185. package/node_modules/@swc/helpers/src/_class_private_field_loose_base.mjs +1 -0
  1186. package/node_modules/@swc/helpers/src/_class_private_field_loose_key.mjs +1 -0
  1187. package/node_modules/@swc/helpers/src/_class_private_field_set.mjs +1 -0
  1188. package/node_modules/@swc/helpers/src/_class_private_field_update.mjs +1 -0
  1189. package/node_modules/@swc/helpers/src/_class_private_method_get.mjs +1 -0
  1190. package/node_modules/@swc/helpers/src/_class_private_method_init.mjs +1 -0
  1191. package/node_modules/@swc/helpers/src/_class_private_method_set.mjs +1 -0
  1192. package/node_modules/@swc/helpers/src/_class_static_private_field_destructure.mjs +1 -0
  1193. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_get.mjs +1 -0
  1194. package/node_modules/@swc/helpers/src/_class_static_private_field_spec_set.mjs +1 -0
  1195. package/node_modules/@swc/helpers/src/_class_static_private_field_update.mjs +1 -0
  1196. package/node_modules/@swc/helpers/src/_class_static_private_method_get.mjs +1 -0
  1197. package/node_modules/@swc/helpers/src/_construct.mjs +1 -0
  1198. package/node_modules/@swc/helpers/src/_create_class.mjs +1 -0
  1199. package/node_modules/@swc/helpers/src/_create_for_of_iterator_helper_loose.mjs +1 -0
  1200. package/node_modules/@swc/helpers/src/_create_super.mjs +1 -0
  1201. package/node_modules/@swc/helpers/src/_decorate.mjs +1 -0
  1202. package/node_modules/@swc/helpers/src/_defaults.mjs +1 -0
  1203. package/node_modules/@swc/helpers/src/_define_enumerable_properties.mjs +1 -0
  1204. package/node_modules/@swc/helpers/src/_define_property.mjs +1 -0
  1205. package/node_modules/@swc/helpers/src/_dispose.mjs +1 -0
  1206. package/node_modules/@swc/helpers/src/_export_star.mjs +1 -0
  1207. package/node_modules/@swc/helpers/src/_extends.mjs +1 -0
  1208. package/node_modules/@swc/helpers/src/_get.mjs +1 -0
  1209. package/node_modules/@swc/helpers/src/_get_prototype_of.mjs +1 -0
  1210. package/node_modules/@swc/helpers/src/_identity.mjs +1 -0
  1211. package/node_modules/@swc/helpers/src/_inherits.mjs +1 -0
  1212. package/node_modules/@swc/helpers/src/_inherits_loose.mjs +1 -0
  1213. package/node_modules/@swc/helpers/src/_initializer_define_property.mjs +1 -0
  1214. package/node_modules/@swc/helpers/src/_initializer_warning_helper.mjs +1 -0
  1215. package/node_modules/@swc/helpers/src/_instanceof.mjs +1 -0
  1216. package/node_modules/@swc/helpers/src/_interop_require_default.mjs +1 -0
  1217. package/node_modules/@swc/helpers/src/_interop_require_wildcard.mjs +1 -0
  1218. package/node_modules/@swc/helpers/src/_is_native_function.mjs +1 -0
  1219. package/node_modules/@swc/helpers/src/_is_native_reflect_construct.mjs +1 -0
  1220. package/node_modules/@swc/helpers/src/_iterable_to_array.mjs +1 -0
  1221. package/node_modules/@swc/helpers/src/_iterable_to_array_limit.mjs +1 -0
  1222. package/node_modules/@swc/helpers/src/_iterable_to_array_limit_loose.mjs +1 -0
  1223. package/node_modules/@swc/helpers/src/_jsx.mjs +1 -0
  1224. package/node_modules/@swc/helpers/src/_new_arrow_check.mjs +1 -0
  1225. package/node_modules/@swc/helpers/src/_non_iterable_rest.mjs +1 -0
  1226. package/node_modules/@swc/helpers/src/_non_iterable_spread.mjs +1 -0
  1227. package/node_modules/@swc/helpers/src/_object_destructuring_empty.mjs +1 -0
  1228. package/node_modules/@swc/helpers/src/_object_spread.mjs +1 -0
  1229. package/node_modules/@swc/helpers/src/_object_spread_props.mjs +1 -0
  1230. package/node_modules/@swc/helpers/src/_object_without_properties.mjs +1 -0
  1231. package/node_modules/@swc/helpers/src/_object_without_properties_loose.mjs +1 -0
  1232. package/node_modules/@swc/helpers/src/_overload_yield.mjs +1 -0
  1233. package/node_modules/@swc/helpers/src/_possible_constructor_return.mjs +1 -0
  1234. package/node_modules/@swc/helpers/src/_read_only_error.mjs +1 -0
  1235. package/node_modules/@swc/helpers/src/_set.mjs +1 -0
  1236. package/node_modules/@swc/helpers/src/_set_prototype_of.mjs +1 -0
  1237. package/node_modules/@swc/helpers/src/_skip_first_generator_next.mjs +1 -0
  1238. package/node_modules/@swc/helpers/src/_sliced_to_array.mjs +1 -0
  1239. package/node_modules/@swc/helpers/src/_sliced_to_array_loose.mjs +1 -0
  1240. package/node_modules/@swc/helpers/src/_super_prop_base.mjs +1 -0
  1241. package/node_modules/@swc/helpers/src/_tagged_template_literal.mjs +1 -0
  1242. package/node_modules/@swc/helpers/src/_tagged_template_literal_loose.mjs +1 -0
  1243. package/node_modules/@swc/helpers/src/_throw.mjs +1 -0
  1244. package/node_modules/@swc/helpers/src/_to_array.mjs +1 -0
  1245. package/node_modules/@swc/helpers/src/_to_consumable_array.mjs +1 -0
  1246. package/node_modules/@swc/helpers/src/_to_primitive.mjs +1 -0
  1247. package/node_modules/@swc/helpers/src/_to_property_key.mjs +1 -0
  1248. package/node_modules/@swc/helpers/src/_ts_add_disposable_resource.mjs +1 -0
  1249. package/node_modules/@swc/helpers/src/_ts_decorate.mjs +1 -0
  1250. package/node_modules/@swc/helpers/src/_ts_dispose_resources.mjs +1 -0
  1251. package/node_modules/@swc/helpers/src/_ts_generator.mjs +1 -0
  1252. package/node_modules/@swc/helpers/src/_ts_metadata.mjs +1 -0
  1253. package/node_modules/@swc/helpers/src/_ts_param.mjs +1 -0
  1254. package/node_modules/@swc/helpers/src/_ts_rewrite_relative_import_extension.mjs +1 -0
  1255. package/node_modules/@swc/helpers/src/_ts_values.mjs +1 -0
  1256. package/node_modules/@swc/helpers/src/_type_of.mjs +1 -0
  1257. package/node_modules/@swc/helpers/src/_unsupported_iterable_to_array.mjs +1 -0
  1258. package/node_modules/@swc/helpers/src/_update.mjs +1 -0
  1259. package/node_modules/@swc/helpers/src/_using.mjs +1 -0
  1260. package/node_modules/@swc/helpers/src/_using_ctx.mjs +1 -0
  1261. package/node_modules/@swc/helpers/src/_wrap_async_generator.mjs +1 -0
  1262. package/node_modules/@swc/helpers/src/_wrap_native_super.mjs +1 -0
  1263. package/node_modules/@swc/helpers/src/_wrap_reg_exp.mjs +1 -0
  1264. package/node_modules/@swc/helpers/src/_write_only_error.mjs +1 -0
  1265. package/node_modules/@swc/helpers/src/index.mjs +1 -0
  1266. package/node_modules/brotli/build/encode.js +57 -0
  1267. package/node_modules/brotli/build/mem.js +1 -0
  1268. package/node_modules/brotli/compress.js +43 -0
  1269. package/node_modules/brotli/dec/bit_reader.js +124 -0
  1270. package/node_modules/brotli/dec/context.js +250 -0
  1271. package/node_modules/brotli/dec/decode.js +938 -0
  1272. package/node_modules/brotli/dec/dictionary-browser.js +14 -0
  1273. package/node_modules/brotli/dec/dictionary-data.js +9469 -0
  1274. package/node_modules/brotli/dec/dictionary.bin.js +1 -0
  1275. package/node_modules/brotli/dec/dictionary.js +36 -0
  1276. package/node_modules/brotli/dec/huffman.js +123 -0
  1277. package/node_modules/brotli/dec/prefix.js +60 -0
  1278. package/node_modules/brotli/dec/streams.js +34 -0
  1279. package/node_modules/brotli/dec/transform.js +247 -0
  1280. package/node_modules/brotli/decompress.js +1 -0
  1281. package/node_modules/brotli/enc/pre.js +7 -0
  1282. package/node_modules/brotli/index.js +2 -0
  1283. package/node_modules/brotli/package.json +31 -0
  1284. package/node_modules/brotli/readme.md +61 -0
  1285. package/node_modules/clone/.npmignore +4 -0
  1286. package/node_modules/clone/LICENSE +18 -0
  1287. package/node_modules/clone/README.md +194 -0
  1288. package/node_modules/clone/clone.iml +10 -0
  1289. package/node_modules/clone/clone.js +257 -0
  1290. package/node_modules/clone/package.json +53 -0
  1291. package/node_modules/dfa/README.md +83 -0
  1292. package/node_modules/dfa/compile.js +1834 -0
  1293. package/node_modules/dfa/index.js +91 -0
  1294. package/node_modules/dfa/package.json +38 -0
  1295. package/node_modules/execa/index.js +25 -0
  1296. package/node_modules/execa/lib/arguments/command-file.js +201 -0
  1297. package/node_modules/execa/lib/arguments/command.js +20 -0
  1298. package/node_modules/execa/lib/arguments/cwd.js +39 -0
  1299. package/node_modules/execa/lib/arguments/encoding-option.js +50 -0
  1300. package/node_modules/execa/lib/arguments/escape.js +88 -0
  1301. package/node_modules/execa/lib/arguments/fd-options.js +109 -0
  1302. package/node_modules/execa/lib/arguments/file-url.js +25 -0
  1303. package/node_modules/execa/lib/arguments/options.js +105 -0
  1304. package/node_modules/execa/lib/arguments/shell.js +11 -0
  1305. package/node_modules/execa/lib/arguments/specific.js +112 -0
  1306. package/node_modules/execa/lib/convert/add.js +19 -0
  1307. package/node_modules/execa/lib/convert/concurrent.js +33 -0
  1308. package/node_modules/execa/lib/convert/duplex.js +69 -0
  1309. package/node_modules/execa/lib/convert/iterable.js +34 -0
  1310. package/node_modules/execa/lib/convert/readable.js +129 -0
  1311. package/node_modules/execa/lib/convert/shared.js +46 -0
  1312. package/node_modules/execa/lib/convert/web.js +7 -0
  1313. package/node_modules/execa/lib/convert/writable.js +111 -0
  1314. package/node_modules/execa/lib/io/contents.js +116 -0
  1315. package/node_modules/execa/lib/io/input-sync.js +44 -0
  1316. package/node_modules/execa/lib/io/iterate.js +110 -0
  1317. package/node_modules/execa/lib/io/max-buffer.js +89 -0
  1318. package/node_modules/execa/lib/io/output-async.js +82 -0
  1319. package/node_modules/execa/lib/io/output-sync.js +136 -0
  1320. package/node_modules/execa/lib/io/pipeline.js +48 -0
  1321. package/node_modules/execa/lib/io/strip-newline.js +12 -0
  1322. package/node_modules/execa/lib/ipc/array.js +4 -0
  1323. package/node_modules/execa/lib/ipc/buffer-messages.js +47 -0
  1324. package/node_modules/execa/lib/ipc/forward.js +56 -0
  1325. package/node_modules/execa/lib/ipc/get-each.js +113 -0
  1326. package/node_modules/execa/lib/ipc/get-one.js +92 -0
  1327. package/node_modules/execa/lib/ipc/graceful.js +72 -0
  1328. package/node_modules/execa/lib/ipc/incoming.js +79 -0
  1329. package/node_modules/execa/lib/ipc/ipc-input.js +50 -0
  1330. package/node_modules/execa/lib/ipc/methods.js +50 -0
  1331. package/node_modules/execa/lib/ipc/outgoing.js +53 -0
  1332. package/node_modules/execa/lib/ipc/reference.js +48 -0
  1333. package/node_modules/execa/lib/ipc/send.js +91 -0
  1334. package/node_modules/execa/lib/ipc/strict.js +113 -0
  1335. package/node_modules/execa/lib/ipc/validation.js +111 -0
  1336. package/node_modules/execa/lib/methods/bind.js +23 -0
  1337. package/node_modules/execa/lib/methods/command.js +27 -0
  1338. package/node_modules/execa/lib/methods/create.js +63 -0
  1339. package/node_modules/execa/lib/methods/main-async.js +235 -0
  1340. package/node_modules/execa/lib/methods/main-sync.js +167 -0
  1341. package/node_modules/execa/lib/methods/node.js +63 -0
  1342. package/node_modules/execa/lib/methods/parameters.js +32 -0
  1343. package/node_modules/execa/lib/methods/promise.js +2 -0
  1344. package/node_modules/execa/lib/methods/script.js +22 -0
  1345. package/node_modules/execa/lib/methods/template.js +153 -0
  1346. package/node_modules/execa/lib/pipe/abort.js +20 -0
  1347. package/node_modules/execa/lib/pipe/pipe-arguments.js +91 -0
  1348. package/node_modules/execa/lib/pipe/sequence.js +24 -0
  1349. package/node_modules/execa/lib/pipe/setup.js +230 -0
  1350. package/node_modules/execa/lib/pipe/streaming.js +51 -0
  1351. package/node_modules/execa/lib/pipe/throw.js +58 -0
  1352. package/node_modules/execa/lib/resolve/all-async.js +46 -0
  1353. package/node_modules/execa/lib/resolve/all-sync.js +33 -0
  1354. package/node_modules/execa/lib/resolve/exit-async.js +54 -0
  1355. package/node_modules/execa/lib/resolve/exit-sync.js +25 -0
  1356. package/node_modules/execa/lib/resolve/stdio.js +47 -0
  1357. package/node_modules/execa/lib/resolve/wait-stream.js +97 -0
  1358. package/node_modules/execa/lib/resolve/wait-subprocess.js +150 -0
  1359. package/node_modules/execa/lib/return/duration.js +8 -0
  1360. package/node_modules/execa/lib/return/early-error.js +77 -0
  1361. package/node_modules/execa/lib/return/final-error.js +44 -0
  1362. package/node_modules/execa/lib/return/message.js +157 -0
  1363. package/node_modules/execa/lib/return/reject.js +13 -0
  1364. package/node_modules/execa/lib/return/result.js +186 -0
  1365. package/node_modules/execa/lib/stdio/direction.js +89 -0
  1366. package/node_modules/execa/lib/stdio/duplicate.js +119 -0
  1367. package/node_modules/execa/lib/stdio/handle-async.js +52 -0
  1368. package/node_modules/execa/lib/stdio/handle-sync.js +68 -0
  1369. package/node_modules/execa/lib/stdio/handle.js +243 -0
  1370. package/node_modules/execa/lib/stdio/input-option.js +54 -0
  1371. package/node_modules/execa/lib/stdio/native.js +106 -0
  1372. package/node_modules/execa/lib/stdio/stdio-option.js +95 -0
  1373. package/node_modules/execa/lib/stdio/type.js +181 -0
  1374. package/node_modules/execa/lib/terminate/cancel.js +20 -0
  1375. package/node_modules/execa/lib/terminate/cleanup.js +16 -0
  1376. package/node_modules/execa/lib/terminate/graceful.js +73 -0
  1377. package/node_modules/execa/lib/terminate/kill-descendants.js +79 -0
  1378. package/node_modules/execa/lib/terminate/kill.js +93 -0
  1379. package/node_modules/execa/lib/terminate/signal.js +70 -0
  1380. package/node_modules/execa/lib/terminate/timeout.js +21 -0
  1381. package/node_modules/execa/lib/transform/encoding-transform.js +51 -0
  1382. package/node_modules/execa/lib/transform/generator.js +107 -0
  1383. package/node_modules/execa/lib/transform/normalize.js +106 -0
  1384. package/node_modules/execa/lib/transform/object-mode.js +41 -0
  1385. package/node_modules/execa/lib/transform/run-async.js +60 -0
  1386. package/node_modules/execa/lib/transform/run-sync.js +50 -0
  1387. package/node_modules/execa/lib/transform/split.js +112 -0
  1388. package/node_modules/execa/lib/transform/validate.js +43 -0
  1389. package/node_modules/execa/lib/utils/abort-signal.js +8 -0
  1390. package/node_modules/execa/lib/utils/deferred.js +7 -0
  1391. package/node_modules/execa/lib/utils/max-listeners.js +14 -0
  1392. package/node_modules/execa/lib/utils/standard-stream.js +6 -0
  1393. package/node_modules/execa/lib/utils/uint-array.js +69 -0
  1394. package/node_modules/execa/lib/verbose/complete.js +24 -0
  1395. package/node_modules/execa/lib/verbose/custom.js +26 -0
  1396. package/node_modules/execa/lib/verbose/default.js +54 -0
  1397. package/node_modules/execa/lib/verbose/error.js +13 -0
  1398. package/node_modules/execa/lib/verbose/info.js +39 -0
  1399. package/node_modules/execa/lib/verbose/ipc.js +15 -0
  1400. package/node_modules/execa/lib/verbose/log.js +54 -0
  1401. package/node_modules/execa/lib/verbose/output.js +60 -0
  1402. package/node_modules/execa/lib/verbose/start.js +15 -0
  1403. package/node_modules/execa/lib/verbose/values.js +33 -0
  1404. package/node_modules/execa/license +9 -0
  1405. package/node_modules/execa/package.json +124 -0
  1406. package/node_modules/execa/readme.md +461 -0
  1407. package/node_modules/fast-deep-equal/LICENSE +21 -0
  1408. package/node_modules/fast-deep-equal/README.md +96 -0
  1409. package/node_modules/fast-deep-equal/es6/index.js +72 -0
  1410. package/node_modules/fast-deep-equal/es6/react.js +79 -0
  1411. package/node_modules/fast-deep-equal/index.js +46 -0
  1412. package/node_modules/fast-deep-equal/package.json +51 -0
  1413. package/node_modules/fast-deep-equal/react.js +53 -0
  1414. package/node_modules/figures/index.js +292 -0
  1415. package/node_modules/figures/license +9 -0
  1416. package/node_modules/figures/package.json +46 -0
  1417. package/node_modules/figures/readme.md +337 -0
  1418. package/node_modules/fontkit/README.md +266 -0
  1419. package/node_modules/fontkit/dist/browser-module.mjs +13316 -0
  1420. package/node_modules/fontkit/dist/browser.cjs +13333 -0
  1421. package/node_modules/fontkit/dist/main.cjs +13355 -0
  1422. package/node_modules/fontkit/dist/module.mjs +13337 -0
  1423. package/node_modules/fontkit/package.json +87 -0
  1424. package/node_modules/fontkit/src/CmapProcessor.js +286 -0
  1425. package/node_modules/fontkit/src/DFont.js +117 -0
  1426. package/node_modules/fontkit/src/TTFFont.js +554 -0
  1427. package/node_modules/fontkit/src/TrueTypeCollection.js +67 -0
  1428. package/node_modules/fontkit/src/WOFF2Font.js +216 -0
  1429. package/node_modules/fontkit/src/WOFFFont.js +36 -0
  1430. package/node_modules/fontkit/src/aat/AATFeatureMap.js +543 -0
  1431. package/node_modules/fontkit/src/aat/AATLayoutEngine.js +49 -0
  1432. package/node_modules/fontkit/src/aat/AATLookupTable.js +125 -0
  1433. package/node_modules/fontkit/src/aat/AATMorxProcessor.js +430 -0
  1434. package/node_modules/fontkit/src/aat/AATStateMachine.js +96 -0
  1435. package/node_modules/fontkit/src/base.js +29 -0
  1436. package/node_modules/fontkit/src/cff/CFFCharsets.js +99 -0
  1437. package/node_modules/fontkit/src/cff/CFFDict.js +167 -0
  1438. package/node_modules/fontkit/src/cff/CFFEncodings.js +48 -0
  1439. package/node_modules/fontkit/src/cff/CFFFont.js +159 -0
  1440. package/node_modules/fontkit/src/cff/CFFIndex.js +150 -0
  1441. package/node_modules/fontkit/src/cff/CFFOperand.js +134 -0
  1442. package/node_modules/fontkit/src/cff/CFFPointer.js +50 -0
  1443. package/node_modules/fontkit/src/cff/CFFPrivateDict.js +39 -0
  1444. package/node_modules/fontkit/src/cff/CFFStandardStrings.js +71 -0
  1445. package/node_modules/fontkit/src/cff/CFFTop.js +237 -0
  1446. package/node_modules/fontkit/src/decorators.js +36 -0
  1447. package/node_modules/fontkit/src/encodings.js +219 -0
  1448. package/node_modules/fontkit/src/fs.js +17 -0
  1449. package/node_modules/fontkit/src/glyph/BBox.js +72 -0
  1450. package/node_modules/fontkit/src/glyph/CFFGlyph.js +604 -0
  1451. package/node_modules/fontkit/src/glyph/COLRGlyph.js +90 -0
  1452. package/node_modules/fontkit/src/glyph/Glyph.js +212 -0
  1453. package/node_modules/fontkit/src/glyph/GlyphVariationProcessor.js +486 -0
  1454. package/node_modules/fontkit/src/glyph/Path.js +244 -0
  1455. package/node_modules/fontkit/src/glyph/SBIXGlyph.js +54 -0
  1456. package/node_modules/fontkit/src/glyph/StandardNames.js +27 -0
  1457. package/node_modules/fontkit/src/glyph/TTFGlyph.js +393 -0
  1458. package/node_modules/fontkit/src/glyph/TTFGlyphEncoder.js +158 -0
  1459. package/node_modules/fontkit/src/glyph/WOFF2Glyph.js +17 -0
  1460. package/node_modules/fontkit/src/index.js +15 -0
  1461. package/node_modules/fontkit/src/layout/GlyphPosition.js +30 -0
  1462. package/node_modules/fontkit/src/layout/GlyphRun.js +108 -0
  1463. package/node_modules/fontkit/src/layout/KernProcessor.js +94 -0
  1464. package/node_modules/fontkit/src/layout/LayoutEngine.js +189 -0
  1465. package/node_modules/fontkit/src/layout/Script.js +231 -0
  1466. package/node_modules/fontkit/src/layout/UnicodeLayoutEngine.js +250 -0
  1467. package/node_modules/fontkit/src/node.js +17 -0
  1468. package/node_modules/fontkit/src/opentype/GPOSProcessor.js +353 -0
  1469. package/node_modules/fontkit/src/opentype/GSUBProcessor.js +192 -0
  1470. package/node_modules/fontkit/src/opentype/GlyphInfo.js +57 -0
  1471. package/node_modules/fontkit/src/opentype/GlyphIterator.js +70 -0
  1472. package/node_modules/fontkit/src/opentype/OTLayoutEngine.js +113 -0
  1473. package/node_modules/fontkit/src/opentype/OTProcessor.js +438 -0
  1474. package/node_modules/fontkit/src/opentype/ShapingPlan.js +118 -0
  1475. package/node_modules/fontkit/src/opentype/shapers/ArabicShaper.js +123 -0
  1476. package/node_modules/fontkit/src/opentype/shapers/DefaultShaper.js +72 -0
  1477. package/node_modules/fontkit/src/opentype/shapers/HangulShaper.js +285 -0
  1478. package/node_modules/fontkit/src/opentype/shapers/IndicShaper.js +911 -0
  1479. package/node_modules/fontkit/src/opentype/shapers/UniversalShaper.js +185 -0
  1480. package/node_modules/fontkit/src/opentype/shapers/data.trie +0 -0
  1481. package/node_modules/fontkit/src/opentype/shapers/gen-indic.js +208 -0
  1482. package/node_modules/fontkit/src/opentype/shapers/gen-use.js +287 -0
  1483. package/node_modules/fontkit/src/opentype/shapers/generate-data.js +33 -0
  1484. package/node_modules/fontkit/src/opentype/shapers/index.js +102 -0
  1485. package/node_modules/fontkit/src/opentype/shapers/indic-data.js +175 -0
  1486. package/node_modules/fontkit/src/opentype/shapers/indic.json +1 -0
  1487. package/node_modules/fontkit/src/opentype/shapers/indic.machine +31 -0
  1488. package/node_modules/fontkit/src/opentype/shapers/indic.trie +0 -0
  1489. package/node_modules/fontkit/src/opentype/shapers/use.json +1 -0
  1490. package/node_modules/fontkit/src/opentype/shapers/use.machine +44 -0
  1491. package/node_modules/fontkit/src/opentype/shapers/use.trie +0 -0
  1492. package/node_modules/fontkit/src/subset/CFFSubset.js +171 -0
  1493. package/node_modules/fontkit/src/subset/Subset.js +27 -0
  1494. package/node_modules/fontkit/src/subset/TTFSubset.js +131 -0
  1495. package/node_modules/fontkit/src/tables/BASE.js +78 -0
  1496. package/node_modules/fontkit/src/tables/COLR.js +25 -0
  1497. package/node_modules/fontkit/src/tables/CPAL.js +24 -0
  1498. package/node_modules/fontkit/src/tables/DSIG.js +21 -0
  1499. package/node_modules/fontkit/src/tables/EBDT.js +91 -0
  1500. package/node_modules/fontkit/src/tables/EBLC.js +80 -0
  1501. package/node_modules/fontkit/src/tables/GDEF.js +57 -0
  1502. package/node_modules/fontkit/src/tables/GPOS.js +209 -0
  1503. package/node_modules/fontkit/src/tables/GSUB.js +84 -0
  1504. package/node_modules/fontkit/src/tables/HVAR.js +44 -0
  1505. package/node_modules/fontkit/src/tables/JSTF.js +43 -0
  1506. package/node_modules/fontkit/src/tables/LTSH.js +10 -0
  1507. package/node_modules/fontkit/src/tables/OS2.js +84 -0
  1508. package/node_modules/fontkit/src/tables/PCLT.js +21 -0
  1509. package/node_modules/fontkit/src/tables/VDMX.js +33 -0
  1510. package/node_modules/fontkit/src/tables/VORG.js +14 -0
  1511. package/node_modules/fontkit/src/tables/WOFF2Directory.js +74 -0
  1512. package/node_modules/fontkit/src/tables/WOFFDirectory.js +38 -0
  1513. package/node_modules/fontkit/src/tables/aat.js +157 -0
  1514. package/node_modules/fontkit/src/tables/avar.js +19 -0
  1515. package/node_modules/fontkit/src/tables/bsln.js +31 -0
  1516. package/node_modules/fontkit/src/tables/cmap.js +127 -0
  1517. package/node_modules/fontkit/src/tables/cvt.js +6 -0
  1518. package/node_modules/fontkit/src/tables/directory.js +58 -0
  1519. package/node_modules/fontkit/src/tables/feat.js +28 -0
  1520. package/node_modules/fontkit/src/tables/fpgm.js +8 -0
  1521. package/node_modules/fontkit/src/tables/fvar.js +31 -0
  1522. package/node_modules/fontkit/src/tables/gasp.js +15 -0
  1523. package/node_modules/fontkit/src/tables/glyf.js +4 -0
  1524. package/node_modules/fontkit/src/tables/gvar.js +27 -0
  1525. package/node_modules/fontkit/src/tables/hdmx.js +15 -0
  1526. package/node_modules/fontkit/src/tables/head.js +25 -0
  1527. package/node_modules/fontkit/src/tables/hhea.js +19 -0
  1528. package/node_modules/fontkit/src/tables/hmtx.js +11 -0
  1529. package/node_modules/fontkit/src/tables/index.js +117 -0
  1530. package/node_modules/fontkit/src/tables/just.js +81 -0
  1531. package/node_modules/fontkit/src/tables/kern.js +91 -0
  1532. package/node_modules/fontkit/src/tables/loca.js +30 -0
  1533. package/node_modules/fontkit/src/tables/maxp.js +20 -0
  1534. package/node_modules/fontkit/src/tables/morx.js +79 -0
  1535. package/node_modules/fontkit/src/tables/name.js +130 -0
  1536. package/node_modules/fontkit/src/tables/opbd.js +15 -0
  1537. package/node_modules/fontkit/src/tables/opentype.js +217 -0
  1538. package/node_modules/fontkit/src/tables/post.js +34 -0
  1539. package/node_modules/fontkit/src/tables/prep.js +6 -0
  1540. package/node_modules/fontkit/src/tables/sbix.js +17 -0
  1541. package/node_modules/fontkit/src/tables/variations.js +81 -0
  1542. package/node_modules/fontkit/src/tables/vhea.js +19 -0
  1543. package/node_modules/fontkit/src/tables/vmtx.js +12 -0
  1544. package/node_modules/fontkit/src/utils.js +62 -0
  1545. package/node_modules/get-stream/license +9 -0
  1546. package/node_modules/get-stream/package.json +56 -0
  1547. package/node_modules/get-stream/readme.md +303 -0
  1548. package/node_modules/get-stream/source/array-buffer.js +84 -0
  1549. package/node_modules/get-stream/source/array.js +32 -0
  1550. package/node_modules/get-stream/source/buffer.js +19 -0
  1551. package/node_modules/get-stream/source/contents.js +121 -0
  1552. package/node_modules/get-stream/source/exports.js +5 -0
  1553. package/node_modules/get-stream/source/index.js +13 -0
  1554. package/node_modules/get-stream/source/stream.js +65 -0
  1555. package/node_modules/get-stream/source/string.js +41 -0
  1556. package/node_modules/get-stream/source/utils.js +11 -0
  1557. package/node_modules/human-signals/LICENSE +201 -0
  1558. package/node_modules/human-signals/README.md +171 -0
  1559. package/node_modules/human-signals/build/src/core.js +273 -0
  1560. package/node_modules/human-signals/build/src/main.js +70 -0
  1561. package/node_modules/human-signals/build/src/realtime.js +16 -0
  1562. package/node_modules/human-signals/build/src/signals.js +34 -0
  1563. package/node_modules/human-signals/package.json +63 -0
  1564. package/node_modules/is-plain-obj/index.js +8 -0
  1565. package/node_modules/is-plain-obj/license +9 -0
  1566. package/node_modules/is-plain-obj/package.json +38 -0
  1567. package/node_modules/is-plain-obj/readme.md +58 -0
  1568. package/node_modules/is-stream/index.js +37 -0
  1569. package/node_modules/is-stream/license +9 -0
  1570. package/node_modules/is-stream/package.json +45 -0
  1571. package/node_modules/is-stream/readme.md +57 -0
  1572. package/node_modules/is-unicode-supported/index.js +21 -0
  1573. package/node_modules/is-unicode-supported/license +9 -0
  1574. package/node_modules/is-unicode-supported/package.json +44 -0
  1575. package/node_modules/is-unicode-supported/readme.md +35 -0
  1576. package/node_modules/npm-run-path/index.js +55 -0
  1577. package/node_modules/npm-run-path/license +9 -0
  1578. package/node_modules/npm-run-path/node_modules/path-key/index.js +12 -0
  1579. package/node_modules/npm-run-path/node_modules/path-key/license +9 -0
  1580. package/node_modules/npm-run-path/node_modules/path-key/package.json +41 -0
  1581. package/node_modules/npm-run-path/node_modules/path-key/readme.md +57 -0
  1582. package/node_modules/npm-run-path/package.json +49 -0
  1583. package/node_modules/npm-run-path/readme.md +104 -0
  1584. package/node_modules/pako/LICENSE +21 -0
  1585. package/node_modules/pako/README.md +176 -0
  1586. package/node_modules/pako/dist/pako.js +6606 -0
  1587. package/node_modules/pako/dist/pako.min.js +3 -0
  1588. package/node_modules/pako/dist/pako_deflate.js +3879 -0
  1589. package/node_modules/pako/dist/pako_deflate.min.js +2 -0
  1590. package/node_modules/pako/dist/pako_inflate.js +3127 -0
  1591. package/node_modules/pako/dist/pako_inflate.min.js +2 -0
  1592. package/node_modules/pako/index.js +14 -0
  1593. package/node_modules/pako/lib/deflate.js +400 -0
  1594. package/node_modules/pako/lib/inflate.js +418 -0
  1595. package/node_modules/pako/lib/utils/common.js +102 -0
  1596. package/node_modules/pako/lib/utils/strings.js +185 -0
  1597. package/node_modules/pako/lib/zlib/adler32.js +32 -0
  1598. package/node_modules/pako/lib/zlib/constants.js +50 -0
  1599. package/node_modules/pako/lib/zlib/crc32.js +41 -0
  1600. package/node_modules/pako/lib/zlib/deflate.js +1855 -0
  1601. package/node_modules/pako/lib/zlib/gzheader.js +40 -0
  1602. package/node_modules/pako/lib/zlib/inffast.js +326 -0
  1603. package/node_modules/pako/lib/zlib/inflate.js +1538 -0
  1604. package/node_modules/pako/lib/zlib/inftrees.js +327 -0
  1605. package/node_modules/pako/lib/zlib/messages.js +13 -0
  1606. package/node_modules/pako/lib/zlib/trees.js +1202 -0
  1607. package/node_modules/pako/lib/zlib/zstream.js +29 -0
  1608. package/node_modules/pako/package.json +40 -0
  1609. package/node_modules/parse-ms/index.js +45 -0
  1610. package/node_modules/parse-ms/license +9 -0
  1611. package/node_modules/parse-ms/package.json +44 -0
  1612. package/node_modules/parse-ms/readme.md +46 -0
  1613. package/node_modules/pretty-ms/index.js +150 -0
  1614. package/node_modules/pretty-ms/license +9 -0
  1615. package/node_modules/pretty-ms/package.json +52 -0
  1616. package/node_modules/pretty-ms/readme.md +198 -0
  1617. package/node_modules/restructure/LICENSE +21 -0
  1618. package/node_modules/restructure/README.md +300 -0
  1619. package/node_modules/restructure/dist/main.cjs +1019 -0
  1620. package/node_modules/restructure/index.js +17 -0
  1621. package/node_modules/restructure/package.json +36 -0
  1622. package/node_modules/restructure/src/Array.js +106 -0
  1623. package/node_modules/restructure/src/Base.js +17 -0
  1624. package/node_modules/restructure/src/Bitfield.js +39 -0
  1625. package/node_modules/restructure/src/Boolean.js +22 -0
  1626. package/node_modules/restructure/src/Buffer.js +38 -0
  1627. package/node_modules/restructure/src/DecodeStream.js +85 -0
  1628. package/node_modules/restructure/src/EncodeStream.js +129 -0
  1629. package/node_modules/restructure/src/Enum.js +27 -0
  1630. package/node_modules/restructure/src/LazyArray.js +74 -0
  1631. package/node_modules/restructure/src/Number.js +77 -0
  1632. package/node_modules/restructure/src/Optional.js +44 -0
  1633. package/node_modules/restructure/src/Pointer.js +167 -0
  1634. package/node_modules/restructure/src/Reserved.js +23 -0
  1635. package/node_modules/restructure/src/String.js +155 -0
  1636. package/node_modules/restructure/src/Struct.js +113 -0
  1637. package/node_modules/restructure/src/VersionedStruct.js +139 -0
  1638. package/node_modules/restructure/src/utils.js +35 -0
  1639. package/node_modules/restructure/test/Array.js +103 -0
  1640. package/node_modules/restructure/test/Bitfield.js +29 -0
  1641. package/node_modules/restructure/test/Boolean.js +39 -0
  1642. package/node_modules/restructure/test/Buffer.js +45 -0
  1643. package/node_modules/restructure/test/DecodeStream.js +101 -0
  1644. package/node_modules/restructure/test/EncodeStream.js +104 -0
  1645. package/node_modules/restructure/test/Enum.js +24 -0
  1646. package/node_modules/restructure/test/LazyArray.js +59 -0
  1647. package/node_modules/restructure/test/Number.js +356 -0
  1648. package/node_modules/restructure/test/Optional.js +100 -0
  1649. package/node_modules/restructure/test/Pointer.js +289 -0
  1650. package/node_modules/restructure/test/Reserved.js +26 -0
  1651. package/node_modules/restructure/test/String.js +151 -0
  1652. package/node_modules/restructure/test/Struct.js +146 -0
  1653. package/node_modules/restructure/test/VersionedStruct.js +495 -0
  1654. package/node_modules/saxes/README.md +323 -0
  1655. package/node_modules/saxes/package.json +55 -0
  1656. package/node_modules/saxes/saxes.js +2053 -0
  1657. package/node_modules/signal-exit/LICENSE.txt +16 -0
  1658. package/node_modules/signal-exit/README.md +74 -0
  1659. package/node_modules/signal-exit/dist/cjs/browser.js +10 -0
  1660. package/node_modules/signal-exit/dist/cjs/index.js +279 -0
  1661. package/node_modules/signal-exit/dist/cjs/package.json +3 -0
  1662. package/node_modules/signal-exit/dist/cjs/signals.js +42 -0
  1663. package/node_modules/signal-exit/dist/mjs/browser.js +4 -0
  1664. package/node_modules/signal-exit/dist/mjs/index.js +275 -0
  1665. package/node_modules/signal-exit/dist/mjs/package.json +3 -0
  1666. package/node_modules/signal-exit/dist/mjs/signals.js +39 -0
  1667. package/node_modules/signal-exit/package.json +93 -0
  1668. package/node_modules/strip-final-newline/index.js +26 -0
  1669. package/node_modules/strip-final-newline/license +9 -0
  1670. package/node_modules/strip-final-newline/package.json +46 -0
  1671. package/node_modules/strip-final-newline/readme.md +34 -0
  1672. package/node_modules/tiny-inflate/LICENSE +21 -0
  1673. package/node_modules/tiny-inflate/index.js +375 -0
  1674. package/node_modules/tiny-inflate/package.json +25 -0
  1675. package/node_modules/tiny-inflate/readme.md +31 -0
  1676. package/node_modules/tiny-inflate/test/index.js +75 -0
  1677. package/node_modules/tiny-inflate/test/lorem.txt +199 -0
  1678. package/node_modules/unicode-properties/LICENSE +8 -0
  1679. package/node_modules/unicode-properties/dist/main.cjs +150 -0
  1680. package/node_modules/unicode-properties/dist/module.mjs +127 -0
  1681. package/node_modules/unicode-properties/package.json +44 -0
  1682. package/node_modules/unicode-properties/readme.md +78 -0
  1683. package/node_modules/unicode-trie/LICENSE +8 -0
  1684. package/node_modules/unicode-trie/README.md +77 -0
  1685. package/node_modules/unicode-trie/builder.js +966 -0
  1686. package/node_modules/unicode-trie/index.js +136 -0
  1687. package/node_modules/unicode-trie/package.json +23 -0
  1688. package/node_modules/unicode-trie/swap.js +25 -0
  1689. package/node_modules/unicode-trie/test/mocha.opts +1 -0
  1690. package/node_modules/unicode-trie/test/test.js +243 -0
  1691. package/node_modules/unicorn-magic/default.js +14 -0
  1692. package/node_modules/unicorn-magic/license +9 -0
  1693. package/node_modules/unicorn-magic/node.js +49 -0
  1694. package/node_modules/unicorn-magic/package.json +59 -0
  1695. package/node_modules/unicorn-magic/readme.md +25 -0
  1696. package/node_modules/which-command/cli.js +74 -0
  1697. package/node_modules/which-command/index.js +170 -0
  1698. package/node_modules/which-command/license +9 -0
  1699. package/node_modules/which-command/package.json +46 -0
  1700. package/node_modules/which-command/readme.md +121 -0
  1701. package/node_modules/xmlchars/LICENSE +18 -0
  1702. package/node_modules/xmlchars/README.md +33 -0
  1703. package/node_modules/xmlchars/package.json +34 -0
  1704. package/node_modules/xmlchars/xml/1.0/ed4.js +44 -0
  1705. package/node_modules/xmlchars/xml/1.0/ed5.js +105 -0
  1706. package/node_modules/xmlchars/xml/1.1/ed2.js +145 -0
  1707. package/node_modules/xmlchars/xmlchars.js +191 -0
  1708. package/node_modules/xmlchars/xmlns/1.0/ed3.js +65 -0
  1709. package/node_modules/yoctocolors/base.js +118 -0
  1710. package/node_modules/yoctocolors/index.js +2 -0
  1711. package/node_modules/yoctocolors/license +9 -0
  1712. package/node_modules/yoctocolors/package.json +66 -0
  1713. package/node_modules/yoctocolors/readme.md +163 -0
  1714. package/package.json +337 -246
  1715. package/node_modules/@deepseek-ai/cordis-plugin-hmr/README.md +0 -51
  1716. package/node_modules/@deepseek-ai/cordis-plugin-hmr/lib/index.js +0 -401
  1717. package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/error.ts +0 -36
  1718. package/node_modules/@deepseek-ai/cordis-plugin-hmr/src/index.ts +0 -427
  1719. package/node_modules/@deepseek-ai/dsh/lib/plugin-Bk_PbPwP.js +0 -130
  1720. package/node_modules/@deepseek-ai/dsh/lib/profile-boot-DB8eVKBx.js +0 -2
  1721. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-BRtJ62WN.css +0 -1
  1722. package/node_modules/@deepseek-ai/dsh-web-frontend/dist/assets/index-Ly7KS3xS.js +0 -127
  1723. /package/node_modules/@deepseek-ai/{cordis-plugin-hmr → dsh-hmr}/LICENSE +0 -0
@@ -0,0 +1,2550 @@
1
+ window.__ModuleLoader__.load({
2
+ id: "@deepseek-ai/dsh-client-ui-plugin-manager",
3
+ factory: (require) => {
4
+ var module = { exports: {} };
5
+ var exports = module.exports;
6
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7
+ let react_jsx_runtime = require("react/jsx-runtime");
8
+ let react = require("react");
9
+ let _deepseek_ai_dsh_client_ui_primitives = require("@deepseek-ai/dsh-client-ui-primitives");
10
+ let _deepseek_ai_dsh_client_ui_slots = require("@deepseek-ai/dsh-client-ui-slots");
11
+ let _deepseek_ai_dsh_client_store = require("@deepseek-ai/dsh-client-store");
12
+ //#region lib/types/client/config-ledger.js
13
+ /**
14
+ * Which plugins bring their own configuration to the Plugins page, read from
15
+ * the three slots the page declares: the official plugins listed beside the
16
+ * official bundles, the bundles with a form on their page, and the rows with a
17
+ * page of their own. The projection follows the slot ledgers and the active
18
+ * locale and keeps its snapshot until one of them moves.
19
+ */
20
+ /**
21
+ * The key a row's configuration registers under.
22
+ * @param bundle - the bundle's package name.
23
+ * @param rowId - the row id the bundle's patch declares.
24
+ * @returns the `plugins.row.config` key.
25
+ */
26
+ function rowConfigKey(bundle, rowId) {
27
+ return `${bundle}#${rowId}`;
28
+ }
29
+ const SLOTS = [
30
+ "plugins.item",
31
+ "plugins.bundle.config",
32
+ "plugins.row.config"
33
+ ];
34
+ /**
35
+ * Project the configuration ledgers as one observable the page binds.
36
+ * @param ctx - the page plugin's context, whose slot registry and locale the projection follows.
37
+ * @returns the ledger source; its snapshot changes only when a ledger or the locale does.
38
+ */
39
+ function configLedgerSource(ctx) {
40
+ let versions = [];
41
+ let revision = -1;
42
+ let ledger = {
43
+ items: [],
44
+ bundles: /* @__PURE__ */ new Set(),
45
+ rows: /* @__PURE__ */ new Set()
46
+ };
47
+ const keysOf = (name) => new Set(ctx.slots.entries(name).flatMap((entry) => entry.options.key === void 0 ? [] : [entry.options.key]));
48
+ return {
49
+ getSnapshot: () => {
50
+ const next = SLOTS.map((name) => ctx.slots.getVersion(name));
51
+ const current = ctx.locale.getSnapshot().revision;
52
+ if (current !== revision || next.some((version, index) => version !== versions[index])) {
53
+ versions = next;
54
+ revision = current;
55
+ ledger = {
56
+ items: ctx.slots.entries("plugins.item").map((entry) => ({
57
+ /* v8 ignore next -- list-slot registration requires id */
58
+ id: entry.options.id ?? "",
59
+ label: (0, _deepseek_ai_dsh_client_ui_slots.resolveSlotLabel)(entry.options.label) ?? ""
60
+ })),
61
+ bundles: keysOf("plugins.bundle.config"),
62
+ rows: keysOf("plugins.row.config")
63
+ };
64
+ }
65
+ return ledger;
66
+ },
67
+ subscribe: (listener) => {
68
+ const offs = [...SLOTS.map((name) => ctx.slots.subscribe(name, listener)), ctx.locale.subscribe(listener)];
69
+ return () => {
70
+ for (const off of offs) off();
71
+ };
72
+ }
73
+ };
74
+ }
75
+ //#endregion
76
+ //#region ../../util/crypto/src/index.ts
77
+ /**
78
+ * Random v4 UUID, minted from `crypto.getRandomValues`.
79
+ * @returns the UUID string.
80
+ */
81
+ function randomUUID() {
82
+ const bytes = globalThis.crypto.getRandomValues(new Uint8Array(16));
83
+ const hex = Array.from(bytes, (byte, index) => {
84
+ return (index === 6 ? byte & 15 | 64 : index === 8 ? byte & 63 | 128 : byte).toString(16).padStart(2, "0");
85
+ }).join("");
86
+ return `${hex.slice(0, 8)}-${hex.slice(8, 12)}-${hex.slice(12, 16)}-${hex.slice(16, 20)}-${hex.slice(20)}`;
87
+ }
88
+ //#endregion
89
+ //#region lib/types/client/presentation.js
90
+ /** Display labels and toast sentences for global plugin management. */
91
+ /** The official packages with copy of their own, and whether each is a beta feature the page tags as such. */
92
+ const BUILTIN_COPY = new Map([
93
+ ["@deepseek-ai/dsh-experimental-agent-team-profile", {
94
+ title: "builtinAgentTeamTitle",
95
+ description: "builtinAgentTeamDescription",
96
+ beta: true
97
+ }],
98
+ ["@deepseek-ai/dsh-experimental-agent-team-web-profile", {
99
+ title: "builtinAgentTeamWebTitle",
100
+ description: "builtinAgentTeamWebDescription",
101
+ beta: true
102
+ }],
103
+ ["@deepseek-ai/dsh-experimental-auto-review", {
104
+ title: "builtinAutoReviewTitle",
105
+ description: "builtinAutoReviewDescription",
106
+ beta: true
107
+ }]
108
+ ]);
109
+ /** The sentence each of the Host's refusal codes reads as. */
110
+ const CODE_KEYS = {
111
+ "management-required": "reasonManagementRequired",
112
+ "unaddressable": "reasonUnaddressable",
113
+ "unknown-plugin": "reasonUnknownPlugin",
114
+ "invalid-spec": "reasonInvalidSpec",
115
+ "ambiguous-install": "reasonAmbiguousInstall",
116
+ "not-bundle": "reasonNotBundle",
117
+ "not-removable": "reasonNotRemovable",
118
+ "stop-profile": "reasonStopProfile",
119
+ "bundle-in-use": "reasonBundleInUse",
120
+ "stale-approval": "reasonStaleApproval",
121
+ "operation-error": "reasonOperationError"
122
+ };
123
+ /** The sentence a failed action opens with, by what was being done. */
124
+ const FAILED_KEYS = {
125
+ enable: "failedEnable",
126
+ disable: "failedDisable",
127
+ uninstall: "failedUninstall",
128
+ rowEnable: "failedRowEnable",
129
+ rowDisable: "failedRowDisable"
130
+ };
131
+ /**
132
+ * What a management error reads as: the code's sentence, or, for an
133
+ * operation error, the Host's diagnostic as it is.
134
+ * @param error - the Host's code and its diagnostic, when it has one.
135
+ * @param t - the manager's translate seat.
136
+ * @returns the sentence.
137
+ */
138
+ function managementText(error, t) {
139
+ if (error.code !== "operation-error") return t(CODE_KEYS[error.code]);
140
+ return error.diagnostic === void 0 || error.diagnostic === "" ? t("reasonOperationError") : error.diagnostic;
141
+ }
142
+ /**
143
+ * Compact a package name to what a person calls it.
144
+ * @param name - the package name.
145
+ * @returns the unscoped name without the harness prefixes.
146
+ */
147
+ function shortName(name) {
148
+ return (name.startsWith("@") ? name.slice(name.indexOf("/") + 1) : name).replace(/^dsh-(?:host-|client-)?/, "");
149
+ }
150
+ /**
151
+ * Localize known official packages by exact npm name at render time.
152
+ * @param pkg - original package identity and optional metadata description.
153
+ * @param t - the manager's current translate function.
154
+ * @returns localized copy and whether the package is a beta feature, or the package's short name and original description.
155
+ */
156
+ function packageText(pkg, t) {
157
+ const keys = BUILTIN_COPY.get(pkg.name);
158
+ return keys === void 0 ? {
159
+ title: shortName(pkg.name),
160
+ description: pkg.description,
161
+ beta: false
162
+ } : {
163
+ title: t(keys.title),
164
+ description: t(keys.description),
165
+ beta: keys.beta
166
+ };
167
+ }
168
+ /**
169
+ * The sentence one notice shows.
170
+ * @param notice - the last action's outcome.
171
+ * @param t - the manager's translate seat.
172
+ * @returns the sentence.
173
+ */
174
+ function noticeText(notice, t) {
175
+ switch (notice.kind) {
176
+ case "restart": return t("restartNotice");
177
+ case "overridden": return t("overriddenNotice", { name: notice.packageName });
178
+ case "cancelled": return t("installCancelled");
179
+ case "failed": {
180
+ const reason = notice.code === void 0 ? notice.reason : managementText({
181
+ code: notice.code,
182
+ diagnostic: notice.reason
183
+ }, t);
184
+ return t(FAILED_KEYS[notice.action], { reason: reason === "" ? t("reasonOperationError") : reason });
185
+ }
186
+ }
187
+ }
188
+ //#endregion
189
+ //#region lib/types/client/manager-store.js
190
+ /**
191
+ * The plugin manager's state: the Host's bundles joined with its plugin
192
+ * entries, the action in flight, the install run, and the confirmation an
193
+ * uninstall waits on. Every fact comes from the Host — the store re-reads
194
+ * after each action and after every `plugin-manager/changed` event, so a
195
+ * change made on another surface shows here without a manual refresh.
196
+ */
197
+ /**
198
+ * Whether an installation is still owned by the Host.
199
+ * @param phase - the dialog's current installation phase.
200
+ * @returns true until an authoritative result settles the installation.
201
+ */
202
+ function isInstallPending(phase) {
203
+ return phase === "starting" || phase === "running" || phase === "cancelling" || phase === "applying";
204
+ }
205
+ /** A refused answer or a change the Host could not apply, carrying what it said and, for a refusal, its code. */
206
+ var RemoteAnswerError = class extends Error {
207
+ reason;
208
+ code;
209
+ constructor(reason, code) {
210
+ super(reason);
211
+ this.reason = reason;
212
+ this.code = code;
213
+ this.name = "RemoteAnswerError";
214
+ }
215
+ };
216
+ /** The dialog's reading of a failed change: the Host's code and diagnostic, and the run's classified failure. */
217
+ function failureOf(error, kind, pendingBuilds) {
218
+ return {
219
+ reason: error?.diagnostic ?? "",
220
+ ...error === void 0 ? {} : { code: error.code },
221
+ ...kind === void 0 ? {} : { kind },
222
+ ...pendingBuilds === void 0 || pendingBuilds.length === 0 ? {} : { pendingBuilds }
223
+ };
224
+ }
225
+ /** The notice a thrown failure becomes: a refusal keeps its code, anything else its words. */
226
+ function failedNotice(error, subject, seq) {
227
+ const code = error instanceof RemoteAnswerError ? error.code : void 0;
228
+ return {
229
+ kind: "failed",
230
+ reason: reasonOf(error),
231
+ ...code === void 0 ? {} : { code },
232
+ ...subject,
233
+ seq
234
+ };
235
+ }
236
+ /** The runs with every one still open settled at `exitCode`. */
237
+ function settledRuns(runs, exitCode) {
238
+ return runs.map((run) => run.exitCode === void 0 ? {
239
+ ...run,
240
+ exitCode
241
+ } : run);
242
+ }
243
+ /**
244
+ * The key one row occupies in the busy list.
245
+ * @param entryId - the row's Loader entry id.
246
+ * @returns the busy key.
247
+ */
248
+ function rowKey(entryId) {
249
+ return `row:${entryId}`;
250
+ }
251
+ /**
252
+ * One bundle as the page shows it: its rows joined with the Host's entries.
253
+ * @param bundle - the Host's bundle.
254
+ * @param plugins - the Host's plugin entries.
255
+ * @returns the package view.
256
+ */
257
+ function packageView(bundle, plugins) {
258
+ const rows = bundle.rows.map((row) => {
259
+ const live = row.entryId === void 0 ? void 0 : plugins.find((plugin) => plugin.entryId === row.entryId);
260
+ return {
261
+ rowId: row.rowId,
262
+ moduleName: row.moduleName,
263
+ enabled: live?.enabled ?? false,
264
+ phase: live?.fiberPhase ?? null,
265
+ ...row.entryId === void 0 ? {} : { entryId: row.entryId },
266
+ ...live?.readOnlyReason === void 0 ? {} : { readOnlyReason: live.readOnlyReason }
267
+ };
268
+ });
269
+ return {
270
+ name: bundle.name,
271
+ installed: bundle.installed,
272
+ optional: bundle.optional,
273
+ enabled: bundle.enabled,
274
+ rows,
275
+ ...bundle.version === void 0 ? {} : { version: bundle.version },
276
+ ...bundle.description === void 0 ? {} : { description: bundle.description },
277
+ ...bundle.readOnlyReason === void 0 ? {} : { readOnlyReason: bundle.readOnlyReason },
278
+ ...bundle.error === void 0 ? {} : { error: bundle.error }
279
+ };
280
+ }
281
+ /**
282
+ * The order the list shows packages in: by the short name a person reads, so a
283
+ * card stays put when its bundle is switched, whatever order the Host answers in.
284
+ * @param packages - the Host's bundles as views.
285
+ * @returns the views sorted by short name.
286
+ */
287
+ function sortPackages(packages) {
288
+ return [...packages].sort((a, b) => shortName(a.name).localeCompare(shortName(b.name)));
289
+ }
290
+ const IDLE_INSTALL = {
291
+ open: false,
292
+ spec: "",
293
+ phase: "idle",
294
+ inputError: null,
295
+ subject: null,
296
+ runs: [],
297
+ detailsOpen: false,
298
+ installed: null,
299
+ restartRequired: false,
300
+ failure: null,
301
+ approvedBuilds: [],
302
+ enabling: false
303
+ };
304
+ /** Reads and mutates the profile's plugins through the `pluginManager` Remote. */
305
+ var PluginManagerController = class {
306
+ ctx;
307
+ store;
308
+ inFlight;
309
+ rerun = false;
310
+ generation = 0;
311
+ disposed = false;
312
+ pendingConfirm;
313
+ /** Cancels the check the dialog has in flight. */
314
+ inspectAbort;
315
+ noticeSeq = 0;
316
+ /**
317
+ * @param ctx - the tab plugin's context, whose `remote.pluginManager` and `remote.pluginInventory` namespaces answer.
318
+ */
319
+ constructor(ctx) {
320
+ this.ctx = ctx;
321
+ this.store = (0, _deepseek_ai_dsh_client_store.createSnapshotStore)({
322
+ status: "idle",
323
+ packages: [],
324
+ busy: [],
325
+ notice: null,
326
+ install: IDLE_INSTALL,
327
+ confirm: null,
328
+ highlight: null
329
+ });
330
+ }
331
+ /**
332
+ * Read the tab's state.
333
+ * @returns the current sync snapshot (stable reference until the next change).
334
+ */
335
+ getSnapshot() {
336
+ return this.store.getSnapshot();
337
+ }
338
+ /** Stop publishing and drop every late settlement. */
339
+ dispose() {
340
+ this.disposed = true;
341
+ this.generation += 1;
342
+ }
343
+ /**
344
+ * Build the face the tab's slot registration injects.
345
+ * @param configLedger - the projection of the plugins carrying configuration, bound beside the tab's own state.
346
+ * @returns the tab's snapshot sources and its actions.
347
+ */
348
+ inject(configLedger) {
349
+ return {
350
+ hooks: {
351
+ pluginManager: this.store,
352
+ configLedger
353
+ },
354
+ ensure: () => {
355
+ if (this.getSnapshot().status === "idle") this.load();
356
+ },
357
+ refresh: () => {
358
+ this.load();
359
+ },
360
+ openInstall: () => {
361
+ if (!isInstallPending(this.getSnapshot().install.phase)) this.patch({ install: {
362
+ ...IDLE_INSTALL,
363
+ open: true
364
+ } });
365
+ },
366
+ closeInstall: () => {
367
+ if (isInstallPending(this.getSnapshot().install.phase)) return;
368
+ this.abortInspect();
369
+ this.patch({ install: IDLE_INSTALL });
370
+ },
371
+ editInstallSpec: (text) => {
372
+ const install = this.getSnapshot().install;
373
+ if (install.phase === "checking" || isInstallPending(install.phase)) return;
374
+ this.patchInstall(install.phase === "idle" ? {
375
+ spec: text,
376
+ inputError: null
377
+ } : {
378
+ ...IDLE_INSTALL,
379
+ open: true,
380
+ spec: text
381
+ });
382
+ },
383
+ runInstall: () => {
384
+ this.runInstall();
385
+ },
386
+ approveBuildsAndRetry: () => {
387
+ this.approveBuildsAndRetry();
388
+ },
389
+ cancelInstall: () => {
390
+ this.cancelInstall();
391
+ },
392
+ cancelInstallAndClose: () => {
393
+ this.cancelInstall(true);
394
+ },
395
+ toggleInstallDetails: () => {
396
+ this.patchInstall({ detailsOpen: !this.getSnapshot().install.detailsOpen });
397
+ },
398
+ enableInstalled: () => {
399
+ this.enableInstalled();
400
+ },
401
+ clearHighlight: () => {
402
+ if (this.getSnapshot().highlight !== null) this.patch({ highlight: null });
403
+ },
404
+ setEnabled: (packageName, enabled) => {
405
+ this.run(packageName, {
406
+ packageName,
407
+ action: enabled ? "enable" : "disable"
408
+ }, async () => {
409
+ this.applied(await this.ctx.remote.pluginManager.setBundleEnabled(packageName, enabled), packageName);
410
+ });
411
+ },
412
+ uninstall: (packageName) => {
413
+ this.pendingConfirm = () => this.run(packageName, {
414
+ packageName,
415
+ action: "uninstall"
416
+ }, async () => {
417
+ this.applied(await this.ctx.remote.pluginManager.removeBundle(packageName), packageName);
418
+ });
419
+ this.patch({ confirm: {
420
+ action: "uninstall",
421
+ packageName
422
+ } });
423
+ },
424
+ confirm: () => {
425
+ this.confirm();
426
+ },
427
+ cancelConfirm: () => {
428
+ this.pendingConfirm = void 0;
429
+ this.patch({ confirm: null });
430
+ },
431
+ setRowEnabled: (entryId, enabled) => {
432
+ this.run(rowKey(entryId), {
433
+ packageName: entryId,
434
+ action: enabled ? "rowEnable" : "rowDisable"
435
+ }, async () => {
436
+ this.applied(await this.ctx.remote.pluginManager.setPluginEnabled(entryId, enabled), entryId);
437
+ });
438
+ },
439
+ dismissNotice: () => {
440
+ this.patch({ notice: null });
441
+ }
442
+ };
443
+ }
444
+ /**
445
+ * Follow the Host's cancellation window for this dialog's installation.
446
+ * @param progress - a request id and phase received from the Host.
447
+ */
448
+ installProgress(progress) {
449
+ const install = this.getSnapshot().install;
450
+ if (install.requestId !== progress.requestId || !isInstallPending(install.phase)) return;
451
+ if (install.phase === "cancelling" && progress.phase === "installing") return;
452
+ this.patchInstall({ phase: progress.phase === "installing" ? "running" : progress.phase });
453
+ }
454
+ /**
455
+ * Fold a chunk belonging to this installation into its pnpm command.
456
+ * A final chunk may arrive after the install answer and still updates an existing run.
457
+ * @param chunk - the chunk the Host forwarded.
458
+ */
459
+ appendLog(chunk) {
460
+ const install = this.getSnapshot().install;
461
+ if (chunk.requestId !== install.requestId) return;
462
+ const index = install.runs.findIndex((run) => run.jobId === chunk.jobId);
463
+ if (index === -1 && !isInstallPending(install.phase)) return;
464
+ const settled = chunk.exitCode === void 0 ? {} : { exitCode: chunk.exitCode };
465
+ const runs = index === -1 ? [...install.runs, {
466
+ jobId: chunk.jobId,
467
+ command: chunk.argv.join(" "),
468
+ cwd: chunk.cwd,
469
+ output: chunk.text,
470
+ ...settled
471
+ }] : install.runs.map((run, at) => at === index ? {
472
+ ...run,
473
+ output: run.output + chunk.text,
474
+ ...settled
475
+ } : run);
476
+ this.patchInstall({ runs });
477
+ }
478
+ /**
479
+ * Read the bundles and the entries their rows run as. A call during an
480
+ * in-flight read marks one rerun after it settles.
481
+ * @returns settlement after this call's freshness is reflected.
482
+ */
483
+ load() {
484
+ if (this.disposed) return Promise.resolve();
485
+ if (this.inFlight !== void 0) {
486
+ this.rerun = true;
487
+ return this.inFlight;
488
+ }
489
+ const run = Promise.resolve().then(() => this.read());
490
+ this.inFlight = run;
491
+ return run;
492
+ }
493
+ async read() {
494
+ try {
495
+ do {
496
+ this.rerun = false;
497
+ const generation = ++this.generation;
498
+ if (this.getSnapshot().status === "idle") this.patch({ status: "loading" });
499
+ const inventory = await this.ctx.remote.pluginInventory.list();
500
+ if (generation !== this.generation) return;
501
+ if (!inventory.ok) {
502
+ this.patch({ status: "error" });
503
+ continue;
504
+ }
505
+ if (inventory.value.managementAvailable !== true) {
506
+ this.patch({
507
+ status: "unavailable",
508
+ packages: []
509
+ });
510
+ continue;
511
+ }
512
+ const [bundles, plugins] = await Promise.all([this.ctx.remote.pluginManager.listBundles(), this.ctx.remote.pluginManager.listPlugins()]);
513
+ if (generation !== this.generation) return;
514
+ if (!bundles.ok || !plugins.ok) {
515
+ this.patch({ status: "error" });
516
+ continue;
517
+ }
518
+ this.patch({
519
+ status: "ready",
520
+ packages: sortPackages(bundles.value.map((bundle) => packageView(bundle, plugins.value)))
521
+ });
522
+ } while (this.shouldRerun());
523
+ } finally {
524
+ this.inFlight = void 0;
525
+ }
526
+ }
527
+ shouldRerun() {
528
+ return this.rerun;
529
+ }
530
+ async confirm() {
531
+ const pending = this.pendingConfirm;
532
+ this.pendingConfirm = void 0;
533
+ this.patch({ confirm: null });
534
+ if (pending !== void 0) await pending();
535
+ }
536
+ /** Drop the check in flight; its answer is ignored. */
537
+ abortInspect() {
538
+ this.inspectAbort?.abort();
539
+ this.inspectAbort = void 0;
540
+ }
541
+ /** Whether a settlement arrives too late to matter: the store is disposed, or the dialog moved on. */
542
+ gone(signal) {
543
+ return this.disposed || signal.aborted;
544
+ }
545
+ /**
546
+ * Check the typed spec, then install it. The Host reads what the spec
547
+ * names first; a refused spec returns to the field with the reason, an
548
+ * accepted one becomes the subject the next screens show while pnpm runs.
549
+ */
550
+ async runInstall() {
551
+ const state = this.getSnapshot();
552
+ const install = state.install;
553
+ const spec = install.spec.trim();
554
+ if (install.phase === "checking" || isInstallPending(install.phase) || spec === "") return;
555
+ if (state.packages.some((pkg) => pkg.name === spec)) {
556
+ this.patchInstall({
557
+ phase: "idle",
558
+ inputError: {
559
+ problem: "already-installed",
560
+ reason: spec
561
+ }
562
+ });
563
+ return;
564
+ }
565
+ this.abortInspect();
566
+ const controller = new AbortController();
567
+ this.inspectAbort = controller;
568
+ this.patchInstall({
569
+ phase: "checking",
570
+ inputError: null,
571
+ subject: null,
572
+ runs: [],
573
+ detailsOpen: false,
574
+ installed: null,
575
+ restartRequired: false,
576
+ failure: null,
577
+ approvedBuilds: []
578
+ });
579
+ const inspected = await this.ctx.remote.pluginManager.inspect(spec, controller.signal);
580
+ if (this.gone(controller.signal)) return;
581
+ this.inspectAbort = void 0;
582
+ if (!inspected.ok) {
583
+ this.patchInstall({
584
+ phase: "idle",
585
+ inputError: {
586
+ problem: "unknown",
587
+ reason: inspected.error.message
588
+ }
589
+ });
590
+ return;
591
+ }
592
+ if (inspected.value.status === "refused") {
593
+ this.patchInstall({
594
+ phase: "idle",
595
+ inputError: {
596
+ problem: inspected.value.problem,
597
+ reason: inspected.value.reason
598
+ }
599
+ });
600
+ return;
601
+ }
602
+ await this.startInstall({
603
+ spec,
604
+ ...inspected.value
605
+ });
606
+ }
607
+ /**
608
+ * Hand the checked spec to the Host and settle the dialog from its answer.
609
+ * `approvedBuilds` names the pending install scripts the person allowed;
610
+ * the Host saves that permission for this profile before pnpm runs.
611
+ */
612
+ async startInstall(subject, approvedBuilds) {
613
+ const { spec } = subject;
614
+ const requestId = randomUUID();
615
+ this.patchInstall({
616
+ phase: "starting",
617
+ requestId,
618
+ subject,
619
+ runs: [],
620
+ failure: null,
621
+ installed: null,
622
+ approvedBuilds: []
623
+ });
624
+ const result = await this.ctx.remote.pluginManager.installBundle(spec, {
625
+ enabled: false,
626
+ requestId,
627
+ ...approvedBuilds === void 0 ? {} : { approvedBuilds: [...approvedBuilds] }
628
+ });
629
+ if (this.disposed || this.getSnapshot().install.requestId !== requestId) return;
630
+ const runs = this.getSnapshot().install.runs;
631
+ if (!result.ok) this.patchInstall({
632
+ phase: "failed",
633
+ runs: settledRuns(runs, null),
634
+ failure: { reason: result.error.message }
635
+ });
636
+ else if (result.value.application === "cancelled") this.offerSpecAgain({
637
+ kind: "cancelled",
638
+ seq: ++this.noticeSeq
639
+ });
640
+ else if (result.value.application === "failed") {
641
+ const packages = result.value.packageResult;
642
+ this.patchInstall({
643
+ phase: "failed",
644
+ runs: settledRuns(runs, packages?.exitCode ?? null),
645
+ failure: failureOf(result.value.error, packages?.kind, result.value.pendingBuilds)
646
+ });
647
+ } else this.patchInstall({
648
+ phase: "done",
649
+ runs: settledRuns(runs, 0),
650
+ installed: result.value.bundle ?? null,
651
+ restartRequired: result.value.application === "restart-required",
652
+ approvedBuilds: result.value.approvedBuilds ?? []
653
+ });
654
+ this.load();
655
+ }
656
+ /**
657
+ * Allow the install scripts the failed run left pending and run the same
658
+ * spec again. Only the failed screen with pending names offers this.
659
+ */
660
+ async approveBuildsAndRetry() {
661
+ const install = this.getSnapshot().install;
662
+ const pending = install.failure?.pendingBuilds;
663
+ if (install.phase !== "failed" || install.subject === null || pending === void 0 || pending.length === 0) return;
664
+ await this.startInstall(install.subject, pending);
665
+ }
666
+ /**
667
+ * Leave the check or the failed screen for the spec at once; a Host-owned
668
+ * run is asked to stop and the dialog waits for the Host's word, since
669
+ * neither a dropped RPC nor a closed connection means pnpm has stopped.
670
+ * @param closeAfter - stop only a running install, and close the dialog once the Host confirms the stop.
671
+ */
672
+ async cancelInstall(closeAfter = false) {
673
+ const install = this.getSnapshot().install;
674
+ if (!closeAfter && (install.phase === "checking" || install.phase === "failed")) {
675
+ this.abortInspect();
676
+ this.offerSpecAgain();
677
+ return;
678
+ }
679
+ if (install.phase !== "running" || install.requestId === void 0) return;
680
+ const requestId = install.requestId;
681
+ this.patchInstall({
682
+ phase: "cancelling",
683
+ failure: null
684
+ });
685
+ const result = await this.ctx.remote.pluginManager.cancelInstall(requestId);
686
+ const current = this.getSnapshot().install;
687
+ if (this.disposed || current.requestId !== requestId || !isInstallPending(current.phase)) return;
688
+ if (!result.ok) {
689
+ this.patchInstall({
690
+ phase: "running",
691
+ failure: {
692
+ reason: result.error.message,
693
+ cancelUnconfirmed: true
694
+ }
695
+ });
696
+ return;
697
+ }
698
+ if (result.value.status === "cancelled") {
699
+ const notice = {
700
+ kind: "cancelled",
701
+ seq: ++this.noticeSeq
702
+ };
703
+ if (closeAfter) this.patch({
704
+ install: IDLE_INSTALL,
705
+ notice
706
+ });
707
+ else this.offerSpecAgain(notice);
708
+ this.load();
709
+ } else if (result.value.status === "too-late") this.patchInstall({ phase: "applying" });
710
+ else this.patchInstall({
711
+ phase: "running",
712
+ failure: {
713
+ reason: "",
714
+ cancelUnconfirmed: true
715
+ }
716
+ });
717
+ }
718
+ /**
719
+ * Back to the spec: the check, the run, and its request are forgotten and
720
+ * the spec is kept, with a toast when there is something to say — the Host
721
+ * stopped the run.
722
+ */
723
+ offerSpecAgain(notice = null) {
724
+ const { open, spec } = this.getSnapshot().install;
725
+ this.patch({
726
+ install: {
727
+ ...IDLE_INSTALL,
728
+ open,
729
+ spec
730
+ },
731
+ ...notice === null ? {} : { notice }
732
+ });
733
+ }
734
+ /**
735
+ * Enable the bundle the finished install added, then close the dialog and
736
+ * mark it in the list. A refusal toasts and still closes: the list shows
737
+ * what did not switch on.
738
+ */
739
+ async enableInstalled() {
740
+ const install = this.getSnapshot().install;
741
+ if (install.phase !== "done" || install.enabling) return;
742
+ const name = install.installed;
743
+ this.patchInstall({ enabling: true });
744
+ if (name !== null) {
745
+ const result = await this.ctx.remote.pluginManager.setBundleEnabled(name, true);
746
+ if (this.disposed) return;
747
+ try {
748
+ this.applied(result, name);
749
+ } catch (error) {
750
+ this.patch({ notice: failedNotice(error, {
751
+ packageName: name,
752
+ action: "enable"
753
+ }, ++this.noticeSeq) });
754
+ }
755
+ }
756
+ this.patch({
757
+ install: IDLE_INSTALL,
758
+ highlight: name
759
+ });
760
+ await this.load();
761
+ }
762
+ /**
763
+ * Run one action under a busy key, turn its failure into the notice, and
764
+ * re-read the Host afterwards whatever happened.
765
+ */
766
+ async run(key, subject, action) {
767
+ if (this.disposed || this.getSnapshot().busy.includes(key)) return;
768
+ this.patch({
769
+ busy: [...this.getSnapshot().busy, key],
770
+ notice: null
771
+ });
772
+ try {
773
+ await action();
774
+ } catch (error) {
775
+ this.patch({ notice: failedNotice(error, subject, ++this.noticeSeq) });
776
+ } finally {
777
+ this.patch({ busy: this.getSnapshot().busy.filter((entry) => entry !== key) });
778
+ }
779
+ await this.load();
780
+ }
781
+ /**
782
+ * Publish a change's outcome: a refused answer or a change the Host could
783
+ * not apply throws for {@link run} to report; a change that waits for the
784
+ * next start, that a higher layer overrides, or that the Host stopped is
785
+ * said in passing.
786
+ */
787
+ applied(answer, packageName) {
788
+ if (!answer.ok) throw new RemoteAnswerError(answer.error.message);
789
+ const result = answer.value;
790
+ switch (result.application) {
791
+ case "failed": throw new RemoteAnswerError(result.error?.diagnostic ?? "", result.error?.code);
792
+ case "cancelled":
793
+ this.patch({ notice: {
794
+ kind: "cancelled",
795
+ seq: ++this.noticeSeq
796
+ } });
797
+ return;
798
+ case "restart-required":
799
+ this.patch({ notice: {
800
+ kind: "restart",
801
+ packageName,
802
+ seq: ++this.noticeSeq
803
+ } });
804
+ return;
805
+ case "overridden":
806
+ this.patch({ notice: {
807
+ kind: "overridden",
808
+ packageName,
809
+ seq: ++this.noticeSeq
810
+ } });
811
+ return;
812
+ case "applied": return;
813
+ }
814
+ }
815
+ patch(next) {
816
+ if (this.disposed) return;
817
+ this.store.set({
818
+ ...this.getSnapshot(),
819
+ ...next
820
+ });
821
+ }
822
+ patchInstall(next) {
823
+ this.patch({ install: {
824
+ ...this.getSnapshot().install,
825
+ ...next
826
+ } });
827
+ }
828
+ };
829
+ /** What a thrown failure said: a refused answer's reason, else the error's message. */
830
+ function reasonOf(error) {
831
+ return error instanceof Error ? error.message : String(error);
832
+ }
833
+ //#endregion
834
+ //#region \0dsh-css:/Users/songli/deepseek-harness/packages/client/ui-plugin-manager/src/client/PluginManagerPage.module.css.mjs
835
+ const css = ".-\\34 UeZq_page{box-sizing:border-box;height:100%;color:var(--dsw-alias-label-primary);flex-direction:column;align-items:center;gap:32px;padding:28px clamp(24px,4vw,48px) 48px;display:flex;overflow:auto}.-\\34 UeZq_page>*{width:100%;max-width:960px}.-\\34 UeZq_pageHead{justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.-\\34 UeZq_pageTitle{margin:0;font-size:20px;font-weight:500;line-height:28px}.-\\34 UeZq_pageIntro{color:var(--dsw-alias-label-secondary);margin:4px 0 0;font-size:13px;line-height:20px}.-\\34 UeZq_toolbar{justify-content:flex-end;align-items:center;gap:16px;display:flex}.-\\34 UeZq_status,.-\\34 UeZq_failure p,.-\\34 UeZq_empty{color:var(--dsw-alias-label-tertiary);margin:0;font-size:13px;line-height:20px}.-\\34 UeZq_failure{color:var(--dsw-alias-state-error-primary);align-items:center;gap:10px;display:flex}.-\\34 UeZq_banner{background:color-mix(in srgb, var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary)) 12%, transparent);color:var(--dsw-alias-label-primary);border-radius:10px;margin:0;padding:8px 12px;font-size:12px;line-height:18px}.-\\34 UeZq_group{flex-direction:column;gap:8px;display:flex}.-\\34 UeZq_groupHead{align-items:baseline;gap:8px;display:flex}.-\\34 UeZq_groupTitle{margin:0;font-size:14px;font-weight:500;line-height:22px}.-\\34 UeZq_count{color:var(--dsw-alias-label-caption);font-variant-numeric:tabular-nums;font-size:14px}.-\\34 UeZq_groupInfo{color:var(--dsw-alias-label-caption);align-self:center;align-items:center;display:inline-flex}.-\\34 UeZq_groupInfo:hover,.-\\34 UeZq_groupInfo:focus-visible{color:var(--dsw-alias-label-secondary)}.-\\34 UeZq_statusTag{height:20px;padding:0 8px;line-height:1}.-\\34 UeZq_card[data-plugin-highlight]{animation:2.4s ease-out -\\34 UeZq_dsh-plugin-highlight}@keyframes -\\34 UeZq_dsh-plugin-highlight{0%,55%{box-shadow:0 0 0 2px var(--dsw-alias-state-business-primary)}to{box-shadow:0 0 #0000}}@media (prefers-reduced-motion:reduce){.-\\34 UeZq_card[data-plugin-highlight]{box-shadow:0 0 0 2px var(--dsw-alias-state-business-primary);animation:none}}.-\\34 UeZq_iconButton:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.-\\34 UeZq_cards{flex-direction:column;gap:2px;margin:0;padding:0;list-style:none;display:flex}.-\\34 UeZq_card{--dsh-scrollbar-thumb:var(--dsw-alias-scrollbar-bg-l2);--dsh-scrollbar-thumb-hover:var(--dsw-alias-scrollbar-hover-l2);border-radius:12px;min-width:0;margin:0 -8px}.-\\34 UeZq_cardHead{align-items:center;gap:14px;padding:8px;display:flex}.-\\34 UeZq_cardIcon{border:.5px solid var(--dsw-alias-border-l3);width:48px;height:48px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}.-\\34 UeZq_cardMain{flex-direction:column;flex:1;gap:4px;min-width:0;display:flex}.-\\34 UeZq_titleRow{flex-wrap:wrap;align-items:center;gap:8px;min-width:0;display:flex}.-\\34 UeZq_cardTitle{text-overflow:ellipsis;white-space:nowrap;font-size:14px;font-weight:500;line-height:20px;overflow:hidden}.-\\34 UeZq_cardLink{position:relative}.-\\34 UeZq_cardLink:hover{background:var(--dsw-alias-interactive-bg-hover)}.-\\34 UeZq_cardOpen{max-width:100%;color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;padding:0;font-weight:500}.-\\34 UeZq_cardOpen:after{content:\"\";border-radius:12px;position:absolute;inset:0}.-\\34 UeZq_cardOpen:focus-visible{outline:none}.-\\34 UeZq_cardOpen:focus-visible:after{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.-\\34 UeZq_cardDesc{color:var(--dsw-alias-label-tertiary);-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:13px;line-height:18px;display:-webkit-box;overflow:hidden}.-\\34 UeZq_cardEnd{z-index:1;flex:none;align-items:center;gap:8px;display:inline-flex;position:relative}.-\\34 UeZq_iconButton{width:28px;height:28px;color:var(--dsw-alias-label-caption);cursor:pointer;background:0 0;border:0;border-radius:28px;justify-content:center;align-items:center;display:inline-flex}.-\\34 UeZq_iconButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover);color:var(--dsw-alias-label-secondary)}.-\\34 UeZq_iconButton:disabled{opacity:.5;cursor:default}.-\\34 UeZq_iconWrap{display:inline-flex}.-\\34 UeZq_danger{color:var(--dsw-alias-state-error-primary);border-color:color-mix(in srgb, var(--dsw-alias-state-error-primary) 30%, transparent);--dsw-alias-interactive-bg-hover:color-mix(in srgb, var(--dsw-alias-state-error-primary) 8%, transparent)}.-\\34 UeZq_detailActions{flex:none;align-items:center;gap:16px;display:flex}.-\\34 UeZq_actions{align-items:center;gap:16px;display:flex}.-\\34 UeZq_deleteButton{width:28px;height:28px;color:var(--dsw-alias-state-error-primary);cursor:pointer;background:0 0;border:0;border-radius:8px;justify-content:center;align-items:center;display:inline-flex}.-\\34 UeZq_deleteButton:hover:not(:disabled){background:var(--dsw-alias-interactive-bg-hover-danger,var(--dsw-alias-interactive-bg-hover))}.-\\34 UeZq_deleteButton:disabled{opacity:.5;cursor:default}.-\\34 UeZq_deleteButton:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.-\\34 UeZq_reason{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;white-space:pre-wrap;margin:0;font-size:12px;line-height:18px}.-\\34 UeZq_partsHead .-\\34 UeZq_subLabel{margin:0}.-\\34 UeZq_partsFilter{width:200px}.-\\34 UeZq_partsFilter:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:1px}.-\\34 UeZq_installDialog{width:min(600px,100%);max-height:calc(100vh - 48px)}.-\\34 UeZq_installBody{flex-direction:column;gap:12px;min-width:0;display:flex}.-\\34 UeZq_installLocation{color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;margin:0;font-size:12px;line-height:18px}.-\\34 UeZq_installField{flex-direction:column;gap:6px;font-size:13px;display:flex}.-\\34 UeZq_installField input[type=text]{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-3);height:36px;font:inherit;color:var(--dsw-alias-label-primary);border-radius:10px;padding:0 12px;font-size:13px}.-\\34 UeZq_installField input[aria-invalid=true]{border-color:var(--dsw-alias-state-error-primary)}.-\\34 UeZq_guideToggle{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:4px;padding:0;font-size:12.5px;display:inline-flex}.-\\34 UeZq_guideToggle:hover{color:var(--dsw-alias-label-primary)}.-\\34 UeZq_guideChevron{transition:transform .16s}.-\\34 UeZq_guideToggle[aria-expanded=true] .-\\34 UeZq_guideChevron{transform:rotate(180deg)}.-\\34 UeZq_guide{border:.5px solid var(--dsw-alias-border-l4);background:var(--dsw-alias-bg-layer-1);border-radius:12px;flex-direction:column;gap:10px;padding:12px 14px;display:flex}.-\\34 UeZq_guideIntro,.-\\34 UeZq_guideHint{color:var(--dsw-alias-label-tertiary);margin:0;font-size:12px;line-height:18px}.-\\34 UeZq_guideSafety{background:color-mix(in srgb, var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary)) 12%, transparent);color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary));border-radius:8px;align-items:flex-start;gap:6px;margin:0;padding:8px 10px;font-size:12px;line-height:18px;display:flex}.-\\34 UeZq_guideSafety>svg{flex:none;margin-top:2px}.-\\34 UeZq_guideNote{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-secondary);border-radius:8px;margin:0;padding:8px 10px;font-size:12px;line-height:18px}.-\\34 UeZq_guideList{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.-\\34 UeZq_guideItem{border-top:.5px solid var(--dsw-alias-border-l4);align-items:flex-start;gap:10px;padding:8px 0;display:flex}.-\\34 UeZq_guideIndex{corner-shape:round;background:var(--dsw-alias-bg-layer-3);text-align:center;width:20px;height:20px;color:var(--dsw-alias-label-tertiary);border-radius:999px;flex:none;font-size:11px;line-height:20px}.-\\34 UeZq_guideMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.-\\34 UeZq_guideTitle{color:var(--dsw-alias-label-primary);font-size:12.5px;font-weight:600}.-\\34 UeZq_guideExample{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;font-size:12px}.-\\34 UeZq_guideExample code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace)}.-\\34 UeZq_guideExampleLabel{color:var(--dsw-alias-label-tertiary)}.-\\34 UeZq_inputError{color:var(--dsw-alias-state-error-primary);margin:-4px 0 0;font-size:12px;line-height:18px}.-\\34 UeZq_wide{justify-content:center;width:100%}.-\\34 UeZq_wizard{flex-direction:column;flex:auto;gap:16px;min-width:0;min-height:0;padding:16px 20px 20px;display:flex}.-\\34 UeZq_wizardScroll{flex-direction:column;flex:auto;gap:16px;min-height:0;display:flex;overflow-y:auto}.-\\34 UeZq_wizardHead{justify-content:space-between;align-items:center;min-height:24px;display:flex}.-\\34 UeZq_wizardBack{font:inherit;color:var(--dsw-alias-label-primary);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:15px;font-weight:600;display:inline-flex}.-\\34 UeZq_wizardClose{width:24px;height:24px;color:var(--dsw-alias-label-tertiary);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex}.-\\34 UeZq_wizardClose:hover{background:var(--dsw-alias-bg-layer-3);color:var(--dsw-alias-label-primary)}.-\\34 UeZq_wizardHero{text-align:center;flex-direction:column;align-items:center;gap:10px;padding:8px 0 4px;display:flex}.-\\34 UeZq_wizardIcon{width:44px;height:44px;color:var(--dsw-alias-label-secondary);justify-content:center;align-items:center;display:inline-flex}.-\\34 UeZq_wizardIcon[data-tone=done]{color:var(--dsw-alias-state-success-primary)}.-\\34 UeZq_wizardIcon[data-tone=failed]{color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary))}.-\\34 UeZq_wizardTitle{margin:0;font-size:18px;font-weight:600;line-height:26px}.-\\34 UeZq_wizardSub{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;font-size:13px;line-height:20px}.-\\34 UeZq_subject{border:.5px solid var(--dsw-alias-border-l3);text-align:center;border-radius:12px;flex-direction:column;align-items:center;gap:6px;padding:16px;display:flex}.-\\34 UeZq_subjectName{overflow-wrap:anywhere;margin:0;font-size:15px;font-weight:600;line-height:22px}.-\\34 UeZq_subjectDesc,.-\\34 UeZq_subjectMeta{color:var(--dsw-alias-label-secondary);overflow-wrap:anywhere;margin:0;font-size:13px;line-height:20px}.-\\34 UeZq_wizardFoot{justify-content:space-between;align-items:center;gap:12px;display:flex}.-\\34 UeZq_detailsToggle{font:inherit;color:var(--dsw-alias-label-secondary);cursor:pointer;background:0 0;border:0;align-items:center;gap:4px;padding:0;font-size:13px;display:inline-flex}.-\\34 UeZq_detailsChevron{transition:transform .16s}.-\\34 UeZq_detailsToggle[aria-expanded=true] .-\\34 UeZq_detailsChevron{transform:rotate(180deg)}.-\\34 UeZq_detailsBody{flex-direction:column;gap:8px;min-width:0;display:flex}.-\\34 UeZq_spinnerLarge{border:3px solid color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);border-top-color:var(--dsw-alias-label-primary);corner-shape:round;border-radius:50%;width:28px;height:28px;animation:.9s linear infinite -\\34 UeZq_spin}.-\\34 UeZq_spinner{border:2px solid color-mix(in srgb, var(--dsw-alias-label-primary) 18%, transparent);border-top-color:var(--dsw-alias-label-primary);corner-shape:round;border-radius:50%;flex:none;width:14px;height:14px;animation:.9s linear infinite -\\34 UeZq_spin}@keyframes -\\34 UeZq_spin{to{transform:rotate(360deg)}}@media (prefers-reduced-motion:reduce){.-\\34 UeZq_spinner,.-\\34 UeZq_spinnerLarge{animation:none}.-\\34 UeZq_detailsChevron{transition:none}}.-\\34 UeZq_result,.-\\34 UeZq_resultWarn{background:color-mix(in srgb, var(--dsw-alias-state-success-primary) 10%, transparent);color:var(--dsw-alias-label-primary);border-radius:10px;margin:0;padding:8px 12px;font-size:13px;line-height:20px}.-\\34 UeZq_resultWarn{background:color-mix(in srgb, var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary)) 12%, transparent)}.-\\34 UeZq_approval{border:.5px solid color-mix(in srgb, var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary)) 40%, transparent);background:color-mix(in srgb, var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary)) 8%, transparent);border-radius:12px;flex-direction:column;gap:8px;padding:12px 14px;display:flex}.-\\34 UeZq_approvalTitle{color:var(--dsw-alias-label-primary);margin:0;font-size:13px;font-weight:600}.-\\34 UeZq_approvalText{color:var(--dsw-alias-label-secondary);margin:0;font-size:12.5px;line-height:18px}.-\\34 UeZq_approvalCaution{color:var(--dsw-alias-state-warning-primary,var(--dsw-alias-state-business-primary));margin:0;font-size:12.5px;font-weight:600;line-height:18px}.-\\34 UeZq_approvalList{flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none;display:flex}.-\\34 UeZq_approvalList code{background:var(--dsw-alias-bg-layer-3);font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-primary);border-radius:6px;padding:2px 8px;font-size:12px;display:inline-block}.-\\34 UeZq_terminal{--dsl-terminal-font:var(--dsw-font-markdown-code-block-small);--dsl-terminal-line-height:18px;--dsl-terminal-output-max-height:240px;border:.5px solid var(--dsw-alias-border-l1);margin:4px 0 0}.-\\34 UeZq_dependents{color:var(--dsw-alias-label-secondary);margin:8px 0 0;padding-left:18px;font-size:13px;line-height:20px}.-\\34 UeZq_dangerButton{--dsw-alias-button-primary-fill:var(--dsw-alias-state-error-primary);--dsw-alias-button-primary-hover:var(--dsw-alias-state-error-primary)}.-\\34 UeZq_detail{flex-direction:column;display:flex}.-\\34 UeZq_crumb{color:var(--dsw-alias-label-tertiary);font:inherit;cursor:pointer;background:0 0;border:0;align-items:center;gap:6px;padding:0;font-size:12.5px;display:inline-flex}.-\\34 UeZq_crumb:hover{color:var(--dsw-alias-label-primary)}.-\\34 UeZq_crumb:focus-visible{outline:2px solid var(--dsw-alias-brand-primary);outline-offset:2px}.-\\34 UeZq_crumbIcon{transform:rotate(90deg)}.-\\34 UeZq_detailHead{justify-content:space-between;align-items:center;gap:12px;margin:32px 0 0;display:flex}.-\\34 UeZq_detailMain{flex-direction:column;gap:8px;min-width:0;margin-top:20px;display:flex}.-\\34 UeZq_detailTitle{margin:0;font-size:20px;font-weight:500;line-height:28px}.-\\34 UeZq_versionTag{font-variant-numeric:tabular-nums;flex:none}.-\\34 UeZq_detailDesc{color:var(--dsw-alias-label-secondary);margin:0;font-size:14px;line-height:22px}.-\\34 UeZq_detailName{color:var(--dsw-alias-label-caption);overflow-wrap:anywhere;margin:0;font-size:12px;line-height:18px}.-\\34 UeZq_detailName code{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace)}.-\\34 UeZq_detail>.-\\34 UeZq_detailDesc{margin-top:12px}.-\\34 UeZq_detailSections{flex-direction:column;gap:32px;margin-top:32px;display:flex}.-\\34 UeZq_detailSection{flex-direction:column;gap:12px;display:flex}.-\\34 UeZq_sectionHead{align-items:baseline;gap:10px;display:flex}.-\\34 UeZq_sectionTitle{margin:0;font-size:14px;font-weight:500;line-height:20px}.-\\34 UeZq_sectionCount{color:var(--dsw-alias-label-secondary);font-size:12px;line-height:18px}.-\\34 UeZq_cardArrow{color:var(--dsw-alias-label-tertiary);flex:none}.-\\34 UeZq_rows{flex-direction:column;margin:0;padding:0;list-style:none;display:flex}.-\\34 UeZq_row{border-bottom:.5px solid var(--dsw-alias-border-l2);padding:12px 2px}.-\\34 UeZq_row:last-child{border-bottom:0}.-\\34 UeZq_rowLine{align-items:center;gap:16px;min-width:0;display:flex}.-\\34 UeZq_rowIcon{border:.5px solid var(--dsw-alias-border-l3);width:40px;height:40px;color:var(--dsw-alias-label-secondary);border-radius:10px;flex:none;justify-content:center;align-items:center;display:inline-flex}.-\\34 UeZq_rowMain{flex-direction:column;flex:1;gap:2px;min-width:0;display:flex}.-\\34 UeZq_rowId{color:var(--dsw-alias-label-primary);overflow-wrap:anywhere;font-size:13.5px;font-weight:500;line-height:20px}.-\\34 UeZq_row[data-state=off] .-\\34 UeZq_rowId{color:var(--dsw-alias-label-secondary)}.-\\34 UeZq_rowModule{font-family:var(--dsw-font-mono,ui-monospace, SFMono-Regular, Menlo, monospace);color:var(--dsw-alias-label-tertiary);overflow-wrap:anywhere;font-size:11.5px;line-height:16px}.-\\34 UeZq_rowOpen{color:inherit;font:inherit;text-align:left;cursor:pointer;background:0 0;border:0;align-items:center;gap:2px;padding:0;display:inline-flex}.-\\34 UeZq_rowOpen:hover .-\\34 UeZq_rowId{text-underline-offset:3px;text-decoration:underline}.-\\34 UeZq_rowOpenIcon{color:var(--dsw-alias-label-tertiary);flex:none}.-\\34 UeZq_rowOpen:hover .-\\34 UeZq_rowOpenIcon{color:var(--dsw-alias-label-primary)}.-\\34 UeZq_rowState{color:var(--dsw-alias-label-secondary);white-space:nowrap;flex:none;align-items:center;gap:6px;font-size:12.5px;line-height:18px;display:inline-flex}.-\\34 UeZq_row[data-state=failed] .-\\34 UeZq_rowState{color:var(--dsw-alias-state-error-primary)}.-\\34 UeZq_rowFailure{color:var(--dsw-alias-state-error-primary);overflow-wrap:anywhere;margin:4px 0 0 56px;font-size:12px;line-height:18px}";
836
+ const tagId = "@deepseek-ai/dsh-client-ui-plugin-manager/PluginManagerPage.module.css";
837
+ if (typeof document !== "undefined" && document.querySelector("style[data-plugin-css=" + JSON.stringify(tagId) + "]") === null) {
838
+ const tag = document.createElement("style");
839
+ tag.dataset.plugin = "@deepseek-ai/dsh-client-ui-plugin-manager";
840
+ tag.dataset.pluginCss = tagId;
841
+ tag.textContent = css;
842
+ document.head.appendChild(tag);
843
+ }
844
+ var PluginManagerPage_module_css_default = {
845
+ "actions": "-4UeZq_actions",
846
+ "approval": "-4UeZq_approval",
847
+ "approvalCaution": "-4UeZq_approvalCaution",
848
+ "approvalList": "-4UeZq_approvalList",
849
+ "approvalText": "-4UeZq_approvalText",
850
+ "approvalTitle": "-4UeZq_approvalTitle",
851
+ "banner": "-4UeZq_banner",
852
+ "card": "-4UeZq_card",
853
+ "cardArrow": "-4UeZq_cardArrow",
854
+ "cardDesc": "-4UeZq_cardDesc",
855
+ "cardEnd": "-4UeZq_cardEnd",
856
+ "cardHead": "-4UeZq_cardHead",
857
+ "cardIcon": "-4UeZq_cardIcon",
858
+ "cardLink": "-4UeZq_cardLink",
859
+ "cardMain": "-4UeZq_cardMain",
860
+ "cardOpen": "-4UeZq_cardOpen",
861
+ "cardTitle": "-4UeZq_cardTitle",
862
+ "cards": "-4UeZq_cards",
863
+ "count": "-4UeZq_count",
864
+ "crumb": "-4UeZq_crumb",
865
+ "crumbIcon": "-4UeZq_crumbIcon",
866
+ "danger": "-4UeZq_danger",
867
+ "dangerButton": "-4UeZq_dangerButton",
868
+ "deleteButton": "-4UeZq_deleteButton",
869
+ "dependents": "-4UeZq_dependents",
870
+ "detail": "-4UeZq_detail",
871
+ "detailActions": "-4UeZq_detailActions",
872
+ "detailDesc": "-4UeZq_detailDesc",
873
+ "detailHead": "-4UeZq_detailHead",
874
+ "detailMain": "-4UeZq_detailMain",
875
+ "detailName": "-4UeZq_detailName",
876
+ "detailSection": "-4UeZq_detailSection",
877
+ "detailSections": "-4UeZq_detailSections",
878
+ "detailTitle": "-4UeZq_detailTitle",
879
+ "detailsBody": "-4UeZq_detailsBody",
880
+ "detailsChevron": "-4UeZq_detailsChevron",
881
+ "detailsToggle": "-4UeZq_detailsToggle",
882
+ "dsh-plugin-highlight": "-4UeZq_dsh-plugin-highlight",
883
+ "empty": "-4UeZq_empty",
884
+ "failure": "-4UeZq_failure",
885
+ "group": "-4UeZq_group",
886
+ "groupHead": "-4UeZq_groupHead",
887
+ "groupInfo": "-4UeZq_groupInfo",
888
+ "groupTitle": "-4UeZq_groupTitle",
889
+ "guide": "-4UeZq_guide",
890
+ "guideChevron": "-4UeZq_guideChevron",
891
+ "guideExample": "-4UeZq_guideExample",
892
+ "guideExampleLabel": "-4UeZq_guideExampleLabel",
893
+ "guideHint": "-4UeZq_guideHint",
894
+ "guideIndex": "-4UeZq_guideIndex",
895
+ "guideIntro": "-4UeZq_guideIntro",
896
+ "guideItem": "-4UeZq_guideItem",
897
+ "guideList": "-4UeZq_guideList",
898
+ "guideMain": "-4UeZq_guideMain",
899
+ "guideNote": "-4UeZq_guideNote",
900
+ "guideSafety": "-4UeZq_guideSafety",
901
+ "guideTitle": "-4UeZq_guideTitle",
902
+ "guideToggle": "-4UeZq_guideToggle",
903
+ "iconButton": "-4UeZq_iconButton",
904
+ "iconWrap": "-4UeZq_iconWrap",
905
+ "inputError": "-4UeZq_inputError",
906
+ "installBody": "-4UeZq_installBody",
907
+ "installDialog": "-4UeZq_installDialog",
908
+ "installField": "-4UeZq_installField",
909
+ "installLocation": "-4UeZq_installLocation",
910
+ "page": "-4UeZq_page",
911
+ "pageHead": "-4UeZq_pageHead",
912
+ "pageIntro": "-4UeZq_pageIntro",
913
+ "pageTitle": "-4UeZq_pageTitle",
914
+ "partsFilter": "-4UeZq_partsFilter",
915
+ "partsHead": "-4UeZq_partsHead",
916
+ "reason": "-4UeZq_reason",
917
+ "result": "-4UeZq_result",
918
+ "resultWarn": "-4UeZq_resultWarn",
919
+ "row": "-4UeZq_row",
920
+ "rowFailure": "-4UeZq_rowFailure",
921
+ "rowIcon": "-4UeZq_rowIcon",
922
+ "rowId": "-4UeZq_rowId",
923
+ "rowLine": "-4UeZq_rowLine",
924
+ "rowMain": "-4UeZq_rowMain",
925
+ "rowModule": "-4UeZq_rowModule",
926
+ "rowOpen": "-4UeZq_rowOpen",
927
+ "rowOpenIcon": "-4UeZq_rowOpenIcon",
928
+ "rowState": "-4UeZq_rowState",
929
+ "rows": "-4UeZq_rows",
930
+ "sectionCount": "-4UeZq_sectionCount",
931
+ "sectionHead": "-4UeZq_sectionHead",
932
+ "sectionTitle": "-4UeZq_sectionTitle",
933
+ "spin": "-4UeZq_spin",
934
+ "spinner": "-4UeZq_spinner",
935
+ "spinnerLarge": "-4UeZq_spinnerLarge",
936
+ "status": "-4UeZq_status",
937
+ "statusTag": "-4UeZq_statusTag",
938
+ "subLabel": "-4UeZq_subLabel",
939
+ "subject": "-4UeZq_subject",
940
+ "subjectDesc": "-4UeZq_subjectDesc",
941
+ "subjectMeta": "-4UeZq_subjectMeta",
942
+ "subjectName": "-4UeZq_subjectName",
943
+ "terminal": "-4UeZq_terminal",
944
+ "titleRow": "-4UeZq_titleRow",
945
+ "toolbar": "-4UeZq_toolbar",
946
+ "versionTag": "-4UeZq_versionTag",
947
+ "wide": "-4UeZq_wide",
948
+ "wizard": "-4UeZq_wizard",
949
+ "wizardBack": "-4UeZq_wizardBack",
950
+ "wizardClose": "-4UeZq_wizardClose",
951
+ "wizardFoot": "-4UeZq_wizardFoot",
952
+ "wizardHead": "-4UeZq_wizardHead",
953
+ "wizardHero": "-4UeZq_wizardHero",
954
+ "wizardIcon": "-4UeZq_wizardIcon",
955
+ "wizardScroll": "-4UeZq_wizardScroll",
956
+ "wizardSub": "-4UeZq_wizardSub",
957
+ "wizardTitle": "-4UeZq_wizardTitle"
958
+ };
959
+ //#endregion
960
+ //#region lib/types/client/PluginManagerPage.js
961
+ /**
962
+ * Global plugin management: the Official group's cards for the bundles the
963
+ * installation ships switched off and for the official plugins that register
964
+ * their configuration, the Installed group's cards for the profile's bundles,
965
+ * their row switches, the install dialog with its guide and folded pnpm
966
+ * output, the uninstall confirmation, and the toasts an action's outcome
967
+ * becomes. A bundle's page lists the rows it contributes as the Host runs
968
+ * them; a plugin's configuration renders on its own page through the slots
969
+ * the page declares.
970
+ */
971
+ /** How long the list marks a package an install just enabled. */
972
+ const HIGHLIGHT_MS = 2400;
973
+ /** Built-in profile bundles stay out of this page even when the profile declares them as dependencies. */
974
+ const BUILTIN_PROFILE_BUNDLES = new Set([
975
+ "@deepseek-ai/dsh-base",
976
+ "@deepseek-ai/dsh-web-app",
977
+ "@deepseek-ai/dsh-headless",
978
+ "@deepseek-ai/dsh-sdk-app",
979
+ "@deepseek-ai/dsh-acp-app",
980
+ "@deepseek-ai/dsh-sdk-minimal"
981
+ ]);
982
+ /** How long a toast holds: long enough to read a failure that names what broke. */
983
+ function toastHoldMs(text) {
984
+ return Math.min(8e3, Math.max(3e3, text.length * 80));
985
+ }
986
+ const PHASE_KEYS = {
987
+ pending: "rowPhasePending",
988
+ loading: "rowPhaseLoading",
989
+ active: "rowPhaseActive",
990
+ failed: "rowPhaseFailed",
991
+ unloading: "rowPhaseUnloading"
992
+ };
993
+ /** Status dot naming a live root-fiber phase: pending and unloading fibers do nothing; only loading is in progress. */
994
+ const PHASE_STATES = {
995
+ pending: "idle",
996
+ loading: "ongoing",
997
+ active: "done",
998
+ failed: "error",
999
+ unloading: "idle"
1000
+ };
1001
+ /** The count line over a pack's components: the total, then only the states that occur. */
1002
+ function partsSummary(rows, t) {
1003
+ const failed = rows.filter((row) => row.phase === "failed").length;
1004
+ const off = rows.filter((row) => !row.enabled).length;
1005
+ const running = rows.filter((row) => row.enabled && row.phase === "active").length;
1006
+ return [
1007
+ t("partsCountTotal", { count: String(rows.length) }),
1008
+ ...running > 0 ? [t("partsCountRunning", { count: String(running) })] : [],
1009
+ ...off > 0 ? [t("partsCountOff", { count: String(off) })] : [],
1010
+ ...failed > 0 ? [t("partsCountFailed", { count: String(failed) })] : []
1011
+ ].join(" · ");
1012
+ }
1013
+ /** Rows beyond this count get a filter box above the list. */
1014
+ const ROW_FILTER_THRESHOLD = 10;
1015
+ /** A row's switch: locked, saying why, when the Host refuses to address the row through the profile patch. */
1016
+ function RowSwitch({ row, t, busy, onChange }) {
1017
+ const locked = row.readOnlyReason !== void 0 || row.entryId === void 0;
1018
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
1019
+ checked: row.enabled,
1020
+ label: t("partToggle", { name: row.rowId }),
1021
+ disabled: busy || locked,
1022
+ ...row.readOnlyReason === void 0 ? {} : { title: managementText({ code: row.readOnlyReason }, t) },
1023
+ onChange
1024
+ });
1025
+ }
1026
+ /** What a row's state line says: off, or the phase its fiber is in. */
1027
+ function rowStateText(row, t) {
1028
+ if (!row.enabled) return t("partOff");
1029
+ return row.phase === null ? t("rowStateIdle") : t(PHASE_KEYS[row.phase]);
1030
+ }
1031
+ /** The dot beside a row: its fiber phase, or idle. */
1032
+ function rowDotState(row) {
1033
+ if (!row.enabled || row.phase === null) return "idle";
1034
+ return PHASE_STATES[row.phase];
1035
+ }
1036
+ /**
1037
+ * A pack's rows as a list in the order the pack declares them: a state dot,
1038
+ * the row id, one line saying its state, a configure control for a row that
1039
+ * registered a page, and, when the pack is on, a switch. A pack like base
1040
+ * carries close to a hundred rows, so a long list gets a filter.
1041
+ */
1042
+ function RowsSection({ rows, t, toggle, configure }) {
1043
+ const [filter, setFilter] = (0, react.useState)("");
1044
+ const query = filter.trim().toLowerCase();
1045
+ const shown = query === "" ? rows : rows.filter((row) => row.rowId.toLowerCase().includes(query));
1046
+ return (0, react_jsx_runtime.jsxs)("section", {
1047
+ className: PluginManagerPage_module_css_default.detailSection,
1048
+ "data-plugin-rows": true,
1049
+ children: [
1050
+ (0, react_jsx_runtime.jsxs)("div", {
1051
+ className: PluginManagerPage_module_css_default.sectionHead,
1052
+ children: [(0, react_jsx_runtime.jsx)("h4", {
1053
+ className: PluginManagerPage_module_css_default.sectionTitle,
1054
+ children: t("partsLabel")
1055
+ }), rows.length === 0 ? null : (0, react_jsx_runtime.jsx)("span", {
1056
+ className: PluginManagerPage_module_css_default.sectionCount,
1057
+ children: partsSummary(rows, t)
1058
+ })]
1059
+ }),
1060
+ rows.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
1061
+ className: PluginManagerPage_module_css_default.status,
1062
+ children: t("partsEmpty")
1063
+ }) : null,
1064
+ rows.length > ROW_FILTER_THRESHOLD ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Input, {
1065
+ type: "search",
1066
+ className: PluginManagerPage_module_css_default.partsFilter,
1067
+ placeholder: t("partsFilter"),
1068
+ "aria-label": t("partsFilter"),
1069
+ value: filter,
1070
+ onChange: (event) => {
1071
+ setFilter(event.target.value);
1072
+ }
1073
+ }) : null,
1074
+ rows.length > 0 && shown.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
1075
+ className: PluginManagerPage_module_css_default.status,
1076
+ children: t("partsFilterEmpty")
1077
+ }) : null,
1078
+ shown.length === 0 ? null : (0, react_jsx_runtime.jsx)("ul", {
1079
+ className: PluginManagerPage_module_css_default.rows,
1080
+ children: shown.map((row) => (0, react_jsx_runtime.jsx)("li", {
1081
+ className: PluginManagerPage_module_css_default.row,
1082
+ "data-plugin-row": row.entryId ?? row.rowId,
1083
+ ...row.phase === "failed" ? { "data-state": "failed" } : row.enabled ? {} : { "data-state": "off" },
1084
+ children: (0, react_jsx_runtime.jsxs)("div", {
1085
+ className: PluginManagerPage_module_css_default.rowLine,
1086
+ children: [
1087
+ (0, react_jsx_runtime.jsx)("span", {
1088
+ className: PluginManagerPage_module_css_default.rowIcon,
1089
+ "aria-hidden": "true",
1090
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCordisPluginOutline14, {})
1091
+ }),
1092
+ (0, react_jsx_runtime.jsxs)("div", {
1093
+ className: PluginManagerPage_module_css_default.rowMain,
1094
+ children: [configure?.has(row) === true ? (0, react_jsx_runtime.jsxs)("button", {
1095
+ type: "button",
1096
+ className: PluginManagerPage_module_css_default.rowOpen,
1097
+ "aria-label": t("configureRow", { name: row.rowId }),
1098
+ onClick: () => {
1099
+ configure.open(row);
1100
+ },
1101
+ children: [(0, react_jsx_runtime.jsx)("span", {
1102
+ className: PluginManagerPage_module_css_default.rowId,
1103
+ children: row.rowId
1104
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronRightOutline14, {
1105
+ className: PluginManagerPage_module_css_default.rowOpenIcon,
1106
+ "aria-hidden": "true"
1107
+ })]
1108
+ }) : (0, react_jsx_runtime.jsx)("span", {
1109
+ className: PluginManagerPage_module_css_default.rowId,
1110
+ children: row.rowId
1111
+ }), (0, react_jsx_runtime.jsx)("span", {
1112
+ className: PluginManagerPage_module_css_default.rowModule,
1113
+ children: row.moduleName
1114
+ })]
1115
+ }),
1116
+ (0, react_jsx_runtime.jsxs)("span", {
1117
+ className: PluginManagerPage_module_css_default.rowState,
1118
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.StateDot, {
1119
+ state: rowDotState(row),
1120
+ size: 8
1121
+ }), rowStateText(row, t)]
1122
+ }),
1123
+ toggle === void 0 ? null : (0, react_jsx_runtime.jsx)(RowSwitch, {
1124
+ row,
1125
+ t,
1126
+ busy: toggle.busy(row),
1127
+ onChange: (enabled) => {
1128
+ toggle.onSetEnabled(row, enabled);
1129
+ }
1130
+ })
1131
+ ]
1132
+ })
1133
+ }, row.rowId))
1134
+ })
1135
+ ]
1136
+ });
1137
+ }
1138
+ /**
1139
+ * A bundle's enable switch on its card and its page: locked, saying why, for
1140
+ * one the Host protects; off and locked for one it cannot read.
1141
+ */
1142
+ function EnableSwitch({ pkg, title, t, busy, onSetEnabled }) {
1143
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Switch, {
1144
+ checked: pkg.enabled,
1145
+ label: t("enableToggle", { name: title }),
1146
+ disabled: busy || pkg.readOnlyReason !== void 0 || !pkg.enabled && pkg.error !== void 0,
1147
+ ...pkg.readOnlyReason === void 0 ? {} : { title: managementText({ code: pkg.readOnlyReason }, t) },
1148
+ onChange: onSetEnabled
1149
+ });
1150
+ }
1151
+ /** The status one card carries: running, off, or a problem the Host reported. */
1152
+ function packageStatus(pkg) {
1153
+ if (pkg.error !== void 0) return "problem";
1154
+ return pkg.enabled ? "running" : "disabled";
1155
+ }
1156
+ /** The head every card shares: the pinwheel icon, the name that opens the page beside its tags, its one-liner, and what sits at the end. */
1157
+ function CardHead({ title, t, onOpen, tags, description, end }) {
1158
+ return (0, react_jsx_runtime.jsxs)("div", {
1159
+ className: PluginManagerPage_module_css_default.cardHead,
1160
+ children: [
1161
+ (0, react_jsx_runtime.jsx)("span", {
1162
+ className: PluginManagerPage_module_css_default.cardIcon,
1163
+ "aria-hidden": "true",
1164
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPluginPinwheelOutline16, { size: 20 })
1165
+ }),
1166
+ (0, react_jsx_runtime.jsxs)("div", {
1167
+ className: PluginManagerPage_module_css_default.cardMain,
1168
+ children: [(0, react_jsx_runtime.jsxs)("div", {
1169
+ className: PluginManagerPage_module_css_default.titleRow,
1170
+ children: [(0, react_jsx_runtime.jsx)("button", {
1171
+ type: "button",
1172
+ className: `${PluginManagerPage_module_css_default.cardTitle} ${PluginManagerPage_module_css_default.cardOpen}`,
1173
+ "aria-label": t("openDetail", { name: title }),
1174
+ onClick: onOpen,
1175
+ children: title
1176
+ }), tags]
1177
+ }), description === void 0 ? null : (0, react_jsx_runtime.jsx)("span", {
1178
+ className: PluginManagerPage_module_css_default.cardDesc,
1179
+ children: description
1180
+ })]
1181
+ }),
1182
+ end === void 0 ? null : (0, react_jsx_runtime.jsx)("div", {
1183
+ className: PluginManagerPage_module_css_default.cardEnd,
1184
+ children: end
1185
+ })
1186
+ ]
1187
+ });
1188
+ }
1189
+ /** The top every page shares: the crumb that leads back, then the icon with the page's actions at its right. */
1190
+ function DetailTop({ crumbLabel, crumbText, onBack, icon, actions }) {
1191
+ return (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsxs)("button", {
1192
+ type: "button",
1193
+ className: PluginManagerPage_module_css_default.crumb,
1194
+ "aria-label": crumbLabel,
1195
+ onClick: onBack,
1196
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutline14, {
1197
+ className: PluginManagerPage_module_css_default.crumbIcon,
1198
+ "aria-hidden": "true"
1199
+ }), (0, react_jsx_runtime.jsx)("span", { children: crumbText })]
1200
+ }), (0, react_jsx_runtime.jsxs)("div", {
1201
+ className: PluginManagerPage_module_css_default.detailHead,
1202
+ children: [(0, react_jsx_runtime.jsx)("span", {
1203
+ className: PluginManagerPage_module_css_default.cardIcon,
1204
+ "aria-hidden": "true",
1205
+ children: icon ?? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPluginPinwheelOutline16, { size: 20 })
1206
+ }), actions]
1207
+ })] });
1208
+ }
1209
+ /** One package as a card that opens its page: its name, its one-liner, its tags, and its bundle switch. */
1210
+ function PackageCard({ pkg, t, busy, highlighted, onOpen, onSetEnabled }) {
1211
+ const { title, description, beta } = packageText(pkg, t);
1212
+ const status = packageStatus(pkg);
1213
+ return (0, react_jsx_runtime.jsx)("li", {
1214
+ className: `${PluginManagerPage_module_css_default.card} ${PluginManagerPage_module_css_default.cardLink}`,
1215
+ "data-plugin-package": pkg.name,
1216
+ "data-plugin-status": status,
1217
+ ...highlighted ? { "data-plugin-highlight": "" } : {},
1218
+ children: (0, react_jsx_runtime.jsx)(CardHead, {
1219
+ title,
1220
+ t,
1221
+ onOpen,
1222
+ tags: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [beta ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1223
+ className: PluginManagerPage_module_css_default.statusTag,
1224
+ tone: "info",
1225
+ children: t("statusBeta")
1226
+ }) : null, status === "problem" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1227
+ className: PluginManagerPage_module_css_default.statusTag,
1228
+ tone: "danger",
1229
+ children: t("statusProblem")
1230
+ }) : null] }),
1231
+ description,
1232
+ end: (0, react_jsx_runtime.jsx)(EnableSwitch, {
1233
+ pkg,
1234
+ title,
1235
+ t,
1236
+ busy,
1237
+ onSetEnabled
1238
+ })
1239
+ })
1240
+ });
1241
+ }
1242
+ /**
1243
+ * One official plugin as a card that opens its page: its icon, its title from
1244
+ * the registration, and the one-liner the entry renders in its summary view.
1245
+ */
1246
+ function ItemCard({ item, t, onOpen, renderSlot }) {
1247
+ return (0, react_jsx_runtime.jsx)("li", {
1248
+ className: `${PluginManagerPage_module_css_default.card} ${PluginManagerPage_module_css_default.cardLink}`,
1249
+ "data-plugin-item": item.id,
1250
+ children: (0, react_jsx_runtime.jsx)(CardHead, {
1251
+ title: item.label,
1252
+ t,
1253
+ onOpen,
1254
+ description: renderSlot("plugins.item", { view: "summary" }, { only: item.id })
1255
+ })
1256
+ });
1257
+ }
1258
+ /** An official plugin's page: the crumb back to the cards, its icon, its title over its one-liner, and the form the entry renders. */
1259
+ function ItemDetail({ item, t, onBack, renderSlot }) {
1260
+ return (0, react_jsx_runtime.jsxs)("div", {
1261
+ className: PluginManagerPage_module_css_default.detail,
1262
+ "data-plugin-item-detail": item.id,
1263
+ children: [
1264
+ (0, react_jsx_runtime.jsx)(DetailTop, {
1265
+ crumbLabel: t("backToList"),
1266
+ crumbText: t("crumbRoot"),
1267
+ onBack
1268
+ }),
1269
+ (0, react_jsx_runtime.jsxs)("div", {
1270
+ className: PluginManagerPage_module_css_default.detailMain,
1271
+ children: [(0, react_jsx_runtime.jsx)("div", {
1272
+ className: PluginManagerPage_module_css_default.titleRow,
1273
+ children: (0, react_jsx_runtime.jsx)("h3", {
1274
+ className: PluginManagerPage_module_css_default.detailTitle,
1275
+ children: item.label
1276
+ })
1277
+ }), (0, react_jsx_runtime.jsx)("p", {
1278
+ className: PluginManagerPage_module_css_default.detailDesc,
1279
+ children: renderSlot("plugins.item", { view: "summary" }, { only: item.id })
1280
+ })]
1281
+ }),
1282
+ (0, react_jsx_runtime.jsx)("div", {
1283
+ className: PluginManagerPage_module_css_default.detailSections,
1284
+ "data-plugin-config": true,
1285
+ children: renderSlot("plugins.item", { view: "page" }, { only: item.id })
1286
+ })
1287
+ ]
1288
+ });
1289
+ }
1290
+ /**
1291
+ * A row's configuration page: the crumb back to its bundle's page, the row id
1292
+ * over the module it names and the entry's one-liner, and the form the entry renders.
1293
+ */
1294
+ function RowDetail({ pkg, row, t, onBack, renderSlot }) {
1295
+ const { title } = packageText(pkg, t);
1296
+ const key = rowConfigKey(pkg.name, row.rowId);
1297
+ return (0, react_jsx_runtime.jsxs)("div", {
1298
+ className: PluginManagerPage_module_css_default.detail,
1299
+ "data-plugin-row-detail": key,
1300
+ children: [
1301
+ (0, react_jsx_runtime.jsx)(DetailTop, {
1302
+ crumbLabel: t("backToPackage", { name: title }),
1303
+ crumbText: title,
1304
+ onBack,
1305
+ icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCordisPluginOutline14, { size: 20 })
1306
+ }),
1307
+ (0, react_jsx_runtime.jsxs)("div", {
1308
+ className: PluginManagerPage_module_css_default.detailMain,
1309
+ children: [
1310
+ (0, react_jsx_runtime.jsx)("div", {
1311
+ className: PluginManagerPage_module_css_default.titleRow,
1312
+ children: (0, react_jsx_runtime.jsx)("h3", {
1313
+ className: PluginManagerPage_module_css_default.detailTitle,
1314
+ children: row.rowId
1315
+ })
1316
+ }),
1317
+ (0, react_jsx_runtime.jsx)("p", {
1318
+ className: PluginManagerPage_module_css_default.detailName,
1319
+ children: (0, react_jsx_runtime.jsx)("code", { children: row.moduleName })
1320
+ }),
1321
+ (0, react_jsx_runtime.jsx)("p", {
1322
+ className: PluginManagerPage_module_css_default.detailDesc,
1323
+ children: renderSlot("plugins.row.config", { view: "summary" }, { entryKey: key })
1324
+ })
1325
+ ]
1326
+ }),
1327
+ (0, react_jsx_runtime.jsx)("div", {
1328
+ className: PluginManagerPage_module_css_default.detailSections,
1329
+ "data-plugin-config": true,
1330
+ children: renderSlot("plugins.row.config", { view: "page" }, { entryKey: key })
1331
+ })
1332
+ ]
1333
+ });
1334
+ }
1335
+ /**
1336
+ * One package's page: the crumb back to the list; its icon with its switch
1337
+ * and, for a package the profile installed, uninstall; its title beside its
1338
+ * version tag, its beta tag, and its problem tag; the package name the title
1339
+ * stands for, which is what installs it elsewhere; its one-liner; the Host's
1340
+ * problem when it reports one; the configuration the bundle registered for
1341
+ * itself; and its rows with their switches and configure controls.
1342
+ */
1343
+ function PackageDetail({ pkg, t, busy, rowBusy, configured, configure, renderSlot, onBack, onSetEnabled, onUninstall, onSetRowEnabled }) {
1344
+ const { title, description, beta } = packageText(pkg, t);
1345
+ const status = packageStatus(pkg);
1346
+ return (0, react_jsx_runtime.jsxs)("div", {
1347
+ className: PluginManagerPage_module_css_default.detail,
1348
+ "data-plugin-detail": pkg.name,
1349
+ children: [
1350
+ (0, react_jsx_runtime.jsx)(DetailTop, {
1351
+ crumbLabel: t("backToList"),
1352
+ crumbText: t("crumbRoot"),
1353
+ onBack,
1354
+ actions: (0, react_jsx_runtime.jsxs)("div", {
1355
+ className: PluginManagerPage_module_css_default.detailActions,
1356
+ children: [pkg.installed ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1357
+ variant: "outline",
1358
+ size: "sm",
1359
+ className: PluginManagerPage_module_css_default.danger,
1360
+ icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconTrashOutline16, { size: 13 }),
1361
+ "aria-label": t("uninstallLabel", { name: title }),
1362
+ disabled: busy || pkg.readOnlyReason !== void 0,
1363
+ onClick: onUninstall,
1364
+ children: t("uninstall")
1365
+ }) : null, (0, react_jsx_runtime.jsx)(EnableSwitch, {
1366
+ pkg,
1367
+ title,
1368
+ t,
1369
+ busy,
1370
+ onSetEnabled
1371
+ })]
1372
+ })
1373
+ }),
1374
+ (0, react_jsx_runtime.jsxs)("div", {
1375
+ className: PluginManagerPage_module_css_default.detailMain,
1376
+ children: [
1377
+ (0, react_jsx_runtime.jsxs)("div", {
1378
+ className: PluginManagerPage_module_css_default.titleRow,
1379
+ children: [
1380
+ (0, react_jsx_runtime.jsx)("h3", {
1381
+ className: PluginManagerPage_module_css_default.detailTitle,
1382
+ children: title
1383
+ }),
1384
+ pkg.version === void 0 ? null : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1385
+ className: PluginManagerPage_module_css_default.versionTag,
1386
+ tone: "neutral",
1387
+ children: t("versionTag", { version: pkg.version })
1388
+ }),
1389
+ beta ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1390
+ className: PluginManagerPage_module_css_default.statusTag,
1391
+ tone: "info",
1392
+ children: t("statusBeta")
1393
+ }) : null,
1394
+ status === "problem" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Tag, {
1395
+ className: PluginManagerPage_module_css_default.statusTag,
1396
+ tone: "danger",
1397
+ children: t("statusProblem")
1398
+ }) : null
1399
+ ]
1400
+ }),
1401
+ (0, react_jsx_runtime.jsx)("p", {
1402
+ className: PluginManagerPage_module_css_default.detailName,
1403
+ children: (0, react_jsx_runtime.jsx)("code", {
1404
+ "data-plugin-name": true,
1405
+ children: pkg.name
1406
+ })
1407
+ }),
1408
+ (0, react_jsx_runtime.jsx)("p", {
1409
+ className: PluginManagerPage_module_css_default.detailDesc,
1410
+ children: description ?? t("noDescription")
1411
+ })
1412
+ ]
1413
+ }),
1414
+ pkg.error === void 0 ? null : (0, react_jsx_runtime.jsxs)("p", {
1415
+ className: PluginManagerPage_module_css_default.reason,
1416
+ role: "status",
1417
+ children: [
1418
+ t("reasonLabel"),
1419
+ ": ",
1420
+ managementText(pkg.error, t)
1421
+ ]
1422
+ }),
1423
+ pkg.readOnlyReason === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
1424
+ className: PluginManagerPage_module_css_default.reason,
1425
+ role: "status",
1426
+ children: managementText({ code: pkg.readOnlyReason }, t)
1427
+ }),
1428
+ (0, react_jsx_runtime.jsxs)("div", {
1429
+ className: PluginManagerPage_module_css_default.detailSections,
1430
+ children: [configured ? (0, react_jsx_runtime.jsx)("section", {
1431
+ className: PluginManagerPage_module_css_default.detailSection,
1432
+ "data-plugin-config": true,
1433
+ children: renderSlot("plugins.bundle.config", { view: "page" }, { entryKey: pkg.name })
1434
+ }) : null, (0, react_jsx_runtime.jsx)(RowsSection, {
1435
+ rows: pkg.rows,
1436
+ t,
1437
+ toggle: pkg.enabled ? {
1438
+ busy: (row) => busy || rowBusy(row),
1439
+ onSetEnabled: onSetRowEnabled
1440
+ } : void 0,
1441
+ configure
1442
+ })]
1443
+ })
1444
+ ]
1445
+ });
1446
+ }
1447
+ /** Output lines an install run's terminal shows before its middle folds: the first and last six of a long pnpm log. */
1448
+ const INSTALL_TERMINAL_LINES = 12;
1449
+ /** The install terminal's display copy, from the tab's dictionary. */
1450
+ function terminalLabels(t) {
1451
+ return {
1452
+ /* v8 ignore next -- the Host reports a killed pnpm as a null exit code, never a signal name; the label interface needs one */
1453
+ signal: (signal) => t("terminalSignal", { signal }),
1454
+ exitCode: (code) => t("terminalExitCode", { code: String(code) }),
1455
+ noExitCode: t("terminalNoExitCode"),
1456
+ running: t("terminalRunning"),
1457
+ failed: t("terminalFailed"),
1458
+ done: t("terminalDone"),
1459
+ copy: t("terminalCopy"),
1460
+ copied: t("terminalCopied"),
1461
+ noOutput: t("terminalNoOutput"),
1462
+ collapseAria: t("terminalCollapseAria"),
1463
+ collapse: t("terminalCollapse"),
1464
+ expandAria: (hidden) => t("terminalExpandAria", { n: String(hidden) }),
1465
+ expand: (hidden) => t("terminalExpand", { n: String(hidden) })
1466
+ };
1467
+ }
1468
+ /** The sentence under the field for a spec the check refused. */
1469
+ const INPUT_PROBLEM_KEYS = {
1470
+ "invalid-spec": "installProblemInvalid",
1471
+ "already-installed": "installProblemInstalled",
1472
+ "not-found": "installProblemNotFound",
1473
+ "not-a-package": "installProblemNotPackage",
1474
+ "not-a-bundle": "installProblemNotBundle",
1475
+ "network": "installProblemNetwork",
1476
+ "unknown": "installProblemUnknown"
1477
+ };
1478
+ /** The spec forms the install guide shows, each with an example the person can drop into the field. */
1479
+ const GUIDE_EXAMPLES = [
1480
+ {
1481
+ key: "id",
1482
+ titleKey: "installGuideIdTitle",
1483
+ exampleKey: "installGuideIdExample",
1484
+ hintKey: "installGuideIdHint"
1485
+ },
1486
+ {
1487
+ key: "git",
1488
+ titleKey: "installGuideGitTitle",
1489
+ exampleKey: "installGuideGitExample",
1490
+ hintKey: "installGuideGitHint"
1491
+ },
1492
+ {
1493
+ key: "path",
1494
+ titleKey: "installGuidePathTitle",
1495
+ exampleKey: "installGuidePathExample",
1496
+ hintKey: "installGuidePathHint"
1497
+ }
1498
+ ];
1499
+ /** The one-line reading of a classified pnpm failure. */
1500
+ const FAILURE_KIND_KEYS = {
1501
+ "pnpm-missing": "installFailurePnpmMissing",
1502
+ "timeout": "installFailureTimeout",
1503
+ "not-found": "installFailureNotFound",
1504
+ "no-matching-version": "installFailureNoMatchingVersion",
1505
+ "network": "installFailureNetwork",
1506
+ "disk-full": "installFailureDiskFull",
1507
+ "permission": "installFailurePermission",
1508
+ "build-blocked": "installFailureBuildBlocked",
1509
+ "integrity": "installFailureIntegrity",
1510
+ "unknown": "installFailureGeneric"
1511
+ };
1512
+ /** The heading of each screen past the spec. */
1513
+ const SCREEN_TITLE_KEYS = {
1514
+ starting: "installStarting",
1515
+ running: "installingTitle",
1516
+ cancelling: "installCancelling",
1517
+ applying: "installApplying",
1518
+ done: "installedTitle",
1519
+ failed: "installFailedTitle"
1520
+ };
1521
+ /** What the spec's kind reads as when the package carries no description of its own. */
1522
+ const SUBJECT_KIND_KEYS = {
1523
+ registry: void 0,
1524
+ path: "installSubjectPath",
1525
+ git: "installSubjectGit",
1526
+ tarball: "installSubjectTarball"
1527
+ };
1528
+ /**
1529
+ * The failed screen's one line: a pnpm failure by its kind, a refusal by its
1530
+ * code, any other failure in the Host's words; the run's output stays behind the details.
1531
+ */
1532
+ function failureText(failure, t) {
1533
+ if (failure === null) return t("installFailureGeneric");
1534
+ if (failure.kind === "build-blocked" && !failure.pendingBuilds?.length) return t("installFailureBuildBlockedManual");
1535
+ if (failure.kind !== void 0) return t(FAILURE_KIND_KEYS[failure.kind]);
1536
+ if (failure.code !== void 0) return managementText({
1537
+ code: failure.code,
1538
+ diagnostic: failure.reason
1539
+ }, t);
1540
+ return failure.reason === "" ? t("installFailureGeneric") : failure.reason;
1541
+ }
1542
+ /** The package the install is about: its name, one-liner, and version, as the Host read them before installing. */
1543
+ function SubjectCard({ subject, t }) {
1544
+ const title = subject.name ?? subject.spec;
1545
+ const kindKey = SUBJECT_KIND_KEYS[subject.kind];
1546
+ const description = subject.description ?? (kindKey === void 0 ? void 0 : t(kindKey));
1547
+ return (0, react_jsx_runtime.jsxs)("div", {
1548
+ className: PluginManagerPage_module_css_default.subject,
1549
+ "data-install-subject": subject.spec,
1550
+ children: [
1551
+ (0, react_jsx_runtime.jsx)("p", {
1552
+ className: PluginManagerPage_module_css_default.subjectName,
1553
+ children: title
1554
+ }),
1555
+ description === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
1556
+ className: PluginManagerPage_module_css_default.subjectDesc,
1557
+ children: description
1558
+ }),
1559
+ subject.version === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
1560
+ className: PluginManagerPage_module_css_default.subjectMeta,
1561
+ children: t("installVersion", { version: subject.version })
1562
+ })
1563
+ ]
1564
+ });
1565
+ }
1566
+ /**
1567
+ * The install dialog: the spec and its check, then the installing, installed,
1568
+ * and failed screens over the same subject card. A failed run that left
1569
+ * install scripts undecided shows them for approval in place of plain retry.
1570
+ */
1571
+ function InstallDialog({ install, t, onClose, onEditSpec, onRun, onCancel, onCancelAndClose, onToggleDetails, onEnableNow, onApproveBuilds }) {
1572
+ const errorId = (0, react.useId)();
1573
+ const guideId = (0, react.useId)();
1574
+ const approvalId = (0, react.useId)();
1575
+ const [guideOpen, setGuideOpen] = (0, react.useState)(false);
1576
+ const { phase } = install;
1577
+ if (phase === "idle" || phase === "checking") {
1578
+ const checking = phase === "checking";
1579
+ const empty = install.spec.trim() === "";
1580
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1581
+ open: install.open,
1582
+ onClose,
1583
+ title: t("installTitle"),
1584
+ closeLabel: t("close"),
1585
+ description: t("installDescription"),
1586
+ className: PluginManagerPage_module_css_default.installDialog,
1587
+ footer: (0, react_jsx_runtime.jsxs)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1588
+ variant: "primary",
1589
+ className: PluginManagerPage_module_css_default.wide,
1590
+ disabled: checking || empty,
1591
+ "aria-busy": checking,
1592
+ onClick: onRun,
1593
+ children: [checking ? (0, react_jsx_runtime.jsx)("span", {
1594
+ className: PluginManagerPage_module_css_default.spinner,
1595
+ "aria-hidden": "true"
1596
+ }) : null, t(checking ? "installChecking" : "installRun")]
1597
+ }),
1598
+ children: (0, react_jsx_runtime.jsxs)("div", {
1599
+ className: PluginManagerPage_module_css_default.installBody,
1600
+ children: [
1601
+ (0, react_jsx_runtime.jsxs)("label", {
1602
+ className: PluginManagerPage_module_css_default.installField,
1603
+ children: [(0, react_jsx_runtime.jsx)("span", { children: t("installSpecLabel") }), (0, react_jsx_runtime.jsx)("input", {
1604
+ type: "text",
1605
+ value: install.spec,
1606
+ placeholder: t("installSpecPlaceholder"),
1607
+ disabled: checking,
1608
+ "aria-invalid": install.inputError !== null,
1609
+ "aria-describedby": install.inputError === null ? void 0 : errorId,
1610
+ onChange: (event) => {
1611
+ onEditSpec(event.currentTarget.value);
1612
+ },
1613
+ onKeyDown: (event) => {
1614
+ if (event.key === "Enter" && !empty && !checking) onRun();
1615
+ }
1616
+ })]
1617
+ }),
1618
+ install.inputError === null ? null : (0, react_jsx_runtime.jsx)("p", {
1619
+ id: errorId,
1620
+ className: PluginManagerPage_module_css_default.inputError,
1621
+ role: "alert",
1622
+ children: t(INPUT_PROBLEM_KEYS[install.inputError.problem], { reason: install.inputError.reason })
1623
+ }),
1624
+ (0, react_jsx_runtime.jsxs)("button", {
1625
+ type: "button",
1626
+ className: PluginManagerPage_module_css_default.guideToggle,
1627
+ "aria-expanded": guideOpen,
1628
+ "aria-controls": guideId,
1629
+ onClick: () => {
1630
+ setGuideOpen((open) => !open);
1631
+ },
1632
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutline14, {
1633
+ className: PluginManagerPage_module_css_default.guideChevron,
1634
+ "aria-hidden": "true"
1635
+ }), (0, react_jsx_runtime.jsx)("span", { children: t(guideOpen ? "installGuideHide" : "installGuideToggle") })]
1636
+ }),
1637
+ guideOpen ? (0, react_jsx_runtime.jsxs)("div", {
1638
+ id: guideId,
1639
+ className: PluginManagerPage_module_css_default.guide,
1640
+ "data-install-guide": true,
1641
+ children: [
1642
+ (0, react_jsx_runtime.jsx)("p", {
1643
+ className: PluginManagerPage_module_css_default.guideIntro,
1644
+ children: t("installGuideIntro")
1645
+ }),
1646
+ (0, react_jsx_runtime.jsx)("p", {
1647
+ className: PluginManagerPage_module_css_default.guideNote,
1648
+ children: t("installGuideIdNote")
1649
+ }),
1650
+ (0, react_jsx_runtime.jsx)("ol", {
1651
+ className: PluginManagerPage_module_css_default.guideList,
1652
+ children: GUIDE_EXAMPLES.map(({ key, titleKey, exampleKey, hintKey }, index) => (0, react_jsx_runtime.jsxs)("li", {
1653
+ className: PluginManagerPage_module_css_default.guideItem,
1654
+ children: [
1655
+ (0, react_jsx_runtime.jsx)("span", {
1656
+ className: PluginManagerPage_module_css_default.guideIndex,
1657
+ "aria-hidden": "true",
1658
+ children: index + 1
1659
+ }),
1660
+ (0, react_jsx_runtime.jsxs)("div", {
1661
+ className: PluginManagerPage_module_css_default.guideMain,
1662
+ children: [
1663
+ (0, react_jsx_runtime.jsx)("span", {
1664
+ className: PluginManagerPage_module_css_default.guideTitle,
1665
+ children: t(titleKey)
1666
+ }),
1667
+ (0, react_jsx_runtime.jsxs)("span", {
1668
+ className: PluginManagerPage_module_css_default.guideExample,
1669
+ children: [(0, react_jsx_runtime.jsx)("span", {
1670
+ className: PluginManagerPage_module_css_default.guideExampleLabel,
1671
+ children: t("installGuideExampleLabel")
1672
+ }), (0, react_jsx_runtime.jsx)("code", { children: t(exampleKey) })]
1673
+ }),
1674
+ (0, react_jsx_runtime.jsx)("span", {
1675
+ className: PluginManagerPage_module_css_default.guideHint,
1676
+ children: t(hintKey)
1677
+ })
1678
+ ]
1679
+ }),
1680
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1681
+ variant: "outline",
1682
+ size: "sm",
1683
+ "aria-label": t("installGuideFillAria", { example: t(exampleKey) }),
1684
+ disabled: checking,
1685
+ onClick: () => {
1686
+ onEditSpec(t(exampleKey));
1687
+ },
1688
+ children: t("installGuideFill")
1689
+ })
1690
+ ]
1691
+ }, key))
1692
+ }),
1693
+ (0, react_jsx_runtime.jsxs)("p", {
1694
+ className: PluginManagerPage_module_css_default.guideSafety,
1695
+ role: "note",
1696
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutline16, {
1697
+ size: 14,
1698
+ "aria-hidden": "true"
1699
+ }), (0, react_jsx_runtime.jsx)("span", { children: t("installGuideSafety") })]
1700
+ })
1701
+ ]
1702
+ }) : null
1703
+ ]
1704
+ })
1705
+ });
1706
+ }
1707
+ const heading = t(SCREEN_TITLE_KEYS[phase]);
1708
+ const pending = isInstallPending(phase);
1709
+ const stoppable = phase === "running" || phase === "failed";
1710
+ const unconfirmed = install.failure?.cancelUnconfirmed === true ? install.failure.reason : void 0;
1711
+ const pendingBuilds = phase === "failed" ? install.failure?.pendingBuilds ?? [] : [];
1712
+ const approvable = pendingBuilds.length > 0;
1713
+ const firstRun = install.runs[0];
1714
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1715
+ open: install.open,
1716
+ onClose,
1717
+ title: heading,
1718
+ headless: true,
1719
+ className: PluginManagerPage_module_css_default.installDialog,
1720
+ children: (0, react_jsx_runtime.jsxs)("div", {
1721
+ className: PluginManagerPage_module_css_default.wizard,
1722
+ "data-install-phase": phase,
1723
+ children: [(0, react_jsx_runtime.jsxs)("div", {
1724
+ className: PluginManagerPage_module_css_default.wizardHead,
1725
+ children: [phase === "done" ? (0, react_jsx_runtime.jsx)("span", {}) : (0, react_jsx_runtime.jsxs)("button", {
1726
+ type: "button",
1727
+ className: PluginManagerPage_module_css_default.wizardBack,
1728
+ "aria-label": t("installEditAria"),
1729
+ disabled: !stoppable,
1730
+ onClick: onCancel,
1731
+ children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronLeftOutline14, { "aria-hidden": "true" }), (0, react_jsx_runtime.jsx)("span", { children: t("installEdit") })]
1732
+ }), (0, react_jsx_runtime.jsx)("button", {
1733
+ type: "button",
1734
+ className: PluginManagerPage_module_css_default.wizardClose,
1735
+ "aria-label": t(phase === "running" ? "installCloseCancels" : "close"),
1736
+ disabled: pending && phase !== "running",
1737
+ onClick: phase === "running" ? onCancelAndClose : onClose,
1738
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCloseOutline16, { size: 14 })
1739
+ })]
1740
+ }), (0, react_jsx_runtime.jsxs)("div", {
1741
+ className: PluginManagerPage_module_css_default.wizardScroll,
1742
+ children: [
1743
+ (0, react_jsx_runtime.jsxs)("div", {
1744
+ className: PluginManagerPage_module_css_default.wizardHero,
1745
+ children: [
1746
+ (0, react_jsx_runtime.jsx)("span", {
1747
+ className: PluginManagerPage_module_css_default.wizardIcon,
1748
+ "data-tone": pending ? "pending" : phase,
1749
+ "aria-hidden": "true",
1750
+ children: pending ? (0, react_jsx_runtime.jsx)("span", { className: PluginManagerPage_module_css_default.spinnerLarge }) : phase === "done" ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconCheckOutline16, { size: 28 }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutline16, { size: 28 })
1751
+ }),
1752
+ (0, react_jsx_runtime.jsx)("h2", {
1753
+ className: PluginManagerPage_module_css_default.wizardTitle,
1754
+ role: phase === "failed" ? "alert" : "status",
1755
+ children: heading
1756
+ }),
1757
+ phase === "failed" ? (0, react_jsx_runtime.jsx)("p", {
1758
+ className: PluginManagerPage_module_css_default.wizardSub,
1759
+ children: failureText(install.failure, t)
1760
+ }) : null,
1761
+ unconfirmed === void 0 ? null : (0, react_jsx_runtime.jsx)("p", {
1762
+ className: PluginManagerPage_module_css_default.wizardSub,
1763
+ role: "alert",
1764
+ children: t("installCancelUnconfirmed", { reason: unconfirmed })
1765
+ })
1766
+ ]
1767
+ }),
1768
+ install.subject === null ? null : (0, react_jsx_runtime.jsx)(SubjectCard, {
1769
+ subject: install.subject,
1770
+ t
1771
+ }),
1772
+ approvable ? (0, react_jsx_runtime.jsxs)("section", {
1773
+ className: PluginManagerPage_module_css_default.approval,
1774
+ role: "group",
1775
+ "aria-labelledby": approvalId,
1776
+ "data-install-approval": true,
1777
+ children: [
1778
+ (0, react_jsx_runtime.jsx)("h3", {
1779
+ id: approvalId,
1780
+ className: PluginManagerPage_module_css_default.approvalTitle,
1781
+ children: t("installApprovalTitle")
1782
+ }),
1783
+ (0, react_jsx_runtime.jsx)("p", {
1784
+ className: PluginManagerPage_module_css_default.approvalText,
1785
+ children: t("installApprovalDescription")
1786
+ }),
1787
+ (0, react_jsx_runtime.jsx)("ul", {
1788
+ className: PluginManagerPage_module_css_default.approvalList,
1789
+ children: pendingBuilds.map((name) => (0, react_jsx_runtime.jsx)("li", { children: (0, react_jsx_runtime.jsx)("code", { children: name }) }, name))
1790
+ }),
1791
+ (0, react_jsx_runtime.jsx)("p", {
1792
+ className: PluginManagerPage_module_css_default.approvalText,
1793
+ children: t("installApprovalConsequence")
1794
+ }),
1795
+ (0, react_jsx_runtime.jsx)("p", {
1796
+ className: PluginManagerPage_module_css_default.approvalCaution,
1797
+ children: t("installApprovalCaution")
1798
+ }),
1799
+ (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1800
+ variant: "primary",
1801
+ className: PluginManagerPage_module_css_default.wide,
1802
+ onClick: onApproveBuilds,
1803
+ children: t("installApproveAndRetry")
1804
+ })
1805
+ ]
1806
+ }) : null,
1807
+ phase === "done" && install.installed === null ? (0, react_jsx_runtime.jsx)("p", {
1808
+ className: PluginManagerPage_module_css_default.result,
1809
+ role: "status",
1810
+ children: t("installDoneNothing")
1811
+ }) : null,
1812
+ phase === "done" && install.restartRequired ? (0, react_jsx_runtime.jsx)("p", {
1813
+ className: PluginManagerPage_module_css_default.resultWarn,
1814
+ role: "status",
1815
+ children: t("installDoneRestart")
1816
+ }) : null,
1817
+ phase === "done" && install.approvedBuilds.length > 0 ? (0, react_jsx_runtime.jsx)("p", {
1818
+ className: PluginManagerPage_module_css_default.result,
1819
+ role: "status",
1820
+ children: t("installDoneApproved", { names: install.approvedBuilds.join(", ") })
1821
+ }) : null,
1822
+ (0, react_jsx_runtime.jsxs)("div", {
1823
+ className: PluginManagerPage_module_css_default.wizardFoot,
1824
+ children: [
1825
+ (0, react_jsx_runtime.jsxs)("button", {
1826
+ type: "button",
1827
+ className: PluginManagerPage_module_css_default.detailsToggle,
1828
+ "aria-expanded": install.detailsOpen,
1829
+ onClick: onToggleDetails,
1830
+ children: [(0, react_jsx_runtime.jsx)("span", { children: t(install.detailsOpen ? "installDetailsHide" : "installDetailsShow") }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconChevronDownOutline14, {
1831
+ className: PluginManagerPage_module_css_default.detailsChevron,
1832
+ "aria-hidden": "true"
1833
+ })]
1834
+ }),
1835
+ pending ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1836
+ variant: "outline",
1837
+ size: "sm",
1838
+ disabled: phase !== "running",
1839
+ onClick: onCancel,
1840
+ children: t(phase === "cancelling" ? "installCancelling" : "installCancel")
1841
+ }) : null,
1842
+ phase === "failed" && !approvable ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1843
+ variant: "primary",
1844
+ size: "sm",
1845
+ onClick: onRun,
1846
+ children: t("installRetry")
1847
+ }) : null
1848
+ ]
1849
+ }),
1850
+ install.detailsOpen ? (0, react_jsx_runtime.jsxs)("div", {
1851
+ className: PluginManagerPage_module_css_default.detailsBody,
1852
+ children: [(0, react_jsx_runtime.jsx)("p", {
1853
+ className: PluginManagerPage_module_css_default.installLocation,
1854
+ children: firstRun === void 0 ? t("terminalNoOutput") : t("installLocation", { dir: firstRun.cwd })
1855
+ }), install.runs.map((run) => (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.TerminalBlock, {
1856
+ command: run.command,
1857
+ output: run.output,
1858
+ running: run.exitCode === void 0,
1859
+ exitCode: run.exitCode,
1860
+ maxLines: INSTALL_TERMINAL_LINES,
1861
+ labels: {
1862
+ ...terminalLabels(t),
1863
+ ...phase === "cancelling" ? { failed: t("installCancelledShort") } : {}
1864
+ },
1865
+ className: PluginManagerPage_module_css_default.terminal
1866
+ }, run.jobId))]
1867
+ }) : null,
1868
+ phase !== "done" ? null : install.installed !== null ? (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1869
+ variant: "primary",
1870
+ className: PluginManagerPage_module_css_default.wide,
1871
+ disabled: install.enabling,
1872
+ "aria-busy": install.enabling,
1873
+ onClick: onEnableNow,
1874
+ children: t("installEnableNow")
1875
+ }) : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1876
+ variant: "primary",
1877
+ className: PluginManagerPage_module_css_default.wide,
1878
+ onClick: onClose,
1879
+ children: t("installClose")
1880
+ })
1881
+ ]
1882
+ })]
1883
+ })
1884
+ });
1885
+ }
1886
+ /** The confirmation an uninstall waits on. */
1887
+ function ConfirmDialog({ confirm, t, onConfirm, onCancel }) {
1888
+ const { title: name } = packageText({ name: confirm.packageName }, t);
1889
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Modal, {
1890
+ open: true,
1891
+ onClose: onCancel,
1892
+ title: t("confirmUninstallTitle", { name }),
1893
+ closeLabel: t("close"),
1894
+ description: t("confirmUninstallDescription"),
1895
+ footer: (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [(0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1896
+ variant: "outline",
1897
+ onClick: onCancel,
1898
+ children: t("cancel")
1899
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
1900
+ variant: "primary",
1901
+ className: PluginManagerPage_module_css_default.dangerButton,
1902
+ onClick: onConfirm,
1903
+ children: t("confirmUninstall")
1904
+ })] })
1905
+ });
1906
+ }
1907
+ /** Render the plugin manager: the official plugins and installed bundles, their pages, the install dialog, and the confirmation. */
1908
+ function PluginManagerPage(props) {
1909
+ const { t, ensure, renderSlot } = props;
1910
+ const state = props.usePluginManager((snapshot) => snapshot);
1911
+ const ledger = props.useConfigLedger((snapshot) => snapshot);
1912
+ const [view, setView] = (0, react.useState)({ kind: "list" });
1913
+ (0, react.useEffect)(() => {
1914
+ ensure();
1915
+ }, [ensure]);
1916
+ const { highlight, clearHighlight } = {
1917
+ highlight: state.highlight,
1918
+ clearHighlight: props.clearHighlight
1919
+ };
1920
+ (0, react.useEffect)(() => {
1921
+ if (highlight === null) return;
1922
+ const card = document.querySelector(`[data-plugin-package="${highlight}"]`);
1923
+ if (card !== null && typeof card.scrollIntoView === "function") card.scrollIntoView({
1924
+ block: "center",
1925
+ behavior: "smooth"
1926
+ });
1927
+ const timer = setTimeout(clearHighlight, HIGHLIGHT_MS);
1928
+ return () => {
1929
+ clearTimeout(timer);
1930
+ };
1931
+ }, [highlight, clearHighlight]);
1932
+ const noticeLine = state.notice === null ? null : noticeText(state.notice, t);
1933
+ const listed = state.packages.filter((pkg) => !BUILTIN_PROFILE_BUNDLES.has(pkg.name) && (pkg.installed || pkg.optional || pkg.error !== void 0));
1934
+ const mine = listed.filter((pkg) => pkg.installed || !pkg.optional);
1935
+ const official = listed.filter((pkg) => pkg.optional && !pkg.installed);
1936
+ const loaded = state.status === "ready" || state.status === "error";
1937
+ const openPkg = view.kind === "package" || view.kind === "row" ? listed.find((pkg) => pkg.name === view.name) : void 0;
1938
+ const openItem = view.kind === "item" ? ledger.items.find((item) => item.id === view.id) : void 0;
1939
+ const openRow = view.kind === "row" && openPkg !== void 0 ? openPkg.rows.find((row) => row.rowId === view.rowId) : void 0;
1940
+ const showsCards = openPkg === void 0 && openItem === void 0;
1941
+ const setRowEnabled = (row, enabled) => {
1942
+ /* v8 ignore next -- a row without a live entry has its switch disabled */
1943
+ if (row.entryId !== void 0) props.setRowEnabled(row.entryId, enabled);
1944
+ };
1945
+ const configure = (pkg) => ({
1946
+ has: (row) => ledger.rows.has(rowConfigKey(pkg.name, row.rowId)),
1947
+ open: (row) => {
1948
+ setView({
1949
+ kind: "row",
1950
+ name: pkg.name,
1951
+ rowId: row.rowId
1952
+ });
1953
+ }
1954
+ });
1955
+ const packageCard = (pkg) => (0, react_jsx_runtime.jsx)(PackageCard, {
1956
+ pkg,
1957
+ t,
1958
+ busy: state.busy.includes(pkg.name),
1959
+ highlighted: state.highlight === pkg.name,
1960
+ onOpen: () => {
1961
+ setView({
1962
+ kind: "package",
1963
+ name: pkg.name
1964
+ });
1965
+ },
1966
+ onSetEnabled: (enabled) => {
1967
+ props.setEnabled(pkg.name, enabled);
1968
+ }
1969
+ }, pkg.name);
1970
+ const officialCards = [...official.map(packageCard), ...ledger.items.map((item) => (0, react_jsx_runtime.jsx)(ItemCard, {
1971
+ item,
1972
+ t,
1973
+ renderSlot,
1974
+ onOpen: () => {
1975
+ setView({
1976
+ kind: "item",
1977
+ id: item.id
1978
+ });
1979
+ }
1980
+ }, `item:${item.id}`))];
1981
+ const renderGroup = (id, heading, cards) => cards.length === 0 ? null : (0, react_jsx_runtime.jsxs)("section", {
1982
+ className: PluginManagerPage_module_css_default.group,
1983
+ "data-plugin-scope": "global",
1984
+ "data-plugin-group": id,
1985
+ children: [(0, react_jsx_runtime.jsxs)("div", {
1986
+ className: PluginManagerPage_module_css_default.groupHead,
1987
+ children: [(0, react_jsx_runtime.jsx)("h3", {
1988
+ className: PluginManagerPage_module_css_default.groupTitle,
1989
+ children: heading
1990
+ }), (0, react_jsx_runtime.jsx)("span", {
1991
+ className: PluginManagerPage_module_css_default.count,
1992
+ "data-plugin-count": cards.length,
1993
+ children: cards.length
1994
+ })]
1995
+ }), (0, react_jsx_runtime.jsx)("ul", {
1996
+ className: PluginManagerPage_module_css_default.cards,
1997
+ children: cards
1998
+ })]
1999
+ });
2000
+ return (0, react_jsx_runtime.jsxs)("section", {
2001
+ className: PluginManagerPage_module_css_default.page,
2002
+ "data-plugin-panel": true,
2003
+ "aria-busy": state.status === "loading",
2004
+ children: [
2005
+ showsCards ? (0, react_jsx_runtime.jsxs)("header", {
2006
+ className: PluginManagerPage_module_css_default.pageHead,
2007
+ children: [(0, react_jsx_runtime.jsxs)("div", { children: [(0, react_jsx_runtime.jsx)("h1", {
2008
+ className: PluginManagerPage_module_css_default.pageTitle,
2009
+ children: t("title")
2010
+ }), (0, react_jsx_runtime.jsx)("p", {
2011
+ className: PluginManagerPage_module_css_default.pageIntro,
2012
+ children: t("intro")
2013
+ })] }), (0, react_jsx_runtime.jsxs)("div", {
2014
+ className: PluginManagerPage_module_css_default.toolbar,
2015
+ children: [(0, react_jsx_runtime.jsx)("button", {
2016
+ type: "button",
2017
+ className: PluginManagerPage_module_css_default.iconButton,
2018
+ "aria-label": t("refresh"),
2019
+ title: t("refresh"),
2020
+ disabled: !loaded,
2021
+ onClick: props.refresh,
2022
+ children: (0, react_jsx_runtime.jsx)("span", {
2023
+ className: PluginManagerPage_module_css_default.iconWrap,
2024
+ "aria-hidden": "true",
2025
+ children: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconRefreshOutline16, {})
2026
+ })
2027
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
2028
+ variant: "primary",
2029
+ size: "sm",
2030
+ icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPlusOutline16, { size: 13 }),
2031
+ disabled: !loaded,
2032
+ onClick: props.openInstall,
2033
+ children: t("addPlugin")
2034
+ })]
2035
+ })]
2036
+ }) : null,
2037
+ state.status === "loading" ? (0, react_jsx_runtime.jsx)("p", {
2038
+ className: PluginManagerPage_module_css_default.status,
2039
+ children: t("loading")
2040
+ }) : null,
2041
+ state.status === "unavailable" ? (0, react_jsx_runtime.jsx)("p", {
2042
+ className: PluginManagerPage_module_css_default.status,
2043
+ role: "status",
2044
+ children: t("unavailable")
2045
+ }) : null,
2046
+ state.status === "error" ? (0, react_jsx_runtime.jsxs)("div", {
2047
+ className: PluginManagerPage_module_css_default.failure,
2048
+ children: [(0, react_jsx_runtime.jsx)("p", {
2049
+ role: "alert",
2050
+ children: t("error")
2051
+ }), (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Button, {
2052
+ variant: "outline",
2053
+ size: "sm",
2054
+ onClick: props.refresh,
2055
+ children: t("retry")
2056
+ })]
2057
+ }) : null,
2058
+ state.notice === null || noticeLine === null ? null : (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.Toast, {
2059
+ text: noticeLine,
2060
+ icon: (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconWarningOutline16, {}),
2061
+ holdMs: toastHoldMs(noticeLine),
2062
+ onDone: props.dismissNotice
2063
+ }, state.notice.seq),
2064
+ loaded && openPkg !== void 0 && openRow !== void 0 ? (0, react_jsx_runtime.jsx)(RowDetail, {
2065
+ pkg: openPkg,
2066
+ row: openRow,
2067
+ t,
2068
+ renderSlot,
2069
+ onBack: () => {
2070
+ setView({
2071
+ kind: "package",
2072
+ name: openPkg.name
2073
+ });
2074
+ }
2075
+ }) : null,
2076
+ loaded && openPkg !== void 0 && openRow === void 0 ? (0, react_jsx_runtime.jsx)(PackageDetail, {
2077
+ pkg: openPkg,
2078
+ t,
2079
+ busy: state.busy.includes(openPkg.name),
2080
+ rowBusy: (row) => row.entryId !== void 0 && state.busy.includes(rowKey(row.entryId)),
2081
+ configured: ledger.bundles.has(openPkg.name),
2082
+ configure: configure(openPkg),
2083
+ renderSlot,
2084
+ onBack: () => {
2085
+ setView({ kind: "list" });
2086
+ },
2087
+ onSetEnabled: (enabled) => {
2088
+ props.setEnabled(openPkg.name, enabled);
2089
+ },
2090
+ onUninstall: () => {
2091
+ props.uninstall(openPkg.name);
2092
+ },
2093
+ onSetRowEnabled: setRowEnabled
2094
+ }) : null,
2095
+ loaded && openItem !== void 0 ? (0, react_jsx_runtime.jsx)(ItemDetail, {
2096
+ item: openItem,
2097
+ t,
2098
+ renderSlot,
2099
+ onBack: () => {
2100
+ setView({ kind: "list" });
2101
+ }
2102
+ }) : null,
2103
+ loaded && showsCards ? officialCards.length === 0 && mine.length === 0 ? (0, react_jsx_runtime.jsx)("p", {
2104
+ className: PluginManagerPage_module_css_default.empty,
2105
+ children: t("empty")
2106
+ }) : (0, react_jsx_runtime.jsxs)(react_jsx_runtime.Fragment, { children: [renderGroup("official", t("officialTitle"), officialCards), renderGroup("bundles", t("bundlesTitle"), mine.map(packageCard))] }) : null,
2107
+ (0, react_jsx_runtime.jsx)(InstallDialog, {
2108
+ install: state.install,
2109
+ t,
2110
+ onClose: props.closeInstall,
2111
+ onEditSpec: props.editInstallSpec,
2112
+ onRun: props.runInstall,
2113
+ onCancel: props.cancelInstall,
2114
+ onCancelAndClose: props.cancelInstallAndClose,
2115
+ onToggleDetails: props.toggleInstallDetails,
2116
+ onEnableNow: props.enableInstalled,
2117
+ onApproveBuilds: props.approveBuildsAndRetry
2118
+ }),
2119
+ state.confirm === null ? null : (0, react_jsx_runtime.jsx)(ConfirmDialog, {
2120
+ confirm: state.confirm,
2121
+ t,
2122
+ onConfirm: props.confirm,
2123
+ onCancel: props.cancelConfirm
2124
+ })
2125
+ ]
2126
+ });
2127
+ }
2128
+ //#endregion
2129
+ //#region lib/types/client/PluginsPanelIcon.js
2130
+ /**
2131
+ * Render the plugin glyph at the size the sidebar asks for.
2132
+ * @param props - the sidebar's icon share: the requested edge and whether the panel is selected.
2133
+ * @returns the icon element.
2134
+ */
2135
+ function PluginsPanelIcon({ size }) {
2136
+ return (0, react_jsx_runtime.jsx)(_deepseek_ai_dsh_client_ui_primitives.IconPluginPinwheelOutline16, { size });
2137
+ }
2138
+ //#endregion
2139
+ //#region lib/types/client/locales.js
2140
+ /** Plugin management copy and display names of shipped global rows. */
2141
+ /** Simplified Chinese dictionary and key source of truth. */
2142
+ const zh = {
2143
+ panel: "插件",
2144
+ title: "插件",
2145
+ intro: "添加和管理插件",
2146
+ loading: "正在读取插件…",
2147
+ error: "暂时无法读取插件。",
2148
+ unavailable: "本部署没有可管理的 profile,无法安装或启停插件。",
2149
+ retry: "重试",
2150
+ refresh: "刷新",
2151
+ empty: "还没有安装任何插件。",
2152
+ addPlugin: "添加插件",
2153
+ restartNotice: "更改将在下次启动生效",
2154
+ overriddenNotice: "{name} 已保存,但被更高优先级的配置覆盖,当前未生效",
2155
+ bundlesTitle: "已安装",
2156
+ officialTitle: "官方",
2157
+ builtinAgentTeamTitle: "智能体团队",
2158
+ builtinAgentTeamDescription: "启用智能体团队协作与团队工具。",
2159
+ builtinAgentTeamWebTitle: "智能体团队 Web 界面",
2160
+ builtinAgentTeamWebDescription: "在浏览器中查看团队成员、任务看板和成员会话。",
2161
+ builtinAutoReviewTitle: "自动授权审查",
2162
+ builtinAutoReviewDescription: "提供自动审查权限模式,由模型在每次工具调用前判断是否授权。",
2163
+ statusProblem: "异常",
2164
+ statusBeta: "Beta",
2165
+ reasonLabel: "原因",
2166
+ versionTag: "v{version}",
2167
+ noDescription: "暂无描述。",
2168
+ partsLabel: "包含的组件",
2169
+ partsEmpty: "这个插件包不包含任何组件。",
2170
+ partsCountTotal: "共 {count} 个",
2171
+ partsCountRunning: "{count} 运行中",
2172
+ partsCountOff: "{count} 已停用",
2173
+ partOff: "已关闭",
2174
+ partsCountFailed: "{count} 异常",
2175
+ partsFilter: "筛选组件",
2176
+ partsFilterEmpty: "没有匹配的组件。",
2177
+ partToggle: "启用组件 {name}",
2178
+ rowPhasePending: "等待依赖",
2179
+ rowPhaseLoading: "加载中",
2180
+ rowPhaseActive: "运行中",
2181
+ rowPhaseFailed: "异常",
2182
+ rowPhaseUnloading: "卸载中",
2183
+ enableToggle: "启用 {name}",
2184
+ openDetail: "查看 {name}",
2185
+ backToList: "返回插件列表",
2186
+ crumbRoot: "插件列表",
2187
+ backToPackage: "返回 {name}",
2188
+ configureRow: "配置 {name}",
2189
+ rowStateIdle: "未运行",
2190
+ uninstall: "卸载",
2191
+ uninstallLabel: "卸载 {name}",
2192
+ installTitle: "添加插件",
2193
+ installDescription: "输入插件的包名、GitHub 仓库地址或本地目录路径。",
2194
+ installSpecLabel: "包名或地址",
2195
+ installSpecPlaceholder: "例如 @deepseek-ai/dsh-experimental-auto-review",
2196
+ installGuideToggle: "不知道该填什么?",
2197
+ installGuideHide: "收起引导",
2198
+ installGuideIntro: "从插件的 README 或发布页面复制以下任意一项。",
2199
+ installGuideIdNote: "包名即 npm 包名,常见形式为 dsh-xxx 或 @作者/插件名;插件的显示名称不是包名。",
2200
+ installGuideIdTitle: "包名",
2201
+ installGuideIdExample: "@deepseek-ai/dsh-experimental-auto-review",
2202
+ installGuideIdHint: "README 安装命令中 dsh plugin add 或 pnpm add 之后的部分。",
2203
+ installGuideGitTitle: "GitHub 仓库地址",
2204
+ installGuideGitExample: "https://github.com/author/dsh-plugin",
2205
+ installGuideGitHint: "插件在 GitHub 上的开源仓库地址,也支持其他 Git 仓库。",
2206
+ installGuidePathTitle: "本地插件目录",
2207
+ installGuidePathExample: "/Users/name/my-plugin",
2208
+ installGuidePathHint: "本机上插件目录的绝对路径,适用于自行开发或已下载的插件。",
2209
+ installGuideExampleLabel: "示例:",
2210
+ installGuideFill: "填入示例",
2211
+ installGuideFillAria: "填入示例 {example}",
2212
+ installGuideSafety: "请确认插件来源可信。插件在本机以你的权限运行,来源不明的插件可能损坏 DeepSeek Harness,或读取和泄露你的数据。",
2213
+ installRun: "安装",
2214
+ installChecking: "正在检查…",
2215
+ installProblemInvalid: "无法识别这个包名或地址:{reason}",
2216
+ installProblemInstalled: "该插件已安装",
2217
+ installProblemNotFound: "未找到相关插件",
2218
+ installProblemNotPackage: "该路径不存在或不是有效的插件包",
2219
+ installProblemNotBundle: "这个包没有声明组合包,无法作为插件安装:{reason}",
2220
+ installProblemNetwork: "无法连接插件源,请检查网络后重试",
2221
+ installProblemUnknown: "无法获取插件信息:{reason}",
2222
+ installingTitle: "插件安装中…",
2223
+ installedTitle: "已安装",
2224
+ installFailedTitle: "插件安装失败",
2225
+ installEdit: "编辑",
2226
+ installEditAria: "返回编辑",
2227
+ installCancel: "取消安装",
2228
+ installCloseCancels: "取消安装并关闭",
2229
+ installStarting: "正在准备安装…",
2230
+ installCancelling: "正在停止安装…",
2231
+ installApplying: "正在应用配置,请稍候…",
2232
+ installCancelledShort: "已取消",
2233
+ installCancelled: "已取消安装,插件未启用,下载的文件可能保留",
2234
+ installCancelUnconfirmed: "尚未确认安装已停止,请重试取消或等待安装结果。{reason}",
2235
+ installEnableNow: "立即启用",
2236
+ installDetailsShow: "查看安装详情",
2237
+ installDetailsHide: "收起安装详情",
2238
+ installVersion: "版本 {version}",
2239
+ installSubjectPath: "本地目录",
2240
+ installSubjectGit: "Git 仓库",
2241
+ installSubjectTarball: "压缩包",
2242
+ installLocation: "安装位置:{dir}",
2243
+ installRetry: "重试",
2244
+ installFailureNetwork: "网络连接失败",
2245
+ installFailureNotFound: "未找到相关插件",
2246
+ installFailureNoMatchingVersion: "没有匹配的版本",
2247
+ installFailureDiskFull: "磁盘空间不足,安装已停止",
2248
+ installFailurePermission: "没有写入权限,无法安装",
2249
+ installFailureBuildBlocked: "有依赖的安装脚本需要你允许后才能继续",
2250
+ installFailureBuildBlockedManual: "有依赖的安装脚本被 pnpm 拦下,请在 profile 的 pnpm-workspace.yaml 的 allowBuilds 中放行后重试",
2251
+ installFailureIntegrity: "下载的安装包校验失败",
2252
+ installFailureTimeout: "安装超时",
2253
+ installFailurePnpmMissing: "没有找到 pnpm,无法安装",
2254
+ installFailureGeneric: "安装过程中出错,原因见安装详情",
2255
+ terminalRunning: "运行中",
2256
+ terminalFailed: "失败",
2257
+ terminalDone: "已完成",
2258
+ terminalCopy: "复制",
2259
+ terminalCopied: "复制成功",
2260
+ terminalNoOutput: "无输出",
2261
+ terminalCollapseAria: "收起输出",
2262
+ terminalCollapse: "收起",
2263
+ terminalExpandAria: "展开其余 {n} 行输出",
2264
+ terminalExpand: "… 其余 {n} 行",
2265
+ terminalExitCode: "退出码 {code}",
2266
+ terminalSignal: "信号 {signal}",
2267
+ terminalNoExitCode: "未正常退出",
2268
+ installDoneNothing: "安装完成,没有新增依赖。",
2269
+ installDoneRestart: "已安装,下次启动后加载。",
2270
+ installDoneApproved: "已允许运行安装脚本:{names}",
2271
+ installApprovalTitle: "需要允许安装脚本",
2272
+ installApprovalDescription: "以下包声明了安装脚本,pnpm 默认不运行。",
2273
+ installApprovalConsequence: "允许后,脚本会以你的权限在本机运行,授权保存在当前 profile,之后不再询问。",
2274
+ installApprovalCaution: "只在信任这些包时允许。",
2275
+ installApproveAndRetry: "允许这些脚本并重试",
2276
+ installClose: "完成",
2277
+ close: "关闭",
2278
+ cancel: "取消",
2279
+ confirmUninstallTitle: "卸载「{name}」?",
2280
+ confirmUninstallDescription: "卸载后它提供的功能会消失。",
2281
+ confirmUninstall: "卸载",
2282
+ failedEnable: "启用失败:{reason}",
2283
+ failedDisable: "停用失败:{reason}",
2284
+ failedUninstall: "卸载失败:{reason}",
2285
+ failedRowEnable: "组件启用失败:{reason}",
2286
+ failedRowDisable: "组件停用失败:{reason}",
2287
+ reasonManagementRequired: "插件管理所需,不能停用或卸载",
2288
+ reasonUnaddressable: "当前 profile 的 patch 无法唯一定位这一项",
2289
+ reasonUnknownPlugin: "找不到该插件",
2290
+ reasonInvalidSpec: "请输入有效的包名或地址",
2291
+ reasonAmbiguousInstall: "无法从依赖变更中确定安装了哪一个包",
2292
+ reasonNotBundle: "这个包没有声明组合包,不能作为插件管理",
2293
+ reasonNotRemovable: "这个包不属于当前 profile,或者是插件管理所需的组件",
2294
+ reasonStopProfile: "这个 profile 没有启用 HMR,正在使用的包要停止后用 dsh plugin 卸载",
2295
+ reasonBundleInUse: "其他配置仍在使用这个组合包的组件,请先停用它们",
2296
+ reasonStaleApproval: "待允许的安装脚本列表已变化,请重新安装以刷新",
2297
+ reasonOperationError: "Host 报告了一个错误"
2298
+ };
2299
+ /** English dictionary checked against the Chinese key set. */
2300
+ const en = {
2301
+ panel: "Plugins",
2302
+ title: "Plugins",
2303
+ intro: "Add and manage plugins",
2304
+ loading: "Reading plugins…",
2305
+ error: "Plugins are temporarily unavailable.",
2306
+ unavailable: "This deployment runs without a manageable profile, so plugins cannot be installed or switched here.",
2307
+ retry: "Retry",
2308
+ refresh: "Refresh",
2309
+ empty: "No plugins are installed yet.",
2310
+ addPlugin: "Add plugin",
2311
+ restartNotice: "The change takes effect at the next start",
2312
+ overriddenNotice: "{name} was saved, but a higher-priority configuration overrides it, so it is not in effect",
2313
+ bundlesTitle: "Installed",
2314
+ officialTitle: "Official",
2315
+ builtinAgentTeamTitle: "Agent Teams",
2316
+ builtinAgentTeamDescription: "Enable agent team collaboration and team tools.",
2317
+ builtinAgentTeamWebTitle: "Agent Teams Web UI",
2318
+ builtinAgentTeamWebDescription: "View team members, the task board, and teammate sessions in the browser.",
2319
+ builtinAutoReviewTitle: "Auto Authorization Review",
2320
+ builtinAutoReviewDescription: "Add an Auto review permission mode that uses the model to assess authorization before each tool call.",
2321
+ statusProblem: "Problem",
2322
+ statusBeta: "Beta",
2323
+ reasonLabel: "Reason",
2324
+ versionTag: "v{version}",
2325
+ noDescription: "No description.",
2326
+ partsLabel: "Components",
2327
+ partsEmpty: "This plugin pack contains no components.",
2328
+ partsCountTotal: "{count} total",
2329
+ partsCountRunning: "{count} running",
2330
+ partsCountOff: "{count} off",
2331
+ partOff: "Off",
2332
+ partsCountFailed: "{count} failed",
2333
+ partsFilter: "Filter components",
2334
+ partsFilterEmpty: "No component matches.",
2335
+ partToggle: "Enable component {name}",
2336
+ rowPhasePending: "Waiting for dependencies",
2337
+ rowPhaseLoading: "Loading",
2338
+ rowPhaseActive: "Running",
2339
+ rowPhaseFailed: "Problem",
2340
+ rowPhaseUnloading: "Unloading",
2341
+ enableToggle: "Enable {name}",
2342
+ openDetail: "View {name}",
2343
+ backToList: "Back to plugins",
2344
+ crumbRoot: "Plugins",
2345
+ backToPackage: "Back to {name}",
2346
+ configureRow: "Configure {name}",
2347
+ rowStateIdle: "Not running",
2348
+ uninstall: "Uninstall",
2349
+ uninstallLabel: "Uninstall {name}",
2350
+ installTitle: "Add plugin",
2351
+ installDescription: "Enter the plugin's package name, GitHub repository address, or local directory path.",
2352
+ installSpecLabel: "Package name or address",
2353
+ installSpecPlaceholder: "for example @deepseek-ai/dsh-experimental-auto-review",
2354
+ installGuideToggle: "Not sure what to enter?",
2355
+ installGuideHide: "Hide the guide",
2356
+ installGuideIntro: "Copy any one of these from the plugin's README or release page.",
2357
+ installGuideIdNote: "The package name is the npm package name, usually dsh-xxx or @author/plugin; the display name is not one.",
2358
+ installGuideIdTitle: "Package name",
2359
+ installGuideIdExample: "@deepseek-ai/dsh-experimental-auto-review",
2360
+ installGuideIdHint: "The part after dsh plugin add or pnpm add in the README's install command.",
2361
+ installGuideGitTitle: "GitHub repository address",
2362
+ installGuideGitExample: "https://github.com/author/dsh-plugin",
2363
+ installGuideGitHint: "The address of the plugin's open-source repository on GitHub; other Git hosts work too.",
2364
+ installGuidePathTitle: "Local plugin directory",
2365
+ installGuidePathExample: "/Users/name/my-plugin",
2366
+ installGuidePathHint: "The absolute path of a plugin directory on this machine, developed here or downloaded.",
2367
+ installGuideExampleLabel: "Example: ",
2368
+ installGuideFill: "Use example",
2369
+ installGuideFillAria: "Use the example {example}",
2370
+ installGuideSafety: "Install only plugins you trust: they run with your permissions and can damage DeepSeek Harness or leak your data.",
2371
+ installRun: "Install",
2372
+ installChecking: "Checking…",
2373
+ installProblemInvalid: "This is not a package name or address that can be installed: {reason}",
2374
+ installProblemInstalled: "This plugin is already installed",
2375
+ installProblemNotFound: "No such plugin was found",
2376
+ installProblemNotPackage: "The path does not exist or is not a valid plugin package",
2377
+ installProblemNotBundle: "This package declares no bundle, so it cannot be installed as a plugin: {reason}",
2378
+ installProblemNetwork: "The plugin registry could not be reached; check the network and try again",
2379
+ installProblemUnknown: "The plugin could not be looked up: {reason}",
2380
+ installingTitle: "Installing the plugin…",
2381
+ installedTitle: "Installed",
2382
+ installFailedTitle: "The plugin could not be installed",
2383
+ installEdit: "Edit",
2384
+ installEditAria: "Back to editing",
2385
+ installCancel: "Cancel install",
2386
+ installCloseCancels: "Cancel install and close",
2387
+ installStarting: "Preparing installation…",
2388
+ installCancelling: "Stopping installation…",
2389
+ installApplying: "Applying configuration, please wait…",
2390
+ installCancelledShort: "Cancelled",
2391
+ installCancelled: "Installation cancelled; the plugin is not enabled, and downloaded files may remain",
2392
+ installCancelUnconfirmed: "Installation has not been confirmed stopped. Retry cancellation or wait for the installation result. {reason}",
2393
+ installEnableNow: "Enable now",
2394
+ installDetailsShow: "Show install details",
2395
+ installDetailsHide: "Hide install details",
2396
+ installVersion: "Version {version}",
2397
+ installSubjectPath: "Local directory",
2398
+ installSubjectGit: "Git repository",
2399
+ installSubjectTarball: "Tarball",
2400
+ installLocation: "Installs into {dir}",
2401
+ installRetry: "Retry",
2402
+ installFailureNetwork: "The network connection failed",
2403
+ installFailureNotFound: "No such plugin was found",
2404
+ installFailureNoMatchingVersion: "No version matches the request",
2405
+ installFailureDiskFull: "The disk is full; the install stopped",
2406
+ installFailurePermission: "No write permission; the plugin cannot be installed",
2407
+ installFailureBuildBlocked: "A dependency's install scripts need your permission before the install can continue",
2408
+ installFailureBuildBlockedManual: "pnpm blocked install scripts; allow them under allowBuilds in pnpm-workspace.yaml and retry",
2409
+ installFailureIntegrity: "The downloaded package failed its integrity check",
2410
+ installFailureTimeout: "The install timed out",
2411
+ installFailurePnpmMissing: "pnpm was not found, so nothing can be installed",
2412
+ installFailureGeneric: "Something went wrong during the install; the details say what",
2413
+ terminalRunning: "Running",
2414
+ terminalFailed: "Failed",
2415
+ terminalDone: "Done",
2416
+ terminalCopy: "Copy",
2417
+ terminalCopied: "Copied",
2418
+ terminalNoOutput: "No output",
2419
+ terminalCollapseAria: "Collapse output",
2420
+ terminalCollapse: "Collapse",
2421
+ terminalExpandAria: "Expand the remaining {n} output lines",
2422
+ terminalExpand: "… {n} more lines",
2423
+ terminalExitCode: "exit code {code}",
2424
+ terminalSignal: "signal {signal}",
2425
+ terminalNoExitCode: "no exit code",
2426
+ installDoneNothing: "Install finished with no new dependency.",
2427
+ installDoneRestart: "Installed; it loads at the next start.",
2428
+ installDoneApproved: "Install scripts allowed for {names}",
2429
+ installApprovalTitle: "Install scripts need permission",
2430
+ installApprovalDescription: "These packages have install scripts that pnpm did not run.",
2431
+ installApprovalConsequence: "Once allowed, the scripts run here with your permissions, and the permission is saved in this profile.",
2432
+ installApprovalCaution: "Allow only packages you trust.",
2433
+ installApproveAndRetry: "Allow these scripts and retry",
2434
+ installClose: "Done",
2435
+ close: "Close",
2436
+ cancel: "Cancel",
2437
+ confirmUninstallTitle: "Uninstall \"{name}\"?",
2438
+ confirmUninstallDescription: "What it provides goes away once it is uninstalled.",
2439
+ confirmUninstall: "Uninstall",
2440
+ failedEnable: "Could not enable: {reason}",
2441
+ failedDisable: "Could not disable: {reason}",
2442
+ failedUninstall: "Could not uninstall: {reason}",
2443
+ failedRowEnable: "Could not enable the component: {reason}",
2444
+ failedRowDisable: "Could not disable the component: {reason}",
2445
+ reasonManagementRequired: "Plugin management needs it; it cannot be switched off or uninstalled.",
2446
+ reasonUnaddressable: "The profile patch cannot address this one uniquely.",
2447
+ reasonUnknownPlugin: "No such plugin.",
2448
+ reasonInvalidSpec: "Enter a valid package name or address.",
2449
+ reasonAmbiguousInstall: "Which package was installed cannot be told from the dependency change.",
2450
+ reasonNotBundle: "This package declares no bundle, so it cannot be managed as a plugin.",
2451
+ reasonNotRemovable: "This package is not owned by the profile, or plugin management needs it.",
2452
+ reasonStopProfile: "This profile runs without HMR; stop it and uninstall the package with dsh plugin.",
2453
+ reasonBundleInUse: "Other configuration still uses this bundle's components; switch them off first.",
2454
+ reasonStaleApproval: "The pending script approvals changed; install again to refresh them.",
2455
+ reasonOperationError: "The Host reported an error."
2456
+ };
2457
+ //#endregion
2458
+ //#region lib/types/client/index.js
2459
+ /**
2460
+ * Plugin manager, browser half: the **Plugins** entry of the sidebar and the
2461
+ * management page it opens in the main column. The page installs, enables,
2462
+ * disables, and removes the bundles of the Host's profile through the
2463
+ * `pluginManager` Remote and switches their rows in the profile's user layer.
2464
+ * A plugin that carries its own configuration renders it on this page through
2465
+ * the slots the page declares (`slot-contract.ts`).
2466
+ */
2467
+ /** Dictionary namespace owned by this plugin. */
2468
+ const NS = "pluginManager";
2469
+ /** The id shared by the sidebar entry and the main panel it opens. */
2470
+ const PANEL_ID = "plugins";
2471
+ /** Services required by the sidebar registration and the Remote methods; the inventory says whether the Host manages a profile. */
2472
+ const inject = [
2473
+ "slots",
2474
+ "locale",
2475
+ "remote",
2476
+ "remote.pluginManager",
2477
+ "remote.pluginInventory"
2478
+ ];
2479
+ /**
2480
+ * Contribute the Plugins entry to the sidebar with the management page it
2481
+ * opens, and keep it current on the Host's change events.
2482
+ * @param ctx - the browser plugin context.
2483
+ */
2484
+ function apply(ctx) {
2485
+ ctx.effect(() => ctx.locale.register(NS, {
2486
+ zh,
2487
+ en
2488
+ }), "ui-plugin-manager: dictionaries");
2489
+ const t = ctx.locale.bind(NS);
2490
+ const controller = new PluginManagerController(ctx);
2491
+ ctx.effect(() => () => {
2492
+ controller.dispose();
2493
+ }, "ui-plugin-manager: controller");
2494
+ ctx.effect(() => {
2495
+ const refresh = () => {
2496
+ if (controller.getSnapshot().status !== "idle") controller.load();
2497
+ };
2498
+ const disposers = [
2499
+ ctx.remote.$on("plugin-manager/changed", refresh),
2500
+ ctx.remote.$on("plugin-manager/install-log", (chunk) => {
2501
+ controller.appendLog(chunk);
2502
+ }),
2503
+ ctx.remote.$on("plugin-manager/install-state", (progress) => {
2504
+ controller.installProgress(progress);
2505
+ }),
2506
+ ctx.on("connection/reset", refresh)
2507
+ ];
2508
+ return () => {
2509
+ for (const dispose of disposers) dispose();
2510
+ };
2511
+ }, "ui-plugin-manager: host invalidations");
2512
+ const configLedger = configLedgerSource(ctx);
2513
+ ctx.slots.inject("main", () => ctx.slots.register({
2514
+ name: "main",
2515
+ key: PANEL_ID,
2516
+ locale: NS,
2517
+ inject: () => controller.inject(configLedger),
2518
+ children: {
2519
+ "plugins.item": {
2520
+ kind: "list",
2521
+ scope: "root"
2522
+ },
2523
+ "plugins.bundle.config": {
2524
+ kind: "keyed",
2525
+ scope: "root"
2526
+ },
2527
+ "plugins.row.config": {
2528
+ kind: "keyed",
2529
+ scope: "root"
2530
+ }
2531
+ }
2532
+ }, PluginManagerPage));
2533
+ ctx.slots.inject("sidebar.panellist", () => ctx.slots.register({
2534
+ name: "sidebar.panellist",
2535
+ id: PANEL_ID,
2536
+ order: 0,
2537
+ label: () => t("panel"),
2538
+ locale: NS
2539
+ }, PluginsPanelIcon));
2540
+ }
2541
+ //#endregion
2542
+ exports.NS = NS;
2543
+ exports.PANEL_ID = PANEL_ID;
2544
+ exports.apply = apply;
2545
+ exports.inject = inject;
2546
+ return module.exports;
2547
+ }
2548
+ });
2549
+
2550
+ //# sourceMappingURL=client.js.map