@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
@@ -2580,6 +2580,32 @@ function recolorLines(lines, age, style, from = 0) {
2580
2580
  const t = age / steps;
2581
2581
  return lines.map((line, index) => index < from || line === "" ? line : floatOutLine(line, t, capability, fg));
2582
2582
  }
2583
+ /**
2584
+ * Draw one slice of a rendered line as it climbs out of the terminal
2585
+ * background, at a single age, for a caller that gives neighbouring slices of
2586
+ * one line different ages. Each run in the slice starts at the ramp's darkest
2587
+ * level and rises to the color the component drew it in, so text in the
2588
+ * default foreground, a dim rule, and a colored title each brighten to their
2589
+ * own settled color. The slice should come from {@link sliceColumns}, which
2590
+ * replays the sequences in force at its first column.
2591
+ * @param slice - the slice's text with its escape sequences.
2592
+ * @param age - elapsed time in units of `stepMs`; `ramp.length` is t = 1.
2593
+ * @param style - the capability and the ramp, darkest level first.
2594
+ * @returns the slice at that mix, closed so the mix does not leak into the text
2595
+ * after it; the slice itself when the style writes no sequence, the slice is
2596
+ * empty, or `age` has reached the ramp length. The two-level mode draws the
2597
+ * youngest ages faint, like {@link fadeSgr}.
2598
+ */
2599
+ function fadeInSlice(slice, age, style) {
2600
+ const { capability } = style;
2601
+ if (capability === "none" || slice === "") return slice;
2602
+ if (capability === "dim") return age < DIM_AGES ? `${DIM}${slice}${RESET_INTENSITY}` : slice;
2603
+ const steps = style.ramp.length;
2604
+ const start = style.ramp[0];
2605
+ const fg = style.ramp[steps - 1];
2606
+ if (start === void 0 || fg === void 0 || age >= steps) return slice;
2607
+ return floatOutLine(slice, age / steps, capability, fg, start);
2608
+ }
2583
2609
  /** Assumed terminal white, used only to lift a settled color that is already brighter than `fg`. */
