@songtonyli/dsh-cli 0.1.62 → 0.1.64

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 (326) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@deepseek-ai/cordis/package.json +4 -4
  4. package/node_modules/@deepseek-ai/cordis-plugin-group/package.json +3 -3
  5. package/node_modules/@deepseek-ai/cordis-plugin-include/package.json +4 -4
  6. package/node_modules/@deepseek-ai/cordis-plugin-loader/package.json +4 -4
  7. package/node_modules/@deepseek-ai/cordis-plugin-timer/package.json +3 -3
  8. package/node_modules/@deepseek-ai/cosmokit/package.json +1 -1
  9. package/node_modules/@deepseek-ai/dsh/package.json +117 -117
  10. package/node_modules/@deepseek-ai/dsh-acp/package.json +25 -25
  11. package/node_modules/@deepseek-ai/dsh-acp-app/package.json +6 -6
  12. package/node_modules/@deepseek-ai/dsh-agent/package.json +20 -20
  13. package/node_modules/@deepseek-ai/dsh-agent-default-model/package.json +10 -10
  14. package/node_modules/@deepseek-ai/dsh-agent-instructions/package.json +26 -26
  15. package/node_modules/@deepseek-ai/dsh-agent-loop/package.json +25 -25
  16. package/node_modules/@deepseek-ai/dsh-agent-preset/package.json +13 -13
  17. package/node_modules/@deepseek-ai/dsh-agent-preset-registry/package.json +34 -34
  18. package/node_modules/@deepseek-ai/dsh-agent-tool-presentation/package.json +11 -11
  19. package/node_modules/@deepseek-ai/dsh-anonymous-user-id/package.json +7 -7
  20. package/node_modules/@deepseek-ai/dsh-api-account-controller/package.json +9 -9
  21. package/node_modules/@deepseek-ai/dsh-api-authorization-controller/package.json +13 -13
  22. package/node_modules/@deepseek-ai/dsh-api-gateway/package.json +14 -14
  23. package/node_modules/@deepseek-ai/dsh-api-job-controller/package.json +13 -13
  24. package/node_modules/@deepseek-ai/dsh-api-remotes/lib/client.js +1 -1
  25. package/node_modules/@deepseek-ai/dsh-api-remotes/package.json +42 -42
  26. package/node_modules/@deepseek-ai/dsh-api-session-controller/package.json +72 -72
  27. package/node_modules/@deepseek-ai/dsh-api-settings-controller/package.json +16 -16
  28. package/node_modules/@deepseek-ai/dsh-api-terminal-controller/package.json +20 -20
  29. package/node_modules/@deepseek-ai/dsh-api-workspace-controller/package.json +21 -21
  30. package/node_modules/@deepseek-ai/dsh-api-workspace-files/package.json +15 -15
  31. package/node_modules/@deepseek-ai/dsh-app-boot/package.json +19 -19
  32. package/node_modules/@deepseek-ai/dsh-atomic-write/package.json +3 -3
  33. package/node_modules/@deepseek-ai/dsh-attachment/package.json +5 -5
  34. package/node_modules/@deepseek-ai/dsh-attachment-local/package.json +9 -9
  35. package/node_modules/@deepseek-ai/dsh-authorization/package.json +7 -7
  36. package/node_modules/@deepseek-ai/dsh-base/package.json +96 -96
  37. package/node_modules/@deepseek-ai/dsh-bash-local/package.json +11 -11
  38. package/node_modules/@deepseek-ai/dsh-bash-sandbox/package.json +14 -14
  39. package/node_modules/@deepseek-ai/dsh-brand/package.json +3 -3
  40. package/node_modules/@deepseek-ai/dsh-chunked-list/package.json +3 -3
  41. package/node_modules/@deepseek-ai/dsh-client-connection/package.json +13 -13
  42. package/node_modules/@deepseek-ai/dsh-client-file-upload/package.json +12 -12
  43. package/node_modules/@deepseek-ai/dsh-client-hmr/package.json +7 -7
  44. package/node_modules/@deepseek-ai/dsh-client-locale/package.json +13 -13
  45. package/node_modules/@deepseek-ai/dsh-client-modules/package.json +7 -7
  46. package/node_modules/@deepseek-ai/dsh-client-product-analytics/package.json +15 -15
  47. package/node_modules/@deepseek-ai/dsh-client-resources/package.json +7 -7
  48. package/node_modules/@deepseek-ai/dsh-client-shortcuts/package.json +11 -11
  49. package/node_modules/@deepseek-ai/dsh-client-store/package.json +3 -3
  50. package/node_modules/@deepseek-ai/dsh-client-ui-agent-preset/package.json +19 -19
  51. package/node_modules/@deepseek-ai/dsh-client-ui-approval/package.json +15 -15
  52. package/node_modules/@deepseek-ai/dsh-client-ui-attachment/package.json +11 -11
  53. package/node_modules/@deepseek-ai/dsh-client-ui-brand-official/package.json +6 -6
  54. package/node_modules/@deepseek-ai/dsh-client-ui-chat/package.json +40 -40
  55. package/node_modules/@deepseek-ai/dsh-client-ui-commands/package.json +17 -17
  56. package/node_modules/@deepseek-ai/dsh-client-ui-conversation/package.json +36 -36
  57. package/node_modules/@deepseek-ai/dsh-client-ui-cordis/package.json +15 -15
  58. package/node_modules/@deepseek-ai/dsh-client-ui-deliverables/package.json +30 -30
  59. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-browse/package.json +9 -9
  60. package/node_modules/@deepseek-ai/dsh-client-ui-directory-picker-native/package.json +5 -5
  61. package/node_modules/@deepseek-ai/dsh-client-ui-goal/package.json +16 -16
  62. package/node_modules/@deepseek-ai/dsh-client-ui-input-trigger/package.json +14 -14
  63. package/node_modules/@deepseek-ai/dsh-client-ui-jobs/package.json +12 -12
  64. package/node_modules/@deepseek-ai/dsh-client-ui-layout/package.json +11 -11
  65. package/node_modules/@deepseek-ai/dsh-client-ui-message-feedback/package.json +18 -18
  66. package/node_modules/@deepseek-ai/dsh-client-ui-model-selection/package.json +18 -18
  67. package/node_modules/@deepseek-ai/dsh-client-ui-open-in-app/package.json +21 -21
  68. package/node_modules/@deepseek-ai/dsh-client-ui-permission-presets/package.json +17 -17
  69. package/node_modules/@deepseek-ai/dsh-client-ui-plan/package.json +22 -22
  70. package/node_modules/@deepseek-ai/dsh-client-ui-plugin-manager/package.json +19 -19
  71. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +6 -6
  72. package/node_modules/@deepseek-ai/dsh-client-ui-reference/package.json +15 -15
  73. package/node_modules/@deepseek-ai/dsh-client-ui-renderer/package.json +4 -4
  74. package/node_modules/@deepseek-ai/dsh-client-ui-schedule/package.json +21 -21
  75. package/node_modules/@deepseek-ai/dsh-client-ui-session/package.json +10 -10
  76. package/node_modules/@deepseek-ai/dsh-client-ui-settings/package.json +9 -9
  77. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/lib/client.js +2 -2
  78. package/node_modules/@deepseek-ai/dsh-client-ui-settings-account/package.json +19 -19
  79. package/node_modules/@deepseek-ai/dsh-client-ui-settings-agent-loop/package.json +11 -11
  80. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/lib/client.js +1 -1
  81. package/node_modules/@deepseek-ai/dsh-client-ui-settings-general/package.json +16 -16
  82. package/node_modules/@deepseek-ai/dsh-client-ui-settings-models/package.json +14 -14
  83. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugin-inventory/package.json +14 -14
  84. package/node_modules/@deepseek-ai/dsh-client-ui-settings-plugins/package.json +8 -8
  85. package/node_modules/@deepseek-ai/dsh-client-ui-settings-session-log/package.json +11 -11
  86. package/node_modules/@deepseek-ai/dsh-client-ui-settings-shell/package.json +11 -11
  87. package/node_modules/@deepseek-ai/dsh-client-ui-settings-signin/package.json +9 -9
  88. package/node_modules/@deepseek-ai/dsh-client-ui-settings-subagent/package.json +11 -11
  89. package/node_modules/@deepseek-ai/dsh-client-ui-settings-web-search/package.json +11 -11
  90. package/node_modules/@deepseek-ai/dsh-client-ui-shortcuts/package.json +12 -12
  91. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  92. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/package.json +14 -14
  93. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-browser/package.json +13 -13
  94. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-documentpreview/package.json +21 -21
  95. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-files/package.json +16 -16
  96. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-right/package.json +17 -17
  97. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar-terminal/package.json +17 -17
  98. package/node_modules/@deepseek-ai/dsh-client-ui-skill/package.json +16 -16
  99. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +4 -4
  100. package/node_modules/@deepseek-ai/dsh-client-ui-subagent/package.json +19 -19
  101. package/node_modules/@deepseek-ai/dsh-client-ui-theme/package.json +14 -14
  102. package/node_modules/@deepseek-ai/dsh-client-ui-tool/package.json +27 -27
  103. package/node_modules/@deepseek-ai/dsh-client-ui-trajectory/package.json +19 -19
  104. package/node_modules/@deepseek-ai/dsh-client-ui-user-questions/package.json +23 -23
  105. package/node_modules/@deepseek-ai/dsh-client-ui-workflow-run/package.json +16 -16
  106. package/node_modules/@deepseek-ai/dsh-client-ui-workspace/package.json +26 -26
  107. package/node_modules/@deepseek-ai/dsh-cmdline/package.json +6 -6
  108. package/node_modules/@deepseek-ai/dsh-command-compact/package.json +12 -12
  109. package/node_modules/@deepseek-ai/dsh-command-feedback/package.json +15 -15
  110. package/node_modules/@deepseek-ai/dsh-command-goal/package.json +14 -14
  111. package/node_modules/@deepseek-ai/dsh-commands/package.json +18 -18
  112. package/node_modules/@deepseek-ai/dsh-compaction/package.json +11 -11
  113. package/node_modules/@deepseek-ai/dsh-compaction-basic/package.json +26 -26
  114. package/node_modules/@deepseek-ai/dsh-compaction-image-offload/package.json +18 -18
  115. package/node_modules/@deepseek-ai/dsh-compaction-tool-result-pruner/package.json +17 -17
  116. package/node_modules/@deepseek-ai/dsh-config-editor/package.json +12 -12
  117. package/node_modules/@deepseek-ai/dsh-cordis-client-runner/package.json +9 -9
  118. package/node_modules/@deepseek-ai/dsh-cordis-host-runner/package.json +21 -21
  119. package/node_modules/@deepseek-ai/dsh-credentials/package.json +4 -4
  120. package/node_modules/@deepseek-ai/dsh-credentials-local/package.json +12 -12
  121. package/node_modules/@deepseek-ai/dsh-deepseek-account/package.json +9 -9
  122. package/node_modules/@deepseek-ai/dsh-deepseek-account-platform/package.json +12 -12
  123. package/node_modules/@deepseek-ai/dsh-deepseek-llm-api-extensions/package.json +3 -3
  124. package/node_modules/@deepseek-ai/dsh-deque/package.json +3 -3
  125. package/node_modules/@deepseek-ai/dsh-experimental-agent-team/package.json +22 -22
  126. package/node_modules/@deepseek-ai/dsh-experimental-agent-team-profile/package.json +7 -7
  127. package/node_modules/@deepseek-ai/dsh-experimental-api-speech-to-text/package.json +8 -8
  128. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.i18n.yaml +17 -14
  129. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.md +17 -7
  130. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/README.zh.md +17 -7
  131. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/lib/index.js +37 -3
  132. package/node_modules/@deepseek-ai/dsh-experimental-auto-review/package.json +42 -41
  133. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-agent-team/package.json +24 -24
  134. package/node_modules/@deepseek-ai/dsh-experimental-client-ui-voice-input/package.json +33 -33
  135. package/node_modules/@deepseek-ai/dsh-experimental-inspector/package.json +23 -23
  136. package/node_modules/@deepseek-ai/dsh-experimental-inspector-profile/package.json +6 -6
  137. package/node_modules/@deepseek-ai/dsh-experimental-session-inspector/package.json +15 -15
  138. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text/package.json +11 -11
  139. package/node_modules/@deepseek-ai/dsh-experimental-speech-to-text-sensevoice/package.json +10 -10
  140. package/node_modules/@deepseek-ai/dsh-experimental-tool-agent-team/package.json +25 -25
  141. package/node_modules/@deepseek-ai/dsh-experimental-voice-input-bundle/package.json +8 -8
  142. package/node_modules/@deepseek-ai/dsh-file-reference/package.json +5 -5
  143. package/node_modules/@deepseek-ai/dsh-file-reference-local/package.json +12 -12
  144. package/node_modules/@deepseek-ai/dsh-fs/package.json +9 -9
  145. package/node_modules/@deepseek-ai/dsh-fs-local/package.json +7 -7
  146. package/node_modules/@deepseek-ai/dsh-fs-observation-policy/package.json +6 -6
  147. package/node_modules/@deepseek-ai/dsh-fs-sandbox/package.json +12 -12
  148. package/node_modules/@deepseek-ai/dsh-goal/package.json +23 -23
  149. package/node_modules/@deepseek-ai/dsh-goal-round-driver/package.json +15 -15
  150. package/node_modules/@deepseek-ai/dsh-headless/package.json +22 -22
  151. package/node_modules/@deepseek-ai/dsh-hmr/package.json +15 -15
  152. package/node_modules/@deepseek-ai/dsh-home-paths/package.json +3 -3
  153. package/node_modules/@deepseek-ai/dsh-hook-protocol/package.json +7 -7
  154. package/node_modules/@deepseek-ai/dsh-hooks-claude-code/package.json +23 -23
  155. package/node_modules/@deepseek-ai/dsh-hooks-codex/package.json +21 -21
  156. package/node_modules/@deepseek-ai/dsh-host-directory-picker/package.json +3 -3
  157. package/node_modules/@deepseek-ai/dsh-host-directory-picker-auto/package.json +18 -18
  158. package/node_modules/@deepseek-ai/dsh-host-directory-picker-browse/package.json +5 -5
  159. package/node_modules/@deepseek-ai/dsh-host-directory-picker-native/package.json +5 -5
  160. package/node_modules/@deepseek-ai/dsh-host-frontend-static/package.json +10 -10
  161. package/node_modules/@deepseek-ai/dsh-host-open-in-app/package.json +9 -9
  162. package/node_modules/@deepseek-ai/dsh-host-plugin-inventory/package.json +13 -13
  163. package/node_modules/@deepseek-ai/dsh-host-product-telemetry-otel/package.json +8 -8
  164. package/node_modules/@deepseek-ai/dsh-host-webserver/package.json +4 -4
  165. package/node_modules/@deepseek-ai/dsh-http-proxy/package.json +3 -3
  166. package/node_modules/@deepseek-ai/dsh-jobs/package.json +11 -11
  167. package/node_modules/@deepseek-ai/dsh-jobs-local/package.json +16 -16
  168. package/node_modules/@deepseek-ai/dsh-launch-environment/package.json +3 -3
  169. package/node_modules/@deepseek-ai/dsh-lazy-require/package.json +3 -3
  170. package/node_modules/@deepseek-ai/dsh-llm/package.json +10 -10
  171. package/node_modules/@deepseek-ai/dsh-llm-cursor/package.json +25 -25
  172. package/node_modules/@deepseek-ai/dsh-llm-deepseek/package.json +44 -44
  173. package/node_modules/@deepseek-ai/dsh-llm-deepseek-account/package.json +14 -14
  174. package/node_modules/@deepseek-ai/dsh-llm-deepseek-api-key/package.json +14 -14
  175. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +26 -26
  176. package/node_modules/@deepseek-ai/dsh-llm-retry/package.json +24 -24
  177. package/node_modules/@deepseek-ai/dsh-mcp-client/package.json +23 -23
  178. package/node_modules/@deepseek-ai/dsh-mcp-resources/package.json +14 -14
  179. package/node_modules/@deepseek-ai/dsh-message-feedback/package.json +19 -19
  180. package/node_modules/@deepseek-ai/dsh-native-command/package.json +4 -4
  181. package/node_modules/@deepseek-ai/dsh-no-progress-reminder/package.json +15 -15
  182. package/node_modules/@deepseek-ai/dsh-office-to-pdf/package.json +11 -11
  183. package/node_modules/@deepseek-ai/dsh-otel/package.json +5 -5
  184. package/node_modules/@deepseek-ai/dsh-output-retention/package.json +3 -3
  185. package/node_modules/@deepseek-ai/dsh-package-manifest/package.json +3 -3
  186. package/node_modules/@deepseek-ai/dsh-permission-presets/README.i18n.yaml +8 -8
  187. package/node_modules/@deepseek-ai/dsh-permission-presets/README.md +4 -4
  188. package/node_modules/@deepseek-ai/dsh-permission-presets/README.zh.md +4 -4
  189. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/index.js +42 -4
  190. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.host.js +9 -2
  191. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/typert.remote-client.js +1 -1
  192. package/node_modules/@deepseek-ai/dsh-permission-presets/lib/types/index.js +48 -4
  193. package/node_modules/@deepseek-ai/dsh-permission-presets/package.json +21 -21
  194. package/node_modules/@deepseek-ai/dsh-persona/package.json +7 -7
  195. package/node_modules/@deepseek-ai/dsh-plan-mode/package.json +22 -22
  196. package/node_modules/@deepseek-ai/dsh-plugin-manager/package.json +33 -33
  197. package/node_modules/@deepseek-ai/dsh-plugin-package-inventory-deepseek/package.json +19 -19
  198. package/node_modules/@deepseek-ai/dsh-ptc-runtime/package.json +5 -5
  199. package/node_modules/@deepseek-ai/dsh-ptc-runtime-node/package.json +23 -23
  200. package/node_modules/@deepseek-ai/dsh-pwsh-local/package.json +11 -11
  201. package/node_modules/@deepseek-ai/dsh-pwsh-sandbox/package.json +14 -14
  202. package/node_modules/@deepseek-ai/dsh-repeat-tool-reminder/package.json +12 -12
  203. package/node_modules/@deepseek-ai/dsh-sandbox/package.json +8 -8
  204. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.i18n.yaml +2 -2
  205. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.md +1 -1
  206. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/README.zh.md +1 -1
  207. package/node_modules/@deepseek-ai/dsh-sandbox-apple-container/package.json +25 -25
  208. package/node_modules/@deepseek-ai/dsh-sandbox-local/package.json +12 -12
  209. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.i18n.yaml +2 -2
  210. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.md +1 -1
  211. package/node_modules/@deepseek-ai/dsh-sandbox-policy/README.zh.md +1 -1
  212. package/node_modules/@deepseek-ai/dsh-sandbox-policy/lib/index.js +16 -0
  213. package/node_modules/@deepseek-ai/dsh-sandbox-policy/package.json +14 -14
  214. package/node_modules/@deepseek-ai/dsh-sandbox-windows-acl/package.json +14 -14
  215. package/node_modules/@deepseek-ai/dsh-schedule/package.json +34 -34
  216. package/node_modules/@deepseek-ai/dsh-scope/package.json +3 -3
  217. package/node_modules/@deepseek-ai/dsh-sdk-app/package.json +9 -9
  218. package/node_modules/@deepseek-ai/dsh-sdk-jsonrpc-server/package.json +25 -25
  219. package/node_modules/@deepseek-ai/dsh-sdk-minimal/package.json +29 -29
  220. package/node_modules/@deepseek-ai/dsh-sdk-protocol/package.json +9 -9
  221. package/node_modules/@deepseek-ai/dsh-session/package.json +10 -10
  222. package/node_modules/@deepseek-ai/dsh-session-checkpoint-policy/package.json +18 -18
  223. package/node_modules/@deepseek-ai/dsh-session-format/package.json +4 -4
  224. package/node_modules/@deepseek-ai/dsh-session-format-catalog/package.json +11 -11
  225. package/node_modules/@deepseek-ai/dsh-session-format-v0-to-v1/package.json +6 -6
  226. package/node_modules/@deepseek-ai/dsh-session-format-v1-to-v2/package.json +8 -8
  227. package/node_modules/@deepseek-ai/dsh-session-format-v2-to-v3/package.json +6 -6
  228. package/node_modules/@deepseek-ai/dsh-session-format-v3-to-v4/package.json +5 -5
  229. package/node_modules/@deepseek-ai/dsh-session-log-deepseek/package.json +18 -18
  230. package/node_modules/@deepseek-ai/dsh-session-log-export/package.json +25 -25
  231. package/node_modules/@deepseek-ai/dsh-session-persistence/package.json +11 -11
  232. package/node_modules/@deepseek-ai/dsh-session-persistence-jsonl/package.json +13 -13
  233. package/node_modules/@deepseek-ai/dsh-session-projection/package.json +5 -5
  234. package/node_modules/@deepseek-ai/dsh-session-projection-cache/package.json +13 -13
  235. package/node_modules/@deepseek-ai/dsh-session-query/package.json +20 -20
  236. package/node_modules/@deepseek-ai/dsh-session-query-sqlite/package.json +13 -13
  237. package/node_modules/@deepseek-ai/dsh-session-reference/package.json +39 -39
  238. package/node_modules/@deepseek-ai/dsh-session-stats/package.json +11 -11
  239. package/node_modules/@deepseek-ai/dsh-session-telemetry/package.json +7 -7
  240. package/node_modules/@deepseek-ai/dsh-session-telemetry-otel/package.json +25 -25
  241. package/node_modules/@deepseek-ai/dsh-session-title/package.json +17 -17
  242. package/node_modules/@deepseek-ai/dsh-session-title-first-prompt-llm/package.json +18 -18
  243. package/node_modules/@deepseek-ai/dsh-session-title-llm/package.json +13 -13
  244. package/node_modules/@deepseek-ai/dsh-session-turn-outline/package.json +11 -11
  245. package/node_modules/@deepseek-ai/dsh-settings/package.json +17 -17
  246. package/node_modules/@deepseek-ai/dsh-shell/package.json +7 -7
  247. package/node_modules/@deepseek-ai/dsh-shell-env/package.json +14 -14
  248. package/node_modules/@deepseek-ai/dsh-skill/package.json +9 -9
  249. package/node_modules/@deepseek-ai/dsh-skill-badge/package.json +5 -5
  250. package/node_modules/@deepseek-ai/dsh-skill-filesystem/package.json +10 -10
  251. package/node_modules/@deepseek-ai/dsh-skill-office/package.json +8 -8
  252. package/node_modules/@deepseek-ai/dsh-spill/package.json +9 -9
  253. package/node_modules/@deepseek-ai/dsh-spill-local/package.json +11 -11
  254. package/node_modules/@deepseek-ai/dsh-spill-policy/package.json +33 -33
  255. package/node_modules/@deepseek-ai/dsh-storage/package.json +3 -3
  256. package/node_modules/@deepseek-ai/dsh-storage-domain/package.json +6 -6
  257. package/node_modules/@deepseek-ai/dsh-storage-json/package.json +6 -6
  258. package/node_modules/@deepseek-ai/dsh-subagent/package.json +45 -45
  259. package/node_modules/@deepseek-ai/dsh-subagent-acp/package.json +24 -24
  260. package/node_modules/@deepseek-ai/dsh-subagent-fork-in-process/package.json +17 -17
  261. package/node_modules/@deepseek-ai/dsh-subagent-in-process-driver/package.json +25 -25
  262. package/node_modules/@deepseek-ai/dsh-subagent-spawn-in-process/package.json +20 -20
  263. package/node_modules/@deepseek-ai/dsh-subprocess/package.json +6 -6
  264. package/node_modules/@deepseek-ai/dsh-subprocess-local/package.json +9 -9
  265. package/node_modules/@deepseek-ai/dsh-system-prompt/package.json +8 -8
  266. package/node_modules/@deepseek-ai/dsh-terminal/package.json +8 -8
  267. package/node_modules/@deepseek-ai/dsh-terminal-bash/package.json +20 -20
  268. package/node_modules/@deepseek-ai/dsh-time-context/package.json +21 -21
  269. package/node_modules/@deepseek-ai/dsh-timeout/package.json +3 -3
  270. package/node_modules/@deepseek-ai/dsh-tmux-context/package.json +14 -14
  271. package/node_modules/@deepseek-ai/dsh-token-meter/package.json +17 -17
  272. package/node_modules/@deepseek-ai/dsh-tool-ask-user/package.json +12 -12
  273. package/node_modules/@deepseek-ai/dsh-tool-bash/package.json +32 -32
  274. package/node_modules/@deepseek-ai/dsh-tool-bash-persistent/package.json +24 -24
  275. package/node_modules/@deepseek-ai/dsh-tool-call-timeout-policy/package.json +9 -9
  276. package/node_modules/@deepseek-ai/dsh-tool-cordis/lib/types/api-catalog.js +13 -1
  277. package/node_modules/@deepseek-ai/dsh-tool-cordis/package.json +16 -16
  278. package/node_modules/@deepseek-ai/dsh-tool-fs/package.json +32 -32
  279. package/node_modules/@deepseek-ai/dsh-tool-fs-search/package.json +28 -28
  280. package/node_modules/@deepseek-ai/dsh-tool-goal/package.json +20 -20
  281. package/node_modules/@deepseek-ai/dsh-tool-jobs/package.json +18 -18
  282. package/node_modules/@deepseek-ai/dsh-tool-present/package.json +20 -20
  283. package/node_modules/@deepseek-ai/dsh-tool-pwsh/package.json +31 -31
  284. package/node_modules/@deepseek-ai/dsh-tool-pwsh-persistent/package.json +25 -25
  285. package/node_modules/@deepseek-ai/dsh-tool-ralph/package.json +23 -23
  286. package/node_modules/@deepseek-ai/dsh-tool-schedule/package.json +14 -14
  287. package/node_modules/@deepseek-ai/dsh-tool-skill/package.json +15 -15
  288. package/node_modules/@deepseek-ai/dsh-tool-str-replace-editor/package.json +22 -22
  289. package/node_modules/@deepseek-ai/dsh-tool-subagent/package.json +28 -28
  290. package/node_modules/@deepseek-ai/dsh-tool-subagent-control/package.json +21 -21
  291. package/node_modules/@deepseek-ai/dsh-tool-todo/package.json +18 -18
  292. package/node_modules/@deepseek-ai/dsh-tool-web/package.json +22 -22
  293. package/node_modules/@deepseek-ai/dsh-tool-workflow/package.json +23 -23
  294. package/node_modules/@deepseek-ai/dsh-tool-workspace-dependencies/package.json +11 -11
  295. package/node_modules/@deepseek-ai/dsh-tools/package.json +25 -25
  296. package/node_modules/@deepseek-ai/dsh-tui-app/README.i18n.yaml +12 -12
  297. package/node_modules/@deepseek-ai/dsh-tui-app/README.md +10 -9
  298. package/node_modules/@deepseek-ai/dsh-tui-app/README.zh.md +10 -9
  299. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +427 -122
  300. package/node_modules/@deepseek-ai/dsh-tui-app/package.json +81 -81
  301. package/node_modules/@deepseek-ai/dsh-typert-loader/package.json +9 -9
  302. package/node_modules/@deepseek-ai/dsh-typert-protocol/package.json +4 -4
  303. package/node_modules/@deepseek-ai/dsh-typert-registry/package.json +4 -4
  304. package/node_modules/@deepseek-ai/dsh-user-approval/package.json +16 -16
  305. package/node_modules/@deepseek-ai/dsh-user-questions/package.json +18 -18
  306. package/node_modules/@deepseek-ai/dsh-util-code-language/package.json +3 -3
  307. package/node_modules/@deepseek-ai/dsh-util-crypto/package.json +3 -3
  308. package/node_modules/@deepseek-ai/dsh-util-time/package.json +3 -3
  309. package/node_modules/@deepseek-ai/dsh-util-values/package.json +3 -3
  310. package/node_modules/@deepseek-ai/dsh-util-workspace-path/package.json +3 -3
  311. package/node_modules/@deepseek-ai/dsh-web/package.json +6 -6
  312. package/node_modules/@deepseek-ai/dsh-web-app/package.json +146 -146
  313. package/node_modules/@deepseek-ai/dsh-web-fetch-http/package.json +10 -10
  314. package/node_modules/@deepseek-ai/dsh-web-frontend/package.json +18 -18
  315. package/node_modules/@deepseek-ai/dsh-web-search-deepseek/package.json +18 -18
  316. package/node_modules/@deepseek-ai/dsh-web-search-exa/package.json +9 -9
  317. package/node_modules/@deepseek-ai/dsh-web-search-perplexity/package.json +9 -9
  318. package/node_modules/@deepseek-ai/dsh-webhook/package.json +23 -23
  319. package/node_modules/@deepseek-ai/dsh-webhook-github/package.json +15 -15
  320. package/node_modules/@deepseek-ai/dsh-win32-process/package.json +4 -4
  321. package/node_modules/@deepseek-ai/dsh-workflow/package.json +11 -11
  322. package/node_modules/@deepseek-ai/dsh-workflow-ptc/package.json +36 -36
  323. package/node_modules/@deepseek-ai/dsh-workspace/package.json +14 -14
  324. package/node_modules/@deepseek-ai/dsh-workspace-changes/package.json +16 -16
  325. package/node_modules/@deepseek-ai/schemastery/package.json +2 -2
  326. package/package.json +291 -291
