@8wave/ai-elements 0.121.0-beta.41 → 0.121.0-beta.43

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 (120) hide show
  1. package/dist/_chunks/{PkChatbotFilePreview-CpFXWpU7.js → PkChatbotFilePreview-DxpEIFOG.js} +2 -2
  2. package/dist/_chunks/{PkChatbotFilePreview-CpFXWpU7.js.map → PkChatbotFilePreview-DxpEIFOG.js.map} +1 -1
  3. package/dist/_chunks/{PkHeldImage-DvHKY7Vh.js → PkHeldImage-CztNY8OZ.js} +2 -2
  4. package/dist/_chunks/{PkHeldImage-DvHKY7Vh.js.map → PkHeldImage-CztNY8OZ.js.map} +1 -1
  5. package/dist/_chunks/{PkLazyImg-BBFsS16D.js → PkLazyImg-BqbuNQgf.js} +2 -2
  6. package/dist/_chunks/{PkLazyImg-BBFsS16D.js.map → PkLazyImg-BqbuNQgf.js.map} +1 -1
  7. package/dist/_chunks/{PkStreamingMarkdown-D2aqCD0I.js → PkStreamingMarkdown-BlTH2AJX.js} +2 -2
  8. package/dist/_chunks/{PkStreamingMarkdown-D2aqCD0I.js.map → PkStreamingMarkdown-BlTH2AJX.js.map} +1 -1
  9. package/dist/_chunks/{PkToolEditSpreadsheet-83ZdmGeA.js → PkToolEditSpreadsheet-CDxglslA.js} +2 -2
  10. package/dist/_chunks/{PkToolEditSpreadsheet-83ZdmGeA.js.map → PkToolEditSpreadsheet-CDxglslA.js.map} +1 -1
  11. package/dist/_chunks/{PkToolRequestGeolocation-1cOmCG8P.js → PkToolRequestGeolocation-CxMAoAv6.js} +2 -2
  12. package/dist/_chunks/{PkToolRequestGeolocation-1cOmCG8P.js.map → PkToolRequestGeolocation-CxMAoAv6.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CCu3FCyo.js → PkToolRequestOAuthConnection-DU1Y2odZ.js} +3 -3
  14. package/dist/_chunks/{PkToolRequestOAuthConnection-CCu3FCyo.js.map → PkToolRequestOAuthConnection-DU1Y2odZ.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShareDocument-BhT59J9o.js → PkToolShareDocument-YrPrexhS.js} +5 -5
  16. package/dist/_chunks/{PkToolShareDocument-BhT59J9o.js.map → PkToolShareDocument-YrPrexhS.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowArtifact-CiYkZkpe.js → PkToolShowArtifact-jQeIv65U.js} +4 -4
  18. package/dist/_chunks/{PkToolShowArtifact-CiYkZkpe.js.map → PkToolShowArtifact-jQeIv65U.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowCalendarEvent-Dzh4JURs.js → PkToolShowCalendarEvent-CAN5-qnM.js} +4 -4
  20. package/dist/_chunks/{PkToolShowCalendarEvent-Dzh4JURs.js.map → PkToolShowCalendarEvent-CAN5-qnM.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowComparison-CFHrXnaB.js → PkToolShowComparison-DGxHYpl3.js} +4 -4
  22. package/dist/_chunks/{PkToolShowComparison-CFHrXnaB.js.map → PkToolShowComparison-DGxHYpl3.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowContactForm-D7TEzrYe.js → PkToolShowContactForm-D7wg3Jlu.js} +5 -5
  24. package/dist/_chunks/{PkToolShowContactForm-D7TEzrYe.js.map → PkToolShowContactForm-D7wg3Jlu.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowDiagram-DGnIuRst.js → PkToolShowDiagram-BBs1rh96.js} +4 -4
  26. package/dist/_chunks/{PkToolShowDiagram-DGnIuRst.js.map → PkToolShowDiagram-BBs1rh96.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowEmail-C3jped-R.js → PkToolShowEmail-CeiSo-zx.js} +4 -4
  28. package/dist/_chunks/{PkToolShowEmail-C3jped-R.js.map → PkToolShowEmail-CeiSo-zx.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowForm-CSh4Q6sl.js → PkToolShowForm-BMVgXxzl.js} +4 -4
  30. package/dist/_chunks/{PkToolShowForm-CSh4Q6sl.js.map → PkToolShowForm-BMVgXxzl.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowImageGallery-CQEaEfYE.js → PkToolShowImageGallery-Ba0CfKt6.js} +3 -3
  32. package/dist/_chunks/{PkToolShowImageGallery-CQEaEfYE.js.map → PkToolShowImageGallery-Ba0CfKt6.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowLocation-gyMiVjhi.js → PkToolShowLocation-Cp95-u2H.js} +4 -4
  34. package/dist/_chunks/{PkToolShowLocation-gyMiVjhi.js.map → PkToolShowLocation-Cp95-u2H.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowMessage-wGPPnOAM.js → PkToolShowMessage-Bn8O_W0D.js} +4 -4
  36. package/dist/_chunks/{PkToolShowMessage-wGPPnOAM.js.map → PkToolShowMessage-Bn8O_W0D.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowProductList-BCmULLct.js → PkToolShowProductList-DbZfUUWe.js} +4 -4
  38. package/dist/_chunks/{PkToolShowProductList-BCmULLct.js.map → PkToolShowProductList-DbZfUUWe.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowQrCode-CeZsvZvb.js → PkToolShowQrCode-D_9_c-Ws.js} +4 -4
  40. package/dist/_chunks/{PkToolShowQrCode-CeZsvZvb.js.map → PkToolShowQrCode-D_9_c-Ws.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowSources-R9KWsfTQ.js → PkToolShowSources-Dkt4IId2.js} +4 -4
  42. package/dist/_chunks/{PkToolShowSources-R9KWsfTQ.js.map → PkToolShowSources-Dkt4IId2.js.map} +1 -1
  43. package/dist/_chunks/{PkToolShowSuggestedReply-DYZz9aV2.js → PkToolShowSuggestedReply-BF2sT3B1.js} +2 -2
  44. package/dist/_chunks/{PkToolShowSuggestedReply-DYZz9aV2.js.map → PkToolShowSuggestedReply-BF2sT3B1.js.map} +1 -1
  45. package/dist/_chunks/{PkToolShowVideo-C_9SZtZM.js → PkToolShowVideo-l8JoSKCj.js} +3 -3
  46. package/dist/_chunks/{PkToolShowVideo-C_9SZtZM.js.map → PkToolShowVideo-l8JoSKCj.js.map} +1 -1
  47. package/dist/_chunks/{PkToolShowWeather-BgS4_SWb.js → PkToolShowWeather-DifqBB7o.js} +2 -2
  48. package/dist/_chunks/{PkToolShowWeather-BgS4_SWb.js.map → PkToolShowWeather-DifqBB7o.js.map} +1 -1
  49. package/dist/_chunks/{PkToolShowWebPages-DwRYfle9.js → PkToolShowWebPages-DtcEmrYt.js} +4 -4
  50. package/dist/_chunks/{PkToolShowWebPages-DwRYfle9.js.map → PkToolShowWebPages-DtcEmrYt.js.map} +1 -1
  51. package/dist/_chunks/{VvButtonLocalized-B6igS2e0.js → VvButtonLocalized-D7K9ZslZ.js} +2 -2
  52. package/dist/_chunks/{VvButtonLocalized-B6igS2e0.js.map → VvButtonLocalized-D7K9ZslZ.js.map} +1 -1
  53. package/dist/_chunks/{VvCheckboxGroup.es-OXhptnPU.js → VvCheckboxGroup.es-BebSMBKU.js} +2 -2
  54. package/dist/_chunks/{VvCheckboxGroup.es-OXhptnPU.js.map → VvCheckboxGroup.es-BebSMBKU.js.map} +1 -1
  55. package/dist/_chunks/{VvCombobox.es-SLzX9VnX.js → VvCombobox.es-BfiDcdcw.js} +481 -481
  56. package/dist/_chunks/{VvCombobox.es-SLzX9VnX.js.map → VvCombobox.es-BfiDcdcw.js.map} +1 -1
  57. package/dist/_chunks/{VvInputText.es-CETcNKlr.js → VvInputText.es-DllQ2Tue.js} +435 -435
  58. package/dist/_chunks/{VvInputText.es-CETcNKlr.js.map → VvInputText.es-DllQ2Tue.js.map} +1 -1
  59. package/dist/_chunks/{VvRadioGroup.es-UBZBB89A.js → VvRadioGroup.es-D6uqf6a1.js} +2 -2
  60. package/dist/_chunks/{VvRadioGroup.es-UBZBB89A.js.map → VvRadioGroup.es-D6uqf6a1.js.map} +1 -1
  61. package/dist/_chunks/{VvSelect.es-B_MShGnJ.js → VvSelect.es-BR5Ci5VC.js} +2 -2
  62. package/dist/_chunks/{VvSelect.es-B_MShGnJ.js.map → VvSelect.es-BR5Ci5VC.js.map} +1 -1
  63. package/dist/_chunks/{VvTextarea.es-Dm2Yq3WM.js → VvTextarea.es-Bwe5xjXl.js} +29 -29
  64. package/dist/_chunks/{VvTextarea.es-Dm2Yq3WM.js.map → VvTextarea.es-Bwe5xjXl.js.map} +1 -1
  65. package/dist/_chunks/{dist-Do_Ac5Yv.js → dist-CB7v_M5z.js} +52 -46
  66. package/dist/_chunks/dist-CB7v_M5z.js.map +1 -0
  67. package/dist/_chunks/{index.es-BTDKU45u.js → index.es-CKF2q-ww.js} +26 -26
  68. package/dist/_chunks/{index.es-BTDKU45u.js.map → index.es-CKF2q-ww.js.map} +1 -1
  69. package/dist/_chunks/{index.es-BZS9Cscn.js → index.es-CoWhnabo.js} +16 -16
  70. package/dist/_chunks/{index.es-BZS9Cscn.js.map → index.es-CoWhnabo.js.map} +1 -1
  71. package/dist/ai-elements.es.js +4171 -3913
  72. package/dist/ai-elements.es.js.map +1 -1
  73. package/dist-vue/PkChatbot.js +1 -1
  74. package/dist-vue/PkChatbotInput.js +1 -1
  75. package/dist-vue/PkChatbotQueuedMessages.d.ts +2 -0
  76. package/dist-vue/PkChatbotQueuedMessages.js +1 -0
  77. package/dist-vue/PkChatbotViewChat.js +1 -1
  78. package/dist-vue/PkChatbotViewConversations.js +1 -1
  79. package/dist-vue/PkChatbotViewFiles.js +1 -1
  80. package/dist-vue/PkChatbotViewProfile.js +1 -1
  81. package/dist-vue/_chunks/PkChatbot-CObEhs2T.js +279 -0
  82. package/dist-vue/_chunks/PkChatbot-CObEhs2T.js.map +1 -0
  83. package/dist-vue/_chunks/{PkChatbotInput-BJHtmPR-.js → PkChatbotInput-CuEoeb_M.js} +47 -22
  84. package/dist-vue/_chunks/PkChatbotInput-CuEoeb_M.js.map +1 -0
  85. package/dist-vue/_chunks/PkChatbotQueuedMessages-DlydYgwC.js +51 -0
  86. package/dist-vue/_chunks/PkChatbotQueuedMessages-DlydYgwC.js.map +1 -0
  87. package/dist-vue/_chunks/{PkChatbotViewChat-BI_PtT72.js → PkChatbotViewChat-BZb-U7Ju.js} +246 -224
  88. package/dist-vue/_chunks/PkChatbotViewChat-BZb-U7Ju.js.map +1 -0
  89. package/dist-vue/_chunks/PkChatbotViewConversations-CCPRWCKs.js +210 -0
  90. package/dist-vue/_chunks/PkChatbotViewConversations-CCPRWCKs.js.map +1 -0
  91. package/dist-vue/_chunks/{PkChatbotViewFiles-Cwm-JQMF.js → PkChatbotViewFiles-BgqksCn0.js} +2 -2
  92. package/dist-vue/_chunks/{PkChatbotViewFiles-Cwm-JQMF.js.map → PkChatbotViewFiles-BgqksCn0.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkChatbotViewProfile-C_GElIM3.js → PkChatbotViewProfile-B6tHWrqn.js} +2 -2
  94. package/dist-vue/_chunks/{PkChatbotViewProfile-C_GElIM3.js.map → PkChatbotViewProfile-B6tHWrqn.js.map} +1 -1
  95. package/dist-vue/_chunks/{createChatbotApiClient-DUz4dwzY.js → createChatbotApiClient-hcFAulTq.js} +12 -3
  96. package/dist-vue/_chunks/createChatbotApiClient-hcFAulTq.js.map +1 -0
  97. package/dist-vue/_chunks/{useChatbotStore-D7LcpA-6.js → useChatbotStore-Ct7G-voO.js} +953 -800
  98. package/dist-vue/_chunks/useChatbotStore-Ct7G-voO.js.map +1 -0
  99. package/dist-vue/api.js +1 -1
  100. package/dist-vue/composables.js +10 -6
  101. package/dist-vue/composables.js.map +1 -1
  102. package/dist-vue/index.js +94 -80
  103. package/dist-vue/index.js.map +1 -1
  104. package/dist-vue/locales.js +16 -2
  105. package/dist-vue/packages/components/src/chat/PkChatSidebarConversationItem.d.ts +2 -0
  106. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +17 -3
  107. package/dist-vue/packages/components/src/chat/PkChatbotQueuedMessages.d.ts +22 -0
  108. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +5 -1
  109. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +37 -2
  110. package/dist-vue/style.css +1 -1
  111. package/package.json +1 -1
  112. package/dist/_chunks/dist-Do_Ac5Yv.js.map +0 -1
  113. package/dist-vue/_chunks/PkChatbot-DIqduIwr.js +0 -290
  114. package/dist-vue/_chunks/PkChatbot-DIqduIwr.js.map +0 -1
  115. package/dist-vue/_chunks/PkChatbotInput-BJHtmPR-.js.map +0 -1
  116. package/dist-vue/_chunks/PkChatbotViewChat-BI_PtT72.js.map +0 -1
  117. package/dist-vue/_chunks/PkChatbotViewConversations-Bg4jSO9a.js +0 -199
  118. package/dist-vue/_chunks/PkChatbotViewConversations-Bg4jSO9a.js.map +0 -1
  119. package/dist-vue/_chunks/createChatbotApiClient-DUz4dwzY.js.map +0 -1
  120. package/dist-vue/_chunks/useChatbotStore-D7LcpA-6.js.map +0 -1