2584
2610
  const WHITE_RGB = {
2585
2611
  r: CHANNEL_MAX,
@@ -2719,14 +2745,15 @@ function encodeMix(capability, color) {
2719
2745
  return capability === "truecolor" ? truecolorSgr(color) : `${CSI$2}38;5;${String(nearestAnsi256(color))}m`;
2720
2746
  }
2721
2747
  /**
2722
- * Rebuild one card row as a per-run float-out mix.
2748
+ * Rebuild one card row as a per-run mix toward each run's settled color.
2723
2749
  * @param line - the rendered line.
2724
- * @param t - 0 at lift, 1 at settle.
2750
+ * @param t - 0 at the start color, 1 at settle.
2725
2751
  * @param capability - how the mix is encoded.
2726
2752
  * @param fg - the assumed default foreground.
2753
+ * @param from - the color every run starts from; absent starts each run at its lift above its own settled color.
2727
2754
  * @returns the line with each run overlaid, closed by {@link RESET_FOREGROUND}.
2728
2755
  */
2729
- function floatOutLine(line, t, capability, fg) {
2756
+ function floatOutLine(line, t, capability, fg, from) {
2730
2757
  let out = "";
2731
2758
  let last = 0;
2732
2759
  const state = {
@@ -2734,13 +2761,13 @@ function floatOutLine(line, t, capability, fg) {
2734
2761
  dim: false
2735
2762
  };
2736
2763
  for (const match of line.matchAll(SGR_SEQUENCE)) {
2737
- const start = match.index;
2738
- if (start > last) out += paintSegment(line.slice(last, start), state, t, capability, fg);
2764
+ const position = match.index;
2765
+ if (position > last) out += paintSegment(line.slice(last, position), state, t, capability, fg, from);
2739
2766
  applySgr(state, match[0]);
2740
2767
  out += match[0];
2741
- last = start + match[0].length;
2768
+ last = position + match[0].length;
2742
2769
  }
2743
- if (last < line.length) out += paintSegment(line.slice(last), state, t, capability, fg);
2770
+ if (last < line.length) out += paintSegment(line.slice(last), state, t, capability, fg, from);
2744
2771
  return `${out}${RESET_FOREGROUND$1}`;
2745
2772
  }
2746
2773
  /**
@@ -2750,11 +2777,12 @@ function floatOutLine(line, t, capability, fg) {
2750
2777
  * @param t - 0 at lift, 1 at settle.
2751
2778
  * @param capability - how the mix is encoded.
2752
2779
  * @param fg - the assumed default foreground.
2780
+ * @param from - the color the mix starts from; absent starts at the lift above `settled`.
2753
2781
  * @returns the run prefixed by intensity-reset and the mixed color.
2754
2782
  */
2755
- function paintSegment(text, state, t, capability, fg) {
2783
+ function paintSegment(text, state, t, capability, fg, from) {
2756
2784
  const settled = settledRgb(state, fg);
2757
- return `${RESET_INTENSITY}${encodeMix(capability, mixFadeColor(liftColor(settled, fg), settled, t))}${text}`;
2785
+ return `${RESET_INTENSITY}${encodeMix(capability, mixFadeColor(from ?? liftColor(settled, fg), settled, t))}${text}`;
2758
2786
  }
2759
2787
  /**
2760
2788
  * The float-out sequence one reasoning span draws under, toward dimmed `fg`.
@@ -4157,6 +4185,10 @@ var AssistantBlock = class {
4157
4185
  /** Width of the last render that drew a text tail; absent before the first one. */
4158
4186
  fadeWidth;
4159
4187
  reasoningFade;
4188
+ /** The live Thinking header's bloom; absent draws the settled glyph. */
4189
+ reasoningSpinner;
4190
+ /** Whether the message is still streaming, which the header spinner requires; commit settles it. */
4191
+ streaming = false;
4160
4192
  /** Width of the last render that drew a reasoning tail; absent before the first one. */
4161
4193
  reasoningFadeWidth;
4162
4194
  /** First line of this block either tail may still recolor. */
@@ -4231,6 +4263,21 @@ var AssistantBlock = class {
4231
4263
  this.reasoningFade = fade;
4232
4264
  }
4233
4265
  /**
4266
+ * Animate the live Thinking header on the application's spinner clock.
4267
+ * @param frame - the current bloom glyph, or undefined to settle the header;
4268
+ * a settled message or a header above the repaint window keeps the static glyph.
4269
+ */
4270
+ setReasoningSpinner(frame) {
4271
+ this.reasoningSpinner = this.streaming && this.repaintFloor <= 1 ? frame : void 0;
4272
+ }
4273
+ /**
4274
+ * Whether the live Thinking header still spins in the repaint window.
4275
+ * @returns true while the message streams with an attached spinner.
4276
+ */
4277
+ spinning() {
4278
+ return this.reasoningSpinner !== void 0 && this.streaming;
4279
+ }
4280
+ /**
4234
4281
  * Hand the rows the renderer can no longer repaint back to the colors this
4235
4282
  * block drew them in, so a tail that is still moving never rewrites them.
4236
4283
  * @param floor - this block's own first repaintable line; the application
@@ -4241,7 +4288,9 @@ var AssistantBlock = class {
4241
4288
  setRepaintFloor(floor) {
4242
4289
  if (floor <= this.repaintFloor) return false;
4243
4290
  this.repaintFloor = floor;
4244
- return this.fade !== void 0 && fadingInSpans(this.fade).length > 0 || this.reasoningFade !== void 0 && floatingOutSpans(this.reasoningFade).length > 0;
4291
+ const spinning = this.spinning() && floor > 1;
4292
+ if (spinning) this.reasoningSpinner = void 0;
4293
+ return spinning || this.fade !== void 0 && fadingInSpans(this.fade).length > 0 || this.reasoningFade !== void 0 && floatingOutSpans(this.reasoningFade).length > 0;
4245
4294
  }
4246
4295
  /**
4247
4296
  * Append streamed visible text.
@@ -4249,6 +4298,7 @@ var AssistantBlock = class {
4249
4298
  */
4250
4299
  appendText(delta) {
4251
4300
  this.text += delta;
4301
+ this.streaming = true;
4252
4302
  this.revision += 1;
4253
4303
  }
4254
4304
  /**
@@ -4257,6 +4307,7 @@ var AssistantBlock = class {
4257
4307
  */
4258
4308
  appendReasoning(delta) {
4259
4309
  this.reasoning += delta;
4310
+ this.streaming = true;
4260
4311
  this.revision += 1;
4261
4312
  this.reasoningText.setText(this.theme.palette.dim(this.theme.palette.italic(this.reasoning.trimEnd())));
4262
4313
  }
@@ -4270,9 +4321,11 @@ var AssistantBlock = class {
4270
4321
  this.text = text;
4271
4322
  this.reasoning = reasoning;
4272
4323
  this.interrupted = interrupted;
4324
+ this.streaming = false;
4273
4325
  this.revision += 1;
4274
4326
  this.fade = void 0;
4275
4327
  this.reasoningFade = void 0;
4328
+ this.reasoningSpinner = void 0;
4276
4329
  this.prefixCache = void 0;
4277
4330
  this.appliedPrefix = void 0;
4278
4331
  this.appliedTail = void 0;
@@ -4290,7 +4343,7 @@ var AssistantBlock = class {
4290
4343
  }
4291
4344
  render(width) {
4292
4345
  const { marked, content: inner } = focusFrame(width, this.highlight);
4293
- const { lines, reasoning, reply } = this.fade !== void 0 || this.reasoningFade !== void 0 ? this.compose(inner) : this.drawn.get(`${String(width)}:${String(marked)}:${String(this.revision)}`, () => this.compose(inner));
4346
+ const { lines, reasoning, reply } = this.fade !== void 0 || this.reasoningFade !== void 0 || this.spinning() ? this.compose(inner) : this.drawn.get(`${String(width)}:${String(marked)}:${String(this.revision)}`, () => this.compose(inner));
4294
4347
  if (this.highlight === void 0) return lines;
4295
4348
  const section = this.parts()[this.highlight]?.kind === "reasoning" ? reasoning : reply;
4296
4349
  return withGutter(this.theme.palette, lines, (index) => index >= section.from && index < section.to, this.highlightLevel);
@@ -4314,7 +4367,8 @@ var AssistantBlock = class {
4314
4367
  if (this.reasoning.trim() !== "") {
4315
4368
  const palette = this.theme.palette;
4316
4369
  reasoning.from = lines.length;
4317
- lines.push(truncateToWidth(`${palette.heading(REASONING_GLYPH)} ${palette.dim(REASONING_TITLE)}`, inner, "…"));
4370
+ const glyph = this.reasoningSpinner?.() ?? REASONING_GLYPH;
4371
+ lines.push(truncateToWidth(`${palette.heading(glyph)} ${palette.dim(REASONING_TITLE)}`, inner, "…"));
4318
4372
  const width = Math.max(1, inner - 2);
4319
4373
  lines.push(...this.renderReasoning(width, lines.length).map((line) => `${REASONING_INDENT}${line}`));
4320
4374
  reasoning.to = lines.length;
@@ -4420,14 +4474,20 @@ var AssistantBlock = class {
4420
4474
  * A tool call card: the status-coloured {@link TOOL_GLYPH}, the bold tool
4421
4475
  * name, the headline in the link colour, then a foldable body.
4422
4476
  *
4423
- * The card arrives in two pieces, and each floats out on its own: the header
4424
- * and the call rows when the model starts the call (a stream delta, or the
4425
- * logged `tool/call`), the result rows when the tool answers. While it runs
4426
- * the body carries {@link TOOL_RUNNING_ROW} in place of a result, and a card
4427
- * given a spinner ({@link ToolBlock.setSpinner}) cycles its glyph until the
4428
- * result lands or its header leaves the renderer's repaint window, then draws
4429
- * the static glyph. A card rebuilt from history carries neither fade nor
4430
- * spinner.
4477
+ * The card arrives in two pieces: the header and the call rows when the model
4478
+ * starts the call (a stream delta, or the logged `tool/call`), the result rows
4479
+ * when the tool answers. While it runs the body carries
4480
+ * {@link TOOL_RUNNING_ROW} in place of a result, and a card given a spinner
4481
+ * ({@link ToolBlock.setSpinner}) cycles its glyph until the result lands or
4482
+ * its header leaves the renderer's repaint window, then draws the static
4483
+ * glyph.
4484
+ *
4485
+ * A card given a {@link CardFlow} ({@link ToolBlock.setFlow}) flows out: the
4486
+ * flow's front decides how many columns of its rows are drawn, row after row,
4487
+ * and the columns drawn lately brighten from the terminal background toward
4488
+ * their settled colors by their own age. The flow is advanced from the application's
4489
+ * frame tick and never by a call or result, which only change what the card
4490
+ * holds. A card rebuilt from history carries neither flow nor spinner.
4431
4491
  */
4432
4492
  var ToolBlock = class {
4433
4493
  theme;
@@ -4444,8 +4504,6 @@ var ToolBlock = class {
4444
4504
  /** The facts a folded subagent card draws as one row; absent for every other tool. */
4445
4505
  subagent;
4446
4506
  expanded = false;
4447
- fade;
4448
- resultFade;
4449
4507
  /** The glyph a running card draws right now; absent draws {@link TOOL_GLYPH}. */
4450
4508
  spinner;
4451
4509
  /** First line of this card either fade may still recolor. */
@@ -4460,11 +4518,17 @@ var ToolBlock = class {
4460
4518
  revision = 0;
4461
4519
  /** The sections last read, and the revision they were built at. */
4462
4520
  sections;
4463
- /** How many of the card's rows are drawn while it unrolls; absent draws every row. */
4464
- reveal;
4465
- /** The card's full row count, the leading blank line excluded, at its last render. */
4466
- rows = 0;
4467
- /** Whether {@link rows} was measured after the last call, result, or fold change. */
4521
+ /** How many columns of the card's rows are drawn while it flows out; absent draws every column. */
4522
+ flow;
4523
+ /** The drawing settings the flow's trail is colored with; absent flows without color. */
4524
+ flowStyle;
4525
+ /** The card's visible columns over all rows, the leading blank line excluded, at its last render. */
4526
+ columns = 0;
4527
+ /** Lines the last render drew, the leading blank line included. */
4528
+ drawnLines = 0;
4529
+ /** The width the last render was given, which the flow measures its pace against. */
4530
+ flowWidth = 1;
4531
+ /** Whether {@link columns} was measured after the last call, result, or fold change. */
4468
4532
  measured = false;
4469
4533
  toolName;
4470
4534
  call;
@@ -4545,20 +4609,6 @@ var ToolBlock = class {
4545
4609
  this.measured = false;
4546
4610
  }
4547
4611
  /**
4548
- * Draw the header and the call rows through `fade` until it settles.
4549
- * @param fade - the level and drawing settings of this card's own fade.
4550
- */
4551
- setFade(fade) {
4552
- this.fade = fade;
4553
- }
4554
- /**
4555
- * Draw the result rows through `fade` until it settles.
4556
- * @param fade - the level and drawing settings of the result's own fade.
4557
- */
4558
- setResultFade(fade) {
4559
- this.resultFade = fade;
4560
- }
4561
- /**
4562
4612
  * Cycle the header glyph while the card runs.
4563
4613
  * @param frame - the glyph to draw at the moment of a render.
4564
4614
  */
@@ -4587,15 +4637,15 @@ var ToolBlock = class {
4587
4637
  this.repaintFloor = Math.max(this.repaintFloor, floor);
4588
4638
  return true;
4589
4639
  }
4590
- const reveal = this.reveal;
4591
- if (reveal !== void 0 && reveal.shown() < this.rows && floor > 1 + reveal.shown()) {
4592
- reveal.settle();
4640
+ const flow = this.flow;
4641
+ if (flow !== void 0 && flow.shown() < this.columns && floor >= this.drawnLines) {
4642
+ flow.settle();
4593
4643
  this.repaintFloor = Math.max(this.repaintFloor, floor);
4594
4644
  return true;
4595
4645
  }
4596
4646
  if (floor <= this.repaintFloor) return false;
4597
4647
  this.repaintFloor = floor;
4598
- return this.fade?.age() !== void 0 || this.resultFade?.age() !== void 0;
4648
+ return flow !== void 0 && this.flowColors() !== void 0 && flow.receding();
4599
4649
  }
4600
4650
  /**
4601
4651
  * Attach the result rows and settle the status. A diff result replaces the
@@ -4631,32 +4681,55 @@ var ToolBlock = class {
4631
4681
  this.measured = false;
4632
4682
  }
4633
4683
  /**
4634
- * Unroll the card's rows on the application's frame tick instead of drawing
4635
- * them all in one frame: now, and again whenever a call or a result makes
4636
- * the card grow.
4637
- * @param reveal - how many rows are drawn; the card draws that many of its
4638
- * rows after the leading blank line.
4684
+ * Flow the card's rows out on the application's frame tick instead of
4685
+ * drawing them all in one frame: now, and again whenever a call or a result
4686
+ * makes the card grow.
4687
+ * @param flow - the front that decides how many columns are drawn; the card
4688
+ * draws that many columns of its rows after the leading blank line.
4689
+ * @param style - the settings the freshly drawn columns are colored with,
4690
+ * read per render because the terminal background query settles after the
4691
+ * card is mounted; absent draws the flow without color.
4639
4692
  */
4640
- setReveal(reveal) {
4641
- this.reveal = reveal;
4693
+ setFlow(flow, style) {
4694
+ this.flow = flow;
4695
+ this.flowStyle = style;
4642
4696
  this.measured = false;
4643
4697
  }
4644
4698
  /**
4645
- * Whether rows of this card are still hidden, or the card changed since its
4646
- * last render and may have gained rows.
4647
- * @returns true while the reveal still has a frame to draw.
4699
+ * Whether columns of this card are still hidden or still brightening, or
4700
+ * the card changed since its last render and may have gained columns.
4701
+ * @returns true while the flow still has a frame to draw.
4648
4702
  */
4649
4703
  revealing() {
4650
- return this.reveal !== void 0 && (!this.measured || this.reveal.shown() < this.rows);
4704
+ return this.flow !== void 0 && (!this.measured || this.flowDrawing(this.flow));
4651
4705
  }
4652
4706
  /**
4653
- * Draw one frame's share of the rows still hidden.
4654
- * @returns whether the reveal still has a frame to draw after this one.
4707
+ * Move the flow's front by the time elapsed since the previous frame.
4708
+ * @returns whether the flow still has a frame to draw after this one.
4655
4709
  */
4656
4710
  revealFrame() {
4657
- if (this.reveal === void 0) return false;
4711
+ const flow = this.flow;
4712
+ if (flow === void 0) return false;
4658
4713
  if (!this.measured) return true;
4659
- return this.reveal.frame(this.rows);
4714
+ flow.frame(this.columns, this.flowWidth);
4715
+ return this.flowDrawing(flow);
4716
+ }
4717
+ /**
4718
+ * Whether another frame of `flow` changes what the card draws: columns are
4719
+ * hidden, or drawn ones are brightening in a terminal that draws the color.
4720
+ * @param flow - the card's flow.
4721
+ * @returns true while a frame is still owed.
4722
+ */
4723
+ flowDrawing(flow) {
4724
+ return flow.shown() < this.columns || this.flowColors() !== void 0 && flow.receding();
4725
+ }
4726
+ /**
4727
+ * The colors the flow's trail is drawn with right now.
4728
+ * @returns the style, or undefined when the card has none or the terminal draws no color.
4729
+ */
4730
+ flowColors() {
4731
+ const style = this.flowStyle?.();
4732
+ return style?.capability === "none" ? void 0 : style;
4660
4733
  }
4661
4734
  /**
4662
4735
  * Whether the whole body is drawn right now.
@@ -4670,7 +4743,7 @@ var ToolBlock = class {
4670
4743
  * @param expanded - whether the full body is shown.
4671
4744
  */
4672
4745
  setExpanded(expanded) {
4673
- if (expanded !== this.expanded) this.reveal?.settle();
4746
+ if (expanded !== this.expanded) this.flow?.settle();
4674
4747
  this.expanded = expanded;
4675
4748
  }
4676
4749
  invalidate() {
@@ -4680,19 +4753,20 @@ var ToolBlock = class {
4680
4753
  const palette = this.theme.palette;
4681
4754
  const { marked, content: outer } = focusFrame(width, this.highlight);
4682
4755
  const layout = this.drawn.get(`${String(width)}:${String(marked)}:${String(this.expanded)}:${this.status}:${String(this.revision)}`, () => this.layout(outer, marked));
4683
- const call = faded(this.spun(layout.call), this.fade, this.repaintFloor - 1);
4684
- const result = faded(layout.result, this.resultFade, this.repaintFloor - 1 - layout.call.length);
4685
- const full = call === layout.call && result === layout.result ? layout.lines : [
4756
+ const call = this.spun(layout.call);
4757
+ const full = call === layout.call ? layout.lines : [
4686
4758
  "",
4687
4759
  ...call,
4688
- ...result
4760
+ ...layout.result
4689
4761
  ];
4690
- this.rows = full.length - 1;
4762
+ const widths = layout.widths ??= layout.lines.slice(1).map((line) => visibleWidth(line));
4763
+ this.columns = widths.reduce((sum, columns) => sum + columns, 0);
4764
+ this.flowWidth = width;
4691
4765
  this.measured = true;
4692
- this.reveal?.clamp(this.rows);
4693
- const shown = this.reveal === void 0 ? this.rows : this.reveal.shown();
4694
- const visible = (lines) => shown < this.rows ? lines.slice(0, 1 + shown) : lines;
4695
- if (this.highlight === void 0) return visible(full);
4766
+ this.flow?.clamp(this.columns);
4767
+ const visible = this.flow === void 0 ? full : this.flowed(full, widths);
4768
+ this.drawnLines = visible.length;
4769
+ if (this.highlight === void 0) return visible;
4696
4770
  const sections = full.length - layout.marker;
4697
4771
  const section = this.parts()[this.highlight]?.kind === "result" ? {
4698
4772
  from: 1 + layout.call.length,
@@ -4708,7 +4782,34 @@ var ToolBlock = class {
4708
4782
  from: sections,
4709
4783
  to: full.length
4710
4784
  });
4711
- return visible(withGutter(palette, full, (index) => index >= held.from && index < held.to, this.highlightLevel));
4785
+ return withGutter(palette, visible, (index) => index >= held.from && index < held.to, this.highlightLevel);
4786
+ }
4787
+ /**
4788
+ * The card with only the columns the flow has reached, the last row cut
4789
+ * where the front stands, and the columns drawn lately colored by age.
4790
+ * @param full - the card's lines, the leading blank line first.
4791
+ * @param widths - the visible columns of each line after the blank one.
4792
+ * @returns the lines to draw, which are `full` itself once the flow has drawn
4793
+ * every column and its trail has receded.
4794
+ */
4795
+ flowed(full, widths) {
4796
+ const flow = this.flow;
4797
+ const shown = flow.shown();
4798
+ const style = this.flowColors();
4799
+ const trail = style === void 0 ? [] : flow.trail();
4800
+ if (shown >= this.columns && trail.length === 0) return full;
4801
+ const lines = [""];
4802
+ let start = 0;
4803
+ for (const [index, columns] of widths.entries()) {
4804
+ if (start >= shown) break;
4805
+ const line = full[1 + index];
4806
+ const drawn = Math.min(columns, shown - start);
4807
+ const cut = drawn >= columns ? line : sliceColumns(line, [drawn])[0];
4808
+ const settled = style === void 0 || trail.length === 0 || 1 + index < this.repaintFloor;
4809
+ lines.push(settled ? cut : floatedRow(cut, start, drawn, trail, style));
4810
+ start += columns;
4811
+ }
4812
+ return lines;
4712
4813
  }
4713
4814
  /**
4714
4815
  * Colour, fold, and wrap the card body.
@@ -4822,17 +4923,32 @@ var ToolBlock = class {
4822
4923
  }
4823
4924
  };
4824
4925
  /**
4825
- * Draw one group of a card's rows at the mix its fade reports.
4826
- * @param lines - the group's final rendered lines.
4827
- * @param fade - the group's fade; absent for a card that never faded.
4828
- * @param from - first line of the group the fade may recolor.
4829
- * @returns the lines at that mix, or the lines themselves once the fade
4830
- * settled or was never attached.
4926
+ * Float out the freshly drawn columns of one row, each run at its own age.
4927
+ * @param row - the row as drawn, already cut at the front.
4928
+ * @param start - the first column of this row over the card's rows.
4929
+ * @param drawn - the columns of this row that are drawn.
4930
+ * @param trail - the runs drawn lately, oldest first, in columns over the card's rows.
4931
+ * @param style - the capability and the ramp.
4932
+ * @returns the row with each run it holds recolored, or `row` when none reaches it.
4831
4933
  */
4832
- function faded(lines, fade, from) {
4833
- if (fade === void 0) return lines;
4834
- const age = fade.age();
4835
- return age === void 0 ? lines : recolorLines(lines, age, fade.style(), from);
4934
+ function floatedRow(row, start, drawn, trail, style) {
4935
+ const runs = [];
4936
+ for (const band of trail) {
4937
+ const from = Math.max(band.start - start, 0);
4938
+ const to = Math.min(band.end - start, drawn);
4939
+ if (to > from) runs.push({
4940
+ from,
4941
+ to,
4942
+ age: band.age
4943
+ });
4944
+ }
4945
+ if (runs.length === 0) return row;
4946
+ const pieces = sliceColumns(row, runs.flatMap((run) => [run.from, run.to]));
4947
+ let out = pieces[0];
4948
+ runs.forEach((run, index) => {
4949
+ out += `${fadeInSlice(pieces[2 * index + 1], run.age, style)}${pieces[2 * index + 2]}`;
4950
+ });
4951
+ return out;
4836
4952
  }
4837
4953
  /**
4838
4954
  * The tail chunks one streaming reply still draws below the terminal's own
@@ -5016,6 +5132,20 @@ const WORKFLOW_SPINNER = [
5016
5132
  "◇",
5017
5133
  "◊"
5018
5134
  ];
5135
+ /**
5136
+ * Bloom frames for the live Thinking header, disjoint from every tool
5137
+ * family; completed reasoning keeps its static `✻`.
5138
+ */
5139
+ const THINKING_SPINNER = [
5140
+ "☙",
5141
+ "✴",
5142
+ "❇",
5143
+ "✳",
5144
+ "※",
5145
+ "⚜",
5146
+ "⁂",
5147
+ "❄"
5148
+ ];
5019
5149
  /** Blank steps between two shimmer passes, so the sweep pauses past the word's end. */
5020
5150
  const SHIMMER_GAP = 6;
5021
5151
  /** Tool names that execute commands. */
@@ -8296,61 +8426,129 @@ var StreamPacer = class {
8296
8426
  }
8297
8427
  };
8298
8428
  /**
8299
- * How many rows of a growing block are drawn, advanced on the application's
8300
- * frame tick the same way {@link StreamPacer} releases text: each frame draws
8301
- * `hidden / drainFrames` more rows, at least one, with the fractional part
8302
- * carried to the next frame. The
8303
- * block reports its full row count after every render and draws only the
8304
- * first {@link RowReveal.shown} rows until the reveal catches up.
8429
+ * Longest stretch of wall-clock time one {@link CardFlow.frame} advances the
8430
+ * front by, in frames. A frame that ran late draws a few columns more, and a
8431
+ * stalled event loop does not make the card jump to its end.
8305
8432
  */
8306
- var RowReveal = class {
8307
- drainFrames;
8308
- count;
8309
- /** Rows the next frame may draw beyond its own share. */
8310
- credit = 0;
8433
+ const MAX_ADVANCE_FRAMES = 4;
8434
+ /**
8435
+ * The front of a tool card that flows out: how many columns of its rows are
8436
+ * drawn, counted row after row from the first, and the columns drawn lately,
8437
+ * which the card brightens from the terminal background by age. The front moves a fixed number of columns per
8438
+ * unit of wall-clock time, so rows and the words in them come out at one pace
8439
+ * however much the card holds and however late a frame runs.
8440
+ *
8441
+ * The pace is `width / (rowFrames * stepMs)` columns per millisecond, so a
8442
+ * full-width row takes `rowFrames` frames. The front reads only the clock and
8443
+ * the card's current column count; the call or result that grew the card never
8444
+ * waits for it, and a card that grows while it flows is caught up with at the
8445
+ * same pace.
8446
+ */
8447
+ var CardFlow = class {
8448
+ options;
8449
+ front;
8450
+ /** When the front last advanced; absent while it has nothing to draw. */
8451
+ last;
8452
+ bands = [];
8453
+ /**
8454
+ * @param options - the pace, the trail length, and the clock.
8455
+ * @param shown - columns drawn before the first frame.
8456
+ */
8457
+ constructor(options, shown) {
8458
+ this.options = {
8459
+ ...options,
8460
+ rowFrames: Math.max(1, options.rowFrames)
8461
+ };
8462
+ this.front = shown;
8463
+ this.last = options.now();
8464
+ }
8311
8465
  /**
8312
- * @param drainFrames - frames a hidden run takes to unroll; at least 1.
8313
- * @param shown - rows drawn before the first frame.
8466
+ * Columns drawn right now.
8467
+ * @returns the whole columns, which may exceed the card's columns after {@link CardFlow.settle}.
8314
8468
  */
8315
- constructor(drainFrames, shown) {
8316
- this.drainFrames = Math.max(1, drainFrames);
8317
- this.count = shown;
8469
+ shown() {
8470
+ return Math.floor(this.front);
8318
8471
  }
8319
8472
  /**
8320
- * Rows drawn right now.
8321
- * @returns the count, which may exceed the block's rows after {@link RowReveal.settle}.
8473
+ * The drawn columns still colored toward their settled colors.
8474
+ * @returns one run per frame that drew columns lately, oldest first.
8322
8475
  */
8323
- shown() {
8324
- return this.count;
8476
+ trail() {
8477
+ const at = this.options.now();
8478
+ const live = [];
8479
+ for (const band of this.bands) {
8480
+ const age = this.ageOf(band, at);
8481
+ if (age < this.options.steps) live.push({
8482
+ start: Math.floor(band.start),
8483
+ end: Math.floor(band.end),
8484
+ age
8485
+ });
8486
+ }
8487
+ return live;
8325
8488
  }
8326
8489
  /**
8327
- * Draw one frame's share of the rows still hidden.
8328
- * @param total - the block's full row count at its last render.
8329
- * @returns whether rows are still hidden after this frame.
8490
+ * Whether a drawn run is still climbing toward its settled color.
8491
+ * @returns true while the trail holds a run.
8330
8492
  */
8331
- frame(total) {
8332
- if (this.count >= total) {
8333
- this.credit = 0;
8493
+ receding() {
8494
+ return this.trail().length > 0;
8495
+ }
8496
+ /**
8497
+ * Move the front by the time elapsed since the previous frame, and drop the
8498
+ * runs that reached their settled color. The first frame after the card
8499
+ * grew again starts the clock without moving the front.
8500
+ * @param total - the card's column count at its last render.
8501
+ * @param width - the terminal width the pace is measured against.
8502
+ * @returns whether columns are still hidden after this frame.
8503
+ */
8504
+ frame(total, width) {
8505
+ const at = this.options.now();
8506
+ this.bands = this.bands.filter((band) => this.ageOf(band, at) < this.options.steps);
8507
+ if (this.front >= total) {
8508
+ this.last = void 0;
8334
8509
  return false;
8335
8510
  }
8336
- this.credit += (total - this.count) / this.drainFrames;
8337
- const rows = Math.max(1, Math.floor(this.credit));
8338
- this.credit = Math.max(0, this.credit - rows);
8339
- this.count = Math.min(total, this.count + rows);
8340
- return this.count < total;
8511
+ const previous = this.last;
8512
+ if (previous === void 0) {
8513
+ this.last = at;
8514
+ return true;
8515
+ }
8516
+ const { rowFrames, stepMs } = this.options;
8517
+ const span = Math.min(Math.max(0, at - previous), MAX_ADVANCE_FRAMES * stepMs);
8518
+ const next = Math.min(total, this.front + span * Math.max(1, width) / (rowFrames * stepMs));
8519
+ if (next > this.front) this.bands.push({
8520
+ start: this.front,
8521
+ end: next,
8522
+ bornAt: at,
8523
+ span
8524
+ });
8525
+ this.front = next;
8526
+ this.last = next < total ? at : void 0;
8527
+ return next < total;
8341
8528
  }
8342
8529
  /**
8343
- * Hold the count at the block's full row count, so rows the block loses
8344
- * later are not owed again when it grows back.
8345
- * @param total - the block's full row count at this render.
8530
+ * Hold the front at the card's column count, so columns the card loses later
8531
+ * are not owed again when it grows back.
8532
+ * @param total - the card's column count at this render.
8346
8533
  */
8347
8534
  clamp(total) {
8348
- if (this.count > total) this.count = total;
8535
+ if (this.front > total) this.front = total;
8349
8536
  }
8350
- /** Draw every row the block has at its next render. */
8537
+ /** Draw every column the card has at its next render, with no trail. */
8351
8538
  settle() {
8352
- this.count = Number.POSITIVE_INFINITY;
8353
- this.credit = 0;
8539
+ this.front = Number.POSITIVE_INFINITY;
8540
+ this.bands = [];
8541
+ this.last = void 0;
8542
+ }
8543
+ /**
8544
+ * The age a run draws at: its midpoint, which the frame drew over the
8545
+ * `span` before `bornAt`.
8546
+ * @param band - the run.
8547
+ * @param at - the current time in milliseconds.
8548
+ * @returns elapsed time in units of `stepMs`.
8549
+ */
8550
+ ageOf(band, at) {
8551
+ return (at - band.bornAt + band.span / 2) / this.options.stepMs;
8354
8552
  }
8355
8553
  };
8356
8554
  /**
@@ -17219,7 +17417,11 @@ var TuiApp = class {
17219
17417
  * releasing it after the model has moved on to reply text or a tool call.
17220
17418
  */
17221
17419
  finishReasoningPace() {
17222
- if (this.pacer?.flushChannel("reasoning") === true) this.tui.requestRender();
17420
+ const released = this.pacer?.flushChannel("reasoning") === true;
17421
+ const spinning = this.streaming?.spinning() === true;
17422
+ this.streaming?.setReasoningSpinner(void 0);
17423
+ this.updateSpinTicker();
17424
+ if (released || spinning) this.tui.requestRender();
17223
17425
  }
17224
17426
  /**
17225
17427
  * Take one visible text delta: the block draws it and the tail of that same
@@ -17247,6 +17449,10 @@ var TuiApp = class {
17247
17449
  appendStreamedReasoning(delta) {
17248
17450
  const block = this.streamingBlock();
17249
17451
  block.appendReasoning(delta);
17452
+ if (!this.deps.reducedMotion && !block.spinning()) {
17453
+ block.setReasoningSpinner(() => spinnerFrame(THINKING_SPINNER, this.deps.now(), this.deps.spinnerMs));
17454
+ this.updateSpinTicker();
17455
+ }
17250
17456
  if (!this.fading) return;
17251
17457
  if (this.reasoningTail === void 0) {
17252
17458
  this.reasoningTail = this.createTail();
@@ -17283,10 +17489,10 @@ var TuiApp = class {
17283
17489
  };
17284
17490
  }
17285
17491
  /**
17286
- * Fade one group of a card's rows in from the terminal background, from the
17287
- * instant the log carried them. A terminal that draws no ramp and a session
17288
- * being replayed fade nothing.
17289
- * @param attach - hands the fade to the block that draws those rows.
17492
+ * Fade one activity-board row in from the terminal background, from the
17493
+ * instant it appeared. A terminal that draws no ramp and a session being
17494
+ * replayed fade nothing.
17495
+ * @param attach - hands the fade to the board that draws that row.
17290
17496
  */
17291
17497
  fadeBlock(attach) {
17292
17498
  if (!this.fading || this.replaying) return;
@@ -17304,14 +17510,21 @@ var TuiApp = class {
17304
17510
  this.updateFadeTicker();
17305
17511
  }
17306
17512
  /**
17307
- * Unroll a new card's rows on the frame tick from its header down. A card
17308
- * drawn from a replayed log, and every card on a terminal that paces
17513
+ * Flow a new card out on the frame tick, row after row from its header
17514
+ * down, at a pace that depends on neither the card nor the call it shows.
17515
+ * A card drawn from a replayed log, and every card on a terminal that paces
17309
17516
  * nothing, draws whole.
17310
17517
  * @param block - the card that was just mounted.
17311
17518
  */
17312
17519
  revealBlock(block) {
17313
17520
  if (this.replaying || this.deps.reducedMotion || this.deps.toolRevealFrames === 0) return;
17314
- block.setReveal(new RowReveal(this.deps.toolRevealFrames, 1));
17521
+ const flow = new CardFlow({
17522
+ rowFrames: this.deps.toolRevealFrames,
17523
+ stepMs: this.deps.fadeStepMs,
17524
+ steps: this.deps.fadeSteps,
17525
+ now: () => this.deps.now()
17526
+ }, 1);
17527
+ block.setFlow(flow, () => this.fadeStyle);
17315
17528
  this.trackReveal(block);
17316
17529
  }
17317
17530
  /**
@@ -17356,7 +17569,7 @@ var TuiApp = class {
17356
17569
  * stopped app runs none.
17357
17570
  */
17358
17571
  updateSpinTicker() {
17359
- const spinning = this.spinners.size > 0 || this.boardSpinners.size > 0 || this.workflowSpinners.size > 0;
17572
+ const spinning = this.streaming?.spinning() === true || this.spinners.size > 0 || this.boardSpinners.size > 0 || this.workflowSpinners.size > 0;
17360
17573
  if (!this.stopped && (this.loaderAnimates() || spinning)) {
17361
17574
  this.spinTicker ??= this.deps.tick(() => {
17362
17575
  this.onSpinTick();
@@ -17379,7 +17592,7 @@ var TuiApp = class {
17379
17592
  for (const block of this.workflowSpinners) if (!block.spinning()) this.workflowSpinners.delete(block);
17380
17593
  if (this.loaderAnimates()) this.refreshLoader();
17381
17594
  if (this.boardSpinners.size > 0) this.refreshActivityBoard();
17382
- else if (this.spinners.size > 0 || this.workflowSpinners.size > 0) this.tui.requestRender();
17595
+ else if (this.streaming?.spinning() === true || this.spinners.size > 0 || this.workflowSpinners.size > 0) this.tui.requestRender();
17383
17596
  this.updateSpinTicker();
17384
17597
  }
17385
17598
  /**
@@ -17531,7 +17744,7 @@ var TuiApp = class {
17531
17744
  part: section.cursor.part,
17532
17745
  level: this.markLift()
17533
17746
  } : void 0;
17534
- const fades = this.fadesMoving() || this.spinners.size > 0;
17747
+ const fades = this.fadesMoving() || this.streaming?.spinning() === true || this.spinners.size > 0;
17535
17748
  let start = this.header.render(width).length;
17536
17749
  let wantedStart;
17537
17750
  let changed = false;
@@ -17576,6 +17789,8 @@ var TuiApp = class {
17576
17789
  switch (frame.type) {
17577
17790
  case "start":
17578
17791
  this.pacer?.flush();
17792
+ this.streaming?.setReasoningSpinner(void 0);
17793
+ this.updateSpinTicker();
17579
17794
  this.streaming = void 0;
17580
17795
  this.endFade();
17581
17796
  this.beginLiveUsage();
@@ -17638,6 +17853,8 @@ var TuiApp = class {
17638
17853
  }
17639
17854
  case "end":
17640
17855
  this.pacer?.flush();
17856
+ this.streaming?.setReasoningSpinner(void 0);
17857
+ this.updateSpinTicker();
17641
17858
  this.streaming = void 0;
17642
17859
  this.endFade();
17643
17860
  if (frame.outcome.kind === "abandoned" || frame.outcome.eventType === "assistant/attempt") this.dropUnconfirmedTools();
@@ -17710,9 +17927,6 @@ var TuiApp = class {
17710
17927
  } else block.setBackground([`◇ moved to the background as ${moved} · /jobs lists it`]);
17711
17928
  this.spinners.delete(block);
17712
17929
  this.updateSpinTicker();
17713
- this.fadeBlock((fade) => {
17714
- block.setResultFade(fade);
17715
- });
17716
17930
  this.trackReveal(block);
17717
17931
  this.pendingToolNames.delete(result.toolCallId);
17718
17932
  this.syncLoaderFromPendingTools();
@@ -18220,9 +18434,6 @@ var TuiApp = class {
18220
18434
  block.setExpanded(this.toolsExpanded);
18221
18435
  this.toolBlocks.set(callId, block);
18222
18436
  this.chat.addChild(block);
18223
- this.fadeBlock((fade) => {
18224
- block.setFade(fade);
18225
- });
18226
18437
  this.revealBlock(block);
18227
18438
  this.spinBlock(block);
18228
18439
  if (source === "stream") this.unconfirmedTools.set(callId, block);