@flamingo-stack/openframe-frontend-core 0.0.489 → 0.0.490-1506.3944.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 (280) hide show
  1. package/dist/chat-protocol/decode.d.ts +58 -0
  2. package/dist/chat-protocol/decode.d.ts.map +1 -0
  3. package/dist/chat-protocol/encode.d.ts +44 -0
  4. package/dist/chat-protocol/encode.d.ts.map +1 -0
  5. package/dist/chat-protocol/env-flag.d.ts +35 -0
  6. package/dist/chat-protocol/env-flag.d.ts.map +1 -0
  7. package/dist/chat-protocol/events.d.ts +196 -0
  8. package/dist/chat-protocol/events.d.ts.map +1 -0
  9. package/dist/chat-protocol/frames.d.ts +213 -0
  10. package/dist/chat-protocol/frames.d.ts.map +1 -0
  11. package/dist/chat-protocol/index.cjs +494 -0
  12. package/dist/chat-protocol/index.cjs.map +1 -0
  13. package/dist/chat-protocol/index.d.ts +18 -0
  14. package/dist/chat-protocol/index.d.ts.map +1 -0
  15. package/dist/chat-protocol/index.js +478 -0
  16. package/dist/chat-protocol/index.js.map +1 -0
  17. package/dist/chat-protocol/ip-normalize.d.ts +44 -0
  18. package/dist/chat-protocol/ip-normalize.d.ts.map +1 -0
  19. package/dist/chat-protocol/nats-decoder.d.ts +26 -0
  20. package/dist/chat-protocol/nats-decoder.d.ts.map +1 -0
  21. package/dist/{chunk-K7MNWYYI.js → chunk-4NWARV5I.js} +2 -2
  22. package/dist/{chunk-2RNJYJWO.cjs → chunk-5CJR2GZ4.cjs} +31 -31
  23. package/dist/{chunk-2RNJYJWO.cjs.map → chunk-5CJR2GZ4.cjs.map} +1 -1
  24. package/dist/{chunk-H3YRJ3LZ.cjs → chunk-5EYRXSY5.cjs} +9 -9
  25. package/dist/{chunk-H3YRJ3LZ.cjs.map → chunk-5EYRXSY5.cjs.map} +1 -1
  26. package/dist/{chunk-IN4IO7BL.cjs → chunk-5LMGFI4J.cjs} +6930 -4755
  27. package/dist/chunk-5LMGFI4J.cjs.map +1 -0
  28. package/dist/{chunk-YMJZOANX.js → chunk-BE6DK7QY.js} +12228 -10053
  29. package/dist/chunk-BE6DK7QY.js.map +1 -0
  30. package/dist/{chunk-TWGYBXYV.js → chunk-CORIBKHG.js} +2 -2
  31. package/dist/{chunk-RO7Q56ZK.cjs → chunk-CSYSYJCF.cjs} +37 -37
  32. package/dist/{chunk-RO7Q56ZK.cjs.map → chunk-CSYSYJCF.cjs.map} +1 -1
  33. package/dist/{chunk-Z7Y63IFU.cjs → chunk-DSDZ5T4P.cjs} +5 -5
  34. package/dist/{chunk-Z7Y63IFU.cjs.map → chunk-DSDZ5T4P.cjs.map} +1 -1
  35. package/dist/{chunk-EU6QNO4S.js → chunk-GTWO5NAY.js} +2 -2
  36. package/dist/{chunk-BGWDDB7Y.js → chunk-HSACATCD.js} +2 -2
  37. package/dist/{chunk-3OIB763B.cjs → chunk-NWX7MMF5.cjs} +15 -15
  38. package/dist/{chunk-3OIB763B.cjs.map → chunk-NWX7MMF5.cjs.map} +1 -1
  39. package/dist/{chunk-J7H32E3R.cjs → chunk-P4WTZU6L.cjs} +11 -11
  40. package/dist/{chunk-J7H32E3R.cjs.map → chunk-P4WTZU6L.cjs.map} +1 -1
  41. package/dist/{chunk-VLOE7MI2.cjs → chunk-Q6E7VJ4W.cjs} +28 -27
  42. package/dist/chunk-Q6E7VJ4W.cjs.map +1 -0
  43. package/dist/{chunk-ZIAS5NNL.cjs → chunk-QSCHCZL3.cjs} +7 -7
  44. package/dist/{chunk-ZIAS5NNL.cjs.map → chunk-QSCHCZL3.cjs.map} +1 -1
  45. package/dist/{chunk-VL4LUO32.js → chunk-RQLBHKXN.js} +2 -2
  46. package/dist/{chunk-5YMY4BAW.cjs → chunk-S2NHJDKQ.cjs} +62 -62
  47. package/dist/{chunk-5YMY4BAW.cjs.map → chunk-S2NHJDKQ.cjs.map} +1 -1
  48. package/dist/{chunk-N4MTNTSX.js → chunk-T2EGSZFN.js} +6 -5
  49. package/dist/chunk-T2EGSZFN.js.map +1 -0
  50. package/dist/{chunk-W6ZUOWSB.js → chunk-TKN5667N.js} +10 -10
  51. package/dist/chunk-TKN5667N.js.map +1 -0
  52. package/dist/{chunk-B4YR342L.js → chunk-UUYRJPGJ.js} +4 -4
  53. package/dist/{chunk-FKPXFTZT.js → chunk-VHG6AX5V.js} +2 -2
  54. package/dist/{chunk-2IHN7NNB.cjs → chunk-VQ523ORK.cjs} +26 -26
  55. package/dist/{chunk-2IHN7NNB.cjs.map → chunk-VQ523ORK.cjs.map} +1 -1
  56. package/dist/{chunk-X2YF5TJS.js → chunk-XQ2B74SI.js} +2 -2
  57. package/dist/{chunk-LLEDO4P7.cjs → chunk-YHOIAA2E.cjs} +60 -60
  58. package/dist/chunk-YHOIAA2E.cjs.map +1 -0
  59. package/dist/{chunk-5VSEMWWE.js → chunk-YZ2OIYQ3.js} +4 -4
  60. package/dist/components/case-studies/index.cjs +8 -8
  61. package/dist/components/case-studies/index.js +2 -2
  62. package/dist/components/chat/chat-message-enhanced.d.ts.map +1 -1
  63. package/dist/components/chat/chat-message-list.d.ts.map +1 -1
  64. package/dist/components/chat/hooks/index.d.ts +0 -1
  65. package/dist/components/chat/hooks/index.d.ts.map +1 -1
  66. package/dist/components/chat/hooks/use-chat.d.ts.map +1 -1
  67. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts +15 -48
  68. package/dist/components/chat/hooks/use-nats-chat-adapter.d.ts.map +1 -1
  69. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts +10 -57
  70. package/dist/components/chat/hooks/use-sse-chat-adapter.d.ts.map +1 -1
  71. package/dist/components/chat/index.cjs +10 -2
  72. package/dist/components/chat/index.cjs.map +1 -1
  73. package/dist/components/chat/index.d.ts +1 -0
  74. package/dist/components/chat/index.d.ts.map +1 -1
  75. package/dist/components/chat/index.js +21 -13
  76. package/dist/components/chat/stream/chat-dialog-store.d.ts +184 -0
  77. package/dist/components/chat/stream/chat-dialog-store.d.ts.map +1 -0
  78. package/dist/components/chat/stream/chat-stream-reducer.d.ts +367 -0
  79. package/dist/components/chat/stream/chat-stream-reducer.d.ts.map +1 -0
  80. package/dist/components/chat/stream/delta-batcher.d.ts +51 -0
  81. package/dist/components/chat/stream/delta-batcher.d.ts.map +1 -0
  82. package/dist/components/chat/stream/index.d.ts +17 -0
  83. package/dist/components/chat/stream/index.d.ts.map +1 -0
  84. package/dist/components/chat/stream/message-mutations.d.ts +77 -0
  85. package/dist/components/chat/stream/message-mutations.d.ts.map +1 -0
  86. package/dist/components/chat/stream/use-chat-stream-reducer.d.ts +22 -0
  87. package/dist/components/chat/stream/use-chat-stream-reducer.d.ts.map +1 -0
  88. package/dist/components/chat/types/api.types.d.ts +1 -81
  89. package/dist/components/chat/types/api.types.d.ts.map +1 -1
  90. package/dist/components/chat/types/processing.types.d.ts +2 -90
  91. package/dist/components/chat/types/processing.types.d.ts.map +1 -1
  92. package/dist/components/chat/utils/extract-incomplete-message-state.d.ts +34 -6
  93. package/dist/components/chat/utils/extract-incomplete-message-state.d.ts.map +1 -1
  94. package/dist/components/chat/utils/index.d.ts +2 -3
  95. package/dist/components/chat/utils/index.d.ts.map +1 -1
  96. package/dist/components/chat/utils/process-historical-messages.d.ts +59 -11
  97. package/dist/components/chat/utils/process-historical-messages.d.ts.map +1 -1
  98. package/dist/components/contact/index.cjs +3 -3
  99. package/dist/components/contact/index.js +2 -2
  100. package/dist/components/docs/index.cjs +5 -5
  101. package/dist/components/docs/index.js +4 -4
  102. package/dist/components/embeds/index.cjs +3 -3
  103. package/dist/components/embeds/index.js +2 -2
  104. package/dist/components/faq/index.cjs +3 -3
  105. package/dist/components/faq/index.js +2 -2
  106. package/dist/components/features/index.cjs +2 -2
  107. package/dist/components/features/index.js +1 -1
  108. package/dist/components/help-center-pages/index.cjs +20 -20
  109. package/dist/components/help-center-pages/index.js +11 -11
  110. package/dist/components/index.cjs +172 -130
  111. package/dist/components/index.cjs.map +1 -1
  112. package/dist/components/index.js +63 -21
  113. package/dist/components/index.js.map +1 -1
  114. package/dist/components/navigation/index.cjs +2 -2
  115. package/dist/components/navigation/index.js +1 -1
  116. package/dist/components/onboarding-guides/index.cjs +5 -5
  117. package/dist/components/onboarding-guides/index.js +4 -4
  118. package/dist/components/onboarding-guides/onboarding-guide-detail-view.d.ts.map +1 -1
  119. package/dist/components/related-content/index.cjs +3 -3
  120. package/dist/components/related-content/index.js +2 -2
  121. package/dist/components/shared/product-release/release-detail-page.d.ts.map +1 -1
  122. package/dist/components/tickets/index.cjs +5 -5
  123. package/dist/components/tickets/index.js +4 -4
  124. package/dist/components/ui/index.cjs +44 -2
  125. package/dist/components/ui/index.cjs.map +1 -1
  126. package/dist/components/ui/index.d.ts +1 -2
  127. package/dist/components/ui/index.d.ts.map +1 -1
  128. package/dist/components/ui/index.js +55 -13
  129. package/dist/components/ui/markdown/base-components.d.ts +51 -0
  130. package/dist/components/ui/markdown/base-components.d.ts.map +1 -0
  131. package/dist/components/ui/markdown/engine.d.ts +99 -0
  132. package/dist/components/ui/markdown/engine.d.ts.map +1 -0
  133. package/dist/components/ui/markdown/heading-ids.d.ts +65 -0
  134. package/dist/components/ui/markdown/heading-ids.d.ts.map +1 -0
  135. package/dist/components/ui/markdown/index.d.ts +18 -0
  136. package/dist/components/ui/markdown/index.d.ts.map +1 -0
  137. package/dist/components/ui/markdown/mermaid-diagram.d.ts +79 -0
  138. package/dist/components/ui/markdown/mermaid-diagram.d.ts.map +1 -0
  139. package/dist/components/ui/markdown/rich/embed-overrides.d.ts +14 -0
  140. package/dist/components/ui/markdown/rich/embed-overrides.d.ts.map +1 -0
  141. package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts +40 -0
  142. package/dist/components/ui/markdown/rich/rich-markdown-renderer.d.ts.map +1 -0
  143. package/dist/components/ui/markdown/rich/shortcodes.d.ts +8 -0
  144. package/dist/components/ui/markdown/rich/shortcodes.d.ts.map +1 -0
  145. package/dist/components/ui/markdown/sanitize.d.ts +153 -0
  146. package/dist/components/ui/markdown/sanitize.d.ts.map +1 -0
  147. package/dist/components/ui/markdown/simple-markdown-renderer.d.ts +23 -0
  148. package/dist/components/ui/markdown/simple-markdown-renderer.d.ts.map +1 -0
  149. package/dist/components/ui/markdown/streaming.d.ts +78 -0
  150. package/dist/components/ui/markdown/streaming.d.ts.map +1 -0
  151. package/dist/components/ui/markdown/text-size.d.ts +34 -0
  152. package/dist/components/ui/markdown/text-size.d.ts.map +1 -0
  153. package/dist/index.cjs +60 -2
  154. package/dist/index.cjs.map +1 -1
  155. package/dist/index.js +71 -13
  156. package/dist/utils/index.cjs +169 -40
  157. package/dist/utils/index.cjs.map +1 -1
  158. package/dist/utils/index.d.ts +1 -0
  159. package/dist/utils/index.d.ts.map +1 -1
  160. package/dist/utils/index.js +162 -41
  161. package/dist/utils/index.js.map +1 -1
  162. package/dist/utils/markdown-fences.d.ts +42 -0
  163. package/dist/utils/markdown-fences.d.ts.map +1 -0
  164. package/dist/utils/markdown-heading-id.d.ts +85 -0
  165. package/dist/utils/markdown-heading-id.d.ts.map +1 -0
  166. package/dist/utils/markdown-section-extractor.d.ts.map +1 -1
  167. package/package.json +7 -1
  168. package/src/chat-protocol/__tests__/__snapshots__/nats-decoder-golden.test.ts.snap +307 -0
  169. package/src/chat-protocol/__tests__/chat-protocol.test.ts +516 -0
  170. package/src/chat-protocol/__tests__/env-flag.test.ts +52 -0
  171. package/src/chat-protocol/__tests__/ip-normalize.test.ts +136 -0
  172. package/src/chat-protocol/__tests__/nats-decoder-golden.test.ts +228 -0
  173. package/src/chat-protocol/decode.ts +278 -0
  174. package/src/chat-protocol/encode.ts +71 -0
  175. package/src/chat-protocol/env-flag.ts +39 -0
  176. package/src/chat-protocol/events.ts +232 -0
  177. package/src/chat-protocol/frames.ts +245 -0
  178. package/src/chat-protocol/index.ts +21 -0
  179. package/src/chat-protocol/ip-normalize.ts +146 -0
  180. package/src/chat-protocol/nats-decoder.ts +252 -0
  181. package/src/components/chat/__tests__/chat-message-list.test.tsx +293 -5
  182. package/src/components/chat/__tests__/chat-message-streaming-memo.test.tsx +207 -0
  183. package/src/components/chat/__tests__/chat-pending-turn.test.tsx +209 -0
  184. package/src/components/chat/chat-message-enhanced.tsx +111 -17
  185. package/src/components/chat/chat-message-list.tsx +358 -109
  186. package/src/components/chat/embeddable-chat.tsx +6 -0
  187. package/src/components/chat/hooks/.index.md +30 -33
  188. package/src/components/chat/hooks/.use-nats-chat-adapter.md +36 -55
  189. package/src/components/chat/hooks/__tests__/__snapshots__/conversation-id-persistence-golden.test.ts.snap +37 -0
  190. package/src/components/chat/hooks/__tests__/__snapshots__/sse-stream-golden.test.ts.snap +0 -0
  191. package/src/components/chat/hooks/__tests__/conversation-id-persistence-golden.test.ts +438 -0
  192. package/src/components/chat/hooks/__tests__/sse-stream-golden.test.ts +318 -0
  193. package/src/components/chat/hooks/index.ts +0 -1
  194. package/src/components/chat/hooks/use-chat.ts +8 -0
  195. package/src/components/chat/hooks/use-nats-chat-adapter.ts +243 -823
  196. package/src/components/chat/hooks/use-sse-chat-adapter.ts +380 -684
  197. package/src/components/chat/index.ts +5 -0
  198. package/src/components/chat/stream/__tests__/__snapshots__/chat-stream-reducer-golden.test.ts.snap +940 -0
  199. package/src/components/chat/stream/__tests__/chat-dialog-store.test.ts +756 -0
  200. package/src/components/chat/stream/__tests__/chat-stream-reducer-golden.test.ts +460 -0
  201. package/src/components/chat/stream/__tests__/chat-stream-reducer.test.ts +894 -0
  202. package/src/components/chat/stream/__tests__/delta-batcher.test.ts +255 -0
  203. package/src/components/chat/stream/__tests__/use-chat-stream-reducer.test.ts +98 -0
  204. package/src/components/chat/stream/chat-dialog-store.ts +536 -0
  205. package/src/components/chat/stream/chat-stream-reducer.ts +1796 -0
  206. package/src/components/chat/stream/delta-batcher.ts +159 -0
  207. package/src/components/chat/stream/index.ts +55 -0
  208. package/src/components/chat/stream/message-mutations.ts +338 -0
  209. package/src/components/chat/stream/use-chat-stream-reducer.ts +126 -0
  210. package/src/components/chat/thinking-display.tsx +1 -1
  211. package/src/components/chat/types/.api.types.md +39 -49
  212. package/src/components/chat/types/.processing.types.md +29 -58
  213. package/src/components/chat/types/api.types.ts +6 -73
  214. package/src/components/chat/types/processing.types.ts +11 -52
  215. package/src/components/chat/utils/.index.md +31 -40
  216. package/src/components/chat/utils/__tests__/__snapshots__/process-historical-messages-golden.test.ts.snap +420 -0
  217. package/src/components/chat/utils/__tests__/__snapshots__/segment-accumulator-golden.test.ts.snap +605 -0
  218. package/src/components/chat/utils/__tests__/process-historical-messages-golden.test.ts +317 -0
  219. package/src/components/chat/utils/__tests__/segment-accumulator-golden.test.ts +270 -0
  220. package/src/components/chat/utils/extract-incomplete-message-state.ts +63 -5
  221. package/src/components/chat/utils/index.ts +5 -8
  222. package/src/components/chat/utils/process-historical-messages.ts +352 -384
  223. package/src/components/onboarding-guides/onboarding-guide-detail-view.tsx +22 -4
  224. package/src/components/shared/legal-document/legal-document-page.tsx +1 -1
  225. package/src/components/shared/product-release/release-detail-page.tsx +19 -4
  226. package/src/components/ui/__tests__/__snapshots__/markdown-parity.test.tsx.snap +2420 -0
  227. package/src/components/ui/__tests__/markdown-parity.test.tsx +2528 -0
  228. package/src/components/ui/index.ts +1 -2
  229. package/src/components/ui/markdown/__tests__/mermaid-security.test.ts +115 -0
  230. package/src/components/ui/markdown/__tests__/mermaid-stale-render.test.tsx +95 -0
  231. package/src/components/ui/markdown/__tests__/sanitize-invariant.test.ts +309 -0
  232. package/src/components/ui/markdown/__tests__/streaming.test.tsx +388 -0
  233. package/src/components/ui/markdown/base-components.tsx +360 -0
  234. package/src/components/ui/markdown/engine.tsx +315 -0
  235. package/src/components/ui/markdown/heading-ids.ts +239 -0
  236. package/src/components/ui/markdown/index.ts +49 -0
  237. package/src/components/ui/markdown/mermaid-diagram.tsx +291 -0
  238. package/src/components/ui/markdown/rich/embed-overrides.tsx +199 -0
  239. package/src/components/ui/markdown/rich/rich-markdown-renderer.tsx +184 -0
  240. package/src/components/ui/markdown/rich/shortcodes.ts +170 -0
  241. package/src/components/ui/markdown/sanitize.ts +3499 -0
  242. package/src/components/ui/markdown/simple-markdown-renderer.tsx +28 -0
  243. package/src/components/ui/markdown/streaming.ts +362 -0
  244. package/src/components/ui/markdown/text-size.ts +106 -0
  245. package/src/components/ui/release-changelog-section.tsx +1 -1
  246. package/src/components/ui/ticket-info-section.tsx +1 -1
  247. package/src/utils/index.ts +1 -0
  248. package/src/utils/markdown-fences.ts +127 -0
  249. package/src/utils/markdown-heading-id.ts +348 -0
  250. package/src/utils/markdown-section-extractor.ts +41 -56
  251. package/dist/chunk-IN4IO7BL.cjs.map +0 -1
  252. package/dist/chunk-LLEDO4P7.cjs.map +0 -1
  253. package/dist/chunk-N4MTNTSX.js.map +0 -1
  254. package/dist/chunk-VLOE7MI2.cjs.map +0 -1
  255. package/dist/chunk-W6ZUOWSB.js.map +0 -1
  256. package/dist/chunk-YMJZOANX.js.map +0 -1
  257. package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts +0 -6
  258. package/dist/components/chat/hooks/use-realtime-chunk-processor.d.ts.map +0 -1
  259. package/dist/components/chat/utils/chunk-parser.d.ts +0 -25
  260. package/dist/components/chat/utils/chunk-parser.d.ts.map +0 -1
  261. package/dist/components/ui/rich-markdown-renderer.d.ts +0 -34
  262. package/dist/components/ui/rich-markdown-renderer.d.ts.map +0 -1
  263. package/dist/components/ui/simple-markdown-renderer.d.ts +0 -73
  264. package/dist/components/ui/simple-markdown-renderer.d.ts.map +0 -1
  265. package/src/components/chat/hooks/.use-realtime-chunk-processor.md +0 -77
  266. package/src/components/chat/hooks/use-realtime-chunk-processor.ts +0 -479
  267. package/src/components/chat/utils/.chunk-parser.md +0 -62
  268. package/src/components/chat/utils/chunk-parser.ts +0 -256
  269. package/src/components/ui/.simple-markdown-renderer.md +0 -52
  270. package/src/components/ui/rich-markdown-renderer.tsx +0 -1223
  271. package/src/components/ui/simple-markdown-renderer.tsx +0 -964
  272. /package/dist/{chunk-K7MNWYYI.js.map → chunk-4NWARV5I.js.map} +0 -0
  273. /package/dist/{chunk-TWGYBXYV.js.map → chunk-CORIBKHG.js.map} +0 -0
  274. /package/dist/{chunk-EU6QNO4S.js.map → chunk-GTWO5NAY.js.map} +0 -0
  275. /package/dist/{chunk-BGWDDB7Y.js.map → chunk-HSACATCD.js.map} +0 -0
  276. /package/dist/{chunk-VL4LUO32.js.map → chunk-RQLBHKXN.js.map} +0 -0
  277. /package/dist/{chunk-B4YR342L.js.map → chunk-UUYRJPGJ.js.map} +0 -0
  278. /package/dist/{chunk-FKPXFTZT.js.map → chunk-VHG6AX5V.js.map} +0 -0
  279. /package/dist/{chunk-X2YF5TJS.js.map → chunk-XQ2B74SI.js.map} +0 -0
  280. /package/dist/{chunk-5VSEMWWE.js.map → chunk-YZ2OIYQ3.js.map} +0 -0
