@lostgradient/cinder 0.15.0 → 0.16.1

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 (338) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +3 -3
  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/data-table/index.js +88 -31
  8. package/dist/components/drawer/index.js +11 -11
  9. package/dist/components/focus-trap/index.d.ts +1 -0
  10. package/dist/components/focus-trap/index.js +171 -1
  11. package/dist/components/icons/index.d.ts +80 -1
  12. package/dist/components/icons/index.js +1256 -0
  13. package/dist/components/markdown-editor/index.js +170 -170
  14. package/dist/components/modal/index.js +20 -20
  15. package/dist/components/review-editor/index.js +170 -187
  16. package/dist/components/sheet/index.js +11 -11
  17. package/dist/components/sidebar/index.js +37 -37
  18. package/dist/components/table/index.js +85 -28
  19. package/dist/components/table/table.css +11 -0
  20. package/dist/components/table/table.schema.js +10 -1
  21. package/dist/components/table/table.types.d.ts +24 -1
  22. package/dist/index.d.ts +0 -8
  23. package/dist/index.js +23266 -30180
  24. package/dist/server/components/access-gate/index.js +7 -10
  25. package/dist/server/components/alert-dialog/index.js +4 -4
  26. package/dist/server/components/approval-card/index.js +6 -6
  27. package/dist/server/components/autocomplete/index.js +4 -4
  28. package/dist/server/components/choice-grid/index.js +2 -2
  29. package/dist/server/components/color-field/index.js +2 -2
  30. package/dist/server/components/combobox/index.js +3 -3
  31. package/dist/server/components/command-item/index.js +3 -5
  32. package/dist/server/components/command-menu/index.js +3 -5
  33. package/dist/server/components/confirm-dialog/index.js +4 -4
  34. package/dist/server/components/context-menu/index.js +7 -7
  35. package/dist/server/components/data-table/index.js +4 -4
  36. package/dist/server/components/date-picker/index.js +4 -4
  37. package/dist/server/components/date-range-field/index.js +4 -4
  38. package/dist/server/components/diff-viewer/index.js +9 -11
  39. package/dist/server/components/drawer/index.js +4 -4
  40. package/dist/server/components/dropdown/index.js +7 -7
  41. package/dist/server/components/faceted-filter-bar/index.js +2 -2
  42. package/dist/server/components/focus-trap/index.js +7 -2
  43. package/dist/server/components/icons/index.js +156 -0
  44. package/dist/server/components/inline-loading/index.js +1 -1
  45. package/dist/server/components/json-schema-editor/index.js +11 -13
  46. package/dist/server/components/load-more/index.js +2 -3
  47. package/dist/server/components/markdown-editor/index.js +13 -12
  48. package/dist/server/components/menu-bar/index.js +4 -4
  49. package/dist/server/components/modal/index.js +4 -4
  50. package/dist/server/components/popover/index.js +3 -3
  51. package/dist/server/components/review-editor/index.js +169 -122
  52. package/dist/server/components/schedule-builder/index.js +5 -5
  53. package/dist/server/components/schema-form/index.js +1 -1
  54. package/dist/server/components/segment/index.js +3 -3
  55. package/dist/server/components/segmented-control/index.js +4 -4
  56. package/dist/server/components/selection-popover/index.js +3 -3
  57. package/dist/server/components/sheet/index.js +3 -3
  58. package/dist/server/components/sidebar/index.js +4 -4
  59. package/dist/server/components/table/index.js +4 -4
  60. package/dist/server/components/tag-input/index.js +2 -2
  61. package/dist/server/index.js +272 -316
  62. package/dist/server/{index.server-dwwqssey.js → index.server-0qh3v3nq.js} +1 -1
  63. package/dist/server/index.server-25wmev4e.js +2 -0
  64. package/dist/server/{index.server-zdm63dt8.js → index.server-2c56kqws.js} +107 -25
  65. package/dist/server/{index.server-y4n8vc08.js → index.server-2pc5cv6c.js} +1 -1
  66. package/dist/server/{index.server-1vsv7ngz.js → index.server-3g76h7z7.js} +12 -2
  67. package/dist/server/{index.server-xz99aed4.js → index.server-45n4s30n.js} +12 -12
  68. package/dist/server/{index.server-zzd5wpbw.js → index.server-4dfs3xwn.js} +1 -1
  69. package/dist/server/{index.server-vhyjjx9z.js → index.server-4jkqgp17.js} +7 -9
  70. package/dist/server/{index.server-bmxbsk4y.js → index.server-51sxnete.js} +18 -18
  71. package/dist/server/{index.server-1bwvsnjk.js → index.server-6rv1rfwq.js} +37 -14
  72. package/dist/server/{index.server-np3c7kx0.js → index.server-7798gc22.js} +1 -1
  73. package/dist/server/{index.server-2m1kenak.js → index.server-7kjw6qw5.js} +1 -1
  74. package/dist/server/{index.server-tfftb7hs.js → index.server-7zpzspk6.js} +1 -1
  75. package/dist/server/{index.server-7yvpb6z7.js → index.server-894t97kv.js} +4 -4
  76. package/dist/server/{index.server-47v2fhp4.js → index.server-8b35ekqg.js} +1 -1
  77. package/dist/server/{index.server-j5hn2qds.js → index.server-8nm871y8.js} +80 -30
  78. package/dist/server/{index.server-h0cvwvhy.js → index.server-9drzqktm.js} +1 -1
  79. package/dist/server/{index.server-x9s4m9eg.js → index.server-agsdwg53.js} +1 -1
  80. package/dist/server/{index.server-hpeavvnq.js → index.server-b4gp066a.js} +1 -1
  81. package/dist/server/{index.server-gkazv439.js → index.server-bf7d81b4.js} +7 -7
  82. package/dist/server/{index.server-krqvnt6p.js → index.server-d4ft97bx.js} +4 -2
  83. package/dist/server/{index.server-t1x9h8cb.js → index.server-dg19y3m7.js} +1 -1
  84. package/dist/server/{index.server-jt1twhgk.js → index.server-dq0k0qf6.js} +10 -10
  85. package/dist/server/{index.server-pxq277t5.js → index.server-frb9e55d.js} +1 -1
  86. package/dist/server/{index.server-9kz37z89.js → index.server-g3726bja.js} +1 -1
  87. package/dist/server/{index.server-jdcq5zza.js → index.server-gwgm8gqg.js} +8 -8
  88. package/dist/server/index.server-gyzmkrnz.js +2 -0
  89. package/dist/server/{index.server-mr68brd6.js → index.server-jgdtsvz2.js} +1 -1
  90. package/dist/server/{index.server-p56xxef1.js → index.server-m8ya4p7w.js} +1 -1
  91. package/dist/server/{index.server-1nq7z1qw.js → index.server-mda2y5g6.js} +1 -1
  92. package/dist/server/{index.server-e89qfamd.js → index.server-mknhgg07.js} +4 -4
  93. package/dist/server/{index.server-j570vb03.js → index.server-mvjzcna5.js} +1 -1
  94. package/dist/server/index.server-n4jxy52q.js +2 -0
  95. package/dist/server/{index.server-eftvmq3f.js → index.server-pfbzz3x7.js} +1 -1
  96. package/dist/server/{index.server-zrh23kty.js → index.server-pyjzfjfn.js} +1 -1
  97. package/dist/server/{index.server-rga8sc7j.js → index.server-q1d48s9t.js} +40 -36
  98. package/dist/server/{index.server-46cjwcqw.js → index.server-qv0kkre4.js} +5 -5
  99. package/dist/server/{index.server-yhzydqxe.js → index.server-r82zjq88.js} +5 -5
  100. package/dist/server/{index.server-9ykk1kbg.js → index.server-rbd5ys4z.js} +1 -1
  101. package/dist/server/{index.server-tcay903b.js → index.server-tnecnach.js} +4 -4
  102. package/dist/server/{index.server-h89zk5ev.js → index.server-wasj5rbh.js} +8 -8
  103. package/dist/server/{index.server-9ra3xv88.js → index.server-x66zvjfc.js} +9 -9
  104. package/dist/server/index.server-xanq9ppe.js +119 -0
  105. package/dist/server/{index.server-6sh11ap6.js → index.server-y4kfz0er.js} +1 -1
  106. package/dist/server/{index.server-n82rcv0m.js → index.server-z721a5gp.js} +4 -4
  107. package/dist/server/{index.server-mm1xa3kr.js → index.server-zdhv33ph.js} +51 -20
  108. package/dist/server/{index.server-t3hknp1c.js → index.server-zm04d9eq.js} +4 -4
  109. package/dist/server/{index.server-nx9c2ep1.js → index.server-zncgb7mw.js} +2 -2
  110. package/package.json +10 -130
  111. package/src/components/focus-trap/index.ts +1 -0
  112. package/src/components/icons/index.ts +82 -40
  113. package/src/components/table/table.css +11 -0
  114. package/src/components/table/table.examples.json +3 -3
  115. package/src/components/table/table.schema.json +9 -0
  116. package/src/components/table/table.schema.ts +11 -0
  117. package/src/components/table/table.svelte +58 -14
  118. package/src/components/table/table.types.ts +27 -1
  119. package/src/index.ts +0 -34
  120. package/src/styles/components.css +0 -4
  121. package/dist/components/chat/adapter/chat-adapter.d.ts +0 -123
  122. package/dist/components/chat/adapter/index.d.ts +0 -8
  123. package/dist/components/chat/artifact/artifact-panel.svelte.d.ts +0 -15
  124. package/dist/components/chat/artifact/artifact-viewer.svelte.d.ts +0 -10
  125. package/dist/components/chat/artifact/chat-artifact-layout.svelte.d.ts +0 -23
  126. package/dist/components/chat/artifact/index.d.ts +0 -3
  127. package/dist/components/chat/builders.d.ts +0 -25
  128. package/dist/components/chat/chat.css +0 -16
  129. package/dist/components/chat/chat.css.d.ts +0 -1
  130. package/dist/components/chat/chat.schema.d.ts +0 -3
  131. package/dist/components/chat/chat.schema.js +0 -366
  132. package/dist/components/chat/chat.svelte.d.ts +0 -31
  133. package/dist/components/chat/chat.types.d.ts +0 -268
  134. package/dist/components/chat/chat.variables.d.ts +0 -2
  135. package/dist/components/chat/chat.variables.js +0 -61
  136. package/dist/components/chat/container/chat-events.d.ts +0 -22
  137. package/dist/components/chat/container/chat-history-trigger.svelte.d.ts +0 -15
  138. package/dist/components/chat/container/chat-jump-controls.svelte.d.ts +0 -24
  139. package/dist/components/chat/container/chat-participant-typing.svelte.d.ts +0 -31
  140. package/dist/components/chat/container/chat-search-bar.svelte.d.ts +0 -38
  141. package/dist/components/chat/container/chat-status-announcer.svelte.d.ts +0 -21
  142. package/dist/components/chat/container/chat.svelte.d.ts +0 -17
  143. package/dist/components/chat/container/index.d.ts +0 -12
  144. package/dist/components/chat/container/scroll-utilities.d.ts +0 -119
  145. package/dist/components/chat/container/use-chat-disclosure-state.svelte.d.ts +0 -58
  146. package/dist/components/chat/container/use-chat-keyboard-nav.svelte.d.ts +0 -57
  147. package/dist/components/chat/container/use-chat-message-groups.svelte.d.ts +0 -74
  148. package/dist/components/chat/container/use-chat-read-receipts.svelte.d.ts +0 -51
  149. package/dist/components/chat/container/use-chat-scroll-state.svelte.d.ts +0 -111
  150. package/dist/components/chat/container/use-chat-search.svelte.d.ts +0 -82
  151. package/dist/components/chat/container/use-chat-typing-indicator.svelte.d.ts +0 -76
  152. package/dist/components/chat/container/use-chat-unread-state.svelte.d.ts +0 -80
  153. package/dist/components/chat/container/use-chat-virtualizer.svelte.d.ts +0 -47
  154. package/dist/components/chat/conversation-model.d.ts +0 -16
  155. package/dist/components/chat/export/conversation-export-actions.svelte.d.ts +0 -17
  156. package/dist/components/chat/export/index.d.ts +0 -8
  157. package/dist/components/chat/index.d.ts +0 -25
  158. package/dist/components/chat/index.js +0 -11319
  159. package/dist/components/chat/input/attachment-kind.d.ts +0 -10
  160. package/dist/components/chat/input/chat-attachment-preview.svelte.d.ts +0 -8
  161. package/dist/components/chat/input/chat-attachment-serialization.d.ts +0 -9
  162. package/dist/components/chat/input/chat-attachment.d.ts +0 -11
  163. package/dist/components/chat/input/chat-input.svelte.d.ts +0 -79
  164. package/dist/components/chat/input/index.d.ts +0 -5
  165. package/dist/components/chat/message/chat-date-separator.svelte.d.ts +0 -12
  166. package/dist/components/chat/message/chat-message-parts-renderer.svelte.d.ts +0 -4
  167. package/dist/components/chat/message/chat-message-parts.d.ts +0 -96
  168. package/dist/components/chat/message/chat-message.svelte.d.ts +0 -91
  169. package/dist/components/chat/message/chat-read-receipt.svelte.d.ts +0 -27
  170. package/dist/components/chat/message/image-lightbox.svelte.d.ts +0 -17
  171. package/dist/components/chat/message/index.d.ts +0 -6
  172. package/dist/components/chat/message/markdown-preview.svelte.d.ts +0 -8
  173. package/dist/components/chat/message/message-attachments.svelte.d.ts +0 -17
  174. package/dist/components/chat/message/message-content.svelte.d.ts +0 -18
  175. package/dist/components/chat/message/parts/image-part.svelte.d.ts +0 -17
  176. package/dist/components/chat/message/parts/markdown-part.svelte.d.ts +0 -8
  177. package/dist/components/chat/message/parts/reasoning-part.svelte.d.ts +0 -12
  178. package/dist/components/chat/message/parts/step-part.svelte.d.ts +0 -8
  179. package/dist/components/chat/message/parts/suggestion-part.svelte.d.ts +0 -18
  180. package/dist/components/chat/message/parts/tool-approval-part.svelte.d.ts +0 -12
  181. package/dist/components/chat/message/parts/tool-call-part.svelte.d.ts +0 -12
  182. package/dist/components/chat/message/parts/tool-result-part.svelte.d.ts +0 -8
  183. package/dist/components/chat/message/tool-call-group.svelte.d.ts +0 -15
  184. package/dist/components/chat/message/tool-payload-code.svelte.d.ts +0 -9
  185. package/dist/components/chat/utilities/conversation.d.ts +0 -12
  186. package/dist/components/chat/utilities/index.d.ts +0 -9
  187. package/dist/components/chat/utilities/types.d.ts +0 -262
  188. package/dist/components/chat/utilities/utilities.d.ts +0 -140
  189. package/dist/components/chat-composer-popover/chat-composer-popover-filter.d.ts +0 -11
  190. package/dist/components/chat-composer-popover/chat-composer-popover.css +0 -7
  191. package/dist/components/chat-composer-popover/chat-composer-popover.css.d.ts +0 -1
  192. package/dist/components/chat-composer-popover/chat-composer-popover.schema.d.ts +0 -3
  193. package/dist/components/chat-composer-popover/chat-composer-popover.schema.js +0 -150
  194. package/dist/components/chat-composer-popover/chat-composer-popover.svelte.d.ts +0 -46
  195. package/dist/components/chat-composer-popover/chat-composer-popover.types.d.ts +0 -77
  196. package/dist/components/chat-composer-popover/chat-composer-popover.variables.d.ts +0 -2
  197. package/dist/components/chat-composer-popover/chat-composer-popover.variables.js +0 -61
  198. package/dist/components/chat-composer-popover/index.d.ts +0 -6
  199. package/dist/components/chat-composer-popover/index.js +0 -3285
  200. package/dist/components/chat-conversation-header/chat-conversation-header.css +0 -51
  201. package/dist/components/chat-conversation-header/chat-conversation-header.css.d.ts +0 -1
  202. package/dist/components/chat-conversation-header/chat-conversation-header.schema.d.ts +0 -3
  203. package/dist/components/chat-conversation-header/chat-conversation-header.schema.js +0 -94
  204. package/dist/components/chat-conversation-header/chat-conversation-header.svelte.d.ts +0 -19
  205. package/dist/components/chat-conversation-header/chat-conversation-header.types.d.ts +0 -18
  206. package/dist/components/chat-conversation-header/chat-conversation-header.variables.d.ts +0 -2
  207. package/dist/components/chat-conversation-header/chat-conversation-header.variables.js +0 -61
  208. package/dist/components/chat-conversation-header/index.d.ts +0 -5
  209. package/dist/components/chat-conversation-header/index.js +0 -4278
  210. package/dist/components/chat-conversation-list/chat-conversation-list.css +0 -127
  211. package/dist/components/chat-conversation-list/chat-conversation-list.css.d.ts +0 -1
  212. package/dist/components/chat-conversation-list/chat-conversation-list.schema.d.ts +0 -3
  213. package/dist/components/chat-conversation-list/chat-conversation-list.schema.js +0 -105
  214. package/dist/components/chat-conversation-list/chat-conversation-list.svelte.d.ts +0 -21
  215. package/dist/components/chat-conversation-list/chat-conversation-list.types.d.ts +0 -17
  216. package/dist/components/chat-conversation-list/chat-conversation-list.variables.d.ts +0 -2
  217. package/dist/components/chat-conversation-list/chat-conversation-list.variables.js +0 -61
  218. package/dist/components/chat-conversation-list/conversation-summary.d.ts +0 -30
  219. package/dist/components/chat-conversation-list/index.d.ts +0 -6
  220. package/dist/components/chat-conversation-list/index.js +0 -536
  221. package/dist/server/components/chat/index.js +0 -131
  222. package/dist/server/components/chat-composer-popover/index.js +0 -26
  223. package/dist/server/components/chat-conversation-header/index.js +0 -41
  224. package/dist/server/components/chat-conversation-list/index.js +0 -19
  225. package/dist/server/index.server-2bbwajb2.js +0 -54
  226. package/dist/server/index.server-2hqrv7ca.js +0 -9
  227. package/dist/server/index.server-67qgdypc.js +0 -9
  228. package/dist/server/index.server-6hnfzc7f.js +0 -263
  229. package/dist/server/index.server-8rmtb8vx.js +0 -175
  230. package/dist/server/index.server-a59y47rw.js +0 -59
  231. package/dist/server/index.server-bfkka7x4.js +0 -2
  232. package/dist/server/index.server-czf35aba.js +0 -4241
  233. package/dist/server/index.server-kb6w1a7c.js +0 -27
  234. package/dist/server/index.server-mzj20rfz.js +0 -77
  235. package/dist/server/index.server-nphtb2ey.js +0 -76
  236. package/dist/server/index.server-qkfd0qa7.js +0 -2
  237. package/dist/server/index.server-rf67m8v5.js +0 -2
  238. package/dist/server/index.server-rqe5bqgm.js +0 -37
  239. package/dist/server/index.server-xtjjmsyq.js +0 -315
  240. package/dist/server/index.server-yq9evnp4.js +0 -38
  241. package/dist/server/index.server-z1qvwaem.js +0 -74
  242. package/dist/server/index.server-z7hxtqs1.js +0 -83
  243. package/src/components/chat/adapter/chat-adapter.ts +0 -132
  244. package/src/components/chat/adapter/index.ts +0 -15
  245. package/src/components/chat/artifact/artifact-panel.svelte +0 -112
  246. package/src/components/chat/artifact/artifact-viewer.svelte +0 -101
  247. package/src/components/chat/artifact/chat-artifact-layout.svelte +0 -56
  248. package/src/components/chat/artifact/index.ts +0 -3
  249. package/src/components/chat/builders.ts +0 -464
  250. package/src/components/chat/chat.css +0 -16
  251. package/src/components/chat/chat.examples.json +0 -67
  252. package/src/components/chat/chat.schema.json +0 -290
  253. package/src/components/chat/chat.schema.ts +0 -335
  254. package/src/components/chat/chat.svelte +0 -67
  255. package/src/components/chat/chat.types.ts +0 -284
  256. package/src/components/chat/chat.variables.json +0 -1
  257. package/src/components/chat/chat.variables.ts +0 -3
  258. package/src/components/chat/container/chat-events.ts +0 -26
  259. package/src/components/chat/container/chat-history-trigger.svelte +0 -95
  260. package/src/components/chat/container/chat-jump-controls.svelte +0 -191
  261. package/src/components/chat/container/chat-participant-typing.svelte +0 -128
  262. package/src/components/chat/container/chat-search-bar.svelte +0 -219
  263. package/src/components/chat/container/chat-status-announcer.svelte +0 -22
  264. package/src/components/chat/container/chat.svelte +0 -1879
  265. package/src/components/chat/container/index.ts +0 -64
  266. package/src/components/chat/container/scroll-utilities.ts +0 -204
  267. package/src/components/chat/container/use-chat-disclosure-state.svelte.ts +0 -62
  268. package/src/components/chat/container/use-chat-keyboard-nav.svelte.ts +0 -153
  269. package/src/components/chat/container/use-chat-message-groups.svelte.ts +0 -146
  270. package/src/components/chat/container/use-chat-read-receipts.svelte.ts +0 -62
  271. package/src/components/chat/container/use-chat-scroll-state.svelte.ts +0 -292
  272. package/src/components/chat/container/use-chat-search.svelte.ts +0 -116
  273. package/src/components/chat/container/use-chat-typing-indicator.svelte.ts +0 -153
  274. package/src/components/chat/container/use-chat-unread-state.svelte.ts +0 -170
  275. package/src/components/chat/container/use-chat-virtualizer.svelte.ts +0 -260
  276. package/src/components/chat/conversation-model.ts +0 -56
  277. package/src/components/chat/export/conversation-export-actions.svelte +0 -174
  278. package/src/components/chat/export/index.ts +0 -9
  279. package/src/components/chat/index.ts +0 -160
  280. package/src/components/chat/input/attachment-kind.ts +0 -28
  281. package/src/components/chat/input/chat-attachment-preview.svelte +0 -223
  282. package/src/components/chat/input/chat-attachment-serialization.ts +0 -63
  283. package/src/components/chat/input/chat-attachment.ts +0 -12
  284. package/src/components/chat/input/chat-input.svelte +0 -810
  285. package/src/components/chat/input/index.ts +0 -9
  286. package/src/components/chat/message/chat-date-separator.svelte +0 -87
  287. package/src/components/chat/message/chat-message-parts-renderer.svelte +0 -139
  288. package/src/components/chat/message/chat-message-parts.ts +0 -163
  289. package/src/components/chat/message/chat-message.svelte +0 -861
  290. package/src/components/chat/message/chat-read-receipt.svelte +0 -85
  291. package/src/components/chat/message/image-lightbox.svelte +0 -255
  292. package/src/components/chat/message/index.ts +0 -6
  293. package/src/components/chat/message/markdown-preview.svelte +0 -77
  294. package/src/components/chat/message/message-attachments.svelte +0 -178
  295. package/src/components/chat/message/message-content.svelte +0 -132
  296. package/src/components/chat/message/parts/image-part.svelte +0 -11
  297. package/src/components/chat/message/parts/markdown-part.svelte +0 -17
  298. package/src/components/chat/message/parts/reasoning-part.svelte +0 -274
  299. package/src/components/chat/message/parts/step-part.svelte +0 -127
  300. package/src/components/chat/message/parts/suggestion-part.svelte +0 -83
  301. package/src/components/chat/message/parts/tool-approval-part.svelte +0 -298
  302. package/src/components/chat/message/parts/tool-call-part.svelte +0 -19
  303. package/src/components/chat/message/parts/tool-result-part.svelte +0 -65
  304. package/src/components/chat/message/tool-call-group.svelte +0 -274
  305. package/src/components/chat/message/tool-payload-code.svelte +0 -35
  306. package/src/components/chat/utilities/conversation.ts +0 -44
  307. package/src/components/chat/utilities/index.ts +0 -33
  308. package/src/components/chat/utilities/types.ts +0 -288
  309. package/src/components/chat/utilities/utilities.ts +0 -507
  310. package/src/components/chat-composer-popover/chat-composer-popover-filter.ts +0 -68
  311. package/src/components/chat-composer-popover/chat-composer-popover.css +0 -7
  312. package/src/components/chat-composer-popover/chat-composer-popover.examples.json +0 -13
  313. package/src/components/chat-composer-popover/chat-composer-popover.schema.json +0 -90
  314. package/src/components/chat-composer-popover/chat-composer-popover.schema.ts +0 -95
  315. package/src/components/chat-composer-popover/chat-composer-popover.svelte +0 -234
  316. package/src/components/chat-composer-popover/chat-composer-popover.types.ts +0 -88
  317. package/src/components/chat-composer-popover/chat-composer-popover.variables.json +0 -1
  318. package/src/components/chat-composer-popover/chat-composer-popover.variables.ts +0 -3
  319. package/src/components/chat-composer-popover/index.ts +0 -19
  320. package/src/components/chat-conversation-header/chat-conversation-header.css +0 -51
  321. package/src/components/chat-conversation-header/chat-conversation-header.examples.json +0 -13
  322. package/src/components/chat-conversation-header/chat-conversation-header.schema.json +0 -34
  323. package/src/components/chat-conversation-header/chat-conversation-header.schema.ts +0 -38
  324. package/src/components/chat-conversation-header/chat-conversation-header.svelte +0 -49
  325. package/src/components/chat-conversation-header/chat-conversation-header.types.ts +0 -20
  326. package/src/components/chat-conversation-header/chat-conversation-header.variables.json +0 -1
  327. package/src/components/chat-conversation-header/chat-conversation-header.variables.ts +0 -3
  328. package/src/components/chat-conversation-header/index.ts +0 -9
  329. package/src/components/chat-conversation-list/chat-conversation-list.css +0 -127
  330. package/src/components/chat-conversation-list/chat-conversation-list.examples.json +0 -13
  331. package/src/components/chat-conversation-list/chat-conversation-list.schema.json +0 -45
  332. package/src/components/chat-conversation-list/chat-conversation-list.schema.ts +0 -52
  333. package/src/components/chat-conversation-list/chat-conversation-list.svelte +0 -75
  334. package/src/components/chat-conversation-list/chat-conversation-list.types.ts +0 -18
  335. package/src/components/chat-conversation-list/chat-conversation-list.variables.json +0 -1
  336. package/src/components/chat-conversation-list/chat-conversation-list.variables.ts +0 -3
  337. package/src/components/chat-conversation-list/conversation-summary.ts +0 -88
  338. package/src/components/chat-conversation-list/index.ts +0 -11
