@lostgradient/cinder 0.14.0 → 0.16.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 (325) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +9 -9
  3. package/components.json +2 -143
  4. package/dist/components/access-gate/index.js +379 -327
  5. package/dist/components/alert-dialog/index.js +170 -172
  6. package/dist/components/confirm-dialog/index.js +170 -172
  7. package/dist/components/drawer/index.js +11 -11
  8. package/dist/components/focus-trap/index.d.ts +1 -0
  9. package/dist/components/focus-trap/index.js +171 -1
  10. package/dist/components/icons/index.d.ts +80 -1
  11. package/dist/components/icons/index.js +1256 -0
  12. package/dist/components/markdown-editor/index.js +170 -170
  13. package/dist/components/modal/index.js +20 -20
  14. package/dist/components/review-editor/index.js +170 -187
  15. package/dist/components/sheet/index.js +11 -11
  16. package/dist/components/sidebar/index.js +37 -37
  17. package/dist/index.d.ts +0 -8
  18. package/dist/index.js +23202 -30164
  19. package/dist/server/components/access-gate/index.js +7 -10
  20. package/dist/server/components/alert-dialog/index.js +4 -4
  21. package/dist/server/components/approval-card/index.js +6 -6
  22. package/dist/server/components/autocomplete/index.js +4 -4
  23. package/dist/server/components/choice-grid/index.js +2 -2
  24. package/dist/server/components/color-field/index.js +2 -2
  25. package/dist/server/components/combobox/index.js +3 -3
  26. package/dist/server/components/command-item/index.js +3 -5
  27. package/dist/server/components/command-menu/index.js +3 -5
  28. package/dist/server/components/confirm-dialog/index.js +4 -4
  29. package/dist/server/components/context-menu/index.js +7 -7
  30. package/dist/server/components/data-table/index.js +3 -3
  31. package/dist/server/components/date-picker/index.js +4 -4
  32. package/dist/server/components/date-range-field/index.js +4 -4
  33. package/dist/server/components/diff-viewer/index.js +9 -11
  34. package/dist/server/components/drawer/index.js +4 -4
  35. package/dist/server/components/dropdown/index.js +7 -7
  36. package/dist/server/components/faceted-filter-bar/index.js +2 -2
  37. package/dist/server/components/focus-trap/index.js +7 -2
  38. package/dist/server/components/icons/index.js +156 -0
  39. package/dist/server/components/inline-loading/index.js +1 -1
  40. package/dist/server/components/json-schema-editor/index.js +11 -13
  41. package/dist/server/components/load-more/index.js +2 -3
  42. package/dist/server/components/markdown-editor/index.js +13 -12
  43. package/dist/server/components/menu-bar/index.js +4 -4
  44. package/dist/server/components/modal/index.js +4 -4
  45. package/dist/server/components/popover/index.js +3 -3
  46. package/dist/server/components/review-editor/index.js +169 -122
  47. package/dist/server/components/schedule-builder/index.js +5 -5
  48. package/dist/server/components/schema-form/index.js +1 -1
  49. package/dist/server/components/segment/index.js +3 -3
  50. package/dist/server/components/segmented-control/index.js +4 -4
  51. package/dist/server/components/selection-popover/index.js +3 -3
  52. package/dist/server/components/sheet/index.js +3 -3
  53. package/dist/server/components/sidebar/index.js +4 -4
  54. package/dist/server/components/table/index.js +3 -3
  55. package/dist/server/components/tag-input/index.js +2 -2
  56. package/dist/server/index.js +272 -316
  57. package/dist/server/{index.server-dwwqssey.js → index.server-0qh3v3nq.js} +1 -1
  58. package/dist/server/index.server-25wmev4e.js +2 -0
  59. package/dist/server/{index.server-zdm63dt8.js → index.server-2c56kqws.js} +107 -25
  60. package/dist/server/{index.server-y4n8vc08.js → index.server-2pc5cv6c.js} +1 -1
  61. package/dist/server/{index.server-1vsv7ngz.js → index.server-3g76h7z7.js} +12 -2
  62. package/dist/server/{index.server-xz99aed4.js → index.server-45n4s30n.js} +12 -12
  63. package/dist/server/{index.server-zzd5wpbw.js → index.server-4dfs3xwn.js} +1 -1
  64. package/dist/server/{index.server-vhyjjx9z.js → index.server-4jkqgp17.js} +7 -9
  65. package/dist/server/{index.server-bmxbsk4y.js → index.server-51sxnete.js} +18 -18
  66. package/dist/server/{index.server-1bwvsnjk.js → index.server-6rv1rfwq.js} +37 -14
  67. package/dist/server/{index.server-np3c7kx0.js → index.server-7798gc22.js} +1 -1
  68. package/dist/server/{index.server-2m1kenak.js → index.server-7kjw6qw5.js} +1 -1
  69. package/dist/server/{index.server-tfftb7hs.js → index.server-7zpzspk6.js} +1 -1
  70. package/dist/server/{index.server-7yvpb6z7.js → index.server-894t97kv.js} +4 -4
  71. package/dist/server/{index.server-47v2fhp4.js → index.server-8b35ekqg.js} +1 -1
  72. package/dist/server/{index.server-j5hn2qds.js → index.server-8nm871y8.js} +80 -30
  73. package/dist/server/{index.server-h0cvwvhy.js → index.server-9drzqktm.js} +1 -1
  74. package/dist/server/{index.server-x9s4m9eg.js → index.server-agsdwg53.js} +1 -1
  75. package/dist/server/{index.server-hpeavvnq.js → index.server-b4gp066a.js} +1 -1
  76. package/dist/server/{index.server-gkazv439.js → index.server-bf7d81b4.js} +7 -7
  77. package/dist/server/{index.server-krqvnt6p.js → index.server-d4ft97bx.js} +4 -2
  78. package/dist/server/{index.server-t1x9h8cb.js → index.server-dg19y3m7.js} +1 -1
  79. package/dist/server/{index.server-jt1twhgk.js → index.server-dq0k0qf6.js} +10 -10
  80. package/dist/server/{index.server-pxq277t5.js → index.server-frb9e55d.js} +1 -1
  81. package/dist/server/{index.server-9kz37z89.js → index.server-g3726bja.js} +1 -1
  82. package/dist/server/index.server-gyzmkrnz.js +2 -0
  83. package/dist/server/{index.server-mr68brd6.js → index.server-jgdtsvz2.js} +1 -1
  84. package/dist/server/{index.server-p56xxef1.js → index.server-m8ya4p7w.js} +1 -1
  85. package/dist/server/{index.server-1nq7z1qw.js → index.server-mda2y5g6.js} +1 -1
  86. package/dist/server/{index.server-jdcq5zza.js → index.server-mehav5vs.js} +7 -7
  87. package/dist/server/{index.server-e89qfamd.js → index.server-mknhgg07.js} +4 -4
  88. package/dist/server/{index.server-j570vb03.js → index.server-mvjzcna5.js} +1 -1
  89. package/dist/server/index.server-n4jxy52q.js +2 -0
  90. package/dist/server/{index.server-h89zk5ev.js → index.server-ne4gzxvz.js} +7 -7
  91. package/dist/server/{index.server-eftvmq3f.js → index.server-pfbzz3x7.js} +1 -1
  92. package/dist/server/{index.server-zrh23kty.js → index.server-pyjzfjfn.js} +1 -1
  93. package/dist/server/{index.server-rga8sc7j.js → index.server-q1d48s9t.js} +40 -36
  94. package/dist/server/{index.server-46cjwcqw.js → index.server-qv0kkre4.js} +5 -5
  95. package/dist/server/{index.server-yhzydqxe.js → index.server-r82zjq88.js} +5 -5
  96. package/dist/server/{index.server-9ykk1kbg.js → index.server-rbd5ys4z.js} +1 -1
  97. package/dist/server/{index.server-tcay903b.js → index.server-tnecnach.js} +4 -4
  98. package/dist/server/{index.server-9ra3xv88.js → index.server-x66zvjfc.js} +9 -9
  99. package/dist/server/{index.server-6sh11ap6.js → index.server-y4kfz0er.js} +1 -1
  100. package/dist/server/{index.server-n82rcv0m.js → index.server-z721a5gp.js} +4 -4
  101. package/dist/server/{index.server-mm1xa3kr.js → index.server-zdhv33ph.js} +51 -20
  102. package/dist/server/{index.server-t3hknp1c.js → index.server-zm04d9eq.js} +4 -4
  103. package/dist/server/{index.server-nx9c2ep1.js → index.server-zncgb7mw.js} +2 -2
  104. package/package.json +14 -135
  105. package/src/components/focus-trap/index.ts +1 -0
  106. package/src/components/icons/index.ts +82 -40
  107. package/src/index.ts +0 -34
  108. package/src/styles/components.css +0 -4
  109. package/dist/components/chat/adapter/chat-adapter.d.ts +0 -123
  110. package/dist/components/chat/adapter/index.d.ts +0 -8
  111. package/dist/components/chat/artifact/artifact-panel.svelte.d.ts +0 -15
  112. package/dist/components/chat/artifact/artifact-viewer.svelte.d.ts +0 -10
  113. package/dist/components/chat/artifact/chat-artifact-layout.svelte.d.ts +0 -23
  114. package/dist/components/chat/artifact/index.d.ts +0 -3
  115. package/dist/components/chat/builders.d.ts +0 -25
  116. package/dist/components/chat/chat.css +0 -16
  117. package/dist/components/chat/chat.css.d.ts +0 -1
  118. package/dist/components/chat/chat.schema.d.ts +0 -3
  119. package/dist/components/chat/chat.schema.js +0 -366
  120. package/dist/components/chat/chat.svelte.d.ts +0 -31
  121. package/dist/components/chat/chat.types.d.ts +0 -268
  122. package/dist/components/chat/chat.variables.d.ts +0 -2
  123. package/dist/components/chat/chat.variables.js +0 -61
  124. package/dist/components/chat/container/chat-events.d.ts +0 -22
  125. package/dist/components/chat/container/chat-history-trigger.svelte.d.ts +0 -15
  126. package/dist/components/chat/container/chat-jump-controls.svelte.d.ts +0 -24
  127. package/dist/components/chat/container/chat-participant-typing.svelte.d.ts +0 -31
  128. package/dist/components/chat/container/chat-search-bar.svelte.d.ts +0 -38
  129. package/dist/components/chat/container/chat-status-announcer.svelte.d.ts +0 -21
  130. package/dist/components/chat/container/chat.svelte.d.ts +0 -17
  131. package/dist/components/chat/container/index.d.ts +0 -12
  132. package/dist/components/chat/container/scroll-utilities.d.ts +0 -119
  133. package/dist/components/chat/container/use-chat-disclosure-state.svelte.d.ts +0 -58
  134. package/dist/components/chat/container/use-chat-keyboard-nav.svelte.d.ts +0 -57
  135. package/dist/components/chat/container/use-chat-message-groups.svelte.d.ts +0 -74
  136. package/dist/components/chat/container/use-chat-read-receipts.svelte.d.ts +0 -51
  137. package/dist/components/chat/container/use-chat-scroll-state.svelte.d.ts +0 -111
  138. package/dist/components/chat/container/use-chat-search.svelte.d.ts +0 -82
  139. package/dist/components/chat/container/use-chat-typing-indicator.svelte.d.ts +0 -76
  140. package/dist/components/chat/container/use-chat-unread-state.svelte.d.ts +0 -80
  141. package/dist/components/chat/container/use-chat-virtualizer.svelte.d.ts +0 -47
  142. package/dist/components/chat/conversation-model.d.ts +0 -16
  143. package/dist/components/chat/export/conversation-export-actions.svelte.d.ts +0 -17
  144. package/dist/components/chat/export/index.d.ts +0 -8
  145. package/dist/components/chat/index.d.ts +0 -23
  146. package/dist/components/chat/index.js +0 -11305
  147. package/dist/components/chat/input/attachment-kind.d.ts +0 -10
  148. package/dist/components/chat/input/chat-attachment-preview.svelte.d.ts +0 -8
  149. package/dist/components/chat/input/chat-attachment-serialization.d.ts +0 -9
  150. package/dist/components/chat/input/chat-attachment.d.ts +0 -11
  151. package/dist/components/chat/input/chat-input.svelte.d.ts +0 -79
  152. package/dist/components/chat/input/index.d.ts +0 -5
  153. package/dist/components/chat/message/chat-date-separator.svelte.d.ts +0 -12
  154. package/dist/components/chat/message/chat-message-parts-renderer.svelte.d.ts +0 -4
  155. package/dist/components/chat/message/chat-message-parts.d.ts +0 -96
  156. package/dist/components/chat/message/chat-message.svelte.d.ts +0 -91
  157. package/dist/components/chat/message/chat-read-receipt.svelte.d.ts +0 -27
  158. package/dist/components/chat/message/image-lightbox.svelte.d.ts +0 -17
  159. package/dist/components/chat/message/index.d.ts +0 -6
  160. package/dist/components/chat/message/markdown-preview.svelte.d.ts +0 -8
  161. package/dist/components/chat/message/message-attachments.svelte.d.ts +0 -17
  162. package/dist/components/chat/message/message-content.svelte.d.ts +0 -18
  163. package/dist/components/chat/message/parts/image-part.svelte.d.ts +0 -17
  164. package/dist/components/chat/message/parts/markdown-part.svelte.d.ts +0 -8
  165. package/dist/components/chat/message/parts/reasoning-part.svelte.d.ts +0 -12
  166. package/dist/components/chat/message/parts/step-part.svelte.d.ts +0 -8
  167. package/dist/components/chat/message/parts/suggestion-part.svelte.d.ts +0 -18
  168. package/dist/components/chat/message/parts/tool-approval-part.svelte.d.ts +0 -12
  169. package/dist/components/chat/message/parts/tool-call-part.svelte.d.ts +0 -12
  170. package/dist/components/chat/message/parts/tool-result-part.svelte.d.ts +0 -8
  171. package/dist/components/chat/message/tool-call-group.svelte.d.ts +0 -15
  172. package/dist/components/chat/message/tool-payload-code.svelte.d.ts +0 -9
  173. package/dist/components/chat/utilities/conversation.d.ts +0 -12
  174. package/dist/components/chat/utilities/index.d.ts +0 -9
  175. package/dist/components/chat/utilities/types.d.ts +0 -262
  176. package/dist/components/chat/utilities/utilities.d.ts +0 -140
  177. package/dist/components/chat-composer-popover/chat-composer-popover-filter.d.ts +0 -11
  178. package/dist/components/chat-composer-popover/chat-composer-popover.css +0 -7
  179. package/dist/components/chat-composer-popover/chat-composer-popover.css.d.ts +0 -1
  180. package/dist/components/chat-composer-popover/chat-composer-popover.schema.d.ts +0 -3
  181. package/dist/components/chat-composer-popover/chat-composer-popover.schema.js +0 -150
  182. package/dist/components/chat-composer-popover/chat-composer-popover.svelte.d.ts +0 -46
  183. package/dist/components/chat-composer-popover/chat-composer-popover.types.d.ts +0 -77
  184. package/dist/components/chat-composer-popover/chat-composer-popover.variables.d.ts +0 -2
  185. package/dist/components/chat-composer-popover/chat-composer-popover.variables.js +0 -61
  186. package/dist/components/chat-composer-popover/index.d.ts +0 -6
  187. package/dist/components/chat-composer-popover/index.js +0 -3285
  188. package/dist/components/chat-conversation-header/chat-conversation-header.css +0 -51
  189. package/dist/components/chat-conversation-header/chat-conversation-header.css.d.ts +0 -1
  190. package/dist/components/chat-conversation-header/chat-conversation-header.schema.d.ts +0 -3
  191. package/dist/components/chat-conversation-header/chat-conversation-header.schema.js +0 -94
  192. package/dist/components/chat-conversation-header/chat-conversation-header.svelte.d.ts +0 -19
  193. package/dist/components/chat-conversation-header/chat-conversation-header.types.d.ts +0 -18
  194. package/dist/components/chat-conversation-header/chat-conversation-header.variables.d.ts +0 -2
  195. package/dist/components/chat-conversation-header/chat-conversation-header.variables.js +0 -61
  196. package/dist/components/chat-conversation-header/index.d.ts +0 -5
  197. package/dist/components/chat-conversation-header/index.js +0 -4278
  198. package/dist/components/chat-conversation-list/chat-conversation-list.css +0 -127
  199. package/dist/components/chat-conversation-list/chat-conversation-list.css.d.ts +0 -1
  200. package/dist/components/chat-conversation-list/chat-conversation-list.schema.d.ts +0 -3
  201. package/dist/components/chat-conversation-list/chat-conversation-list.schema.js +0 -105
  202. package/dist/components/chat-conversation-list/chat-conversation-list.svelte.d.ts +0 -21
  203. package/dist/components/chat-conversation-list/chat-conversation-list.types.d.ts +0 -17
  204. package/dist/components/chat-conversation-list/chat-conversation-list.variables.d.ts +0 -2
  205. package/dist/components/chat-conversation-list/chat-conversation-list.variables.js +0 -61
  206. package/dist/components/chat-conversation-list/conversation-summary.d.ts +0 -30
  207. package/dist/components/chat-conversation-list/index.d.ts +0 -6
  208. package/dist/components/chat-conversation-list/index.js +0 -536
  209. package/dist/server/components/chat/index.js +0 -121
  210. package/dist/server/components/chat-composer-popover/index.js +0 -26
  211. package/dist/server/components/chat-conversation-header/index.js +0 -41
  212. package/dist/server/components/chat-conversation-list/index.js +0 -19
  213. package/dist/server/index.server-2bbwajb2.js +0 -54
  214. package/dist/server/index.server-2hqrv7ca.js +0 -9
  215. package/dist/server/index.server-67qgdypc.js +0 -9
  216. package/dist/server/index.server-6hnfzc7f.js +0 -263
  217. package/dist/server/index.server-8rmtb8vx.js +0 -175
  218. package/dist/server/index.server-a59y47rw.js +0 -59
  219. package/dist/server/index.server-bfkka7x4.js +0 -2
  220. package/dist/server/index.server-f2me5abn.js +0 -4230
  221. package/dist/server/index.server-kb6w1a7c.js +0 -27
  222. package/dist/server/index.server-nphtb2ey.js +0 -76
  223. package/dist/server/index.server-qkfd0qa7.js +0 -2
  224. package/dist/server/index.server-rf67m8v5.js +0 -2
  225. package/dist/server/index.server-rqe5bqgm.js +0 -37
  226. package/dist/server/index.server-xtjjmsyq.js +0 -315
  227. package/dist/server/index.server-yq9evnp4.js +0 -38
  228. package/dist/server/index.server-z1qvwaem.js +0 -74
  229. package/dist/server/index.server-z7hxtqs1.js +0 -83
  230. package/src/components/chat/adapter/chat-adapter.ts +0 -132
  231. package/src/components/chat/adapter/index.ts +0 -15
  232. package/src/components/chat/artifact/artifact-panel.svelte +0 -112
  233. package/src/components/chat/artifact/artifact-viewer.svelte +0 -101
  234. package/src/components/chat/artifact/chat-artifact-layout.svelte +0 -56
  235. package/src/components/chat/artifact/index.ts +0 -3
  236. package/src/components/chat/builders.ts +0 -464
  237. package/src/components/chat/chat.css +0 -16
  238. package/src/components/chat/chat.examples.json +0 -61
  239. package/src/components/chat/chat.schema.json +0 -290
  240. package/src/components/chat/chat.schema.ts +0 -335
  241. package/src/components/chat/chat.svelte +0 -67
  242. package/src/components/chat/chat.types.ts +0 -284
  243. package/src/components/chat/chat.variables.json +0 -1
  244. package/src/components/chat/chat.variables.ts +0 -3
  245. package/src/components/chat/container/chat-events.ts +0 -26
  246. package/src/components/chat/container/chat-history-trigger.svelte +0 -95
  247. package/src/components/chat/container/chat-jump-controls.svelte +0 -191
  248. package/src/components/chat/container/chat-participant-typing.svelte +0 -128
  249. package/src/components/chat/container/chat-search-bar.svelte +0 -219
  250. package/src/components/chat/container/chat-status-announcer.svelte +0 -22
  251. package/src/components/chat/container/chat.svelte +0 -1879
  252. package/src/components/chat/container/index.ts +0 -64
  253. package/src/components/chat/container/scroll-utilities.ts +0 -204
  254. package/src/components/chat/container/use-chat-disclosure-state.svelte.ts +0 -62
  255. package/src/components/chat/container/use-chat-keyboard-nav.svelte.ts +0 -153
  256. package/src/components/chat/container/use-chat-message-groups.svelte.ts +0 -146
  257. package/src/components/chat/container/use-chat-read-receipts.svelte.ts +0 -62
  258. package/src/components/chat/container/use-chat-scroll-state.svelte.ts +0 -292
  259. package/src/components/chat/container/use-chat-search.svelte.ts +0 -116
  260. package/src/components/chat/container/use-chat-typing-indicator.svelte.ts +0 -153
  261. package/src/components/chat/container/use-chat-unread-state.svelte.ts +0 -170
  262. package/src/components/chat/container/use-chat-virtualizer.svelte.ts +0 -260
  263. package/src/components/chat/conversation-model.ts +0 -45
  264. package/src/components/chat/export/conversation-export-actions.svelte +0 -174
  265. package/src/components/chat/export/index.ts +0 -9
  266. package/src/components/chat/index.ts +0 -138
  267. package/src/components/chat/input/attachment-kind.ts +0 -28
  268. package/src/components/chat/input/chat-attachment-preview.svelte +0 -223
  269. package/src/components/chat/input/chat-attachment-serialization.ts +0 -63
  270. package/src/components/chat/input/chat-attachment.ts +0 -12
  271. package/src/components/chat/input/chat-input.svelte +0 -810
  272. package/src/components/chat/input/index.ts +0 -9
  273. package/src/components/chat/message/chat-date-separator.svelte +0 -87
  274. package/src/components/chat/message/chat-message-parts-renderer.svelte +0 -139
  275. package/src/components/chat/message/chat-message-parts.ts +0 -163
  276. package/src/components/chat/message/chat-message.svelte +0 -861
  277. package/src/components/chat/message/chat-read-receipt.svelte +0 -85
  278. package/src/components/chat/message/image-lightbox.svelte +0 -255
  279. package/src/components/chat/message/index.ts +0 -6
  280. package/src/components/chat/message/markdown-preview.svelte +0 -77
  281. package/src/components/chat/message/message-attachments.svelte +0 -178
  282. package/src/components/chat/message/message-content.svelte +0 -132
  283. package/src/components/chat/message/parts/image-part.svelte +0 -11
  284. package/src/components/chat/message/parts/markdown-part.svelte +0 -17
  285. package/src/components/chat/message/parts/reasoning-part.svelte +0 -274
  286. package/src/components/chat/message/parts/step-part.svelte +0 -127
  287. package/src/components/chat/message/parts/suggestion-part.svelte +0 -83
  288. package/src/components/chat/message/parts/tool-approval-part.svelte +0 -298
  289. package/src/components/chat/message/parts/tool-call-part.svelte +0 -19
  290. package/src/components/chat/message/parts/tool-result-part.svelte +0 -65
  291. package/src/components/chat/message/tool-call-group.svelte +0 -274
  292. package/src/components/chat/message/tool-payload-code.svelte +0 -35
  293. package/src/components/chat/utilities/conversation.ts +0 -44
  294. package/src/components/chat/utilities/index.ts +0 -33
  295. package/src/components/chat/utilities/types.ts +0 -288
  296. package/src/components/chat/utilities/utilities.ts +0 -507
  297. package/src/components/chat-composer-popover/chat-composer-popover-filter.ts +0 -68
  298. package/src/components/chat-composer-popover/chat-composer-popover.css +0 -7
  299. package/src/components/chat-composer-popover/chat-composer-popover.examples.json +0 -13
  300. package/src/components/chat-composer-popover/chat-composer-popover.schema.json +0 -90
  301. package/src/components/chat-composer-popover/chat-composer-popover.schema.ts +0 -95
  302. package/src/components/chat-composer-popover/chat-composer-popover.svelte +0 -234
  303. package/src/components/chat-composer-popover/chat-composer-popover.types.ts +0 -88
  304. package/src/components/chat-composer-popover/chat-composer-popover.variables.json +0 -1
  305. package/src/components/chat-composer-popover/chat-composer-popover.variables.ts +0 -3
  306. package/src/components/chat-composer-popover/index.ts +0 -19
  307. package/src/components/chat-conversation-header/chat-conversation-header.css +0 -51
  308. package/src/components/chat-conversation-header/chat-conversation-header.examples.json +0 -13
  309. package/src/components/chat-conversation-header/chat-conversation-header.schema.json +0 -34
  310. package/src/components/chat-conversation-header/chat-conversation-header.schema.ts +0 -38
  311. package/src/components/chat-conversation-header/chat-conversation-header.svelte +0 -49
  312. package/src/components/chat-conversation-header/chat-conversation-header.types.ts +0 -20
  313. package/src/components/chat-conversation-header/chat-conversation-header.variables.json +0 -1
  314. package/src/components/chat-conversation-header/chat-conversation-header.variables.ts +0 -3
  315. package/src/components/chat-conversation-header/index.ts +0 -9
  316. package/src/components/chat-conversation-list/chat-conversation-list.css +0 -127
  317. package/src/components/chat-conversation-list/chat-conversation-list.examples.json +0 -13
  318. package/src/components/chat-conversation-list/chat-conversation-list.schema.json +0 -45
  319. package/src/components/chat-conversation-list/chat-conversation-list.schema.ts +0 -52
  320. package/src/components/chat-conversation-list/chat-conversation-list.svelte +0 -75
  321. package/src/components/chat-conversation-list/chat-conversation-list.types.ts +0 -18
  322. package/src/components/chat-conversation-list/chat-conversation-list.variables.json +0 -1
  323. package/src/components/chat-conversation-list/chat-conversation-list.variables.ts +0 -3
  324. package/src/components/chat-conversation-list/conversation-summary.ts +0 -88
  325. package/src/components/chat-conversation-list/index.ts +0 -11
