@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,448 @@
1
+ /**
2
+ * ChatTransport — singleton transport adapter that bridges chatSession
3
+ * (the view-side state holder) to the real backend chat pipeline
4
+ * (AG-UI SSE at `/api/adaptive/stream`).
5
+ *
6
+ * This is the unification of two formerly separate paths:
7
+ * - `ChatAssistantLit` (old) owns the transport plumbing —
8
+ * AgUiTransport, Cloudflare Turnstile, headers, A2UI passthrough,
9
+ * telemetry, fallback card.
10
+ * - `AdaptiveChatBar` + `chatSession` (new) owns the canvas-lid UX —
11
+ * glassmorphism bar, bubble-up trail, per-page persistence.
12
+ *
13
+ * This module ports every transport-side concern from ChatAssistantLit
14
+ * into a session-shaped adapter so the new bar gets full backend
15
+ * parity. The bar stays a pure view; the transport stays a pure pipe.
16
+ *
17
+ * Lifecycle:
18
+ * - `configure({ backendUrl, runtime, ... })` — called once by the
19
+ * SDK runtime at bootstrap from chat config. Idempotent; second
20
+ * call with the same backendUrl is a no-op.
21
+ * - Connection is LAZY. The transport doesn't acquire Turnstile or
22
+ * open the SSE until the first chatSession.send() — saves cost
23
+ * on pages where the user never opens chat.
24
+ * - On chatSession.send → transport ensures connected (acquires
25
+ * Turnstile token, builds AgUiTransport) then forwards
26
+ * `{type:'user-message', text}` to the agent.
27
+ * - On chatSession.onInterrupt → transport sends stop-generation.
28
+ * - AgUi events stream into chatSession via receiveStart / Delta /
29
+ * End / error.
30
+ * - A2UI custom events forward to runtime.actions.applyBatch so the
31
+ * agent can drive canvas updates.
32
+ *
33
+ * Telemetry parity with ChatAssistantLit:
34
+ * - chatbot.transport_error (every error, with status/body/name)
35
+ * - chatbot.a2ui_applied
36
+ * - chatbot.fallback_rendered — emitted when the transport gives up
37
+ * (Turnstile failed AND backend rejected) so existing PostHog
38
+ * queries keep working.
39
+ *
40
+ * Threading model: single-flight per page. Multiple concurrent sends
41
+ * are queued by AgUiTransport itself. Multiple bar mounts share this
42
+ * one transport via chatSession.
43
+ */
44
+ import type { ElementMutation, MutationEnvelope } from './elements';
45
+ import type { ChatbotWidgetRuntime } from './types';
46
+ /**
47
+ * Per-customer "chat unavailable" card config. Surfaced via onFallback
48
+ * when the transport gives up after repeated failures. Mirrors
49
+ * ChatbotFallback in types.ts so consumers can pass the same config.
50
+ */
51
+ export interface ChatbotFallbackConfig {
52
+ title?: string;
53
+ message?: string;
54
+ ctaLabel?: string;
55
+ ctaHref?: string;
56
+ }
57
+ export interface ChatTransportConfig {
58
+ /** Backend host, e.g. "https://demo-api.syntrologie.com" or "" for same-origin. */
59
+ backendUrl: string;
60
+ /** Runtime hooks for A2UI apply + telemetry. */
61
+ runtime: ChatbotWidgetRuntime;
62
+ /** Optional thread id for conversation continuity across reloads. */
63
+ threadId?: string;
64
+ /**
65
+ * Optional set of client-tool names the transport should treat as
66
+ * "needs user approval" (surfaced via chatSession.toolCalls instead
67
+ * of auto-executed server-side). Empty by default — all tool calls
68
+ * are server-driven and the transport just emits the "tool call
69
+ * happened" event.
70
+ */
71
+ clientTools?: Set<string>;
72
+ /**
73
+ * Per-customer "chat unavailable" card. Rendered by the host
74
+ * (typically AdaptiveChatBarMountable) after repeated connect
75
+ * failures wipe the chat surface — exactly the same UX
76
+ * ChatAssistantLit's fallback path provides.
77
+ */
78
+ fallback?: ChatbotFallbackConfig;
79
+ /**
80
+ * Arbitrary JSON object attached to every AG-UI request as
81
+ * `forwardedProps`. Used by the adaptive chat surface to ship the
82
+ * LLM-authored UI element config (`uiTemplates`, `elementsEnabled`)
83
+ * per request — the backend reads these to enable the
84
+ * `mount_element` / `patch_element` / `unmount_element` tools.
85
+ * Callable form is re-evaluated on every turn so a config edit can
86
+ * land mid-conversation.
87
+ */
88
+ forwardedProps?: Record<string, unknown> | (() => Record<string, unknown> | undefined);
89
+ /**
90
+ * Optional callback for `syntro.element.mutation` AG-UI custom events.
91
+ * The transport decodes the envelope on receipt; if it matches the
92
+ * element-mutation schema, mutations are routed here instead of the
93
+ * generic `runtime.actions.applyBatch` legacy path. Consumers are
94
+ * expected to forward to `ElementInstanceStore.apply(mutations)` —
95
+ * we don't take a store reference directly so the transport stays
96
+ * agnostic of which surface owns the store (the chat-bar widget
97
+ * may own one; ChatAssistantLit owns its own; both share this
98
+ * singleton transport).
99
+ *
100
+ * When unset, element-mutation envelopes fall back to applyBatch,
101
+ * matching legacy behaviour (which would no-op since applyBatch
102
+ * doesn't know about MutationEnvelope).
103
+ */
104
+ onElementMutation?: (mutations: ElementMutation[]) => void;
105
+ /** Session-owned lifecycle; legacy array consumers retain onElementMutation. */
106
+ onElementEnvelope?: (envelope: MutationEnvelope) => Promise<void>;
107
+ /**
108
+ * Slot the chat-bar widget is mounted into (e.g. ``"drawer"``,
109
+ * ``"adaptive-chat"``). Forwarded as ``X-Active-Lid-Slot`` on every
110
+ * ``/api/adaptive/stream`` request so the backend can route mounts to
111
+ * the canvas next to whichever lid the visitor sent from. Optional —
112
+ * omitting it falls back to the template's static ``default_slot``
113
+ * server-side, which is the pre-change behaviour.
114
+ */
115
+ activeLidSlot?: string;
116
+ /** Sticky persona identity (FEAT-1784917430) — forwarded as headers so the
117
+ * agent speaks AS the persona the visitor sees. ASCII-sanitized client-side;
118
+ * the server re-sanitizes and never trusts these for anything but voice. */
119
+ personaId?: string;
120
+ personaName?: string;
121
+ personaRole?: string;
122
+ }
123
+ /**
124
+ * Debounce window for connect errors. Single transient errors
125
+ * (cold-start 502, brief CORS preflight failure) should NOT swap the
126
+ * chat to the fallback card; only sustained failure should. Matches
127
+ * ChatAssistantLit's ERROR_DEBOUNCE_MS.
128
+ */
129
+ export declare const FALLBACK_DEBOUNCE_MS = 1500;
130
+ export interface FallbackPayload {
131
+ reason: 'connect_failed' | 'connect_timeout';
132
+ fallback: ChatbotFallbackConfig;
133
+ transportId: string;
134
+ transportAgeMs: number;
135
+ messagesSucceeded: number;
136
+ hadTurnstileToken: boolean | null;
137
+ errorStatus: number | null;
138
+ errorBody: string | null;
139
+ errorMessage: string | null;
140
+ errorName: string | null;
141
+ }
142
+ export type FallbackListener = (payload: FallbackPayload) => void;
143
+ /**
144
+ * Visitor-facing progress copy for a tool call, shown in the thinking chip.
145
+ * Returns an ORDERED set of phrasings for the tool's category: the first shows
146
+ * immediately, and `ChatTransport` rotates through the rest every few seconds
147
+ * while the same phase runs (see `_startThinkingCycle`) so a long — or looping
148
+ * — tool phase reads as live progress instead of one frozen string. Keyed on
149
+ * substrings of the (technical) tool name so it survives renames; never shows
150
+ * the raw name.
151
+ *
152
+ * Distinct buckets matter: `retrieve_wiki` (search), `get_wiki_route`
153
+ * (navigate) and `read_section` (read) all used to collapse to one identical
154
+ * "Finding the right page…", which made a multi-call research loop look like a
155
+ * single calm step. Check search/retrieve BEFORE the generic `wiki` fallback so
156
+ * `retrieve_wiki` lands on "Searching…", not "Looking that up…".
157
+ *
158
+ * ─────────────────────────────────────────────────────────────────────────
159
+ * AUTHORING CONTRACT — read before adding or editing a variant.
160
+ *
161
+ * These strings are NOT only shown standalone. When the workspace ships a
162
+ * persona roster, `AdaptiveChatTrail` composes each variant into the single
163
+ * visitor-facing status line as:
164
+ *
165
+ * "{persona name} is {variant, first character lowercased}…"
166
+ *
167
+ * e.g. "Assembling relevant information" → "Jordan is assembling relevant
168
+ * information…", and "Almost there" → "Jordan is almost there…".
169
+ *
170
+ * So EVERY variant must read naturally after `"{name} is "`. Concretely:
171
+ * 1. Start with a capitalised ordinary word — a present participle
172
+ * ("Assembling", "Pulling") or an adverbial complement ("Almost").
173
+ * A leading acronym breaks the case shift ("FAQ lookup" → "fAQ lookup").
174
+ * 2. No subject of its own — "Looking that up for you", never
175
+ * "I'm looking that up" or "The assistant is looking that up".
176
+ * 3. No terminal punctuation — the composed line supplies the trailing
177
+ * ellipsis; a variant ending in "…"/"." would stutter or read as two
178
+ * sentences.
179
+ * `thinking-status-line.integration.test.ts` enforces (1)–(3) mechanically
180
+ * over every variant this function can return; it cannot judge whether a
181
+ * phrase READS well after "is", so do that by eye when you add one.
182
+ * ─────────────────────────────────────────────────────────────────────────
183
+ */
184
+ export declare function toolNarrationVariants(name: string): string[];
185
+ export declare class ChatTransport {
186
+ private _config;
187
+ private _status;
188
+ private _agui;
189
+ private _transportUnsub;
190
+ private _sessionUnsubSend;
191
+ private _sessionUnsubInterrupt;
192
+ private _sessionUnsubToolResult;
193
+ private _connectInFlight;
194
+ /** Bounded streaming-message id for the currently-being-typed assistant turn. */
195
+ private _currentAssistantMessageId;
196
+ /** Intent messageIds this transport actually dispatched (BUG-1784021805).
197
+ * The server's `suppressToast` hint assumes the intent frame reached us —
198
+ * but that frame is fire-and-forget, and a fresh visitor's connection gap
199
+ * loses it. Only the transport knows what it dispatched, so suppression is
200
+ * honored ONLY when the sibling intent (`{id}-intent`) went through here. */
201
+ private _dispatchedNudgeIntentIds;
202
+ /** Outcome bookkeeping for telemetry. */
203
+ private _hadTurnstileToken;
204
+ /** Count of successful round-trips for telemetry payloads. */
205
+ private _messagesSucceeded;
206
+ /** True once a successful assistant message has landed — gates fallback. */
207
+ private _hasSucceeded;
208
+ /** True once fallback has fired (one-shot). */
209
+ private _fallbackRendered;
210
+ /**
211
+ * Per-send override for ``X-Active-Lid-Slot``. Set in the
212
+ * ``chatSession.onSend`` listener immediately before each
213
+ * ``_forwardUserMessage`` and consumed by ``buildHeaders`` on the
214
+ * outbound request. The singleton transport is shared by every
215
+ * mounted chat-bar (drawer + inline) so cached ``_config.activeLidSlot``
216
+ * follows whichever bar last reconfigured — using that for routing
217
+ * silently misroutes tiles when both bars coexist. Per-send threading
218
+ * pins the header to the bar that actually sent the message.
219
+ */
220
+ private _pendingLidSlot;
221
+ /**
222
+ * Per-send forwardedProps override. Set in the ``chatSession.onSend``
223
+ * listener before each ``_forwardUserMessage`` and spread OVER the
224
+ * config-level forwardedProps for that one request (see
225
+ * ``_resolveForwardedProps``). Overwritten on EVERY send — ``null`` when
226
+ * the send carried no envelope — so turn provenance can never leak onto a
227
+ * later typed message and make it look synthetic. Same lifecycle as
228
+ * ``_pendingLidSlot``.
229
+ */
230
+ private _pendingForwardedProps;
231
+ /** Active debounce timer; null when no debounce pending. */
232
+ private _errorDebounceTimer;
233
+ /** Rotates thinking-chip phrasings during a long/looping tool phase (C9). */
234
+ private _thinkingCycleTimer;
235
+ /**
236
+ * Per-class rotation counter, keyed by the narration set's first variant.
237
+ * A NEW tool class shows its primary (variant A) so it's recognizable; a
238
+ * REPEATED same-class call advances to the next variant, so a research loop
239
+ * of (e.g.) several searches reads as different thinking, not one repeated
240
+ * label. Bounded to ~6 keys (one per tool class).
241
+ */
242
+ private _thinkingClassSeq;
243
+ /** Most recent error payload, captured so debounced fallback can attach it. */
244
+ private _lastErrorPayload;
245
+ private _fallbackListeners;
246
+ /**
247
+ * Per-configure-cycle id for correlating telemetry events from a
248
+ * single transport lifetime. Mirrors ChatAssistantLit's mountId
249
+ * but scoped to configure cycles since the transport is a
250
+ * singleton across mounts.
251
+ */
252
+ private _transportId;
253
+ private _configuredAt;
254
+ /** Injected clock for the per-run timings; production uses Date.now. */
255
+ private readonly _now;
256
+ /** Per-run telemetry state (FEAT-1789150184). The chat session owns the turn; this mirrors it per run. */
257
+ private _runTurn;
258
+ private _runStartedAt;
259
+ private _firstDeltaAt;
260
+ private _runMounts;
261
+ private _runCards;
262
+ /** The mount_* tool of every mount this run fired, in order — which surfaces
263
+ * the concierge chose (a carousel on one turn, separate cards on another). */
264
+ private _runMountTools;
265
+ /**
266
+ * Count of RUN_FINISHED events the server still owes us that must be
267
+ * swallowed, not reported — one per interrupt. NOT a boolean: an
268
+ * interrupt latches this debt against whichever run's RUN_FINISHED
269
+ * arrives next, and a visitor can interrupt then immediately send again
270
+ * before the first run's late RUN_FINISHED shows up. Clearing this in
271
+ * `onSend` (as a boolean would need to, to arm for the NEXT run) would
272
+ * let that late RUN_FINISHED slip through and get misattributed to the
273
+ * new run — a phantom `reply_received` at turn N+1 with near-zero
274
+ * ttft/total. The counter survives across sends and is only decremented
275
+ * by an actual RUN_FINISHED, so debt from run N is always paid by run
276
+ * N's own (possibly late) finish, never by run N+1's.
277
+ */
278
+ private _pendingSuppressedFinishes;
279
+ constructor(opts?: {
280
+ now?: () => number;
281
+ });
282
+ /** The transport is not an element: atoms go straight to document, where TelemetryCore listens. */
283
+ private _reportAtom;
284
+ /**
285
+ * Configure the transport. Idempotent — calling again with the same
286
+ * backendUrl is a no-op; calling with a different backendUrl tears
287
+ * the connection down and re-arms.
288
+ */
289
+ configure(config: ChatTransportConfig): void;
290
+ /** ms since the most recent configure() call. 0 before any configure. */
291
+ private _ageMs;
292
+ /** True when configure() has been called and we're ready to lazy-connect on send. */
293
+ get isConfigured(): boolean;
294
+ /** True when AgUiTransport is up. */
295
+ get isConnected(): boolean;
296
+ /**
297
+ * Subscribe to fallback events — fires once per configure cycle
298
+ * when the transport gives up after sustained failure. Hosts
299
+ * (typically AdaptiveChatBarMountable) use this to swap the chat
300
+ * bar for a static "contact support" card.
301
+ */
302
+ onFallback(listener: FallbackListener): () => void;
303
+ /**
304
+ * Test seam — drive a synthetic error event through the transport's
305
+ * error handling without standing up a real AgUi transport. Production
306
+ * code path uses _onTransportEvent. Exported as a public method to
307
+ * keep the test isolation simple; not part of the documented API.
308
+ */
309
+ simulateError(payload: {
310
+ message?: string;
311
+ status?: number | null;
312
+ body?: string | null;
313
+ errorName?: string | null;
314
+ }): void;
315
+ /**
316
+ * Test seam — drive the FULL server-error path (fallback kernel + the
317
+ * visitor-facing chip), exactly what the `case 'error'` transport-event
318
+ * branch does. `midAnswer` simulates an assistant message having been
319
+ * mid-stream when the connection died.
320
+ */
321
+ simulateServerError(payload: {
322
+ message?: string;
323
+ status?: number | null;
324
+ body?: string | null;
325
+ errorName?: string | null;
326
+ midAnswer?: boolean;
327
+ }): void;
328
+ /**
329
+ * Test seam — register a synthetic successful message-complete so
330
+ * the hasSucceeded gate flips without a real AgUi round-trip.
331
+ */
332
+ simulateSuccessfulMessage(): void;
333
+ /**
334
+ * Test seam — return the lid slot that the next outbound request
335
+ * WOULD tag ``X-Active-Lid-Slot`` with, given current state. Mirrors
336
+ * the exact resolution buildHeaders uses (per-send slot wins over
337
+ * cached config). Not part of the documented API.
338
+ */
339
+ getActiveLidSlotForTest(): string | null;
340
+ /**
341
+ * Tear connection-level state down. Used internally by configure()
342
+ * to swap backends; preserves host-registered fallback listeners
343
+ * because the host UI handler (e.g. AdaptiveChatBarMountable's
344
+ * "swap to fallback card" callback) is configuration-independent.
345
+ */
346
+ private _disconnect;
347
+ /**
348
+ * Tear everything down — connection state PLUS host listeners.
349
+ * Use this in test teardown or when fully shutting the transport
350
+ * (page unload, integration test reset). The mountable calls
351
+ * _disconnect indirectly via reconfigure.
352
+ */
353
+ reset(): void;
354
+ /** AbortController for the live /session SSE reader; null = not running. */
355
+ private _sessionStreamAbort;
356
+ /** Capped reconnect backoff for the session stream. */
357
+ private _sessionStreamBackoffMs;
358
+ /**
359
+ * Open the persistent `/api/adaptive/session` SSE and feed its frames
360
+ * through the SAME `_onTransportEvent` switch the AG-UI path uses
361
+ * (FEAT-1783640628 — proactive nudges).
362
+ *
363
+ * The AG-UI cutover left this endpoint with no client consumer, so
364
+ * server-INITIATED events had nowhere to land. A fetch-based reader —
365
+ * unlike EventSource — can send the SDK token, and the visitor ids that
366
+ * write the server's nudge identity bridge. Idempotent; reconnects with
367
+ * capped backoff; `reset()`/`stopSessionStream()` tears it down.
368
+ */
369
+ startSessionStream(): Promise<void>;
370
+ stopSessionStream(): void;
371
+ private _clearDebounceTimer;
372
+ /**
373
+ * Show a per-call rotating variant in the thinking chip immediately (so
374
+ * consecutive tool calls differ), then rotate through the remaining phrasings
375
+ * every 4s while the same tool phase runs (C9). A
376
+ * single tool call can sit for tens of seconds (the model reasoning about the
377
+ * next step, or a slow retrieval); a static chip reads as frozen and hides a
378
+ * loop. Cycling makes a long/looping phase read as live progress. Restarting
379
+ * (a new tool), any output (message/thinking), or teardown clears the cycle.
380
+ */
381
+ private _startThinkingCycle;
382
+ private _stopThinkingCycle;
383
+ /**
384
+ * Shared error-handling kernel — called by the AG-UI subscriber and
385
+ * by the simulateError test seam. Publishes transport_error
386
+ * telemetry, captures lastErrorPayload, and starts the debounce
387
+ * timer that will fire fallback if no successful message arrives
388
+ * before it expires. Gated by hasSucceeded (post-success errors
389
+ * never fallback) and _fallbackRendered (one-shot).
390
+ */
391
+ private _handleErrorEvent;
392
+ /**
393
+ * Fire the fallback. One-shot per configure cycle. Notifies all
394
+ * fallback listeners with the per-customer card config and the
395
+ * diagnostic snapshot for telemetry/debug.
396
+ */
397
+ private _renderFallback;
398
+ /**
399
+ * forwardedProps for the NEXT outbound AG-UI request: the config-level
400
+ * value (late-bound — `configure()` can update uiTemplates /
401
+ * elementsEnabled mid-session without a reconnect, so this must be
402
+ * resolved per request, not captured at construction) with the per-send
403
+ * envelope spread over it. Shallow merge; per-send wins per top-level key.
404
+ */
405
+ private _resolveForwardedProps;
406
+ private _wireSession;
407
+ private _forwardUserMessage;
408
+ /**
409
+ * Ensure AgUiTransport is up. Idempotent — multiple concurrent calls
410
+ * dedupe to a single Turnstile acquisition + transport setup.
411
+ * Returns true on success, false on terminal failure.
412
+ */
413
+ private _ensureConnected;
414
+ /**
415
+ * Acquire a Turnstile token for a visitor send. Only reached from
416
+ * `_ensureConnected`, i.e. on interaction. Returns null without touching
417
+ * Cloudflare when the build has no sitekey or the backend does not enforce
418
+ * the check; null also when acquisition fails.
419
+ */
420
+ private _acquireTurnstileWithChallenge;
421
+ /**
422
+ * Look up a tool call's current chatSession-side status by id.
423
+ * Used to decide between addToolCall (first sighting) and
424
+ * updateToolCall (subsequent updates) when AG-UI re-emits
425
+ * `tool-call` events for client tools transitioning to 'pending'.
426
+ */
427
+ private _findToolCallStatus;
428
+ /**
429
+ * Convert one server-transcript message (the session store shape:
430
+ * ``{id, role, content, timestamp, status, toolCalls?}`` with toolCalls
431
+ * in AG-UI wire shape) into a TrailMessage. Returns null for entries the
432
+ * trail can't render (missing id, system/tool roles, empty content with
433
+ * no tool receipts) — the transcript may legitimately contain them.
434
+ */
435
+ private _snapshotToTrailMessage;
436
+ /** AG-UI wire-shape toolCalls → settled TrailToolCall receipts. */
437
+ private _snapshotToolCalls;
438
+ /** Map AG-UI ToolCallStatus to TrailToolCall status. */
439
+ private _mapToolCallStatus;
440
+ private _onTransportEvent;
441
+ }
442
+ /**
443
+ * The module-level singleton. Imported by both the SDK runtime
444
+ * bootstrap (to call configure) and any code that needs to read
445
+ * transport state. Mirrors the chatSession singleton shape.
446
+ */
447
+ export declare const chatTransport: ChatTransport;
448
+ //# sourceMappingURL=ChatTransport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ChatTransport.d.ts","sourceRoot":"","sources":["../src/ChatTransport.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AAeH,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAGpE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,SAAS,CAAC;AAWpD;;;;GAIG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,mBAAmB;IAClC,mFAAmF;IACnF,UAAU,EAAE,MAAM,CAAC;IACnB,gDAAgD;IAChD,OAAO,EAAE,oBAAoB,CAAC;IAC9B,qEAAqE;IACrE,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC;;;;;;;;OAQG;IACH,cAA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D;IACvD,OAAO,CAAC,uBAAuB,CAAQ;IAEvC;;;;;;;;;;OAUG;IACG,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC;IAoKzC,iBAAiB,IAAI,IAAI;IAMzB,OAAO,CAAC,mBAAmB;IAO3B;;;;;;;;OAQG;IACH,OAAO,CAAC,mBAAmB;IAwB3B,OAAO,CAAC,kBAAkB;IAO1B;;;;;;;OAOG;IACH,OAAO,CAAC,iBAAiB;IA0CzB;;;;OAIG;IACH,OAAO,CAAC,eAAe;IA4BvB;;;;;;OAMG;IACH,OAAO,CAAC,sBAAsB;IAQ9B,OAAO,CAAC,YAAY;YAwCN,mBAAmB;IA6BjC;;;;OAIG;YACW,gBAAgB;IA8K9B;;;;;OAKG;YACW,8BAA8B;IAW5C;;;;;OAKG;IACH,OAAO,CAAC,mBAAmB;IAS3B;;;;;;OAMG;IACH,OAAO,CAAC,uBAAuB;IAe/B,mEAAmE;IACnE,OAAO,CAAC,kBAAkB;IAwB1B,wDAAwD;IACxD,OAAO,CAAC,kBAAkB;IAiB1B,OAAO,CAAC,iBAAiB;CAyU1B;AAED;;;;GAIG;AACH,eAAO,MAAM,aAAa,eAA+C,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './AdaptiveChatBar';
2
+ //# sourceMappingURL=InlineRegistryWidgetMount.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineRegistryWidgetMount.test.d.ts","sourceRoot":"","sources":["../src/InlineRegistryWidgetMount.test.ts"],"names":[],"mappings":"AAiCA,OAAO,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ import './AdaptiveChatBar';
2
+ //# sourceMappingURL=InlineWidgetLiveMount.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InlineWidgetLiveMount.test.d.ts","sourceRoot":"","sources":["../src/InlineWidgetLiveMount.test.ts"],"names":[],"mappings":"AAmCA,OAAO,mBAAmB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=LeaveAMessage.leadconnector.integration.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LeaveAMessage.leadconnector.integration.test.d.ts","sourceRoot":"","sources":["../src/LeaveAMessage.leadconnector.integration.test.ts"],"names":[],"mappings":""}