@@ -18,6 +18,10 @@
18
18
  "type": "boolean",
19
19
  "description": "Enables the leading selection column on the entire table. When true:\n- The single `TableRow` inside `TableHeader` renders a leading `<th>`\n with a select-all checkbox sourced from the header's props.\n- Every `TableRow` inside `TableBody` renders a leading selection cell.\nSelection is strictly controlled — the consumer owns all selection state."
20
20
  },
21
+ "scrollable": {
22
+ "type": "boolean",
23
+ "description": "When true, wraps the table in a `.cinder-table-scroll` container that\nenables horizontal overflow scrolling for dense or unknown-width tables.\nUse this instead of manually wrapping Table in `.cinder-table-scroll`.\n\nWhen combined with `stickyHeader`, the generated wrapper is the sticky\nheader's scroll container. Set a bounded block size on `scrollContainerProps`\nwhen the table should scroll vertically inside that wrapper."
24
+ },
21
25
  "class": {
22
26
  "type": "string",
23
27
  "description": "Additional class names merged with `.cinder-table`."
@@ -32,6 +36,11 @@
32
36
  "required": true,
33
37
  "description": "TableHeader, TableBody, etc."
34
38
  },
39
+ {
40
+ "name": "scrollContainerProps",
41
+ "reason": "unknown-shape",
42
+ "description": "Attributes forwarded to the generated `.cinder-table-scroll` wrapper when\n`scrollable` is true. The wrapper is focusable by default so keyboard users\ncan scroll read-only wide tables. When the table has a caption, or when\n`aria-label` or `aria-labelledby` is provided here, the wrapper becomes a\nnamed `region`; pass `role` or `tabindex` here to override those defaults."
43
+ },
35
44
  {
36
45
  "name": "sort",
37
46
  "reason": "unknown-shape",
@@ -22,6 +22,11 @@ const schema = {
22
22
  description:
23
23
  "Enables the leading selection column on the entire table. When true:\n- The single `TableRow` inside `TableHeader` renders a leading `<th>`\n with a select-all checkbox sourced from the header's props.\n- Every `TableRow` inside `TableBody` renders a leading selection cell.\nSelection is strictly controlled — the consumer owns all selection state.",
24
24
  },
25
+ scrollable: {
26
+ type: 'boolean',
27
+ description:
28
+ "When true, wraps the table in a `.cinder-table-scroll` container that\nenables horizontal overflow scrolling for dense or unknown-width tables.\nUse this instead of manually wrapping Table in `.cinder-table-scroll`.\n\nWhen combined with `stickyHeader`, the generated wrapper is the sticky\nheader's scroll container. Set a bounded block size on `scrollContainerProps`\nwhen the table should scroll vertically inside that wrapper.",
29
+ },
25
30
  class: {
26
31
  type: 'string',
27
32
  description: 'Additional class names merged with `.cinder-table`.',
@@ -36,6 +41,12 @@ const schema = {
36
41
  required: true,
37
42
  description: 'TableHeader, TableBody, etc.',
38
43
  },
44
+ {
45
+ name: 'scrollContainerProps',
46
+ reason: 'unknown-shape',
47
+ description:
48
+ 'Attributes forwarded to the generated `.cinder-table-scroll` wrapper when\n`scrollable` is true. The wrapper is focusable by default so keyboard users\ncan scroll read-only wide tables. When the table has a caption, or when\n`aria-label` or `aria-labelledby` is provided here, the wrapper becomes a\nnamed `region`; pass `role` or `tabindex` here to override those defaults.',
49
+ },
39
50
  {
40
51
  name: 'sort',
41
52
  reason: 'unknown-shape',
@@ -6,7 +6,33 @@ export {};
6
6
  import { setTableContext } from './table.context.ts';
7
7
  import { classNames } from '../../utilities/class-names.ts';
8
8
  import { useResizeObserver } from '../../utilities/use-resize-observer.svelte.ts';
9
- let { sort = $bindable(), caption, stickyHeader = false, density = 'comfortable', selectable = false, class: className, children, ...rest } = $props();
9
+ let { sort = $bindable(), caption, stickyHeader = false, density = 'comfortable', selectable = false, scrollable = false, scrollContainerProps, class: className, children, ...rest } = $props();
10
+ const wrapperClassName = $derived(scrollContainerProps?.class);
11
+ const wrapperAriaLabelledBy = $derived(normalizeOptionalAttribute(scrollContainerProps?.['aria-labelledby']));
12
+ const explicitWrapperAriaLabel = $derived(normalizeOptionalAttribute(scrollContainerProps?.['aria-label']));
13
+ const explicitWrapperRole = $derived(normalizeOptionalAttribute(scrollContainerProps?.role));
14
+ const normalizedCaption = $derived(normalizeOptionalAttribute(caption));
15
+ const wrapperAriaLabel = $derived(explicitWrapperAriaLabel ??
16
+ (wrapperAriaLabelledBy
17
+ ? undefined
18
+ : normalizedCaption
19
+ ? `${normalizedCaption} table scroll area`
20
+ : undefined));
21
+ const wrapperRole = $derived(explicitWrapperRole ?? (wrapperAriaLabel || wrapperAriaLabelledBy ? 'region' : undefined));
22
+ const wrapperTabindex = $derived(normalizeOptionalTabindex(scrollContainerProps?.tabindex) ?? 0);
23
+ function normalizeOptionalAttribute(value) {
24
+ return typeof value === 'string' && value.trim().length > 0 ? value.trim() : undefined;
25
+ }
26
+ function normalizeOptionalTabindex(value) {
27
+ if (typeof value === 'number' && Number.isInteger(value))
28
+ return value;
29
+ if (typeof value !== 'string')
30
+ return undefined;
31
+ const normalizedValue = value.trim();
32
+ if (!/^-?\d+$/.test(normalizedValue))
33
+ return undefined;
34
+ return Number(normalizedValue);
35
+ }
10
36
  // A native <caption> (caption-side: top) renders above the table's border box
11
37
  // but inside the same scroll container, so a sticky <thead> pinned at top: 0
12
38
  // would overlap it. The caption's height is not knowable in pure CSS — `1lh`
@@ -46,16 +72,34 @@ setTableContext({
46
72
  });
47
73
  </script>
48
74
 
49
- <table
50
- {...rest}
51
- class={classNames('cinder-table', className)}
52
- data-cinder-sticky-header={stickyHeader || undefined}
53
- data-cinder-density={density}
54
- data-cinder-selectable={selectable || undefined}
55
- style:--cinder-table-caption-height={caption ? `${captionHeight}px` : undefined}
56
- >
57
- {#if caption}
58
- <caption class="cinder-table__caption" {@attach measureCaption}>{caption}</caption>
59
- {/if}
60
- {@render children()}
61
- </table>
75
+ {#snippet table()}
76
+ <table
77
+ {...rest}
78
+ class={classNames('cinder-table', className)}
79
+ data-cinder-sticky-header={stickyHeader || undefined}
80
+ data-cinder-density={density}
81
+ data-cinder-selectable={selectable || undefined}
82
+ style:--cinder-table-caption-height={normalizedCaption ? `${captionHeight}px` : undefined}
83
+ >
84
+ {#if normalizedCaption}
85
+ <caption class="cinder-table__caption" {@attach measureCaption}>{normalizedCaption}</caption>
86
+ {/if}
87
+ {@render children()}
88
+ </table>
89
+ {/snippet}
90
+
91
+ {#if scrollable}
92
+ <!-- svelte-ignore a11y_no_noninteractive_tabindex -->
93
+ <div
94
+ {...scrollContainerProps}
95
+ class={classNames('cinder-table-scroll', wrapperClassName)}
96
+ role={wrapperRole}
97
+ aria-label={wrapperAriaLabel}
98
+ aria-labelledby={wrapperAriaLabelledBy}
99
+ tabindex={wrapperTabindex}
100
+ >
101
+ {@render table()}
102
+ </div>
103
+ {:else}
104
+ {@render table()}
105
+ {/if}
@@ -1,5 +1,5 @@
1
1
  import type { Snippet } from 'svelte';
2
- import type { HTMLTableAttributes } from 'svelte/elements';
2
+ import type { HTMLAttributes, HTMLTableAttributes } from 'svelte/elements';
3
3
  /** Sort direction. */
4
4
  export type SortDirection = 'ascending' | 'descending';
5
5
  /** Bound sort state shape. */
@@ -40,6 +40,14 @@ export type TableContext = {
40
40
  /** Mirror of Table.selectable. Set synchronously at construction time. */
41
41
  readonly selectionEnabled?: boolean;
42
42
  };
43
+ /** Attributes forwarded to Table's generated scroll wrapper. */
44
+ export type TableScrollContainerProps = Omit<
45
+ HTMLAttributes<HTMLDivElement>,
46
+ 'children' | 'class'
47
+ > & {
48
+ /** Additional class names merged with `.cinder-table-scroll`. */
49
+ class?: string;
50
+ };
43
51
  /**
44
52
  * Props for the Table component.
45
53
  *
@@ -75,6 +83,24 @@ export type TableProps = Omit<HTMLTableAttributes, 'class'> & {
75
83
  * Selection is strictly controlled — the consumer owns all selection state.
76
84
  */
77
85
  selectable?: boolean;
86
+ /**
87
+ * When true, wraps the table in a `.cinder-table-scroll` container that
88
+ * enables horizontal overflow scrolling for dense or unknown-width tables.
89
+ * Use this instead of manually wrapping Table in `.cinder-table-scroll`.
90
+ *
91
+ * When combined with `stickyHeader`, the generated wrapper is the sticky
92
+ * header's scroll container. Set a bounded block size on `scrollContainerProps`
93
+ * when the table should scroll vertically inside that wrapper.
94
+ */
95
+ scrollable?: boolean;
96
+ /**
97
+ * Attributes forwarded to the generated `.cinder-table-scroll` wrapper when
98
+ * `scrollable` is true. The wrapper is focusable by default so keyboard users
99
+ * can scroll read-only wide tables. When the table has a caption, or when
100
+ * `aria-label` or `aria-labelledby` is provided here, the wrapper becomes a
101
+ * named `region`; pass `role` or `tabindex` here to override those defaults.
102
+ */
103
+ scrollContainerProps?: TableScrollContainerProps;
78
104
  /** Additional class names merged with `.cinder-table`. */
79
105
  class?: string;
80
106
  /** TableHeader, TableBody, etc. */
package/src/index.ts CHANGED
@@ -153,40 +153,6 @@ export type {
153
153
  CarouselSlideContent,
154
154
  } from './components/carousel/index.ts';
155
155
 
156
- export { default as Chat } from './components/chat/index.ts';
157
- export type { ChatProps } from './components/chat/index.ts';
158
-
159
- export {
160
- default as ChatComposerPopover,
161
- filterFuzzySubsequence,
162
- fuzzySubsequenceScore,
163
- } from './components/chat-composer-popover/index.ts';
164
- export type {
165
- ChatComposerPopoverComposerProps,
166
- ChatComposerPopoverItem,
167
- ChatComposerPopoverItemSnippetContext,
168
- ChatComposerPopoverProps,
169
- ChatComposerPopoverSelection,
170
- ChatComposerPopoverTriggerMatch,
171
- FuzzyFilterItem,
172
- FuzzyFilterResult,
173
- } from './components/chat-composer-popover/index.ts';
174
-
175
- export { default as ChatConversationHeader } from './components/chat-conversation-header/index.ts';
176
- export type {
177
- ChatConversationHeaderHeadingLevel,
178
- ChatConversationHeaderProps,
179
- } from './components/chat-conversation-header/index.ts';
180
-
181
- export {
182
- default as ChatConversationList,
183
- deriveConversationSummary,
184
- } from './components/chat-conversation-list/index.ts';
185
- export type {
186
- ChatConversationListProps,
187
- ConversationSummary,
188
- } from './components/chat-conversation-list/index.ts';
189
-
190
156
  export { default as ChoiceGrid } from './components/choice-grid/index.ts';
191
157
  export type {
192
158
  ChoiceGridColumns,
@@ -36,10 +36,6 @@
36
36
  @import '../components/card/card.css';
37
37
  @import '../components/carousel/carousel.css';
38
38
  @import '../components/capability-gate/capability-gate.css';
39
- @import '../components/chat-conversation-header/chat-conversation-header.css';
40
- @import '../components/chat-conversation-list/chat-conversation-list.css';
41
- @import '../components/chat-composer-popover/chat-composer-popover.css';
42
- @import '../components/chat/chat.css';
43
39
  @import '../components/chip/chip.css';
44
40
  @import '../components/choice-grid/choice-grid.css';
45
41
  @import '../components/checkbox/checkbox.css';
@@ -1,123 +0,0 @@
1
- /**
2
- * Optional adapter event/transport seam for the Chat component.
3
- *
4
- * `ChatAdapter` names the send / retry / edit / stop / tool-approval / history /
5
- * real-time contract around the existing `conversation` prop WITHOUT coupling
6
- * Chat to any transport. It is purely an event boundary — NOT a second
7
- * conversation model. Every method parameter and every push payload uses the
8
- * Conversationalist types from `../conversation-model.ts`, so a consumer whose
9
- * authoritative transcript lives in `conversationalist` can pass a plain
10
- * `ConversationHistory` snapshot to `<Chat>` and wire an adapter with zero
11
- * adaptation. This module is TYPE-ONLY — it ships no runtime code and imports
12
- * nothing at runtime, so it is trivially SSR-safe.
13
- *
14
- * The adapter is always optional. When omitted, Chat behaves exactly as it does
15
- * with its plain callback props (`onsubmit` / `onretry` / `onedit` /
16
- * `onstopgenerating`); the internal command dispatcher routes both paths
17
- * identically (adapter method first, callback fallback).
18
- *
19
- * @module
20
- */
21
- import type { Message, MessageInput, ToolCall, ToolResult } from '../conversation-model.ts';
22
- import type { ChatAttachment } from '../input/chat-attachment.ts';
23
- /**
24
- * A read-receipt push event: a message was read at a point in time. The payload
25
- * is an object (not positional args) so later tasks can extend it — e.g. with a
26
- * participant id — without a breaking signature change.
27
- */
28
- export type ChatReadReceiptEvent = {
29
- /** The id of the message that was read. */
30
- messageId: string;
31
- /** ISO-8601 timestamp at which the message was read. */
32
- readAt: string;
33
- /**
34
- * Optional list of reader display names. When present, the read receipt badge
35
- * will show "Read by Alice, Bob" in its accessible label.
36
- */
37
- readBy?: string[];
38
- };
39
- /**
40
- * Push handlers Chat hands to {@link ChatAdapter.subscribe}. The adapter invokes
41
- * these as real-time transport events arrive.
42
- *
43
- * Streaming handlers drive Chat's own imperative streaming buffer
44
- * (`onStreamBegin`/`onTokenPush`/`onStreamEnd` → `beginStreaming`/`pushToken`/
45
- * `endStreaming`), so a push-driven stream is fully self-contained — the
46
- * consumer does not also have to call the imperative API by hand.
47
- *
48
- * Transcript/peripheral handlers (`onMessage`/`onTypingChange`/`onReadReceipt`)
49
- * concern state Chat does NOT own (the consumer owns `conversation`), so Chat
50
- * forwards them verbatim to the matching pass-through callback props. It never
51
- * mutates `conversation` in response.
52
- */
53
- export type ChatPushHandlers = {
54
- /** A new (or updated) message arrived. Forwarded to the consumer; Chat does not mutate the transcript. */
55
- onMessage: (message: Message) => void;
56
- /** A participant's typing state changed. Forwarded to the consumer. */
57
- onTypingChange: (isTyping: boolean) => void;
58
- /** A read receipt arrived. Forwarded to the consumer. */
59
- onReadReceipt: (event: ChatReadReceiptEvent) => void;
60
- /** Streaming began for a message — drives Chat's `beginStreaming(messageId)`. */
61
- onStreamBegin: (messageId: string) => void;
62
- /** A streaming token arrived — drives Chat's `pushToken(token)`. */
63
- onTokenPush: (token: string) => void;
64
- /** Streaming ended — drives Chat's `endStreaming()`. */
65
- onStreamEnd: () => void;
66
- };
67
- /**
68
- * Optional command/transport boundary around `<Chat conversation={…}>`.
69
- *
70
- * Only `sendMessage` is required; everything else is optional so an adapter can
71
- * opt into exactly the capabilities its transport supports. Command methods
72
- * return `Promise<void>` — Chat awaits them and routes any failure (a rejected
73
- * promise OR a synchronous throw from the method) to `onadaptererror` rather
74
- * than swallowing it.
75
- *
76
- * The optional `approveToolCall`/`denyToolCall` (consumed by the tool-approval
77
- * task) and `loadOlderMessages` (consumed by the load-history task) are declared
78
- * here so the seam is complete; their UI wiring lands with those tasks.
79
- */
80
- export type ChatAdapter = {
81
- /** Send a composed message with its attachments. */
82
- sendMessage: (message: MessageInput, attachments: ChatAttachment[]) => Promise<void>;
83
- /** Retry a previously-failed message by id. */
84
- retryMessage?: (messageId: string) => Promise<void>;
85
- /** Commit an edit to a user message. */
86
- editMessage?: (event: {
87
- messageId: string;
88
- content: string;
89
- }) => Promise<void>;
90
- /** Stop an in-progress generation for a message. */
91
- stopGenerating?: (messageId: string) => Promise<void>;
92
- /**
93
- * Load a page of older messages for the given conversation. Returns whether
94
- * more remain. (UI wired by the load-history task.)
95
- */
96
- loadOlderMessages?: (conversationId: string) => Promise<{
97
- hasMore: boolean;
98
- }>;
99
- /**
100
- * Subscribe to real-time events for a conversation. Receives the conversation
101
- * id (so the transport knows which channel to open) plus the push handlers,
102
- * and returns an unsubscribe function Chat calls on teardown.
103
- */
104
- subscribe?: (conversationId: string, handlers: ChatPushHandlers) => () => void;
105
- /** Approve an action-required tool call by id. (UI wired by the tool-approval task.) */
106
- approveToolCall?: (toolCallId: string) => Promise<void>;
107
- /** Reject an action-required tool call by id. (UI wired by the tool-approval task.) */
108
- denyToolCall?: (toolCallId: string) => Promise<void>;
109
- };
110
- /**
111
- * The set of commands the internal dispatcher routes. Used to tag an
112
- * {@link ChatAdapterErrorEvent} so a consumer can tell which command failed.
113
- */
114
- export type ChatCommand = 'sendMessage' | 'retryMessage' | 'editMessage' | 'stopGenerating' | 'loadOlderMessages' | 'approveToolCall' | 'denyToolCall';
115
- /** Error event surfaced when an adapter command fails (rejection or sync throw). */
116
- export type ChatAdapterErrorEvent = {
117
- /** Which command's adapter method failed. */
118
- command: ChatCommand;
119
- /** The thrown value. */
120
- error: unknown;
121
- };
122
- /** Re-export the mirror types an adapter author needs, from one place. */
123
- export type { Message, MessageInput, ToolCall, ToolResult };
@@ -1,8 +0,0 @@
1
- /**
2
- * Chat adapter seam — the optional event/transport boundary around `<Chat>`.
3
- *
4
- * Type-only; see `./chat-adapter.ts`.
5
- *
6
- * @module
7
- */
8
- export type { ChatAdapter, ChatAdapterErrorEvent, ChatCommand, ChatPushHandlers, ChatReadReceiptEvent, } from './chat-adapter.ts';
@@ -1,15 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- export type ArtifactPanelProps = {
3
- /**
4
- * Unique identifier for this panel instance. Used to namespace the title
5
- * element's DOM ID so that multiple ArtifactPanel instances on the same
6
- * page do not produce duplicate IDs.
7
- */
8
- instanceId?: string;
9
- title?: string | undefined;
10
- onclose?: (() => void) | undefined;
11
- children: Snippet;
12
- };
13
- declare const ArtifactPanel: import("svelte").Component<ArtifactPanelProps, {}, "">;
14
- type ArtifactPanel = ReturnType<typeof ArtifactPanel>;
15
- export default ArtifactPanel;
@@ -1,10 +0,0 @@
1
- export type ArtifactContentType = 'html' | 'svg' | 'code' | 'mermaid';
2
- export type ArtifactViewerProps = {
3
- type: ArtifactContentType;
4
- content: string;
5
- language?: string;
6
- title?: string;
7
- };
8
- declare const ArtifactViewer: import("svelte").Component<ArtifactViewerProps, {}, "">;
9
- type ArtifactViewer = ReturnType<typeof ArtifactViewer>;
10
- export default ArtifactViewer;
@@ -1,23 +0,0 @@
1
- import type { Snippet } from 'svelte';
2
- export type ChatArtifactLayoutProps = {
3
- /**
4
- * Unique identifier for this layout instance. Passed to the ArtifactPanel
5
- * to namespace the title element ID and avoid duplicate IDs when multiple
6
- * instances share a page.
7
- */
8
- instanceId?: string;
9
- /** Whether the artifact panel is open */
10
- open?: boolean;
11
- /** Content for the main chat area */
12
- children: Snippet;
13
- /** Content for the artifact panel */
14
- panel?: Snippet;
15
- /** Title for the artifact panel */
16
- panelTitle?: string | undefined;
17
- /** Called when the panel is closed */
18
- onclose?: (() => void) | undefined;
19
- class?: string;
20
- };
21
- declare const ChatArtifactLayout: import("svelte").Component<ChatArtifactLayoutProps, {}, "">;
22
- type ChatArtifactLayout = ReturnType<typeof ChatArtifactLayout>;
23
- export default ChatArtifactLayout;
@@ -1,3 +0,0 @@
1
- export { default as ArtifactPanel } from './artifact-panel.svelte';
2
- export { default as ArtifactViewer } from './artifact-viewer.svelte';
3
- export { default as ChatArtifactLayout } from './chat-artifact-layout.svelte';
@@ -1,25 +0,0 @@
1
- /**
2
- * Conversation builders for the Chat component.
3
- *
4
- * Chat renders a {@link ConversationHistory} snapshot. These helpers construct
5
- * the published Conversationalist shape without importing the package runtime
6
- * into Cinder's browser graph.
7
- */
8
- import type { ConversationEnvironment, ConversationHistory, ConversationStatus, JSONValue, MessageInput } from './conversation-model.ts';
9
- type CreateConversationOptions = {
10
- id?: string;
11
- title?: string;
12
- status?: ConversationStatus;
13
- metadata?: Record<string, JSONValue>;
14
- };
15
- type ConversationEnvironmentInput = Partial<ConversationEnvironment>;
16
- /** Creates a new empty conversation snapshot. */
17
- declare function createConversation(options?: CreateConversationOptions, environment?: ConversationEnvironmentInput): ConversationHistory;
18
- /** Appends one or more messages, preserving the previous no-op identity contract. */
19
- declare function appendMessages(conversation: ConversationHistory, ...inputs: MessageInput[]): ConversationHistory;
20
- declare function appendMessages(conversation: ConversationHistory, ...inputsAndEnvironment: [...MessageInput[], ConversationEnvironmentInput | undefined]): ConversationHistory;
21
- declare function appendUserMessage(conversation: ConversationHistory, content: MessageInput['content'], metadata?: Record<string, JSONValue>, environment?: ConversationEnvironmentInput): ConversationHistory;
22
- declare function appendUserMessage(conversation: ConversationHistory, content: MessageInput['content'], environment?: ConversationEnvironmentInput): ConversationHistory;
23
- declare function appendAssistantMessage(conversation: ConversationHistory, content: MessageInput['content'], metadata?: Record<string, JSONValue>, environment?: ConversationEnvironmentInput): ConversationHistory;
24
- declare function appendAssistantMessage(conversation: ConversationHistory, content: MessageInput['content'], environment?: ConversationEnvironmentInput): ConversationHistory;
25
- export { appendAssistantMessage, appendMessages, appendUserMessage, createConversation };
@@ -1,16 +0,0 @@
1
- @layer cinder.tokens, cinder.foundation, cinder.components, cinder.utilities;
2
- @layer cinder.components {
3
- .cinder-chat.chat-container {
4
- container-type: inline-size;
5
- display: flex;
6
- flex-direction: column;
7
- height: 100%;
8
- min-height: 0;
9
- }
10
-
11
- .cinder-chat .chat-timeline {
12
- flex: 1;
13
- min-height: 0;
14
- overflow-y: auto;
15
- }
16
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,3 +0,0 @@
1
- import type { ComponentSchema } from '../../schema-types';
2
- declare const _default: ComponentSchema;
3
- export default _default;