@alxxsck/ai-assistant 2.26.0 → 3.1.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 (61) hide show
  1. package/README.md +20 -2
  2. package/dist/{Avatar-Cr3PsHzw.js → Avatar-B9TOQAF_.js} +19082 -18842
  3. package/dist/ChatWidgetContent-BuhVlKYA.js +5376 -0
  4. package/dist/api/audio.api.d.ts +1 -1
  5. package/dist/api/messages.api.types.d.ts +2 -1
  6. package/dist/avatar/AnimationManager.d.ts +7 -3
  7. package/dist/avatar/Avatar.d.ts +20 -3
  8. package/dist/avatar/avatarMeshes.d.ts +8 -0
  9. package/dist/avatar/loaders.d.ts +16 -0
  10. package/dist/bridge-ai-chat-widget.es.js +1 -1
  11. package/dist/constants.d.ts +1 -0
  12. package/dist/context/ChatWidgetContext.d.ts +3 -2
  13. package/dist/domain/command/CommandRuntime.d.ts +9 -2
  14. package/dist/domain/command/UiCommandService.d.ts +4 -2
  15. package/dist/domain/command/command.types.d.ts +8 -0
  16. package/dist/domain/message/cable/CableContext.d.ts +1 -0
  17. package/dist/domain/message/message.store.d.ts +7 -0
  18. package/dist/domain/scenario-interaction/scenario-interaction.types.d.ts +3 -0
  19. package/dist/domain/speech/SpeechPlayer.d.ts +2 -0
  20. package/dist/domain/ui/widget-geometry.d.ts +7 -5
  21. package/dist/domain/voice/media/ReliableVoiceUplink.d.ts +4 -0
  22. package/dist/domain/voice/voice-audio-meter.d.ts +12 -0
  23. package/dist/domain/voice/voice-input-spectrum.d.ts +17 -0
  24. package/dist/domain/voice/voice.store.d.ts +5 -1
  25. package/dist/i18n/messages.d.ts +6 -2
  26. package/dist/index-DCsPGgIk.js +2891 -0
  27. package/dist/index.d.ts +2 -1
  28. package/dist/index.types.d.ts +4 -2
  29. package/dist/inter-cyrillic-wght-italic.woff2 +0 -0
  30. package/dist/inter-cyrillic-wght-normal.woff2 +0 -0
  31. package/dist/inter-latin-ext-wght-italic.woff2 +0 -0
  32. package/dist/inter-latin-ext-wght-normal.woff2 +0 -0
  33. package/dist/inter-latin-wght-italic.woff2 +0 -0
  34. package/dist/inter-latin-wght-normal.woff2 +0 -0
  35. package/dist/{mount-DCjHLj_e.js → mount-BpvW4tbc.js} +9631 -5577
  36. package/dist/roboto-cyrillic-400-normal.woff2 +0 -0
  37. package/dist/roboto-cyrillic-700-normal.woff2 +0 -0
  38. package/dist/roboto-latin-400-normal.woff2 +0 -0
  39. package/dist/roboto-latin-700-normal.woff2 +0 -0
  40. package/dist/roboto-latin-ext-400-normal.woff2 +0 -0
  41. package/dist/roboto-latin-ext-700-normal.woff2 +0 -0
  42. package/dist/ui/components/ChatInlineProgressStatus.d.ts +5 -0
  43. package/dist/ui/components/ChatListItem.d.ts +4 -1
  44. package/dist/ui/components/ChatSurfaceFrameContext.d.ts +6 -0
  45. package/dist/ui/components/ChatTopControls.d.ts +5 -5
  46. package/dist/ui/components/ChatUiActionProgress.d.ts +1 -0
  47. package/dist/ui/components/ChatVoiceMode.d.ts +5 -1
  48. package/dist/ui/components/ChatWidgetFrame.d.ts +5 -3
  49. package/dist/ui/components/VoiceComposer.d.ts +23 -0
  50. package/dist/ui/components/voice-waveform.d.ts +20 -0
  51. package/dist/ui/error-messages.d.ts +1 -0
  52. package/dist/ui/responder-visual-state.d.ts +7 -0
  53. package/dist/widget-fonts-CFulYNmT.js +16 -0
  54. package/dist/widget-fonts.d.ts +1 -0
  55. package/package.json +6 -2
  56. package/dist/ChatWidgetContent-DJ2Y9kKV.js +0 -8045
  57. package/dist/avatar/consolidateMaterialGroups.d.ts +0 -2
  58. package/dist/index-D01wjcEK.js +0 -2809
  59. package/dist/ui/chat-composer-layout.d.ts +0 -1
  60. package/dist/ui/components/overlays/ChatBlurOverlayTop.d.ts +0 -1
  61. package/dist/ui/components/overlays/ChatDarkOverlay.d.ts +0 -1
package/README.md CHANGED
@@ -241,13 +241,18 @@ attachments: {
241
241
 
242
242
  ## Host handlers
243
243
 
244
- `handlers` is optional and is the only command integration surface. Use it when a
244
+ `handlers` is optional and is the only command execution surface. Use it when a
245
245
  backend command must navigate the product, open a product modal, or customize an
246
- element highlight:
246
+ element highlight. `uiActionPolicies` separately controls trusted presentation
247
+ behavior:
247
248
 
248
249
  ```ts
249
250
  const widget = new ChatWidgetInstance({
250
251
  customerInteractionSession: session,
252
+ uiActionPolicies: {
253
+ account_page: { mobileDisposition: "collapseOnSuccess" },
254
+ featured_game_page: { mobileDisposition: "immersive" },
255
+ },
251
256
  handlers: {
252
257
  openPage: ({ route }) => productRouter.push(route),
253
258
  openModal: ({ modalName }) => productModals.open(modalName),
@@ -267,6 +272,19 @@ const widget = new ChatWidgetInstance({
267
272
  });
268
273
  ```
269
274
 
275
+ `uiActionPolicies` is trusted host configuration keyed by canonical action
276
+ code. `keep` leaves the mobile chat open; `collapseOnSuccess` and `immersive`
277
+ collapse only the chat surface after the handler resolves. A
278
+ `mobileDisposition` value in command payload is ignored. Unregistered page and
279
+ modal actions default to `collapseOnSuccess`.
280
+
281
+ Navigation and modal handlers should resolve only after the destination is
282
+ ready to own focus, or reject on failure. A mobile handoff never returns focus
283
+ to Lola's launcher; it preserves host focus while manual collapse still returns
284
+ focus to the launcher. `immersive` currently shares the safe surface-collapse
285
+ semantics of `collapseOnSuccess`; hiding all assistant chrome is reserved until
286
+ the host exposes an explicit destination-exit lifecycle.
287
+
270
288
  `reportActivation()` is the authoritative signal that the product accepted the
271
289
  user activation. Call it synchronously from the product-owned action handler,
272
290
  before navigation can unmount the widget. It records the activation, not the