@adea-ai/ui 0.152.4 → 0.154.0

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 (900) hide show
  1. package/README.md +469 -580
  2. package/dist/NOTICE +10 -1
  3. package/dist/components/composites/account-menu/account-menu.d.ts +5 -0
  4. package/dist/components/composites/account-menu/account-menu.d.ts.map +1 -1
  5. package/dist/components/composites/account-menu/account-menu.js +37 -13
  6. package/dist/components/composites/account-menu/account-menu.js.map +1 -1
  7. package/dist/components/composites/action-button/action-button.d.ts +2 -1
  8. package/dist/components/composites/action-button/action-button.d.ts.map +1 -1
  9. package/dist/components/composites/action-button/action-button.js +92 -66
  10. package/dist/components/composites/action-button/action-button.js.map +1 -1
  11. package/dist/components/composites/appearance-editor/accent-swatch-groups.d.ts +3 -3
  12. package/dist/components/composites/appearance-editor/accent-swatch-groups.js +1 -1
  13. package/dist/components/composites/appearance-editor/accent-swatch-groups.js.map +1 -1
  14. package/dist/components/composites/appearance-editor/appearance-choices.d.ts +1 -1
  15. package/dist/components/composites/appearance-editor/appearance-choices.js +1 -1
  16. package/dist/components/composites/appearance-editor/appearance-choices.js.map +1 -1
  17. package/dist/components/composites/appearance-editor/appearance-editor.d.ts.map +1 -1
  18. package/dist/components/composites/appearance-editor/appearance-editor.js +57 -57
  19. package/dist/components/composites/appearance-editor/appearance-editor.js.map +1 -1
  20. package/dist/components/composites/appearance-editor/appearance-rows.d.ts.map +1 -1
  21. package/dist/components/composites/appearance-editor/appearance-rows.js +9 -9
  22. package/dist/components/composites/appearance-editor/appearance-rows.js.map +1 -1
  23. package/dist/components/composites/appearance-editor/appearance-types.d.ts +7 -7
  24. package/dist/components/composites/appearance-editor/theme-preview.d.ts +1 -1
  25. package/dist/components/composites/appearance-editor/theme-preview.js +1 -1
  26. package/dist/components/composites/appearance-editor/theme-preview.js.map +1 -1
  27. package/dist/components/composites/catalog-browser/catalog-browser.d.ts.map +1 -1
  28. package/dist/components/composites/catalog-browser/catalog-browser.js +6 -10
  29. package/dist/components/composites/catalog-browser/catalog-browser.js.map +1 -1
  30. package/dist/components/composites/catalog-browser/catalog-detail.d.ts.map +1 -1
  31. package/dist/components/composites/catalog-browser/catalog-detail.js +36 -36
  32. package/dist/components/composites/catalog-browser/catalog-detail.js.map +1 -1
  33. package/dist/components/composites/chain-of-thought/chain-of-thought.d.ts +4 -4
  34. package/dist/components/composites/chain-of-thought/chain-of-thought.js.map +1 -1
  35. package/dist/components/composites/chat/chat.d.ts.map +1 -1
  36. package/dist/components/composites/chat/chat.js +33 -37
  37. package/dist/components/composites/chat/chat.js.map +1 -1
  38. package/dist/components/composites/checkpoint/checkpoint-model.d.ts +3 -3
  39. package/dist/components/composites/checkpoint/checkpoint-model.js +2 -2
  40. package/dist/components/composites/checkpoint/checkpoint-model.js.map +1 -1
  41. package/dist/components/composites/checkpoint/checkpoint.d.ts +2 -2
  42. package/dist/components/composites/checkpoint/checkpoint.js.map +1 -1
  43. package/dist/components/composites/confirmation/confirmation.d.ts.map +1 -1
  44. package/dist/components/composites/confirmation/confirmation.js +1 -1
  45. package/dist/components/composites/confirmation/confirmation.js.map +1 -1
  46. package/dist/components/composites/context/context.d.ts +2 -2
  47. package/dist/components/composites/context/context.js.map +1 -1
  48. package/dist/components/composites/file-tree/build-file-tree.d.ts +1 -1
  49. package/dist/components/composites/file-tree/build-file-tree.js +1 -1
  50. package/dist/components/composites/file-tree/build-file-tree.js.map +1 -1
  51. package/dist/components/composites/file-tree/file-tree.d.ts.map +1 -1
  52. package/dist/components/composites/file-tree/file-tree.js +7 -3
  53. package/dist/components/composites/file-tree/file-tree.js.map +1 -1
  54. package/dist/components/composites/icon-picker/icon-picker.js +1 -3
  55. package/dist/components/composites/icon-picker/icon-picker.js.map +1 -1
  56. package/dist/components/composites/inline-citation/citation.d.ts +1 -1
  57. package/dist/components/composites/inline-citation/citation.js +1 -1
  58. package/dist/components/composites/inline-citation/citation.js.map +1 -1
  59. package/dist/components/composites/inline-citation/inline-citation.d.ts +2 -2
  60. package/dist/components/composites/inline-citation/inline-citation.js.map +1 -1
  61. package/dist/components/composites/list-row/list-row-control.d.ts.map +1 -1
  62. package/dist/components/composites/list-row/list-row-control.js +22 -22
  63. package/dist/components/composites/list-row/list-row-control.js.map +1 -1
  64. package/dist/components/composites/list-row/list-row.d.ts +5 -0
  65. package/dist/components/composites/list-row/list-row.d.ts.map +1 -1
  66. package/dist/components/composites/list-row/list-row.js +75 -83
  67. package/dist/components/composites/list-row/list-row.js.map +1 -1
  68. package/dist/components/composites/message-scroller/message-scroller.d.ts +1 -1
  69. package/dist/components/composites/message-scroller/message-scroller.js.map +1 -1
  70. package/dist/components/composites/model-selector/model-selector.d.ts +19 -5
  71. package/dist/components/composites/model-selector/model-selector.d.ts.map +1 -1
  72. package/dist/components/composites/model-selector/model-selector.js +263 -29
  73. package/dist/components/composites/model-selector/model-selector.js.map +1 -1
  74. package/dist/components/composites/model-selector/models.d.ts +2 -2
  75. package/dist/components/composites/model-selector/models.js +1 -1
  76. package/dist/components/composites/model-selector/models.js.map +1 -1
  77. package/dist/components/composites/plan/plan.d.ts.map +1 -1
  78. package/dist/components/composites/plan/plan.js +17 -15
  79. package/dist/components/composites/plan/plan.js.map +1 -1
  80. package/dist/components/composites/queue/queue.d.ts.map +1 -1
  81. package/dist/components/composites/queue/queue.js +5 -7
  82. package/dist/components/composites/queue/queue.js.map +1 -1
  83. package/dist/components/composites/reasoning/reasoning.d.ts +4 -4
  84. package/dist/components/composites/reasoning/reasoning.js +4 -4
  85. package/dist/components/composites/reasoning/reasoning.js.map +1 -1
  86. package/dist/components/composites/settings/settings-navigation.d.ts.map +1 -1
  87. package/dist/components/composites/settings/settings-navigation.js +63 -14
  88. package/dist/components/composites/settings/settings-navigation.js.map +1 -1
  89. package/dist/components/composites/settings/settings.d.ts.map +1 -1
  90. package/dist/components/composites/settings/settings.js +32 -32
  91. package/dist/components/composites/settings/settings.js.map +1 -1
  92. package/dist/components/composites/sources/source.d.ts +1 -1
  93. package/dist/components/composites/sources/source.js.map +1 -1
  94. package/dist/components/composites/sources/sources.d.ts +2 -2
  95. package/dist/components/composites/sources/sources.js.map +1 -1
  96. package/dist/components/composites/stack-trace/parse-stack-trace.d.ts +3 -3
  97. package/dist/components/composites/stack-trace/parse-stack-trace.js +4 -4
  98. package/dist/components/composites/stack-trace/parse-stack-trace.js.map +1 -1
  99. package/dist/components/composites/stack-trace/stack-trace.d.ts +3 -3
  100. package/dist/components/composites/stack-trace/stack-trace.js.map +1 -1
  101. package/dist/components/composites/stat/stat.d.ts.map +1 -1
  102. package/dist/components/composites/stat/stat.js +14 -16
  103. package/dist/components/composites/stat/stat.js.map +1 -1
  104. package/dist/components/composites/subagent/subagent.d.ts.map +1 -1
  105. package/dist/components/composites/subagent/subagent.js +6 -4
  106. package/dist/components/composites/subagent/subagent.js.map +1 -1
  107. package/dist/components/composites/task/task.d.ts +1 -1
  108. package/dist/components/composites/task/task.js.map +1 -1
  109. package/dist/components/composites/terminal/ansi.d.ts +3 -3
  110. package/dist/components/composites/terminal/ansi.js.map +1 -1
  111. package/dist/components/composites/terminal/terminal-model.d.ts +3 -3
  112. package/dist/components/composites/terminal/terminal-model.d.ts.map +1 -1
  113. package/dist/components/composites/terminal/terminal-model.js +1 -1
  114. package/dist/components/composites/terminal/terminal-model.js.map +1 -1
  115. package/dist/components/composites/terminal/terminal.d.ts.map +1 -1
  116. package/dist/components/composites/terminal/terminal.js +24 -11
  117. package/dist/components/composites/terminal/terminal.js.map +1 -1
  118. package/dist/components/composites/test-results/test-results-model.d.ts +4 -4
  119. package/dist/components/composites/test-results/test-results-model.js +2 -2
  120. package/dist/components/composites/test-results/test-results-model.js.map +1 -1
  121. package/dist/components/composites/test-results/test-results.d.ts +1 -1
  122. package/dist/components/composites/test-results/test-results.js.map +1 -1
  123. package/dist/components/composites/tool/tool.d.ts +4 -4
  124. package/dist/components/composites/tool/tool.js.map +1 -1
  125. package/dist/components/composites/tree/tree.d.ts +1 -1
  126. package/dist/components/composites/tree/tree.d.ts.map +1 -1
  127. package/dist/components/composites/tree/tree.js +25 -18
  128. package/dist/components/composites/tree/tree.js.map +1 -1
  129. package/dist/components/composites/update-dialog/channel-control.d.ts +10 -4
  130. package/dist/components/composites/update-dialog/channel-control.d.ts.map +1 -1
  131. package/dist/components/composites/update-dialog/channel-control.js +14 -19
  132. package/dist/components/composites/update-dialog/channel-control.js.map +1 -1
  133. package/dist/components/composites/update-dialog/index.d.ts +1 -1
  134. package/dist/components/composites/update-dialog/index.d.ts.map +1 -1
  135. package/dist/components/composites/update-dialog/update-dialog.js +4 -5
  136. package/dist/components/composites/update-dialog/update-dialog.js.map +1 -1
  137. package/dist/components/composites/workspace-mark/workspace-mark.d.ts.map +1 -1
  138. package/dist/components/composites/workspace-mark/workspace-mark.js +19 -20
  139. package/dist/components/composites/workspace-mark/workspace-mark.js.map +1 -1
  140. package/dist/components/conversation/busy-send-button.d.ts.map +1 -1
  141. package/dist/components/conversation/busy-send-button.js +18 -20
  142. package/dist/components/conversation/busy-send-button.js.map +1 -1
  143. package/dist/components/conversation/composer-menu.d.ts +3 -3
  144. package/dist/components/conversation/composer-menu.js +3 -3
  145. package/dist/components/conversation/composer-menu.js.map +1 -1
  146. package/dist/components/conversation/conversation-avatar.js +2 -4
  147. package/dist/components/conversation/conversation-avatar.js.map +1 -1
  148. package/dist/components/conversation/conversation-pane.d.ts.map +1 -1
  149. package/dist/components/conversation/conversation-pane.js +6 -5
  150. package/dist/components/conversation/conversation-pane.js.map +1 -1
  151. package/dist/components/conversation/conversation-surface.js +3 -7
  152. package/dist/components/conversation/conversation-surface.js.map +1 -1
  153. package/dist/components/conversation/internal/chat-composer-shell.d.ts.map +1 -1
  154. package/dist/components/conversation/internal/chat-composer-shell.js +76 -76
  155. package/dist/components/conversation/internal/chat-composer-shell.js.map +1 -1
  156. package/dist/components/conversation/message-composer.d.ts.map +1 -1
  157. package/dist/components/conversation/message-composer.js +32 -38
  158. package/dist/components/conversation/message-composer.js.map +1 -1
  159. package/dist/components/conversation/message-row.d.ts.map +1 -1
  160. package/dist/components/conversation/message-row.js +79 -73
  161. package/dist/components/conversation/message-row.js.map +1 -1
  162. package/dist/components/conversation/scroll-follow-core.d.ts +7 -7
  163. package/dist/components/conversation/scroll-follow-core.js +4 -4
  164. package/dist/components/conversation/scroll-follow-core.js.map +1 -1
  165. package/dist/components/conversation/scroll-follow.d.ts.map +1 -1
  166. package/dist/components/conversation/scroll-follow.js +19 -4
  167. package/dist/components/conversation/scroll-follow.js.map +1 -1
  168. package/dist/components/conversation/thread-panel.d.ts.map +1 -1
  169. package/dist/components/conversation/thread-panel.js +23 -23
  170. package/dist/components/conversation/thread-panel.js.map +1 -1
  171. package/dist/components/conversation/transcript-composition.d.ts.map +1 -1
  172. package/dist/components/conversation/transcript-composition.js +2 -2
  173. package/dist/components/conversation/transcript-composition.js.map +1 -1
  174. package/dist/components/layout/app-shell/app-shell.d.ts +1 -1
  175. package/dist/components/layout/app-shell/app-shell.js +1 -1
  176. package/dist/components/layout/app-shell/app-shell.js.map +1 -1
  177. package/dist/components/layout/app-shell/skip-link.d.ts.map +1 -1
  178. package/dist/components/layout/app-shell/skip-link.js +4 -6
  179. package/dist/components/layout/app-shell/skip-link.js.map +1 -1
  180. package/dist/components/layout/page/page.d.ts.map +1 -1
  181. package/dist/components/layout/page/page.js +17 -17
  182. package/dist/components/layout/page/page.js.map +1 -1
  183. package/dist/components/layout/panel/panel.js +2 -4
  184. package/dist/components/layout/panel/panel.js.map +1 -1
  185. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.d.ts.map +1 -1
  186. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js +16 -1
  187. package/dist/components/layout/pixel-resize-handle/pixel-resize-handle.js.map +1 -1
  188. package/dist/components/layout/side-rail/side-rail-context.d.ts +1 -1
  189. package/dist/components/layout/side-rail/side-rail-context.js.map +1 -1
  190. package/dist/components/layout/side-rail/side-rail.d.ts.map +1 -1
  191. package/dist/components/layout/side-rail/side-rail.js +62 -57
  192. package/dist/components/layout/side-rail/side-rail.js.map +1 -1
  193. package/dist/components/layout/sidebar-nav/sidebar-nav.d.ts.map +1 -1
  194. package/dist/components/layout/sidebar-nav/sidebar-nav.js +23 -23
  195. package/dist/components/layout/sidebar-nav/sidebar-nav.js.map +1 -1
  196. package/dist/components/layout/split-layout/resize-controller-core-retry.d.ts.map +1 -1
  197. package/dist/components/layout/split-layout/resize-controller-core-retry.js +25 -7
  198. package/dist/components/layout/split-layout/resize-controller-core-retry.js.map +1 -1
  199. package/dist/components/layout/split-layout/resize-controller-core.d.ts.map +1 -1
  200. package/dist/components/layout/split-layout/resize-controller-core.js +25 -7
  201. package/dist/components/layout/split-layout/resize-controller-core.js.map +1 -1
  202. package/dist/components/layout/split-layout/split-layout.d.ts.map +1 -1
  203. package/dist/components/layout/split-layout/split-layout.js +2 -2
  204. package/dist/components/layout/split-layout/split-layout.js.map +1 -1
  205. package/dist/components/layout/status-bar/status-bar.d.ts +1 -1
  206. package/dist/components/layout/status-bar/status-bar.js +1 -1
  207. package/dist/components/layout/status-bar/status-bar.js.map +1 -1
  208. package/dist/components/layout/top-bar/top-bar.d.ts.map +1 -1
  209. package/dist/components/layout/top-bar/top-bar.js +15 -14
  210. package/dist/components/layout/top-bar/top-bar.js.map +1 -1
  211. package/dist/components/motion/presence.d.ts +2 -2
  212. package/dist/components/motion/presence.js.map +1 -1
  213. package/dist/components/theme/appearance-panel.d.ts +5 -5
  214. package/dist/components/theme/appearance-panel.js.map +1 -1
  215. package/dist/components/theme/lazy.d.ts +1 -1
  216. package/dist/components/theme/lazy.js.map +1 -1
  217. package/dist/components/theme/theme-catalogue-source.d.ts +2 -2
  218. package/dist/components/theme/theme-catalogue-source.js +2 -2
  219. package/dist/components/theme/theme-catalogue-source.js.map +1 -1
  220. package/dist/components/theme/theme-context.d.ts +2 -2
  221. package/dist/components/theme/theme-context.js +3 -3
  222. package/dist/components/theme/theme-context.js.map +1 -1
  223. package/dist/components/theme/theme-document.d.ts.map +1 -1
  224. package/dist/components/theme/theme-document.js +14 -9
  225. package/dist/components/theme/theme-document.js.map +1 -1
  226. package/dist/components/theme/theme-picker.d.ts +5 -5
  227. package/dist/components/theme/theme-picker.js.map +1 -1
  228. package/dist/components/theme/theme-provider-value.d.ts +0 -6
  229. package/dist/components/theme/theme-provider-value.d.ts.map +1 -1
  230. package/dist/components/theme/theme-provider-value.js +9 -3
  231. package/dist/components/theme/theme-provider-value.js.map +1 -1
  232. package/dist/components/theme/theme-script.d.ts +14 -0
  233. package/dist/components/theme/theme-script.d.ts.map +1 -1
  234. package/dist/components/theme/theme-script.js +1 -0
  235. package/dist/components/theme/theme-script.js.map +1 -1
  236. package/dist/components/theme/theme-state.d.ts +7 -7
  237. package/dist/components/theme/theme-state.js.map +1 -1
  238. package/dist/components/theme/theme-toggle.d.ts +1 -1
  239. package/dist/components/theme/theme-toggle.js.map +1 -1
  240. package/dist/components/ui/alert/alert.d.ts.map +1 -1
  241. package/dist/components/ui/alert/alert.js +4 -3
  242. package/dist/components/ui/alert/alert.js.map +1 -1
  243. package/dist/components/ui/alert-dialog/alert-dialog.d.ts +1 -1
  244. package/dist/components/ui/alert-dialog/alert-dialog.js +3 -3
  245. package/dist/components/ui/alert-dialog/alert-dialog.js.map +1 -1
  246. package/dist/components/ui/badge/badge.d.ts +1 -1
  247. package/dist/components/ui/badge/badge.js +2 -2
  248. package/dist/components/ui/badge/badge.js.map +1 -1
  249. package/dist/components/ui/board/board.d.ts.map +1 -1
  250. package/dist/components/ui/board/board.js +10 -6
  251. package/dist/components/ui/board/board.js.map +1 -1
  252. package/dist/components/ui/bubble/bubble.d.ts.map +1 -1
  253. package/dist/components/ui/bubble/bubble.js +6 -4
  254. package/dist/components/ui/bubble/bubble.js.map +1 -1
  255. package/dist/components/ui/button/button.js +2 -2
  256. package/dist/components/ui/button/button.js.map +1 -1
  257. package/dist/components/ui/button-group/button-group.d.ts +1 -1
  258. package/dist/components/ui/button-group/button-group.js +1 -1
  259. package/dist/components/ui/button-group/button-group.js.map +1 -1
  260. package/dist/components/ui/calendar/calendar.js +6 -6
  261. package/dist/components/ui/calendar/calendar.js.map +1 -1
  262. package/dist/components/ui/callout/callout.d.ts +4 -4
  263. package/dist/components/ui/callout/callout.js +4 -4
  264. package/dist/components/ui/callout/callout.js.map +1 -1
  265. package/dist/components/ui/card/card.d.ts +2 -2
  266. package/dist/components/ui/card/card.js +2 -2
  267. package/dist/components/ui/card/card.js.map +1 -1
  268. package/dist/components/ui/carousel/carousel.d.ts +4 -4
  269. package/dist/components/ui/carousel/carousel.d.ts.map +1 -1
  270. package/dist/components/ui/carousel/carousel.js.map +1 -1
  271. package/dist/components/ui/chart/chart-options.d.ts +7 -7
  272. package/dist/components/ui/chart/chart-options.js +9 -9
  273. package/dist/components/ui/chart/chart-options.js.map +1 -1
  274. package/dist/components/ui/chart/chart.d.ts.map +1 -1
  275. package/dist/components/ui/chart/chart.js +16 -7
  276. package/dist/components/ui/chart/chart.js.map +1 -1
  277. package/dist/components/ui/checkbox/checkbox.d.ts.map +1 -1
  278. package/dist/components/ui/checkbox/checkbox.js +8 -6
  279. package/dist/components/ui/checkbox/checkbox.js.map +1 -1
  280. package/dist/components/ui/code-block/code-block.d.ts.map +1 -1
  281. package/dist/components/ui/code-block/code-block.js +8 -6
  282. package/dist/components/ui/code-block/code-block.js.map +1 -1
  283. package/dist/components/ui/command/command.d.ts +4 -4
  284. package/dist/components/ui/command/command.js +4 -4
  285. package/dist/components/ui/command/command.js.map +1 -1
  286. package/dist/components/ui/context-menu/context-menu.d.ts +1 -1
  287. package/dist/components/ui/context-menu/context-menu.js.map +1 -1
  288. package/dist/components/ui/detail-panel/detail-panel.d.ts.map +1 -1
  289. package/dist/components/ui/detail-panel/detail-panel.js +13 -13
  290. package/dist/components/ui/detail-panel/detail-panel.js.map +1 -1
  291. package/dist/components/ui/dialog/dialog-layer.d.ts +0 -4
  292. package/dist/components/ui/dialog/dialog-layer.d.ts.map +1 -1
  293. package/dist/components/ui/dialog/dialog-layer.js +17 -1
  294. package/dist/components/ui/dialog/dialog-layer.js.map +1 -1
  295. package/dist/components/ui/dialog/dialog.d.ts.map +1 -1
  296. package/dist/components/ui/dialog/dialog.js +4 -3
  297. package/dist/components/ui/dialog/dialog.js.map +1 -1
  298. package/dist/components/ui/diff-block/diff-block.d.ts +6 -6
  299. package/dist/components/ui/diff-block/diff-block.js +3 -3
  300. package/dist/components/ui/diff-block/diff-block.js.map +1 -1
  301. package/dist/components/ui/drawer/drawer.d.ts +3 -3
  302. package/dist/components/ui/drawer/drawer.js +2 -2
  303. package/dist/components/ui/drawer/drawer.js.map +1 -1
  304. package/dist/components/ui/dropdown-menu/dropdown-menu.d.ts +5 -5
  305. package/dist/components/ui/dropdown-menu/dropdown-menu.js +3 -3
  306. package/dist/components/ui/dropdown-menu/dropdown-menu.js.map +1 -1
  307. package/dist/components/ui/dropdown-menu/menu-parts.d.ts +3 -3
  308. package/dist/components/ui/dropdown-menu/menu-parts.js +1 -1
  309. package/dist/components/ui/dropdown-menu/menu-parts.js.map +1 -1
  310. package/dist/components/ui/empty/empty-state.d.ts.map +1 -1
  311. package/dist/components/ui/empty/empty-state.js +33 -36
  312. package/dist/components/ui/empty/empty-state.js.map +1 -1
  313. package/dist/components/ui/empty/empty.d.ts +1 -1
  314. package/dist/components/ui/empty/empty.js +1 -1
  315. package/dist/components/ui/empty/empty.js.map +1 -1
  316. package/dist/components/ui/entity-icon/entity-icon.d.ts.map +1 -1
  317. package/dist/components/ui/entity-icon/entity-icon.js +7 -7
  318. package/dist/components/ui/entity-icon/entity-icon.js.map +1 -1
  319. package/dist/components/ui/field/field.d.ts.map +1 -1
  320. package/dist/components/ui/field/field.js +15 -15
  321. package/dist/components/ui/field/field.js.map +1 -1
  322. package/dist/components/ui/field/number-field.d.ts +1 -1
  323. package/dist/components/ui/field/number-field.js +1 -1
  324. package/dist/components/ui/field/number-field.js.map +1 -1
  325. package/dist/components/ui/hover-card/hover-card.d.ts +1 -1
  326. package/dist/components/ui/hover-card/hover-card.js.map +1 -1
  327. package/dist/components/ui/input-group/input-group.d.ts +1 -1
  328. package/dist/components/ui/input-group/input-group.js.map +1 -1
  329. package/dist/components/ui/input-otp/input-otp.d.ts +1 -1
  330. package/dist/components/ui/input-otp/input-otp.js.map +1 -1
  331. package/dist/components/ui/item/item.d.ts.map +1 -1
  332. package/dist/components/ui/item/item.js +26 -26
  333. package/dist/components/ui/item/item.js.map +1 -1
  334. package/dist/components/ui/kbd/kbd.d.ts +25 -12
  335. package/dist/components/ui/kbd/kbd.d.ts.map +1 -1
  336. package/dist/components/ui/kbd/kbd.js +44 -13
  337. package/dist/components/ui/kbd/kbd.js.map +1 -1
  338. package/dist/components/ui/kbd/platform-modifier.d.ts +3 -3
  339. package/dist/components/ui/kbd/platform-modifier.js +3 -3
  340. package/dist/components/ui/kbd/platform-modifier.js.map +1 -1
  341. package/dist/components/ui/label/label.d.ts +1 -1
  342. package/dist/components/ui/label/label.js +1 -1
  343. package/dist/components/ui/label/label.js.map +1 -1
  344. package/dist/components/ui/marker/marker.d.ts.map +1 -1
  345. package/dist/components/ui/marker/marker.js +17 -19
  346. package/dist/components/ui/marker/marker.js.map +1 -1
  347. package/dist/components/ui/menubar/menubar.d.ts +2 -2
  348. package/dist/components/ui/menubar/menubar.js +1 -1
  349. package/dist/components/ui/menubar/menubar.js.map +1 -1
  350. package/dist/components/ui/message/message.d.ts.map +1 -1
  351. package/dist/components/ui/message/message.js +16 -18
  352. package/dist/components/ui/message/message.js.map +1 -1
  353. package/dist/components/ui/modal-dialog/modal-dialog.d.ts.map +1 -1
  354. package/dist/components/ui/modal-dialog/modal-dialog.js +7 -11
  355. package/dist/components/ui/modal-dialog/modal-dialog.js.map +1 -1
  356. package/dist/components/ui/native-select/native-select.d.ts +1 -1
  357. package/dist/components/ui/native-select/native-select.js.map +1 -1
  358. package/dist/components/ui/navigation-menu/navigation-menu.d.ts.map +1 -1
  359. package/dist/components/ui/navigation-menu/navigation-menu.js +5 -4
  360. package/dist/components/ui/navigation-menu/navigation-menu.js.map +1 -1
  361. package/dist/components/ui/pagination/pagination.js +2 -4
  362. package/dist/components/ui/pagination/pagination.js.map +1 -1
  363. package/dist/components/ui/popover/popover.d.ts.map +1 -1
  364. package/dist/components/ui/popover/popover.js +11 -4
  365. package/dist/components/ui/popover/popover.js.map +1 -1
  366. package/dist/components/ui/progress/progress.d.ts.map +1 -1
  367. package/dist/components/ui/progress/progress.js +6 -8
  368. package/dist/components/ui/progress/progress.js.map +1 -1
  369. package/dist/components/ui/questionnaire/questionnaire.d.ts.map +1 -1
  370. package/dist/components/ui/questionnaire/questionnaire.js +73 -73
  371. package/dist/components/ui/questionnaire/questionnaire.js.map +1 -1
  372. package/dist/components/ui/radio-group/radio-group.d.ts.map +1 -1
  373. package/dist/components/ui/radio-group/radio-group.js +12 -6
  374. package/dist/components/ui/radio-group/radio-group.js.map +1 -1
  375. package/dist/components/ui/resizable/resizable.d.ts +2 -2
  376. package/dist/components/ui/resizable/resizable.js +3 -3
  377. package/dist/components/ui/resizable/resizable.js.map +1 -1
  378. package/dist/components/ui/select/select.d.ts +3 -3
  379. package/dist/components/ui/select/select.js +1 -1
  380. package/dist/components/ui/select/select.js.map +1 -1
  381. package/dist/components/ui/sheet/sheet.d.ts.map +1 -1
  382. package/dist/components/ui/sheet/sheet.js +4 -3
  383. package/dist/components/ui/sheet/sheet.js.map +1 -1
  384. package/dist/components/ui/skeleton/skeleton.d.ts +1 -1
  385. package/dist/components/ui/skeleton/skeleton.js +1 -1
  386. package/dist/components/ui/skeleton/skeleton.js.map +1 -1
  387. package/dist/components/ui/slider/slider.d.ts +1 -1
  388. package/dist/components/ui/slider/slider.js.map +1 -1
  389. package/dist/components/ui/spinner/spinner.d.ts +1 -1
  390. package/dist/components/ui/spinner/spinner.js +1 -1
  391. package/dist/components/ui/spinner/spinner.js.map +1 -1
  392. package/dist/components/ui/status-chip/status-chip.d.ts +13 -13
  393. package/dist/components/ui/status-chip/status-chip.d.ts.map +1 -1
  394. package/dist/components/ui/status-chip/status-chip.js +11 -11
  395. package/dist/components/ui/status-chip/status-chip.js.map +1 -1
  396. package/dist/components/ui/switch/switch.d.ts.map +1 -1
  397. package/dist/components/ui/switch/switch.js +8 -6
  398. package/dist/components/ui/switch/switch.js.map +1 -1
  399. package/dist/components/ui/tabs/tabs.d.ts +4 -4
  400. package/dist/components/ui/tabs/tabs.js +4 -4
  401. package/dist/components/ui/tabs/tabs.js.map +1 -1
  402. package/dist/components/ui/textarea/textarea.d.ts +1 -1
  403. package/dist/components/ui/textarea/textarea.js +1 -1
  404. package/dist/components/ui/textarea/textarea.js.map +1 -1
  405. package/dist/components/ui/toast/toast.d.ts.map +1 -1
  406. package/dist/components/ui/toast/toast.js +13 -15
  407. package/dist/components/ui/toast/toast.js.map +1 -1
  408. package/dist/components/ui/toggle/toggle.d.ts +1 -1
  409. package/dist/components/ui/toggle/toggle.js +1 -1
  410. package/dist/components/ui/toggle/toggle.js.map +1 -1
  411. package/dist/components/ui/tooltip/deferred-tooltip.d.ts +51 -0
  412. package/dist/components/ui/tooltip/deferred-tooltip.d.ts.map +1 -0
  413. package/dist/components/ui/tooltip/deferred-tooltip.js +103 -0
  414. package/dist/components/ui/tooltip/deferred-tooltip.js.map +1 -0
  415. package/dist/components/ui/tooltip/index.d.ts +1 -0
  416. package/dist/components/ui/tooltip/index.d.ts.map +1 -1
  417. package/dist/components/ui/tooltip/index.js +3 -1
  418. package/dist/components/ui/tooltip/tooltip.d.ts.map +1 -1
  419. package/dist/components/ui/tooltip/tooltip.js +6 -5
  420. package/dist/components/ui/tooltip/tooltip.js.map +1 -1
  421. package/dist/components/ui/trace/trace.d.ts.map +1 -1
  422. package/dist/components/ui/trace/trace.js +17 -17
  423. package/dist/components/ui/trace/trace.js.map +1 -1
  424. package/dist/components/ui/typography/typography.d.ts +3 -3
  425. package/dist/components/ui/typography/typography.js +5 -5
  426. package/dist/components/ui/typography/typography.js.map +1 -1
  427. package/dist/index.d.ts +1 -0
  428. package/dist/index.d.ts.map +1 -1
  429. package/dist/index.js +5 -3
  430. package/dist/lib/accent-presets.d.ts +1 -1
  431. package/dist/lib/accent-presets.js.map +1 -1
  432. package/dist/lib/accent-roles.d.ts +2 -2
  433. package/dist/lib/accent-roles.js +2 -2
  434. package/dist/lib/accent-roles.js.map +1 -1
  435. package/dist/lib/appearance-font-settings.d.ts.map +1 -1
  436. package/dist/lib/appearance-font-settings.js +15 -7
  437. package/dist/lib/appearance-font-settings.js.map +1 -1
  438. package/dist/lib/create-poll.d.ts +39 -0
  439. package/dist/lib/create-poll.d.ts.map +1 -0
  440. package/dist/lib/create-poll.js +116 -0
  441. package/dist/lib/create-poll.js.map +1 -0
  442. package/dist/lib/font-zoom.d.ts +1 -1
  443. package/dist/lib/font-zoom.js +1 -1
  444. package/dist/lib/font-zoom.js.map +1 -1
  445. package/dist/lib/keyed-rows.d.ts +2 -1
  446. package/dist/lib/keyed-rows.d.ts.map +1 -1
  447. package/dist/lib/keyed-rows.js +3 -2
  448. package/dist/lib/keyed-rows.js.map +1 -1
  449. package/dist/lib/overlay.d.ts +6 -6
  450. package/dist/lib/overlay.d.ts.map +1 -1
  451. package/dist/lib/overlay.js +6 -6
  452. package/dist/lib/overlay.js.map +1 -1
  453. package/dist/lib/preference-store.d.ts +2 -2
  454. package/dist/lib/preference-store.js +2 -2
  455. package/dist/lib/preference-store.js.map +1 -1
  456. package/dist/lib/safe-script.d.ts +2 -2
  457. package/dist/lib/safe-script.js +2 -2
  458. package/dist/lib/safe-script.js.map +1 -1
  459. package/dist/lib/scroll-geometry.d.ts +1 -1
  460. package/dist/lib/scroll-geometry.js +1 -1
  461. package/dist/lib/scroll-geometry.js.map +1 -1
  462. package/dist/lib/text.d.ts +1 -1
  463. package/dist/lib/text.js +1 -1
  464. package/dist/lib/text.js.map +1 -1
  465. package/dist/lib/theme-accents.js +3 -3
  466. package/dist/lib/theme-accents.js.map +1 -1
  467. package/dist/lib/theme-css.js.map +1 -1
  468. package/dist/lib/theme-defaults.d.ts +4 -4
  469. package/dist/lib/theme-defaults.js +4 -4
  470. package/dist/lib/theme-defaults.js.map +1 -1
  471. package/dist/lib/theme-engine-light.js.map +1 -1
  472. package/dist/lib/theme-engine.d.ts +2 -2
  473. package/dist/lib/theme-engine.js +2 -2
  474. package/dist/lib/theme-engine.js.map +1 -1
  475. package/dist/lib/theme-projection.d.ts +1 -1
  476. package/dist/lib/theme-projection.js +2 -2
  477. package/dist/lib/theme-projection.js.map +1 -1
  478. package/dist/lib/theme-records.d.ts +2 -2
  479. package/dist/lib/theme-records.js +2 -2
  480. package/dist/lib/theme-records.js.map +1 -1
  481. package/dist/lib/theme-types.d.ts +1 -1
  482. package/dist/lib/theme-types.js.map +1 -1
  483. package/dist/lib/themes.d.ts +13 -13
  484. package/dist/lib/themes.js +13 -13
  485. package/dist/lib/themes.js.map +1 -1
  486. package/dist/lib/tokens.d.ts +2 -2
  487. package/dist/lib/tokens.js +1 -1
  488. package/dist/lib/tokens.js.map +1 -1
  489. package/dist/lib/tooltip-focus-gate.d.ts +2 -2
  490. package/dist/lib/tooltip-focus-gate.js +2 -2
  491. package/dist/lib/tooltip-focus-gate.js.map +1 -1
  492. package/dist/lib/utils.d.ts +1 -1
  493. package/dist/lib/utils.js +1 -1
  494. package/dist/lib/utils.js.map +1 -1
  495. package/dist/lib/variants.d.ts +4 -4
  496. package/dist/lib/variants.js +1 -1
  497. package/dist/lib/variants.js.map +1 -1
  498. package/dist/lib/version-notes.d.ts +4 -4
  499. package/dist/lib/version-notes.js +4 -4
  500. package/dist/lib/version-notes.js.map +1 -1
  501. package/dist/lint.js.map +1 -1
  502. package/dist/r/account-menu.json +1 -0
  503. package/dist/r/lib.json +5 -0
  504. package/dist/r/model-selector.json +1 -0
  505. package/dist/r/registry.json +14 -0
  506. package/dist/r/side-rail.json +1 -0
  507. package/dist/r/src/components/composites/account-menu/account-menu.tsx +22 -2
  508. package/dist/r/src/components/composites/action-button/action-button.tsx +124 -78
  509. package/dist/r/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  510. package/dist/r/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  511. package/dist/r/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  512. package/dist/r/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  513. package/dist/r/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  514. package/dist/r/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  515. package/dist/r/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  516. package/dist/r/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  517. package/dist/r/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  518. package/dist/r/src/components/composites/chat/chat.tsx +15 -9
  519. package/dist/r/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  520. package/dist/r/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  521. package/dist/r/src/components/composites/confirmation/confirmation.tsx +8 -4
  522. package/dist/r/src/components/composites/context/context.tsx +2 -2
  523. package/dist/r/src/components/composites/file-tree/build-file-tree.ts +1 -1
  524. package/dist/r/src/components/composites/file-tree/file-tree.tsx +16 -2
  525. package/dist/r/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  526. package/dist/r/src/components/composites/inline-citation/citation.ts +1 -1
  527. package/dist/r/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  528. package/dist/r/src/components/composites/list-row/list-row-control.tsx +31 -22
  529. package/dist/r/src/components/composites/list-row/list-row.tsx +69 -73
  530. package/dist/r/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  531. package/dist/r/src/components/composites/model-selector/model-selector.tsx +190 -14
  532. package/dist/r/src/components/composites/model-selector/models.ts +2 -2
  533. package/dist/r/src/components/composites/plan/plan.tsx +19 -11
  534. package/dist/r/src/components/composites/queue/queue.tsx +5 -3
  535. package/dist/r/src/components/composites/reasoning/reasoning.tsx +4 -4
  536. package/dist/r/src/components/composites/settings/settings-navigation.tsx +57 -17
  537. package/dist/r/src/components/composites/settings/settings.tsx +14 -6
  538. package/dist/r/src/components/composites/sources/source.ts +1 -1
  539. package/dist/r/src/components/composites/sources/sources.tsx +2 -2
  540. package/dist/r/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  541. package/dist/r/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  542. package/dist/r/src/components/composites/stat/stat.tsx +20 -16
  543. package/dist/r/src/components/composites/subagent/subagent.tsx +6 -4
  544. package/dist/r/src/components/composites/task/task.tsx +1 -1
  545. package/dist/r/src/components/composites/terminal/ansi.ts +3 -3
  546. package/dist/r/src/components/composites/terminal/terminal-model.ts +3 -3
  547. package/dist/r/src/components/composites/terminal/terminal.tsx +24 -12
  548. package/dist/r/src/components/composites/test-results/test-results-model.ts +4 -4
  549. package/dist/r/src/components/composites/test-results/test-results.tsx +1 -1
  550. package/dist/r/src/components/composites/tool/tool.tsx +4 -4
  551. package/dist/r/src/components/composites/tree/tree.tsx +31 -15
  552. package/dist/r/src/components/composites/update-dialog/channel-control.tsx +17 -8
  553. package/dist/r/src/components/composites/update-dialog/index.ts +1 -0
  554. package/dist/r/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  555. package/dist/r/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  556. package/dist/r/src/components/conversation/busy-send-button.tsx +6 -2
  557. package/dist/r/src/components/conversation/composer-menu.tsx +3 -3
  558. package/dist/r/src/components/conversation/conversation-avatar.tsx +1 -1
  559. package/dist/r/src/components/conversation/conversation-pane.tsx +8 -5
  560. package/dist/r/src/components/conversation/conversation-surface.tsx +2 -2
  561. package/dist/r/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  562. package/dist/r/src/components/conversation/message-composer.tsx +4 -6
  563. package/dist/r/src/components/conversation/message-row.tsx +34 -26
  564. package/dist/r/src/components/conversation/scroll-follow-core.ts +8 -8
  565. package/dist/r/src/components/conversation/scroll-follow.ts +24 -8
  566. package/dist/r/src/components/conversation/thread-panel.tsx +7 -3
  567. package/dist/r/src/components/conversation/transcript-composition.tsx +4 -2
  568. package/dist/r/src/components/layout/app-shell/app-shell.tsx +1 -1
  569. package/dist/r/src/components/layout/app-shell/skip-link.tsx +3 -2
  570. package/dist/r/src/components/layout/page/page.tsx +15 -11
  571. package/dist/r/src/components/layout/panel/panel.tsx +1 -1
  572. package/dist/r/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  573. package/dist/r/src/components/layout/side-rail/side-rail-context.ts +1 -1
  574. package/dist/r/src/components/layout/side-rail/side-rail.tsx +41 -28
  575. package/dist/r/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  576. package/dist/r/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  577. package/dist/r/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  578. package/dist/r/src/components/layout/split-layout/split-layout.tsx +6 -2
  579. package/dist/r/src/components/layout/status-bar/status-bar.tsx +1 -1
  580. package/dist/r/src/components/layout/top-bar/top-bar.tsx +4 -6
  581. package/dist/r/src/components/motion/presence.tsx +2 -2
  582. package/dist/r/src/components/theme/appearance-panel.tsx +5 -5
  583. package/dist/r/src/components/theme/lazy.ts +1 -1
  584. package/dist/r/src/components/theme/theme-catalogue-source.ts +2 -2
  585. package/dist/r/src/components/theme/theme-context.ts +3 -3
  586. package/dist/r/src/components/theme/theme-document.ts +22 -11
  587. package/dist/r/src/components/theme/theme-picker.tsx +5 -5
  588. package/dist/r/src/components/theme/theme-provider-value.ts +15 -3
  589. package/dist/r/src/components/theme/theme-script.ts +20 -0
  590. package/dist/r/src/components/theme/theme-state.ts +7 -7
  591. package/dist/r/src/components/theme/theme-toggle.tsx +1 -1
  592. package/dist/r/src/components/ui/alert/alert.tsx +4 -3
  593. package/dist/r/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  594. package/dist/r/src/components/ui/badge/badge.tsx +2 -2
  595. package/dist/r/src/components/ui/board/board.tsx +17 -5
  596. package/dist/r/src/components/ui/bubble/bubble.tsx +6 -4
  597. package/dist/r/src/components/ui/button/button.tsx +2 -2
  598. package/dist/r/src/components/ui/button-group/button-group.tsx +1 -1
  599. package/dist/r/src/components/ui/calendar/calendar.tsx +2 -2
  600. package/dist/r/src/components/ui/callout/callout.tsx +4 -4
  601. package/dist/r/src/components/ui/card/card.tsx +2 -2
  602. package/dist/r/src/components/ui/carousel/carousel.tsx +6 -6
  603. package/dist/r/src/components/ui/chart/chart-options.ts +9 -9
  604. package/dist/r/src/components/ui/chart/chart.tsx +14 -1
  605. package/dist/r/src/components/ui/checkbox/checkbox.tsx +9 -6
  606. package/dist/r/src/components/ui/code-block/code-block.tsx +14 -7
  607. package/dist/r/src/components/ui/command/command.tsx +7 -7
  608. package/dist/r/src/components/ui/context-menu/context-menu.tsx +1 -1
  609. package/dist/r/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  610. package/dist/r/src/components/ui/dialog/dialog-layer.tsx +25 -1
  611. package/dist/r/src/components/ui/dialog/dialog.tsx +4 -3
  612. package/dist/r/src/components/ui/diff-block/diff-block.tsx +6 -6
  613. package/dist/r/src/components/ui/drawer/drawer.tsx +3 -3
  614. package/dist/r/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  615. package/dist/r/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  616. package/dist/r/src/components/ui/empty/empty-state.tsx +23 -18
  617. package/dist/r/src/components/ui/empty/empty.tsx +1 -1
  618. package/dist/r/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  619. package/dist/r/src/components/ui/field/field.tsx +15 -7
  620. package/dist/r/src/components/ui/field/number-field.tsx +1 -1
  621. package/dist/r/src/components/ui/hover-card/hover-card.tsx +1 -1
  622. package/dist/r/src/components/ui/input-group/input-group.tsx +1 -1
  623. package/dist/r/src/components/ui/input-otp/input-otp.tsx +1 -1
  624. package/dist/r/src/components/ui/item/item.tsx +24 -18
  625. package/dist/r/src/components/ui/kbd/kbd.tsx +55 -14
  626. package/dist/r/src/components/ui/kbd/platform-modifier.ts +3 -3
  627. package/dist/r/src/components/ui/label/label.tsx +1 -1
  628. package/dist/r/src/components/ui/marker/marker.tsx +9 -5
  629. package/dist/r/src/components/ui/menubar/menubar.tsx +2 -2
  630. package/dist/r/src/components/ui/message/message.tsx +14 -13
  631. package/dist/r/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  632. package/dist/r/src/components/ui/native-select/native-select.tsx +1 -1
  633. package/dist/r/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  634. package/dist/r/src/components/ui/pagination/pagination.tsx +1 -1
  635. package/dist/r/src/components/ui/popover/popover.tsx +4 -2
  636. package/dist/r/src/components/ui/progress/progress.tsx +5 -3
  637. package/dist/r/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  638. package/dist/r/src/components/ui/radio-group/radio-group.tsx +9 -6
  639. package/dist/r/src/components/ui/resizable/resizable.tsx +5 -5
  640. package/dist/r/src/components/ui/select/select.tsx +4 -4
  641. package/dist/r/src/components/ui/sheet/sheet.tsx +4 -3
  642. package/dist/r/src/components/ui/skeleton/skeleton.tsx +1 -1
  643. package/dist/r/src/components/ui/slider/slider.tsx +1 -1
  644. package/dist/r/src/components/ui/spinner/spinner.tsx +1 -1
  645. package/dist/r/src/components/ui/status-chip/status-chip.tsx +13 -13
  646. package/dist/r/src/components/ui/switch/switch.tsx +9 -6
  647. package/dist/r/src/components/ui/tabs/tabs.tsx +4 -4
  648. package/dist/r/src/components/ui/textarea/textarea.tsx +1 -1
  649. package/dist/r/src/components/ui/toast/toast.tsx +6 -4
  650. package/dist/r/src/components/ui/toggle/toggle.tsx +1 -1
  651. package/dist/r/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  652. package/dist/r/src/components/ui/tooltip/index.ts +1 -0
  653. package/dist/r/src/components/ui/tooltip/tooltip.tsx +6 -4
  654. package/dist/r/src/components/ui/trace/trace.tsx +13 -9
  655. package/dist/r/src/components/ui/typography/typography.tsx +5 -5
  656. package/dist/r/src/lib/accent-presets.ts +1 -1
  657. package/dist/r/src/lib/accent-roles.ts +2 -2
  658. package/dist/r/src/lib/appearance-font-settings.ts +18 -7
  659. package/dist/r/src/lib/create-poll.ts +150 -0
  660. package/dist/r/src/lib/font-zoom.ts +3 -3
  661. package/dist/r/src/lib/keyed-rows.ts +3 -2
  662. package/dist/r/src/lib/overlay.ts +6 -6
  663. package/dist/r/src/lib/preference-store.ts +2 -2
  664. package/dist/r/src/lib/safe-script.ts +2 -2
  665. package/dist/r/src/lib/scroll-geometry.ts +1 -1
  666. package/dist/r/src/lib/text.ts +1 -1
  667. package/dist/r/src/lib/theme-accents.ts +3 -3
  668. package/dist/r/src/lib/theme-css.ts +2 -2
  669. package/dist/r/src/lib/theme-defaults.ts +4 -4
  670. package/dist/r/src/lib/theme-engine-light.ts +2 -2
  671. package/dist/r/src/lib/theme-engine.ts +2 -2
  672. package/dist/r/src/lib/theme-projection.ts +2 -2
  673. package/dist/r/src/lib/theme-records.ts +2 -2
  674. package/dist/r/src/lib/theme-types.ts +1 -1
  675. package/dist/r/src/lib/themes.ts +14 -14
  676. package/dist/r/src/lib/tokens.ts +2 -2
  677. package/dist/r/src/lib/tooltip-focus-gate.ts +11 -11
  678. package/dist/r/src/lib/utils.ts +1 -1
  679. package/dist/r/src/lib/variants.ts +4 -4
  680. package/dist/r/src/lib/version-notes.ts +4 -4
  681. package/dist/r/src/styles/base.css +12 -43
  682. package/dist/r/src/styles/fonts.css +1 -1
  683. package/dist/r/src/styles/theme.css +35 -35
  684. package/dist/r/tooltip.json +5 -0
  685. package/dist/r/top-bar.json +1 -0
  686. package/package.json +2 -1
  687. package/registry.json +14 -0
  688. package/src/components/composites/account-menu/account-menu.tsx +22 -2
  689. package/src/components/composites/action-button/action-button.tsx +124 -78
  690. package/src/components/composites/appearance-editor/accent-swatch-groups.tsx +3 -3
  691. package/src/components/composites/appearance-editor/appearance-choices.tsx +3 -3
  692. package/src/components/composites/appearance-editor/appearance-editor.tsx +15 -9
  693. package/src/components/composites/appearance-editor/appearance-rows.tsx +3 -1
  694. package/src/components/composites/appearance-editor/appearance-types.ts +7 -7
  695. package/src/components/composites/appearance-editor/theme-preview.tsx +1 -1
  696. package/src/components/composites/catalog-browser/catalog-browser.tsx +6 -2
  697. package/src/components/composites/catalog-browser/catalog-detail.tsx +15 -6
  698. package/src/components/composites/chain-of-thought/chain-of-thought.tsx +4 -4
  699. package/src/components/composites/chat/chat.tsx +15 -9
  700. package/src/components/composites/checkpoint/checkpoint-model.ts +3 -3
  701. package/src/components/composites/checkpoint/checkpoint.tsx +2 -2
  702. package/src/components/composites/confirmation/confirmation.tsx +8 -4
  703. package/src/components/composites/context/context.tsx +2 -2
  704. package/src/components/composites/file-tree/build-file-tree.ts +1 -1
  705. package/src/components/composites/file-tree/file-tree.tsx +16 -2
  706. package/src/components/composites/icon-picker/icon-picker.tsx +1 -1
  707. package/src/components/composites/inline-citation/citation.ts +1 -1
  708. package/src/components/composites/inline-citation/inline-citation.tsx +2 -2
  709. package/src/components/composites/list-row/list-row-control.tsx +31 -22
  710. package/src/components/composites/list-row/list-row.tsx +69 -73
  711. package/src/components/composites/message-scroller/message-scroller.tsx +1 -1
  712. package/src/components/composites/model-selector/model-selector.tsx +190 -14
  713. package/src/components/composites/model-selector/models.ts +2 -2
  714. package/src/components/composites/plan/plan.tsx +19 -11
  715. package/src/components/composites/queue/queue.tsx +5 -3
  716. package/src/components/composites/reasoning/reasoning.tsx +4 -4
  717. package/src/components/composites/settings/settings-navigation.tsx +57 -17
  718. package/src/components/composites/settings/settings.tsx +14 -6
  719. package/src/components/composites/sources/source.ts +1 -1
  720. package/src/components/composites/sources/sources.tsx +2 -2
  721. package/src/components/composites/stack-trace/parse-stack-trace.ts +7 -7
  722. package/src/components/composites/stack-trace/stack-trace.tsx +3 -3
  723. package/src/components/composites/stat/stat.tsx +20 -16
  724. package/src/components/composites/subagent/subagent.tsx +6 -4
  725. package/src/components/composites/task/task.tsx +1 -1
  726. package/src/components/composites/terminal/ansi.ts +3 -3
  727. package/src/components/composites/terminal/terminal-model.ts +3 -3
  728. package/src/components/composites/terminal/terminal.tsx +24 -12
  729. package/src/components/composites/test-results/test-results-model.ts +4 -4
  730. package/src/components/composites/test-results/test-results.tsx +1 -1
  731. package/src/components/composites/tool/tool.tsx +4 -4
  732. package/src/components/composites/tree/tree.tsx +31 -15
  733. package/src/components/composites/update-dialog/channel-control.tsx +17 -8
  734. package/src/components/composites/update-dialog/index.ts +1 -0
  735. package/src/components/composites/update-dialog/update-dialog.tsx +7 -7
  736. package/src/components/composites/workspace-mark/workspace-mark.tsx +15 -12
  737. package/src/components/conversation/busy-send-button.tsx +6 -2
  738. package/src/components/conversation/composer-menu.tsx +3 -3
  739. package/src/components/conversation/conversation-avatar.tsx +1 -1
  740. package/src/components/conversation/conversation-pane.tsx +8 -5
  741. package/src/components/conversation/conversation-surface.tsx +2 -2
  742. package/src/components/conversation/internal/chat-composer-shell.tsx +18 -12
  743. package/src/components/conversation/message-composer.tsx +4 -6
  744. package/src/components/conversation/message-row.tsx +34 -26
  745. package/src/components/conversation/scroll-follow-core.ts +8 -8
  746. package/src/components/conversation/scroll-follow.ts +24 -8
  747. package/src/components/conversation/thread-panel.tsx +7 -3
  748. package/src/components/conversation/transcript-composition.tsx +4 -2
  749. package/src/components/layout/app-shell/app-shell.tsx +1 -1
  750. package/src/components/layout/app-shell/skip-link.tsx +3 -2
  751. package/src/components/layout/page/page.tsx +15 -11
  752. package/src/components/layout/panel/panel.tsx +1 -1
  753. package/src/components/layout/pixel-resize-handle/pixel-resize-handle.tsx +21 -1
  754. package/src/components/layout/side-rail/side-rail-context.ts +1 -1
  755. package/src/components/layout/side-rail/side-rail.tsx +41 -28
  756. package/src/components/layout/sidebar-nav/sidebar-nav.tsx +22 -16
  757. package/src/components/layout/split-layout/resize-controller-core-retry.tsx +25 -7
  758. package/src/components/layout/split-layout/resize-controller-core.tsx +25 -7
  759. package/src/components/layout/split-layout/split-layout.tsx +6 -2
  760. package/src/components/layout/status-bar/status-bar.tsx +1 -1
  761. package/src/components/layout/top-bar/top-bar.tsx +4 -6
  762. package/src/components/motion/presence.tsx +2 -2
  763. package/src/components/theme/appearance-panel.tsx +5 -5
  764. package/src/components/theme/lazy.ts +1 -1
  765. package/src/components/theme/theme-catalogue-source.ts +2 -2
  766. package/src/components/theme/theme-context.ts +3 -3
  767. package/src/components/theme/theme-document.ts +22 -11
  768. package/src/components/theme/theme-picker.tsx +5 -5
  769. package/src/components/theme/theme-provider-value.ts +15 -3
  770. package/src/components/theme/theme-script.ts +20 -0
  771. package/src/components/theme/theme-state.ts +7 -7
  772. package/src/components/theme/theme-toggle.tsx +1 -1
  773. package/src/components/ui/alert/alert.tsx +4 -3
  774. package/src/components/ui/alert-dialog/alert-dialog.tsx +4 -4
  775. package/src/components/ui/badge/badge.tsx +2 -2
  776. package/src/components/ui/board/board.tsx +17 -5
  777. package/src/components/ui/bubble/bubble.tsx +6 -4
  778. package/src/components/ui/button/button.tsx +2 -2
  779. package/src/components/ui/button-group/button-group.tsx +1 -1
  780. package/src/components/ui/calendar/calendar.tsx +2 -2
  781. package/src/components/ui/callout/callout.tsx +4 -4
  782. package/src/components/ui/card/card.tsx +2 -2
  783. package/src/components/ui/carousel/carousel.tsx +6 -6
  784. package/src/components/ui/chart/chart-options.ts +9 -9
  785. package/src/components/ui/chart/chart.tsx +14 -1
  786. package/src/components/ui/checkbox/checkbox.tsx +9 -6
  787. package/src/components/ui/code-block/code-block.tsx +14 -7
  788. package/src/components/ui/command/command.tsx +7 -7
  789. package/src/components/ui/context-menu/context-menu.tsx +1 -1
  790. package/src/components/ui/detail-panel/detail-panel.tsx +5 -3
  791. package/src/components/ui/dialog/dialog-layer.tsx +25 -1
  792. package/src/components/ui/dialog/dialog.tsx +4 -3
  793. package/src/components/ui/diff-block/diff-block.tsx +6 -6
  794. package/src/components/ui/drawer/drawer.tsx +3 -3
  795. package/src/components/ui/dropdown-menu/dropdown-menu.tsx +6 -6
  796. package/src/components/ui/dropdown-menu/menu-parts.tsx +5 -5
  797. package/src/components/ui/empty/empty-state.tsx +23 -18
  798. package/src/components/ui/empty/empty.tsx +1 -1
  799. package/src/components/ui/entity-icon/entity-icon.tsx +5 -1
  800. package/src/components/ui/field/field.tsx +15 -7
  801. package/src/components/ui/field/number-field.tsx +1 -1
  802. package/src/components/ui/hover-card/hover-card.tsx +1 -1
  803. package/src/components/ui/input-group/input-group.tsx +1 -1
  804. package/src/components/ui/input-otp/input-otp.tsx +1 -1
  805. package/src/components/ui/item/item.tsx +24 -18
  806. package/src/components/ui/kbd/kbd.tsx +55 -14
  807. package/src/components/ui/kbd/platform-modifier.ts +3 -3
  808. package/src/components/ui/label/label.tsx +1 -1
  809. package/src/components/ui/marker/marker.tsx +9 -5
  810. package/src/components/ui/menubar/menubar.tsx +2 -2
  811. package/src/components/ui/message/message.tsx +14 -13
  812. package/src/components/ui/modal-dialog/modal-dialog.tsx +9 -5
  813. package/src/components/ui/native-select/native-select.tsx +1 -1
  814. package/src/components/ui/navigation-menu/navigation-menu.tsx +5 -4
  815. package/src/components/ui/pagination/pagination.tsx +1 -1
  816. package/src/components/ui/popover/popover.tsx +4 -2
  817. package/src/components/ui/progress/progress.tsx +5 -3
  818. package/src/components/ui/questionnaire/questionnaire.tsx +10 -5
  819. package/src/components/ui/radio-group/radio-group.tsx +9 -6
  820. package/src/components/ui/resizable/resizable.tsx +5 -5
  821. package/src/components/ui/select/select.tsx +4 -4
  822. package/src/components/ui/sheet/sheet.tsx +4 -3
  823. package/src/components/ui/skeleton/skeleton.tsx +1 -1
  824. package/src/components/ui/slider/slider.tsx +1 -1
  825. package/src/components/ui/spinner/spinner.tsx +1 -1
  826. package/src/components/ui/status-chip/status-chip.tsx +13 -13
  827. package/src/components/ui/switch/switch.tsx +9 -6
  828. package/src/components/ui/tabs/tabs.tsx +4 -4
  829. package/src/components/ui/textarea/textarea.tsx +1 -1
  830. package/src/components/ui/toast/toast.tsx +6 -4
  831. package/src/components/ui/toggle/toggle.tsx +1 -1
  832. package/src/components/ui/tooltip/deferred-tooltip.tsx +131 -0
  833. package/src/components/ui/tooltip/index.ts +1 -0
  834. package/src/components/ui/tooltip/tooltip.tsx +6 -4
  835. package/src/components/ui/trace/trace.tsx +13 -9
  836. package/src/components/ui/typography/typography.tsx +5 -5
  837. package/src/index.ts +1 -0
  838. package/src/lib/accent-presets.ts +1 -1
  839. package/src/lib/accent-roles.ts +2 -2
  840. package/src/lib/appearance-font-settings.ts +18 -7
  841. package/src/lib/create-poll.ts +150 -0
  842. package/src/lib/font-zoom.ts +3 -3
  843. package/src/lib/keyed-rows.ts +3 -2
  844. package/src/lib/overlay.ts +6 -6
  845. package/src/lib/preference-store.ts +2 -2
  846. package/src/lib/safe-script.ts +2 -2
  847. package/src/lib/scroll-geometry.ts +1 -1
  848. package/src/lib/text.ts +1 -1
  849. package/src/lib/theme-accents.ts +3 -3
  850. package/src/lib/theme-css.ts +2 -2
  851. package/src/lib/theme-defaults.ts +4 -4
  852. package/src/lib/theme-engine-light.ts +2 -2
  853. package/src/lib/theme-engine.ts +2 -2
  854. package/src/lib/theme-projection.ts +2 -2
  855. package/src/lib/theme-records.ts +2 -2
  856. package/src/lib/theme-types.ts +1 -1
  857. package/src/lib/themes.ts +14 -14
  858. package/src/lib/tokens.ts +2 -2
  859. package/src/lib/tooltip-focus-gate.ts +11 -11
  860. package/src/lib/utils.ts +1 -1
  861. package/src/lib/variants.ts +4 -4
  862. package/src/lib/version-notes.ts +4 -4
  863. package/src/lint/index.ts +1 -1
  864. package/src/styles/base.css +12 -43
  865. package/src/styles/fonts.css +1 -1
  866. package/src/styles/theme.css +35 -35
  867. package/src/styles/themes/aardvark-blue.css +98 -0
  868. package/src/styles/themes/aardvark-ink.css +98 -0
  869. package/src/styles/themes/adea-dark-colorblind.css +98 -0
  870. package/src/styles/themes/adea-dark-high-contrast.css +98 -0
  871. package/src/styles/themes/adea-dark.css +47 -0
  872. package/src/styles/themes/adea-light-colorblind.css +141 -0
  873. package/src/styles/themes/adea-light-high-contrast.css +141 -0
  874. package/src/styles/themes/adea-light.css +47 -0
  875. package/src/styles/themes/ayu-light.css +141 -0
  876. package/src/styles/themes/ayu-mirage.css +98 -0
  877. package/src/styles/themes/ayu.css +98 -0
  878. package/src/styles/themes/catppuccin-frappe.css +98 -0
  879. package/src/styles/themes/catppuccin-latte.css +141 -0
  880. package/src/styles/themes/catppuccin-macchiato.css +98 -0
  881. package/src/styles/themes/catppuccin-mocha.css +98 -0
  882. package/src/styles/themes/dracula.css +98 -0
  883. package/src/styles/themes/everforest-dark.css +98 -0
  884. package/src/styles/themes/everforest-light.css +141 -0
  885. package/src/styles/themes/gruvbox-dark.css +98 -0
  886. package/src/styles/themes/gruvbox-light.css +141 -0
  887. package/src/styles/themes/kanagawa.css +98 -0
  888. package/src/styles/themes/monokai.css +98 -0
  889. package/src/styles/themes/nord-light.css +141 -0
  890. package/src/styles/themes/nord.css +98 -0
  891. package/src/styles/themes/one-dark.css +98 -0
  892. package/src/styles/themes/rosepine-dawn.css +141 -0
  893. package/src/styles/themes/rosepine-moon.css +98 -0
  894. package/src/styles/themes/rosepine.css +98 -0
  895. package/src/styles/themes/solarized-dark.css +98 -0
  896. package/src/styles/themes/solarized-light.css +141 -0
  897. package/src/styles/themes/tokyonight-day.css +141 -0
  898. package/src/styles/themes/tokyonight-night.css +98 -0
  899. package/src/styles/themes/tokyonight-storm.css +98 -0
  900. package/src/styles/themes/vesper.css +98 -0
