@syntrologie/adapt-chatbot 2.8.0-canary.62 → 2.8.0-canary.621

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 (250) hide show
  1. package/dist/AdaptiveChatBar.composer.test.d.ts +2 -0
  2. package/dist/AdaptiveChatBar.composer.test.d.ts.map +1 -0
  3. package/dist/AdaptiveChatBar.d.ts +248 -0
  4. package/dist/AdaptiveChatBar.d.ts.map +1 -0
  5. package/dist/AdaptiveChatBar.interleave.test.d.ts +9 -0
  6. package/dist/AdaptiveChatBar.interleave.test.d.ts.map +1 -0
  7. package/dist/AdaptiveChatBar.js +12 -0
  8. package/dist/AdaptiveChatBar.js.map +7 -0
  9. package/dist/AdaptiveChatBarMountable.d.ts +93 -0
  10. package/dist/AdaptiveChatBarMountable.d.ts.map +1 -0
  11. package/dist/AdaptiveChatTrail.anchor-scroll.test.d.ts +2 -0
  12. package/dist/AdaptiveChatTrail.anchor-scroll.test.d.ts.map +1 -0
  13. package/dist/AdaptiveChatTrail.d.ts +539 -0
  14. package/dist/AdaptiveChatTrail.d.ts.map +1 -0
  15. package/dist/AdaptiveChatTrail.follow-bottom.test.d.ts +2 -0
  16. package/dist/AdaptiveChatTrail.follow-bottom.test.d.ts.map +1 -0
  17. package/dist/AdaptiveChatTrail.js +12 -0
  18. package/dist/AdaptiveChatTrail.js.map +7 -0
  19. package/dist/AdaptiveChatTrail.live-region.test.d.ts +2 -0
  20. package/dist/AdaptiveChatTrail.live-region.test.d.ts.map +1 -0
  21. package/dist/AdaptiveChatTrail.test.d.ts +2 -0
  22. package/dist/AdaptiveChatTrail.test.d.ts.map +1 -0
  23. package/dist/AdaptiveChipsStrip.d.ts +1156 -0
  24. package/dist/AdaptiveChipsStrip.d.ts.map +1 -0
  25. package/dist/AdaptiveChipsStrip.js +11 -0
  26. package/dist/AdaptiveChipsStrip.js.map +7 -0
  27. package/dist/AdaptiveChipsStripMountable.d.ts +24 -0
  28. package/dist/AdaptiveChipsStripMountable.d.ts.map +1 -0
  29. package/dist/ChatAssistantLit.d.ts +64 -0
  30. package/dist/ChatAssistantLit.d.ts.map +1 -0
  31. package/dist/ChatAssistantLit.js +14 -0
  32. package/dist/ChatAssistantLit.js.map +7 -0
  33. package/dist/ChatSession.d.ts +275 -0
  34. package/dist/ChatSession.d.ts.map +1 -0
  35. package/dist/ChatTransport.d.ts +448 -0
  36. package/dist/ChatTransport.d.ts.map +1 -0
  37. package/dist/InlineRegistryWidgetMount.test.d.ts +2 -0
  38. package/dist/InlineRegistryWidgetMount.test.d.ts.map +1 -0
  39. package/dist/InlineWidgetLiveMount.test.d.ts +2 -0
  40. package/dist/InlineWidgetLiveMount.test.d.ts.map +1 -0
  41. package/dist/LeaveAMessage.leadconnector.integration.test.d.ts +2 -0
  42. package/dist/LeaveAMessage.leadconnector.integration.test.d.ts.map +1 -0
  43. package/dist/LeaveAMessageLit.d.ts +329 -0
  44. package/dist/LeaveAMessageLit.d.ts.map +1 -0
  45. package/dist/LeaveAMessageLit.test.d.ts +2 -0
  46. package/dist/LeaveAMessageLit.test.d.ts.map +1 -0
  47. package/dist/LeaveAMessageMountable.test.d.ts +2 -0
  48. package/dist/LeaveAMessageMountable.test.d.ts.map +1 -0
  49. package/dist/NavLinkMountable.d.ts +25 -0
  50. package/dist/NavLinkMountable.d.ts.map +1 -0
  51. package/dist/NavLinkMountable.test.d.ts +2 -0
  52. package/dist/NavLinkMountable.test.d.ts.map +1 -0
  53. package/dist/TextAnswerMountable.d.ts +17 -0
  54. package/dist/TextAnswerMountable.d.ts.map +1 -0
  55. package/dist/TextAnswerMountable.test.d.ts +2 -0
  56. package/dist/TextAnswerMountable.test.d.ts.map +1 -0
  57. package/dist/Turnstile.d.ts +101 -0
  58. package/dist/Turnstile.d.ts.map +1 -0
  59. package/dist/cdn.d.ts +16 -8
  60. package/dist/cdn.d.ts.map +1 -1
  61. package/dist/chunk-4V5L7IRV.js +4711 -0
  62. package/dist/chunk-4V5L7IRV.js.map +7 -0
  63. package/dist/chunk-EWPPVPJ4.js +14 -0
  64. package/dist/chunk-EWPPVPJ4.js.map +7 -0
  65. package/dist/chunk-HD2NXGYO.js +8445 -0
  66. package/dist/chunk-HD2NXGYO.js.map +7 -0
  67. package/dist/chunk-HV52LYST.js +641 -0
  68. package/dist/chunk-HV52LYST.js.map +7 -0
  69. package/dist/chunk-LY5AGXVD.js +21 -0
  70. package/dist/chunk-LY5AGXVD.js.map +7 -0
  71. package/dist/chunk-T6VEDUXD.js +694 -0
  72. package/dist/chunk-T6VEDUXD.js.map +7 -0
  73. package/dist/chunk-UFTSEIQP.js +1877 -0
  74. package/dist/chunk-UFTSEIQP.js.map +7 -0
  75. package/dist/chunk-VIRIVP7H.js +898 -0
  76. package/dist/chunk-VIRIVP7H.js.map +7 -0
  77. package/dist/chunk-YFZCMLV6.js +4078 -0
  78. package/dist/chunk-YFZCMLV6.js.map +7 -0
  79. package/dist/editor-lit.d.ts +37 -0
  80. package/dist/editor-lit.d.ts.map +1 -0
  81. package/dist/editor-lit.js +134 -0
  82. package/dist/editor-lit.js.map +7 -0
  83. package/dist/editorToken.d.ts +23 -0
  84. package/dist/editorToken.d.ts.map +1 -0
  85. package/dist/element-session.d.ts +3 -0
  86. package/dist/element-session.d.ts.map +1 -0
  87. package/dist/element-session.js +9 -0
  88. package/dist/element-session.js.map +7 -0
  89. package/dist/elements/ActionHandler.d.ts +34 -0
  90. package/dist/elements/ActionHandler.d.ts.map +1 -0
  91. package/dist/elements/ElementInstanceStore.d.ts +232 -0
  92. package/dist/elements/ElementInstanceStore.d.ts.map +1 -0
  93. package/dist/elements/ElementInstanceStore.test.d.ts +2 -0
  94. package/dist/elements/ElementInstanceStore.test.d.ts.map +1 -0
  95. package/dist/elements/ElementSessionController.d.ts +37 -0
  96. package/dist/elements/ElementSessionController.d.ts.map +1 -0
  97. package/dist/elements/ElementSessionController.test.d.ts +2 -0
  98. package/dist/elements/ElementSessionController.test.d.ts.map +1 -0
  99. package/dist/elements/ElementTypeHandler.d.ts +77 -0
  100. package/dist/elements/ElementTypeHandler.d.ts.map +1 -0
  101. package/dist/elements/ItemHandler.d.ts +60 -0
  102. package/dist/elements/ItemHandler.d.ts.map +1 -0
  103. package/dist/elements/ItemHandler.test.d.ts +2 -0
  104. package/dist/elements/ItemHandler.test.d.ts.map +1 -0
  105. package/dist/elements/TileHandler.d.ts +52 -0
  106. package/dist/elements/TileHandler.d.ts.map +1 -0
  107. package/dist/elements/TileHandler.test.d.ts +2 -0
  108. package/dist/elements/TileHandler.test.d.ts.map +1 -0
  109. package/dist/elements/__tests__/ElementInstanceStore.recall.test.d.ts +2 -0
  110. package/dist/elements/__tests__/ElementInstanceStore.recall.test.d.ts.map +1 -0
  111. package/dist/elements/blockRenderer.d.ts +46 -0
  112. package/dist/elements/blockRenderer.d.ts.map +1 -0
  113. package/dist/elements/blockRenderer.test.d.ts +13 -0
  114. package/dist/elements/blockRenderer.test.d.ts.map +1 -0
  115. package/dist/elements/blocks.d.ts +58 -0
  116. package/dist/elements/blocks.d.ts.map +1 -0
  117. package/dist/elements/createElementStore.d.ts +11 -0
  118. package/dist/elements/createElementStore.d.ts.map +1 -0
  119. package/dist/elements/envelope.d.ts +24 -0
  120. package/dist/elements/envelope.d.ts.map +1 -0
  121. package/dist/elements/fetcher.d.ts +43 -0
  122. package/dist/elements/fetcher.d.ts.map +1 -0
  123. package/dist/elements/index.d.ts +33 -0
  124. package/dist/elements/index.d.ts.map +1 -0
  125. package/dist/elements/store-singleton.d.ts +4 -0
  126. package/dist/elements/store-singleton.d.ts.map +1 -0
  127. package/dist/elements/tileLifecycleProps.d.ts +13 -0
  128. package/dist/elements/tileLifecycleProps.d.ts.map +1 -0
  129. package/dist/elements/types.d.ts +117 -0
  130. package/dist/elements/types.d.ts.map +1 -0
  131. package/dist/findSmartCanvas.d.ts +19 -0
  132. package/dist/findSmartCanvas.d.ts.map +1 -0
  133. package/dist/hostAgentController.d.ts +65 -0
  134. package/dist/hostAgentController.d.ts.map +1 -0
  135. package/dist/hostAgentController.test.d.ts +2 -0
  136. package/dist/hostAgentController.test.d.ts.map +1 -0
  137. package/dist/observer/__tests__/allowlist.test.d.ts +9 -0
  138. package/dist/observer/__tests__/allowlist.test.d.ts.map +1 -0
  139. package/dist/observer/__tests__/bus-translate.test.d.ts +16 -0
  140. package/dist/observer/__tests__/bus-translate.test.d.ts.map +1 -0
  141. package/dist/observer/__tests__/detector-observation-contract.test.d.ts +25 -0
  142. package/dist/observer/__tests__/detector-observation-contract.test.d.ts.map +1 -0
  143. package/dist/observer/__tests__/lifecycle.test.d.ts +2 -0
  144. package/dist/observer/__tests__/lifecycle.test.d.ts.map +1 -0
  145. package/dist/observer/__tests__/observer-enrich.test.d.ts +10 -0
  146. package/dist/observer/__tests__/observer-enrich.test.d.ts.map +1 -0
  147. package/dist/observer/__tests__/observer-isolation.test.d.ts +13 -0
  148. package/dist/observer/__tests__/observer-isolation.test.d.ts.map +1 -0
  149. package/dist/observer/__tests__/queue.test.d.ts +2 -0
  150. package/dist/observer/__tests__/queue.test.d.ts.map +1 -0
  151. package/dist/observer/__tests__/transport.test.d.ts +2 -0
  152. package/dist/observer/__tests__/transport.test.d.ts.map +1 -0
  153. package/dist/observer/allowlist.d.ts +32 -0
  154. package/dist/observer/allowlist.d.ts.map +1 -0
  155. package/dist/observer/bus-translate.d.ts +33 -0
  156. package/dist/observer/bus-translate.d.ts.map +1 -0
  157. package/dist/observer/index.d.ts +44 -0
  158. package/dist/observer/index.d.ts.map +1 -0
  159. package/dist/observer/queue.d.ts +63 -0
  160. package/dist/observer/queue.d.ts.map +1 -0
  161. package/dist/observer/transport.d.ts +27 -0
  162. package/dist/observer/transport.d.ts.map +1 -0
  163. package/dist/observer/wire.d.ts +54 -0
  164. package/dist/observer/wire.d.ts.map +1 -0
  165. package/dist/observer/wire.test.d.ts +2 -0
  166. package/dist/observer/wire.test.d.ts.map +1 -0
  167. package/dist/personas.d.ts +30 -0
  168. package/dist/personas.d.ts.map +1 -0
  169. package/dist/runtime-lit.d.ts +8 -0
  170. package/dist/runtime-lit.d.ts.map +1 -0
  171. package/dist/runtime.d.ts +63 -5
  172. package/dist/runtime.d.ts.map +1 -1
  173. package/dist/runtime.js +4439 -28
  174. package/dist/runtime.js.map +7 -0
  175. package/dist/schema.d.ts +3688 -11
  176. package/dist/schema.d.ts.map +1 -1
  177. package/dist/schema.js +578 -30
  178. package/dist/schema.js.map +7 -0
  179. package/dist/support-chat/__tests__/lc-fetch-stub.d.ts +52 -0
  180. package/dist/support-chat/__tests__/lc-fetch-stub.d.ts.map +1 -0
  181. package/dist/support-chat/boot.d.ts +47 -0
  182. package/dist/support-chat/boot.d.ts.map +1 -0
  183. package/dist/support-chat/boot.test.d.ts +2 -0
  184. package/dist/support-chat/boot.test.d.ts.map +1 -0
  185. package/dist/support-chat/crisp.d.ts +4 -0
  186. package/dist/support-chat/crisp.d.ts.map +1 -0
  187. package/dist/support-chat/crisp.test.d.ts +2 -0
  188. package/dist/support-chat/crisp.test.d.ts.map +1 -0
  189. package/dist/support-chat/inbox.d.ts +57 -0
  190. package/dist/support-chat/inbox.d.ts.map +1 -0
  191. package/dist/support-chat/inbox.test.d.ts +2 -0
  192. package/dist/support-chat/inbox.test.d.ts.map +1 -0
  193. package/dist/support-chat/leadconnector.d.ts +13 -0
  194. package/dist/support-chat/leadconnector.d.ts.map +1 -0
  195. package/dist/support-chat/leadconnector.test.d.ts +2 -0
  196. package/dist/support-chat/leadconnector.test.d.ts.map +1 -0
  197. package/dist/support-chat/registry.d.ts +5 -0
  198. package/dist/support-chat/registry.d.ts.map +1 -0
  199. package/dist/support-chat/registry.test.d.ts +2 -0
  200. package/dist/support-chat/registry.test.d.ts.map +1 -0
  201. package/dist/support-chat/schema-widgetid.test.d.ts +2 -0
  202. package/dist/support-chat/schema-widgetid.test.d.ts.map +1 -0
  203. package/dist/support-chat/types.d.ts +19 -0
  204. package/dist/support-chat/types.d.ts.map +1 -0
  205. package/dist/test/setup.d.ts +1 -0
  206. package/dist/test/setup.d.ts.map +1 -0
  207. package/dist/types.d.ts +89 -40
  208. package/dist/types.d.ts.map +1 -1
  209. package/package.json +49 -24
  210. package/dist/ChatAssistant.d.ts +0 -18
  211. package/dist/ChatAssistant.d.ts.map +0 -1
  212. package/dist/ChatAssistant.js +0 -178
  213. package/dist/SyntroChatbot.d.ts +0 -14
  214. package/dist/SyntroChatbot.d.ts.map +0 -1
  215. package/dist/SyntroChatbot.js +0 -56
  216. package/dist/actionParser.d.ts +0 -15
  217. package/dist/actionParser.d.ts.map +0 -1
  218. package/dist/actionParser.js +0 -52
  219. package/dist/apiClient.d.ts +0 -23
  220. package/dist/apiClient.d.ts.map +0 -1
  221. package/dist/apiClient.js +0 -51
  222. package/dist/cdn.js +0 -37
  223. package/dist/editor.d.ts +0 -17
  224. package/dist/editor.d.ts.map +0 -1
  225. package/dist/editor.js +0 -36
  226. package/dist/tools/bridge.d.ts +0 -26
  227. package/dist/tools/bridge.d.ts.map +0 -1
  228. package/dist/tools/bridge.js +0 -25
  229. package/dist/tools/expanders.d.ts +0 -17
  230. package/dist/tools/expanders.d.ts.map +0 -1
  231. package/dist/tools/expanders.js +0 -41
  232. package/dist/tools/index.d.ts +0 -14
  233. package/dist/tools/index.d.ts.map +0 -1
  234. package/dist/tools/index.js +0 -11
  235. package/dist/tools/registrations/GetContextTool.d.ts +0 -7
  236. package/dist/tools/registrations/GetContextTool.d.ts.map +0 -1
  237. package/dist/tools/registrations/GetContextTool.js +0 -18
  238. package/dist/tools/registrations/ScrollToTool.d.ts +0 -7
  239. package/dist/tools/registrations/ScrollToTool.d.ts.map +0 -1
  240. package/dist/tools/registrations/ScrollToTool.js +0 -38
  241. package/dist/tools/registrations/ShowOverlayTool.d.ts +0 -7
  242. package/dist/tools/registrations/ShowOverlayTool.d.ts.map +0 -1
  243. package/dist/tools/registrations/ShowOverlayTool.js +0 -47
  244. package/dist/tools/registrations/index.d.ts +0 -19
  245. package/dist/tools/registrations/index.d.ts.map +0 -1
  246. package/dist/tools/registrations/index.js +0 -7
  247. package/dist/types.js +0 -6
  248. package/dist/useChat.d.ts +0 -25
  249. package/dist/useChat.d.ts.map +0 -1
  250. package/dist/useChat.js +0 -106
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveChipsStrip.d.ts","sourceRoot":"","sources":["../src/AdaptiveChipsStrip.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAGH,OAAO,EAAQ,UAAU,EAAW,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAErE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;;;;;;GASG;AACH,UAAU,iBAAiB;IACzB,OAAO,EAAE;QACP,GAAG,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,OAAO,CAAC;QAC7B,KAAK,EAAE,CACL,EAAE,EAAE,MAAM,EACV,SAAS,EAAE,WAAW,EACtB,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC5B;YAAE,OAAO,EAAE,MAAM,IAAI,CAAC;YAAC,MAAM,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAA;SAAE,CAAC;KAClF,CAAC;IACF,MAAM,CAAC,EAAE;QACP;0DACkD;QAClD,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,IAAI,CAAC;QAClE,SAAS,CAAC,EAAE,CACV,OAAO,EAAE,CAAC,KAAK,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;SAAE,KAAK,IAAI,KACxE,MAAM,IAAI,CAAC;KACjB,CAAC;CACH;AAiBD,QAAA,MAAM,YAAY;;;;;;;;;E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CAAC,cAAc;IAgBtB,OAAO,CAAC,eAAe,CAErB;IAEO,MAAM,IAAI,cAAc;CAsIlC;AA+OD,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,kBAAkB,CAAC;KAC5C;CACF"}
@@ -0,0 +1,11 @@
1
+ import {
2
+ AdaptiveChipsStrip,
3
+ SuggestionChipSchema
4
+ } from "./chunk-HV52LYST.js";
5
+ import "./chunk-4V5L7IRV.js";
6
+ import "./chunk-LY5AGXVD.js";
7
+ export {
8
+ AdaptiveChipsStrip,
9
+ SuggestionChipSchema
10
+ };
11
+ //# sourceMappingURL=AdaptiveChipsStrip.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,24 @@
1
+ /**
2
+ * AdaptiveChipsStripMountable — `MountableWidget` adapter for
3
+ * `<adaptive-chips-strip>`. Registered as widget id
4
+ * `adaptive-chatbot:chips-strip`.
5
+ *
6
+ * Mirrors `AdaptiveChatBarMountable`: creates the Lit element, forwards
7
+ * props, bridges DOM events → prop callbacks, cleans up on unmount.
8
+ *
9
+ * Props (passed via mountConfig):
10
+ * - `chips: SuggestionChip[]` — the strip's contents (required)
11
+ * - `onChipRevealed?: ({id, payload}) => void` — fires when a chip
12
+ * is opened
13
+ * - `onChipDismissed?: ({id}) => void` — fires when × is clicked
14
+ *
15
+ * The runtime registry injects `runtime` into mountConfig (see
16
+ * `WidgetRegistry.mount`). We forward it as `runtimeRef` on the strip
17
+ * so it can mount chip payload widgets through the same registry.
18
+ */
19
+ import './AdaptiveChipsStrip';
20
+ export declare const AdaptiveChipsStripMountable: {
21
+ mount(container: HTMLElement, mountConfig?: Record<string, unknown>): () => void;
22
+ update(container: HTMLElement, mountConfig?: Record<string, unknown>): void;
23
+ };
24
+ //# sourceMappingURL=AdaptiveChipsStripMountable.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AdaptiveChipsStripMountable.d.ts","sourceRoot":"","sources":["../src/AdaptiveChipsStripMountable.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,sBAAsB,CAAC;AA0C9B,eAAO,MAAM,2BAA2B;qBACrB,WAAW,gBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,IAAI;sBAqC9D,WAAW,gBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;CAqB5E,CAAC"}
@@ -0,0 +1,64 @@
1
+ /**
2
+ * Adaptive Chatbot — Lit Mountable
3
+ *
4
+ * Thin wrapper that mounts <syntro-chat> from @syntrologie/chat with an
5
+ * AgUiTransport pointed at the adaptive AG-UI streaming endpoint.
6
+ *
7
+ * Four pieces this mountable owns:
8
+ *
9
+ * 1. SDK token plumbing. The chat backend (`/api/adaptive/*`) is identified
10
+ * by the workspace's `syn_*` SDK token. The token rides the RUNTIME
11
+ * handle (`runtime.token`, populated by `Syntro.init({token})` — the
12
+ * same single-source contract as `runtime.backendUrl`); we read it at
13
+ * mount time and forward it via `Authorization: Bearer` header. Never
14
+ * a window global (BUG-1785360157).
15
+ *
16
+ * 2. Cloudflare Turnstile bot-check token, acquired on the visitor's FIRST
17
+ * SEND (never at mount) and only when the backend reports it enforces
18
+ * the check (`GET /api/adaptive/bot_check`, BUG-1789605814). When it
19
+ * runs, it renders a single `size: 'flexible'` widget with
20
+ * `appearance: 'interaction-only'` against a `managed`-mode sitekey:
21
+ * • Clean traffic: CF passive-grades silently, token resolves in
22
+ * ~100ms, no UI is ever shown.
23
+ * • Flagged traffic (datacenter IP, automation, strict-privacy):
24
+ * CF renders an "I am human" checkbox inside the in-chat verify
25
+ * panel; on solve, swap to the chat UI.
26
+ * • Total failure (CSP blocks CF, network error, user dismisses):
27
+ * fall through with no token; backend enforcement 403s and the
28
+ * existing fallback card renders.
29
+ * The widget mode MUST be `managed` on the CF side — see
30
+ * cloudflare/turnstile/main.tf in syntro-infra. (`mode = 'invisible'`
31
+ * rejects any `size` other than `invisible`, and `size: 'invisible'`
32
+ * against `mode = 'managed'` fails with a synchronous TurnstileError —
33
+ * don't mix.)
34
+ * Skipped entirely when the sitekey is empty or the backend mode is `off`.
35
+ *
36
+ * 3. Fallback card. If the first agent run fails (Cloudflare Turnstile
37
+ * bot-check failure, CORS / network error, or a server-side rejection),
38
+ * swap the chat UI for a per-customer fallback card built from
39
+ * `props.fallback`. The end-user is redirected to the customer's normal
40
+ * support path instead of seeing a raw error.
41
+ *
42
+ * 4. A2UI passthrough. AG-UI CUSTOM events carrying A2UI payloads
43
+ * (createSurface, updateDataModel, …) get forwarded to
44
+ * `runtime.actions.applyBatch` so tiles can render server-driven UI
45
+ * inside the chat surface.
46
+ */
47
+ import '@syntrologie/chat';
48
+ import type { ChatbotConfig, ChatbotFallback, ChatbotWidgetRuntime } from './types.js';
49
+ export interface ChatAssistantLitProps {
50
+ config: ChatbotConfig;
51
+ runtime: ChatbotWidgetRuntime;
52
+ tileId?: string;
53
+ }
54
+ /**
55
+ * Build the inline HTML for the fallback card. Customer-supplied copy wins;
56
+ * everything else falls back to generic copy. The card avoids any reference
57
+ * to Cloudflare or Turnstile so the end-user is never confronted with our
58
+ * implementation details.
59
+ */
60
+ export declare function renderFallbackHtml(fallback: ChatbotFallback | undefined): string;
61
+ export declare const ChatAssistantLitMountable: {
62
+ mount(container: HTMLElement, mountConfig?: Record<string, unknown>): () => void;
63
+ };
64
+ //# sourceMappingURL=ChatAssistantLit.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatAssistantLit.d.ts","sourceRoot":"","sources":["../src/ChatAssistantLit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AAGH,OAAO,mBAAmB,CAAC;AAQ3B,OAAO,KAAK,EAAE,aAAa,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,YAAY,CAAC;AAEvF,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,aAAa,CAAC;IACtB,OAAO,EAAE,oBAAoB,CAAC;IAC9B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAuCD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,QAAQ,EAAE,eAAe,GAAG,SAAS,GAAG,MAAM,CAiEhF;AA0CD,eAAO,MAAM,yBAAyB;qBACnB,WAAW,gBAAgB,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAkdpE,CAAC"}
@@ -0,0 +1,14 @@
1
+ import {
2
+ ChatAssistantLitMountable,
3
+ renderFallbackHtml
4
+ } from "./chunk-HD2NXGYO.js";
5
+ import "./chunk-VIRIVP7H.js";
6
+ import "./chunk-EWPPVPJ4.js";
7
+ import "./chunk-YFZCMLV6.js";
8
+ import "./chunk-4V5L7IRV.js";
9
+ import "./chunk-LY5AGXVD.js";
10
+ export {
11
+ ChatAssistantLitMountable,
12
+ renderFallbackHtml
13
+ };
14
+ //# sourceMappingURL=ChatAssistantLit.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
@@ -0,0 +1,275 @@
1
+ /**
2
+ * ChatSession — singleton holder of the chat conversation state.
3
+ *
4
+ * The chat is conceptually one thing. Whether it's rendered in the
5
+ * mini-canvas's lid, the drawer's lid, or as a tile inside any slot,
6
+ * they're all VIEWS of the same conversation. This module owns that
7
+ * shared state.
8
+ *
9
+ * Why a module-level singleton (not on `runtime`):
10
+ * - Per-page scope is the right granularity for a chat (one user,
11
+ * one conversation, however many canvas instances on the page).
12
+ * - Avoids a new SmartCanvasRuntime API surface for now. Easy to
13
+ * promote to `runtime.chat` later without breaking the widget API.
14
+ * - Module identity is stable per page; multiple imports return the
15
+ * same instance.
16
+ *
17
+ * Separation of concerns:
18
+ * - `ChatSession` owns state: messages, inFlight.
19
+ * - Views (AdaptiveChatBar via AdaptiveChatBarMountable) subscribe
20
+ * to state changes and dispatch user actions back via send() /
21
+ * interrupt().
22
+ * - Transports (the LLM call, SSE pipeline, stub timers) listen
23
+ * for "send" / "interrupt" events and eventually call receive()
24
+ * with the assistant's reply. Transports are NOT owned by this
25
+ * module — adapters live separately.
26
+ *
27
+ * No persistence in this slice. Future: snapshot to runtime.state
28
+ * for cross-session continuity.
29
+ */
30
+ import type { ChatSendVia } from '@syntrologie/sdk-contracts';
31
+ import type { TrailMessage, TrailToolCall } from './AdaptiveChatTrail';
32
+ export interface ChatSessionState {
33
+ readonly messages: readonly TrailMessage[];
34
+ readonly inFlight: boolean;
35
+ /**
36
+ * Latest reasoning narration from the model, streamed via the
37
+ * AG-UI `THINKING_TEXT_MESSAGE_CONTENT` channel. Empty string when
38
+ * no thinking turn is active. Consumers render this in place of
39
+ * the silent loading dots while the model decides what to do
40
+ * between tool calls. Cleared the moment a real text or tool-call
41
+ * event lands — at that point the model has switched to producing
42
+ * visible output and the narration is over.
43
+ */
44
+ readonly thinkingText: string;
45
+ /** User sends so far in this session; the single turn counter. */
46
+ readonly turn: number;
47
+ }
48
+ export interface ToolResultEvent {
49
+ toolCallId: string;
50
+ result: unknown;
51
+ approved: boolean;
52
+ }
53
+ export type ChatSessionSubscriber = (state: ChatSessionState) => void;
54
+ export type SendListener = (event: {
55
+ text: string;
56
+ id: string;
57
+ turn: number;
58
+ via: ChatSendVia;
59
+ activeLidSlot?: string;
60
+ forwardedProps?: Record<string, unknown>;
61
+ }) => void;
62
+ export type InterruptListener = () => void;
63
+ export type ToolResultListener = (event: ToolResultEvent) => void;
64
+ /** Optional per-send envelope. */
65
+ export interface SendOptions {
66
+ /**
67
+ * The slot the calling chat-bar lives in (e.g. ``"drawer"``,
68
+ * ``"adaptive-chat"``). Forwarded to transport listeners so the
69
+ * outbound request can tag the correct ``X-Active-Lid-Slot`` regardless
70
+ * of which bar most recently configured the singleton transport.
71
+ * Without per-send threading, two coexisting chat-bars race over the
72
+ * transport's cached ``activeLidSlot`` and the user-facing routing
73
+ * silently follows whichever bar configured last.
74
+ */
75
+ activeLidSlot?: string;
76
+ /**
77
+ * Merged into THIS request's forwardedProps only — never sticky. The
78
+ * transport spreads it over the config-level forwardedProps for the one
79
+ * AG-UI request this send produces (see ChatTransport). Used for turn
80
+ * provenance (`{ origin: TurnOrigin }`): a later typed message must not
81
+ * inherit it, or every message would look synthetic.
82
+ */
83
+ forwardedProps?: Record<string, unknown>;
84
+ /**
85
+ * Which affordance produced this send. Rides
86
+ * `syntro_chat_message_sent.via`.
87
+ */
88
+ via: ChatSendVia;
89
+ }
90
+ export type Unsubscribe = () => void;
91
+ export declare class ChatSession {
92
+ private _messages;
93
+ private _inFlight;
94
+ private _runActive;
95
+ private _thinkingText;
96
+ private _nextId;
97
+ private _turn;
98
+ private subscribers;
99
+ private sendListeners;
100
+ private interruptListeners;
101
+ private toolResultListeners;
102
+ /** Snapshot the current state. Always returns a fresh immutable view. */
103
+ getState(): ChatSessionState;
104
+ /** User sends so far in this session; the single turn counter. */
105
+ get turn(): number;
106
+ /**
107
+ * Append a delta to the active thinking turn's narration buffer.
108
+ * Forwarded from the AG-UI THINKING_TEXT_MESSAGE_CONTENT event so
109
+ * the chat trail can render the model's own reasoning instead of
110
+ * silent loading dots between turns.
111
+ */
112
+ appendThinkingDelta(delta: string): void;
113
+ /**
114
+ * Replace the active thinking narration outright (vs. appendThinkingDelta's
115
+ * streaming accumulation). Used to surface tool-call progress — e.g.
116
+ * "Searching…" while the agent works a tool — so a long tool phase shows
117
+ * what's happening instead of silent dots. No-op if unchanged.
118
+ */
119
+ setThinkingText(text: string): void;
120
+ /**
121
+ * End the active thinking turn — drop any narration so the trail
122
+ * stops showing it. Fires on real text-message-start and on
123
+ * tool-call-start, the moment the model switches from reasoning
124
+ * to visible output.
125
+ */
126
+ clearThinking(): void;
127
+ setRunActive(active: boolean): void;
128
+ /**
129
+ * Subscribe to state changes. Called immediately with the current
130
+ * state, then again on every change. Returns an unsubscribe function.
131
+ */
132
+ subscribe(cb: ChatSessionSubscriber): Unsubscribe;
133
+ /**
134
+ * User submitted a message. Appends a user-role message, sets
135
+ * inFlight=true, notifies state subscribers, and fires a "send"
136
+ * event so transports can pick it up. Empty/whitespace text is a
137
+ * no-op (matches the chat bar's local guard).
138
+ */
139
+ send(text: string, opts: SendOptions): void;
140
+ /**
141
+ * Single-shot assistant reply (no streaming). Equivalent to
142
+ * receiveStart + receiveDelta + receiveEnd in one call. Useful for
143
+ * stub transports and tests that don't model streaming.
144
+ */
145
+ receive(text: string): void;
146
+ /**
147
+ * Begin a streaming assistant message. Appends an empty assistant
148
+ * message with status='streaming'. Caller (transport adapter) feeds
149
+ * deltas via receiveDelta(id, text) and signals completion via
150
+ * receiveEnd(id). `inFlight` stays true through the stream.
151
+ */
152
+ receiveStart(id: string): void;
153
+ /**
154
+ * Append a delta to a streaming message. No-op when the id is
155
+ * unknown (race between transport events and reset, etc.) — never
156
+ * throws so transports can fire-and-forget.
157
+ */
158
+ receiveDelta(id: string, delta: string): void;
159
+ /**
160
+ * Mark a streaming message complete and clear inFlight. No-op when
161
+ * the id is unknown (defensive against transport double-fires).
162
+ */
163
+ receiveEnd(id: string): void;
164
+ /**
165
+ * Transport reports a fatal error. Marks any in-flight streaming
166
+ * message as 'error' (so the trail can render a styled error chip
167
+ * instead of pretending the partial text was a complete answer),
168
+ * appends a system-role message with the error text for visibility,
169
+ * and clears inFlight. Also drops any pending thinking narration
170
+ * — leaving stale "Let me check…" alongside an error chip reads
171
+ * as if the assistant is still working when it isn't.
172
+ */
173
+ error(message: string): void;
174
+ /**
175
+ * User clicked the in-flight stop button. Clears inFlight and
176
+ * fires an "interrupt" event so transports can cancel their
177
+ * in-flight request. No-op if not in-flight (idempotent). Drops
178
+ * any pending thinking narration for the same reason as error():
179
+ * the visitor explicitly asked the assistant to stop, so it
180
+ * shouldn't keep narrating in the trail.
181
+ */
182
+ interrupt(): void;
183
+ /**
184
+ * Wipe state. Used by the canvas-close path (start a fresh
185
+ * conversation next time) and by tests.
186
+ */
187
+ reset(): void;
188
+ /** Register a transport's send listener. Returns unsubscribe. */
189
+ onSend(listener: SendListener): Unsubscribe;
190
+ /**
191
+ * True when at least one transport has wired itself to the session's
192
+ * send pipeline. Views can use this to surface "no chat backend
193
+ * connected" affordances instead of hanging in `inFlight` after a
194
+ * send fires into the void.
195
+ */
196
+ hasTransport(): boolean;
197
+ /** Register a transport's interrupt listener. Returns unsubscribe. */
198
+ onInterrupt(listener: InterruptListener): Unsubscribe;
199
+ /**
200
+ * Register a transport's tool-result listener. The transport
201
+ * forwards `tool-result` actions back to the agent after the user
202
+ * approves or rejects a client-tool call. Returns unsubscribe.
203
+ */
204
+ onToolResult(listener: ToolResultListener): Unsubscribe;
205
+ /**
206
+ * Attach a tool call to a streaming assistant message. No-op when
207
+ * the message id is unknown (race between transport events and
208
+ * reset / late mount).
209
+ */
210
+ addToolCall(messageId: string | number, toolCall: TrailToolCall): void;
211
+ /**
212
+ * Create an empty, already-settled assistant message at `id` if one
213
+ * doesn't already exist. Idempotent — safe to call on every tool-call
214
+ * sighting.
215
+ *
216
+ * Exists for TOOL-ONLY turns: pydantic-ai's AG-UI adapter mints a fresh
217
+ * `parent_message_id` per model response regardless of content
218
+ * (`before_response` → `self.new_message_id()`) and stamps it on every
219
+ * `TOOL_CALL_START`, even when the response has no text. When the
220
+ * model's entire action is one or more tool calls with no narration
221
+ * (a parallel `mount_*` + `suggest_replies` batch, most commonly), no
222
+ * `TEXT_MESSAGE_START` is ever emitted for that id, so nothing would
223
+ * otherwise create the host message `addToolCall` needs — and the tool
224
+ * call (and any chips/receipts derived from it) silently vanishes
225
+ * (BUG-1786654199). Call this before `addToolCall` on a tool call's
226
+ * first sighting so it always has a message to land on.
227
+ *
228
+ * Deliberately status:'complete' (not 'streaming' via `receiveStart`):
229
+ * a tool-only message has no text to stream, so there's nothing for a
230
+ * later `receiveEnd` to settle — leaving it 'streaming' would paint
231
+ * the trail's streaming/typing visual state forever.
232
+ */
233
+ ensureAssistantMessage(id: string | number): void;
234
+ /**
235
+ * Partially update a tool call by id. Used by the transport to
236
+ * advance status (args-streaming → running → done) as AG-UI events
237
+ * arrive. No-op when the id is unknown.
238
+ */
239
+ updateToolCall(toolCallId: string, patch: Partial<TrailToolCall>): void;
240
+ /**
241
+ * Resolve a (client-) tool call. Marks the call done, persists, and
242
+ * fires onToolResult so the transport can forward the result + the
243
+ * user's approve/reject decision back to the agent. No-op when the
244
+ * id is unknown.
245
+ */
246
+ resolveToolCall(toolCallId: string, result: unknown, approved: boolean): void;
247
+ /**
248
+ * Hydrate from the server transcript (the /session SSE's
249
+ * messages-snapshot) — the server is the transcript of record
250
+ * (FEAT-1783701440). Snapshot order is truth: shared ids keep the
251
+ * LOCAL object (it may carry richer live tool-call state) but take the
252
+ * snapshot's position; snapshot-only messages (history on reload, a
253
+ * nudge missed during an SSE gap) are inserted; local-only messages
254
+ * (an in-flight turn, the greeting) float after in local order.
255
+ *
256
+ * Deploy-boundary guard: a user message persisted under a pre-Phase-2
257
+ * transport id (before ids were threaded) would arrive as
258
+ * "snapshot-only" next to its local twin — skip snapshot USER messages
259
+ * whose exact text already exists locally under a different id.
260
+ */
261
+ hydrate(snapshotMessages: TrailMessage[]): void;
262
+ private notify;
263
+ }
264
+ /**
265
+ * The module-level singleton. Every `<adaptive-chat-bar>` (regardless
266
+ * of which slot it lives in) reads from and writes to this instance.
267
+ * Multiple imports of this module return the same object.
268
+ *
269
+ * Scope: per-page. Correct for the canonical case (one user, one
270
+ * conversation, however many canvas views surface it). Multiple
271
+ * `<smart-canvas>` instances on the same page will share state —
272
+ * tracked in project_future_work.md for per-runtime scoping.
273
+ */
274
+ export declare const chatSession: ChatSession;
275
+ //# sourceMappingURL=ChatSession.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatSession.d.ts","sourceRoot":"","sources":["../src/ChatSession.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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