@songtonyli/dsh-cli 0.1.75 → 0.1.77

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 (681) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/dsh/README.i18n.yaml +2 -2
  4. package/node_modules/@deepseek-ai/dsh/README.md +1 -1
  5. package/node_modules/@deepseek-ai/dsh/README.zh.md +1 -1
  6. package/node_modules/@deepseek-ai/dsh/package.json +117 -116
  7. package/node_modules/@deepseek-ai/dsh-acp/package.json +23 -23
  8. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +3 -3
  9. package/node_modules/@deepseek-ai/dsh-agent/package.json +18 -18
  10. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +7 -7
  11. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +24 -24
  12. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +22 -22
  13. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +6 -6
  14. package/node_modules/@deepseek-ai/dsh-agent-preset/skills/cordis-composition-reference/references/packages.md +3 -1
  15. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +26 -26
  16. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +8 -8
  17. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +5 -5
  18. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.host.js +7 -6
  19. package/node_modules/@deepseek-ai/dsh-api-account-controller/lib/typert.remote-client.js +7 -6
  20. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +7 -7
  21. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +9 -9
  22. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +11 -11
  23. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +9 -10
  24. package/node_modules/@deepseek-ai/dsh-api-remote-access/package.json +7 -8
  25. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +490 -62
  26. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/index.js +4 -0
  27. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/client/index.js +3 -1
  28. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/types/remote-events.js +1 -0
  29. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -41
  30. package/node_modules/@deepseek-ai/dsh-api-session-controller/lib/typert.host.js +1 -1
  31. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -73
  32. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +13 -13
  33. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.i18n.yaml +2 -2
  34. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.md +2 -0
  35. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/README.zh.md +2 -0
  36. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/client.js +166 -21
  37. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/index.js +36 -9
  38. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/inventory.js +101 -0
  39. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/lib/types/client/model.js +23 -7
  40. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +19 -19
  41. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +18 -19
  42. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +12 -13
  43. package/node_modules/@deepseek-ai/dsh-app-boot/README.i18n.yaml +2 -2
  44. package/node_modules/@deepseek-ai/dsh-app-boot/README.md +2 -2
  45. package/node_modules/@deepseek-ai/dsh-app-boot/README.zh.md +2 -2
  46. package/node_modules/@deepseek-ai/dsh-app-boot/lib/index.js +40 -26
  47. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +8 -8
  48. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +1 -1
  49. package/node_modules/@deepseek-ai/dsh-attachment/package.json +3 -3
  50. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +6 -6
  51. package/node_modules/@deepseek-ai/dsh-authorization/package.json +5 -5
  52. package/node_modules/@deepseek-ai/dsh-base/package.json +94 -94
  53. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +8 -8
  54. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +12 -12
  55. package/node_modules/@deepseek-ai/dsh-brand/package.json +1 -1
  56. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +1 -1
  57. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +10 -10
  58. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +10 -10
  59. package/node_modules/@deepseek-ai/dsh-client-hmr/README.i18n.yaml +2 -2
  60. package/node_modules/@deepseek-ai/dsh-client-hmr/README.md +1 -1
  61. package/node_modules/@deepseek-ai/dsh-client-hmr/README.zh.md +1 -1
  62. package/node_modules/@deepseek-ai/dsh-client-hmr/lib/client.js +237 -11
  63. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +5 -4
  64. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +7 -10
  65. package/node_modules/@deepseek-ai/dsh-client-modules/README.i18n.yaml +10 -7
  66. package/node_modules/@deepseek-ai/dsh-client-modules/README.md +8 -2
  67. package/node_modules/@deepseek-ai/dsh-client-modules/README.zh.md +9 -2
  68. package/node_modules/@deepseek-ai/dsh-client-modules/lib/client.js +136 -6
  69. package/node_modules/@deepseek-ai/dsh-client-modules/lib/index.js +25 -6
  70. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +3 -4
  71. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.i18n.yaml +6 -6
  72. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.md +22 -4
  73. package/node_modules/@deepseek-ai/dsh-client-product-analytics/README.zh.md +22 -4
  74. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/index.js +238 -6
  75. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.host.js +6 -6
  76. package/node_modules/@deepseek-ai/dsh-client-product-analytics/lib/typert.remote-client.js +4 -4
  77. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +12 -11
  78. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +3 -5
  79. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +6 -8
  80. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +14 -17
  81. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +11 -13
  82. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +8 -10
  83. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +3 -4
  84. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +34 -37
  85. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.i18n.yaml +2 -2
  86. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.md +1 -1
  87. package/node_modules/@deepseek-ai/dsh-client-ui-commands/README.zh.md +1 -1
  88. package/node_modules/@deepseek-ai/dsh-client-ui-commands/lib/client.js +16 -1
  89. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +12 -15
  90. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.i18n.yaml +2 -2
  91. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.md +2 -2
  92. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/README.zh.md +2 -2
  93. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/lib/client.js +356 -124
  94. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +30 -33
  95. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +11 -13
  96. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +25 -28
  97. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +5 -7
  98. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +3 -3
  99. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +12 -14
  100. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.i18n.yaml +2 -2
  101. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.md +1 -1
  102. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/README.zh.md +1 -1
  103. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/lib/client.js +18 -0
  104. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +9 -12
  105. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +8 -10
  106. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +7 -9
  107. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +13 -16
  108. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.i18n.yaml +3 -0
  109. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.md +8 -0
  110. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/README.zh.md +8 -0
  111. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/lib/client.js +34 -8
  112. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +13 -16
  113. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +16 -19
  114. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +12 -15
  115. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +17 -20
  116. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.i18n.yaml +5 -2
  117. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.md +4 -0
  118. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/README.zh.md +4 -0
  119. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/lib/client.js +314 -85
  120. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +13 -16
  121. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.i18n.yaml +34 -0
  122. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.md +72 -0
  123. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/README.zh.md +72 -0
  124. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/client.js +1637 -0
  125. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/lib/index.js +6 -0
  126. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-market/package.json +62 -0
  127. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +13 -15
  128. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +1 -2
  129. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +17 -19
  130. package/node_modules/@deepseek-ai/dsh-client-ui-secret-mask/package.json +4 -5
  131. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +7 -9
  132. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +4 -6
  133. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.i18n.yaml +2 -2
  134. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.md +1 -1
  135. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/README.zh.md +1 -1
  136. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +117 -66
  137. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +13 -16
  138. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +6 -9
  139. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.i18n.yaml +5 -2
  140. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.md +6 -0
  141. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/README.zh.md +6 -0
  142. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +176 -39
  143. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +15 -14
  144. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.i18n.yaml +2 -2
  145. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.md +3 -1
  146. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/README.zh.md +3 -1
  147. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/lib/client.js +324 -36
  148. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +8 -11
  149. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +9 -12
  150. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +5 -6
  151. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +6 -9
  152. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +6 -9
  153. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +4 -7
  154. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +6 -9
  155. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +6 -9
  156. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +7 -10
  157. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  158. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +9 -12
  159. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +8 -11
  160. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +15 -18
  161. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +11 -14
  162. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/lib/client.js +1 -1
  163. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +12 -15
  164. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +12 -15
  165. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.i18n.yaml +6 -6
  166. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.md +5 -3
  167. package/node_modules/@deepseek-ai/dsh-client-ui-skill/README.zh.md +5 -3
  168. package/node_modules/@deepseek-ai/dsh-client-ui-skill/lib/client.js +1 -0
  169. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +14 -15
  170. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +15 -17
  171. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +9 -12
  172. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.i18n.yaml +2 -2
  173. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.md +1 -1
  174. package/node_modules/@deepseek-ai/dsh-client-ui-tool/README.zh.md +1 -1
  175. package/node_modules/@deepseek-ai/dsh-client-ui-tool/lib/client.js +75 -25
  176. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +25 -27
  177. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +14 -17
  178. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +18 -21
  179. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +11 -14
  180. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +23 -26
  181. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +1 -1
  182. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +8 -8
  183. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +11 -11
  184. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +11 -11
  185. package/node_modules/@deepseek-ai/dsh-commands/package.json +16 -16
  186. package/node_modules/@deepseek-ai/dsh-compaction/package.json +9 -9
  187. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +21 -21
  188. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +16 -16
  189. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +12 -12
  190. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +6 -6
  191. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/lib/client.js +95 -8
  192. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +6 -6
  193. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +18 -18
  194. package/node_modules/@deepseek-ai/dsh-credentials/package.json +2 -2
  195. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +9 -9
  196. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -7
  197. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.i18n.yaml +2 -2
  198. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.md +1 -1
  199. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/README.zh.md +1 -1
  200. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/index.js +15 -13
  201. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/lib/types/details.js +10 -4
  202. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +9 -9
  203. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +1 -1
  204. package/node_modules/@deepseek-ai/dsh-deque/package.json +1 -1
  205. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +19 -19
  206. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +4 -4
  207. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +5 -5
  208. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +38 -38
  209. package/node_modules/@deepseek-ai/dsh-experimental-badge-skill-bundle/package.json +2 -2
  210. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +9 -22
  211. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-cot-translation/package.json +18 -26
  212. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +14 -32
  213. package/node_modules/@deepseek-ai/dsh-experimental-cot-translation-bundle/package.json +3 -3
  214. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.i18n.yaml +2 -2
  215. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.md +1 -1
  216. package/node_modules/@deepseek-ai/dsh-experimental-inspector/README.zh.md +1 -1
  217. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/index.js +70 -17
  218. package/node_modules/@deepseek-ai/dsh-experimental-inspector/lib/worker.js +16 -12
  219. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +14 -20
  220. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +3 -3
  221. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.i18n.yaml +34 -0
  222. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.md +68 -0
  223. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/README.zh.md +68 -0
  224. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/cordis.patch.yml +10 -0
  225. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/icon.svg +9 -0
  226. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/lib/index.js +1 -0
  227. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/en.json +6 -0
  228. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/locale/zh.json +6 -0
  229. package/node_modules/@deepseek-ai/dsh-experimental-plugin-market-bundle/package.json +50 -0
  230. package/node_modules/@deepseek-ai/dsh-experimental-ralph-bundle/package.json +3 -3
  231. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +10 -13
  232. package/node_modules/@deepseek-ai/dsh-experimental-session-search/package.json +3 -3
  233. package/node_modules/@deepseek-ai/dsh-experimental-session-titles-bundle/package.json +2 -2
  234. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +6 -6
  235. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/lib/worker.js +26 -12
  236. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +7 -7
  237. package/node_modules/@deepseek-ai/dsh-experimental-terminal-bundle/package.json +4 -4
  238. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +22 -22
  239. package/node_modules/@deepseek-ai/dsh-experimental-tool-worktree/package.json +18 -18
  240. package/node_modules/@deepseek-ai/dsh-experimental-translator/package.json +24 -24
  241. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +5 -5
  242. package/node_modules/@deepseek-ai/dsh-experimental-worktree/package.json +21 -21
  243. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +3 -3
  244. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +13 -13
  245. package/node_modules/@deepseek-ai/dsh-fs/package.json +7 -7
  246. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +4 -4
  247. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +4 -4
  248. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +10 -10
  249. package/node_modules/@deepseek-ai/dsh-goal/package.json +20 -20
  250. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  251. package/node_modules/@deepseek-ai/dsh-harness-dev-context/package.json +11 -11
  252. package/node_modules/@deepseek-ai/dsh-headless/package.json +19 -19
  253. package/node_modules/@deepseek-ai/dsh-hmr/package.json +6 -6
  254. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +1 -1
  255. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +1 -1
  256. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +15 -15
  257. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +2 -2
  258. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +3 -3
  259. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +6 -6
  260. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +5 -5
  261. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +9 -9
  262. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +4 -4
  263. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +1 -1
  264. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +1 -1
  265. package/node_modules/@deepseek-ai/dsh-jobs/package.json +9 -9
  266. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +11 -11
  267. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +1 -1
  268. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +1 -1
  269. package/node_modules/@deepseek-ai/dsh-llm/package.json +7 -7
  270. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +20 -20
  271. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +37 -37
  272. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +13 -13
  273. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +9 -9
  274. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +21 -21
  275. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +19 -19
  276. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +20 -20
  277. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +12 -12
  278. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +14 -14
  279. package/node_modules/@deepseek-ai/dsh-native-command/package.json +2 -2
  280. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +10 -10
  281. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +6 -6
  282. package/node_modules/@deepseek-ai/dsh-otel/package.json +3 -3
  283. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +1 -1
  284. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +1 -1
  285. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +18 -18
  286. package/node_modules/@deepseek-ai/dsh-persona/package.json +4 -4
  287. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +20 -20
  288. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.i18n.yaml +2 -2
  289. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.md +2 -2
  290. package/node_modules/@deepseek-ai/dsh-plugin-manager/README.zh.md +2 -2
  291. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/index.js +4 -3
  292. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.host.js +14 -14
  293. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/typert.remote-client.js +13 -13
  294. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/failure.js +2 -2
  295. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/operations.js +3 -3
  296. package/node_modules/@deepseek-ai/dsh-plugin-manager/lib/types/tools.js +1 -1
  297. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +27 -27
  298. package/node_modules/@deepseek-ai/dsh-plugin-market/README.i18n.yaml +43 -0
  299. package/node_modules/@deepseek-ai/dsh-plugin-market/README.md +117 -0
  300. package/node_modules/@deepseek-ai/dsh-plugin-market/README.zh.md +117 -0
  301. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/index.js +661 -0
  302. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.host.js +407 -0
  303. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/typert.remote-client.js +259 -0
  304. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index-url.js +27 -0
  305. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/index.js +351 -0
  306. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse-thread.js +61 -0
  307. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/parse.js +36 -0
  308. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/search.js +135 -0
  309. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/tools.js +128 -0
  310. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/types.js +2 -0
  311. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/types/worker.js +8 -0
  312. package/node_modules/@deepseek-ai/dsh-plugin-market/lib/worker.cjs +1759 -0
  313. package/node_modules/@deepseek-ai/dsh-plugin-market/package.json +89 -0
  314. package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.i18n.yaml +34 -0
  315. package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.md +74 -0
  316. package/node_modules/@deepseek-ai/dsh-plugin-market-index/README.zh.md +74 -0
  317. package/node_modules/@deepseek-ai/dsh-plugin-market-index/lib/index.js +320 -0
  318. package/node_modules/@deepseek-ai/{dsh-client-ui-slots → dsh-plugin-market-index}/package.json +15 -12
  319. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +13 -13
  320. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +3 -3
  321. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +20 -20
  322. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +8 -8
  323. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +12 -12
  324. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +9 -9
  325. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +6 -6
  326. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +22 -22
  327. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +9 -9
  328. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +11 -11
  329. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +10 -10
  330. package/node_modules/@deepseek-ai/dsh-schedule/package.json +30 -30
  331. package/node_modules/@deepseek-ai/dsh-scope/package.json +1 -1
  332. package/node_modules/@deepseek-ai/dsh-sdk-app/README.i18n.yaml +4 -4
  333. package/node_modules/@deepseek-ai/dsh-sdk-app/README.md +2 -2
  334. package/node_modules/@deepseek-ai/dsh-sdk-app/README.zh.md +2 -2
  335. package/node_modules/@deepseek-ai/dsh-sdk-app/cordis.patch.yml +5 -0
  336. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +5 -5
  337. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +23 -23
  338. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +34 -34
  339. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +7 -7
  340. package/node_modules/@deepseek-ai/dsh-session/package.json +8 -8
  341. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +15 -15
  342. package/node_modules/@deepseek-ai/dsh-session-format/package.json +2 -2
  343. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +9 -9
  344. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +4 -4
  345. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +6 -6
  346. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +4 -4
  347. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +3 -3
  348. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +13 -13
  349. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +18 -21
  350. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +9 -9
  351. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +10 -10
  352. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +3 -3
  353. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +10 -10
  354. package/node_modules/@deepseek-ai/dsh-session-query/package.json +18 -18
  355. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +9 -9
  356. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +35 -35
  357. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +7 -7
  358. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +5 -5
  359. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +21 -21
  360. package/node_modules/@deepseek-ai/dsh-session-title/package.json +14 -14
  361. package/node_modules/@deepseek-ai/dsh-session-title-all-prompts-llm/package.json +12 -12
  362. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +15 -15
  363. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +10 -10
  364. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +7 -7
  365. package/node_modules/@deepseek-ai/dsh-settings/package.json +10 -10
  366. package/node_modules/@deepseek-ai/dsh-shell/package.json +5 -5
  367. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +11 -11
  368. package/node_modules/@deepseek-ai/dsh-skill/package.json +6 -6
  369. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +3 -3
  370. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +7 -7
  371. package/node_modules/@deepseek-ai/dsh-skill-office/README.i18n.yaml +2 -2
  372. package/node_modules/@deepseek-ai/dsh-skill-office/README.md +1 -1
  373. package/node_modules/@deepseek-ai/dsh-skill-office/README.zh.md +1 -1
  374. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-export-pdf/SKILL.md +1 -1
  375. package/node_modules/@deepseek-ai/dsh-skill-office/assets/office-render/SKILL.md +1 -1
  376. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +4 -4
  377. package/node_modules/@deepseek-ai/dsh-spill/package.json +7 -7
  378. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +6 -6
  379. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +30 -30
  380. package/node_modules/@deepseek-ai/dsh-storage/package.json +1 -1
  381. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +3 -3
  382. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +3 -3
  383. package/node_modules/@deepseek-ai/dsh-subagent/package.json +46 -46
  384. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +20 -20
  385. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +11 -11
  386. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +15 -15
  387. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +4 -4
  388. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.i18n.yaml +4 -4
  389. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.md +3 -3
  390. package/node_modules/@deepseek-ai/dsh-subprocess-local/README.zh.md +3 -3
  391. package/node_modules/@deepseek-ai/dsh-subprocess-local/lib/index.js +252 -47
  392. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +7 -7
  393. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +5 -5
  394. package/node_modules/@deepseek-ai/dsh-terminal/package.json +6 -6
  395. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +19 -19
  396. package/node_modules/@deepseek-ai/dsh-time-context/package.json +18 -18
  397. package/node_modules/@deepseek-ai/dsh-timeout/package.json +1 -1
  398. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +11 -11
  399. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +14 -14
  400. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +9 -9
  401. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  402. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +21 -21
  403. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +7 -7
  404. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +125 -4
  405. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +10 -10
  406. package/node_modules/@deepseek-ai/dsh-tool-fs/README.md +1 -1
  407. package/node_modules/@deepseek-ai/dsh-tool-fs/README.zh.md +1 -1
  408. package/node_modules/@deepseek-ai/dsh-tool-fs/lib/index.js +1 -1
  409. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +31 -31
  410. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +27 -27
  411. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +16 -16
  412. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +15 -15
  413. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +19 -19
  414. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  415. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +22 -22
  416. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +19 -19
  417. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +12 -12
  418. package/node_modules/@deepseek-ai/dsh-tool-session-query/package.json +24 -24
  419. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +14 -14
  420. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +19 -19
  421. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.md +1 -1
  422. package/node_modules/@deepseek-ai/dsh-tool-subagent/README.zh.md +1 -1
  423. package/node_modules/@deepseek-ai/dsh-tool-subagent/lib/index.js +1 -1
  424. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +22 -22
  425. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +19 -19
  426. package/node_modules/@deepseek-ai/dsh-tool-terminal/package.json +25 -25
  427. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +13 -13
  428. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +19 -19
  429. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +20 -20
  430. package/node_modules/@deepseek-ai/dsh-tool-working-directory/package.json +11 -11
  431. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +6 -6
  432. package/node_modules/@deepseek-ai/dsh-tools/README.i18n.yaml +2 -2
  433. package/node_modules/@deepseek-ai/dsh-tools/README.md +3 -3
  434. package/node_modules/@deepseek-ai/dsh-tools/README.zh.md +3 -3
  435. package/node_modules/@deepseek-ai/dsh-tools/lib/index.js +45 -26
  436. package/node_modules/@deepseek-ai/dsh-tools/lib/types/index.js +1 -1
  437. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ptc.js +20 -10
  438. package/node_modules/@deepseek-ai/dsh-tools/lib/types/py-types.js +1 -1
  439. package/node_modules/@deepseek-ai/dsh-tools/lib/types/ts-types.js +26 -9
  440. package/node_modules/@deepseek-ai/dsh-tools/package.json +24 -24
  441. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +6 -6
  442. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +10 -10
  443. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +10 -10
  444. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +347 -136
  445. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +78 -78
  446. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +5 -5
  447. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +2 -2
  448. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +2 -2
  449. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +13 -13
  450. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +15 -15
  451. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +1 -1
  452. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +1 -1
  453. package/node_modules/@deepseek-ai/dsh-util-time/package.json +1 -1
  454. package/node_modules/@deepseek-ai/dsh-util-values/package.json +1 -1
  455. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +1 -1
  456. package/node_modules/@deepseek-ai/dsh-web/package.json +3 -3
  457. package/node_modules/@deepseek-ai/dsh-web-app/package.json +140 -139
  458. package/node_modules/@deepseek-ai/dsh-web-app/presets/cordis.patch.yml +3 -0
  459. package/node_modules/@deepseek-ai/dsh-web-app/presets/ptc.patch.yml +3 -0
  460. package/node_modules/@deepseek-ai/dsh-web-app/presets/standard.patch.yml +3 -0
  461. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +7 -7
  462. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +18 -20
  463. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +15 -15
  464. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +6 -6
  465. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +6 -6
  466. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +2 -2
  467. package/node_modules/@deepseek-ai/dsh-workflow/package.json +9 -9
  468. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  469. package/node_modules/@deepseek-ai/dsh-working-directory/package.json +18 -18
  470. package/node_modules/@deepseek-ai/dsh-workspace/package.json +12 -12
  471. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +18 -18
  472. package/node_modules/@earendil-works/pi-ai/README.md +5 -34
  473. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +59 -54
  474. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +16 -18
  475. package/node_modules/@earendil-works/pi-ai/dist/api/google-shared.js +2 -0
  476. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +2 -2
  477. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +29 -27
  478. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +15 -2
  479. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +21 -4
  480. package/node_modules/@earendil-works/pi-ai/dist/api/transform-messages.js +28 -15
  481. package/node_modules/@earendil-works/pi-ai/dist/index.js +0 -1
  482. package/node_modules/@earendil-works/pi-ai/dist/providers/compat-schema.js +8 -0
  483. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  484. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  485. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  486. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  487. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  488. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  489. package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
  490. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  491. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  492. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  493. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  494. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  495. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  496. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  497. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  498. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  499. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  500. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  501. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  502. package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.js +3 -3
  503. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.js +2 -0
  504. package/node_modules/@earendil-works/pi-ai/dist/utils/json-parse.js +26 -1
  505. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +5 -1
  506. package/node_modules/@earendil-works/pi-ai/dist/utils/validation.js +3 -0
  507. package/node_modules/@earendil-works/pi-ai/package.json +2 -2
  508. package/node_modules/@earendil-works/pi-telemetry/package.json +1 -1
  509. package/node_modules/minisearch/LICENSE.txt +7 -0
  510. package/node_modules/minisearch/README.md +347 -0
  511. package/node_modules/minisearch/dist/cjs/SearchableMap.cjs +549 -0
  512. package/node_modules/minisearch/dist/cjs/index.cjs +2007 -0
  513. package/node_modules/minisearch/dist/es/SearchableMap.js +547 -0
  514. package/node_modules/minisearch/dist/es/index.js +2005 -0
  515. package/node_modules/minisearch/dist/umd/SearchableMap.js +555 -0
  516. package/node_modules/minisearch/dist/umd/index.js +2013 -0
  517. package/node_modules/minisearch/package.json +90 -0
  518. package/node_modules/minisearch/src/MiniSearch.test.js +1997 -0
  519. package/node_modules/minisearch/src/MiniSearch.ts +2261 -0
  520. package/node_modules/minisearch/src/SearchableMap/SearchableMap.test.js +314 -0
  521. package/node_modules/minisearch/src/SearchableMap/SearchableMap.ts +424 -0
  522. package/node_modules/minisearch/src/SearchableMap/TreeIterator.ts +103 -0
  523. package/node_modules/minisearch/src/SearchableMap/fuzzySearch.ts +130 -0
  524. package/node_modules/minisearch/src/SearchableMap/types.ts +18 -0
  525. package/node_modules/minisearch/src/index.ts +4 -0
  526. package/node_modules/minisearch/src/testSetup/jest.js +1 -0
  527. package/package.json +305 -301
  528. package/node_modules/@deepseek-ai/dsh-client-store/LICENSE +0 -21
  529. package/node_modules/@deepseek-ai/dsh-client-store/README.i18n.yaml +0 -28
  530. package/node_modules/@deepseek-ai/dsh-client-store/README.md +0 -46
  531. package/node_modules/@deepseek-ai/dsh-client-store/README.zh.md +0 -46
  532. package/node_modules/@deepseek-ai/dsh-client-store/lib/index.js +0 -180
  533. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/contract.d.ts +0 -121
  534. package/node_modules/@deepseek-ai/dsh-client-store/lib/types/index.d.ts +0 -92
  535. package/node_modules/@deepseek-ai/dsh-client-store/package.json +0 -37
  536. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/LICENSE +0 -21
  537. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.i18n.yaml +0 -61
  538. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.md +0 -221
  539. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/README.zh.md +0 -221
  540. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Button.module.css +0 -77
  541. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Checkbox.module.css +0 -28
  542. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CodeCard.module.css +0 -83
  543. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/CommandText.module.css +0 -12
  544. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ConnectionIndicator.module.css +0 -118
  545. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DiffBlock.module.css +0 -80
  546. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/DisclosureRow.module.css +0 -111
  547. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/FileTypeIcon.module.css +0 -50
  548. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/HoverCard.module.css +0 -90
  549. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImageLightbox.module.css +0 -54
  550. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ImagePreview.module.css +0 -24
  551. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/InlineEditor.module.css +0 -23
  552. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Input.module.css +0 -38
  553. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/JsonTree.module.css +0 -345
  554. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Menu.module.css +0 -285
  555. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuGroup.module.css +0 -37
  556. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/MenuSurface.module.css +0 -49
  557. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Modal.module.css +0 -129
  558. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/OnboardingSurface.module.css +0 -28
  559. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/PathLabel.module.css +0 -28
  560. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Pill.module.css +0 -28
  561. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ReadBlock.module.css +0 -43
  562. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/RiskConfirmation.module.css +0 -73
  563. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SearchBlock.module.css +0 -112
  564. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedControl.module.css +0 -76
  565. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/SegmentedTabs.module.css +0 -55
  566. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/ShortcutKeys.module.css +0 -33
  567. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/StateDot.module.css +0 -100
  568. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Switch.module.css +0 -49
  569. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tag.module.css +0 -57
  570. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TerminalBlock.module.css +0 -205
  571. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/TextShimmer.module.css +0 -88
  572. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Toast.module.css +0 -101
  573. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/Tooltip.module.css +0 -63
  574. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/WebBlock.module.css +0 -141
  575. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/index.js +0 -12583
  576. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/CodeBlock.module.css +0 -145
  577. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/JsonBlock.module.css +0 -32
  578. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/markdown/MarkdownText.module.css +0 -467
  579. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/SettingsForm.module.css +0 -53
  580. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/settings-form/fields.module.css +0 -145
  581. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/BrandWordmark.d.ts +0 -15
  582. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Button.d.ts +0 -19
  583. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Checkbox.d.ts +0 -20
  584. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeFileIcon.d.ts +0 -12
  585. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CodeToolbar.d.ts +0 -30
  586. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/CommandText.d.ts +0 -16
  587. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConfigField.d.ts +0 -33
  588. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ConnectionIndicator.d.ts +0 -26
  589. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DiffBlock.d.ts +0 -52
  590. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/DisclosureRow.d.ts +0 -38
  591. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FileTypeIcon.d.ts +0 -43
  592. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FishLogo.d.ts +0 -16
  593. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/FoldToggle.d.ts +0 -20
  594. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCard.d.ts +0 -40
  595. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/HoverCardGroup.d.ts +0 -23
  596. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImageLightbox.d.ts +0 -27
  597. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ImagePreview.d.ts +0 -12
  598. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/InlineEditor.d.ts +0 -23
  599. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Input.d.ts +0 -12
  600. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/JsonTree.d.ts +0 -59
  601. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/LinkIcon.d.ts +0 -34
  602. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Menu.d.ts +0 -143
  603. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuGroup.d.ts +0 -22
  604. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/MenuSurface.d.ts +0 -16
  605. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Modal.d.ts +0 -44
  606. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/OnboardingSurface.d.ts +0 -11
  607. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PathLabel.d.ts +0 -13
  608. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/PermissionIcon.d.ts +0 -51
  609. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Pill.d.ts +0 -13
  610. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReadBlock.d.ts +0 -48
  611. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ReferenceIcon.d.ts +0 -21
  612. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/RiskConfirmation.d.ts +0 -20
  613. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SearchBlock.d.ts +0 -72
  614. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedControl.d.ts +0 -35
  615. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SegmentedTabs.d.ts +0 -26
  616. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ShortcutKeys.d.ts +0 -11
  617. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/SiteGlyph.d.ts +0 -25
  618. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/StateDot.d.ts +0 -20
  619. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Switch.d.ts +0 -20
  620. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tag.d.ts +0 -32
  621. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TerminalBlock.d.ts +0 -86
  622. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/TextShimmer.d.ts +0 -22
  623. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Toast.d.ts +0 -49
  624. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/Tooltip.d.ts +0 -63
  625. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/WebBlock.d.ts +0 -61
  626. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/ansi.d.ts +0 -17
  627. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/clipboard.d.ts +0 -9
  628. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-icon-artwork.d.ts +0 -54
  629. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-file-types.d.ts +0 -30
  630. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/code-highlighting.d.ts +0 -12
  631. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/darwin-desktop.d.ts +0 -9
  632. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/file-size.d.ts +0 -8
  633. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/focus.d.ts +0 -9
  634. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/guide-artwork.d.ts +0 -15
  635. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/head-tail-cap.d.ts +0 -23
  636. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/index.d.ts +0 -385
  637. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/props.d.ts +0 -9
  638. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/icons/shared-artwork.d.ts +0 -43
  639. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/index.d.ts +0 -102
  640. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/input-modality.d.ts +0 -19
  641. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/keyboard-composition.d.ts +0 -11
  642. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/CodeBlock.d.ts +0 -35
  643. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/JsonBlock.d.ts +0 -8
  644. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownDelegate.d.ts +0 -46
  645. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/MarkdownText.d.ts +0 -49
  646. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/cjkFriendlyStrong.d.ts +0 -9
  647. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/file-link.d.ts +0 -13
  648. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/highlight.d.ts +0 -148
  649. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/incremental.d.ts +0 -80
  650. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/katex.d.ts +0 -27
  651. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/local-image-syntax.d.ts +0 -10
  652. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/mathCompatibility.d.ts +0 -11
  653. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/parse.d.ts +0 -25
  654. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/plain-text.d.ts +0 -22
  655. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/render.d.ts +0 -141
  656. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/markdown/useViewportHighlighting.d.ts +0 -11
  657. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/overlay-top-margin.d.ts +0 -8
  658. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/plugin-artwork.d.ts +0 -17
  659. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/pointer-grace.d.ts +0 -22
  660. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/rank-by-name.d.ts +0 -22
  661. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/relative-time.d.ts +0 -23
  662. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/SettingsForm.d.ts +0 -46
  663. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/fields.d.ts +0 -70
  664. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/settings-form/form-model.d.ts +0 -214
  665. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/use-copy-feedback.d.ts +0 -14
  666. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredMaxHeight.d.ts +0 -14
  667. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useAnchoredPosition.d.ts +0 -36
  668. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useDismissOnOutsidePointer.d.ts +0 -11
  669. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/useModalLayer.d.ts +0 -27
  670. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/types/user-text.d.ts +0 -29
  671. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/lib/user-text.module.css +0 -46
  672. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +0 -61
  673. package/node_modules/@deepseek-ai/dsh-client-ui-slots/LICENSE +0 -21
  674. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.i18n.yaml +0 -55
  675. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.md +0 -111
  676. package/node_modules/@deepseek-ai/dsh-client-ui-slots/README.zh.md +0 -111
  677. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/index.js +0 -577
  678. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/index.d.ts +0 -955
  679. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/renderer.d.ts +0 -271
  680. package/node_modules/@deepseek-ai/dsh-client-ui-slots/lib/types/store.d.ts +0 -3
  681. package/node_modules/@earendil-works/pi-ai/dist/utils/assistant-message-frame.js +0 -425