@@ -3837,6 +3837,8 @@ var UserBlock = class {
3837
3837
  highlightLevel = 0;
3838
3838
  /** The wrapped prompt, by width and whether the gutter narrowed it. */
3839
3839
  drawn = new LastDrawn();
3840
+ /** The prompt's one section, built on the first read; the text never changes. */
3841
+ sections;
3840
3842
  constructor(theme, text, turn, kind = "prompt") {
3841
3843
  this.theme = theme;
3842
3844
  this.text = text;
@@ -3848,10 +3850,11 @@ var UserBlock = class {
3848
3850
  * @returns the single `user` part, carrying the submitted text.
3849
3851
  */
3850
3852
  parts() {
3851
- return [{
3853
+ this.sections ??= [{
3852
3854
  kind: "user",
3853
3855
  rows: this.text.split("\n")
3854
3856
  }];
3857
+ return this.sections;
3855
3858
  }
3856
3859
  /**
3857
3860
  * Draw this prompt with the focus gutter, or without it.
@@ -4126,6 +4129,8 @@ var AssistantBlock = class {
4126
4129
  drawn = new LastDrawn();
4127
4130
  /** Counts every change to the text, the reasoning, or the committed state. */
4128
4131
  revision = 0;
4132
+ /** The sections last read, and the revision they were built at. */
4133
+ sections;
4129
4134
  constructor(theme, turn) {
4130
4135
  this.theme = theme;
4131
4136
  this.turn = turn;
@@ -4145,6 +4150,7 @@ var AssistantBlock = class {
4145
4150
  * message has no reasoning, so a tool-call step does not add a blank section.
4146
4151
  */
4147
4152
  parts() {
4153
+ if (this.sections?.revision === this.revision) return this.sections.parts;
4148
4154
  const parts = [];
4149
4155
  if (this.reasoning.trim() !== "") parts.push({
4150
4156
  kind: "reasoning",
@@ -4154,6 +4160,10 @@ var AssistantBlock = class {
4154
4160
  kind: "reply",
4155
4161
  rows: this.text.split("\n")
4156
4162
  });
4163
+ this.sections = {
4164
+ revision: this.revision,
4165
+ parts
4166
+ };
4157
4167
  return parts;
4158
4168
  }
4159
4169
  /**
@@ -4406,6 +4416,8 @@ var ToolBlock = class {
4406
4416
  drawn = new LastDrawn();
4407
4417
  /** Counts every call or result the card was given. */
4408
4418
  revision = 0;
4419
+ /** The sections last read, and the revision they were built at. */
4420
+ sections;
4409
4421
  /** How many of the card's rows are drawn while it unrolls; absent draws every row. */
4410
4422
  reveal;
4411
4423
  /** The card's full row count, the leading blank line excluded, at its last render. */
@@ -4434,6 +4446,7 @@ var ToolBlock = class {
4434
4446
  * @returns the call section, then the result section once the tool answered.
4435
4447
  */
4436
4448
  parts() {
4449
+ if (this.sections?.revision === this.revision) return this.sections.parts;
4437
4450
  const title = this.call.title === "" ? [] : [this.call.title];
4438
4451
  const call = [...title, ...this.call.lines];
4439
4452
  const parts = [call.length === 0 ? {
@@ -4452,6 +4465,10 @@ var ToolBlock = class {
4452
4465
  rows: this.resultLines,
4453
4466
  ...this.resultCode === void 0 ? {} : { code: this.resultCode }
4454
4467
  });
4468
+ this.sections = {
4469
+ revision: this.revision,
4470
+ parts
4471
+ };
4455
4472
  return parts;
4456
4473
  }
4457
4474
  /**
@@ -4864,25 +4881,139 @@ const ACTIVITY_SPINNERS = {
4864
4881
  ]
4865
4882
  };
4866
4883
  /**
4867
- * The animation every running tool card, folded subagent row, and in-progress
4868
- * todo row draws, whatever the tool: a star blooming from a thin four-pointed
4869
- * outline to a full asterisk. No frame is braille and no two frames match, so
4870
- * two indicators at different phases never draw the same glyph at the same
4871
- * instant. A presentation choice of this terminal surface, not a deployment
4872
- * setting.
4873
- */
4874
- const TOOL_SPINNER = [
4875
- "✧",
4876
- "✦",
4877
- "✶",
4878
- "✷",
4879
- "✸",
4880
- "✹",
4881
- "✺",
4882
- "✻"
4883
- ];
4884
+ * The animation a running tool card draws, by tool family; a folded subagent
4885
+ * row draws `subagent`, and the activity board's in-progress todo rows draw
4886
+ * `todo`. Each cycle mixes flowers, blooms, and stars. No frame is braille,
4887
+ * no two families share a glyph, and the eight frames of one family all
4888
+ * differ, so two indicators of that family at different phases never draw the
4889
+ * same glyph at the same instant. A presentation choice of this terminal
4890
+ * surface, not a deployment setting.
4891
+ */
4892
+ const TOOL_SPINNERS = {
4893
+ /** Command execution: four-pointed stars, teardrop blooms, and florettes. */
4894
+ shell: [
4895
+ "✧",
4896
+ "✢",
4897
+ "✽",
4898
+ "✿",
4899
+ "❋",
4900
+ "✸",
4901
+ "❀",
4902
+ "✹"
4903
+ ],
4904
+ /** File mutation: florettes between outlined stars and an open bloom. */
4905
+ edit: [
4906
+ "✩",
4907
+ "✤",
4908
+ "✾",
4909
+ "❁",
4910
+ "✭",
4911
+ "✮",
4912
+ "❂",
4913
+ "✲"
4914
+ ],
4915
+ /** Reading and searching: flowers and an open bloom among stars. */
4916
+ search: [
4917
+ "⋆",
4918
+ "✱",
4919
+ "✵",
4920
+ "⚘",
4921
+ "❃",
4922
+ "✶",
4923
+ "⁕",
4924
+ "✷"
4925
+ ],
4926
+ /** Delegation, a folded subagent row included: floral hearts, pinwheel blooms, and stars. */
4927
+ subagent: [
4928
+ "✦",
4929
+ "✣",
4930
+ "❊",
4931
+ "❦",
4932
+ "❉",
4933
+ "✪",
4934
+ "✫",
4935
+ "❧"
4936
+ ],
4937
+ /** Planning and scheduling, and an in-progress todo row: a florette, teardrop blooms, and stars. */
4938
+ todo: [
4939
+ "☆",
4940
+ "✥",
4941
+ "✼",
4942
+ "❅",
4943
+ "✻",
4944
+ "✬",
4945
+ "★",
4946
+ "✰"
4947
+ ],
4948
+ /** A tool with no family of its own: a sparkle and a florette among stars. */
4949
+ other: [
4950
+ "∗",
4951
+ "❈",
4952
+ "⁎",
4953
+ "❆",
4954
+ "⚝",
4955
+ "✺",
4956
+ "⚹",
4957
+ "✯"
4958
+ ]
4959
+ };
4884
4960
  /** Blank steps between two shimmer passes, so the sweep pauses past the word's end. */
4885
4961
  const SHIMMER_GAP = 6;
4962
+ /** Tool names that execute commands. */
4963
+ const SHELL_TOOLS = new Set([
4964
+ "bash",
4965
+ "pwsh",
4966
+ "run_code"
4967
+ ]);
4968
+ /** Tool names that mutate files. */
4969
+ const EDIT_TOOLS = new Set([
4970
+ "edit",
4971
+ "write",
4972
+ "str_replace_editor"
4973
+ ]);
4974
+ /** Tool names that read or search, beyond the `TOOL_PREFIXES` below. */
4975
+ const SEARCH_TOOLS = new Set([
4976
+ "read",
4977
+ "read_image",
4978
+ "glob",
4979
+ "grep",
4980
+ "lsp",
4981
+ "skill",
4982
+ "web_fetch",
4983
+ "web_search",
4984
+ "load_workspace_dependencies",
4985
+ "list_subagent_models"
4986
+ ]);
4987
+ /** Tool names that delegate or steer a child agent, beyond `subagent` itself. */
4988
+ const SUBAGENT_TOOLS = new Set([
4989
+ "send_message",
4990
+ "interrupt_agent",
4991
+ "list_agents",
4992
+ "ralph",
4993
+ "workflow",
4994
+ "spawn_teammate",
4995
+ "wait_agent"
4996
+ ]);
4997
+ /** Tool names that plan or schedule work. */
4998
+ const TODO_TOOLS = new Set([
4999
+ "todo_write",
5000
+ "create_goal",
5001
+ "get_goal",
5002
+ "update_goal"
5003
+ ]);
5004
+ /**
5005
+ * Tool-name prefixes per family, checked after the exact sets above. An MCP
5006
+ * or custom tool that keeps its family's prefix inherits the animation.
5007
+ */
5008
+ const TOOL_PREFIXES = [
5009
+ ["terminal_", "shell"],
5010
+ ["session_", "search"],
5011
+ ["cordis_inspect_", "search"],
5012
+ ["list_mcp_", "search"],
5013
+ ["read_mcp_", "search"],
5014
+ ["team_task_", "subagent"],
5015
+ ["schedule_", "todo"]
5016
+ ];
4886
5017
  /** The activity line's label while a compaction condenses history. */
4887
5018
  const COMPACTING_ACTIVITY = "compacting";
4888
5019
  /**
@@ -4917,6 +5048,20 @@ function activityStatus(activity) {
4917
5048
  return "thinking";
4918
5049
  }
4919
5050
  /**
5051
+ * The family whose animation a running tool card draws for `name`.
5052
+ * @param name - the tool the model called.
5053
+ * @returns the tool's family, or `other` for a tool with no family.
5054
+ */
5055
+ function toolFamily(name) {
5056
+ if (SHELL_TOOLS.has(name)) return "shell";
5057
+ if (EDIT_TOOLS.has(name)) return "edit";
5058
+ if (SEARCH_TOOLS.has(name)) return "search";
5059
+ if (isSubagentTool(name) || SUBAGENT_TOOLS.has(name)) return "subagent";
5060
+ if (TODO_TOOLS.has(name)) return "todo";
5061
+ for (const [prefix, family] of TOOL_PREFIXES) if (name.startsWith(prefix)) return family;
5062
+ return "other";
5063
+ }
5064
+ /**
4920
5065
  * The frame an indicator draws at one instant. The frame index advances
4921
5066
  * once per `periodMs` of wall clock, so indicators drawn at the same instant
4922
5067
  * step together, and a change of animation keeps the beat.
@@ -4931,13 +5076,13 @@ function spinnerFrame(frames, now, periodMs, phase = 0) {
4931
5076
  return frames[(Math.floor(now / periodMs) + phase) % 8] ?? frames[0];
4932
5077
  }
4933
5078
  /**
4934
- * The phase a new {@link TOOL_SPINNER} indicator spins at beside the
4935
- * indicators already spinning. No two frames of that animation match, so two
4936
- * indicators at different phases never draw the same glyph at the same
4937
- * instant. A phase no indicator holds is taken, the one farthest from its
4938
- * nearest neighbour first and the lowest on a tie; once every phase is held,
4939
- * the lowest phase held by the fewest indicators.
4940
- * @param taken - the phases of the indicators spinning now, one per indicator.
5079
+ * The phase a new indicator spins at beside the indicators of the same
5080
+ * animation already spinning. Every {@link TOOL_SPINNERS} animation uses
5081
+ * eight different frames, so two indicators of one family at different phases
5082
+ * never draw the same glyph. A phase no indicator holds is taken, the one
5083
+ * farthest from its nearest neighbour first and the lowest on a tie; once
5084
+ * every phase is held, the lowest phase held by the fewest indicators.
5085
+ * @param taken - the phases of the indicators of that animation spinning now, one per indicator.
4941
5086
  * @returns a phase from 0 to {@link SPINNER_CYCLE} - 1.
4942
5087
  */
4943
5088
  function staggerPhase(taken) {
@@ -6991,7 +7136,16 @@ var ModalQueue = class {
6991
7136
  */
6992
7137
  var SandboxPrompt = class extends PickPrompt {
6993
7138
  policy;
6994
- constructor(palette, provider, session, policy) {
7139
+ autoConfines;
7140
+ /**
7141
+ * @param palette - the terminal palette.
7142
+ * @param provider - the sandbox provider whose backends the picker offers.
7143
+ * @param session - the session whose current backend is marked.
7144
+ * @param policy - the session's resolved file policy.
7145
+ * @param autoConfines - whether the session's Auto selection narrows a full-access
7146
+ * session to the container on its next call once the container is its backend.
7147
+ */
7148
+ constructor(palette, provider, session, policy, autoConfines = false) {
6995
7149
  const current = provider.backendFor(session);
6996
7150
  super(palette, "Sandbox backend", [...provider.containerSupported ? [{
6997
7151
  value: "container",
@@ -7006,25 +7160,28 @@ var SandboxPrompt = class extends PickPrompt {
7006
7160
  body: [`current: ${current} · file policy: ${policy.mode} · Esc keeps it`, ...provider.containerSupported ? [] : ["Container unavailable: requires macOS on Apple silicon and the container CLI."]]
7007
7161
  });
7008
7162
  this.policy = policy;
7163
+ this.autoConfines = autoConfines;
7009
7164
  }
7010
7165
  listLines(width) {
7011
7166
  const lines = super.listLines(width).flatMap((line) => wrapTextWithAnsi(line, Math.max(1, width)));
7012
7167
  const selected = this.selected();
7013
7168
  if (selected === null) return lines;
7014
7169
  const container = selected.value === "container";
7015
- const unrestricted = this.policy.mode === "danger-full-access";
7016
- const writes = this.policy.mode === "read-only" ? "BLOCKED · file modifications" : this.policy.mode === "workspace-write" ? "ALLOWED · workspace writes except provider-protected paths; temporary areas may be writable" : "UNRESTRICTED · host file modifications";
7170
+ const narrowed = this.autoConfines && container && this.policy.mode === "danger-full-access";
7171
+ const mode = narrowed ? "workspace-write" : this.policy.mode;
7172
+ const unrestricted = mode === "danger-full-access";
7173
+ const writes = mode === "read-only" ? "BLOCKED · file modifications" : mode === "workspace-write" ? "ALLOWED · workspace writes except provider-protected paths; temporary areas may be writable" : "UNRESTRICTED · host file modifications";
7017
7174
  const preview = [
7018
7175
  this.palette.bold(`Access preview · ${selected.label.replace(" ✓", "")}`),
7019
7176
  `Workspace: ${this.policy.workspaceRoot}`,
7020
7177
  unrestricted ? this.palette.warning("! Sandbox bypassed: commands run on the host, regardless of backend choice.") : `Commands → ${container ? "Linux container → shared workspace" : "host → native file sandbox"}`,
7021
- `${this.policy.mode === "read-only" ? "−" : "+"} ${writes}`,
7178
+ `${mode === "read-only" ? "−" : "+"} ${writes}`,
7022
7179
  ...container && !unrestricted ? [
7023
7180
  "+ READ · workspace and configured read-only mounts",
7024
7181
  "− HOST ACCESS · other host paths and configured secret-file patterns hidden",
7025
7182
  " Guest files outside shared mounts are not visible to host file tools."
7026
7183
  ] : ["+ READ · host paths (subject to OS permissions)", ...unrestricted ? [] : ["− WRITE · outside permitted paths; provider-protected paths remain blocked"]],
7027
- "Backend changes do not change file policy or approval settings: use /permission.",
7184
+ narrowed ? "Auto confines itself to the container from its next call; approval settings do not change." : "Backend changes do not change file policy or approval settings: use /permission.",
7028
7185
  "Wider access requires approved one-shot escalation when approvals are enabled."
7029
7186
  ];
7030
7187
  const inner = Math.max(1, width - 2);
@@ -9363,10 +9520,6 @@ function rowTone(block, part, row) {
9363
9520
  }
9364
9521
  /** An unstyled palette, which is all measuring needs: styling never changes a row count. */
9365
9522
  const MEASURING = createPalette(false);
9366
- /** Replies whose measured rows {@link measuredReplies} keeps before it starts over. */
9367
- const MEASURED_REPLIES = 256;
9368
- /** Measured reply rows, by width and text. */
9369
- const measuredReplies = /* @__PURE__ */ new Map();
9370
9523
  /**
9371
9524
  * The source rows a section's body draws. A call whose first row repeats the
9372
9525
  * headline the header already names starts after it; every other row is the
@@ -9396,19 +9549,21 @@ function bodySource(block, part) {
9396
9549
  * @returns the rows, trailing padding removed.
9397
9550
  */
9398
9551
  function replyRows(rows, width, look) {
9399
- const text = rows.join("\n");
9400
- const key = look.palette === MEASURING ? `${String(width)}\n${text}` : void 0;
9401
- const known = key === void 0 ? void 0 : measuredReplies.get(key);
9402
- if (known !== void 0) return known;
9403
9552
  const theme = markdownTheme(look.palette, look.highlight);
9404
9553
  const listBullet = theme.listBullet;
9405
9554
  theme.listBullet = (marker) => listBullet(marker === MARKDOWN_BULLET ? BULLET : marker);
9406
- const lines = new Markdown(text, 0, 0, theme).render(width).map((line) => line.trimEnd());
9407
- if (key !== void 0) {
9408
- if (measuredReplies.size >= MEASURED_REPLIES) measuredReplies.clear();
9409
- measuredReplies.set(key, lines);
9410
- }
9411
- return lines;
9555
+ return new Markdown(rows.join("\n"), 0, 0, theme).render(width).map((line) => line.trimEnd());
9556
+ }
9557
+ /**
9558
+ * Cut one styled text to at most a number of columns, as `truncateToWidth`
9559
+ * does, without walking its graphemes when it already fits: the width of a
9560
+ * row drawn again unchanged is answered from pi-tui's width cache.
9561
+ * @param text - the text, already styled.
9562
+ * @param width - the columns it may take; at least 1.
9563
+ * @returns the text itself when it fits, and otherwise cut with an ellipsis.
9564
+ */
9565
+ function fit(text, width) {
9566
+ return visibleWidth(text) <= width ? text : truncateToWidth(text, width, ELLIPSIS$1);
9412
9567
  }
9413
9568
  /**
9414
9569
  * Fit one styled text to an exact number of columns.
@@ -9417,7 +9572,7 @@ function replyRows(rows, width, look) {
9417
9572
  * @returns the text cut and padded to exactly `width`.
9418
9573
  */
9419
9574
  function cell(text, width) {
9420
- const cut = truncateToWidth(text, Math.max(1, width), ELLIPSIS$1);
9575
+ const cut = fit(text, Math.max(1, width));
9421
9576
  return `${cut}${" ".repeat(Math.max(0, width - visibleWidth(cut)))}`;
9422
9577
  }
9423
9578
  /**
@@ -9448,7 +9603,7 @@ function promptRows(rows, width, look) {
9448
9603
  */
9449
9604
  function headerRow(block, part, width, look) {
9450
9605
  const { palette, held } = look;
9451
- return truncateToWidth(`${part.kind === "result" ? RESULT_INDENT : ""}${held ? palette.bold(palette.accent(`${sectionGlyph(block, part)} ${sectionName(block, part)}`)) : restingHeader(block, part, palette)}`, Math.max(1, width), ELLIPSIS$1);
9606
+ return fit(`${part.kind === "result" ? RESULT_INDENT : ""}${held ? palette.bold(palette.accent(`${sectionGlyph(block, part)} ${sectionName(block, part)}`)) : restingHeader(block, part, palette)}`, Math.max(1, width));
9452
9607
  }
9453
9608
  /**
9454
9609
  * One wrapped body row, painted in its tone.
@@ -9484,23 +9639,20 @@ function bodyRow(line, tone, indent, width, look) {
9484
9639
  * is where the rest of the text is. How many rows come back depends on the
9485
9640
  * text and the width alone, never on the palette, the bands, or whether the
9486
9641
  * section is held.
9487
- * @param cursor - the section.
9488
- * @param blocks - the navigable blocks.
9642
+ * @param block - the block the section belongs to.
9643
+ * @param part - the section.
9489
9644
  * @param width - the panel's columns, the gutter included.
9490
9645
  * @param look - the palette, the bands, the highlighter, and whether the reader holds the section.
9491
- * @returns the rows, or none for a section the transcript no longer carries.
9646
+ * @param header - the section's header row, unused for a prompt.
9647
+ * @returns the rows.
9492
9648
  */
9493
- function sectionRows(cursor, blocks, width, look) {
9494
- const found = sectionAt(cursor, blocks);
9495
- if (found === void 0) return [];
9496
- const { block, part } = found;
9649
+ function drawSection(block, part, width, look, header) {
9497
9650
  const content = Math.max(1, width - visibleWidth(GUTTER));
9498
9651
  let rows;
9499
9652
  if (block.blockKind === "user") rows = promptRows(part.rows, content, look);
9500
9653
  else {
9501
9654
  const indent = part.kind === "result" ? `${RESULT_INDENT}${BODY_INDENT}` : BODY_INDENT;
9502
9655
  const room = Math.max(1, content - visibleWidth(indent));
9503
- const header = headerRow(block, part, content, look);
9504
9656
  if (block.blockKind === "assistant" && part.kind === "reply") rows = [header, ...replyRows(part.rows, room, look).map((line) => `${indent}${line}`)];
9505
9657
  else {
9506
9658
  const source = bodySource(block, part);
@@ -9514,39 +9666,138 @@ function sectionRows(cursor, blocks, width, look) {
9514
9666
  return rows.map((row) => `${gutter}${row}`);
9515
9667
  }
9516
9668
  /**
9517
- * Lay out every section of one turn, a blank row between each two.
9518
- * @param group - the turn the panel shows.
9519
- * @param blocks - the navigable blocks.
9520
- * @param width - the panel's columns.
9521
- * @param look - the palette and bands, and which section the reader holds.
9522
- * @returns each section's rows, the blank row after it included, in reading order.
9669
+ * Measurement keeps row counts instead of expanded output. Drawn rows use a
9670
+ * bounded LRU, so reading a long turn does not retain a second full rendering.
9523
9671
  */
9524
- function turnLayout(group, blocks, width, look) {
9525
- const last = group.sections.length - 1;
9526
- return group.sections.map((section, index) => {
9527
- const held = look.cursor !== void 0 && sameSection(section, look.cursor);
9528
- const rows = sectionRows(section, blocks, width, {
9529
- palette: look.palette,
9530
- tints: look.tints,
9531
- highlight: look.highlight,
9532
- held
9533
- });
9534
- return index === last || rows.length === 0 ? rows : [...rows, ""];
9672
+ const MAX_CACHED_DRAWN_ROWS = 4096;
9673
+ const MAX_CACHED_DRAWN_SECTIONS = 256;
9674
+ /** Each block's measurements, indexed by its part number. */
9675
+ const sectionRowsCaches = /* @__PURE__ */ new WeakMap();
9676
+ /** A bounded LRU; values contain no reference to their source block. */
9677
+ const drawnSections = /* @__PURE__ */ new Map();
9678
+ let cachedDrawnRows = 0;
9679
+ /**
9680
+ * Whether two lists hold the same entries in the same order.
9681
+ * @param left - one list.
9682
+ * @param right - the other.
9683
+ * @returns true when every entry is identical to its counterpart.
9684
+ */
9685
+ function sameEntries(left, right) {
9686
+ if (left === right) return true;
9687
+ if (left === void 0 || right === void 0 || left.length !== right.length) return false;
9688
+ return left.every((entry, index) => entry === right[index]);
9689
+ }
9690
+ /**
9691
+ * The cache for one section of a block.
9692
+ * @param block - the transcript block.
9693
+ * @param part - the section's index in the block.
9694
+ * @returns the cache, creating it when this section has not been read before.
9695
+ */
9696
+ function sectionRowsCache(block, part) {
9697
+ let parts = sectionRowsCaches.get(block);
9698
+ if (parts === void 0) {
9699
+ parts = /* @__PURE__ */ new Map();
9700
+ sectionRowsCaches.set(block, parts);
9701
+ }
9702
+ let cache = parts.get(part);
9703
+ if (cache === void 0) {
9704
+ cache = {};
9705
+ parts.set(part, cache);
9706
+ }
9707
+ return cache;
9708
+ }
9709
+ /** Remove one section's rendered rows from the shared LRU. */
9710
+ function forgetDrawn(cache) {
9711
+ const drawn = cache.drawn;
9712
+ if (drawn === void 0) return;
9713
+ drawnSections.delete(drawn);
9714
+ cachedDrawnRows -= drawn.lines.length;
9715
+ cache.drawn = void 0;
9716
+ }
9717
+ /** Retain one drawn section within both LRU limits. */
9718
+ function rememberDrawn(cache, drawn) {
9719
+ forgetDrawn(cache);
9720
+ if (drawn.lines.length > MAX_CACHED_DRAWN_ROWS) return;
9721
+ cache.drawn = drawn;
9722
+ drawnSections.set(drawn, cache);
9723
+ cachedDrawnRows += drawn.lines.length;
9724
+ while (drawnSections.size > MAX_CACHED_DRAWN_SECTIONS || cachedDrawnRows > MAX_CACHED_DRAWN_ROWS) for (const [expired, owner] of drawnSections) {
9725
+ drawnSections.delete(expired);
9726
+ cachedDrawnRows -= expired.lines.length;
9727
+ owner.drawn = void 0;
9728
+ break;
9729
+ }
9730
+ }
9731
+ /** Measure a section and retain only the row count needed by geometry. */
9732
+ function sectionRowCount(cursor, blocks, width) {
9733
+ const found = sectionAt(cursor, blocks);
9734
+ if (found === void 0) return 0;
9735
+ const { block, part } = found;
9736
+ const cache = sectionRowsCache(block, cursor.part);
9737
+ const known = cache.measured;
9738
+ if (known !== void 0 && known.width === width && known.kind === part.kind && sameEntries(known.rows, part.rows) && sameEntries(known.code, part.code)) return known.count;
9739
+ const lines = drawSection(block, part, width, {
9740
+ palette: MEASURING,
9741
+ held: false
9742
+ }, "");
9743
+ cache.measured = {
9744
+ width,
9745
+ kind: part.kind,
9746
+ rows: part.rows,
9747
+ code: part.code,
9748
+ count: lines.length
9749
+ };
9750
+ return lines.length;
9751
+ }
9752
+ /**
9753
+ * Draw one section, reusing cached rows when its content and presentation match.
9754
+ * @param cursor - the section to draw.
9755
+ * @param blocks - the current navigable blocks.
9756
+ * @param width - the panel's columns, gutter included.
9757
+ * @param look - the palette, tint, highlighter, and held section.
9758
+ * @returns its drawn rows, or none when the transcript no longer carries it.
9759
+ */
9760
+ function sectionRows(cursor, blocks, width, look) {
9761
+ const found = sectionAt(cursor, blocks);
9762
+ if (found === void 0) return [];
9763
+ const { block, part } = found;
9764
+ const header = block.blockKind === "user" ? "" : headerRow(block, part, Math.max(1, width - visibleWidth(GUTTER)), look);
9765
+ const cache = sectionRowsCache(block, cursor.part);
9766
+ const known = cache.drawn;
9767
+ if (known !== void 0 && known.width === width && known.kind === part.kind && known.header === header && known.look.palette === look.palette && known.look.tints === look.tints && known.look.highlight === look.highlight && known.highlightRevision === look.highlight?.revision && known.look.held === look.held && sameEntries(known.rows, part.rows) && sameEntries(known.code, part.code)) {
9768
+ drawnSections.delete(known);
9769
+ drawnSections.set(known, cache);
9770
+ return known.lines;
9771
+ }
9772
+ const lines = drawSection(block, part, width, look, header);
9773
+ rememberDrawn(cache, {
9774
+ width,
9775
+ kind: part.kind,
9776
+ look,
9777
+ highlightRevision: look.highlight?.revision,
9778
+ header,
9779
+ rows: part.rows,
9780
+ code: part.code,
9781
+ lines
9535
9782
  });
9783
+ return lines;
9536
9784
  }
9537
9785
  /**
9538
9786
  * Measure the turn panel, which is what the scroll keys move over.
9539
9787
  * @param group - the turn the panel shows.
9540
9788
  * @param blocks - the navigable blocks.
9541
9789
  * @param width - the panel's columns.
9542
- * @returns where each section's first row lands and how many rows the panel has.
9790
+ * @returns where each section's first row lands and how many rows the panel
9791
+ * has, a blank row between each two sections.
9543
9792
  */
9544
9793
  function measurePane(group, blocks, width) {
9545
9794
  const headers = [];
9546
9795
  let total = 0;
9547
- for (const rows of turnLayout(group, blocks, width, { palette: MEASURING })) {
9796
+ const last = group.sections.length - 1;
9797
+ for (const [index, section] of group.sections.entries()) {
9548
9798
  headers.push(total);
9549
- total += rows.length;
9799
+ const count = sectionRowCount(section, blocks, width);
9800
+ total += index === last || count === 0 ? count : count + 1;
9550
9801
  }
9551
9802
  return {
9552
9803
  headers,
@@ -9942,39 +10193,50 @@ function listColumn(rows, blocks, look, body) {
9942
10193
  return rows.slice(start, start + body).map((row) => row.kind === "turn" ? turnRow(row.group, row.open, look) : outlineSectionRow(row.cursor, blocks, row.held, look));
9943
10194
  }
9944
10195
  /**
9945
- * The turn panel's rows: every section of the held turn, in reading order,
9946
- * the prompt on its band and every other section under its own header, with a
9947
- * reveal in flight floating out the rows it covers.
10196
+ * The turn panel's rows in view: the sections of the held turn that reach
10197
+ * the scroll window, in reading order, the prompt on its band and every other
10198
+ * section under its own header, with a reveal in flight floating out the rows
10199
+ * it covers. Sections outside the window are not drawn.
9948
10200
  * @param group - the turn the panel shows.
9949
10201
  * @param blocks - the navigable blocks.
9950
- * @param cursor - the section the reader holds.
10202
+ * @param state - where the reader is: the section it holds and the first visible row.
9951
10203
  * @param render - the palette, the bands, and the reveal.
9952
- * @param width - the panel's columns.
9953
- * @returns the rows, before the scroll window is applied.
10204
+ * @param geometry - the panel's columns and rows, and where each section starts.
10205
+ * @returns at most `geometry.body` rows, from the first visible one.
9954
10206
  */
9955
- function paneColumn(group, blocks, cursor, render, width) {
10207
+ function paneColumn(group, blocks, state, render, geometry) {
9956
10208
  const { palette, tints, reveal, highlight } = render;
9957
- return turnLayout(group, blocks, width, {
9958
- palette,
9959
- tints,
9960
- highlight,
9961
- cursor
9962
- }).flatMap((rows, index) => {
9963
- const section = group.sections[index];
9964
- return reveal !== void 0 && (reveal.section === void 0 || section !== void 0 && sameSection(section, reveal.section)) ? recolorLines(rows, reveal.age, reveal.style) : rows;
9965
- });
10209
+ const { headers, total } = geometry.measure;
10210
+ const top = state.offset;
10211
+ const bottom = top + geometry.body;
10212
+ const rows = [];
10213
+ for (const [index, section] of group.sections.entries()) {
10214
+ const start = headers[index];
10215
+ if ((headers[index + 1] ?? total) <= top) continue;
10216
+ if (start >= bottom) break;
10217
+ const held = sameSection(section, state.cursor);
10218
+ const drawn = sectionRows(section, blocks, geometry.pane, {
10219
+ palette,
10220
+ tints,
10221
+ highlight,
10222
+ held
10223
+ });
10224
+ const shown = (index === group.sections.length - 1 || drawn.length === 0 ? drawn : [...drawn, ""]).slice(Math.max(0, top - start), bottom - start);
10225
+ const covered = reveal !== void 0 && (reveal.section === void 0 || sameSection(section, reveal.section));
10226
+ rows.push(...covered ? recolorLines(shown, reveal.age, reveal.style) : shown);
10227
+ }
10228
+ return rows;
9966
10229
  }
9967
10230
  /**
9968
10231
  * Assemble one body row from the columns that are drawn.
9969
10232
  * @param columns - the columns in drawing order.
9970
10233
  * @param row - which of their rows to draw.
9971
10234
  * @param palette - the palette the borders are styled with.
9972
- * @param width - the frame's columns.
9973
- * @returns the row, no wider than `width`.
10235
+ * @returns the row, exactly as wide as the frame.
9974
10236
  */
9975
- function frameRow(columns, row, palette, width) {
10237
+ function frameRow(columns, row, palette) {
9976
10238
  const inner = columns.map((column) => cell(column.rows[row] ?? "", column.width)).join(`${palette.dim(SIDE)} `);
9977
- return truncateToWidth(`${palette.accent(SIDE)} ${inner} ${palette.accent(SIDE)}`, Math.max(1, width), ELLIPSIS$1);
10239
+ return `${palette.accent(SIDE)} ${inner} ${palette.accent(SIDE)}`;
9978
10240
  }
9979
10241
  /**
9980
10242
  * What the legend rule says on its left: the query line while one is open, or
@@ -10022,12 +10284,14 @@ function readout(state, groups, geometry, totalTurns) {
10022
10284
  * @param groups - the turns the list names, already narrowed by the query.
10023
10285
  * @param render - the palette, the blocks, the geometry inputs, the turn
10024
10286
  * total, and the bands and reveal the turn panel is drawn with.
10287
+ * @param measured - the geometry {@link readerGeometryFor} already returned
10288
+ * for this state, groups, and render; measured afresh when omitted.
10025
10289
  * @returns exactly `render.rows` lines, none wider than `render.width`.
10026
10290
  */
10027
- function readerRows(state, groups, render) {
10291
+ function readerRows(state, groups, render, measured) {
10028
10292
  const { palette, blocks, width, totalTurns } = render;
10029
10293
  const rows = Math.max(1, render.rows);
10030
- const geometry = readerGeometryFor(state, groups, blocks, width, rows, render.minColumns);
10294
+ const geometry = measured ?? readerGeometryFor(state, groups, blocks, width, rows, render.minColumns);
10031
10295
  if (geometry.tiny) {
10032
10296
  const lines = Array.from({ length: rows }, () => "");
10033
10297
  lines[0] = truncateToWidth(palette.dim(TOO_SMALL), Math.max(1, width), ELLIPSIS$1);
@@ -10050,10 +10314,10 @@ function readerRows(state, groups, render) {
10050
10314
  }
10051
10315
  if (geometry.pane > 0) columns.push({
10052
10316
  width: geometry.pane,
10053
- rows: group === void 0 ? [] : paneColumn(group, blocks, state.cursor, render, geometry.pane).slice(state.offset)
10317
+ rows: group === void 0 ? [] : paneColumn(group, blocks, state, render, geometry)
10054
10318
  });
10055
10319
  const body = [];
10056
- for (let row = 0; row < geometry.body; row += 1) body.push(frameRow(columns, row, palette, width));
10320
+ for (let row = 0; row < geometry.body; row += 1) body.push(frameRow(columns, row, palette));
10057
10321
  const report = readout(state, groups, geometry, totalTurns);
10058
10322
  const legendRoom = ruleRoom(width) - visibleWidth(report) - 1;
10059
10323
  const prompt = group?.sections.map((section) => blocks[section.block]?.parts()[section.part]).find((part) => part?.kind === "user");
@@ -10309,8 +10573,9 @@ var PointerTerminal = class {
10309
10573
  * the screen: it is told how many rows the terminal has and returns exactly
10310
10574
  * that many.
10311
10575
  *
10312
- * The pane holds no copy of the transcript: it re-reads the blocks and their
10313
- * turns on every render, so a reply that is still streaming grows inside it,
10576
+ * The pane reads current transcript blocks on every render. The reader reuses
10577
+ * cached section rows when their content, width, and styling match, and draws
10578
+ * only sections in view, so a streaming reply grows inside it,
10314
10579
  * a tool result that lands appears, and a new turn joins the list, all with
10315
10580
  * no push and no second clock.
10316
10581
  *
@@ -10400,6 +10665,8 @@ var ReaderPane = class {
10400
10665
  shownTurn;
10401
10666
  /** The reveal in flight, and the one section it covers when it covers no whole turn. */
10402
10667
  reveal;
10668
+ /** The bands last drawn with, and the settings they were mixed for. */
10669
+ tints;
10403
10670
  /**
10404
10671
  * @param options - the palette, the live transcript reads, and the section to open on.
10405
10672
  */
@@ -10453,10 +10720,10 @@ var ReaderPane = class {
10453
10720
  rows,
10454
10721
  minColumns: this.options.minColumns,
10455
10722
  totalTurns: groups.length,
10456
- tints: effects === void 0 ? void 0 : readerTints(effects.style(), effects.background()),
10723
+ tints: effects === void 0 ? void 0 : this.tintsFor(effects.style(), effects.background()),
10457
10724
  reveal: this.revealNow(),
10458
10725
  highlight: this.options.highlight
10459
- });
10726
+ }, geometry);
10460
10727
  }
10461
10728
  /**
10462
10729
  * Answer one key press.
@@ -10489,6 +10756,24 @@ var ReaderPane = class {
10489
10756
  this.close("editor");
10490
10757
  }
10491
10758
  /**
10759
+ * The bands for the terminal's current settings, the same object for as
10760
+ * long as they hold, so the sections drawn with them are not drawn again.
10761
+ * @param style - the fade drawing settings.
10762
+ * @param background - the terminal's background color.
10763
+ * @returns the bands, or undefined where the terminal draws none.
10764
+ */
10765
+ tintsFor(style, background) {
10766
+ const known = this.tints;
10767
+ if (known?.style === style && known.background === background) return known.tints;
10768
+ const tints = readerTints(style, background);
10769
+ this.tints = {
10770
+ style,
10771
+ background,
10772
+ tints
10773
+ };
10774
+ return tints;
10775
+ }
10776
+ /**
10492
10777
  * Start a reveal, replacing the one in flight.
10493
10778
  * @param section - the one section it covers; undefined covers the whole turn.
10494
10779
  */
@@ -10869,6 +11154,14 @@ function parseHexColor(color) {
10869
11154
  */
10870
11155
  var SyntaxHighlighter = class {
10871
11156
  options;
11157
+ revisionCount = 0;
11158
+ /**
11159
+ * How many grammar loads may change the rows a prior code draw would produce.
11160
+ * @returns the code-rendering revision.
11161
+ */
11162
+ get revision() {
11163
+ return this.revisionCount;
11164
+ }
10872
11165
  /** The shiki core, once a theme and one grammar have landed. */
10873
11166
  core;
10874
11167
  /**
@@ -10954,6 +11247,7 @@ var SyntaxHighlighter = class {
10954
11247
  } finally {
10955
11248
  this.pending.delete(id);
10956
11249
  }
11250
+ this.revisionCount += 1;
10957
11251
  this.options.changed();
10958
11252
  }
10959
11253
  /**
@@ -12273,6 +12567,11 @@ const SHELL_MISSING = "! needs a shell executor in this composition";
12273
12567
  /** Shown when a second `!` is submitted while one is still running. */
12274
12568
  const SHELL_BUSY = "A shell command is already running. Press Esc to cancel it first.";
12275
12569
  /**
12570
+ * The Auto preset id. Its type comes from the permission owner's constant, so a
12571
+ * rename fails to compile, while the optional service stays a type-only import.
12572
+ */
12573
+ const AUTO = "auto";
12574
+ /**
12276
12575
  * Source for a prompt the person typed in this terminal.
12277
12576
  * A string `rpcId` is the admission mark Auto review treats as a human instruction.
12278
12577
  * An edited draft keeps a non-user source; a user draft is admitted again.
@@ -13125,7 +13424,7 @@ var TuiApp = class {
13125
13424
  this.syncBoardSpinners(this.deps.reducedMotion ? [] : spinningTodos(view));
13126
13425
  const now = this.deps.now();
13127
13426
  const spinners = /* @__PURE__ */ new Map();
13128
- for (const [content, phase] of this.boardSpinners) spinners.set(content, spinnerFrame(TOOL_SPINNER, now, this.deps.spinnerMs, phase));
13427
+ for (const [content, phase] of this.boardSpinners) spinners.set(content, spinnerFrame(TOOL_SPINNERS.todo, now, this.deps.spinnerMs, phase));
13129
13428
  const text = renderActivityBoard(view, {
13130
13429
  palette: this.deps.palette,
13131
13430
  todoFades: this.activityTodoFades,
@@ -13152,7 +13451,7 @@ var TuiApp = class {
13152
13451
  for (const content of this.boardSpinners.keys()) if (!contents.includes(content)) this.boardSpinners.delete(content);
13153
13452
  for (const content of contents) {
13154
13453
  if (this.boardSpinners.has(content)) continue;
13155
- this.boardSpinners.set(content, staggerPhase(this.spinningPhases()));
13454
+ this.boardSpinners.set(content, staggerPhase(this.spinningPhases("todo")));
13156
13455
  }
13157
13456
  }
13158
13457
  /**
@@ -14912,9 +15211,11 @@ var TuiApp = class {
14912
15211
  await this.openSessionPicker();
14913
15212
  return;
14914
15213
  case "new":
14915
- case "clear":
14916
15214
  await this.switchSession(() => this.deps.host.create(), "new session");
14917
15215
  return;
15216
+ case "clear":
15217
+ await this.switchSession(() => this.deps.host.create(this.currentSelection()), "new session");
15218
+ return;
14918
15219
  case "fork": {
14919
15220
  const turn = argument === "" ? void 0 : Number(argument);
14920
15221
  if (turn !== void 0 && !(Number.isSafeInteger(turn) && turn > 0)) {
@@ -15354,7 +15655,7 @@ var TuiApp = class {
15354
15655
  await this.runSharedCommand(argument === "" ? "/sandbox" : `/sandbox ${argument}`, "sandbox");
15355
15656
  return;
15356
15657
  }
15357
- const picked = await this.showModal(new SandboxPrompt(this.deps.palette, provider, this.agent.session, policy.resolve({ session: this.agent.session })));
15658
+ const picked = await this.showModal(new SandboxPrompt(this.deps.palette, provider, this.agent.session, policy.resolve({ session: this.agent.session }), this.deps.ctx.get("permissionPresets")?.current(this.agent.session) === AUTO));
15358
15659
  if (picked !== void 0) await this.runSharedCommand(`/sandbox ${picked.value}`, "sandbox");
15359
15660
  }
15360
15661
  /**
@@ -15792,28 +16093,31 @@ var TuiApp = class {
15792
16093
  this.trackReveal(block);
15793
16094
  }
15794
16095
  /**
15795
- * Spin a new card's glyph in the tool animation until its result lands, at
15796
- * a phase staggered against the other tool indicators on screen and kept
15797
- * for the card's whole run. A card drawn from a replayed log, and every
15798
- * card under reduced motion, draws the static glyph.
16096
+ * Spin a new card's glyph in its tool family's animation until its result
16097
+ * lands, at a phase staggered against the other indicators of that family
16098
+ * and kept for the card's whole run. A card drawn from a replayed log, and
16099
+ * every card under reduced motion, draws the static glyph.
15799
16100
  * @param block - the card that was just mounted.
15800
16101
  */
15801
16102
  spinBlock(block) {
15802
16103
  if (this.replaying || this.deps.reducedMotion) return;
15803
- const phase = staggerPhase(this.spinningPhases());
15804
- block.setSpinner(() => spinnerFrame(TOOL_SPINNER, this.deps.now(), this.deps.spinnerMs, phase));
16104
+ const family = toolFamily(block.name);
16105
+ const phase = staggerPhase(this.spinningPhases(family));
16106
+ block.setSpinner(() => spinnerFrame(TOOL_SPINNERS[family], this.deps.now(), this.deps.spinnerMs, phase));
15805
16107
  this.spinners.set(block, phase);
15806
16108
  this.updateSpinTicker();
15807
16109
  }
15808
16110
  /**
15809
- * The phases of the tool indicators spinning right now: running cards and
15810
- * the activity board's in-progress todo rows.
15811
- * @returns one phase per spinning indicator.
16111
+ * The phases of the indicators of `family` spinning right now: running
16112
+ * cards of that family, and the activity board's in-progress todo rows
16113
+ * when `family` is `todo`.
16114
+ * @param family - the animation those indicators draw.
16115
+ * @returns one phase per spinning indicator of that family.
15812
16116
  */
15813
- spinningPhases() {
16117
+ spinningPhases(family) {
15814
16118
  const phases = [];
15815
- for (const [block, phase] of this.spinners) if (block.spinning()) phases.push(phase);
15816
- phases.push(...this.boardSpinners.values());
16119
+ for (const [block, phase] of this.spinners) if (block.spinning() && toolFamily(block.name) === family) phases.push(phase);
16120
+ if (family === "todo") phases.push(...this.boardSpinners.values());
15817
16121
  return phases;
15818
16122
  }
15819
16123
  /**
@@ -16752,8 +17056,8 @@ function sessionHost(ctx, core, cwd, btw) {
16752
17056
  dispose: () => handle.dispose()
16753
17057
  };
16754
17058
  };
16755
- const create = (seed, parent) => bind((selection, setup) => {
16756
- const model = defaultModel.currentSelection();
17059
+ const create = (seed, parent, initialSelection) => bind((selection, setup) => {
17060
+ const model = initialSelection ?? defaultModel.currentSelection();
16757
17061
  selection.current = model;
16758
17062
  return agents.create({
16759
17063
  sessionId: brandString(`session-${randomUUID()}`),
@@ -16770,7 +17074,8 @@ function sessionHost(ctx, core, cwd, btw) {
16770
17074
  },
16771
17075
  agentOptions: {
16772
17076
  provider: model.provider,
16773
- model: model.model
17077
+ model: model.model,
17078
+ ...model.reasoningEffort === void 0 ? {} : { reasoningEffort: model.reasoningEffort }
16774
17079
  },
16775
17080
  setup
16776
17081
  });
@@ -16801,7 +17106,7 @@ function sessionHost(ctx, core, cwd, btw) {
16801
17106
  };
16802
17107
  };
16803
17108
  return {
16804
- create: () => create(void 0, void 0),
17109
+ create: (selection) => create(void 0, void 0, selection),
16805
17110
  resume,
16806
17111
  fork: async (id, turn) => create(await forkSeed(ctx, id, turn), id),
16807
17112
  aside: async (parent) => {