@memberjunction/ng-conversations 5.43.0 → 5.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (351) hide show
  1. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts +0 -1
  2. package/dist/lib/components/active-tasks/active-tasks-panel.component.d.ts.map +1 -1
  3. package/dist/lib/components/active-tasks/active-tasks-panel.component.js +56 -52
  4. package/dist/lib/components/active-tasks/active-tasks-panel.component.js.map +1 -1
  5. package/dist/lib/components/artifact/artifact-share-modal.component.js +37 -41
  6. package/dist/lib/components/artifact/artifact-share-modal.component.js.map +1 -1
  7. package/dist/lib/components/collection/collection-form-modal.component.d.ts.map +1 -1
  8. package/dist/lib/components/collection/collection-form-modal.component.js +10 -14
  9. package/dist/lib/components/collection/collection-form-modal.component.js.map +1 -1
  10. package/dist/lib/components/collection/collection-share-modal.component.js +41 -45
  11. package/dist/lib/components/collection/collection-share-modal.component.js.map +1 -1
  12. package/dist/lib/components/collection/collection-view.component.d.ts.map +1 -1
  13. package/dist/lib/components/collection/collection-view.component.js +22 -36
  14. package/dist/lib/components/collection/collection-view.component.js.map +1 -1
  15. package/dist/lib/components/collection/collections-full-view.component.d.ts +4 -0
  16. package/dist/lib/components/collection/collections-full-view.component.d.ts.map +1 -1
  17. package/dist/lib/components/collection/collections-full-view.component.js +134 -166
  18. package/dist/lib/components/collection/collections-full-view.component.js.map +1 -1
  19. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts +73 -8
  20. package/dist/lib/components/conversation/conversation-chat-area.component.d.ts.map +1 -1
  21. package/dist/lib/components/conversation/conversation-chat-area.component.js +487 -123
  22. package/dist/lib/components/conversation/conversation-chat-area.component.js.map +1 -1
  23. package/dist/lib/components/conversation/pinned-messages-panel.component.js +6 -9
  24. package/dist/lib/components/conversation/pinned-messages-panel.component.js.map +1 -1
  25. package/dist/lib/components/library/library-full-view.component.d.ts.map +1 -1
  26. package/dist/lib/components/library/library-full-view.component.js +20 -24
  27. package/dist/lib/components/library/library-full-view.component.js.map +1 -1
  28. package/dist/lib/components/members/members-modal.component.d.ts.map +1 -1
  29. package/dist/lib/components/members/members-modal.component.js +10 -11
  30. package/dist/lib/components/members/members-modal.component.js.map +1 -1
  31. package/dist/lib/components/mention/mention-dropdown.component.js +49 -28
  32. package/dist/lib/components/mention/mention-dropdown.component.js.map +1 -1
  33. package/dist/lib/components/mention/mention-editor.component.d.ts.map +1 -1
  34. package/dist/lib/components/mention/mention-editor.component.js +24 -10
  35. package/dist/lib/components/mention/mention-editor.component.js.map +1 -1
  36. package/dist/lib/components/message/message-input-box.component.d.ts +11 -16
  37. package/dist/lib/components/message/message-input-box.component.d.ts.map +1 -1
  38. package/dist/lib/components/message/message-input-box.component.js +52 -46
  39. package/dist/lib/components/message/message-input-box.component.js.map +1 -1
  40. package/dist/lib/components/message/message-input.component.d.ts +83 -18
  41. package/dist/lib/components/message/message-input.component.d.ts.map +1 -1
  42. package/dist/lib/components/message/message-input.component.js +238 -151
  43. package/dist/lib/components/message/message-input.component.js.map +1 -1
  44. package/dist/lib/components/message/message-item.component.d.ts +10 -1
  45. package/dist/lib/components/message/message-item.component.d.ts.map +1 -1
  46. package/dist/lib/components/message/message-item.component.js +67 -15
  47. package/dist/lib/components/message/message-item.component.js.map +1 -1
  48. package/dist/lib/components/message/message-list.component.js +6 -9
  49. package/dist/lib/components/message/message-list.component.js.map +1 -1
  50. package/dist/lib/components/overlay/chat-overlay.component.d.ts +3 -0
  51. package/dist/lib/components/overlay/chat-overlay.component.d.ts.map +1 -1
  52. package/dist/lib/components/overlay/chat-overlay.component.js +9 -4
  53. package/dist/lib/components/overlay/chat-overlay.component.js.map +1 -1
  54. package/dist/lib/components/realtime/channels/base-realtime-channel-client.d.ts +45 -0
  55. package/dist/lib/components/realtime/channels/base-realtime-channel-client.d.ts.map +1 -1
  56. package/dist/lib/components/realtime/channels/base-realtime-channel-client.js +10 -0
  57. package/dist/lib/components/realtime/channels/base-realtime-channel-client.js.map +1 -1
  58. package/dist/lib/components/realtime/channels/client-context-channel.d.ts +46 -0
  59. package/dist/lib/components/realtime/channels/client-context-channel.d.ts.map +1 -0
  60. package/dist/lib/components/realtime/channels/client-context-channel.js +174 -0
  61. package/dist/lib/components/realtime/channels/client-context-channel.js.map +1 -0
  62. package/dist/lib/components/realtime/evidence-playback/realtime-evidence-playback.component.d.ts +123 -0
  63. package/dist/lib/components/realtime/evidence-playback/realtime-evidence-playback.component.d.ts.map +1 -0
  64. package/dist/lib/components/realtime/evidence-playback/realtime-evidence-playback.component.js +397 -0
  65. package/dist/lib/components/realtime/evidence-playback/realtime-evidence-playback.component.js.map +1 -0
  66. package/dist/lib/components/realtime/media/media-channel-state.d.ts +103 -0
  67. package/dist/lib/components/realtime/media/media-channel-state.d.ts.map +1 -0
  68. package/dist/lib/components/realtime/media/media-channel-state.js +143 -0
  69. package/dist/lib/components/realtime/media/media-channel-state.js.map +1 -0
  70. package/dist/lib/components/realtime/media/media-channel-tools.d.ts +24 -0
  71. package/dist/lib/components/realtime/media/media-channel-tools.d.ts.map +1 -0
  72. package/dist/lib/components/realtime/media/media-channel-tools.js +107 -0
  73. package/dist/lib/components/realtime/media/media-channel-tools.js.map +1 -0
  74. package/dist/lib/components/realtime/media/media-channel.d.ts +89 -0
  75. package/dist/lib/components/realtime/media/media-channel.d.ts.map +1 -0
  76. package/dist/lib/components/realtime/media/media-channel.js +253 -0
  77. package/dist/lib/components/realtime/media/media-channel.js.map +1 -0
  78. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts +141 -0
  79. package/dist/lib/components/realtime/media/realtime-media-surface.component.d.ts.map +1 -0
  80. package/dist/lib/components/realtime/media/realtime-media-surface.component.js +574 -0
  81. package/dist/lib/components/realtime/media/realtime-media-surface.component.js.map +1 -0
  82. package/dist/lib/components/realtime/realtime-activity-rail.component.d.ts +59 -14
  83. package/dist/lib/components/realtime/realtime-activity-rail.component.d.ts.map +1 -1
  84. package/dist/lib/components/realtime/realtime-activity-rail.component.js +277 -74
  85. package/dist/lib/components/realtime/realtime-activity-rail.component.js.map +1 -1
  86. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts +28 -27
  87. package/dist/lib/components/realtime/realtime-agent-banner.component.d.ts.map +1 -1
  88. package/dist/lib/components/realtime/realtime-agent-banner.component.js +144 -143
  89. package/dist/lib/components/realtime/realtime-agent-banner.component.js.map +1 -1
  90. package/dist/lib/components/realtime/realtime-agent-picker.component.d.ts +12 -0
  91. package/dist/lib/components/realtime/realtime-agent-picker.component.d.ts.map +1 -1
  92. package/dist/lib/components/realtime/realtime-agent-picker.component.js +105 -43
  93. package/dist/lib/components/realtime/realtime-agent-picker.component.js.map +1 -1
  94. package/dist/lib/components/realtime/realtime-audio-visuals.d.ts +2 -2
  95. package/dist/lib/components/realtime/realtime-audio-visuals.d.ts.map +1 -1
  96. package/dist/lib/components/realtime/realtime-audio-visuals.js.map +1 -1
  97. package/dist/lib/components/realtime/realtime-composer.component.d.ts +41 -7
  98. package/dist/lib/components/realtime/realtime-composer.component.d.ts.map +1 -1
  99. package/dist/lib/components/realtime/realtime-composer.component.js +216 -102
  100. package/dist/lib/components/realtime/realtime-composer.component.js.map +1 -1
  101. package/dist/lib/components/realtime/realtime-delegation-card.component.d.ts +0 -2
  102. package/dist/lib/components/realtime/realtime-delegation-card.component.d.ts.map +1 -1
  103. package/dist/lib/components/realtime/realtime-delegation-card.component.js +67 -71
  104. package/dist/lib/components/realtime/realtime-delegation-card.component.js.map +1 -1
  105. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts +364 -44
  106. package/dist/lib/components/realtime/realtime-session-overlay.component.d.ts.map +1 -1
  107. package/dist/lib/components/realtime/realtime-session-overlay.component.js +839 -153
  108. package/dist/lib/components/realtime/realtime-session-overlay.component.js.map +1 -1
  109. package/dist/lib/components/realtime/realtime-session-state.d.ts +5 -5
  110. package/dist/lib/components/realtime/realtime-session-state.d.ts.map +1 -1
  111. package/dist/lib/components/realtime/realtime-session-state.js.map +1 -1
  112. package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts +70 -0
  113. package/dist/lib/components/realtime/realtime-surface-tab-style.d.ts.map +1 -0
  114. package/dist/lib/components/realtime/realtime-surface-tab-style.js +115 -0
  115. package/dist/lib/components/realtime/realtime-surface-tab-style.js.map +1 -0
  116. package/dist/lib/components/realtime/realtime-surface-tabs.component.d.ts +55 -57
  117. package/dist/lib/components/realtime/realtime-surface-tabs.component.d.ts.map +1 -1
  118. package/dist/lib/components/realtime/realtime-surface-tabs.component.js +165 -143
  119. package/dist/lib/components/realtime/realtime-surface-tabs.component.js.map +1 -1
  120. package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts +80 -71
  121. package/dist/lib/components/realtime/realtime-surface-tabs.model.d.ts.map +1 -1
  122. package/dist/lib/components/realtime/realtime-surface-tabs.model.js +83 -113
  123. package/dist/lib/components/realtime/realtime-surface-tabs.model.js.map +1 -1
  124. package/dist/lib/components/realtime/realtime-ui-config.d.ts +270 -0
  125. package/dist/lib/components/realtime/realtime-ui-config.d.ts.map +1 -0
  126. package/dist/lib/components/realtime/realtime-ui-config.js +212 -0
  127. package/dist/lib/components/realtime/realtime-ui-config.js.map +1 -0
  128. package/dist/lib/components/search/search-panel.component.d.ts +2 -0
  129. package/dist/lib/components/search/search-panel.component.d.ts.map +1 -1
  130. package/dist/lib/components/search/search-panel.component.js +92 -101
  131. package/dist/lib/components/search/search-panel.component.js.map +1 -1
  132. package/dist/lib/components/share/share-modal.component.d.ts.map +1 -1
  133. package/dist/lib/components/share/share-modal.component.js +10 -11
  134. package/dist/lib/components/share/share-modal.component.js.map +1 -1
  135. package/dist/lib/components/shared/user-picker.component.d.ts.map +1 -1
  136. package/dist/lib/components/shared/user-picker.component.js +12 -15
  137. package/dist/lib/components/shared/user-picker.component.js.map +1 -1
  138. package/dist/lib/components/workspace/conversation-workspace.component.d.ts +5 -0
  139. package/dist/lib/components/workspace/conversation-workspace.component.d.ts.map +1 -1
  140. package/dist/lib/components/workspace/conversation-workspace.component.js +18 -7
  141. package/dist/lib/components/workspace/conversation-workspace.component.js.map +1 -1
  142. package/dist/lib/conversations.module.d.ts +29 -26
  143. package/dist/lib/conversations.module.d.ts.map +1 -1
  144. package/dist/lib/conversations.module.js +37 -6
  145. package/dist/lib/conversations.module.js.map +1 -1
  146. package/dist/lib/models/conversation-state.model.d.ts +6 -3
  147. package/dist/lib/models/conversation-state.model.d.ts.map +1 -1
  148. package/dist/lib/models/conversation-state.model.js.map +1 -1
  149. package/dist/lib/services/conversation-agent.service.d.ts +2 -2
  150. package/dist/lib/services/conversation-agent.service.d.ts.map +1 -1
  151. package/dist/lib/services/conversation-agent.service.js +6 -2
  152. package/dist/lib/services/conversation-agent.service.js.map +1 -1
  153. package/dist/lib/services/mention-autocomplete.service.d.ts +17 -1
  154. package/dist/lib/services/mention-autocomplete.service.d.ts.map +1 -1
  155. package/dist/lib/services/mention-autocomplete.service.js +58 -2
  156. package/dist/lib/services/mention-autocomplete.service.js.map +1 -1
  157. package/dist/lib/services/realtime-audio-recorder.d.ts +143 -0
  158. package/dist/lib/services/realtime-audio-recorder.d.ts.map +1 -0
  159. package/dist/lib/services/realtime-audio-recorder.js +379 -0
  160. package/dist/lib/services/realtime-audio-recorder.js.map +1 -0
  161. package/dist/lib/services/realtime-pcm-wav.d.ts +75 -0
  162. package/dist/lib/services/realtime-pcm-wav.d.ts.map +1 -0
  163. package/dist/lib/services/realtime-pcm-wav.js +205 -0
  164. package/dist/lib/services/realtime-pcm-wav.js.map +1 -0
  165. package/dist/lib/services/realtime-session-review.service.d.ts +28 -1
  166. package/dist/lib/services/realtime-session-review.service.d.ts.map +1 -1
  167. package/dist/lib/services/realtime-session-review.service.js +12 -3
  168. package/dist/lib/services/realtime-session-review.service.js.map +1 -1
  169. package/dist/lib/services/realtime-session.service.d.ts +210 -20
  170. package/dist/lib/services/realtime-session.service.d.ts.map +1 -1
  171. package/dist/lib/services/realtime-session.service.js +452 -21
  172. package/dist/lib/services/realtime-session.service.js.map +1 -1
  173. package/dist/lib/services/realtime-sessions-adapter.js +1 -1
  174. package/dist/lib/services/realtime-sessions-adapter.js.map +1 -1
  175. package/dist/lib/services/ui-command-handler.service.d.ts +7 -2
  176. package/dist/lib/services/ui-command-handler.service.d.ts.map +1 -1
  177. package/dist/lib/services/ui-command-handler.service.js +6 -2
  178. package/dist/lib/services/ui-command-handler.service.js.map +1 -1
  179. package/dist/lib/utils/plan-mode-preference.d.ts +62 -0
  180. package/dist/lib/utils/plan-mode-preference.d.ts.map +1 -0
  181. package/dist/lib/utils/plan-mode-preference.js +130 -0
  182. package/dist/lib/utils/plan-mode-preference.js.map +1 -0
  183. package/dist/public-api.d.ts +6 -0
  184. package/dist/public-api.d.ts.map +1 -1
  185. package/dist/public-api.js +8 -0
  186. package/dist/public-api.js.map +1 -1
  187. package/package.json +28 -26
  188. package/dist/__tests__/attachment-badge.test.d.ts +0 -2
  189. package/dist/__tests__/attachment-badge.test.d.ts.map +0 -1
  190. package/dist/__tests__/attachment-badge.test.js +0 -66
  191. package/dist/__tests__/attachment-badge.test.js.map +0 -1
  192. package/dist/__tests__/channel-optional-surface.test.d.ts +0 -2
  193. package/dist/__tests__/channel-optional-surface.test.d.ts.map +0 -1
  194. package/dist/__tests__/channel-optional-surface.test.js +0 -53
  195. package/dist/__tests__/channel-optional-surface.test.js.map +0 -1
  196. package/dist/__tests__/chat-events.test.d.ts +0 -14
  197. package/dist/__tests__/chat-events.test.d.ts.map +0 -1
  198. package/dist/__tests__/chat-events.test.js +0 -109
  199. package/dist/__tests__/chat-events.test.js.map +0 -1
  200. package/dist/__tests__/collections-full-view.test.d.ts +0 -2
  201. package/dist/__tests__/collections-full-view.test.d.ts.map +0 -1
  202. package/dist/__tests__/collections-full-view.test.js +0 -225
  203. package/dist/__tests__/collections-full-view.test.js.map +0 -1
  204. package/dist/__tests__/conversation-cache.test.d.ts +0 -2
  205. package/dist/__tests__/conversation-cache.test.d.ts.map +0 -1
  206. package/dist/__tests__/conversation-cache.test.js +0 -233
  207. package/dist/__tests__/conversation-cache.test.js.map +0 -1
  208. package/dist/__tests__/conversation-naming.test.d.ts +0 -2
  209. package/dist/__tests__/conversation-naming.test.d.ts.map +0 -1
  210. package/dist/__tests__/conversation-naming.test.js +0 -110
  211. package/dist/__tests__/conversation-naming.test.js.map +0 -1
  212. package/dist/__tests__/delegation-result-parser.test.d.ts +0 -2
  213. package/dist/__tests__/delegation-result-parser.test.d.ts.map +0 -1
  214. package/dist/__tests__/delegation-result-parser.test.js +0 -107
  215. package/dist/__tests__/delegation-result-parser.test.js.map +0 -1
  216. package/dist/__tests__/distinct-artifacts.test.d.ts +0 -2
  217. package/dist/__tests__/distinct-artifacts.test.d.ts.map +0 -1
  218. package/dist/__tests__/distinct-artifacts.test.js +0 -56
  219. package/dist/__tests__/distinct-artifacts.test.js.map +0 -1
  220. package/dist/__tests__/event-wiring.test.d.ts +0 -15
  221. package/dist/__tests__/event-wiring.test.d.ts.map +0 -1
  222. package/dist/__tests__/event-wiring.test.js +0 -100
  223. package/dist/__tests__/event-wiring.test.js.map +0 -1
  224. package/dist/__tests__/index.test.d.ts +0 -2
  225. package/dist/__tests__/index.test.d.ts.map +0 -1
  226. package/dist/__tests__/index.test.js +0 -7
  227. package/dist/__tests__/index.test.js.map +0 -1
  228. package/dist/__tests__/narration-template.test.d.ts +0 -2
  229. package/dist/__tests__/narration-template.test.d.ts.map +0 -1
  230. package/dist/__tests__/narration-template.test.js +0 -76
  231. package/dist/__tests__/narration-template.test.js.map +0 -1
  232. package/dist/__tests__/notification-model.test.d.ts +0 -2
  233. package/dist/__tests__/notification-model.test.d.ts.map +0 -1
  234. package/dist/__tests__/notification-model.test.js +0 -68
  235. package/dist/__tests__/notification-model.test.js.map +0 -1
  236. package/dist/__tests__/realtime-agent-picker-models.test.d.ts +0 -2
  237. package/dist/__tests__/realtime-agent-picker-models.test.d.ts.map +0 -1
  238. package/dist/__tests__/realtime-agent-picker-models.test.js +0 -49
  239. package/dist/__tests__/realtime-agent-picker-models.test.js.map +0 -1
  240. package/dist/__tests__/realtime-audio-visuals.test.d.ts +0 -2
  241. package/dist/__tests__/realtime-audio-visuals.test.d.ts.map +0 -1
  242. package/dist/__tests__/realtime-audio-visuals.test.js +0 -123
  243. package/dist/__tests__/realtime-audio-visuals.test.js.map +0 -1
  244. package/dist/__tests__/realtime-delegation-card-cancel.test.d.ts +0 -2
  245. package/dist/__tests__/realtime-delegation-card-cancel.test.d.ts.map +0 -1
  246. package/dist/__tests__/realtime-delegation-card-cancel.test.js +0 -48
  247. package/dist/__tests__/realtime-delegation-card-cancel.test.js.map +0 -1
  248. package/dist/__tests__/realtime-disclosure.test.d.ts +0 -2
  249. package/dist/__tests__/realtime-disclosure.test.d.ts.map +0 -1
  250. package/dist/__tests__/realtime-disclosure.test.js +0 -164
  251. package/dist/__tests__/realtime-disclosure.test.js.map +0 -1
  252. package/dist/__tests__/realtime-pairing.test.d.ts +0 -2
  253. package/dist/__tests__/realtime-pairing.test.d.ts.map +0 -1
  254. package/dist/__tests__/realtime-pairing.test.js +0 -207
  255. package/dist/__tests__/realtime-pairing.test.js.map +0 -1
  256. package/dist/__tests__/realtime-review-lifecycle.test.d.ts +0 -2
  257. package/dist/__tests__/realtime-review-lifecycle.test.d.ts.map +0 -1
  258. package/dist/__tests__/realtime-review-lifecycle.test.js +0 -154
  259. package/dist/__tests__/realtime-review-lifecycle.test.js.map +0 -1
  260. package/dist/__tests__/realtime-session-cancel-usage.test.d.ts +0 -2
  261. package/dist/__tests__/realtime-session-cancel-usage.test.d.ts.map +0 -1
  262. package/dist/__tests__/realtime-session-cancel-usage.test.js +0 -230
  263. package/dist/__tests__/realtime-session-cancel-usage.test.js.map +0 -1
  264. package/dist/__tests__/realtime-session-channels.test.d.ts +0 -2
  265. package/dist/__tests__/realtime-session-channels.test.d.ts.map +0 -1
  266. package/dist/__tests__/realtime-session-channels.test.js +0 -252
  267. package/dist/__tests__/realtime-session-channels.test.js.map +0 -1
  268. package/dist/__tests__/realtime-session-client-tools.test.d.ts +0 -2
  269. package/dist/__tests__/realtime-session-client-tools.test.d.ts.map +0 -1
  270. package/dist/__tests__/realtime-session-client-tools.test.js +0 -103
  271. package/dist/__tests__/realtime-session-client-tools.test.js.map +0 -1
  272. package/dist/__tests__/realtime-session-minimized.test.d.ts +0 -2
  273. package/dist/__tests__/realtime-session-minimized.test.d.ts.map +0 -1
  274. package/dist/__tests__/realtime-session-minimized.test.js +0 -32
  275. package/dist/__tests__/realtime-session-minimized.test.js.map +0 -1
  276. package/dist/__tests__/realtime-session-mint.test.d.ts +0 -2
  277. package/dist/__tests__/realtime-session-mint.test.d.ts.map +0 -1
  278. package/dist/__tests__/realtime-session-mint.test.js +0 -69
  279. package/dist/__tests__/realtime-session-mint.test.js.map +0 -1
  280. package/dist/__tests__/realtime-session-policy.test.d.ts +0 -2
  281. package/dist/__tests__/realtime-session-policy.test.d.ts.map +0 -1
  282. package/dist/__tests__/realtime-session-policy.test.js +0 -303
  283. package/dist/__tests__/realtime-session-policy.test.js.map +0 -1
  284. package/dist/__tests__/realtime-session-review.service.test.d.ts +0 -2
  285. package/dist/__tests__/realtime-session-review.service.test.d.ts.map +0 -1
  286. package/dist/__tests__/realtime-session-review.service.test.js +0 -743
  287. package/dist/__tests__/realtime-session-review.service.test.js.map +0 -1
  288. package/dist/__tests__/realtime-session-state.test.d.ts +0 -2
  289. package/dist/__tests__/realtime-session-state.test.d.ts.map +0 -1
  290. package/dist/__tests__/realtime-session-state.test.js +0 -83
  291. package/dist/__tests__/realtime-session-state.test.js.map +0 -1
  292. package/dist/__tests__/realtime-session-timeline-card.test.d.ts +0 -2
  293. package/dist/__tests__/realtime-session-timeline-card.test.d.ts.map +0 -1
  294. package/dist/__tests__/realtime-session-timeline-card.test.js +0 -106
  295. package/dist/__tests__/realtime-session-timeline-card.test.js.map +0 -1
  296. package/dist/__tests__/realtime-session-timeline.test.d.ts +0 -2
  297. package/dist/__tests__/realtime-session-timeline.test.d.ts.map +0 -1
  298. package/dist/__tests__/realtime-session-timeline.test.js +0 -142
  299. package/dist/__tests__/realtime-session-timeline.test.js.map +0 -1
  300. package/dist/__tests__/realtime-sessions-adapter.test.d.ts +0 -19
  301. package/dist/__tests__/realtime-sessions-adapter.test.d.ts.map +0 -1
  302. package/dist/__tests__/realtime-sessions-adapter.test.js +0 -188
  303. package/dist/__tests__/realtime-sessions-adapter.test.js.map +0 -1
  304. package/dist/__tests__/realtime-surface-panel-prefs.test.d.ts +0 -2
  305. package/dist/__tests__/realtime-surface-panel-prefs.test.d.ts.map +0 -1
  306. package/dist/__tests__/realtime-surface-panel-prefs.test.js +0 -100
  307. package/dist/__tests__/realtime-surface-panel-prefs.test.js.map +0 -1
  308. package/dist/__tests__/realtime-surface-tabs-model.test.d.ts +0 -2
  309. package/dist/__tests__/realtime-surface-tabs-model.test.d.ts.map +0 -1
  310. package/dist/__tests__/realtime-surface-tabs-model.test.js +0 -193
  311. package/dist/__tests__/realtime-surface-tabs-model.test.js.map +0 -1
  312. package/dist/__tests__/remote-browser-audio-player.test.d.ts +0 -2
  313. package/dist/__tests__/remote-browser-audio-player.test.d.ts.map +0 -1
  314. package/dist/__tests__/remote-browser-audio-player.test.js +0 -137
  315. package/dist/__tests__/remote-browser-audio-player.test.js.map +0 -1
  316. package/dist/__tests__/remote-browser-channel.test.d.ts +0 -2
  317. package/dist/__tests__/remote-browser-channel.test.d.ts.map +0 -1
  318. package/dist/__tests__/remote-browser-channel.test.js +0 -585
  319. package/dist/__tests__/remote-browser-channel.test.js.map +0 -1
  320. package/dist/__tests__/search-service.test.d.ts +0 -2
  321. package/dist/__tests__/search-service.test.d.ts.map +0 -1
  322. package/dist/__tests__/search-service.test.js +0 -114
  323. package/dist/__tests__/search-service.test.js.map +0 -1
  324. package/dist/__tests__/slot-defaults.test.d.ts +0 -24
  325. package/dist/__tests__/slot-defaults.test.d.ts.map +0 -1
  326. package/dist/__tests__/slot-defaults.test.js +0 -63
  327. package/dist/__tests__/slot-defaults.test.js.map +0 -1
  328. package/dist/__tests__/toast-service.test.d.ts +0 -2
  329. package/dist/__tests__/toast-service.test.d.ts.map +0 -1
  330. package/dist/__tests__/toast-service.test.js +0 -143
  331. package/dist/__tests__/toast-service.test.js.map +0 -1
  332. package/dist/__tests__/user-authorization.test.d.ts +0 -2
  333. package/dist/__tests__/user-authorization.test.d.ts.map +0 -1
  334. package/dist/__tests__/user-authorization.test.js +0 -97
  335. package/dist/__tests__/user-authorization.test.js.map +0 -1
  336. package/dist/__tests__/voice-session-narration.test.d.ts +0 -2
  337. package/dist/__tests__/voice-session-narration.test.d.ts.map +0 -1
  338. package/dist/__tests__/voice-session-narration.test.js +0 -609
  339. package/dist/__tests__/voice-session-narration.test.js.map +0 -1
  340. package/dist/__tests__/whiteboard-artifact-viewer.test.d.ts +0 -2
  341. package/dist/__tests__/whiteboard-artifact-viewer.test.d.ts.map +0 -1
  342. package/dist/__tests__/whiteboard-artifact-viewer.test.js +0 -101
  343. package/dist/__tests__/whiteboard-artifact-viewer.test.js.map +0 -1
  344. package/dist/__tests__/whiteboard-channel.test.d.ts +0 -2
  345. package/dist/__tests__/whiteboard-channel.test.d.ts.map +0 -1
  346. package/dist/__tests__/whiteboard-channel.test.js +0 -260
  347. package/dist/__tests__/whiteboard-channel.test.js.map +0 -1
  348. package/dist/__tests__/whiteboard-restore-state.test.d.ts +0 -2
  349. package/dist/__tests__/whiteboard-restore-state.test.d.ts.map +0 -1
  350. package/dist/__tests__/whiteboard-restore-state.test.js +0 -108
  351. package/dist/__tests__/whiteboard-restore-state.test.js.map +0 -1