@@ -0,0 +1,259 @@
1
+ /* Generated by @deepseek-ai/dsh-typert-generator from the Host FaceModel — do not edit. */
2
+ import { z } from 'zod'
3
+
4
+ import { createTypertRemoteInfo } from '@deepseek-ai/dsh-typert-protocol/remote-info'
5
+
6
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_listIndexes_result$schema$value
7
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_listIndexes_result$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_listIndexes_result$schema$value ??= z.array(z.object({
8
+ 'url': z.string().readonly(),
9
+ 'title': z.union([z.string(), z.intersection(z.object({
10
+ 'en': z.string().readonly(),
11
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional().describe('Market title from the last successful read.'),
12
+ 'description': z.union([z.string(), z.intersection(z.object({
13
+ 'en': z.string().readonly(),
14
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
15
+ 'error': z.string().readonly().optional().describe('Failure message of the last read when it failed.'),
16
+ })))
17
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0$schema$value
18
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0$schema$value ??= z.string())
19
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1$schema$value
20
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1$schema$value ??= z.object({
21
+ 'text': z.string().readonly().optional().describe('Fuzzy text matched against the package name, author, keywords, and every language of the title, description, and category and label titles. Every word must match a word in some field, as a prefix or within an edit distance of at most 2. Text without letters or digits matches every plugin.'),
22
+ 'category': z.string().readonly().optional().describe('Category id the plugin must have.'),
23
+ 'labels': z.array(z.string()).readonly().optional().describe('Label ids the plugin must all have.'),
24
+ 'sort': z.union([z.object({
25
+ 'kind': z.literal("index").readonly(),
26
+ }), z.object({
27
+ 'kind': z.literal("relevance").readonly(),
28
+ }), z.object({
29
+ 'kind': z.literal("published").readonly(),
30
+ 'direction': z.union([z.literal("asc"), z.literal("desc")]).readonly(),
31
+ }), z.object({
32
+ 'kind': z.literal("key").readonly(),
33
+ 'id': z.string().readonly(),
34
+ 'direction': z.union([z.literal("asc"), z.literal("desc")]).readonly(),
35
+ })]).readonly(),
36
+ 'offset': z.number().readonly().describe('Number of matching plugins to skip; a non-negative integer.'),
37
+ 'limit': z.number().readonly().describe('Largest number of plugins returned; an integer from 1 to 100.'),
38
+ 'refresh': z.boolean().readonly().optional().describe('Fetch again instead of using a cached document.'),
39
+ 'fetchedAt': z.number().readonly().optional().describe('`fetchedAt` of an earlier page: answer from that document while it is still cached, even after `cacheTtlMs`, so later pages continue the same results. Without `refresh`, a replaced document is answered as without this field.'),
40
+ }))
41
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_search_result$schema$value
42
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_search_result$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_search_result$schema$value ??= z.object({
43
+ 'url': z.string().readonly(),
44
+ 'title': z.union([z.string(), z.intersection(z.object({
45
+ 'en': z.string().readonly(),
46
+ }), z.record(z.string(), z.string()).readonly())]).readonly(),
47
+ 'description': z.union([z.string(), z.intersection(z.object({
48
+ 'en': z.string().readonly(),
49
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
50
+ 'metadata': z.object({
51
+ 'categories': z.record(z.string(), z.object({
52
+ 'title': z.union([z.string(), z.intersection(z.object({
53
+ 'en': z.string().readonly(),
54
+ }), z.record(z.string(), z.string()).readonly())]).readonly(),
55
+ })).readonly().readonly(),
56
+ 'labels': z.record(z.string(), z.object({
57
+ 'title': z.union([z.string(), z.intersection(z.object({
58
+ 'en': z.string().readonly(),
59
+ }), z.record(z.string(), z.string()).readonly())]).readonly(),
60
+ })).readonly().readonly(),
61
+ 'sortKeys': z.record(z.string(), z.object({
62
+ 'title': z.union([z.string(), z.intersection(z.object({
63
+ 'en': z.string().readonly(),
64
+ }), z.record(z.string(), z.string()).readonly())]).readonly(),
65
+ 'order': z.union([z.literal("asc"), z.literal("desc")]).readonly(),
66
+ })).readonly().readonly(),
67
+ }).readonly(),
68
+ 'fetchedAt': z.number().readonly().describe('Fetch time of the document answering this page, in Unix milliseconds; a different value means a different document.'),
69
+ 'entries': z.array(z.object({
70
+ 'versions': z.array(z.object({
71
+ 'install': z.object({
72
+ 'spec': z.string().readonly().describe('Install spec accepted by `pnpm add`.'),
73
+ 'registry': z.string().readonly().optional().describe('Registry to ask first; absent means the installing client\'s configured registry.'),
74
+ }).readonly(),
75
+ 'compatibility': z.union([z.object({
76
+ 'compatible': z.literal(true).readonly(),
77
+ }), z.object({
78
+ 'compatible': z.literal(false).readonly(),
79
+ 'runtimeVersion': z.string().readonly(),
80
+ 'requirements': z.record(z.string(), z.string()).readonly().readonly().describe('The unmet requirement, keyed `engines.dsh`.'),
81
+ 'exempted': z.boolean().readonly().describe('Whether the profile holds a version exemption for this exact package and runtime version.'),
82
+ })]).readonly(),
83
+ 'version': z.string().readonly().describe('Exact SemVer version, unique within its plugin.'),
84
+ 'publishTimestamp': z.number().readonly().describe('Publish time of `version` in Unix seconds.'),
85
+ 'source': z.union([z.object({
86
+ 'type': z.literal("npm").readonly(),
87
+ 'registry': z.string().readonly().optional().describe('http(s) registry URL; absent means the installing client\'s configured registry.'),
88
+ }), z.object({
89
+ 'type': z.literal("git").readonly(),
90
+ 'url': z.string().readonly().describe('Canonical https repository URL without credentials, query, or fragment.'),
91
+ 'commit': z.string().readonly().describe('Lowercase 40-hex-digit commit SHA.'),
92
+ 'path': z.string().readonly().optional().describe('Relative POSIX package directory; absent means the repository root.'),
93
+ })]).readonly(),
94
+ 'engines': z.object({
95
+ 'dsh': z.string().readonly().optional().describe('SemVer range of DSH versions the version runs on; absent means any DSH version.'),
96
+ }).readonly(),
97
+ })).readonly().describe('Non-empty, in descending SemVer precedence.'),
98
+ 'defaultVersion': z.string().readonly().optional().describe('The version installed by default: the highest compatible version without a prerelease tag, or the highest compatible prerelease when the plugin lists no version without one. Absent when no such version is compatible.'),
99
+ 'installation': z.object({
100
+ 'status': z.union([z.literal("not-installed"), z.literal("installed"), z.literal("update-available"), z.literal("different-version"), z.literal("provided")]).readonly(),
101
+ 'installedVersion': z.string().readonly().optional(),
102
+ }).readonly(),
103
+ 'title': z.union([z.string(), z.intersection(z.object({
104
+ 'en': z.string().readonly(),
105
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
106
+ 'name': z.string().readonly().describe('npm package name, unique within its index.'),
107
+ 'description': z.union([z.string(), z.intersection(z.object({
108
+ 'en': z.string().readonly(),
109
+ }), z.record(z.string(), z.string()).readonly())]).readonly().optional(),
110
+ 'icon': z.string().readonly().optional().describe('Base64 `data:` URL or absolute URL; a relative index reference is already resolved against the index URL.'),
111
+ 'author': z.string().readonly().optional(),
112
+ 'homepage': z.string().readonly().optional().describe('Absolute http(s) URL of a page about the plugin.'),
113
+ 'repository': z.object({
114
+ 'url': z.string().readonly().describe('Absolute http(s) URL of the repository\'s web page, without credentials, query, or fragment.'),
115
+ 'directory': z.string().readonly().optional().describe('Relative POSIX directory of the package inside the repository; absent means the repository root.'),
116
+ }).readonly().optional().describe('Web page of the plugin\'s source repository and its package directory; display only.'),
117
+ 'metadata': z.object({
118
+ 'category': z.string().readonly().optional(),
119
+ 'keywords': z.array(z.string()).readonly().describe('Free-form strings, conventionally from package keywords; absent input becomes an empty array.'),
120
+ 'labels': z.array(z.string()).readonly(),
121
+ 'sortKeys': z.record(z.string(), z.number()).readonly().readonly(),
122
+ }).readonly(),
123
+ })).readonly().describe('Matching plugins of this page, in result order.'),
124
+ 'total': z.number().readonly().describe('Number of matching plugins across all pages.'),
125
+ 'nextOffset': z.union([z.literal(null), z.number()]).readonly().describe('`offset` of the next page, or null after the last.'),
126
+ }))
127
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0$schema$value
128
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0$schema$value ??= z.array(z.string()))
129
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_result$schema$value
130
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_result$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_result$schema$value ??= z.void())
131
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0_strict$schema$value
132
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0_strict$schema$value ??= z.string())
133
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1_strict$schema$value
134
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1_strict$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1_strict$schema$value ??= z.strictObject({
135
+ 'text': z.string().readonly().optional().describe('Fuzzy text matched against the package name, author, keywords, and every language of the title, description, and category and label titles. Every word must match a word in some field, as a prefix or within an edit distance of at most 2. Text without letters or digits matches every plugin.'),
136
+ 'category': z.string().readonly().optional().describe('Category id the plugin must have.'),
137
+ 'labels': z.array(z.string()).readonly().optional().describe('Label ids the plugin must all have.'),
138
+ 'sort': z.union([z.strictObject({
139
+ 'kind': z.literal("index").readonly(),
140
+ }), z.strictObject({
141
+ 'kind': z.literal("relevance").readonly(),
142
+ }), z.strictObject({
143
+ 'kind': z.literal("published").readonly(),
144
+ 'direction': z.union([z.literal("asc"), z.literal("desc")]).readonly(),
145
+ }), z.strictObject({
146
+ 'kind': z.literal("key").readonly(),
147
+ 'id': z.string().readonly(),
148
+ 'direction': z.union([z.literal("asc"), z.literal("desc")]).readonly(),
149
+ })]).readonly(),
150
+ 'offset': z.number().readonly().describe('Number of matching plugins to skip; a non-negative integer.'),
151
+ 'limit': z.number().readonly().describe('Largest number of plugins returned; an integer from 1 to 100.'),
152
+ 'refresh': z.boolean().readonly().optional().describe('Fetch again instead of using a cached document.'),
153
+ 'fetchedAt': z.number().readonly().optional().describe('`fetchedAt` of an earlier page: answer from that document while it is still cached, even after `cacheTtlMs`, so later pages continue the same results. Without `refresh`, a replaced document is answered as without this field.'),
154
+ }))
155
+ let _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0_strict$schema$value
156
+ const _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0_strict$schema = () => (_deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0_strict$schema$value ??= z.array(z.string()))
157
+
158
+ export const TYPERT_REMOTE = createTypertRemoteInfo({
159
+ package: '@deepseek-ai/dsh-plugin-market',
160
+ methods: {
161
+ 'pluginMarket/listIndexes': {
162
+ service: 'pluginMarket',
163
+ description: 'List the configured index sources without fetching them.',
164
+ invocation: { kind: 'direct' },
165
+ parameters: [
166
+ ],
167
+ result: {
168
+ mode: 'strict',
169
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/listIndexes:result',
170
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_listIndexes_result$schema,
171
+ description: 'every source in order, with the title of its last successful read and, when the last read failed, its error.',
172
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
173
+ },
174
+ sourceLocation: {"file":"packages/boot/plugin-market/src/index.ts","line":115,"column":3},
175
+ },
176
+ 'pluginMarket/search': {
177
+ service: 'pluginMarket',
178
+ description: 'Return one page of the plugins of a configured index that match a query. Concurrent reads of a URL share one fetch; a successful document is reused for `cacheTtlMs` unless `refresh` is set. Matching and ordering read only the document; installation status and compatibility are computed for the returned page on every call.',
179
+ invocation: { kind: 'direct' },
180
+ parameters: [
181
+ {
182
+ name: 'url',
183
+ description: 'a configured index URL.',
184
+ source: 'json',
185
+ codec: {
186
+ mode: 'strict',
187
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/search:url',
188
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0$schema,
189
+ jsonSchema: {"type":"string"},
190
+ },
191
+ strictCodec: {
192
+ mode: 'strict',
193
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/search:url',
194
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_0_strict$schema,
195
+ jsonSchema: {"type":"string"},
196
+ },
197
+ },
198
+ {
199
+ name: 'query',
200
+ description: 'text, filters, order, page, and whether to bypass the cached document.',
201
+ source: 'json',
202
+ codec: {
203
+ mode: 'strict',
204
+ typeSymbol: '@deepseek-ai/dsh-plugin-market/types#MarketQuery',
205
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1$schema,
206
+ jsonSchema: {"type":"object","properties":{"text":{"type":"string","description":"Fuzzy text matched against the package name, author, keywords, and every language of the title, description, and category and label titles. Every word must match a word in some field, as a prefix or within an edit distance of at most 2. Text without letters or digits matches every plugin."},"category":{"type":"string","description":"Category id the plugin must have."},"labels":{"type":"array","items":{"type":"string"},"description":"Label ids the plugin must all have."},"sort":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"index"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"relevance"}},"required":["kind"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"published"},"direction":{"type":"string","enum":["asc","desc"]}},"required":["kind","direction"],"additionalProperties":true},{"type":"object","properties":{"kind":{"type":"string","const":"key"},"id":{"type":"string"},"direction":{"type":"string","enum":["asc","desc"]}},"required":["kind","id","direction"],"additionalProperties":true}]},"offset":{"type":"number","description":"Number of matching plugins to skip; a non-negative integer."},"limit":{"type":"number","description":"Largest number of plugins returned; an integer from 1 to 100."},"refresh":{"type":"boolean","description":"Fetch again instead of using a cached document."},"fetchedAt":{"type":"number","description":"`fetchedAt` of an earlier page: answer from that document while it is still cached, even after `cacheTtlMs`, so later pages continue the same results. Without `refresh`, a replaced document is answered as without this field."}},"required":["sort","offset","limit"],"additionalProperties":true},
207
+ },
208
+ strictCodec: {
209
+ mode: 'strict',
210
+ typeSymbol: '@deepseek-ai/dsh-plugin-market/types#MarketQuery',
211
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_search_parameter_1_strict$schema,
212
+ jsonSchema: {"type":"object","properties":{"text":{"type":"string","description":"Fuzzy text matched against the package name, author, keywords, and every language of the title, description, and category and label titles. Every word must match a word in some field, as a prefix or within an edit distance of at most 2. Text without letters or digits matches every plugin."},"category":{"type":"string","description":"Category id the plugin must have."},"labels":{"type":"array","items":{"type":"string"},"description":"Label ids the plugin must all have."},"sort":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"index"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"relevance"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"published"},"direction":{"type":"string","enum":["asc","desc"]}},"required":["kind","direction"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"key"},"id":{"type":"string"},"direction":{"type":"string","enum":["asc","desc"]}},"required":["kind","id","direction"],"additionalProperties":false}]},"offset":{"type":"number","description":"Number of matching plugins to skip; a non-negative integer."},"limit":{"type":"number","description":"Largest number of plugins returned; an integer from 1 to 100."},"refresh":{"type":"boolean","description":"Fetch again instead of using a cached document."},"fetchedAt":{"type":"number","description":"`fetchedAt` of an earlier page: answer from that document while it is still cached, even after `cacheTtlMs`, so later pages continue the same results. Without `refresh`, a replaced document is answered as without this field."}},"required":["sort","offset","limit"],"additionalProperties":false},
213
+ },
214
+ },
215
+ ],
216
+ result: {
217
+ mode: 'strict',
218
+ typeSymbol: '@deepseek-ai/dsh-plugin-market/types#MarketSearchResult',
219
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_search_result$schema,
220
+ description: 'the index header, the page\'s plugins with each plugin\'s default version and installation status and each version\'s compatibility and install arguments, the number of matches, and the next page\'s offset.',
221
+ jsonSchemaError: 'typert tool schema: selected dictionaries require string keys and unconstrained JSON values',
222
+ },
223
+ sourceLocation: {"file":"packages/boot/plugin-market/src/index.ts","line":164,"column":9},
224
+ },
225
+ 'pluginMarket/setIndexes': {
226
+ service: 'pluginMarket',
227
+ description: 'Replace the configured index sources through Settings, without remounting this service. `plugin-market/changed` announces the committed list. A URL already configured is kept as written, so a client can add or remove sources beside one that `listIndexes` reports as unusable.',
228
+ invocation: { kind: 'direct' },
229
+ parameters: [
230
+ {
231
+ name: 'urls',
232
+ description: 'index URLs in display order.',
233
+ source: 'json',
234
+ codec: {
235
+ mode: 'strict',
236
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/setIndexes:urls',
237
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0$schema,
238
+ jsonSchema: {"type":"array","items":{"type":"string"}},
239
+ },
240
+ strictCodec: {
241
+ mode: 'strict',
242
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/setIndexes:urls',
243
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_parameter_0_strict$schema,
244
+ jsonSchema: {"type":"array","items":{"type":"string"}},
245
+ },
246
+ },
247
+ ],
248
+ result: {
249
+ mode: 'strict',
250
+ typeSymbol: '@deepseek-ai/dsh-plugin-market#pluginMarket/setIndexes:result',
251
+ create: _deepseek_ai_dsh_plugin_market_pluginMarket_setIndexes_result$schema,
252
+ jsonSchemaError: 'typert tool schema: unsupported void value',
253
+ },
254
+ sourceLocation: {"file":"packages/boot/plugin-market/src/index.ts","line":136,"column":9},
255
+ },
256
+ },
257
+ }, z)
258
+
259
+ export default TYPERT_REMOTE
@@ -0,0 +1,27 @@
1
+ /** Index source URL validation shared by `setIndexes` and the per-use check of configured sources. */
2
+ import { RemoteError } from '@deepseek-ai/dsh-typert-protocol';
3
+ /**
4
+ * Validate and normalize one index source URL.
5
+ * @param text - URL as configured or entered.
6
+ * @returns the URL's serialization.
7
+ * @throws {RemoteError} `plugin-market/invalid-index-url` for anything but an http(s) URL without credentials or
8
+ * fragment.
9
+ */
10
+ export function normalizeIndexUrl(text) {
11
+ let url;
12
+ try {
13
+ url = new URL(text.trim());
14
+ }
15
+ catch {
16
+ // Unparseable text: report the rule instead of the parser message.
17
+ throw new RemoteError('plugin-market/invalid-index-url', `Not an absolute URL: ${text}`, { url: text, reason: 'not-absolute' });
18
+ }
19
+ if (url.protocol !== 'https:' && url.protocol !== 'http:') {
20
+ throw new RemoteError('plugin-market/invalid-index-url', `Index URLs use http or https: ${text}`, { url: text, reason: 'scheme' });
21
+ }
22
+ if (url.username !== '' || url.password !== '' || url.href.includes('#')) {
23
+ throw new RemoteError('plugin-market/invalid-index-url', `Index URLs carry no credentials or fragment: ${text}`, { url: text, reason: 'credentials-or-fragment' });
24
+ }
25
+ return url.href;
26
+ }
27
+ //# sourceMappingURL=index-url.js.map
@@ -0,0 +1,351 @@
1
+ /** Host reader of configured plugin market indexes for the Discover page and the `plugin_market` tool. */
2
+ var __runInitializers = (this && this.__runInitializers) || function (thisArg, initializers, value) {
3
+ var useValue = arguments.length > 2;
4
+ for (var i = 0; i < initializers.length; i++) {
5
+ value = useValue ? initializers[i].call(thisArg, value) : initializers[i].call(thisArg);
6
+ }
7
+ return useValue ? value : void 0;
8
+ };
9
+ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {
10
+ function accept(f) { if (f !== void 0 && typeof f !== "function") throw new TypeError("Function expected"); return f; }
11
+ var kind = contextIn.kind, key = kind === "getter" ? "get" : kind === "setter" ? "set" : "value";
12
+ var target = !descriptorIn && ctor ? contextIn["static"] ? ctor : ctor.prototype : null;
13
+ var descriptor = descriptorIn || (target ? Object.getOwnPropertyDescriptor(target, contextIn.name) : {});
14
+ var _, done = false;
15
+ for (var i = decorators.length - 1; i >= 0; i--) {
16
+ var context = {};
17
+ for (var p in contextIn) context[p] = p === "access" ? {} : contextIn[p];
18
+ for (var p in contextIn.access) context.access[p] = contextIn.access[p];
19
+ context.addInitializer = function (f) { if (done) throw new TypeError("Cannot add initializers after decoration has completed"); extraInitializers.push(accept(f || null)); };
20
+ var result = (0, decorators[i])(kind === "accessor" ? { get: descriptor.get, set: descriptor.set } : descriptor[key], context);
21
+ if (kind === "accessor") {
22
+ if (result === void 0) continue;
23
+ if (result === null || typeof result !== "object") throw new TypeError("Object expected");
24
+ if (_ = accept(result.get)) descriptor.get = _;
25
+ if (_ = accept(result.set)) descriptor.set = _;
26
+ if (_ = accept(result.init)) initializers.unshift(_);
27
+ }
28
+ else if (_ = accept(result)) {
29
+ if (kind === "field") initializers.unshift(_);
30
+ else descriptor[key] = _;
31
+ }
32
+ }
33
+ if (target) Object.defineProperty(target, contextIn.name, descriptor);
34
+ done = true;
35
+ };
36
+ import z from '@deepseek-ai/schemastery';
37
+ import semver from 'semver';
38
+ import { evaluatePluginCompatibility, getDshRuntimeVersion } from '@deepseek-ai/dsh-app-boot';
39
+ import { marketInstallTarget } from '@deepseek-ai/dsh-plugin-market-index';
40
+ import { MAX_TIMER_DELAY_MS } from '@deepseek-ai/dsh-timeout';
41
+ import { Remote, RemoteError, TypertRemoteService } from '@deepseek-ai/dsh-typert-protocol';
42
+ import { normalizeIndexUrl } from "./index-url.js";
43
+ import { parseIndexInWorker } from "./parse-thread.js";
44
+ import { MarketSearch } from "./search.js";
45
+ /** The exact diagnostic of a failure, including a non-Error rejection. */
46
+ function messageOf(error) {
47
+ return error instanceof Error ? error.message : String(error);
48
+ }
49
+ /** Causes followed below a rejection; a deeper or cyclic chain is cut there. */
50
+ const MAX_CAUSES = 4;
51
+ /** A rejection with its cause chain: a Node `fetch` failure is a bare `fetch failed` whose reason is its cause. */
52
+ function causeChainOf(error, depth = 0) {
53
+ return error instanceof Error && error.cause !== undefined && depth < MAX_CAUSES
54
+ ? `${error.message}: ${causeChainOf(error.cause, depth + 1)}`
55
+ : messageOf(error);
56
+ }
57
+ /** Largest page `search` returns. */
58
+ const MAX_LIMIT = 100;
59
+ let PluginMarket = (() => {
60
+ let _classSuper = TypertRemoteService;
61
+ let _instanceExtraInitializers = [];
62
+ let _listIndexes_decorators;
63
+ let _setIndexes_decorators;
64
+ let _search_decorators;
65
+ return class PluginMarket extends _classSuper {
66
+ static {
67
+ const _metadata = typeof Symbol === "function" && Symbol.metadata ? Object.create(_classSuper[Symbol.metadata] ?? null) : void 0;
68
+ _listIndexes_decorators = [Remote];
69
+ _setIndexes_decorators = [Remote];
70
+ _search_decorators = [Remote];
71
+ __esDecorate(this, null, _listIndexes_decorators, { kind: "method", name: "listIndexes", static: false, private: false, access: { has: obj => "listIndexes" in obj, get: obj => obj.listIndexes }, metadata: _metadata }, null, _instanceExtraInitializers);
72
+ __esDecorate(this, null, _setIndexes_decorators, { kind: "method", name: "setIndexes", static: false, private: false, access: { has: obj => "setIndexes" in obj, get: obj => obj.setIndexes }, metadata: _metadata }, null, _instanceExtraInitializers);
73
+ __esDecorate(this, null, _search_decorators, { kind: "method", name: "search", static: false, private: false, access: { has: obj => "search" in obj, get: obj => obj.search }, metadata: _metadata }, null, _instanceExtraInitializers);
74
+ if (_metadata) Object.defineProperty(this, Symbol.metadata, { enumerable: true, configurable: true, writable: true, value: _metadata });
75
+ }
76
+ config = __runInitializers(this, _instanceExtraInitializers);
77
+ static inject = ['pluginManager'];
78
+ static Config = z.object({
79
+ indexes: z.array(z.string().pattern(/^https?:\/\/\S+$/u)).default([]).volatile(),
80
+ fetchTimeoutMs: z.natural().min(1).max(MAX_TIMER_DELAY_MS).default(15000),
81
+ maxBytes: z.natural().min(1).default(128 * 1024 * 1024),
82
+ cacheTtlMs: z.natural().default(600000),
83
+ });
84
+ lifetime = new AbortController();
85
+ cache = new Map();
86
+ pending = new Map();
87
+ errors = new Map();
88
+ entryId;
89
+ constructor(ctx, config) {
90
+ super(ctx, 'pluginMarket');
91
+ this.config = config;
92
+ this.entryId = ctx.fiber.entry?.options.id;
93
+ ctx.on('loader/volatile-update', () => {
94
+ const configured = new Set(this.sources().flatMap(source => source.error === undefined ? [source.url] : []));
95
+ for (const url of [...this.cache.keys(), ...this.errors.keys()]) {
96
+ if (!configured.has(url)) {
97
+ this.cache.delete(url);
98
+ this.errors.delete(url);
99
+ }
100
+ }
101
+ ctx.emit('plugin-market/changed');
102
+ });
103
+ ctx.effect(() => async () => {
104
+ this.lifetime.abort(new Error('Plugin market disposed'));
105
+ await Promise.allSettled(this.pending.values());
106
+ });
107
+ }
108
+ /**
109
+ * List the configured index sources without fetching them.
110
+ * @returns every source in order, with the title of its last successful read and, when the last read failed, its error.
111
+ */
112
+ listIndexes() {
113
+ return this.sources().map(({ url, error: invalid }) => {
114
+ const index = this.cache.get(url)?.document.index;
115
+ const error = invalid ?? this.errors.get(url);
116
+ return {
117
+ url,
118
+ ...index === undefined ? {} : { title: index.title, ...index.description === undefined ? {} : { description: index.description } },
119
+ ...error === undefined ? {} : { error },
120
+ };
121
+ });
122
+ }
123
+ /**
124
+ * Replace the configured index sources through Settings, without remounting this service.
125
+ * `plugin-market/changed` announces the committed list. A URL already configured is kept as written, so a client can
126
+ * add or remove sources beside one that `listIndexes` reports as unusable.
127
+ * @param urls - index URLs in display order.
128
+ * @throws {RemoteError} `plugin-market/invalid-index-url` for an invalid new URL or a repeated URL;
129
+ * `plugin-market/settings-unavailable` without Settings or a profile entry.
130
+ */
131
+ async setIndexes(urls) {
132
+ const configured = new Set(this.config.indexes.get());
133
+ const normalized = urls.map(url => configured.has(url) ? url : normalizeIndexUrl(url));
134
+ // A kept URL compares by its canonical form when it has one, so a new spelling of it counts as a repeat.
135
+ const keys = normalized.map(url => URL.canParse(url) ? new URL(url).href : url);
136
+ const repeated = normalized.find((_url, position) => keys.indexOf(keys[position]) !== position);
137
+ if (repeated !== undefined) {
138
+ throw new RemoteError('plugin-market/invalid-index-url', `Index source listed twice: ${repeated}`, { url: repeated, reason: 'duplicate' });
139
+ }
140
+ const settings = this.ctx.get('settings');
141
+ if (settings === undefined || this.entryId === undefined) {
142
+ throw new RemoteError('plugin-market/settings-unavailable', 'Index sources require the settings service and a profile entry', {});
143
+ }
144
+ await settings.update(this.entryId, { indexes: normalized });
145
+ }
146
+ /**
147
+ * Return one page of the plugins of a configured index that match a query. Concurrent reads of a URL share one
148
+ * fetch; a successful document is reused for `cacheTtlMs` unless `refresh` is set. Matching and ordering read only
149
+ * the document; installation status and compatibility are computed for the returned page on every call.
150
+ * @param url - a configured index URL.
151
+ * @param query - text, filters, order, page, and whether to bypass the cached document.
152
+ * @returns the index header, the page's plugins with each plugin's default version and installation status and each
153
+ * version's compatibility and install arguments, the number of matches, and the next page's offset.
154
+ * @throws {RemoteError} `plugin-market/invalid-query`, `plugin-market/unknown-index`, `plugin-market/invalid-index-url`,
155
+ * `plugin-market/fetch-failed`, or `plugin-market/invalid-index`.
156
+ */
157
+ async search(url, query) {
158
+ if (!Number.isSafeInteger(query.offset) || query.offset < 0) {
159
+ throw new RemoteError('plugin-market/invalid-query', 'offset must be a non-negative integer', { field: 'offset', reason: 'range' });
160
+ }
161
+ if (!Number.isInteger(query.limit) || query.limit < 1 || query.limit > MAX_LIMIT) {
162
+ throw new RemoteError('plugin-market/invalid-query', `limit must be an integer from 1 to ${String(MAX_LIMIT)}`, { field: 'limit', reason: 'range' });
163
+ }
164
+ const document = await this.document(url, query.refresh === true, query.fetchedAt);
165
+ const matching = await document.search.select(query);
166
+ const page = matching.slice(query.offset, query.offset + query.limit);
167
+ const listing = await this.annotator();
168
+ const next = query.offset + page.length;
169
+ const { index } = document;
170
+ return {
171
+ url,
172
+ title: index.title,
173
+ ...index.description === undefined ? {} : { description: index.description },
174
+ metadata: index.metadata,
175
+ fetchedAt: document.fetchedAt,
176
+ entries: page.map(listing),
177
+ total: matching.length,
178
+ nextOffset: next < matching.length ? next : null,
179
+ };
180
+ }
181
+ /**
182
+ * Read one plugin of a configured index, using the cached document as `search` does.
183
+ * @param url - a configured index URL.
184
+ * @param name - the plugin's package name.
185
+ * @returns the plugin with its default version, installation status, and annotated versions; undefined when the
186
+ * index does not list it.
187
+ * @throws {RemoteError} `plugin-market/unknown-index`, `plugin-market/invalid-index-url`, `plugin-market/fetch-failed`,
188
+ * or `plugin-market/invalid-index`.
189
+ */
190
+ async entry(url, name) {
191
+ const plugin = (await this.document(url, false)).index.plugins.find(candidate => candidate.name === name);
192
+ return plugin === undefined ? undefined : (await this.annotator())(plugin);
193
+ }
194
+ async document(url, refresh, fetchedAt) {
195
+ const source = this.sources().find(candidate => candidate.url === url);
196
+ if (source === undefined)
197
+ throw new RemoteError('plugin-market/unknown-index', `Not a configured index source: ${url}`, { url });
198
+ if (source.error !== undefined) {
199
+ throw new RemoteError('plugin-market/invalid-index-url', source.error, { url, reason: 'configured' });
200
+ }
201
+ const cached = this.cache.get(url);
202
+ const usable = cached !== undefined && (cached.expiresAt > Date.now() || cached.document.fetchedAt === fetchedAt);
203
+ return !refresh && usable ? cached.document : await this.fetchShared(url);
204
+ }
205
+ /** Annotate plugins with the profile's bundles and exemptions as they are now. */
206
+ async annotator() {
207
+ const [bundles, { exemptions }] = [await this.ctx.pluginManager.listBundles(), this.ctx.pluginManager.listVersionExemptions()];
208
+ const runtimeVersion = getDshRuntimeVersion();
209
+ return plugin => listingOf(plugin, bundles, exemptions, runtimeVersion);
210
+ }
211
+ /**
212
+ * The configured sources as written, each with the refusal that makes it unusable. Settings and profile files can
213
+ * write any http(s) string, so every use validates instead of the schema; an unusable source is listed with its error
214
+ * and never fetched, and a repeated URL counts once.
215
+ */
216
+ sources() {
217
+ const seen = new Set();
218
+ return this.config.indexes.get().flatMap((url) => {
219
+ if (seen.has(url))
220
+ return [];
221
+ seen.add(url);
222
+ try {
223
+ return normalizeIndexUrl(url) === url ? [{ url }] : [{ url, error: `Index URL is not in canonical form; use ${normalizeIndexUrl(url)}` }];
224
+ }
225
+ catch (error) {
226
+ return [{ url, error: messageOf(error) }];
227
+ }
228
+ });
229
+ }
230
+ configured(url) {
231
+ return this.sources().some(source => source.url === url && source.error === undefined);
232
+ }
233
+ fetchShared(url) {
234
+ let pending = this.pending.get(url);
235
+ if (pending === undefined) {
236
+ pending = this.fetchIndex(url).then((index) => {
237
+ // Distinct per URL even when two fetches finish within one millisecond.
238
+ const fetchedAt = Math.max(Date.now(), (this.cache.get(url)?.document.fetchedAt ?? 0) + 1);
239
+ const document = { index, fetchedAt, search: new MarketSearch(index) };
240
+ if (this.configured(url)) {
241
+ this.cache.set(url, { document, expiresAt: Date.now() + this.config.cacheTtlMs });
242
+ this.errors.delete(url);
243
+ }
244
+ return document;
245
+ }, (error) => {
246
+ if (this.configured(url))
247
+ this.errors.set(url, messageOf(error));
248
+ throw error;
249
+ }).finally(() => { this.pending.delete(url); });
250
+ this.pending.set(url, pending);
251
+ }
252
+ return pending;
253
+ }
254
+ async fetchIndex(url) {
255
+ const signal = AbortSignal.any([this.lifetime.signal, AbortSignal.timeout(this.config.fetchTimeoutMs)]);
256
+ const failed = (reason, cause) => new RemoteError('plugin-market/fetch-failed', `Could not fetch ${url}: ${reason}`, { url, reason }, { cause });
257
+ let response;
258
+ try {
259
+ response = await fetch(url, { signal, redirect: 'error', headers: { accept: 'application/json' } });
260
+ }
261
+ catch (error) {
262
+ throw failed(causeChainOf(error), error);
263
+ }
264
+ if (!response.ok) {
265
+ await response.body?.cancel();
266
+ throw failed(`HTTP ${String(response.status)}`);
267
+ }
268
+ const bytes = await this.readBody(response, failed);
269
+ const result = await parseIndexInWorker(bytes, url, this.lifetime.signal).catch((error) => {
270
+ throw failed(messageOf(error), error);
271
+ });
272
+ if (result.ok)
273
+ return result.index;
274
+ throw new RemoteError('plugin-market/invalid-index', `${url}: ${result.message}`, { url, path: result.path, reason: result.reason });
275
+ }
276
+ /** Read the whole body, refusing it as soon as it exceeds `maxBytes`. */
277
+ async readBody(response, failed) {
278
+ const limit = this.config.maxBytes;
279
+ const tooLarge = `body exceeds ${String(limit)} bytes`;
280
+ if (Number(response.headers.get('content-length') ?? 0) > limit) {
281
+ await response.body?.cancel();
282
+ throw failed(tooLarge);
283
+ }
284
+ const chunks = [];
285
+ let size = 0;
286
+ try {
287
+ for await (const chunk of response.body ?? []) {
288
+ size += chunk.byteLength;
289
+ if (size > limit)
290
+ throw failed(tooLarge);
291
+ chunks.push(chunk);
292
+ }
293
+ }
294
+ catch (error) {
295
+ if (error instanceof RemoteError)
296
+ throw error;
297
+ throw failed(messageOf(error), error);
298
+ }
299
+ const body = new Uint8Array(size);
300
+ let offset = 0;
301
+ for (const chunk of chunks) {
302
+ body.set(chunk, offset);
303
+ offset += chunk.byteLength;
304
+ }
305
+ return body;
306
+ }
307
+ };
308
+ })();
309
+ /** Fetches, validates, and caches configured market indexes; annotates entries with the profile's installation facts. */
310
+ export default PluginMarket;
311
+ function listingOf(plugin, bundles, exemptions, runtimeVersion) {
312
+ const versions = plugin.versions.map((version) => ({
313
+ ...version,
314
+ install: marketInstallTarget(plugin.name, version),
315
+ compatibility: compatibilityOf(plugin.name, version, exemptions, runtimeVersion),
316
+ }));
317
+ const compatible = versions.filter(version => version.compatibility.compatible);
318
+ const stable = plugin.versions.some(version => semver.prerelease(version.version) === null);
319
+ const defaultVersion = compatible.find(version => !stable || semver.prerelease(version.version) === null)?.version;
320
+ /* v8 ignore next -- parseMarketIndex guarantees a non-empty version list */
321
+ const measured = defaultVersion ?? versions[0]?.version ?? '';
322
+ return {
323
+ ...plugin,
324
+ versions,
325
+ ...defaultVersion === undefined ? {} : { defaultVersion },
326
+ installation: installationOf(plugin.name, measured, bundles),
327
+ };
328
+ }
329
+ function installationOf(name, version, bundles) {
330
+ const bundle = bundles.find(candidate => candidate.name === name);
331
+ // An on-demand catalog entry is listed before the profile installs it.
332
+ if (bundle === undefined || (!bundle.installed && bundle.availability !== 'installation'))
333
+ return { status: 'not-installed' };
334
+ if (!bundle.installed)
335
+ return { status: 'provided', ...bundle.version === undefined ? {} : { installedVersion: bundle.version } };
336
+ if (bundle.version === undefined)
337
+ return { status: 'different-version' };
338
+ const installedVersion = bundle.version;
339
+ if (installedVersion === version)
340
+ return { status: 'installed', installedVersion };
341
+ const newer = semver.valid(installedVersion) !== null && semver.gt(version, installedVersion);
342
+ return { status: newer ? 'update-available' : 'different-version', installedVersion };
343
+ }
344
+ function compatibilityOf(name, version, exemptions, runtimeVersion) {
345
+ const manifest = { name, version: version.version, ...version.engines.dsh === undefined ? {} : { engines: { dsh: version.engines.dsh } } };
346
+ const issue = evaluatePluginCompatibility(manifest, exemptions, runtimeVersion);
347
+ if (issue === undefined)
348
+ return { compatible: true };
349
+ return { compatible: false, runtimeVersion: issue.runtimeVersion, requirements: issue.requirements, exempted: issue.exempted };
350
+ }
351
+ //# sourceMappingURL=index.js.map