@@ -4,6 +4,7 @@ import {
4
4
  createContext,
5
5
  createEffect,
6
6
  createMemo,
7
+ createSelector,
7
8
  createUniqueId,
8
9
  For,
9
10
  onCleanup,
@@ -23,6 +24,8 @@ import {
23
24
  type TreeContextValue = {
24
25
  idPrefix: string
25
26
  activeId: () => string | null
27
+ /** O(1) per change: only the rows whose answer flips re-run, not every row. */
28
+ isActive: (id: string) => boolean
26
29
  index: () => TreeNavigationIndex
27
30
  register: (id: string, element: HTMLDivElement) => void
28
31
  unregister: (id: string, element: HTMLDivElement | undefined) => void
@@ -188,8 +191,10 @@ export function Tree(props: TreeProps) {
188
191
  !isInsideTreeRow(active)
189
192
  )
190
193
  }
194
+ // Rows are only observed for a host that reads their sizes (a virtualiser); an
195
+ // observer per tree otherwise measures every row on every mount for nothing.
191
196
  const rowSizeObserver =
192
- typeof ResizeObserver === 'undefined'
197
+ typeof ResizeObserver === 'undefined' || !local.onRowSizeChange
193
198
  ? undefined
194
199
  : new ResizeObserver((entries) => {
195
200
  if (disposed) return
@@ -269,6 +274,7 @@ export function Tree(props: TreeProps) {
269
274
  const context: TreeContextValue = {
270
275
  idPrefix,
271
276
  activeId: effectiveActiveId,
277
+ isActive: createSelector(effectiveActiveId),
272
278
  index,
273
279
  register: (id, element) => {
274
280
  rows.set(id, element)
@@ -319,7 +325,7 @@ export function Tree(props: TreeProps) {
319
325
  expand: (id, expanded) => local.onExpand?.(id, expanded),
320
326
  disclosure: () => local.disclosure ?? 'row',
321
327
  guides: () => local.guides ?? false,
322
- onActiveIdChange: local.onActiveIdChange,
328
+ onActiveIdChange: (id) => local.onActiveIdChange(id),
323
329
  }
324
330
 
325
331
  // A filtered, collapsed-away or removed active ID falls back to the first
@@ -455,7 +461,7 @@ export type TreeRowProps = Omit<
455
461
  * expand and collapse, so the marker adds a pointer path and nothing else.
456
462
  * Pressing it does not move focus or the roving stop to its row; if the toggle
457
463
  * hides the focused row, `Tree` recovers focus as it does for any collapse (see
458
- * the `Tree` comment and docs/tree.md).
464
+ * the `Tree` comment).
459
465
  */
460
466
  export function TreeRow(props: TreeRowProps) {
461
467
  const tree = useTreeContext()
@@ -473,6 +479,12 @@ export function TreeRow(props: TreeRowProps) {
473
479
  let row: HTMLDivElement | undefined
474
480
  let registeredId: string | undefined
475
481
  const id = () => local.item.id
482
+ // Each slot is a JSX getter that builds its subtree per read, so it is read once
483
+ // into a memo. The memo holds the slot as given (not resolved), so the wrapper
484
+ // span renders exactly when it did before: whenever a slot is passed, even one
485
+ // whose content is currently empty, which keeps the row's spacing stable.
486
+ const leading = createMemo(() => local.leading)
487
+ const trailing = createMemo(() => local.trailing)
476
488
 
477
489
  const handleFocusOut = (event: FocusEvent) => tree.noteBlur(event.relatedTarget)
478
490
 
@@ -534,9 +546,9 @@ export function TreeRow(props: TreeRowProps) {
534
546
  aria-selected={local.selected === undefined ? undefined : local.selected ? 'true' : 'false'}
535
547
  aria-posinset={position()?.position}
536
548
  aria-setsize={position()?.setSize}
537
- tabIndex={tree.activeId() === id() ? 0 : -1}
549
+ tabIndex={tree.isActive(id()) ? 0 : -1}
538
550
  data-tree-id={id()}
539
- data-active={tree.activeId() === id() ? '' : undefined}
551
+ data-active={tree.isActive(id()) ? '' : undefined}
540
552
  data-selected={local.selected ? '' : undefined}
541
553
  data-expanded={local.item.expandable ? String(local.item.expanded) : undefined}
542
554
  class={cn(
@@ -591,17 +603,21 @@ export function TreeRow(props: TreeRowProps) {
591
603
  />
592
604
  ) : null}
593
605
  </span>
594
- {local.leading ? (
595
- <span class="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4">
596
- {local.leading}
597
- </span>
598
- ) : null}
606
+ <Show when={leading()}>
607
+ {(slot) => (
608
+ <span class="flex size-4 shrink-0 items-center justify-center [&_svg]:size-4">
609
+ {slot()}
610
+ </span>
611
+ )}
612
+ </Show>
599
613
  <span class="min-w-0 flex-1 truncate">{local.children}</span>
600
- {local.trailing ? (
601
- <span class="ms-auto flex shrink-0 items-center gap-1 text-muted-foreground">
602
- {local.trailing}
603
- </span>
604
- ) : null}
614
+ <Show when={trailing()}>
615
+ {(slot) => (
616
+ <span class="ms-auto flex shrink-0 items-center gap-1 text-muted-foreground">
617
+ {slot()}
618
+ </span>
619
+ )}
620
+ </Show>
605
621
  </div>
606
622
  )
607
623
  }
@@ -4,27 +4,36 @@ import { createEffect, createSignal, onCleanup, Show, type Accessor } from 'soli
4
4
 
5
5
  import type { ChannelControlActions } from './update-dialog'
6
6
 
7
- export type UpdateChannel = 'stable' | 'pre-release' | 'dev'
7
+ export type UpdateChannel = 'stable' | 'pre-release'
8
+
9
+ /**
10
+ * A channel as a host may still have it stored. `dev` was retired: there are no
11
+ * dev releases, and the framework maps a stored `dev` to `pre-release`, so the
12
+ * control shows and saves it as that.
13
+ */
14
+ export type StoredUpdateChannel = UpdateChannel | 'dev'
8
15
 
9
16
  const CHANNEL_OPTIONS: ReadonlyArray<{ value: UpdateChannel; label: string }> = [
10
17
  { value: 'stable', label: 'Stable' },
11
18
  { value: 'pre-release', label: 'Pre-release' },
12
- { value: 'dev', label: 'Dev' },
13
19
  ]
14
20
 
15
21
  const CHANNEL_DESCRIPTIONS: Record<UpdateChannel, string> = {
16
22
  stable: 'Tested releases, after four days in pre-release.',
17
23
  'pre-release': 'Daily builds. Early, with rough edges.',
18
- dev: 'Every build from main. For development machines.',
24
+ }
25
+
26
+ function knownChannel(value: StoredUpdateChannel): UpdateChannel {
27
+ return value === 'stable' ? 'stable' : 'pre-release'
19
28
  }
20
29
 
21
30
  export type UpdateChannelControlProps = {
22
31
  /** The dialog's channel actions; every save flows through `recheck`. */
23
32
  controls: ChannelControlActions
24
33
  /** Read the persisted channel. */
25
- read: () => Promise<UpdateChannel>
34
+ read: () => Promise<StoredUpdateChannel>
26
35
  /** Persist a selection; resolves with the channel that actually stuck. */
27
- persist: (value: UpdateChannel) => Promise<UpdateChannel>
36
+ persist: (value: UpdateChannel) => Promise<StoredUpdateChannel>
28
37
  /** Disable beyond the dialog's own working state, e.g. a host save in flight. */
29
38
  disabled?: Accessor<boolean>
30
39
  /** Per-channel option labels, when the defaults don't fit the app. Values remain unchanged. */
@@ -41,7 +50,7 @@ export type UpdateChannelControlProps = {
41
50
 
42
51
  /**
43
52
  * The updater dialog's release-channel row: one setting, a select trailing.
44
- * Every desktop application that ships channels presents the same three of
53
+ * Every desktop application that ships channels presents the same two of
45
54
  * them with consistent behavior, which is why the row lives here rather than
46
55
  * being redrawn per app. A save always flows through the dialog's `recheck`, so a
47
56
  * channel switch re-asks the feed and the offer never outlives its channel.
@@ -61,7 +70,7 @@ export function UpdateChannelControl(props: UpdateChannelControlProps) {
61
70
  void props
62
71
  .read()
63
72
  .then((value) => {
64
- if (active) setChannel(value)
73
+ if (active) setChannel(knownChannel(value))
65
74
  })
66
75
  .catch(() => {
67
76
  if (active) setError('The current update channel could not be read.')
@@ -87,7 +96,7 @@ export function UpdateChannelControl(props: UpdateChannelControlProps) {
87
96
  try {
88
97
  await props.controls.recheck(async () => {
89
98
  try {
90
- setChannel(await props.persist(next))
99
+ setChannel(knownChannel(await props.persist(next)))
91
100
  persisted = true
92
101
  } catch (caught) {
93
102
  rollBack(caught)
@@ -8,6 +8,7 @@ export {
8
8
  } from './update-dialog'
9
9
  export {
10
10
  UpdateChannelControl,
11
+ type StoredUpdateChannel,
11
12
  type UpdateChannel,
12
13
  type UpdateChannelControlProps,
13
14
  } from './channel-control'
@@ -465,13 +465,13 @@ export function UpdateDialog(props: UpdateDialogProps) {
465
465
  }
466
466
  }
467
467
 
468
- const changelog = createMemo(() =>
469
- plainTextFromMarkdown(state()?.changelog || local.changelog || '')
470
- )
471
- const notes = () => {
472
- const value = state()?.releaseNotes
473
- return value ? plainTextFromMarkdown(value) : ''
474
- }
468
+ // Status is polled (every 400 ms during a download) and each snapshot can
469
+ // carry the whole changelog. The source strings are memos, so a poll with the
470
+ // same text does not convert the markdown again; only new text does.
471
+ const changelogSource = createMemo(() => state()?.changelog || local.changelog || '')
472
+ const changelog = createMemo(() => plainTextFromMarkdown(changelogSource()))
473
+ const notesSource = createMemo(() => state()?.releaseNotes || '')
474
+ const notes = createMemo(() => (notesSource() ? plainTextFromMarkdown(notesSource()) : ''))
475
475
  const working = () => busy() || cancelPending() || isBusy(state())
476
476
  const channelControlDisabled = () => !desktop() || working()
477
477
  const recheckChannel = (beforeCheck?: () => Promise<void>) => check(beforeCheck, true)
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from 'solid-js'
2
- import { Show, createUniqueId, splitProps } from 'solid-js'
2
+ import { children as resolveChildren, Show, createUniqueId, splitProps } from 'solid-js'
3
3
  import { cn } from '../../../lib/utils'
4
4
  import { Tooltip, TooltipContent, TooltipTrigger } from '../../ui/tooltip'
5
5
 
@@ -30,12 +30,13 @@ export function WorkspaceMark(props: WorkspaceMarkProps) {
30
30
  // A count is visible label text, so the accessible name must include it and the monogram.
31
31
  const labelId = createUniqueId()
32
32
 
33
+ const badge = resolveChildren(() => local.badge)
33
34
  const mark = (
34
35
  <button
35
36
  type="button"
36
- aria-label={local.badge ? undefined : local.name}
37
+ aria-label={badge() ? undefined : local.name}
37
38
  aria-labelledby={
38
- local.badge && !props['aria-label']
39
+ badge() && !props['aria-label']
39
40
  ? `${labelId}-name ${labelId}-mark ${labelId}-badge`
40
41
  : undefined
41
42
  }
@@ -64,21 +65,23 @@ export function WorkspaceMark(props: WorkspaceMarkProps) {
64
65
  <span data-slot="workspace-mark-initial">{local.name.charAt(0).toUpperCase()}</span>
65
66
  }
66
67
  >
67
- {local.children}
68
+ {(childrenSlot) => <>{childrenSlot()}</>}
68
69
  </Show>
69
70
  </span>{' '}
70
71
  {/* The badge is centred on the corner rather than tucked inside it. Inset
71
72
  by an edge offset, a count badge is wider than the space between the
72
73
  corner and the monogram, so it sat on the letter; centred on the corner,
73
74
  a dot, a one-digit and a two-digit count all clear the letter's box. */}
74
- <Show when={local.badge}>
75
- <span
76
- id={`${labelId}-badge`}
77
- data-slot="workspace-mark-badge"
78
- class="absolute end-0 top-0 flex translate-x-1/2 -translate-y-1/2 items-center justify-center rtl:-translate-x-1/2"
79
- >
80
- {local.badge}
81
- </span>
75
+ <Show when={badge()}>
76
+ {(badgeSlot) => (
77
+ <span
78
+ id={`${labelId}-badge`}
79
+ data-slot="workspace-mark-badge"
80
+ class="absolute end-0 top-0 flex translate-x-1/2 -translate-y-1/2 items-center justify-center rtl:-translate-x-1/2"
81
+ >
82
+ {badgeSlot()}
83
+ </span>
84
+ )}
82
85
  </Show>
83
86
  </button>
84
87
  )
@@ -117,8 +117,12 @@ export function BusySendButton(props: BusySendButtonProps) {
117
117
  </For>
118
118
  </DropdownMenuRadioGroup>
119
119
  <Show when={props.alternateActionHint}>
120
- <DropdownMenuSeparator />
121
- <p class="text-muted-foreground px-2 py-1 text-xs">{props.alternateActionHint}</p>
120
+ {(alternateActionHintSlot) => (
121
+ <>
122
+ <DropdownMenuSeparator />
123
+ <p class="text-muted-foreground px-2 py-1 text-xs">{alternateActionHintSlot()}</p>
124
+ </>
125
+ )}
122
126
  </Show>
123
127
  </DropdownMenuContent>
124
128
  </DropdownMenu>
@@ -14,12 +14,12 @@ export type ComposerMenuProps = ComponentProps<'div'> & {
14
14
  *
15
15
  * The panel a composer raises above the field: mention suggestions while the
16
16
  * reader types a name, the picker of what can be attached, follow-up prompts.
17
- * It is deliberately *not* a `Menu`: there is no trigger and no focus trap —
17
+ * It is deliberately *not* a `Menu`: there is no trigger and no focus trap,
18
18
  * the reader keeps typing while it is open, and it opens and closes on the
19
19
  * draft's own grammar rather than on a button press.
20
20
  *
21
21
  * Rows are `ComposerMenuItem`s; anything else a caller renders (a checkbox
22
- * list, a heading) sits inside the same panel. Placement stays with the host —
22
+ * list, a heading) sits inside the same panel. Placement stays with the host,
23
23
  * a suggestion menu renders in the composer's `menu` slot, a picker anchors to
24
24
  * its own control.
25
25
  */
@@ -48,7 +48,7 @@ export type ComposerMenuItemProps = ComponentProps<typeof Button>
48
48
  /**
49
49
  * ComposerMenuItem.
50
50
  *
51
- * One row of a `ComposerMenu`. A ghost button stretched across the panel —
51
+ * One row of a `ComposerMenu`. A ghost button stretched across the panel,
52
52
  * the same row every menu in the library draws, so a suggestion never reads as
53
53
  * a stray button floating over the draft.
54
54
  */
@@ -53,7 +53,7 @@ export function ConversationAvatar(props: ConversationAvatarProps) {
53
53
  </span>
54
54
  }
55
55
  >
56
- {local.children}
56
+ {(childrenSlot) => <>{childrenSlot()}</>}
57
57
  </Show>
58
58
  </span>
59
59
  )
@@ -1,5 +1,5 @@
1
1
  import type { ComponentProps, JSX } from 'solid-js'
2
- import { Show, splitProps } from 'solid-js'
2
+ import { children as resolveChildren, Show, splitProps } from 'solid-js'
3
3
  import { cn } from '../../lib/utils'
4
4
 
5
5
  export type ConversationPaneProps = ComponentProps<'section'> & {
@@ -50,7 +50,10 @@ export function ConversationPane(props: ConversationPaneProps) {
50
50
  'gutter',
51
51
  'children',
52
52
  ])
53
- const threadOpen = () => local.thread !== undefined
53
+ // A JSX prop is a getter that builds its subtree on every read; resolve the
54
+ // thread once so the open check and the column share one panel instance.
55
+ const thread = resolveChildren(() => local.thread)
56
+ const threadOpen = () => thread() != null
54
57
 
55
58
  return (
56
59
  <section
@@ -96,8 +99,8 @@ export function ConversationPane(props: ConversationPaneProps) {
96
99
  )}
97
100
  </Show>
98
101
 
99
- <Show when={local.thread}>
100
- {(thread) => (
102
+ <Show when={thread()}>
103
+ {(threadSlot) => (
101
104
  <div
102
105
  class={cn(
103
106
  'min-h-0 min-w-0',
@@ -105,7 +108,7 @@ export function ConversationPane(props: ConversationPaneProps) {
105
108
  'max-md:absolute max-md:inset-0 max-md:z-(--z-docked) max-md:*:border-s-0 md:col-start-2 md:row-span-3 md:row-start-1'
106
109
  )}
107
110
  >
108
- {thread()}
111
+ {threadSlot()}
109
112
  </div>
110
113
  )}
111
114
  </Show>
@@ -121,9 +121,9 @@ export function ConversationSurface(props: ConversationSurfaceProps) {
121
121
  }}
122
122
  data-slot="conversation-content"
123
123
  >
124
- <Show when={local.header}>{local.header}</Show>
124
+ <Show when={local.header}>{(headerSlot) => <>{headerSlot()}</>}</Show>
125
125
  <Show when={local.children} fallback={<div class="p-4">{local.empty}</div>}>
126
- {local.children}
126
+ {(childrenSlot) => <>{childrenSlot()}</>}
127
127
  </Show>
128
128
  </div>
129
129
  </div>
@@ -206,26 +206,28 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
206
206
  >
207
207
  <Show when={!props.approvalFocus}>
208
208
  <Show when={props.knowledge}>
209
- <div data-slot="composer-knowledge">{props.knowledge}</div>
209
+ {(knowledgeSlot) => <div data-slot="composer-knowledge">{knowledgeSlot()}</div>}
210
210
  </Show>
211
211
  <Show when={props.followUps}>
212
- <div data-slot="composer-follow-ups">{props.followUps}</div>
212
+ {(followUpsSlot) => <div data-slot="composer-follow-ups">{followUpsSlot()}</div>}
213
213
  </Show>
214
214
  </Show>
215
215
  <Show when={props.band}>
216
- <div data-slot="composer-band">{props.band}</div>
216
+ {(bandSlot) => <div data-slot="composer-band">{bandSlot()}</div>}
217
217
  </Show>
218
218
  <div aria-hidden="true" class="h-1.5 shrink-0" />
219
219
  <Show when={props.approval}>
220
- <div data-slot="composer-approval">{props.approval}</div>
220
+ {(approvalSlot) => <div data-slot="composer-approval">{approvalSlot()}</div>}
221
221
  </Show>
222
222
  <Show when={props.notices}>
223
- <div data-slot="composer-notices">{props.notices}</div>
223
+ {(noticesSlot) => <div data-slot="composer-notices">{noticesSlot()}</div>}
224
224
  </Show>
225
225
  <Show when={props.blockedReason}>
226
- <p role="status" class="text-muted-foreground mb-1 text-xs">
227
- {props.blockedReason}
228
- </p>
226
+ {(blockedReasonSlot) => (
227
+ <p role="status" class="text-muted-foreground mb-1 text-xs">
228
+ {blockedReasonSlot()}
229
+ </p>
230
+ )}
229
231
  </Show>
230
232
  <Show when={composer.error()}>
231
233
  {(message) => (
@@ -274,7 +276,9 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
274
276
  }}
275
277
  >
276
278
  <Show when={props.attachments}>
277
- <div data-slot="composer-staged-content">{props.attachments}</div>
279
+ {(attachmentsSlot) => (
280
+ <div data-slot="composer-staged-content">{attachmentsSlot()}</div>
281
+ )}
278
282
  </Show>
279
283
  {props.renderInput({
280
284
  ref: (element) => {
@@ -372,9 +376,11 @@ export function ChatComposerShell<Extra extends object>(props: ChatComposerShell
372
376
  </div>
373
377
  </form>
374
378
  <Show when={props.context}>
375
- <div data-slot="composer-context" class="flex min-w-0 items-center gap-2 pt-1">
376
- {props.context}
377
- </div>
379
+ {(contextSlot) => (
380
+ <div data-slot="composer-context" class="flex min-w-0 items-center gap-2 pt-1">
381
+ {contextSlot()}
382
+ </div>
383
+ )}
378
384
  </Show>
379
385
  </Show>
380
386
  </Show>
@@ -154,9 +154,7 @@ export function MessageComposer(props: MessageComposerProps) {
154
154
  onKeyDown={onFormKeyDown}
155
155
  {...rest}
156
156
  >
157
- <Show when={local.menu}>
158
- <div>{local.menu}</div>
159
- </Show>
157
+ <Show when={local.menu}>{(menuSlot) => <div>{menuSlot()}</div>}</Show>
160
158
 
161
159
  <Show when={local.replyTo}>
162
160
  {(reply) => (
@@ -214,9 +212,9 @@ export function MessageComposer(props: MessageComposerProps) {
214
212
  </Show>
215
213
 
216
214
  <div class="flex items-center gap-1">
217
- <Show when={local.leading}>{local.leading}</Show>
215
+ <Show when={local.leading}>{(leadingSlot) => <>{leadingSlot()}</>}</Show>
218
216
  <div class="ms-auto flex items-center gap-1">
219
- <Show when={local.trailing}>{local.trailing}</Show>
217
+ <Show when={local.trailing}>{(trailingSlot) => <>{trailingSlot()}</>}</Show>
220
218
  <ActionButton
221
219
  type="submit"
222
220
  size="icon-sm"
@@ -257,7 +255,7 @@ export function MessageComposer(props: MessageComposerProps) {
257
255
  >
258
256
  {pendingLabel()}…
259
257
  </Show>
260
- <Show when={local.status}>{local.status}</Show>
258
+ <Show when={local.status}>{(statusSlot) => <>{statusSlot()}</>}</Show>
261
259
  </div>
262
260
  </form>
263
261
  )
@@ -1,10 +1,10 @@
1
1
  import { CheckCheck, MessageSquareReply, Pencil, RotateCcw, Trash2 } from 'lucide-solid'
2
2
  import type { ComponentProps, JSX } from 'solid-js'
3
- import { For, Show, splitProps } from 'solid-js'
3
+ import { createMemo, Index, Show, splitProps } from 'solid-js'
4
4
  import { cn } from '../../lib/utils'
5
5
  import { Button } from '../ui/button'
6
6
  import { CodeBlock, InlineCode } from '../ui/code-block'
7
- import { splitCodeFences } from '../ui/message/parse-message-text'
7
+ import { splitCodeFences, type FenceSegment } from '../ui/message/parse-message-text'
8
8
  import { ConversationAvatar, type ConversationAvatarKind } from './conversation-avatar'
9
9
 
10
10
  /**
@@ -162,19 +162,17 @@ export function MessageRow(props: MessageRowProps) {
162
162
  </div>
163
163
 
164
164
  <Show when={local.attachments}>
165
- <div class="mt-2 flex flex-wrap gap-2">{local.attachments}</div>
165
+ {(attachmentsSlot) => <div class="mt-2 flex flex-wrap gap-2">{attachmentsSlot()}</div>}
166
166
  </Show>
167
167
 
168
- <Show when={local.link}>
169
- <div class="mt-2">{local.link}</div>
170
- </Show>
168
+ <Show when={local.link}>{(linkSlot) => <div class="mt-2">{linkSlot()}</div>}</Show>
171
169
 
172
170
  <div
173
171
  data-slot="message-meta"
174
172
  class="mt-1 flex items-center gap-2 text-2xs text-muted-foreground"
175
173
  >
176
174
  <Show when={local.time}>
177
- <time datetime={local.dateTime}>{local.time}</time>
175
+ {(timeSlot) => <time datetime={local.dateTime}>{timeSlot()}</time>}
178
176
  </Show>
179
177
  <Show when={local.edited}>
180
178
  <span>edited</span>
@@ -210,7 +208,7 @@ export function MessageRow(props: MessageRowProps) {
210
208
  mirrored() && 'justify-end'
211
209
  )}
212
210
  >
213
- <Show when={local.actions}>{local.actions}</Show>
211
+ <Show when={local.actions}>{(actionsSlot) => <>{actionsSlot()}</>}</Show>
214
212
  <Show when={local.onOpenThread && !local.deleted}>
215
213
  <Button
216
214
  variant="ghost"
@@ -316,7 +314,10 @@ export function MessageBody(
316
314
  ) {
317
315
  const [local, rest] = splitProps(props, ['class', 'text', 'streaming'])
318
316
 
319
- const segments = () =>
317
+ // Memoized and rendered by position: a streamed token only grows the last segment,
318
+ // so the earlier code blocks and paragraphs keep their DOM instead of every
319
+ // segment being rebuilt (splitting returns fresh objects each time).
320
+ const segments = createMemo(() =>
320
321
  splitCodeFences(local.text, { streaming: local.streaming })
321
322
  .map((segment) =>
322
323
  // The newlines that separate prose from a fence belong to the fence
@@ -327,24 +328,26 @@ export function MessageBody(
327
328
  : segment
328
329
  )
329
330
  .filter((segment) => segment.kind === 'code' || segment.text !== '')
331
+ )
330
332
 
331
333
  const last = () => segments().at(-1)
332
334
 
333
335
  return (
334
336
  <div data-slot="message-body" class={cn('flex flex-col gap-2', local.class)} {...rest}>
335
- <For each={segments()}>
336
- {(segment) =>
337
- segment.kind === 'code' ? (
337
+ <Index each={segments()}>
338
+ {(segment) => (
339
+ <Show
340
+ when={segment().kind === 'code'}
341
+ fallback={<Prose text={(segment() as ProseSegment).text} />}
342
+ >
338
343
  <CodeBlock
339
- code={segment.code}
340
- language={segment.language}
341
- complete={segment.complete}
344
+ code={(segment() as CodeSegment).code}
345
+ language={(segment() as CodeSegment).language}
346
+ complete={(segment() as CodeSegment).complete}
342
347
  />
343
- ) : (
344
- <Prose text={segment.text} />
345
- )
346
- }
347
- </For>
348
+ </Show>
349
+ )}
350
+ </Index>
348
351
  {/*
349
352
  The caret trails the last segment, and only when that segment is prose: a
350
353
  streaming code block already carries its own generating indicator, and two
@@ -362,21 +365,26 @@ export function MessageBody(
362
365
  * requires a non-empty span, so an unmatched backtick stays a backtick rather
363
366
  * than swallowing the rest of the paragraph.
364
367
  */
368
+ type ProseSegment = Extract<FenceSegment, { kind: 'prose' }>
369
+ type CodeSegment = Extract<FenceSegment, { kind: 'code' }>
370
+
371
+ const INLINE_CODE_SPLIT = /(`[^`\n]+`)/g
372
+
365
373
  function Prose(props: { text: string }) {
366
- const parts = () => props.text.split(/(`[^`\n]+`)/g).filter(Boolean)
374
+ const parts = createMemo(() => props.text.split(INLINE_CODE_SPLIT).filter(Boolean))
367
375
 
368
376
  return (
369
377
  <p class="font-content text-content whitespace-pre-wrap">
370
- <For each={parts()}>
378
+ <Index each={parts()}>
371
379
  {(part) => (
372
380
  <Show
373
- when={part.startsWith('`') && part.endsWith('`') && part.length > 2}
374
- fallback={part}
381
+ when={part().startsWith('`') && part().endsWith('`') && part().length > 2}
382
+ fallback={part()}
375
383
  >
376
- <InlineCode>{part.slice(1, -1)}</InlineCode>
384
+ <InlineCode>{part().slice(1, -1)}</InlineCode>
377
385
  </Show>
378
386
  )}
379
- </For>
387
+ </Index>
380
388
  </p>
381
389
  )
382
390
  }
@@ -82,7 +82,7 @@ export function isViewportGrowthClamp(args: {
82
82
  * Distance (px) from the true bottom within which a user scroll RE-ENGAGES
83
83
  * follow. Deliberately much tighter than DEFAULT_BOTTOM_THRESHOLD: that band
84
84
  * drives the jump-to-bottom pill's visibility, and reusing it for follow
85
- * meant a deliberate 3-99px scroll-up kept `stick` armed — the next content
85
+ * meant a deliberate 3-99px scroll-up kept `stick` armed, the next content
86
86
  * change then yanked the reader back to the bottom. Re-engaging only when the
87
87
  * user has returned essentially to the bottom keeps "scrolled up to read"
88
88
  * positions belonging to the user.
@@ -96,7 +96,7 @@ export const FOLLOW_REENGAGE_PX = 16
96
96
  * 1. At the true bottom (within the DPR-aware epsilon) → follow. This also
97
97
  * absorbs the layout engine's clamp: a mid-stream content SHRINK drops
98
98
  * scrollTop (which reads as an upward move) but lands exactly at the new
99
- * bottom — releasing there froze streaming follow for the rest of the
99
+ * bottom, releasing there froze streaming follow for the rest of the
100
100
  * turn.
101
101
  * 2. Any other upward move → release, regardless of distance from the
102
102
  * bottom. The scroll position now belongs to the user; only returning to
@@ -121,13 +121,13 @@ export function resolveUserScrollStick(args: {
121
121
  *
122
122
  * Positive = the viewport GREW (the composer shrank under a deletion, the
123
123
  * keyboard closed). That growth lowers the maximum scrollTop, so the engine
124
- * clamps any reader parked closer to the bottom than the growth — with no
124
+ * clamps any reader parked closer to the bottom than the growth, with no
125
125
  * application write anywhere. The clamp then arrives here as an ordinary
126
126
  * scroll event sitting at distance ~0, which rule 1 below used to read as
127
127
  * "the reader came back to the bottom" and re-arm follow for someone who
128
128
  * never touched the scroller. The next turn to start then took them to the
129
129
  * end. Rule 1 exists to absorb a CONTENT-shrink clamp mid-stream, and content
130
- * shrink moves `scrollHeight`, not `clientHeight` — so the two are
130
+ * shrink moves `scrollHeight`, not `clientHeight`, so the two are
131
131
  * distinguishable, and this is the delta that tells them apart. */
132
132
  viewportGrowth?: number
133
133
  }): boolean {
@@ -252,13 +252,13 @@ export interface AutoPinResult {
252
252
  * switch, before we have written anything this session).
253
253
  *
254
254
  * `viewportShrink` (px, default 0) is how much the SCROLLER'S OWN BOX has
255
- * shrunk since that reference was recorded — chrome mounting below the
255
+ * shrunk since that reference was recorded, chrome mounting below the
256
256
  * transcript (a queue band, an attachment strip, a tip card), often
257
257
  * spring-animated over several frames. Our own shrink inflates
258
258
  * `distanceFromBottom` with no user input, so without this allowance the
259
259
  * distance guard reads it as "meaningfully away from the bottom". Paired with
260
- * a content SHRINK in the same commit window — a tail-row remount clamping
261
- * scrollTop below `lastWriteTop` — that produced a full user-scroll-up
260
+ * a content SHRINK in the same commit window, a tail-row remount clamping
261
+ * scrollTop below `lastWriteTop`, that produced a full user-scroll-up
262
262
  * signature out of two of our own layout changes: follow released mid
263
263
  * animation and the content settled a card-height low. Judging the distance
264
264
  * against the box we were last a bottom FOR keeps the guard measuring the
@@ -284,7 +284,7 @@ export function evaluateAutoPin(args: {
284
284
  // SHRINK mid-stream (a partial markdown line re-parsing, a code fence opening
285
285
  // and reclassifying the block) clamps scrollTop below lastWriteTop too, but
286
286
  // leaves us still AT the new bottom (distance ~0). Without the distance guard
287
- // that shrink looked like a scroll-up and froze streaming follow — once
287
+ // that shrink looked like a scroll-up and froze streaming follow, once
288
288
  // released, nothing re-armed stick for the rest of the response.
289
289
  if (
290
290
  lastWriteTop >= 0 &&