@@ -1,10 +1,18 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { IMetadataProvider } from '@memberjunction/core';
3
3
  import { RealtimeToolDefinition } from '@memberjunction/ai';
4
+ import { AppContextSnapshot } from '@memberjunction/ai-core-plus';
4
5
  import { RealtimeAudioActivity } from '@memberjunction/ai-realtime-client';
5
6
  import { ParsedDelegationArtifact } from './delegation-result-parser';
6
7
  import { BaseRealtimeChannelClient } from '../components/realtime/channels/base-realtime-channel-client';
7
8
  import * as i0 from "@angular/core";
9
+ /**
10
+ * `MJ: User Settings` key for the per-user "record this voice call" consent toggle. Stored as
11
+ * the literal string `'true'`/`'false'` (read with `=== 'true'`), cross-device via
12
+ * {@link UserInfoEngine}. The pre-call picker writes it; the session service reads it as the
13
+ * default when the caller doesn't pass an explicit consent value.
14
+ */
15
+ export declare const REALTIME_RECORDING_CONSENT_KEY = "mj.realtimeVoice.recordingConsent.v1";
8
16
  /**
9
17
  * Connection / turn state for a real-time voice session, surfaced to the UI overlay.
10
18
  * - `connecting` — negotiating the session + provider handshake
@@ -14,9 +22,9 @@ import * as i0 from "@angular/core";
14
22
  * - `error` — a fatal error occurred; the session is no longer usable
15
23
  * - `closed` — the session has been torn down
16
24
  */