@@ -48,10 +48,12 @@ var e = {
48
48
  retryNow: "Try again now",
49
49
  feedback: "I want to make a report",
50
50
  download: "Download",
51
+ open: "Open",
51
52
  attachFile: "Attach a file",
52
53
  takePhoto: "Take a photo",
53
54
  talk: "Talk",
54
55
  stop: "Stop",
56
+ queueMessage: "Send when the answer ends",
55
57
  regenerate: "Regenerate",
56
58
  getMoreInfo: "More information",
57
59
  editRevise: "Update revised answer",
@@ -59,6 +61,7 @@ var e = {
59
61
  upvote: "Helpful",
60
62
  downvote: "Not helpful",
61
63
  scrollToBottom: "Back to bottom",
64
+ removeFromQueue: "Remove from the queue",
62
65
  dropFile: "Drop file here",
63
66
  deleteMyConversations: "Delete my conversations",
64
67
  manageProfile: "Manage your profile",
@@ -81,7 +84,6 @@ var e = {
81
84
  openInWhatsApp: "Open in WhatsApp",
82
85
  openInTelegram: "Open in Telegram",
83
86
  openInSms: "Open in SMS",
84
- open: "Open",
85
87
  showLess: "Show less",
86
88
  showMore: "View more {count}",
87
89
  hangUp: "End the call",
@@ -122,6 +124,8 @@ var e = {
122
124
  feedbackSubmittedMessage: "Your feedback has been submitted successfully.",
123
125
  fileLimitPerChat: "You have reached the limit of {max} files for this conversation.",
124
126
  fileLimitPerMessage: "You can attach at most {max} files per message.",
127
+ backgroundAnswerReady: "The agent answered in “{title}”",
128
+ backgroundAnswerReadyUntitled: "The agent answered in another conversation",
125
129
  voiceTookTooLong: "The answer took too long for the call. Try again, or continue in writing: the answer will appear here as soon as it is ready.",
126
130
  voiceNoAnswer: "The agent could not produce an answer for this call. Try again, or continue in writing.",
127
131
  voiceInterrupted: "Try again, or continue in writing.",
@@ -302,6 +306,7 @@ var e = {
302
306
  imageHostsHint: "Answers and cards load images by themselves only from these hosts and from the platform. An image from any other host shows its host and loads on a click, so an answer cannot send the conversation to a site through an image url.",
303
307
  conversations: "Conversations",
304
308
  title: "Title",
309
+ answeringInBackground: "Answering",
305
310
  profile: "Profile",
306
311
  authentication: "Authentication",
307
312
  email: "Email",
@@ -319,6 +324,8 @@ var e = {
319
324
  tokens: "tokens",
320
325
  answeringOnTheCall: "Answering…",
321
326
  conversationOutline: "Conversation outline",
327
+ queuedMessages: "Messages waiting to be sent",
328
+ queued: "Queued",
322
329
  manageProfileDescription: "Edit your name, password, avatar and more",
323
330
  wakeupNext: "Next check at {time}",
324
331
  channels: "Channels",
@@ -804,10 +811,12 @@ var e = {
804
811
  retryNow: "Riprova ora",
805
812
  feedback: "Voglio fare una segnalazione",
806
813
  download: "Scarica",
814
+ open: "Apri",
807
815
  attachFile: "Allega un file",
808
816
  takePhoto: "Scatta una foto",
809
817
  talk: "Parla",
810
818
  stop: "Ferma",
819
+ queueMessage: "Invia a fine risposta",
811
820
  regenerate: "Rigenera",
812
821
  getMoreInfo: "Maggiori informazioni",
813
822
  editRevise: "Modifica la risposta",
@@ -815,6 +824,7 @@ var e = {
815
824
  upvote: "Utile",
816
825
  downvote: "Non utile",
817
826
  scrollToBottom: "Torna in fondo",
827
+ removeFromQueue: "Togli dalla coda",
818
828
  dropFile: "Trascina il file qui",
819
829
  deleteMyConversations: "Cancella le mie conversazioni",
820
830
  manageProfile: "Gestisci il tuo profilo",
@@ -837,7 +847,6 @@ var e = {
837
847
  openInWhatsApp: "Apri in WhatsApp",
838
848
  openInTelegram: "Apri in Telegram",
839
849
  openInSms: "Apri in SMS",
840
- open: "Apri",
841
850
  showLess: "Mostra di meno",
842
851
  showMore: "Visualizza altre {count}",
843
852
  hangUp: "Chiudi la chiamata",
@@ -878,6 +887,8 @@ var e = {
878
887
  feedbackSubmittedMessage: "Il tuo feedback è stato inviato con successo.",
879
888
  fileLimitPerChat: "Hai raggiunto il limite di {max} file per questa conversazione.",
880
889
  fileLimitPerMessage: "Puoi allegare al massimo {max} file per messaggio.",
890
+ backgroundAnswerReady: "L'agente ha risposto in «{title}»",
891
+ backgroundAnswerReadyUntitled: "L'agente ha risposto in un'altra conversazione",
881
892
  voiceTookTooLong: "La risposta ha impiegato troppo tempo per la chiamata. Riprova, oppure continua per iscritto: la risposta comparirà qui appena pronta.",
882
893
  voiceNoAnswer: "L'agente non è riuscito a produrre una risposta per questa chiamata. Riprova, oppure continua per iscritto.",
883
894
  voiceInterrupted: "Riprova, oppure continua per iscritto.",
@@ -1058,6 +1069,7 @@ var e = {
1058
1069
  imageHostsHint: "Risposte e card caricano da sole solo le immagini di questi host e della piattaforma. Un'immagine di un altro host mostra il suo host e si carica con un clic, così una risposta non può mandare la conversazione a un sito dentro l'url di un'immagine.",
1059
1070
  conversations: "Conversazioni",
1060
1071
  title: "Titolo",
1072
+ answeringInBackground: "Sta rispondendo",
1061
1073
  profile: "Profilo",
1062
1074
  authentication: "Autenticazione",
1063
1075
  email: "Email",
@@ -1075,6 +1087,8 @@ var e = {
1075
1087
  tokens: "token",
1076
1088
  answeringOnTheCall: "Sto rispondendo…",
1077
1089
  conversationOutline: "Indice della conversazione",
1090
+ queuedMessages: "Messaggi in attesa di invio",
1091
+ queued: "In coda",
1078
1092
  manageProfileDescription: "Modifica nome, password, avatar e altro",
1079
1093
  wakeupNext: "Prossimo controllo alle {time}",
1080
1094
  channels: "Canali",
@@ -4,6 +4,8 @@ type __VLS_Props = {
4
4
  conversation: Conversation;
5
5
  active?: boolean;
6
6
  editing?: boolean;
7
+ /** The agent is answering in it, here or in the background. */
8
+ answering?: boolean;
7
9
  /** Show the "chat files" action. The host turns it off when the
8
10
  * caller cannot use the My files listing (anonymous users). */
9
11
  filesEnabled?: boolean;
@@ -16,17 +16,27 @@ type __VLS_Props = {
16
16
  attachmentNotice?: string;
17
17
  /** Show the talk button: the agent has voice enabled. */
18
18
  voiceEnabled?: boolean;
19
+ /**
20
+ * What is written while the agent answers is queued and sent when the
21
+ * answer ends (spec resumable-chat-streams, F2): sending stays open.
22
+ */
23
+ queueEnabled?: boolean;
24
+ /** Answers that ended in another conversation, each with its own line and its "Open". */
25
+ answerNotices?: {
26
+ id: string;
27
+ text: string;
28
+ }[];
19
29
  };
20
30
  type __VLS_ModelProps = {
21
31
  modelValue?: string | undefined;
22
32
  'pendingAttachments'?: PendingAttachment[];
23
33
  };
24
34
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
25
- declare var __VLS_25: {}, __VLS_66: {};
35
+ declare var __VLS_32: {}, __VLS_73: {};
26
36
  type __VLS_Slots = {} & {
27
- prepend?: (props: typeof __VLS_25) => any;
37
+ prepend?: (props: typeof __VLS_32) => any;
28
38
  } & {
29
- 'additional-actions'?: (props: typeof __VLS_66) => any;
39
+ 'additional-actions'?: (props: typeof __VLS_73) => any;
30
40
  };
31
41
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
32
42
  "update:modelValue": (value: string | undefined) => any;
@@ -36,6 +46,8 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
36
46
  "file-select": (file: File) => any;
37
47
  "dismiss-attachment-notice": () => any;
38
48
  "dismiss-page-notice": () => any;
49
+ "open-answer-notice": (id: string) => any;
50
+ "dismiss-answer-notice": (id: string) => any;
39
51
  "voice-start": () => any;
40
52
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
41
53
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
@@ -45,6 +57,8 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
45
57
  "onFile-select"?: ((file: File) => any) | undefined;
46
58
  "onDismiss-attachment-notice"?: (() => any) | undefined;
47
59
  "onDismiss-page-notice"?: (() => any) | undefined;
60
+ "onOpen-answer-notice"?: ((id: string) => any) | undefined;
61
+ "onDismiss-answer-notice"?: ((id: string) => any) | undefined;
48
62
  "onVoice-start"?: (() => any) | undefined;
49
63
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
50
64
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
@@ -0,0 +1,22 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
2
+ /**
3
+ * What the user wrote while the agent answers (spec
4
+ * resumable-chat-streams, F2), sent together when the answer ends. At the
5
+ * bottom of the conversation, above the input and outside the scrolling
6
+ * list: the answer in flight holds its place there, anchored under the
7
+ * question, and a message added after it would sit below that hold, out
8
+ * of view. Each one goes back to the input to be changed, or leaves the
9
+ * queue.
10
+ */
11
+ type __VLS_Props = {
12
+ messages: string[];
13
+ };
14
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
15
+ remove: (index: number) => any;
16
+ edit: (index: number) => any;
17
+ }, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
18
+ onRemove?: ((index: number) => any) | undefined;
19
+ onEdit?: ((index: number) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
21
+ declare const _default: typeof __VLS_export;
22
+ export default _default;
@@ -43,8 +43,12 @@ export interface ChatbotApiClient {
43
43
  /**
44
44
  * The user's Stop of the turn running in a chat (spec
45
45
  * resumable-chat-streams): false when none was, so its answer is stored.
46
+ * `streamId` names the page's own turn, which a turn sent from another
47
+ * page may have replaced as the chat's running one.
46
48
  */
47
- stopChatTurn(agentId: string, chatId: string): Promise<boolean>;
49
+ stopChatTurn(agentId: string, chatId: string, streamId?: string): Promise<boolean>;
50
+ /** The chats among `chatIds` where a turn of the user is running now. */
51
+ getRunningTurns(agentId: string, chatIds: string[]): Promise<string[]>;
48
52
  updateChatTitle(agentId: string, chatId: string, title: string): Promise<Chat>;
49
53
  deleteChat(agentId: string, chatId: string): Promise<void>;
50
54
  getMessageFeedbacks(chatId: string): Promise<MessageFeedback[]>;
@@ -17,6 +17,8 @@ export type { JSONObject } from '@ai-sdk/provider';
17
17
  export declare const VOICE_LINE_ID_PREFIX = "voice-";
18
18
  /** How long the turn has to stay quiet before `isWorking` goes off. */
19
19
  export declare const WORKING_SETTLE_MS = 400;
20
+ /** How often the turns running in the background are read again. */
21
+ export declare const RUNNING_TURNS_POLL_MS = 5000;
20
22
  /**
21
23
  * True when the last assistant step carries a client tool the user has
22
24
  * answered, and nothing left in it for the user to answer.
@@ -1831,6 +1833,17 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
1831
1833
  isConversationBlocked: globalThis.Ref<boolean, boolean>;
1832
1834
  inputMessagePlaceholder: globalThis.ComputedRef<string>;
1833
1835
  chatError: globalThis.Ref<Error | undefined, Error | undefined>;
1836
+ runningChatIds: globalThis.ComputedRef<string[]>;
1837
+ backgroundAnswers: globalThis.ComputedRef<{
1838
+ chatId: string;
1839
+ title: string | undefined;
1840
+ }[]>;
1841
+ openBackgroundAnswer: (chatId: string) => void;
1842
+ dismissBackgroundAnswer: (chatId: string) => void;
1843
+ canQueue: globalThis.ComputedRef<boolean>;
1844
+ queuedMessages: globalThis.ComputedRef<string[]>;
1845
+ removeQueuedMessage: (index: number) => void;
1846
+ editQueuedMessage: (index: number) => void;
1834
1847
  activeView: globalThis.Ref<ChatbotView, ChatbotView>;
1835
1848
  messageFeedbacks: globalThis.Ref<{
1836
1849
  messageId: string;
@@ -3739,6 +3752,17 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3739
3752
  isConversationBlocked: globalThis.Ref<boolean, boolean>;
3740
3753
  inputMessagePlaceholder: globalThis.ComputedRef<string>;
3741
3754
  chatError: globalThis.Ref<Error | undefined, Error | undefined>;
3755
+ runningChatIds: globalThis.ComputedRef<string[]>;
3756
+ backgroundAnswers: globalThis.ComputedRef<{
3757
+ chatId: string;
3758
+ title: string | undefined;
3759
+ }[]>;
3760
+ openBackgroundAnswer: (chatId: string) => void;
3761
+ dismissBackgroundAnswer: (chatId: string) => void;
3762
+ canQueue: globalThis.ComputedRef<boolean>;
3763
+ queuedMessages: globalThis.ComputedRef<string[]>;
3764
+ removeQueuedMessage: (index: number) => void;
3765
+ editQueuedMessage: (index: number) => void;
3742
3766
  activeView: globalThis.Ref<ChatbotView, ChatbotView>;
3743
3767
  messageFeedbacks: globalThis.Ref<{
3744
3768
  messageId: string;
@@ -3854,7 +3878,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
3854
3878
  navigate: (view: ChatbotView) => void;
3855
3879
  renameChatTitle: (chatId: string, title: string) => Promise<void>;
3856
3880
  deleteChat: (chatId: string) => Promise<void>;
3857
- }, "messages" | "chat" | "actions" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder">, Pick<{
3881
+ }, "messages" | "chat" | "actions" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder" | "runningChatIds" | "backgroundAnswers" | "canQueue" | "queuedMessages">, Pick<{
3858
3882
  apiClient: globalThis.ComputedRef< ChatbotApiClient>;
3859
3883
  baseUrl: globalThis.Ref<string, string>;
3860
3884
  basePath: globalThis.Ref<string | undefined, string | undefined>;
@@ -5647,6 +5671,17 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5647
5671
  isConversationBlocked: globalThis.Ref<boolean, boolean>;
5648
5672
  inputMessagePlaceholder: globalThis.ComputedRef<string>;
5649
5673
  chatError: globalThis.Ref<Error | undefined, Error | undefined>;
5674
+ runningChatIds: globalThis.ComputedRef<string[]>;
5675
+ backgroundAnswers: globalThis.ComputedRef<{
5676
+ chatId: string;
5677
+ title: string | undefined;
5678
+ }[]>;
5679
+ openBackgroundAnswer: (chatId: string) => void;
5680
+ dismissBackgroundAnswer: (chatId: string) => void;
5681
+ canQueue: globalThis.ComputedRef<boolean>;
5682
+ queuedMessages: globalThis.ComputedRef<string[]>;
5683
+ removeQueuedMessage: (index: number) => void;
5684
+ editQueuedMessage: (index: number) => void;
5650
5685
  activeView: globalThis.Ref<ChatbotView, ChatbotView>;
5651
5686
  messageFeedbacks: globalThis.Ref<{
5652
5687
  messageId: string;
@@ -5762,4 +5797,4 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
5762
5797
  navigate: (view: ChatbotView) => void;
5763
5798
  renameChatTitle: (chatId: string, title: string) => Promise<void>;
5764
5799
  deleteChat: (chatId: string) => Promise<void>;
5765
- }, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "renameChatTitle" | "deleteChat">>;
5800
+ }, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "openBackgroundAnswer" | "dismissBackgroundAnswer" | "removeQueuedMessage" | "editQueuedMessage" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "renameChatTitle" | "deleteChat">>;