@@ -1,7 +1,8 @@
1
1
  import type { ChatRef } from '../chat-ref.types';
2
2
  import type { MessageSegment } from '../types/message.types';
3
- import { type ScrollAnchor } from '../utils/scroll-anchor';
3
+ import type { ScrollAnchor } from '../utils/scroll-anchor';
4
4
  import type { UnifiedChatState } from '../types/unified-chat-state.types';
5
+ export type { ChatTurnMeta } from '../stream/chat-stream-reducer';
5
6
  /** Source identifier — opaque string ID (registry lookup happens in the
6
7
  * hub-side platform-utils, not in lib). */
7
8
  export type DocSource = string;
@@ -52,49 +53,6 @@ export interface DocChatMessage {
52
53
  hidden?: boolean;
53
54
  }
54
55
  export type { StreamingPhase } from '../types/unified-chat-state.types';
55
- /** Per-turn metadata extracted from the streamed metadata frame. */
56
- export interface ChatTurnMeta {
57
- /** Provider key recognized by `<ModelDisplay>` for icon
58
- * selection: 'anthropic' | 'openai' | 'google' (case-insensitive). */
59
- provider: string | null;
60
- modelLabel: string | null;
61
- contextWindowMaxTokens: number | null;
62
- /** Input tokens (from message_start). Includes cached tokens. */
63
- inputTokens: number | null;
64
- /** Output tokens (from message_delta). Only known after stream end. */
65
- outputTokens: number | null;
66
- /** Cache hit % (read / total-input × 100). Only known after stream end. */
67
- cacheHitRatePct: number | null;
68
- /** Cross-call usage breakdown extracted from the trailing usage frame. */
69
- breakdown: {
70
- haikuRewriter?: {
71
- input: number;
72
- output: number;
73
- };
74
- haikuClassifier?: {
75
- input: number;
76
- output: number;
77
- };
78
- haikuSummarizer?: {
79
- input: number;
80
- output: number;
81
- };
82
- routedAnswer?: {
83
- model: string;
84
- complexity: string;
85
- thinkingBudget: number;
86
- };
87
- } | null;
88
- /** Per-message viewport-positioning hint. */
89
- scrollAnchor: ScrollAnchor | null;
90
- /** Routing decision from the server's `decideRoute`. */
91
- routedComplexity: string | null;
92
- routedThinkingBudget: number | null;
93
- /** Server-computed conversation trace id (`chat_conversations.id` for this
94
- * thread), echoed in the leading metadata frame. Stable across turns of
95
- * one thread — the correlation handle for transcripts/analytics. */
96
- conversationId: string | null;
97
- }
98
56
  /**
99
57
  * Optional dependency-injection options for `useSseChatAdapter`.
100
58
  *
@@ -105,13 +63,7 @@ export interface ChatTurnMeta {
105
63
  * **Defaults to `defaultTableIdForDocumentType` from
106
64
  * `src/utils/source-icons.ts`** — a lib-baked map covering every
107
65
  * documentType currently registered in the hub's RAG_TABLE_CONFIGS.
108
- * This makes Ask / Display work out of the box in embedders without
109
- * any callback wiring.
110
- *
111
- * Override only when you have polymorphic / per-tenant document
112
- * types that map to a different tableId than the default
113
- * (hub-canonical) registry — pass your own `(docType) => tableId`
114
- * callback and it wins over the default.
66
+ * Override only for polymorphic / per-tenant document types.
115
67
  */