17
- export type VoiceConnectionState = 'connecting' | 'listening' | 'speaking' | 'thinking' | 'error' | 'closed';
25
+ export type RealtimeConnectionState = 'connecting' | 'listening' | 'speaking' | 'thinking' | 'error' | 'closed';
18
26
  /** A single caption line (one side of the conversation) shown in the live-captions list. */
19
- export interface VoiceCaption {
27
+ export interface RealtimeCaption {
20
28
  Role: 'User' | 'Assistant';
21
29
  Text: string;
22
30
  }
@@ -25,7 +33,7 @@ export interface VoiceCaption {
25
33
  * These originate server-side during an `invoke-target-agent` delegation (e.g. while Sage works) and let a
26
34
  * future overlay render a "working" card while the realtime model narrates the same progress aloud.
27
35
  */
28
- export interface VoiceDelegationProgress {
36
+ export interface RealtimeDelegationProgress {
29
37
  /** The `invoke-target-agent` call this progress belongs to. */
30
38
  CallID: string;
31
39
  /** The delegation phase: `prompt_execution` | `action_execution` | `subagent_execution` | `decision_processing`. */
@@ -40,7 +48,7 @@ export interface VoiceDelegationProgress {
40
48
  * when the delegation finishes so the overlay can flip the "working" card into a result card with real
41
49
  * content + provenance.
42
50
  */
43
- export interface VoiceDelegationResult {
51
+ export interface RealtimeDelegationResult {
44
52
  /** The `invoke-target-agent` call this result belongs to. */
45
53
  CallID: string;
46
54
  /** Whether the delegated work succeeded. */
@@ -87,7 +95,7 @@ export interface RealtimeChannelFocusEvent {
87
95
  * decision they are NOT captions and NOT persisted as ConversationDetails — they exist
88
96
  * only as a live note in the overlay, replaced by each newer narration.
89
97
  */
90
- export interface VoiceDelegationNarration {
98
+ export interface RealtimeDelegationNarration {
91
99
  /** The narration transcript text. */
92
100
  Text: string;
93
101
  }
@@ -108,7 +116,7 @@ export interface VoiceDelegationNarration {
108
116
  * bakes the companion instructions + tool set into `SessionConfigJson`, which the client
109
117
  * driver applies verbatim.
110
118
  *
111
- * Lifecycle: {@link StartVoiceSession} → live duplex → {@link EndVoiceSession}.
119
+ * Lifecycle: {@link StartRealtimeSession} → live duplex → {@link EndRealtimeSession}.
112
120
  */
113
121
  export declare class RealtimeSessionService {
114
122
  private _connectionState$;
@@ -126,24 +134,24 @@ export declare class RealtimeSessionService {
126
134
  private _sessionEnded$;
127
135
  private _channelActivity$;
128
136
  /** Current connection / turn state. */
129
- readonly ConnectionState$: Observable<VoiceConnectionState>;
137
+ readonly ConnectionState$: Observable<RealtimeConnectionState>;
130
138
  /** Live captions for both sides of the conversation. */
131
- readonly Captions$: Observable<VoiceCaption[]>;
139
+ readonly Captions$: Observable<RealtimeCaption[]>;
132
140
  /** True while a session is open (mic button active, overlay shown). */
133
141
  readonly Active$: Observable<boolean>;
134
142
  /**
135
143
  * Progress updates from a delegated agent run (e.g. Sage) while the realtime model waits on it.
136
144
  * The future overlay subscribes to render a "working" card; the model also narrates these aloud.
137
145
  */
138
- readonly DelegationProgress$: Observable<VoiceDelegationProgress>;
146
+ readonly DelegationProgress$: Observable<RealtimeDelegationProgress>;
139
147
  /** Terminal result of a delegation, so the overlay can complete the working card with real content. */
140
- readonly DelegationResult$: Observable<VoiceDelegationResult>;
148
+ readonly DelegationResult$: Observable<RealtimeDelegationResult>;
141
149
  /**
142
- * EPHEMERAL spoken progress narrations (see {@link VoiceDelegationNarration}). These are
150
+ * EPHEMERAL spoken progress narrations (see {@link RealtimeDelegationNarration}). These are
143
151
  * deliberately kept OUT of {@link Captions$} and never relayed/persisted — the overlay
144
152
  * renders them as a transient "live note" near the active working card.
145
153
  */
146
- readonly DelegationNarration$: Observable<VoiceDelegationNarration>;
154
+ readonly DelegationNarration$: Observable<RealtimeDelegationNarration>;
147
155
  /** Display name of the agent the active session fronts (set at session start). */
148
156
  readonly AgentName$: Observable<string>;
149
157
  /**
@@ -191,7 +199,7 @@ export declare class RealtimeSessionService {
191
199
  * Fired EXACTLY ONCE per session as teardown begins, with the prior
192
200
  * `agentSessionId` (so subscribers can correlate against `SessionStarted$`'s
193
201
  * sessionId) and the client-distinguishable reason — `'explicit'` when the
194
- * user called `EndVoiceSession`, `'error'` when teardown ran from a catch
202
+ * user called `EndRealtimeSession`, `'error'` when teardown ran from a catch
195
203
  * block. Server-side close paths (janitor, shutdown) do NOT propagate here —
196
204
  * they happen out-of-process and have no client push channel today.
197
205
  */
@@ -209,6 +217,14 @@ export declare class RealtimeSessionService {
209
217
  readonly ChannelActivity$: Observable<BaseRealtimeChannelClient>;
210
218
  /** Synchronous access to the session's active interactive-channel plugins. */
211
219
  get ActiveChannels(): readonly BaseRealtimeChannelClient[];
220
+ /**
221
+ * The `ChannelName`s the agent has used (acted on) at least once this session. The overlay
222
+ * uses this to register a channel's surface tab only after it has come into play. A fresh
223
+ * Set snapshot so callers can't mutate the service's tracking.
224
+ */
225
+ get UsedChannelNames(): ReadonlySet<string>;
226
+ /** Whether the agent has used (acted on) the named channel at least once this session. */
227
+ HasChannelBeenUsed(channelName: string): boolean;
212
228
  /** Synchronous access to the display name of the agent the active session fronts. */
213
229
  get CurrentAgentName(): string;
214
230
  /**
@@ -243,12 +259,66 @@ export declare class RealtimeSessionService {
243
259
  /** The mic capture stream — acquired here (permission UX) and handed to the client. */
244
260
  private localStream;
245
261
  private agentSessionId;
262
+ /**
263
+ * The application the active session runs in (sources the server-side app config cascade +
264
+ * RelevantAgents → allowed-agent union, and the default-agent chain). `null` when no app context
265
+ * was supplied. Set at {@link StartRealtimeSession}; sent to the mint mutation.
266
+ */
267
+ private applicationId;
268
+ /**
269
+ * The live app-context snapshot (where the user is, what they see, the capability manifest),
270
+ * pushed by the host (Explorer) at session start and on subsequent changes via
271
+ * {@link UpdateAppContext}. The headless {@link import('../components/realtime/channels/client-context-channel').ClientContextChannel}
272
+ * subscribes to {@link AppContext$} and streams deltas to the model via `SendContextNote`.
273
+ */
274
+ private readonly _appContext$;
275
+ /** Observable of the live app-context snapshot (see {@link _appContext$}). */
276
+ readonly AppContext$: Observable<AppContextSnapshot | null>;
277
+ /**
278
+ * Push an updated app-context snapshot mid-session (the continuous-streaming half of client-context
279
+ * delivery). The host (Explorer) calls this when the user navigates / the active surface's state or
280
+ * capability manifest changes; the ClientContextChannel turns the delta into a `SendContextNote`.
281
+ * No-op semantics when no session is live — the channel simply re-reads on next start.
282
+ *
283
+ * @param snapshot The latest app-context snapshot (or null to clear).
284
+ */
285
+ UpdateAppContext(snapshot: AppContextSnapshot | null): void;
246
286
  /**
247
287
  * The DB-driven narration instruction template (server-resolved at session start, containing a
248
288
  * `{{ progressMessage }}` placeholder). `null` when the deployment hasn't synced the narration
249
289
  * prompt — {@link buildNarrationInstructions} then falls back to the built-in wording.
250
290
  */
251
291
  private narrationTemplate;
292
+ /**
293
+ * The active session's audio recorder (mic + agent mix), or `null` when the user didn't
294
+ * consent or the browser can't record. Created after the client connects; stopped + uploaded
295
+ * at teardown.
296
+ */
297
+ private recorder;
298
+ /** ISO timestamp of when recording started — sent to the server on session start. */
299
+ private recordingStartedAtIso;
300
+ /** Interval that flushes ~15s crash-recovery shards to the server during a recording. */
301
+ private segmentTimer;
302
+ /** 0-based index of the next recording shard to upload. */
303
+ private segmentIndex;
304
+ /** How often crash-recovery shards are flushed during a recording. */
305
+ private static readonly SegmentFlushMs;
306
+ /**
307
+ * Recording-relative ms offset at which the IN-FLIGHT (not-yet-finalized) turn's audio
308
+ * actually BEGAN — captured the moment that turn's audio/text starts flowing (its first
309
+ * interim transcript), NOT inherited from the previous turn's end. `null` before the first
310
+ * turn / between turns (until the next turn's audio starts). Sent as `utteranceStartMs` on
311
+ * the turn's final transcript so per-turn timing lines up with the recording even when a
312
+ * tool-call / silence gap sits between turns (the inherit-previous-end model mis-stamped
313
+ * the post-gap turn at the pre-gap offset). See {@link markTurnAudioStart}.
314
+ */
315
+ private currentTurnStartMs;
316
+ /**
317
+ * Per-turn guard for {@link markTurnAudioStart}: `true` once the in-flight turn's audio-start
318
+ * offset has been captured, so mid-turn interim deltas don't overwrite it. Reset to `false`
319
+ * at each finalization so the NEXT turn re-stamps from where ITS audio begins.
320
+ */
321
+ private turnAudioStartCaptured;
252
322
  /** First spoken update fires no earlier than this long after delegated work starts. */
253
323
  private static readonly FirstNarrationDelayMs;
254
324
  /** Minimum gap between SUBSEQUENT spoken updates (the 7–10s band; floods aggregate). */
@@ -318,6 +388,14 @@ export declare class RealtimeSessionService {
318
388
  * the final save still lands on the just-closed session.
319
389
  */
320
390
  private pendingChannelSaves;
391
+ /**
392
+ * `ChannelName`s the agent has ACTED ON at least once this session (the channel's first
393
+ * tool call routed to its local executor). The overlay reads this to decide which channel
394
+ * surface tabs to register: a channel earns its tab only once it's been used (the
395
+ * whiteboard is the sole exception — it tabs immediately, since a user may draw first).
396
+ * Reset at session start via {@link resetState}.
397
+ */
398
+ private usedChannelNames;
321
399
  private _provider;
322
400
  /**
323
401
  * Metadata provider used for the GraphQL relay mutations. Falls back to the
@@ -356,13 +434,21 @@ export declare class RealtimeSessionService {
356
434
  * authorization on any overrides — hosts only populate this from authorization-gated
357
435
  * pickers, and never synthesize overrides beyond what the user explicitly chose.
358
436
  * Omit/`null` for the server's defaults (today's behavior).
437
+ * @param recordingConsent Optional EXPLICIT "record this call" consent for THIS session. When
438
+ * `true`, the browser records a mic + agent-audio mix and uploads it at session end. When
439
+ * omitted/`null`, the per-user persisted preference (`mj.realtimeVoice.recordingConsent.v1`
440
+ * via {@link UserInfoEngine}) is read as the default. `false` never records.
441
+ * @param mediaCollectionId Optional per-session media-kit override (`MJ: Collections.ID`). When set,
442
+ * the server-side Media channel resolves THIS collection as the agent's media kit for the session,
443
+ * taking precedence over the agent's `DefaultMediaCollectionID`. The server UUID-validates it
444
+ * (malformed ⇒ ignored, the agent default applies). Omit/`null` to use the agent default kit.
359
445
  */
360
- StartVoiceSession(targetAgentId: string, conversationId?: string | null, lastSessionId?: string | null, agentName?: string | null, preferredModelId?: string | null, clientTools?: RealtimeToolDefinition[] | null, coAgentId?: string | null, configOverridesJson?: string | null): Promise<void>;
446
+ StartRealtimeSession(targetAgentId: string, conversationId?: string | null, lastSessionId?: string | null, agentName?: string | null, preferredModelId?: string | null, clientTools?: RealtimeToolDefinition[] | null, coAgentId?: string | null, configOverridesJson?: string | null, recordingConsent?: boolean | null, mediaCollectionId?: string | null, applicationId?: string | null, appContext?: AppContextSnapshot | null): Promise<void>;
361
447
  /**
362
448
  * End the active session: stop the mic, tear down the provider connection, and close
363
449
  * the server-side agent session. Safe to call when no session is active.
364
450
  */
365
- EndVoiceSession(): Promise<void>;
451
+ EndRealtimeSession(): Promise<void>;
366
452
  /**
367
453
  * Inject a typed message into the live session as a user turn.
368
454
  *
@@ -402,6 +488,44 @@ export declare class RealtimeSessionService {
402
488
  * a cheap analyser read, never provider traffic.
403
489
  */
404
490
  GetAudioActivity(): RealtimeAudioActivity | null;
491
+ /**
492
+ * Reads the per-user recording-consent preference from `MJ: User Settings` (via
493
+ * {@link UserInfoEngine}'s synchronous cache). Defensive: any failure resolves to `false`
494
+ * (don't record) so a settings hiccup can never opt a user into recording.
495
+ */
496
+ private readPersistedRecordingConsent;
497
+ /**
498
+ * Starts the browser-side recorder (mic + agent-audio mix). Best-effort — any failure is
499
+ * contained so it never disturbs the live call; an unsupported browser simply records
500
+ * nothing (the recorder disables itself).
501
+ */
502
+ private startRecording;
503
+ /** Begins flushing ~15s crash-recovery shards to the server for the duration of the recording. */
504
+ private startSegmentFlushing;
505
+ /** Stops the periodic crash-recovery shard flush. */
506
+ private stopSegmentFlushing;
507
+ /**
508
+ * Uploads the chunks captured since the last flush as one crash-recovery shard (durability only;
509
+ * the canonical file is still the full upload at teardown). Best-effort — never disturbs the call.
510
+ */
511
+ private flushRecordingSegment;
512
+ /**
513
+ * Stops the active recorder and uploads the captured audio via `UploadRealtimeRecording`.
514
+ * Fully best-effort and wrapped in try/catch — recording upload must NEVER block teardown.
515
+ * No-op when nothing was recorded or there's no session id to attach the file to.
516
+ */
517
+ private stopAndUploadRecording;
518
+ /**
519
+ * Runs the `UploadRealtimeRecording` mutation; failures are logged, never thrown. Sends the
520
+ * capture-time waveform `peaks` (max-abs per bucket, normalized 0..1) so the server can persist a
521
+ * `peaks.json` sidecar for fast waveform rendering without re-decoding the audio.
522
+ */
523
+ private uploadRecording;
524
+ /**
525
+ * Encodes a {@link Blob} as a base64 string (the data: prefix stripped) via {@link FileReader}.
526
+ * Resolves `''` on any read failure so the upload path can bail cleanly.
527
+ */
528
+ private blobToBase64;
405
529
  /**
406
530
  * Resolves, instantiates and initializes the session's interactive-channel plugins from
407
531
  * the `MJ: AI Agent Channels` registry, publishes them on {@link ActiveChannels$}, and
@@ -441,6 +565,35 @@ export declare class RealtimeSessionService {
441
565
  private initializeChannel;
442
566
  /** Builds the host-services context one channel plugin sees (its only line to the session). */
443
567
  private buildChannelContext;
568
+ /**
569
+ * Host registry of surface CLIENT TOOLS (Name → handler), fed by the host (Explorer) from the
570
+ * active surface's `SetAgentClientTools`. The headless ClientContextChannel's `ContextTool` proxy
571
+ * executes against this via {@link executeAppClientTool}. Keys are lower-cased for case-insensitive
572
+ * model-supplied action names.
573
+ */
574
+ private readonly appClientToolHandlers;
575
+ /**
576
+ * Replaces the set of host-registered surface client tools the realtime ContextTool can execute.
577
+ * The host calls this at session start and whenever the active surface's tool set changes (the
578
+ * continuous-capability half of client-context delivery). Passing `[]` clears them.
579
+ *
580
+ * @param tools The current surface client tools (name + handler). Descriptions/schemas ride the
581
+ * app-context manifest separately; only the executable handler is needed here.
582
+ */
583
+ RegisterAppClientTools(tools: ReadonlyArray<{
584
+ Name: string;
585
+ Handler: (params: Record<string, unknown>) => Promise<unknown> | unknown;
586
+ }>): void;
587
+ /**
588
+ * Executes a host-registered surface client tool by name (the {@link RealtimeChannelContext.ExecuteClientTool}
589
+ * implementation). Tolerant: an unknown tool or a thrown handler resolves to a structured
590
+ * `Success: false` result the channel narrates — never throws.
591
+ *
592
+ * @param name The tool name (the model's `action`).
593
+ * @param params The tool parameters.
594
+ * @returns A structured result for the channel to serialize back to the model.
595
+ */
596
+ private executeAppClientTool;
444
597
  /**
445
598
  * Runs a channel-specific GraphQL operation through the live session's provider (the
446
599
  * {@link RealtimeChannelContext.ExecuteServerAction} implementation). Best-effort: any
@@ -504,7 +657,7 @@ export declare class RealtimeSessionService {
504
657
  /** Maps a client state event onto the UI connection state. */
505
658
  private onClientStateChange;
506
659
  /**
507
- * Translates {@link RealtimeClientState} into {@link VoiceConnectionState}. `'connected'`
660
+ * Translates {@link RealtimeClientState} into {@link RealtimeConnectionState}. `'connected'`
508
661
  * is suppressed (the UI stays 'connecting' until the control channel opens → 'listening'),
509
662
  * and `'closed'` never overwrites a terminal 'error' the service itself recorded.
510
663
  */
@@ -512,13 +665,37 @@ export declare class RealtimeSessionService {
512
665
  /** True when the live control channel is usable (open and not torn down / failed). */
513
666
  private isSessionLive;
514
667
  /**
515
- * Applies transcript policy to client transcript events. Interim deltas are ignored
516
- * (the client already drives the speaking state). Final NORMAL assistant turns become
668
+ * Applies transcript policy to client transcript events. Interim deltas don't become
669
+ * captions/turns (the client already drives the speaking state) but DO mark this turn's
670
+ * audio-start offset against the recording (the first interim fires as the audio/text
671
+ * starts flowing — see {@link markTurnAudioStart}). Final NORMAL assistant turns become
517
672
  * captions + persisted transcripts; final NARRATION turns are EPHEMERAL by product
518
673
  * decision — emitted on {@link DelegationNarration$} only, never a caption, never
519
674
  * relayed/persisted. User turns ride the caption + relay path.
520
675
  */
521
676
  private onClientTranscript;
677
+ /**
678
+ * Stamps the recording-relative offset at which the IN-FLIGHT turn's audio actually began,
679
+ * the moment that turn's audio/text first starts flowing (its FIRST interim transcript).
680
+ *
681
+ * This is the fix for transcript cues drifting out of sync with the audio when a tool-call /
682
+ * silence gap sits between turns: the old model inherited the next turn's start from the
683
+ * PREVIOUS turn's end (assumes contiguous turns), so a post-gap turn's cue pointed ~gap-length
684
+ * too early. Capturing the start where the audio truly begins keeps the cue aligned.
685
+ *
686
+ * Guards:
687
+ * - only when recording ({@link recorder} present),
688
+ * - only ONCE per turn ({@link turnAudioStartCaptured}) so mid-turn interim deltas don't move it,
689
+ * - NORMAL turns only — NARRATION interims are ephemeral and never persisted, so they must not
690
+ * claim the next real turn's start slot.
691
+ *
692
+ * Works for any role whose driver surfaces interim deltas (all drivers for the assistant; the
693
+ * relevant case here — the post-tool-gap assistant answer — and user-interim drivers like
694
+ * Gemini/AssemblyAI). For final-only user turns (OpenAI/xAI/ElevenLabs) no interim arrives, so
695
+ * {@link relayTranscript} falls back to the seeded/prior start — the gap case that drifts is the
696
+ * assistant answer, which always has interims.
697
+ */
698
+ private markTurnAudioStart;
522
699
  /**
523
700
  * Replaces the LAST caption of `role` in place (correction semantics); falls back to a
524
701
  * plain append when no such caption exists yet (e.g. the superseded turn predates this
@@ -548,8 +725,8 @@ export declare class RealtimeSessionService {
548
725
  * {@link ParseDelegationResultJson}; if it isn't JSON, surfaces the raw string. Only delegation
549
726
  * cards (created from progress events) react — non-delegation tool results have no card and are
550
727
  * harmlessly ignored downstream. The `runId` (the delegated `MJ: AI Agent Runs` record) rides
551
- * along as {@link VoiceDelegationResult.RunID} for the overlay's dev links, and any `artifacts`
552
- * ride along as {@link VoiceDelegationResult.Artifacts} for the surface panel's artifact tabs.
728
+ * along as {@link RealtimeDelegationResult.RunID} for the overlay's dev links, and any `artifacts`
729
+ * ride along as {@link RealtimeDelegationResult.Artifacts} for the surface panel's artifact tabs.
553
730
  */
554
731
  private emitDelegationResult;
555
732
  /**
@@ -605,6 +782,19 @@ export declare class RealtimeSessionService {
605
782
  SaveChannelState(channelName: string, stateJson: string, agentSessionId?: string | null): Promise<boolean>;
606
783
  /**
607
784
  * Relays a final transcript turn to MJ via `RelayRealtimeTranscript`.
785
+ *
786
+ * When the session is being recorded, per-turn timing rides along: `utteranceEndMs` is the
787
+ * recording-relative offset at finalization, and `utteranceStartMs` is the offset captured by
788
+ * {@link markTurnAudioStart} when THIS turn's audio actually began (its first interim) — NOT
789
+ * inherited from the previous turn's end. That distinction is the timing fix: when a tool-call
790
+ * / silence gap sits between turns, the post-gap turn's audio starts much later, so inheriting
791
+ * the prior turn's end stamped the cue ~gap-length too early. Both are omitted (left `null`)
792
+ * when the session isn't being recorded.
793
+ *
794
+ * A correction (`replacesPrevious`) doesn't open a new turn, so it carries no start and doesn't
795
+ * reset the per-turn start guard. After a normal finalization the guard is cleared so the NEXT
796
+ * turn re-stamps its start from where ITS audio begins.
797
+ *
608
798
  * @param replacesPrevious CORRECTION semantics: the server updates the session's most
609
799
  * recent persisted turn of this role IN PLACE instead of appending (e.g. ElevenLabs'
610
800
  * post-barge-in `agent_response_correction`).
@@ -1 +1 @@
1
- {"version":3,"file":"realtime-session.service.d.ts","sourceRoot":"","sources":["../../../src/lib/services/realtime-session.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,UAAU,EAAyB,MAAM,MAAM,CAAC;AAC1E,OAAO,EAAY,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAInE,OAAO,EAAsD,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAChH,OAAO,EAOL,qBAAqB,EAMtB,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAA6B,wBAAwB,EAAE,MAAM,4BAA4B,CAAC;AACjG,OAAO,EAAE,yBAAyB,EAA0B,MAAM,8DAA8D,CAAC;;AAejI;;;;;;;;GAQG;AACH,MAAM,MAAM,oBAAoB,GAC5B,YAAY,GACZ,WAAW,GACX,UAAU,GAC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