@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,44 +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
-
8
- import type {
9
- ConversationHistory,
10
- Message,
11
- ToolCallPair,
12
- ToolResult,
13
- } from '../conversation-model.ts';
14
-
15
- export function getMessages(
16
- conversation: ConversationHistory,
17
- options: { includeHidden?: boolean } = {},
18
- ): Message[] {
19
- return conversation.ids
20
- .map((id) => conversation.messages[id])
21
- .filter((message): message is Message => message !== undefined)
22
- .filter((message) => options.includeHidden === true || !message.hidden);
23
- }
24
-
25
- /** Pairs tool calls with role-valid tool results from an already-ordered message array. */
26
- export function pairToolCallsWithResults(messages: ReadonlyArray<Message>): ToolCallPair[] {
27
- const resultsByCallId = new Map<string, ToolResult>();
28
- for (const message of messages) {
29
- if (message.role === 'tool-result' && message.toolResult !== undefined) {
30
- resultsByCallId.set(message.toolResult.callId, message.toolResult);
31
- }
32
- }
33
-
34
- const pairs: ToolCallPair[] = [];
35
- for (const message of messages) {
36
- if (message.role === 'tool-call' && message.toolCall !== undefined) {
37
- pairs.push({
38
- call: message.toolCall,
39
- result: resultsByCallId.get(message.toolCall.id),
40
- });
41
- }
42
- }
43
- return pairs;
44
- }
@@ -1,33 +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
-
8
- export { getMessages, pairToolCallsWithResults } from './conversation';
9
- export {
10
- type ChatExportOptions,
11
- type ChatMessagePart,
12
- type DeliveryStatus,
13
- type ImageMessagePart,
14
- type MarkdownMessagePart,
15
- type MessagePartDerivationContext,
16
- type ToolCallMessagePart,
17
- type ToolResultMessagePart,
18
- } from './types';
19
- export {
20
- CINDER_REASONING_METADATA_KEY,
21
- CINDER_STEPS_METADATA_KEY,
22
- CINDER_SUGGESTIONS_METADATA_KEY,
23
- deriveMessageParts,
24
- formatMessageAsMarkdown,
25
- getMessageParts,
26
- getMessageRoleLabel,
27
- getMessageText,
28
- messagesToMarkdown,
29
- resolveMessageReasoning,
30
- resolveMessageSteps,
31
- resolveMessageSuggestions,
32
- toMultiModalArray,
33
- } from './utilities';
@@ -1,288 +0,0 @@
1
- /**
2
- * Chat data model types built on top of the published Conversationalist model.
3
- *
4
- * Core types live in `../conversation-model.ts`; this module provides only
5
- * project-specific extensions, including the cinder-OWNED render-part layer
6
- * (`ChatMessagePart`) that sits on top of the structural `Message` mirror.
7
- */
8
-
9
- import type {
10
- Message,
11
- MultiModalContent,
12
- ToMarkdownOptions,
13
- ToolAction,
14
- ToolCall,
15
- ToolCallPair,
16
- ToolResult,
17
- } from '../conversation-model.ts';
18
-
19
- /**
20
- * Delivery status for messages in the UI.
21
- * This is transient state stored in message metadata with a `_` prefix
22
- * (e.g., `_deliveryStatus`) so it's automatically stripped on export.
23
- */
24
- export type DeliveryStatus = 'draft' | 'sending' | 'sent' | 'failed';
25
-
26
- /**
27
- * Options for exporting a chat transcript. Equivalent to the published
28
- * {@link ToMarkdownOptions} (which already carries `includeHidden`,
29
- * `redactHiddenContent`, and the redaction controls); exposed under a
30
- * chat-specific name for the public `@lostgradient/cinder/chat` surface.
31
- */
32
- export type ChatExportOptions = ToMarkdownOptions;
33
-
34
- /**
35
- * A markdown render part — the effective body text of a message.
36
- *
37
- * `content` is always the full effective text (streaming `overrideContent` is
38
- * resolved into it by `deriveMessageParts`, so the part is render-ready). The
39
- * streaming/expanded flags are presentation hints the renderer forwards to the
40
- * markdown sub-component; they never become authoritative transcript data.
41
- */
42
- export type MarkdownMessagePart = {
43
- type: 'markdown';
44
- /** Stable identity for the keyed `{#each}` over parts. */
45
- key: string;
46
- content: string;
47
- /** Whether this part is being streamed (drives the cursor/tail affordance). */
48
- streaming: boolean;
49
- /** Whether long content is fully expanded (drives truncation). */
50
- expanded: boolean;
51
- };
52
-
53
- /**
54
- * A tool-call render part — one tool invocation paired with its result, if one
55
- * exists yet.
56
- *
57
- * `pair` is the resolved {@link ToolCallPair} threaded in through
58
- * `MessagePartDerivationContext`. When no result has arrived (the pairing is
59
- * still pending), `pair.result` is `undefined` — the part is still emitted so a
60
- * pending tool call renders rather than silently falling back to text.
61
- */
62
- export type ToolCallMessagePart = {
63
- type: 'tool-call';
64
- /** Stable identity, derived from the message id + the tool call id. */
65
- key: string;
66
- pair: ToolCallPair;
67
- };
68
-
69
- /**
70
- * A tool-result render part — the outcome of a tool call rendered on its own.
71
- *
72
- * Used for tool-result messages that are NOT folded into a paired tool-call
73
- * card (the container hides paired results). Carries the structured
74
- * {@link ToolResult} so the renderer can branch on `outcome` for error /
75
- * action-required / success styling, exactly as the historical role-branch did.
76
- */
77
- export type ToolResultMessagePart = {
78
- type: 'tool-result';
79
- /** Stable identity, derived from the message id + the result's call id. */
80
- key: string;
81
- result: ToolResult;
82
- };
83
-
84
- /**
85
- * An image render part — a single image segment of multi-modal message content.
86
- *
87
- * Carries the original {@link MultiModalContent} image so the renderer can hand
88
- * it to the existing attachment view (url, alt text, lightbox).
89
- */
90
- export type ImageMessagePart = {
91
- type: 'image';
92
- /** Stable identity, derived from the message id + the image's content index. */
93
- key: string;
94
- image: Extract<MultiModalContent, { type: 'image' }>;
95
- };
96
-
97
- /**
98
- * A tool-approval render part — emitted in place of a `tool-result` part when
99
- * the result's `outcome === 'action_required'` and an `action` is present.
100
- *
101
- * Renders a prompt asking the user to approve or deny a pending tool action.
102
- * `approved` is a tri-state: `true` (approved), `false` (denied), or `undefined`
103
- * (still pending). The `approved` field is derived from the container's
104
- * `approvedToolCallIds`/`deniedToolCallIds` sets — it is never written back to
105
- * the transcript.
106
- */
107
- export type ToolApprovalMessagePart = {
108
- type: 'tool-approval';
109
- /** Stable identity, derived from the message id + the tool result's call id. */
110
- key: string;
111
- toolCallId: string;
112
- toolName: string;
113
- action: ToolAction;
114
- /** `true` = approved, `false` = denied, `undefined` = pending. */
115
- approved: boolean | undefined;
116
- };
117
-
118
- /**
119
- * A reasoning render part — an extended thinking block shown before the
120
- * assistant's final answer.
121
- *
122
- * Renders as a collapsible disclosure with a left-accent border. While
123
- * streaming, the toggle is disabled and a pulsing dot is shown; the expanded
124
- * region uses `aria-live="off"` during streaming to avoid token-by-token
125
- * announcements, and one polite "Reasoning complete." fires when streaming ends.
126
- *
127
- * Source: `message.metadata['cinder:reasoning']` (a string) or the explicit
128
- * `messageReasoning` prop on Chat. Never a required transcript field.
129
- */
130
- export type ReasoningMessagePart = {
131
- type: 'reasoning';
132
- /** Stable identity, derived from the message id. */
133
- key: string;
134
- content: string;
135
- /** Whether this reasoning block is currently streaming. */
136
- streaming: boolean;
137
- };
138
-
139
- /**
140
- * Step status for a single step in a plan/step list.
141
- */
142
- export type StepStatus = 'pending' | 'running' | 'done' | 'error';
143
-
144
- /**
145
- * A step render part — one entry in an ordered plan/step list shown before
146
- * the final answer.
147
- *
148
- * Renders as a vertical stepper `<ol>`/`<li>`. Status is communicated via
149
- * both an aria-hidden icon and a visually-hidden text suffix so it is not
150
- * color-only. `aria-current="step"` is set on the active (running) step.
151
- *
152
- * Source: `message.metadata['cinder:steps']` (an array of `{title, content, status}`)
153
- * or the explicit `messageSteps` prop on Chat. Never a required transcript field.
154
- */
155
- export type StepMessagePart = {
156
- type: 'step';
157
- /** Stable identity, derived from the message id + the step index. */
158
- key: string;
159
- index: number;
160
- title: string;
161
- content: string;
162
- status: StepStatus;
163
- };
164
-
165
- /**
166
- * A suggestion render part — a single suggested follow-up reply chip shown
167
- * after the assistant's final answer.
168
- *
169
- * Renders as a button chip inside a `role="toolbar"` container. Selecting a
170
- * chip calls `onselect(label)`, clears the suggestion set from the DOM, and
171
- * moves focus to the composer input. The suggestion set is derived from
172
- * `message.metadata['cinder:suggestions']` (a JSONValue array of strings) or
173
- * the explicit `messageSuggestions` prop on Chat. It is UI-only and never
174
- * written back to the transcript.
175
- */
176
- export type SuggestionMessagePart = {
177
- type: 'suggestion';
178
- /** Stable identity, derived from the message id + the suggestion index. */
179
- key: string;
180
- /** Zero-based position of this suggestion in the list. */
181
- index: number;
182
- /** The label text displayed on the chip and passed to onselect. */
183
- label: string;
184
- };
185
-
186
- /**
187
- * The cinder-owned discriminated union of renderable message parts.
188
- *
189
- * This is a UI layer derived from the compatible {@link Message} shape — it is
190
- * never written back to the transcript. The union includes `markdown`,
191
- * `tool-call`, `tool-result`, `image`, `tool-approval`, `reasoning`, `step`,
192
- * and `suggestion`. Each widening also adds a renderer branch so the static
193
- * part switch stays exhaustive (the renderer's `{:else}` sentinel + the
194
- * `never` narrowing there force the new branch to be added).
195
- */
196
- export type ChatMessagePart =
197
- | MarkdownMessagePart
198
- | ToolCallMessagePart
199
- | ToolResultMessagePart
200
- | ImageMessagePart
201
- | ToolApprovalMessagePart
202
- | ReasoningMessagePart
203
- | StepMessagePart
204
- | SuggestionMessagePart;
205
-
206
- /**
207
- * Per-message context threaded into `deriveMessageParts`.
208
- *
209
- * Keeps the bridge pure while informing it of conversation-global facts it
210
- * cannot compute from a single {@link Message}: the resolved tool-call pairing
211
- * (computed once at the container from the ordered transcript) and the live
212
- * streaming override buffer. Passing the already-resolved pair — rather than the
213
- * whole pairs-by-id map — avoids both a re-pairing pass inside derive and the
214
- * reactive-staleness trap of mutating a shared map in place.
215
- */
216
- export type MessagePartDerivationContext = {
217
- /**
218
- * The resolved tool-call pair for this message's `toolCall`, if the container
219
- * found one. A tool-call message renders as a card only when this is present
220
- * (mirroring the original `isToolCall && toolPair` guard); with no pair, derive
221
- * falls through to the text body. A still-pending call is represented by a pair
222
- * whose `result` is `undefined`, not by an absent pair.
223
- */
224
- toolCallPair?: ToolCallPair | undefined;
225
- /**
226
- * Live streaming buffer for this message. When present, it replaces the
227
- * message's text body so the markdown part is render-ready (no override
228
- * plumbing leaks into the part component).
229
- */
230
- overrideContent?: string | undefined;
231
- /** Whether this message is currently streaming (drives the markdown part's cursor/tail). */
232
- streaming?: boolean | undefined;
233
- /** Whether long content is expanded (drives the markdown part's truncation). */
234
- expanded?: boolean | undefined;
235
- /**
236
- * The set of tool-call IDs the consumer has already approved. Used to
237
- * derive the `approved: true` state on a `tool-approval` part without mutating
238
- * the transcript. Tool calls NOT in either set render as pending (`undefined`).
239
- */
240
- approvedToolCallIds?: ReadonlySet<string> | undefined;
241
- /**
242
- * The set of tool-call IDs the consumer has denied. Used to derive the
243
- * `approved: false` state on a `tool-approval` part without mutating the
244
- * transcript.
245
- */
246
- deniedToolCallIds?: ReadonlySet<string> | undefined;
247
- /**
248
- * Pre-body extended thinking block. When present and non-empty, a
249
- * `reasoning` part is emitted before the markdown body part. An empty string
250
- * is an explicit suppression sentinel and also blocks transcript-native
251
- * `thinking` content from rendering as reasoning.
252
- *
253
- * Source: `message.metadata['cinder:reasoning']` (a JSONValue string) or the
254
- * explicit `messageReasoning` per-message prop on Chat. Never a required
255
- * transcript field — absent from a plain transcript, this is `undefined` and
256
- * zero visual change results.
257
- */
258
- reasoning?: string | undefined;
259
- /**
260
- * Ordered plan/step list. When present and non-empty, one `step` part
261
- * per entry is emitted before the reasoning and markdown body parts.
262
- *
263
- * Source: `message.metadata['cinder:steps']` (a JSONValue array) or the
264
- * explicit `messageSteps` per-message prop on Chat. Never a required
265
- * transcript field.
266
- */
267
- steps?: ReadonlyArray<StepInfo> | undefined;
268
- /**
269
- * Suggested follow-up labels. When present and non-empty, one
270
- * `suggestion` part per entry is emitted after the markdown body part (and
271
- * before any image parts).
272
- *
273
- * Source: `message.metadata['cinder:suggestions']` (a JSONValue array of
274
- * strings) or the explicit `messageSuggestions` per-message prop on Chat.
275
- * Never a required transcript field — absent from a plain transcript, this
276
- * is `undefined` and zero visual change results.
277
- */
278
- suggestions?: ReadonlyArray<string> | undefined;
279
- };
280
-
281
- /** Re-export the part-relevant model types so part consumers import from one place. */
282
- export type { Message, MultiModalContent, ToolAction, ToolCall, ToolCallPair, ToolResult };
283
-
284
- /**
285
- * Shape of a single step entry as accepted by ChatProps.messageSteps and
286
- * stored in message.metadata['cinder:steps'].
287
- */
288
- export type StepInfo = { title: string; content: string; status: StepStatus };