116
68
  export interface UseSseChatAdapterOptions {
117
69
  tableIdForDocumentType?: (documentType: string) => string | null;
@@ -119,10 +71,11 @@ export interface UseSseChatAdapterOptions {
119
71
  export interface UseSseChatAdapterRuntimeOptions {
120
72
  /**
121
73
  * When `false` the adapter skips its background slash-command registry
122
- * fetch (used to hydrate the `displayRef` table lookup). Mirrors the
123
- * NATS adapter's `active` gate: `useUnifiedChat` passes `false` while
124
- * Guide mode is configured-but-not-active, so opening the panel in
125
- * Mingo mode does NOT hit the commands endpoint. Default `true` so
74
+ * fetch (used to hydrate the `displayRef` table lookup) AND the
75
+ * mount-time server-history hydration. Mirrors the NATS adapter's
76
+ * `active` gate: `useUnifiedChat` passes `false` while Guide mode is
77
+ * configured-but-not-active, so opening the panel in Mingo mode does
78
+ * NOT hit the commands or history endpoints. Default `true` so
126
79
  * standalone callers keep the eager prefetch.
127
80
  */
128
81
  active?: boolean;
@@ -133,8 +86,8 @@ export interface UseSseChatAdapterRuntimeOptions {
133
86
  * decision) the lib's `<ChatContainer>` consumes.
134
87
  *
135
88
  * Source identity comes from `useRequiredChatRuntime().source` — no
136
- * parameter. An empty `source` falls back to `DEFAULT_CHAT_SOURCE` (used only for
137
- * the localStorage history namespace; never sent on the wire).
89
+ * parameter. An empty `source` falls back to `DEFAULT_CHAT_SOURCE` (used only
90
+ * for the conversation-id localStorage namespace; never sent on the wire).
138
91
  */
139
92
  export declare function useSseChatAdapter(options?: UseSseChatAdapterOptions, runtimeOptions?: UseSseChatAdapterRuntimeOptions): UnifiedChatState;
140
93
  //# sourceMappingURL=use-sse-chat-adapter.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"use-sse-chat-adapter.d.ts","sourceRoot":"","sources":["../../../../src/components/chat/hooks/use-sse-chat-adapter.ts"],"names":[],"mappings":"AA4CA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAA;AAEhD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAU5D,OAAO,EAAqB,KAAK,YAAY,EAAE,MAAM,wBAAwB,CAAA;AAG7E,OAAO,KAAK,EACV,gBAAgB,EAGjB,MAAM,mCAAmC,CAAA;AAO1C;4CAC4C;AAC5C,MAAM,MAAM,SAAS,GAAG,MAAM,CAAA;AAE9B,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,IAAI,EAAE,MAAM,CAAA;IACZ,IAAI,EAAE,MAAM,CAAA;IACZ,YAAY,EAAE,MAAM,CAAA;IACpB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AAW,CAAA;IAC1B;;kEAE8D;IAC9D,OAAO,EAAE,MAAM,CAAA;IACf,gFAAgF;IAChF,QAAQ,CAAC,EAAE,cAAc,EAAE,CAAA;IAC3B,OAAO,CAAC,EAAE,UAAU,EAAE,CAAA;IACtB;gFAC4E;IAC5E,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;IAClC,mEAAmE;IACnE,YAAY,CAAC,EAAE,YAAY,CAAA;IAC3B;uCACmC;IACnC,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AAKD,YAAY,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAA;AAEvE;;;;;;;;;;;GAWG;AACH,MAAM,WAAW,wBAAwB;IACvC,sBAAsB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CACjE;AAED,MAAM,WAAW,+BAA+B;IAC9C;;;;;;;;OAQG;IACH,MAAM,CAAC,EAAE,OAAO,CAAA;CACjB;AA+CD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,CAAC,EAAE,wBAAwB,EAClC,cAAc,GAAE,+BAAoC,GACnD,gBAAgB,CAgflB"}
@@ -267,7 +267,11 @@
267
267
 
268
268
 
269
269
 
270
- var _chunkIN4IO7BLcjs = require('../../chunk-IN4IO7BL.cjs');
270
+
271
+
272
+
273
+
274
+ var _chunk5LMGFI4Jcjs = require('../../chunk-5LMGFI4J.cjs');
271
275
 
272
276
 
273
277
 
@@ -564,5 +568,9 @@ require('../../chunk-VRHGVLSL.cjs');
564
568
 
565
569
 
566
570
 
567
- exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = _chunkIN4IO7BLcjs.ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.APPROVAL_BLOCK_VARIANT = _chunkIN4IO7BLcjs.APPROVAL_BLOCK_VARIANT; exports.APPROVAL_STATUS = _chunkIN4IO7BLcjs.APPROVAL_STATUS; exports.ASSISTANT_TYPE = _chunkIN4IO7BLcjs.ASSISTANT_TYPE; exports.AUTHOR_TYPE = _chunkIN4IO7BLcjs.AUTHOR_TYPE; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = _chunkIN4IO7BLcjs.AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.AdminContentCard = _chunkIN4IO7BLcjs.AdminContentCard; exports.ApprovalBatchMessage = _chunkIN4IO7BLcjs.ApprovalBatchMessage; exports.ApprovalRequestMessage = _chunkIN4IO7BLcjs.ApprovalRequestMessage; exports.ApprovalStatusTag = _chunkIN4IO7BLcjs.ApprovalStatusTag; exports.ArchiveChatModal = _chunkIN4IO7BLcjs.ArchiveChatModal; exports.ArgRow = _chunkIN4IO7BLcjs.ArgRow; exports.BlockCard = _chunkIN4IO7BLcjs.BlockCard; exports.BlogCard = _chunkIN4IO7BLcjs.BlogCard; exports.BlogCardSkeleton = _chunkIN4IO7BLcjs.BlogCardSkeleton; exports.BlogImagePlaceholder = _chunkIN4IO7BLcjs.BlogImagePlaceholder; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.CHAT_ATTACHMENT_MIME_TYPES = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunkIN4IO7BLcjs.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = _chunkIN4IO7BLcjs.CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.CHAT_TYPE = _chunkIN4IO7BLcjs.CHAT_TYPE; exports.CHIP_ACTION_BUTTON_CLASS = _chunkIN4IO7BLcjs.CHIP_ACTION_BUTTON_CLASS; exports.COMPACT_CARD_ICON_SLOT = _chunkIN4IO7BLcjs.COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_IMAGE_SLOT = _chunkIN4IO7BLcjs.COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_META_ROW = _chunkIN4IO7BLcjs.COMPACT_CARD_META_ROW; exports.COMPACT_CARD_META_ROW_BOX = _chunkIN4IO7BLcjs.COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_OUTER = _chunkIN4IO7BLcjs.COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = _chunkIN4IO7BLcjs.COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_ROW_FILLER = _chunkIN4IO7BLcjs.COMPACT_CARD_ROW_FILLER; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = _chunkIN4IO7BLcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_OUTER = _chunkIN4IO7BLcjs.COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_SUBTITLE = _chunkIN4IO7BLcjs.COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = _chunkIN4IO7BLcjs.COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_TEXT_COL = _chunkIN4IO7BLcjs.COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE = _chunkIN4IO7BLcjs.COMPACT_CARD_TITLE; exports.COMPACT_CARD_TITLE_ROW = _chunkIN4IO7BLcjs.COMPACT_CARD_TITLE_ROW; exports.CONNECTION_STATUS = _chunkIN4IO7BLcjs.CONNECTION_STATUS; exports.CONTEXT_BACK_CLASS = _chunkIN4IO7BLcjs.CONTEXT_BACK_CLASS; exports.CONTEXT_ICON_CLASS = _chunkIN4IO7BLcjs.CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = _chunkIN4IO7BLcjs.CONTEXT_LABEL_CLASS; exports.CONTEXT_ROW_CLASS = _chunkIN4IO7BLcjs.CONTEXT_ROW_CLASS; exports.CONTEXT_STATE_CLASS = _chunkIN4IO7BLcjs.CONTEXT_STATE_CLASS; exports.CUSTOM_ITEM_ID = _chunkIN4IO7BLcjs.CUSTOM_ITEM_ID; exports.CampaignCardAdmin = _chunkIN4IO7BLcjs.CampaignCardAdmin; exports.CampaignCardAdminSkeleton = _chunkIN4IO7BLcjs.CampaignCardAdminSkeleton; exports.CaseStudyCard = _chunkIN4IO7BLcjs.CaseStudyCard; exports.CaseStudyCardSkeleton = _chunkIN4IO7BLcjs.CaseStudyCardSkeleton; exports.ChatArchivePage = _chunkIN4IO7BLcjs.ChatArchivePage; exports.ChatAttachmentAddButton = _chunkIN4IO7BLcjs.ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = _chunkIN4IO7BLcjs.ChatAttachmentChipStrip; exports.ChatCardLoader = _chunkIN4IO7BLcjs.ChatCardLoader; exports.ChatComposer = _chunkIN4IO7BLcjs.ChatComposer; exports.ChatComposerPlusMenu = _chunkIN4IO7BLcjs.ChatComposerPlusMenu; exports.ChatContainer = _chunkIN4IO7BLcjs.ChatContainer; exports.ChatContent = _chunkIN4IO7BLcjs.ChatContent; exports.ChatContextChipStrip = _chunkIN4IO7BLcjs.ChatContextChipStrip; exports.ChatContextMemoryBar = _chunkIN4IO7BLcjs.ChatContextMemoryBar; exports.ChatContextPicker = _chunkIN4IO7BLcjs.ChatContextPicker; exports.ChatDialogModals = _chunkIN4IO7BLcjs.ChatDialogModals; exports.ChatFooter = _chunkIN4IO7BLcjs.ChatFooter; exports.ChatHeader = _chunkIN4IO7BLcjs.ChatHeader; exports.ChatHeaderIconButton = _chunkIN4IO7BLcjs.ChatHeaderIconButton; exports.ChatHeaderSearchField = _chunkIN4IO7BLcjs.ChatHeaderSearchField; exports.ChatIdentityProvider = _chunkIN4IO7BLcjs.ChatIdentityProvider; exports.ChatInput = _chunkIN4IO7BLcjs.ChatInput; exports.ChatMessageEnhanced = _chunkIN4IO7BLcjs.MemoizedChatMessageEnhanced; exports.ChatMessageList = _chunkIN4IO7BLcjs.ChatMessageList; exports.ChatMessageListSkeleton = _chunkIN4IO7BLcjs.ChatMessageListSkeleton; exports.ChatMessageRow = _chunkIN4IO7BLcjs.ChatMessageRow; exports.ChatMessageRowSkeleton = _chunkIN4IO7BLcjs.ChatMessageRowSkeleton; exports.ChatMessageSkeleton = _chunkIN4IO7BLcjs.ChatMessageSkeleton; exports.ChatPanelHeader = _chunkIN4IO7BLcjs.ChatPanelHeader; exports.ChatSidebar = _chunkIN4IO7BLcjs.ChatSidebar; exports.ChatTicketItem = _chunkIN4IO7BLcjs.ChatTicketItem; exports.ChatTicketList = _chunkIN4IO7BLcjs.ChatTicketList; exports.ChatTypingIndicator = _chunkIN4IO7BLcjs.ChatTypingIndicator; exports.ChatVideoEntityCard = _chunkIN4IO7BLcjs.ChatVideoEntityCard; exports.CommandBlock = _chunkIN4IO7BLcjs.CommandBlock; exports.ContextCompactionDisplay = _chunkIN4IO7BLcjs.ContextCompactionDisplay; exports.ContextErrorBoundary = _chunkIN4IO7BLcjs.ContextErrorBoundary; exports.ContextItemsList = _chunkIN4IO7BLcjs.ContextItemsList; exports.ContextItemsSkeleton = _chunkIN4IO7BLcjs.ContextItemsSkeleton; exports.ContextMenuRow = _chunkIN4IO7BLcjs.ContextMenuRow; exports.CustomerInterviewCard = _chunkIN4IO7BLcjs.CustomerInterviewCard; exports.CustomerInterviewCardSkeleton = _chunkIN4IO7BLcjs.CustomerInterviewCardSkeleton; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = _chunkIN4IO7BLcjs.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.DataRoomDocCard = _chunkIN4IO7BLcjs.DataRoomDocCard; exports.DataRoomDocCardSkeleton = _chunkIN4IO7BLcjs.DataRoomDocCardSkeleton; exports.DialogListItem = _chunkIN4IO7BLcjs.DialogListItem; exports.EMPTY_AUTHOR_PLACEHOLDER = _chunkIN4IO7BLcjs.EMPTY_AUTHOR_PLACEHOLDER; exports.EmbeddableChat = _chunkIN4IO7BLcjs.EmbeddableChat; exports.EntityAuthorCard = _chunkIN4IO7BLcjs.EntityAuthorCard; exports.EntityMetadataAuthorCell = _chunkIN4IO7BLcjs.EntityMetadataAuthorCell; exports.EntityMetadataValueCell = _chunkIN4IO7BLcjs.EntityMetadataValueCell; exports.EntityPortraitCard = _chunkIN4IO7BLcjs.EntityPortraitCard; exports.ErrorMessageDisplay = _chunkIN4IO7BLcjs.ErrorMessageDisplay; exports.ExpandChevron = _chunkIN4IO7BLcjs.ExpandChevron; exports.GenericEntityCard = _chunkIN4IO7BLcjs.GenericEntityCard; exports.GenericEntityCardSkeleton = _chunkIN4IO7BLcjs.GenericEntityCardSkeleton; exports.GitHubActivityCard = _chunkIN4IO7BLcjs.GitHubActivityCard; exports.GitHubActivityCardSkeleton = _chunkIN4IO7BLcjs.GitHubActivityCardSkeleton; exports.GuideModeBanner = _chunkIN4IO7BLcjs.GuideModeBanner; exports.GuideWelcome = _chunkIN4IO7BLcjs.GuideWelcome; exports.HubspotTicketCard = _chunkIN4IO7BLcjs.HubspotTicketCard; exports.HubspotTicketCardSkeleton = _chunkIN4IO7BLcjs.HubspotTicketCardSkeleton; exports.ICON_ALIASES = _chunkIN4IO7BLcjs.ICON_ALIASES; exports.ICON_OPTIONS = _chunkIN4IO7BLcjs.ICON_OPTIONS; exports.ICON_REGISTRY = _chunkIN4IO7BLcjs.ICON_REGISTRY; exports.InvestorUpdateCard = _chunkIN4IO7BLcjs.InvestorUpdateCard; exports.InvestorUpdateCardSkeleton = _chunkIN4IO7BLcjs.InvestorUpdateCardSkeleton; exports.MESSAGE_ROLE = _chunkIN4IO7BLcjs.MESSAGE_ROLE; exports.MESSAGE_TYPE = _chunkIN4IO7BLcjs.MESSAGE_TYPE; exports.MessageSegmentAccumulator = _chunkIN4IO7BLcjs.MessageSegmentAccumulator; exports.MingoChatHistory = _chunkIN4IO7BLcjs.MingoChatHistory; exports.MingoChatHistorySkeleton = _chunkIN4IO7BLcjs.MingoChatHistorySkeleton; exports.MingoHistoryRail = _chunkIN4IO7BLcjs.MingoHistoryRail; exports.MingoOnboardingCard = _chunkIN4IO7BLcjs.MingoOnboardingCard; exports.MingoOnboardingCardSkeleton = _chunkIN4IO7BLcjs.MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = _chunkIN4IO7BLcjs.MingoOnboardingListSkeleton; exports.MingoWelcome = _chunkIN4IO7BLcjs.MingoWelcome; exports.ModelDisplay = _chunkIN4IO7BLcjs.ModelDisplay; exports.ModelDisplaySkeleton = _chunkIN4IO7BLcjs.ModelDisplaySkeleton; exports.MspOrganizationCard = _chunkIN4IO7BLcjs.MspOrganizationCard; exports.MspOrganizationCardSkeleton = _chunkIN4IO7BLcjs.MspOrganizationCardSkeleton; exports.NETWORK_CONFIG = _chunkIN4IO7BLcjs.NETWORK_CONFIG; exports.NEW_TAB_FEATURES = _chunkIN4IO7BLcjs.NEW_TAB_FEATURES; exports.NavLinkAnchorViaRuntime = _chunkIN4IO7BLcjs.NavLinkAnchorViaRuntime; exports.OWNER_TYPE = _chunkIN4IO7BLcjs.OWNER_TYPE; exports.OnboardingGuideCard = _chunkIN4IO7BLcjs.OnboardingGuideCard; exports.OnboardingGuideCardSkeleton = _chunkIN4IO7BLcjs.OnboardingGuideCardSkeleton; exports.ProductReleaseCard = _chunkIN4IO7BLcjs.ProductReleaseCard; exports.ProductReleaseCardSkeleton = _chunkIN4IO7BLcjs.ProductReleaseCardSkeleton; exports.ProgramCard = _chunkIN4IO7BLcjs.ProgramCard; exports.ProgramCardSkeleton = _chunkIN4IO7BLcjs.ProgramCardSkeleton; exports.QuickActionChipButton = _chunkIN4IO7BLcjs.QuickActionChipButton; exports.QuickActionChipFromData = _chunkIN4IO7BLcjs.QuickActionChipFromData; exports.QuickActionChipSkeleton = _chunkIN4IO7BLcjs.QuickActionChipSkeleton; exports.QuickActionMarquee = _chunkIN4IO7BLcjs.QuickActionMarquee; exports.QuickActionWall = _chunkIN4IO7BLcjs.QuickActionWall; exports.RenameChatModal = _chunkIN4IO7BLcjs.RenameChatModal; exports.ResultBlock = _chunkIN4IO7BLcjs.ResultBlock; exports.RoadmapCard = _chunkIN4IO7BLcjs.RoadmapCard; exports.RoadmapCardSkeleton = _chunkIN4IO7BLcjs.RoadmapCardSkeleton; exports.RoadmapVoteButton = _chunkIN4IO7BLcjs.RoadmapVoteButton; exports.SCROLL_ANCHOR = _chunkIN4IO7BLcjs.SCROLL_ANCHOR; exports.SCROLL_ANCHOR_WIRE_KEY = _chunkIN4IO7BLcjs.SCROLL_ANCHOR_WIRE_KEY; exports.SOURCE_ICON_NAMES = _chunkIN4IO7BLcjs.SOURCE_ICON_NAMES; exports.SOURCE_LABELS_BY_TABLE = _chunkIN4IO7BLcjs.SOURCE_LABELS_BY_TABLE; exports.SYNTHETIC_REALTIME_ID_PREFIXES = _chunkIN4IO7BLcjs.SYNTHETIC_REALTIME_ID_PREFIXES; exports.SlackMessageCard = _chunkIN4IO7BLcjs.SlackMessageCard; exports.SlackMessageCardSkeleton = _chunkIN4IO7BLcjs.SlackMessageCardSkeleton; exports.SlashCommandSuggestions = _chunkIN4IO7BLcjs.SlashCommandSuggestions; exports.SourceActionButton = _chunkIN4IO7BLcjs.SourceActionButton; exports.TaskTypeIcon = _chunkIN4IO7BLcjs.TaskTypeIcon; exports.ThinkingDisplay = _chunkIN4IO7BLcjs.ThinkingDisplay; exports.ToolExecutionDisplay = _chunkIN4IO7BLcjs.ToolExecutionDisplay; exports.UnarchiveChatModal = _chunkIN4IO7BLcjs.UnarchiveChatModal; exports.WALL_SKELETON_LABEL_CH = _chunkIN4IO7BLcjs.WALL_SKELETON_LABEL_CH; exports.WhatIShippedCard = _chunkIN4IO7BLcjs.WhatIShippedCard; exports.WhatIShippedCardSkeleton = _chunkIN4IO7BLcjs.WhatIShippedCardSkeleton; exports.accentFromIdentityIcon = _chunkIN4IO7BLcjs.accentFromIdentityIcon; exports.appendToTrailingAssistant = _chunkIN4IO7BLcjs.appendToTrailingAssistant; exports.applyProxyAuth = _chunkBIKOJ4FHcjs.applyProxyAuth; exports.applyToolExecutionToMessages = _chunkIN4IO7BLcjs.applyToolExecutionToMessages; exports.buildAnchorProps = _chunkIN4IO7BLcjs.buildAnchorProps; exports.buildAutoContinuationDirective = _chunkIN4IO7BLcjs.buildAutoContinuationDirective; exports.buildChatAttachmentViewUrl = _chunkIN4IO7BLcjs.buildChatAttachmentViewUrl; exports.buildChatRefKey = _chunkIN4IO7BLcjs.buildChatRefKey; exports.buildDiscussAddendum = _chunkIN4IO7BLcjs.buildDiscussAddendum; exports.buildNatsWsUrl = _chunkIN4IO7BLcjs.buildNatsWsUrl; exports.buildProductReleaseCardProps = _chunkIN4IO7BLcjs.buildProductReleaseCardProps; exports.buildStreamFrames = _chunkIN4IO7BLcjs.buildStreamFrames; exports.chatAuthedFetch = _chunkBIKOJ4FHcjs.embedAuthedFetch; exports.chatChipClass = _chunkIN4IO7BLcjs.chatChipClass; exports.clearChatProxyAuth = _chunkBIKOJ4FHcjs.clearEmbedProxyAuth; exports.clickupTaskUrl = _chunkIN4IO7BLcjs.clickupTaskUrl; exports.computeHistoryPrepend = _chunkIN4IO7BLcjs.computeHistoryPrepend; exports.computeIsNewTab = _chunkIN4IO7BLcjs.computeIsNewTab; exports.createMessageSegmentAccumulator = _chunkIN4IO7BLcjs.createMessageSegmentAccumulator; exports.decideNewTab = _chunkIN4IO7BLcjs.decideNewTab; exports.defaultBuildProductReleaseCardProps = _chunkIN4IO7BLcjs.defaultBuildProductReleaseCardProps; exports.defaultTableIdForDocumentType = _chunkIN4IO7BLcjs.defaultTableIdForDocumentType; exports.escapeMarkdownInline = _chunkIN4IO7BLcjs.escapeMarkdownInline; exports.executeNavigation = _chunkIN4IO7BLcjs.executeNavigation; exports.executeNavigationImperative = _chunkIN4IO7BLcjs.executeNavigationImperative; exports.extractEntityIdFilter = _chunkIN4IO7BLcjs.extractEntityIdFilter; exports.extractErrorMessages = _chunkIN4IO7BLcjs.extractErrorMessages; exports.extractIncompleteMessageState = _chunkIN4IO7BLcjs.extractIncompleteMessageState; exports.extractTextFromChunk = _chunkIN4IO7BLcjs.extractTextFromChunk; exports.fetchEmptyStateConfig = _chunkIN4IO7BLcjs.fetchEmptyStateConfig; exports.fetchSlashCommands = _chunkIN4IO7BLcjs.fetchSlashCommands; exports.flattenAssistantContent = _chunkIN4IO7BLcjs.flattenAssistantContent; exports.flattenMessagePagesChronological = _chunkIN4IO7BLcjs.flattenMessagePagesChronological; exports.formatChatAttachmentMarkdownForBubble = _chunkIN4IO7BLcjs.formatChatAttachmentMarkdownForBubble; exports.formatInvestorUpdatePeriod = _chunkIN4IO7BLcjs.formatInvestorUpdatePeriod; exports.formatSingularLookupInvocation = _chunkIN4IO7BLcjs.formatSingularLookupInvocation; exports.getAgentAccent = _chunkIN4IO7BLcjs.getAgentAccent; exports.getChatProxyAuth = _chunkBIKOJ4FHcjs.getEmbedProxyAuth; exports.getCommandText = _chunkIN4IO7BLcjs.getCommandText; exports.getDynamicIcon = _chunkIN4IO7BLcjs.getDynamicIcon; exports.getIconComponent = _chunkIN4IO7BLcjs.getIconComponent; exports.getPersistedProxyEmail = _chunkBIKOJ4FHcjs.getPersistedProxyEmail; exports.getSourceIconName = _chunkIN4IO7BLcjs.getSourceIconName; exports.getSourceLabel = _chunkIN4IO7BLcjs.getSourceLabel; exports.getStatusColorScheme = _chunkIN4IO7BLcjs.getStatusColorScheme; exports.getTaskTypeLabel = _chunkIN4IO7BLcjs.getTaskTypeLabel; exports.handleChatNavClick = _chunkIN4IO7BLcjs.handleChatNavClick; exports.hideOnError = _chunkIN4IO7BLcjs.hideOnError; exports.historicalToUnified = _chunkIN4IO7BLcjs.historicalToUnified; exports.interleave = _chunkIN4IO7BLcjs.interleave; exports.isControlChunk = _chunkIN4IO7BLcjs.isControlChunk; exports.isCrossOriginUrl = _chunkIN4IO7BLcjs.isCrossOriginUrl; exports.isErrorChunk = _chunkIN4IO7BLcjs.isErrorChunk; exports.isHistoricalUserTurn = _chunkIN4IO7BLcjs.isHistoricalUserTurn; exports.isMetadataChunk = _chunkIN4IO7BLcjs.isMetadataChunk; exports.isModifierClick = _chunkIN4IO7BLcjs.isModifierClick; exports.isQuickActionIconSpec = _chunkIN4IO7BLcjs.isQuickActionIconSpec; exports.isStructuredContent = _chunkIN4IO7BLcjs.isStructuredContent; exports.mapProcessedToUnified = _chunkIN4IO7BLcjs.mapProcessedToUnified; exports.maxPersistedStreamSeq = _chunkIN4IO7BLcjs.maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = _chunkIN4IO7BLcjs.mergeHistoryWithRealtime; exports.newTabAnchorAttrs = _chunkIN4IO7BLcjs.newTabAnchorAttrs; exports.normalizeContent = _chunkIN4IO7BLcjs.normalizeContent; exports.normalizeHistoricalMessageData = _chunkIN4IO7BLcjs.normalizeHistoricalMessageData; exports.normalizeIconKey = _chunkIN4IO7BLcjs.normalizeIconKey; exports.parseChunkToAction = _chunkIN4IO7BLcjs.parseChunkToAction; exports.parseScrollAnchor = _chunkIN4IO7BLcjs.parseScrollAnchor; exports.parseWireCommandOverride = _chunkIN4IO7BLcjs.parseWireCommandOverride; exports.processHistoricalMessages = _chunkIN4IO7BLcjs.processHistoricalMessages; exports.processHistoricalMessagesWithErrors = _chunkIN4IO7BLcjs.processHistoricalMessagesWithErrors; exports.programItemToStripProfile = _chunkIN4IO7BLcjs.programItemToStripProfile; exports.remarkCardLinks = _chunkIN4IO7BLcjs.remarkCardLinks; exports.remarkMentionChips = _chunkIN4IO7BLcjs.remarkMentionChips; exports.renderChatInlineEntityCard = _chunkIN4IO7BLcjs.renderChatInlineEntityCard; exports.renderQuickActionIcon = _chunkIN4IO7BLcjs.renderQuickActionIcon; exports.resolveExternalNavigation = _chunkIN4IO7BLcjs.resolveExternalNavigation; exports.resolveIcon = _chunkIN4IO7BLcjs.resolveIcon; exports.resolveSourceIcon = _chunkIN4IO7BLcjs.resolveSourceIcon; exports.resolveSourceRowCTA = _chunkIN4IO7BLcjs.resolveSourceRowCTA; exports.safeHref = _chunkIN4IO7BLcjs.safeHref; exports.sanitizeTitleForChat = _chunkIN4IO7BLcjs.sanitizeTitleForChat; exports.setChatProxyAuth = _chunkBIKOJ4FHcjs.setEmbedProxyAuth; exports.stripChatAttachmentMarkdown = _chunkIN4IO7BLcjs.stripChatAttachmentMarkdown; exports.stripSameOriginToPath = _chunkIN4IO7BLcjs.stripSameOriginToPath; exports.transformEventToProgram = _chunkIN4IO7BLcjs.transformEventToProgram; exports.transformPodcastToProgram = _chunkIN4IO7BLcjs.transformPodcastToProgram; exports.transformWebinarToProgram = _chunkIN4IO7BLcjs.transformWebinarToProgram; exports.upsertTrailingCompaction = _chunkIN4IO7BLcjs.upsertTrailingCompaction; exports.useChat = _chunkIN4IO7BLcjs.useChat; exports.useChatAttachmentImageGallery = _chunkIN4IO7BLcjs.useChatAttachmentImageGallery; exports.useChatAttachments = _chunkIN4IO7BLcjs.useChatAttachments; exports.useChatCardItem = _chunkIN4IO7BLcjs.useChatCardItem; exports.useChatIdentity = _chunkIN4IO7BLcjs.useChatIdentity; exports.useChunkCatchup = _chunkIN4IO7BLcjs.useChunkCatchup; exports.useCloseOnNavigation = _chunkIN4IO7BLcjs.useCloseOnNavigation; exports.useCollapsible = _chunkIN4IO7BLcjs.useCollapsible; exports.useCoverImageFallback = _chunkIN4IO7BLcjs.useCoverImageFallback; exports.useEmbeddedChat = _chunkIN4IO7BLcjs.useSseChatAdapter; exports.useEmptyStateConfig = _chunkIN4IO7BLcjs.useEmptyStateConfig; exports.useJetStreamDialogSubscription = _chunkIN4IO7BLcjs.useJetStreamDialogSubscription; exports.useNatsChatAdapter = _chunkIN4IO7BLcjs.useNatsChatAdapter; exports.useNatsDialogSubscription = _chunkIN4IO7BLcjs.useNatsDialogSubscription; exports.useProxiedImageUrl = _chunkIN4IO7BLcjs.useProxiedImageUrl; exports.useRealtimeChunkProcessor = _chunkIN4IO7BLcjs.useRealtimeChunkProcessor; exports.useSSE = _chunkIN4IO7BLcjs.useSSE; exports.useScriptedStream = _chunkIN4IO7BLcjs.useScriptedStream; exports.useSlashCommandRegistry = _chunkIN4IO7BLcjs.useSlashCommandRegistry; exports.useSlashCommands = _chunkIN4IO7BLcjs.useSlashCommands; exports.useSseChatAdapter = _chunkIN4IO7BLcjs.useSseChatAdapter; exports.useUnifiedChat = _chunkIN4IO7BLcjs.useUnifiedChat;
571
+
572
+
573
+
574
+
575
+ exports.ANTHROPIC_SUPPORTED_IMAGE_MIME = _chunk5LMGFI4Jcjs.ANTHROPIC_SUPPORTED_IMAGE_MIME; exports.APPROVAL_BLOCK_VARIANT = _chunk5LMGFI4Jcjs.APPROVAL_BLOCK_VARIANT; exports.APPROVAL_STATUS = _chunk5LMGFI4Jcjs.APPROVAL_STATUS; exports.ASSISTANT_TYPE = _chunk5LMGFI4Jcjs.ASSISTANT_TYPE; exports.AUTHOR_TYPE = _chunk5LMGFI4Jcjs.AUTHOR_TYPE; exports.AUTO_CONTINUATION_DIRECTIVE_PREFIX = _chunk5LMGFI4Jcjs.AUTO_CONTINUATION_DIRECTIVE_PREFIX; exports.AdminContentCard = _chunk5LMGFI4Jcjs.AdminContentCard; exports.ApprovalBatchMessage = _chunk5LMGFI4Jcjs.ApprovalBatchMessage; exports.ApprovalRequestMessage = _chunk5LMGFI4Jcjs.ApprovalRequestMessage; exports.ApprovalStatusTag = _chunk5LMGFI4Jcjs.ApprovalStatusTag; exports.ArchiveChatModal = _chunk5LMGFI4Jcjs.ArchiveChatModal; exports.ArgRow = _chunk5LMGFI4Jcjs.ArgRow; exports.BlockCard = _chunk5LMGFI4Jcjs.BlockCard; exports.BlogCard = _chunk5LMGFI4Jcjs.BlogCard; exports.BlogCardSkeleton = _chunk5LMGFI4Jcjs.BlogCardSkeleton; exports.BlogImagePlaceholder = _chunk5LMGFI4Jcjs.BlogImagePlaceholder; exports.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_CONCURRENT_UPLOADS_PER_USER; exports.CHAT_ATTACHMENT_MARKDOWN_PATTERN = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_MARKDOWN_PATTERN; exports.CHAT_ATTACHMENT_MIME_TYPES = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_MIME_TYPES; exports.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_VIEW_TOKEN_QUERY_PARAM; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_VIEW_URL_PREFIX; exports.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED = _chunk5LMGFI4Jcjs.CHAT_ATTACHMENT_VIEW_URL_PREFIX_REGEX_ESCAPED; exports.CHAT_CONTEXT_ITEMS_DEFAULT_MAX = _chunk5LMGFI4Jcjs.CHAT_CONTEXT_ITEMS_DEFAULT_MAX; exports.CHAT_TYPE = _chunk5LMGFI4Jcjs.CHAT_TYPE; exports.CHIP_ACTION_BUTTON_CLASS = _chunk5LMGFI4Jcjs.CHIP_ACTION_BUTTON_CLASS; exports.COMPACT_CARD_ICON_SLOT = _chunk5LMGFI4Jcjs.COMPACT_CARD_ICON_SLOT; exports.COMPACT_CARD_IMAGE_SLOT = _chunk5LMGFI4Jcjs.COMPACT_CARD_IMAGE_SLOT; exports.COMPACT_CARD_META_ROW = _chunk5LMGFI4Jcjs.COMPACT_CARD_META_ROW; exports.COMPACT_CARD_META_ROW_BOX = _chunk5LMGFI4Jcjs.COMPACT_CARD_META_ROW_BOX; exports.COMPACT_CARD_OUTER = _chunk5LMGFI4Jcjs.COMPACT_CARD_OUTER; exports.COMPACT_CARD_OUTER_STATIC = _chunk5LMGFI4Jcjs.COMPACT_CARD_OUTER_STATIC; exports.COMPACT_CARD_ROW_FILLER = _chunk5LMGFI4Jcjs.COMPACT_CARD_ROW_FILLER; exports.COMPACT_CARD_SKELETON_IMAGE_SLOT = _chunk5LMGFI4Jcjs.COMPACT_CARD_SKELETON_IMAGE_SLOT; exports.COMPACT_CARD_SKELETON_OUTER = _chunk5LMGFI4Jcjs.COMPACT_CARD_SKELETON_OUTER; exports.COMPACT_CARD_SUBTITLE = _chunk5LMGFI4Jcjs.COMPACT_CARD_SUBTITLE; exports.COMPACT_CARD_SUMMARY = _chunk5LMGFI4Jcjs.COMPACT_CARD_SUMMARY; exports.COMPACT_CARD_TEXT_COL = _chunk5LMGFI4Jcjs.COMPACT_CARD_TEXT_COL; exports.COMPACT_CARD_TITLE = _chunk5LMGFI4Jcjs.COMPACT_CARD_TITLE; exports.COMPACT_CARD_TITLE_ROW = _chunk5LMGFI4Jcjs.COMPACT_CARD_TITLE_ROW; exports.CONNECTION_STATUS = _chunk5LMGFI4Jcjs.CONNECTION_STATUS; exports.CONTEXT_BACK_CLASS = _chunk5LMGFI4Jcjs.CONTEXT_BACK_CLASS; exports.CONTEXT_ICON_CLASS = _chunk5LMGFI4Jcjs.CONTEXT_ICON_CLASS; exports.CONTEXT_LABEL_CLASS = _chunk5LMGFI4Jcjs.CONTEXT_LABEL_CLASS; exports.CONTEXT_ROW_CLASS = _chunk5LMGFI4Jcjs.CONTEXT_ROW_CLASS; exports.CONTEXT_STATE_CLASS = _chunk5LMGFI4Jcjs.CONTEXT_STATE_CLASS; exports.CUSTOM_ITEM_ID = _chunk5LMGFI4Jcjs.CUSTOM_ITEM_ID; exports.CampaignCardAdmin = _chunk5LMGFI4Jcjs.CampaignCardAdmin; exports.CampaignCardAdminSkeleton = _chunk5LMGFI4Jcjs.CampaignCardAdminSkeleton; exports.CaseStudyCard = _chunk5LMGFI4Jcjs.CaseStudyCard; exports.CaseStudyCardSkeleton = _chunk5LMGFI4Jcjs.CaseStudyCardSkeleton; exports.ChatArchivePage = _chunk5LMGFI4Jcjs.ChatArchivePage; exports.ChatAttachmentAddButton = _chunk5LMGFI4Jcjs.ChatAttachmentAddButton; exports.ChatAttachmentChipStrip = _chunk5LMGFI4Jcjs.ChatAttachmentChipStrip; exports.ChatCardLoader = _chunk5LMGFI4Jcjs.ChatCardLoader; exports.ChatComposer = _chunk5LMGFI4Jcjs.ChatComposer; exports.ChatComposerPlusMenu = _chunk5LMGFI4Jcjs.ChatComposerPlusMenu; exports.ChatContainer = _chunk5LMGFI4Jcjs.ChatContainer; exports.ChatContent = _chunk5LMGFI4Jcjs.ChatContent; exports.ChatContextChipStrip = _chunk5LMGFI4Jcjs.ChatContextChipStrip; exports.ChatContextMemoryBar = _chunk5LMGFI4Jcjs.ChatContextMemoryBar; exports.ChatContextPicker = _chunk5LMGFI4Jcjs.ChatContextPicker; exports.ChatDialogModals = _chunk5LMGFI4Jcjs.ChatDialogModals; exports.ChatFooter = _chunk5LMGFI4Jcjs.ChatFooter; exports.ChatHeader = _chunk5LMGFI4Jcjs.ChatHeader; exports.ChatHeaderIconButton = _chunk5LMGFI4Jcjs.ChatHeaderIconButton; exports.ChatHeaderSearchField = _chunk5LMGFI4Jcjs.ChatHeaderSearchField; exports.ChatIdentityProvider = _chunk5LMGFI4Jcjs.ChatIdentityProvider; exports.ChatInput = _chunk5LMGFI4Jcjs.ChatInput; exports.ChatMessageEnhanced = _chunk5LMGFI4Jcjs.MemoizedChatMessageEnhanced; exports.ChatMessageList = _chunk5LMGFI4Jcjs.ChatMessageList; exports.ChatMessageListSkeleton = _chunk5LMGFI4Jcjs.ChatMessageListSkeleton; exports.ChatMessageRow = _chunk5LMGFI4Jcjs.ChatMessageRow; exports.ChatMessageRowSkeleton = _chunk5LMGFI4Jcjs.ChatMessageRowSkeleton; exports.ChatMessageSkeleton = _chunk5LMGFI4Jcjs.ChatMessageSkeleton; exports.ChatPanelHeader = _chunk5LMGFI4Jcjs.ChatPanelHeader; exports.ChatSidebar = _chunk5LMGFI4Jcjs.ChatSidebar; exports.ChatTicketItem = _chunk5LMGFI4Jcjs.ChatTicketItem; exports.ChatTicketList = _chunk5LMGFI4Jcjs.ChatTicketList; exports.ChatTypingIndicator = _chunk5LMGFI4Jcjs.ChatTypingIndicator; exports.ChatVideoEntityCard = _chunk5LMGFI4Jcjs.ChatVideoEntityCard; exports.CommandBlock = _chunk5LMGFI4Jcjs.CommandBlock; exports.ContextCompactionDisplay = _chunk5LMGFI4Jcjs.ContextCompactionDisplay; exports.ContextErrorBoundary = _chunk5LMGFI4Jcjs.ContextErrorBoundary; exports.ContextItemsList = _chunk5LMGFI4Jcjs.ContextItemsList; exports.ContextItemsSkeleton = _chunk5LMGFI4Jcjs.ContextItemsSkeleton; exports.ContextMenuRow = _chunk5LMGFI4Jcjs.ContextMenuRow; exports.CustomerInterviewCard = _chunk5LMGFI4Jcjs.CustomerInterviewCard; exports.CustomerInterviewCardSkeleton = _chunk5LMGFI4Jcjs.CustomerInterviewCardSkeleton; exports.DEFAULT_DIALOG_SIDE = _chunk5LMGFI4Jcjs.DEFAULT_DIALOG_SIDE; exports.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID = _chunk5LMGFI4Jcjs.DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID; exports.DEFAULT_MAX_REDUCERS = _chunk5LMGFI4Jcjs.DEFAULT_MAX_REDUCERS; exports.DataRoomDocCard = _chunk5LMGFI4Jcjs.DataRoomDocCard; exports.DataRoomDocCardSkeleton = _chunk5LMGFI4Jcjs.DataRoomDocCardSkeleton; exports.DialogListItem = _chunk5LMGFI4Jcjs.DialogListItem; exports.EMPTY_AUTHOR_PLACEHOLDER = _chunk5LMGFI4Jcjs.EMPTY_AUTHOR_PLACEHOLDER; exports.EmbeddableChat = _chunk5LMGFI4Jcjs.EmbeddableChat; exports.EntityAuthorCard = _chunk5LMGFI4Jcjs.EntityAuthorCard; exports.EntityMetadataAuthorCell = _chunk5LMGFI4Jcjs.EntityMetadataAuthorCell; exports.EntityMetadataValueCell = _chunk5LMGFI4Jcjs.EntityMetadataValueCell; exports.EntityPortraitCard = _chunk5LMGFI4Jcjs.EntityPortraitCard; exports.ErrorMessageDisplay = _chunk5LMGFI4Jcjs.ErrorMessageDisplay; exports.ExpandChevron = _chunk5LMGFI4Jcjs.ExpandChevron; exports.GenericEntityCard = _chunk5LMGFI4Jcjs.GenericEntityCard; exports.GenericEntityCardSkeleton = _chunk5LMGFI4Jcjs.GenericEntityCardSkeleton; exports.GitHubActivityCard = _chunk5LMGFI4Jcjs.GitHubActivityCard; exports.GitHubActivityCardSkeleton = _chunk5LMGFI4Jcjs.GitHubActivityCardSkeleton; exports.GuideModeBanner = _chunk5LMGFI4Jcjs.GuideModeBanner; exports.GuideWelcome = _chunk5LMGFI4Jcjs.GuideWelcome; exports.HubspotTicketCard = _chunk5LMGFI4Jcjs.HubspotTicketCard; exports.HubspotTicketCardSkeleton = _chunk5LMGFI4Jcjs.HubspotTicketCardSkeleton; exports.ICON_ALIASES = _chunk5LMGFI4Jcjs.ICON_ALIASES; exports.ICON_OPTIONS = _chunk5LMGFI4Jcjs.ICON_OPTIONS; exports.ICON_REGISTRY = _chunk5LMGFI4Jcjs.ICON_REGISTRY; exports.InvestorUpdateCard = _chunk5LMGFI4Jcjs.InvestorUpdateCard; exports.InvestorUpdateCardSkeleton = _chunk5LMGFI4Jcjs.InvestorUpdateCardSkeleton; exports.MAX_PENDING_RETAIN_KEYS = _chunk5LMGFI4Jcjs.MAX_PENDING_RETAIN_KEYS; exports.MESSAGE_ROLE = _chunk5LMGFI4Jcjs.MESSAGE_ROLE; exports.MESSAGE_TYPE = _chunk5LMGFI4Jcjs.MESSAGE_TYPE; exports.MessageSegmentAccumulator = _chunk5LMGFI4Jcjs.MessageSegmentAccumulator; exports.MingoChatHistory = _chunk5LMGFI4Jcjs.MingoChatHistory; exports.MingoChatHistorySkeleton = _chunk5LMGFI4Jcjs.MingoChatHistorySkeleton; exports.MingoHistoryRail = _chunk5LMGFI4Jcjs.MingoHistoryRail; exports.MingoOnboardingCard = _chunk5LMGFI4Jcjs.MingoOnboardingCard; exports.MingoOnboardingCardSkeleton = _chunk5LMGFI4Jcjs.MingoOnboardingCardSkeleton; exports.MingoOnboardingListSkeleton = _chunk5LMGFI4Jcjs.MingoOnboardingListSkeleton; exports.MingoWelcome = _chunk5LMGFI4Jcjs.MingoWelcome; exports.ModelDisplay = _chunk5LMGFI4Jcjs.ModelDisplay; exports.ModelDisplaySkeleton = _chunk5LMGFI4Jcjs.ModelDisplaySkeleton; exports.MspOrganizationCard = _chunk5LMGFI4Jcjs.MspOrganizationCard; exports.MspOrganizationCardSkeleton = _chunk5LMGFI4Jcjs.MspOrganizationCardSkeleton; exports.NETWORK_CONFIG = _chunk5LMGFI4Jcjs.NETWORK_CONFIG; exports.NEW_TAB_FEATURES = _chunk5LMGFI4Jcjs.NEW_TAB_FEATURES; exports.NavLinkAnchorViaRuntime = _chunk5LMGFI4Jcjs.NavLinkAnchorViaRuntime; exports.OWNER_TYPE = _chunk5LMGFI4Jcjs.OWNER_TYPE; exports.OnboardingGuideCard = _chunk5LMGFI4Jcjs.OnboardingGuideCard; exports.OnboardingGuideCardSkeleton = _chunk5LMGFI4Jcjs.OnboardingGuideCardSkeleton; exports.ProductReleaseCard = _chunk5LMGFI4Jcjs.ProductReleaseCard; exports.ProductReleaseCardSkeleton = _chunk5LMGFI4Jcjs.ProductReleaseCardSkeleton; exports.ProgramCard = _chunk5LMGFI4Jcjs.ProgramCard; exports.ProgramCardSkeleton = _chunk5LMGFI4Jcjs.ProgramCardSkeleton; exports.QuickActionChipButton = _chunk5LMGFI4Jcjs.QuickActionChipButton; exports.QuickActionChipFromData = _chunk5LMGFI4Jcjs.QuickActionChipFromData; exports.QuickActionChipSkeleton = _chunk5LMGFI4Jcjs.QuickActionChipSkeleton; exports.QuickActionMarquee = _chunk5LMGFI4Jcjs.QuickActionMarquee; exports.QuickActionWall = _chunk5LMGFI4Jcjs.QuickActionWall; exports.RenameChatModal = _chunk5LMGFI4Jcjs.RenameChatModal; exports.ResultBlock = _chunk5LMGFI4Jcjs.ResultBlock; exports.RoadmapCard = _chunk5LMGFI4Jcjs.RoadmapCard; exports.RoadmapCardSkeleton = _chunk5LMGFI4Jcjs.RoadmapCardSkeleton; exports.RoadmapVoteButton = _chunk5LMGFI4Jcjs.RoadmapVoteButton; exports.SCROLL_ANCHOR = _chunk5LMGFI4Jcjs.SCROLL_ANCHOR; exports.SCROLL_ANCHOR_WIRE_KEY = _chunk5LMGFI4Jcjs.SCROLL_ANCHOR_WIRE_KEY; exports.SOURCE_ICON_NAMES = _chunk5LMGFI4Jcjs.SOURCE_ICON_NAMES; exports.SOURCE_LABELS_BY_TABLE = _chunk5LMGFI4Jcjs.SOURCE_LABELS_BY_TABLE; exports.SYNTHETIC_REALTIME_ID_PREFIXES = _chunk5LMGFI4Jcjs.SYNTHETIC_REALTIME_ID_PREFIXES; exports.SlackMessageCard = _chunk5LMGFI4Jcjs.SlackMessageCard; exports.SlackMessageCardSkeleton = _chunk5LMGFI4Jcjs.SlackMessageCardSkeleton; exports.SlashCommandSuggestions = _chunk5LMGFI4Jcjs.SlashCommandSuggestions; exports.SourceActionButton = _chunk5LMGFI4Jcjs.SourceActionButton; exports.TaskTypeIcon = _chunk5LMGFI4Jcjs.TaskTypeIcon; exports.ThinkingDisplay = _chunk5LMGFI4Jcjs.ThinkingDisplay; exports.ToolExecutionDisplay = _chunk5LMGFI4Jcjs.ToolExecutionDisplay; exports.UnarchiveChatModal = _chunk5LMGFI4Jcjs.UnarchiveChatModal; exports.WALL_SKELETON_LABEL_CH = _chunk5LMGFI4Jcjs.WALL_SKELETON_LABEL_CH; exports.WhatIShippedCard = _chunk5LMGFI4Jcjs.WhatIShippedCard; exports.WhatIShippedCardSkeleton = _chunk5LMGFI4Jcjs.WhatIShippedCardSkeleton; exports.accentFromIdentityIcon = _chunk5LMGFI4Jcjs.accentFromIdentityIcon; exports.appendToTrailingAssistant = _chunk5LMGFI4Jcjs.appendToTrailingAssistant; exports.applyProxyAuth = _chunkBIKOJ4FHcjs.applyProxyAuth; exports.applyToolExecutionToMessages = _chunk5LMGFI4Jcjs.applyToolExecutionToMessages; exports.buildAnchorProps = _chunk5LMGFI4Jcjs.buildAnchorProps; exports.buildAutoContinuationDirective = _chunk5LMGFI4Jcjs.buildAutoContinuationDirective; exports.buildChatAttachmentViewUrl = _chunk5LMGFI4Jcjs.buildChatAttachmentViewUrl; exports.buildChatRefKey = _chunk5LMGFI4Jcjs.buildChatRefKey; exports.buildDiscussAddendum = _chunk5LMGFI4Jcjs.buildDiscussAddendum; exports.buildNatsWsUrl = _chunk5LMGFI4Jcjs.buildNatsWsUrl; exports.buildProductReleaseCardProps = _chunk5LMGFI4Jcjs.buildProductReleaseCardProps; exports.buildStreamFrames = _chunk5LMGFI4Jcjs.buildStreamFrames; exports.chatAuthedFetch = _chunkBIKOJ4FHcjs.embedAuthedFetch; exports.chatChipClass = _chunk5LMGFI4Jcjs.chatChipClass; exports.clearChatProxyAuth = _chunkBIKOJ4FHcjs.clearEmbedProxyAuth; exports.clickupTaskUrl = _chunk5LMGFI4Jcjs.clickupTaskUrl; exports.computeHistoryPrepend = _chunk5LMGFI4Jcjs.computeHistoryPrepend; exports.computeIsNewTab = _chunk5LMGFI4Jcjs.computeIsNewTab; exports.createChatDialogStore = _chunk5LMGFI4Jcjs.createChatDialogStore; exports.createChatStreamReducer = _chunk5LMGFI4Jcjs.createChatStreamReducer; exports.createDeltaBatcher = _chunk5LMGFI4Jcjs.createDeltaBatcher; exports.createEmptyTurnMeta = _chunk5LMGFI4Jcjs.createEmptyTurnMeta; exports.createMessageSegmentAccumulator = _chunk5LMGFI4Jcjs.createMessageSegmentAccumulator; exports.decideNewTab = _chunk5LMGFI4Jcjs.decideNewTab; exports.decodeHistoricalMessageData = _chunk5LMGFI4Jcjs.decodeHistoricalMessageData; exports.defaultBuildProductReleaseCardProps = _chunk5LMGFI4Jcjs.defaultBuildProductReleaseCardProps; exports.defaultTableIdForDocumentType = _chunk5LMGFI4Jcjs.defaultTableIdForDocumentType; exports.escapeMarkdownInline = _chunk5LMGFI4Jcjs.escapeMarkdownInline; exports.executeNavigation = _chunk5LMGFI4Jcjs.executeNavigation; exports.executeNavigationImperative = _chunk5LMGFI4Jcjs.executeNavigationImperative; exports.extractEntityIdFilter = _chunk5LMGFI4Jcjs.extractEntityIdFilter; exports.extractErrorMessages = _chunk5LMGFI4Jcjs.extractErrorMessages; exports.extractIncompleteMessageState = _chunk5LMGFI4Jcjs.extractIncompleteMessageState; exports.extractIncompleteTailState = _chunk5LMGFI4Jcjs.extractIncompleteTailState; exports.fetchEmptyStateConfig = _chunk5LMGFI4Jcjs.fetchEmptyStateConfig; exports.fetchSlashCommands = _chunk5LMGFI4Jcjs.fetchSlashCommands; exports.flattenAssistantContent = _chunk5LMGFI4Jcjs.flattenAssistantContent; exports.flattenMessagePagesChronological = _chunk5LMGFI4Jcjs.flattenMessagePagesChronological; exports.formatChatAttachmentMarkdownForBubble = _chunk5LMGFI4Jcjs.formatChatAttachmentMarkdownForBubble; exports.formatInvestorUpdatePeriod = _chunk5LMGFI4Jcjs.formatInvestorUpdatePeriod; exports.formatSingularLookupInvocation = _chunk5LMGFI4Jcjs.formatSingularLookupInvocation; exports.getAgentAccent = _chunk5LMGFI4Jcjs.getAgentAccent; exports.getChatProxyAuth = _chunkBIKOJ4FHcjs.getEmbedProxyAuth; exports.getCommandText = _chunk5LMGFI4Jcjs.getCommandText; exports.getDynamicIcon = _chunk5LMGFI4Jcjs.getDynamicIcon; exports.getIconComponent = _chunk5LMGFI4Jcjs.getIconComponent; exports.getPersistedProxyEmail = _chunkBIKOJ4FHcjs.getPersistedProxyEmail; exports.getSourceIconName = _chunk5LMGFI4Jcjs.getSourceIconName; exports.getSourceLabel = _chunk5LMGFI4Jcjs.getSourceLabel; exports.getStatusColorScheme = _chunk5LMGFI4Jcjs.getStatusColorScheme; exports.getTaskTypeLabel = _chunk5LMGFI4Jcjs.getTaskTypeLabel; exports.handleChatNavClick = _chunk5LMGFI4Jcjs.handleChatNavClick; exports.hideOnError = _chunk5LMGFI4Jcjs.hideOnError; exports.historicalToUnified = _chunk5LMGFI4Jcjs.historicalToUnified; exports.interleave = _chunk5LMGFI4Jcjs.interleave; exports.isCrossOriginUrl = _chunk5LMGFI4Jcjs.isCrossOriginUrl; exports.isHistoricalUserTurn = _chunk5LMGFI4Jcjs.isHistoricalUserTurn; exports.isModifierClick = _chunk5LMGFI4Jcjs.isModifierClick; exports.isQuickActionIconSpec = _chunk5LMGFI4Jcjs.isQuickActionIconSpec; exports.isStructuredContent = _chunk5LMGFI4Jcjs.isStructuredContent; exports.mapProcessedToUnified = _chunk5LMGFI4Jcjs.mapProcessedToUnified; exports.maxPersistedStreamSeq = _chunk5LMGFI4Jcjs.maxPersistedStreamSeq; exports.mergeHistoryWithRealtime = _chunk5LMGFI4Jcjs.mergeHistoryWithRealtime; exports.newTabAnchorAttrs = _chunk5LMGFI4Jcjs.newTabAnchorAttrs; exports.normalizeContent = _chunk5LMGFI4Jcjs.normalizeContent; exports.normalizeHistoricalMessageData = _chunk5LMGFI4Jcjs.normalizeHistoricalMessageData; exports.normalizeIconKey = _chunk5LMGFI4Jcjs.normalizeIconKey; exports.parseScrollAnchor = _chunk5LMGFI4Jcjs.parseScrollAnchor; exports.parseWireCommandOverride = _chunk5LMGFI4Jcjs.parseWireCommandOverride; exports.processHistoricalMessages = _chunk5LMGFI4Jcjs.processHistoricalMessages; exports.processHistoricalMessagesWithErrors = _chunk5LMGFI4Jcjs.processHistoricalMessagesWithErrors; exports.programItemToStripProfile = _chunk5LMGFI4Jcjs.programItemToStripProfile; exports.remarkCardLinks = _chunk5LMGFI4Jcjs.remarkCardLinks; exports.remarkMentionChips = _chunk5LMGFI4Jcjs.remarkMentionChips; exports.renderChatInlineEntityCard = _chunk5LMGFI4Jcjs.renderChatInlineEntityCard; exports.renderQuickActionIcon = _chunk5LMGFI4Jcjs.renderQuickActionIcon; exports.resolveExternalNavigation = _chunk5LMGFI4Jcjs.resolveExternalNavigation; exports.resolveIcon = _chunk5LMGFI4Jcjs.resolveIcon; exports.resolveSourceIcon = _chunk5LMGFI4Jcjs.resolveSourceIcon; exports.resolveSourceRowCTA = _chunk5LMGFI4Jcjs.resolveSourceRowCTA; exports.safeHref = _chunk5LMGFI4Jcjs.safeHref; exports.sanitizeTitleForChat = _chunk5LMGFI4Jcjs.sanitizeTitleForChat; exports.setChatProxyAuth = _chunkBIKOJ4FHcjs.setEmbedProxyAuth; exports.stripChatAttachmentMarkdown = _chunk5LMGFI4Jcjs.stripChatAttachmentMarkdown; exports.stripSameOriginToPath = _chunk5LMGFI4Jcjs.stripSameOriginToPath; exports.transformEventToProgram = _chunk5LMGFI4Jcjs.transformEventToProgram; exports.transformPodcastToProgram = _chunk5LMGFI4Jcjs.transformPodcastToProgram; exports.transformWebinarToProgram = _chunk5LMGFI4Jcjs.transformWebinarToProgram; exports.upsertTrailingCompaction = _chunk5LMGFI4Jcjs.upsertTrailingCompaction; exports.useChat = _chunk5LMGFI4Jcjs.useChat; exports.useChatAttachmentImageGallery = _chunk5LMGFI4Jcjs.useChatAttachmentImageGallery; exports.useChatAttachments = _chunk5LMGFI4Jcjs.useChatAttachments; exports.useChatCardItem = _chunk5LMGFI4Jcjs.useChatCardItem; exports.useChatIdentity = _chunk5LMGFI4Jcjs.useChatIdentity; exports.useChatStreamReducer = _chunk5LMGFI4Jcjs.useChatStreamReducer; exports.useChunkCatchup = _chunk5LMGFI4Jcjs.useChunkCatchup; exports.useCloseOnNavigation = _chunk5LMGFI4Jcjs.useCloseOnNavigation; exports.useCollapsible = _chunk5LMGFI4Jcjs.useCollapsible; exports.useCoverImageFallback = _chunk5LMGFI4Jcjs.useCoverImageFallback; exports.useEmbeddedChat = _chunk5LMGFI4Jcjs.useSseChatAdapter; exports.useEmptyStateConfig = _chunk5LMGFI4Jcjs.useEmptyStateConfig; exports.useJetStreamDialogSubscription = _chunk5LMGFI4Jcjs.useJetStreamDialogSubscription; exports.useNatsChatAdapter = _chunk5LMGFI4Jcjs.useNatsChatAdapter; exports.useNatsDialogSubscription = _chunk5LMGFI4Jcjs.useNatsDialogSubscription; exports.useProxiedImageUrl = _chunk5LMGFI4Jcjs.useProxiedImageUrl; exports.useSSE = _chunk5LMGFI4Jcjs.useSSE; exports.useScriptedStream = _chunk5LMGFI4Jcjs.useScriptedStream; exports.useSlashCommandRegistry = _chunk5LMGFI4Jcjs.useSlashCommandRegistry; exports.useSlashCommands = _chunk5LMGFI4Jcjs.useSlashCommands; exports.useSseChatAdapter = _chunk5LMGFI4Jcjs.useSseChatAdapter; exports.useUnifiedChat = _chunk5LMGFI4Jcjs.useUnifiedChat;
568
576
  //# sourceMappingURL=index.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/chat/index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,0plBAAC","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/chat/index.cjs"}
1
+ {"version":3,"sources":["/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/chat/index.cjs"],"names":[],"mappings":"AAAA,qFAAY;AACZ,YAAY;AACZ;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACF,4DAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC,oCAAiC;AACjC;AACE;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACF,s/lBAAC","file":"/home/runner/work/openframe-oss-lib/openframe-oss-lib/openframe-frontend-core/dist/components/chat/index.cjs"}
@@ -47,6 +47,7 @@ export { ChatAttachmentAddButton, ChatAttachmentChipStrip, type ChatAttachmentAd
47
47
  export * from './entity-cards';
48
48
  export * from './types';
49
49
  export * from './hooks';
50
+ export * from './stream';
50
51
  export * from './utils';
51
52
  export { EmbeddableChat, type EmbeddableChatProps } from './embeddable-chat';
52
53
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/chat/index.ts"],"names":[],"mappings":"AAGA,cAAc,4BAA4B,CAAA;AAC1C,cAAc,0BAA0B,CAAA;AACxC,cAAc,8BAA8B,CAAA;AAC5C,cAAc,kBAAkB,CAAA;AAChC,cAAc,oBAAoB,CAAA;AAClC,cAAc,yBAAyB,CAAA;AACvC,cAAc,kBAAkB,CAAA;AAChC,cAAc,cAAc,CAAA;AAC5B,cAAc,6BAA6B,CAAA;AAC3C,cAAc,yBAAyB,CAAA;AACvC,cAAc,qBAAqB,CAAA;A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CAAA;AACzC,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA;AACnC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,gBAAgB,CAAA;AAC9B,YAAY,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAG3D,OAAO,EACL,uBAAuB,EACvB,KAAK,4BAA4B,GAClC,MAAM,+BAA+B,CAAA;AACtC,OAAO,EACL,kBAAkB,EAClB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,GACzB,MAAM,wBAAwB,CAAA;AAC/B,OAAO,EACL,uBAAuB,EACvB,uBAAuB,EACvB,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,gBAAgB,EACrB,0BAA0B,EAC1B,2CAA2C,GAC5C,MAAM,uBAAuB,CAAA;AAG9B,cAAc,gBAAgB,CAAA;AAG9B,cAAc,SAAS,CAAA;AAGvB,cAAc,SAAS,CAAA;AAKvB,cAAc,UAAU,CAAA;AAGxB,cAAc,SAAS,CAAA;AAKvB,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,mBAAmB,CAAA"}
@@ -88,7 +88,9 @@ import {
88
88
  ContextMenuRow,
89
89
  CustomerInterviewCard,
90
90
  CustomerInterviewCardSkeleton,
91
+ DEFAULT_DIALOG_SIDE,
91
92
  DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID,
93
+ DEFAULT_MAX_REDUCERS,
92
94
  DataRoomDocCard,
93
95
  DataRoomDocCardSkeleton,
94
96
  DialogListItem,
@@ -113,6 +115,7 @@ import {
113
115
  ICON_REGISTRY,
114
116
  InvestorUpdateCard,
115
117
  InvestorUpdateCardSkeleton,
118
+ MAX_PENDING_RETAIN_KEYS,
116
119
  MESSAGE_ROLE,
117
120
  MESSAGE_TYPE,
118
121
  MemoizedChatMessageEnhanced,
@@ -179,8 +182,13 @@ import {
179
182
  clickupTaskUrl,
180
183
  computeHistoryPrepend,
181
184
  computeIsNewTab,
185
+ createChatDialogStore,
186
+ createChatStreamReducer,
187
+ createDeltaBatcher,
188
+ createEmptyTurnMeta,
182
189
  createMessageSegmentAccumulator,
183
190
  decideNewTab,
191
+ decodeHistoricalMessageData,
184
192
  defaultBuildProductReleaseCardProps,
185
193
  defaultTableIdForDocumentType,
186
194
  escapeMarkdownInline,
@@ -189,7 +197,7 @@ import {
189
197
  extractEntityIdFilter,
190
198
  extractErrorMessages,
191
199
  extractIncompleteMessageState,
192
- extractTextFromChunk,
200
+ extractIncompleteTailState,
193
201
  fetchEmptyStateConfig,
194
202
  fetchSlashCommands,
195
203
  flattenAssistantContent,
@@ -209,11 +217,8 @@ import {
209
217
  hideOnError,
210
218
  historicalToUnified,
211
219
  interleave,
212
- isControlChunk,
213
220
  isCrossOriginUrl,
214
- isErrorChunk,
215
221
  isHistoricalUserTurn,
216
- isMetadataChunk,
217
222
  isModifierClick,
218
223
  isQuickActionIconSpec,
219
224
  isStructuredContent,
@@ -224,7 +229,6 @@ import {
224
229
  normalizeContent,
225
230
  normalizeHistoricalMessageData,
226
231
  normalizeIconKey,
227
- parseChunkToAction,
228
232
  parseScrollAnchor,
229
233
  parseWireCommandOverride,
230
234
  processHistoricalMessages,
@@ -251,6 +255,7 @@ import {
251
255
  useChatAttachments,
252
256
  useChatCardItem,
253
257
  useChatIdentity,
258
+ useChatStreamReducer,
254
259
  useChunkCatchup,
255
260
  useCloseOnNavigation,
256
261
  useCollapsible,
@@ -260,14 +265,13 @@ import {
260
265
  useNatsChatAdapter,
261
266
  useNatsDialogSubscription,
262
267
  useProxiedImageUrl,
263
- useRealtimeChunkProcessor,
264
268
  useSSE,
265
269
  useScriptedStream,
266
270
  useSlashCommandRegistry,
267
271
  useSlashCommands,
268
272
  useSseChatAdapter,
269
273
  useUnifiedChat
270
- } from "../../chunk-YMJZOANX.js";
274
+ } from "../../chunk-BE6DK7QY.js";
271
275
  import {
272
276
  applyProxyAuth,
273
277
  clearEmbedProxyAuth,
@@ -379,7 +383,9 @@ export {
379
383
  ContextMenuRow,
380
384
  CustomerInterviewCard,
381
385
  CustomerInterviewCardSkeleton,
386
+ DEFAULT_DIALOG_SIDE,
382
387
  DEFAULT_DOCUMENT_TYPE_TO_TABLE_ID,
388
+ DEFAULT_MAX_REDUCERS,
383
389
  DataRoomDocCard,
384
390
  DataRoomDocCardSkeleton,
385
391
  DialogListItem,
@@ -404,6 +410,7 @@ export {
404
410
  ICON_REGISTRY,
405
411
  InvestorUpdateCard,
406
412
  InvestorUpdateCardSkeleton,
413
+ MAX_PENDING_RETAIN_KEYS,
407
414
  MESSAGE_ROLE,
408
415
  MESSAGE_TYPE,
409
416
  MessageSegmentAccumulator,
@@ -472,8 +479,13 @@ export {
472
479
  clickupTaskUrl,
473
480
  computeHistoryPrepend,
474
481
  computeIsNewTab,
482
+ createChatDialogStore,
483
+ createChatStreamReducer,
484
+ createDeltaBatcher,
485
+ createEmptyTurnMeta,
475
486
  createMessageSegmentAccumulator,
476
487
  decideNewTab,
488
+ decodeHistoricalMessageData,
477
489
  defaultBuildProductReleaseCardProps,
478
490
  defaultTableIdForDocumentType,
479
491
  escapeMarkdownInline,
@@ -482,7 +494,7 @@ export {
482
494
  extractEntityIdFilter,
483
495
  extractErrorMessages,
484
496
  extractIncompleteMessageState,
485
- extractTextFromChunk,
497
+ extractIncompleteTailState,
486
498
  fetchEmptyStateConfig,
487
499
  fetchSlashCommands,
488
500
  flattenAssistantContent,
@@ -504,11 +516,8 @@ export {
504
516
  hideOnError,
505
517
  historicalToUnified,
506
518
  interleave,
507
- isControlChunk,
508
519
  isCrossOriginUrl,
509
- isErrorChunk,
510
520
  isHistoricalUserTurn,
511
- isMetadataChunk,
512
521
  isModifierClick,
513
522
  isQuickActionIconSpec,
514
523
  isStructuredContent,
@@ -519,7 +528,6 @@ export {
519
528
  normalizeContent,
520
529
  normalizeHistoricalMessageData,
521
530
  normalizeIconKey,
522
- parseChunkToAction,
523
531
  parseScrollAnchor,
524
532
  parseWireCommandOverride,
525
533
  processHistoricalMessages,
@@ -547,6 +555,7 @@ export {
547
555
  useChatAttachments,
548
556
  useChatCardItem,
549
557
  useChatIdentity,
558
+ useChatStreamReducer,
550
559
  useChunkCatchup,
551
560
  useCloseOnNavigation,
552
561
  useCollapsible,
@@ -557,7 +566,6 @@ export {
557
566
  useNatsChatAdapter,
558
567
  useNatsDialogSubscription,
559
568
  useProxiedImageUrl,
560
- useRealtimeChunkProcessor,
561
569
  useSSE,
562
570
  useScriptedStream,
563
571
  useSlashCommandRegistry,
@@ -0,0 +1,184 @@
1
+ /**
2
+ * createChatDialogStore — framework-free registry of `ChatStreamReducer`
3
+ * instances keyed by `(dialogId, side)`. Reducer state PERSISTS across
4
+ * component unmounts (the store outlives React), and the store is the
5
+ * `useSyncExternalStore` source for the `useChatStreamReducer` wrapper.
6
+ *
7
+ * CROSS-SIDE PROJECTION: exactly two operations fan out across sides of the
8
+ * same dialogId —
9
+ * 1. approval RESOLUTION by requestId (`approval-resolved` events), and
10
+ * 2. tool-execution MERGE by execId (`tool-execution` events)
11
+ * — implemented as idempotent pure projections over the other side's state
12
+ * (recomputed from state, never re-injected into the other side's seq
13
+ * stream; per-side seq gates stay untouched). Everything else — text,
14
+ * thinking, participant rows — is strictly per-side.
15
+ *
16
+ * LIFECYCLE / MEMORY: the reducer map is LRU-capped (`maxReducers`, default
17
+ * `DEFAULT_MAX_REDUCERS`) and evicted through the same path as `remove()`.
18
+ * Without a cap an agent cycling hundreds of dialogs would retain a reducer
19
+ * (thread + accumulator) per dialog for the process's lifetime; under SSR,
20
+ * where the store is module-scoped, that growth is shared across every
21
+ * request. `getSnapshot` is PURE — it never creates an entry — and
22
+ * `getServerSnapshot` always returns the shared frozen `EMPTY_STATE`.
23
+ *
24
+ * EVICTION SAFETY (LRU recency alone is NOT liveness):
25
+ * 1. RETAINED keys are never evicted. `retain(dialogId, side)` returns a
26
+ * release fn; the `useChatStreamReducer` hook calls it for as long as it
27
+ * is mounted, so a quiet-but-visible panel can't be dropped just because
28
+ * ten other keys were touched. NON-React hosts must call it too.
29
+ * Because the hook retains in an EFFECT but takes its reducer during
30
+ * RENDER, a key created by a public `getReducer` is protected from
31
+ * creation until its FIRST `retain()` (bounded by
32
+ * `MAX_PENDING_RETAIN_KEYS`) — see `pendingRetain`.
33
+ * 2. A reducer whose `streamingPhase !== 'idle'` is never evicted — dropping
34
+ * mid-turn would recreate an EMPTY reducer on the next `getReducer`
35
+ * while the host's seq cursor still says "caught up", i.e. the thread
36
+ * visually vanishes with no path back.
37
+ * 3. Eviction hands the host the dropped instance's PARKED state
38
+ * (`onEvict(..., { messages, approvalStatuses, lastAppliedSeq,
39
+ * pendingEchoes })`). A recreated reducer is pristine, so re-seeding
40
+ * messages alone would
41
+ * resurrect resolved approvals as actionable and reset the seq gate to
42
+ * `-Infinity`; the parked payload is what makes the round-trip lossless.
43
+ * 4. Eviction NEVER notifies synchronously. `getReducer` is called during
44
+ * render (by the hook), and notifying there means updating other
45
+ * components mid-render. The notify is deferred to a microtask.
46
+ */
47
+ import { type ChatReducerState, type ChatStreamReducer, type ChatStreamReducerOptions, type PendingEcho } from './chat-stream-reducer';
48
+ import type { ChatStreamEvent } from '../../../chat-protocol/events';
49
+ export type ChatDialogSide = string;
50
+ /** Factory for a key's reducer options, consulted ONCE at creation. A plain
51
+ * `() => options` thunk remains assignable. */
52
+ export type CreateReducerOptionsFn = (dialogId: string, side: ChatDialogSide) => ChatStreamReducerOptions;
53
+ export interface ChatDialogStore {
54
+ /** Create-or-get the reducer for `(dialogId, side)`. `createOptions` is
55
+ * consulted ONLY when the instance is first created. */
56
+ getReducer(dialogId: string, side?: ChatDialogSide, createOptions?: CreateReducerOptionsFn): ChatStreamReducer;
57
+ /** Apply one event to a side, then fan out the cross-side projections to
58
+ * the other sides of the same dialog. */
59
+ apply(dialogId: string, side: ChatDialogSide, event: ChatStreamEvent): void;
60
+ /** Run adapter commands against a reducer; subscribers are notified. */
61
+ mutate<T>(dialogId: string, side: ChatDialogSide, fn: (reducer: ChatStreamReducer) => T): T;
62
+ subscribe(listener: () => void): () => void;
63
+ /**
64
+ * Referentially-stable snapshot for `useSyncExternalStore`. PURE — an
65
+ * unknown key returns the shared frozen `EMPTY_STATE` rather than
66
+ * creating a reducer (a create-on-read would let SSR renders accumulate
67
+ * reducers in a process-global map, and would make React's snapshot read
68
+ * a mutation).
69
+ */
70
+ getSnapshot(dialogId: string, side?: ChatDialogSide): ChatReducerState;
71
+ /** `useSyncExternalStore`'s server getter — always `EMPTY_STATE`. There is
72
+ * no per-request store on the server, so a live thread cannot be rendered
73
+ * server-side; the client hydrates from the real reducer. */
74
+ getServerSnapshot(): ChatReducerState;
75
+ /** Drop a side's reducer (or every side of the dialog when omitted). */
76
+ remove(dialogId: string, side?: ChatDialogSide): void;
77
+ /**
78
+ * PIN `(dialogId, side)` against LRU eviction while a consumer is live.
79
+ * Returns the release fn (idempotent; refcounted, so nested retains are
80
+ * safe). Creation is NOT implied — retaining an absent key simply means the
81
+ * key is protected once it exists.
82
+ */
83
+ retain(dialogId: string, side?: ChatDialogSide): () => void;
84
+ /**
85
+ * POLICY retain: keep exactly `keys` pinned by this store-level set and
86
+ * release every key the set previously pinned. Independent of the refcounted
87
+ * `retain()` handles a host's components hold — the two compose.
88
+ *
89
+ * Exists because "retain this set, release the rest" is generic store
90
+ * policy that every multi-panel host otherwise re-derives (diffing its own
91
+ * key list against a map of release fns). Retains BEFORE releasing, so a key
92
+ * present in both the old and the new set never momentarily drops to zero
93
+ * retains and becomes evictable mid-swap.
94
+ */
95
+ setRetained(keys: Array<{
96
+ dialogId: string;
97
+ side?: ChatDialogSide;
98
+ }>): void;
99
+ }
100
+ export declare const DEFAULT_DIALOG_SIDE: ChatDialogSide;
101
+ /** Most-recently-used reducer keys retained before eviction. Ten covers
102
+ * every realistic multi-panel / dialog-switching session while bounding an
103
+ * agent that cycles hundreds of dialogs. */
104
+ export declare const DEFAULT_MAX_REDUCERS = 10;
105
+ /**
106
+ * Hard cap on keys held in the "created by `getReducer`, `retain()` still
107
+ * pending" protection set — the ONLY thing bounding the map while retains are
108
+ * outstanding, since that protection ends at the retain rather than on a timer.
109
+ *
110
+ * Deliberately far above `maxReducers`: a host may legitimately mount MORE
111
+ * panels than the LRU cap (once their effects run, retained keys already let
112
+ * the map exceed it), so capping the pending set at `maxReducers` would blank
113
+ * exactly the panels round 10 fixed. It is a backstop against a caller that
114
+ * reads a reducer once and drops it — or a concurrent render React discards
115
+ * before any effect runs — not a per-commit budget. Past it, the oldest pending
116
+ * key falls through to ordinary LRU.
117
+ */
118
+ export declare const MAX_PENDING_RETAIN_KEYS = 256;
119
+ export interface CreateChatDialogStoreOptions {
120
+ /** LRU cap on retained reducers (keys are `(dialogId, side)` pairs).
121
+ * Values < 1 are clamped to 1. Default `DEFAULT_MAX_REDUCERS`. */
122
+ maxReducers?: number;
123
+ /**
124
+ * Options applied to any reducer this store creates WITHOUT an explicit
125
+ * per-call `createOptions` — i.e. every reducer first materialized by
126
+ * `apply()` or `mutate()`. Hosts with non-default reducer semantics
127
+ * (`ownEchoIncludesAdmin`, `selfUserId`, approve/reject `callbacks`, …)
128
+ * MUST set this: creation options are consulted once, so a bare
129
+ * apply-created instance would keep those semantics missing for its whole
130
+ * lifetime, including for a later `getReducer(..., options)` caller.
131
+ */
132
+ defaultCreateOptions?: CreateReducerOptionsFn;
133
+ /**
134
+ * Called when LRU eviction actually DROPS a key. The store knows this
135
+ * exactly; without publishing it, hosts are left inferring eviction by
136
+ * comparing reducer OBJECT IDENTITY across `getReducer` calls and then
137
+ * suppressing the "pristine empty" snapshot that a silently-recreated
138
+ * reducer returns — archaeology about a fact this callback states outright.
139
+ *
140
+ * Fires only for LRU eviction. Host-initiated `remove()` needs no
141
+ * notification: the caller already knows which key it dropped.
142
+ *
143
+ * Called AFTER the key is gone, from `getReducer` (i.e. potentially during a
144
+ * React render) — treat it as a "schedule a refetch/rehydrate" signal, not a
145
+ * place to set state synchronously.
146
+ *
147
+ * `parked` carries the dropped reducer's non-refetchable state so the host
148
+ * can restore it on the recreated instance (`initializeWithState(messages,
149
+ * { approvalStatuses, lastAppliedSeq, pendingEchoes })`). Refetching
150
+ * messages alone is NOT
151
+ * equivalent: a recreated reducer starts with `approvalStatuses = {}` and
152
+ * `lastAppliedSeq = -Infinity`, so a resolved approval whose APPROVAL_RESULT
153
+ * row is not in the refetched history page re-renders as ACTIONABLE (the
154
+ * exact hazard `resetForDialogSwitch` preserves that map to avoid), and a
155
+ * replay from the host's own cursor re-applies events the dropped instance
156
+ * had already consumed.
157
+ */
158
+ onEvict?: (dialogId: string, side: ChatDialogSide, parked: EvictedReducerState) => void;
159
+ }
160
+ /**
161
+ * Snapshot of an LRU-evicted reducer's state, captured just before the
162
+ * instance is dropped. Everything here either cannot be refetched
163
+ * (`lastAppliedSeq`) or is not reliably present in a refetched history page
164
+ * (`approvalStatuses`); `messages` rides along so a host that keeps its own
165
+ * copy does not have to.
166
+ */
167
+ export interface EvictedReducerState {
168
+ messages: ChatReducerState['messages'];
169
+ approvalStatuses: ChatReducerState['approvalStatuses'];
170
+ /** `-Infinity` when the instance never applied a seq-carrying event. */
171
+ lastAppliedSeq: number;
172
+ /**
173
+ * Optimistic-echo entries still armed at eviction time. A key dropped
174
+ * between `pushOptimisticSend` and its `MESSAGE_REQUEST` echo would
175
+ * otherwise leave the recreated reducer with nothing armed, and the echo
176
+ * renders a DUPLICATE user bubble. Replay via
177
+ * `initializeWithState(messages, { pendingEchoes })`; the reducer drops
178
+ * entries already past `OWN_ECHO_AUTHOR_TTL_MS`. Empty for a key with no
179
+ * send in flight (the common case).
180
+ */
181
+ pendingEchoes: readonly PendingEcho[];
182
+ }
183
+ export declare function createChatDialogStore(options?: CreateChatDialogStoreOptions): ChatDialogStore;
184
+ //# sourceMappingURL=chat-dialog-store.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"chat-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