@@ -1,10 +0,0 @@
1
- /** Discriminant for attachment rendering strategy. */
2
- export type AttachmentKind = 'image' | 'code' | 'document';
3
- /**
4
- * Derive the attachment kind from a MIME type string.
5
- *
6
- * - `image/*` → `'image'`
7
- * - `text/*` and known code MIME types → `'code'`
8
- * - Everything else → `'document'`
9
- */
10
- export declare function deriveAttachmentKind(mimeType: string): AttachmentKind;
@@ -1,8 +0,0 @@
1
- import type { ChatAttachment } from './chat-attachment.ts';
2
- export interface ChatAttachmentPreviewProps {
3
- attachment: ChatAttachment;
4
- class?: string;
5
- }
6
- declare const ChatAttachmentPreview: import("svelte").Component<ChatAttachmentPreviewProps, {}, "">;
7
- type ChatAttachmentPreview = ReturnType<typeof ChatAttachmentPreview>;
8
- export default ChatAttachmentPreview;
@@ -1,9 +0,0 @@
1
- import type { ChatAttachment } from './chat-attachment.ts';
2
- export interface SerializedChatAttachment {
3
- name: string;
4
- mimeType: string;
5
- kind: ChatAttachment['kind'];
6
- content: string;
7
- }
8
- export declare function serializeChatAttachment(attachment: ChatAttachment): Promise<SerializedChatAttachment>;
9
- export declare function serializeChatAttachments(attachments: readonly ChatAttachment[]): Promise<SerializedChatAttachment[]>;
@@ -1,11 +0,0 @@
1
- import type { AttachmentKind } from './attachment-kind.js';
2
- /** Attachment metadata for files (images, code, documents). */
3
- export interface ChatAttachment {
4
- id: string;
5
- file: File;
6
- previewUrl: string;
7
- kind: AttachmentKind;
8
- textContent?: string;
9
- status: 'pending' | 'uploading' | 'ready' | 'error';
10
- error?: string;
11
- }
@@ -1,79 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- import type { HTMLFormAttributes } from 'svelte/elements';
3
- import type { MessageInput } from '../conversation-model.ts';
4
- import type { ChatAttachment } from './chat-attachment.ts';
5
- export type { ChatAttachment } from './chat-attachment.ts';
6
- export type ChatInputProps = Omit<HTMLFormAttributes, 'onsubmit' | 'class'> & {
7
- /** Unique ID for accessibility (required) */
8
- id: string;
9
- /** Current markdown content (two-way bindable) */
10
- value?: string;
11
- /** Placeholder text */
12
- placeholder?: string;
13
- /** Accessible label passed to the inner message editor */
14
- composerLabel?: string;
15
- /** Explicit role for the inner message editor, for overlay patterns such as ARIA comboboxes. */
16
- composerRole?: string | undefined;
17
- /** `aria-expanded` passed to the inner message editor for composer overlays. */
18
- composerAriaExpanded?: boolean | 'true' | 'false' | undefined;
19
- /** `aria-controls` passed to the inner message editor for composer overlays. */
20
- composerAriaControls?: string | undefined;
21
- /** `aria-activedescendant` passed to the inner message editor for composer overlays. */
22
- composerAriaActiveDescendant?: string | undefined;
23
- /** `aria-autocomplete` passed to the inner message editor for composer overlays. */
24
- composerAriaAutocomplete?: 'none' | 'inline' | 'list' | 'both' | undefined;
25
- /** Whether the input is disabled */
26
- disabled?: boolean;
27
- /** Whether a submission is in progress */
28
- sending?: boolean;
29
- /** Error message to display */
30
- error?: string;
31
- /** Additional CSS class */
32
- class?: string;
33
- /** Form action URL (enables form action mode) */
34
- action?: string;
35
- /** Name for the hidden input field (default: 'content') */
36
- name?: string;
37
- /** Whether to clear input after submit (default: true). Set to false for error recovery. */
38
- clearOnSubmit?: boolean;
39
- /** Enable file attachments (default: true) */
40
- allowAttachments?: boolean;
41
- /** Maximum file size in bytes (default: 10MB) */
42
- maxFileSize?: number;
43
- /** Accepted MIME types (default: ['image/*']) */
44
- acceptedTypes?: string[];
45
- /** Called when the message is submitted */
46
- onsubmit?: (message: MessageInput, attachments: ChatAttachment[]) => void;
47
- /** Called when stop is requested (transforms send button into stop button when sending=true) */
48
- onstop?: (() => void) | undefined;
49
- /** Called with the composer's current plain-text value on every input event. */
50
- oncomposerinput?: ((value: string, event?: Event) => void) | undefined;
51
- /**
52
- * Called before ChatInput's internal Enter-to-send handling when a keydown
53
- * originates from the composer textarea. Calling `preventDefault()` skips
54
- * the internal key handling for that event.
55
- */
56
- oncomposerkeydown?: ((event: KeyboardEvent) => void) | undefined;
57
- /** Called after pointer or selection activity may have moved the composer caret. */
58
- oncomposerselectionchange?: ((event: Event) => void) | undefined;
59
- /** Called when focus leaves the composer textarea. */
60
- oncomposerblur?: ((event: FocusEvent) => void) | undefined;
61
- /** Called when an attachment is added */
62
- onattachmentadd?: ((attachment: ChatAttachment) => void) | undefined;
63
- /** Called when an attachment is removed */
64
- onattachmentremove?: ((attachment: ChatAttachment) => void) | undefined;
65
- /** Called when an attachment fails validation */
66
- onattachmentfailure?: ((file: File, error: string) => void) | undefined;
67
- /** Custom actions area (e.g., additional buttons) */
68
- actions?: Snippet;
69
- };
70
- declare const ChatInput: import("svelte").Component<ChatInputProps, {
71
- focus: () => void;
72
- clear: () => void;
73
- getAttachments: () => ChatAttachment[];
74
- getValue: () => string;
75
- getEditorElement: () => HTMLTextAreaElement | null;
76
- addFiles: (files: File[]) => void;
77
- }, "value">;
78
- type ChatInput = ReturnType<typeof ChatInput>;
79
- export default ChatInput;
@@ -1,5 +0,0 @@
1
- export { deriveAttachmentKind, type AttachmentKind } from './attachment-kind.js';
2
- export { default as ChatAttachmentPreview } from './chat-attachment-preview.svelte';
3
- export { serializeChatAttachment, serializeChatAttachments, type SerializedChatAttachment, } from './chat-attachment-serialization.ts';
4
- export type { ChatAttachment } from './chat-attachment.ts';
5
- export { default as ChatInput } from './chat-input.svelte';
@@ -1,12 +0,0 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- export type ChatDateSeparatorProps = Omit<HTMLAttributes<HTMLDivElement>, 'class'> & {
3
- /** The date to display */
4
- date: Date | string;
5
- /** Custom date formatter for testing/localization */
6
- dateFormatter?: (date: Date) => string;
7
- /** Additional CSS class */
8
- class?: string;
9
- };
10
- declare const ChatDateSeparator: import("svelte").Component<ChatDateSeparatorProps, {}, "">;
11
- type ChatDateSeparator = ReturnType<typeof ChatDateSeparator>;
12
- export default ChatDateSeparator;
@@ -1,4 +0,0 @@
1
- import { type ChatMessagePartsRendererProps } from './chat-message-parts.ts';
2
- declare const ChatMessagePartsRenderer: import("svelte").Component<ChatMessagePartsRendererProps, {}, "">;
3
- type ChatMessagePartsRenderer = ReturnType<typeof ChatMessagePartsRenderer>;
4
- export default ChatMessagePartsRenderer;
@@ -1,96 +0,0 @@
1
- /**
2
- * Plain-TS support module for the message parts renderer.
3
- *
4
- * Types and the pure `toRenderUnits` grouping live here (not in the `.svelte`
5
- * file) so they are importable under plain `tsc`/`svelte-check` — symbols
6
- * exported from a `.svelte` `<script module>` are not reliably resolvable
7
- * outside the Svelte language service.
8
- */
9
- import type { Snippet } from 'svelte';
10
- import type { ChatMessagePart, ImageMessagePart, StepMessagePart, SuggestionMessagePart } from '../utilities/types.ts';
11
- /**
12
- * A body part — every renderable part EXCEPT image, step, and suggestion.
13
- * Image parts render through the grouped attachment path (the grid lays out
14
- * by total count). Step parts are grouped into the stepper render unit and
15
- * bypass the per-part override entirely — they never reach `messagePart` or
16
- * `renderDefault`. Suggestion parts render through the grouped `suggestions`
17
- * toolbar path so all chips appear inside a single `role="toolbar"` wrapper.
18
- * None of these flow through the per-part override; the override's type
19
- * excludes them so a consumer can't write dead branches for them.
20
- */
21
- export type BodyMessagePart = Exclude<ChatMessagePart, ImageMessagePart | StepMessagePart | SuggestionMessagePart>;
22
- /**
23
- * Per-part override snippet. Inversion of control: the consumer receives the
24
- * part AND a `renderDefault` snippet, and decides whether to render its own
25
- * markup or delegate to the built-in renderer by calling
26
- * `{@render renderDefault(part)}`. There is no "render empty to fall through"
27
- * magic — Svelte snippets render DOM and have no inspectable return value, so
28
- * the fallback is always explicit and SSR-safe.
29
- *
30
- * The part is a {@link BodyMessagePart} (image parts are excluded — see above),
31
- * so the type matches what the override can actually intercept.
32
- */
33
- export type MessagePartOverride = Snippet<[
34
- part: BodyMessagePart,
35
- renderDefault: Snippet<[BodyMessagePart]>
36
- ]>;
37
- /** Props for {@link ChatMessagePartsRenderer}. */
38
- export type ChatMessagePartsRendererProps = {
39
- /** The ordered render parts for one message. */
40
- parts: ChatMessagePart[];
41
- /**
42
- * Optional per-part override. Applies to body parts (markdown, tool-call,
43
- * tool-result, tool-approval, reasoning). Image parts, step parts, and
44
- * suggestion parts always render through the grouped default paths; they are
45
- * excluded from this override's type and never flow through it. In
46
- * particular, step parts are accumulated into the stepper render unit and
47
- * bypass this override entirely — a consumer cannot intercept individual
48
- * step parts via `messagePart`.
49
- */
50
- messagePart?: MessagePartOverride | undefined;
51
- /** Disclosure state for tool-call parts. Owned by the message. */
52
- expanded?: boolean;
53
- /** Called when a tool-call part's disclosure toggle is activated. */
54
- ontoggle?: (() => void) | undefined;
55
- /** Called when the user approves an action-required tool call. */
56
- onapprove?: ((toolCallId: string) => void) | undefined;
57
- /** Called when the user denies an action-required tool call. */
58
- ondeny?: ((toolCallId: string) => void) | undefined;
59
- /** Whether the reasoning block for this message is expanded. */
60
- reasoningExpanded?: boolean | undefined;
61
- /** Called when the reasoning disclosure toggle is activated. */
62
- onreasoning?: (() => void) | undefined;
63
- /** Called when the user selects a suggestion chip. */
64
- onsuggestionselect?: ((label: string) => void) | undefined;
65
- };
66
- /** A renderable unit: a single body part, a contiguous run of image parts, a group of step parts, or a group of suggestion chips. */
67
- export type RenderUnit = {
68
- kind: 'part';
69
- part: Exclude<ChatMessagePart, ImageMessagePart | StepMessagePart | SuggestionMessagePart>;
70
- key: string;
71
- } | {
72
- kind: 'images';
73
- images: ImageMessagePart[];
74
- key: string;
75
- } | {
76
- kind: 'steps';
77
- steps: StepMessagePart[];
78
- key: string;
79
- } | {
80
- kind: 'suggestions';
81
- suggestions: SuggestionMessagePart[];
82
- key: string;
83
- };
84
- /**
85
- * Collapses a parts array into render units, grouping each maximal run of
86
- * adjacent image parts into one unit, each maximal run of adjacent step parts
87
- * into one stepper unit, and each maximal run of adjacent suggestion parts into
88
- * one toolbar unit. Keeps non-image, non-step, non-suggestion parts individual
89
- * so the per-part override applies to them; groups images so the attachment
90
- * grid lays out by total count; groups steps so they render inside a single
91
- * `<ol>`; groups suggestions so they render inside a single `role="toolbar"`.
92
- *
93
- * @param parts - The ordered render parts for one message
94
- * @returns Render units in order, with image, step, and suggestion runs collapsed
95
- */
96
- export declare function toRenderUnits(parts: ChatMessagePart[]): RenderUnit[];
@@ -1,91 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- import type { HTMLAttributes } from 'svelte/elements';
3
- import type { Message, ToolCallPair } from '../conversation-model.ts';
4
- import type { MessagePartOverride } from './chat-message-parts.ts';
5
- import type { StepInfo } from '../utilities/types.ts';
6
- /**
7
- * Role labels for display purposes.
8
- * Maps message roles to human-readable labels.
9
- */
10
- export declare const ROLE_LABELS: Record<Message['role'], string>;
11
- export type ChatMessageProps = Omit<HTMLAttributes<HTMLElement>, 'class'> & {
12
- /** The message to render */
13
- message: Message;
14
- /** Paired tool calls (from pairToolCallsWithResults) - used for tool-call messages */
15
- toolCallPairs?: ToolCallPair[];
16
- /** Whether long content is expanded */
17
- expanded?: boolean;
18
- /** Additional CSS class */
19
- class?: string;
20
- /** Whether this message is the active in-conversation search match */
21
- searchMatch?: boolean;
22
- /** Actions region snippet (copy, edit, retry buttons) */
23
- actions?: Snippet;
24
- /** Status indicator snippet (sending, delivered, error) */
25
- status?: Snippet;
26
- /**
27
- * Per-part render override. Forwarded to the parts renderer; lets a consumer
28
- * replace the rendering of an individual body part while delegating the rest
29
- * to the built-ins (inversion of control — see the renderer).
30
- */
31
- messagePart?: MessagePartOverride | undefined;
32
- /** Show built-in copy button alongside custom actions (default: true) */
33
- showDefaultActions?: boolean;
34
- /** Whether this message is currently streaming */
35
- streaming?: boolean;
36
- /** Override content for streaming (partial token buffer) */
37
- overrideContent?: string | undefined;
38
- /** Called when expanded state changes */
39
- onexpandedchange?: ((expanded: boolean) => void) | undefined;
40
- /** Called when retry is requested on a failed message */
41
- onretry?: ((messageId: string) => void) | undefined;
42
- /** Called when user edits a message (fires with new content). Only applies to user messages. */
43
- onedit?: ((event: {
44
- messageId: string;
45
- content: string;
46
- }) => void) | undefined;
47
- /** The set of approved tool call IDs for deriving approval state. */
48
- approvedToolCallIds?: ReadonlySet<string> | undefined;
49
- /** The set of denied tool call IDs for deriving denial state. */
50
- deniedToolCallIds?: ReadonlySet<string> | undefined;
51
- /** Called when the user approves an action-required tool call. */
52
- onapprove?: ((toolCallId: string) => void) | undefined;
53
- /** Called when the user denies an action-required tool call. */
54
- ondeny?: ((toolCallId: string) => void) | undefined;
55
- /**
56
- * Reasoning text to surface as a collapsible block before the body.
57
- * When present and non-empty, a `reasoning` part is prepended to the derived parts.
58
- */
59
- reasoning?: string | undefined;
60
- /**
61
- * Step list to surface as a stepper before the body.
62
- * Each entry maps to one `step` part in the derived parts.
63
- */
64
- steps?: ReadonlyArray<StepInfo> | undefined;
65
- /** Whether the reasoning disclosure is expanded. Owned by the container's reasoning state. */
66
- reasoningExpanded?: boolean | undefined;
67
- /** Called when the reasoning disclosure toggle is activated. */
68
- onreasoning?: (() => void) | undefined;
69
- /**
70
- * Whether the tool-call card disclosure is expanded. Collapsed by default —
71
- * kept separate from `expanded` (which drives markdown "Show more/less"),
72
- * since a tool-call message never carries a markdown body. Bindable, like
73
- * `expanded`: the `Chat` container drives it from its own per-message
74
- * disclosure state (one-way, via `ontoolcalltoggle`), but a standalone
75
- * `ChatMessage` used outside `Chat` still gets working, self-contained
76
- * disclosure with no wiring required.
77
- */
78
- toolCallExpanded?: boolean | undefined;
79
- /** Called when the tool-call card disclosure toggle is activated. */
80
- ontoolcalltoggle?: (() => void) | undefined;
81
- /**
82
- * Suggestion labels to surface as clickable chips after the body.
83
- * Each entry maps to one `suggestion` part in the derived parts.
84
- */
85
- suggestions?: ReadonlyArray<string> | undefined;
86
- /** Called when the user selects a suggestion chip. */
87
- onsuggestionselect?: ((label: string) => void) | undefined;
88
- };
89
- declare const ChatMessage: import("svelte").Component<ChatMessageProps, {}, "expanded" | "toolCallExpanded">;
90
- type ChatMessage = ReturnType<typeof ChatMessage>;
91
- export default ChatMessage;
@@ -1,27 +0,0 @@
1
- /**
2
- * Per-message read receipt badge for the Chat component.
3
- *
4
- * Rendered inside the `messageStatus` snippet slot of the user's message bubble.
5
- * Shows delivery/read state with BOTH an icon AND a text label (never color-only).
6
- *
7
- * Three states:
8
- * - `sent` — single check icon + "Sent" label (text-muted)
9
- * - `delivered` — double-check icon + "Delivered" label (text-muted)
10
- * - `read` — double-check icon + "Read" label (accent color)
11
- *
12
- * Accessibility:
13
- * - The wrapper has aria-label="Sent" / "Delivered" / "Read by …" (full text).
14
- * - Icon is aria-hidden="true".
15
- * - Visible text label is exposed in the accessibility tree (no aria-hidden).
16
- * - data-cinder-receipt-status=sent|delivered|read on the wrapper element.
17
- *
18
- * NOT shown on non-user messages — the caller gates this based on message.role.
19
- */
20
- import type { ReadReceipt } from '../chat.types.ts';
21
- export type ChatReadReceiptProps = {
22
- /** The receipt to render. */
23
- receipt: ReadReceipt;
24
- };
25
- declare const ChatReadReceipt: import("svelte").Component<ChatReadReceiptProps, {}, "">;
26
- type ChatReadReceipt = ReturnType<typeof ChatReadReceipt>;
27
- export default ChatReadReceipt;
@@ -1,17 +0,0 @@
1
- export type LightboxImage = {
2
- src: string;
3
- alt: string;
4
- };
5
- export type ImageLightboxProps = {
6
- /** Images to display in the lightbox */
7
- images: LightboxImage[];
8
- /** Index of the image to show initially */
9
- initialIndex?: number;
10
- /** Whether the lightbox is open */
11
- open?: boolean;
12
- /** Called when the lightbox is closed */
13
- onclose?: () => void;
14
- };
15
- declare const ImageLightbox: import("svelte").Component<ImageLightboxProps, {}, "open">;
16
- type ImageLightbox = ReturnType<typeof ImageLightbox>;
17
- export default ImageLightbox;
@@ -1,6 +0,0 @@
1
- export { default as ChatDateSeparator } from './chat-date-separator.svelte';
2
- export { default as ChatMessage } from './chat-message.svelte';
3
- export { default as ImageLightbox } from './image-lightbox.svelte';
4
- export { default as MessageAttachments } from './message-attachments.svelte';
5
- export { default as MessageContent } from './message-content.svelte';
6
- export { default as ToolCallGroup } from './tool-call-group.svelte';
@@ -1,8 +0,0 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- export type ChatMarkdownPreviewProps = Omit<HTMLAttributes<HTMLDivElement>, 'class'> & {
3
- content: string;
4
- class?: string;
5
- };
6
- declare const MarkdownPreview: import("svelte").Component<ChatMarkdownPreviewProps, {}, "">;
7
- type MarkdownPreview = ReturnType<typeof MarkdownPreview>;
8
- export default MarkdownPreview;
@@ -1,17 +0,0 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import type { MultiModalContent } from '../conversation-model.ts';
3
- export type MessageAttachmentsProps = Omit<HTMLAttributes<HTMLDivElement>, 'class'> & {
4
- /** Image parts from the message content */
5
- images: ReadonlyArray<MultiModalContent>;
6
- /** Lazy loading strategy */
7
- loading?: 'lazy' | 'eager';
8
- /** Called when an image loads */
9
- onimageload?: (index: number) => void;
10
- /** Called when an image fails to load */
11
- onimageerror?: (index: number, error: Event) => void;
12
- /** Additional CSS class */
13
- class?: string;
14
- };
15
- declare const MessageAttachments: import("svelte").Component<MessageAttachmentsProps, {}, "">;
16
- type MessageAttachments = ReturnType<typeof MessageAttachments>;
17
- export default MessageAttachments;
@@ -1,18 +0,0 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- export type MessageContentProps = Omit<HTMLAttributes<HTMLDivElement>, 'class'> & {
3
- /** Raw markdown/text content to render */
4
- content: string;
5
- /** Whether content is fully expanded */
6
- expanded?: boolean;
7
- /** Character threshold for truncation */
8
- threshold?: number;
9
- /** Whether this message is currently streaming */
10
- streaming?: boolean;
11
- /** Override content for streaming (partial token buffer) */
12
- overrideContent?: string | undefined;
13
- /** Additional CSS class */
14
- class?: string;
15
- };
16
- declare const MessageContent: import("svelte").Component<MessageContentProps, {}, "">;
17
- type MessageContent = ReturnType<typeof MessageContent>;
18
- export default MessageContent;
@@ -1,17 +0,0 @@
1
- import type { ImageMessagePart } from '../../utilities/types.ts';
2
- export type ImagePartProps = {
3
- /**
4
- * The contiguous run of image parts to render as one attachment group.
5
- *
6
- * Images are grouped rather than rendered one-per-component because the
7
- * attachment grid lays out by total count (`data-count`): one image is
8
- * centered, two sit side by side, three or more flow in an auto-fit grid.
9
- * Splitting them into independent single-image components would each render
10
- * with count 1 and break that layout — so the renderer collects adjacent
11
- * image parts and hands the whole run here.
12
- */
13
- parts: ImageMessagePart[];
14
- };
15
- declare const ImagePart: import("svelte").Component<ImagePartProps, {}, "">;
16
- type ImagePart = ReturnType<typeof ImagePart>;
17
- export default ImagePart;
@@ -1,8 +0,0 @@
1
- import type { MarkdownMessagePart } from '../../utilities/types.ts';
2
- export type MarkdownPartProps = {
3
- /** The markdown render part to display. */
4
- part: MarkdownMessagePart;
5
- };
6
- declare const MarkdownPart: import("svelte").Component<MarkdownPartProps, {}, "">;
7
- type MarkdownPart = ReturnType<typeof MarkdownPart>;
8
- export default MarkdownPart;
@@ -1,12 +0,0 @@
1
- import type { ReasoningMessagePart } from '../../utilities/types.ts';
2
- export type ReasoningPartProps = {
3
- /** The reasoning render part to display. */
4
- part: ReasoningMessagePart;
5
- /** Whether this reasoning block is expanded. Controlled by the parent (use-chat-disclosure-state). */
6
- expanded?: boolean;
7
- /** Called when the disclosure toggle is activated. */
8
- ontoggle?: (() => void) | undefined;
9
- };
10
- declare const ReasoningPart: import("svelte").Component<ReasoningPartProps, {}, "">;
11
- type ReasoningPart = ReturnType<typeof ReasoningPart>;
12
- export default ReasoningPart;
@@ -1,8 +0,0 @@
1
- import type { StepMessagePart } from '../../utilities/types.ts';
2
- export type StepPartProps = {
3
- /** The step render part to display. */
4
- part: StepMessagePart;
5
- };
6
- declare const StepPart: import("svelte").Component<StepPartProps, {}, "">;
7
- type StepPart = ReturnType<typeof StepPart>;
8
- export default StepPart;
@@ -1,18 +0,0 @@
1
- import type { SuggestionMessagePart } from '../../utilities/types.ts';
2
- export type SuggestionPartProps = {
3
- /** The suggestion render part to display. */
4
- part: SuggestionMessagePart;
5
- /** Called when the user selects this suggestion chip. */
6
- onsuggestionselect?: ((label: string) => void) | undefined;
7
- /**
8
- * Roving tabindex for APG toolbar keyboard navigation. The toolbar parent
9
- * sets `tabindex=0` on the active chip and `tabindex=-1` on all others so
10
- * Tab enters the toolbar at the active chip, then arrow keys move focus
11
- * within it. Defaults to `0` (all chips tabbable) when the toolbar does not
12
- * manage roving tabindex.
13
- */
14
- tabindex?: 0 | -1;
15
- };
16
- declare const SuggestionPart: import("svelte").Component<SuggestionPartProps, {}, "">;
17
- type SuggestionPart = ReturnType<typeof SuggestionPart>;
18
- export default SuggestionPart;
@@ -1,12 +0,0 @@
1
- import type { ToolApprovalMessagePart } from '../../utilities/types.ts';
2
- export type ToolApprovalPartProps = {
3
- /** The tool-approval render part. */
4
- part: ToolApprovalMessagePart;
5
- /** Called when the user approves the action. */
6
- onapprove?: ((toolCallId: string) => void) | undefined;
7
- /** Called when the user denies the action. */
8
- ondeny?: ((toolCallId: string) => void) | undefined;
9
- };
10
- declare const ToolApprovalPart: import("svelte").Component<ToolApprovalPartProps, {}, "">;
11
- type ToolApprovalPart = ReturnType<typeof ToolApprovalPart>;
12
- export default ToolApprovalPart;
@@ -1,12 +0,0 @@
1
- import type { ToolCallMessagePart } from '../../utilities/types.ts';
2
- export type ToolCallPartProps = {
3
- /** The tool-call render part (call + optional resolved result). */
4
- part: ToolCallMessagePart;
5
- /** Whether the tool-call card is expanded. Owned by the message. */
6
- expanded?: boolean;
7
- /** Called when the card's disclosure toggle is activated. */
8
- ontoggle?: (() => void) | undefined;
9
- };
10
- declare const ToolCallPart: import("svelte").Component<ToolCallPartProps, {}, "">;
11
- type ToolCallPart = ReturnType<typeof ToolCallPart>;
12
- export default ToolCallPart;
@@ -1,8 +0,0 @@
1
- import type { ToolResultMessagePart } from '../../utilities/types.ts';
2
- export type ToolResultPartProps = {
3
- /** The tool-result render part (the structured outcome). */
4
- part: ToolResultMessagePart;
5
- };
6
- declare const ToolResultPart: import("svelte").Component<ToolResultPartProps, {}, "">;
7
- type ToolResultPart = ReturnType<typeof ToolResultPart>;
8
- export default ToolResultPart;
@@ -1,15 +0,0 @@
1
- import type { HTMLAttributes } from 'svelte/elements';
2
- import type { ToolCallPair } from '../conversation-model.ts';
3
- export type ToolCallGroupProps = Omit<HTMLAttributes<HTMLDivElement>, 'class'> & {
4
- /** The tool call pair (call + optional result) */
5
- pair: ToolCallPair;
6
- /** Whether the details are expanded */
7
- expanded?: boolean;
8
- /** Called when toggle is clicked */
9
- ontoggle?: () => void;
10
- /** Additional CSS class */
11
- class?: string;
12
- };
13
- declare const ToolCallGroup: import("svelte").Component<ToolCallGroupProps, {}, "">;
14
- type ToolCallGroup = ReturnType<typeof ToolCallGroup>;
15
- export default ToolCallGroup;
@@ -1,9 +0,0 @@
1
- export type ToolPayloadCodeProps = {
2
- /** Structured payload text to render. */
3
- code: string;
4
- /** Additional CSS class. */
5
- class?: string;
6
- };
7
- declare const ToolPayloadCode: import("svelte").Component<ToolPayloadCodeProps, {}, "">;
8
- type ToolPayloadCode = ReturnType<typeof ToolPayloadCode>;
9
- export default ToolPayloadCode;
@@ -1,12 +0,0 @@
1
- /**
2
- * Conversation-reading helpers for Chat.
3
- *
4
- * These helpers operate on the Conversationalist transcript shape while keeping
5
- * Cinder's browser runtime free of the full conversation package.
6
- */
7
- import type { ConversationHistory, Message, ToolCallPair } from '../conversation-model.ts';
8
- export declare function getMessages(conversation: ConversationHistory, options?: {
9
- includeHidden?: boolean;
10
- }): Message[];
11
- /** Pairs tool calls with role-valid tool results from an already-ordered message array. */
12
- export declare function pairToolCallsWithResults(messages: ReadonlyArray<Message>): ToolCallPair[];
@@ -1,9 +0,0 @@
1
- /**
2
- * Chat data model helpers.
3
- *
4
- * Conversation-reading helpers ({@link getMessages}, {@link pairToolCallsWithResults})
5
- * and content/markdown utilities, all built on the Conversationalist model.
6
- */
7
- export { getMessages, pairToolCallsWithResults } from './conversation';
8
- export { type ChatExportOptions, type ChatMessagePart, type DeliveryStatus, type ImageMessagePart, type MarkdownMessagePart, type MessagePartDerivationContext, type ToolCallMessagePart, type ToolResultMessagePart, } from './types';
9
- export { CINDER_REASONING_METADATA_KEY, CINDER_STEPS_METADATA_KEY, CINDER_SUGGESTIONS_METADATA_KEY, deriveMessageParts, formatMessageAsMarkdown, getMessageParts, getMessageRoleLabel, getMessageText, messagesToMarkdown, resolveMessageReasoning, resolveMessageSteps, resolveMessageSuggestions, toMultiModalArray, } from './utilities';