@8wave/ai-elements 0.125.0-beta.4 → 0.125.0-beta.6

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 (154) hide show
  1. package/dist/_chunks/{Agent-BBWFD4nI.js → Agent-DZhK49jg.js} +99 -96
  2. package/dist/_chunks/Agent-DZhK49jg.js.map +1 -0
  3. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js → PkFilePreview-C3R3jrNi.js} +31 -31
  4. package/dist/_chunks/{PkFilePreview-BwHe4-m1.js.map → PkFilePreview-C3R3jrNi.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js → PkFilePreviewDialog-BAKFOnPI.js} +2 -2
  6. package/dist/_chunks/{PkFilePreviewDialog-LWxNgkzk.js.map → PkFilePreviewDialog-BAKFOnPI.js.map} +1 -1
  7. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js → PkStreamingMarkdown-BM-DSTPr.js} +3 -3
  8. package/dist/_chunks/{PkStreamingMarkdown-BvgO6aHe.js.map → PkStreamingMarkdown-BM-DSTPr.js.map} +1 -1
  9. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js → PkToolChatFile-DbeOmRPh.js} +3 -3
  10. package/dist/_chunks/{PkToolChatFile-OuaeZTxw.js.map → PkToolChatFile-DbeOmRPh.js.map} +1 -1
  11. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js → PkToolRequestGeolocation-CCz4REP9.js} +2 -2
  12. package/dist/_chunks/{PkToolRequestGeolocation-C9PSITRU.js.map → PkToolRequestGeolocation-CCz4REP9.js.map} +1 -1
  13. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js → PkToolRequestOAuthConnection-BU-4Sm3z.js} +2 -2
  14. package/dist/_chunks/{PkToolRequestOAuthConnection-CWi5SeCi.js.map → PkToolRequestOAuthConnection-BU-4Sm3z.js.map} +1 -1
  15. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js → PkToolShowArtifact-utxGuLLt.js} +2 -2
  16. package/dist/_chunks/{PkToolShowArtifact-BqgW3E6D.js.map → PkToolShowArtifact-utxGuLLt.js.map} +1 -1
  17. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
  18. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
  19. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
  20. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
  22. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
  24. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
  26. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
  28. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
  30. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
  32. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
  33. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
  34. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
  35. package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
  36. package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
  37. package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
  38. package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
  39. package/dist/ai-elements.es.js +3812 -3717
  40. package/dist/ai-elements.es.js.map +1 -1
  41. package/dist-vue/PkChatbot.js +1 -1
  42. package/dist-vue/PkChatbotEmptyState.js +1 -1
  43. package/dist-vue/PkChatbotInput.js +1 -1
  44. package/dist-vue/PkChatbotMessages.js +1 -1
  45. package/dist-vue/PkChatbotStepPayload.js +1 -1
  46. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  47. package/dist-vue/PkChatbotSteps.js +1 -1
  48. package/dist-vue/PkChatbotViewChat.js +1 -1
  49. package/dist-vue/PkChatbotViewConversations.js +1 -1
  50. package/dist-vue/PkChatbotViewFiles.js +1 -1
  51. package/dist-vue/PkChatbotViewProfile.js +1 -1
  52. package/dist-vue/_chunks/{Agent-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
  53. package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
  54. package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
  55. package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
  56. package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js +294 -0
  57. package/dist-vue/_chunks/PkChatbot-Qrk8yEM0.js.map +1 -0
  58. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
  59. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
  60. package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
  61. package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
  62. package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js +1039 -0
  63. package/dist-vue/_chunks/PkChatbotMessages-DAwGWRtd.js.map +1 -0
  64. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
  65. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
  66. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
  67. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
  68. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
  69. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
  70. package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-CMFc4eLD.js} +450 -446
  71. package/dist-vue/_chunks/PkChatbotViewChat-CMFc4eLD.js.map +1 -0
  72. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
  73. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
  74. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
  75. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
  76. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
  77. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
  79. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
  81. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
  83. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
  85. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
  87. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
  89. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
  96. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
  97. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
  98. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
  103. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
  108. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
  109. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
  110. package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
  111. package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
  112. package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
  113. package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
  114. package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
  115. package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
  116. package/dist-vue/api.js +1 -1
  117. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  118. package/dist-vue/composables.js +16 -8
  119. package/dist-vue/composables.js.map +1 -1
  120. package/dist-vue/index.js +3394 -3359
  121. package/dist-vue/index.js.map +1 -1
  122. package/dist-vue/locales.js +16 -0
  123. package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
  124. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  125. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
  126. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
  127. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
  128. package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
  129. package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
  130. package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
  131. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
  132. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +10 -0
  133. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
  134. package/dist-vue/packages/models/src/schema/Agent.d.ts +41 -0
  135. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  136. package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
  137. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  138. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  139. package/dist-vue/style.css +1 -1
  140. package/package.json +1 -1
  141. package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
  142. package/dist/_chunks/utils-euH8esYP.js.map +0 -1
  143. package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
  144. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
  145. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
  146. package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
  147. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
  148. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
  149. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
  150. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
  151. package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
  152. package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
  153. package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
  154. package/dist-vue/_chunks/utils-B0PnU1Rk.js.map +0 -1
@@ -42,6 +42,8 @@ var e = {
42
42
  viewRecentChats: "View recent chats",
43
43
  enablePageAccess: "Turn page access back on",
44
44
  disablePageAccess: "Turn off page access",
45
+ manualConfirmations: "Manual confirmations",
46
+ automaticConfirmations: "Automatic confirmations",
45
47
  signIn: "Sign in",
46
48
  backToSignIn: "Back to sign in",
47
49
  forgetPassword: "Forgot your password?",
@@ -311,6 +313,8 @@ var e = {
311
313
  preview: "Preview",
312
314
  externalContext: "External context",
313
315
  externalContextSchema: "External context schema",
316
+ confirmations: "Confirmations",
317
+ confirmationsAllowAutomatic: "The user may choose automatic confirmations",
314
318
  rateLimits: "Rate limits",
315
319
  minuteRateLimit: "Minute rate limit",
316
320
  hourRateLimit: "Hour rate limit",
@@ -336,6 +340,7 @@ var e = {
336
340
  or: "Or",
337
341
  comment: "Comment",
338
342
  file: "File",
343
+ automaticConfirmations: "Automatic",
339
344
  message: "Message",
340
345
  wakeupQuietRun: "Nothing new at the {time} check | Nothing new in {count} checks, the last at {time}",
341
346
  wakeupCheck: "Automatic check",
@@ -452,6 +457,7 @@ var e = {
452
457
  invalidCssSelector: "Invalid CSS selector: while it stays, page access is off.",
453
458
  pageAccessExcludeSelectors: "The agent neither reads nor touches these elements and those with the data-agent-ignore attribute.",
454
459
  pageAccessExcludeSelectorsInfo: "Passwords, hidden fields and payment data are already excluded: other sensitive fields have to be marked by the site.",
460
+ pageAccessConfirmEveryActionManual: "The user confirms every click and every write, not only submits and page changes. Only with manual confirmations.",
455
461
  pageAccessConfirmEveryAction: "The user confirms every click and every write, not only submits and page changes.",
456
462
  pageAccessPointer: "A button in the chat input to point at an element of the page, or select its text, and ask about it.",
457
463
  pageAccessNotice: "Empty, the widget uses the level's own text.",
@@ -538,6 +544,7 @@ var e = {
538
544
  embedPreview: "The agent will be accessible at the following URL.",
539
545
  externalContextSchema: "Define which contextual data the hosting site can send to the agent.",
540
546
  externalContextSchemaToggle: "Enable receiving contextual data from the hosting site.",
547
+ confirmationsAllowAutomatic: "In the chat the user chooses whether the agent asks before saving, sending or creating. Deletions, the site's own confirmations and leaving the site always ask.",
541
548
  userFeedbackPositive: "The user rated this answer positively",
542
549
  userFeedbackNegative: "The user rated this answer negatively",
543
550
  userFeedbackReaction: "The user reacted to this answer",
@@ -838,6 +845,7 @@ var e = {
838
845
  },
839
846
  toolApproval: {
840
847
  hostCall: "The agent wants to use “{name}”. Allow it?",
848
+ changesCount: "{n} change | {n} changes",
841
849
  prompt: "Your confirmation is needed to continue:",
842
850
  fieldColumn: "Field",
843
851
  beforeColumn: "Before",
@@ -955,6 +963,8 @@ var e = {
955
963
  viewRecentChats: "Visualizza chat recenti",
956
964
  enablePageAccess: "Riattiva l'accesso alla pagina",
957
965
  disablePageAccess: "Spegni l'accesso alla pagina",
966
+ manualConfirmations: "Conferme manuali",
967
+ automaticConfirmations: "Conferme automatiche",
958
968
  signIn: "Accedi",
959
969
  backToSignIn: "Torna al login",
960
970
  forgetPassword: "Hai dimenticato la password?",
@@ -1224,6 +1234,8 @@ var e = {
1224
1234
  preview: "Anteprima",
1225
1235
  externalContext: "Contesto esterno",
1226
1236
  externalContextSchema: "Schema contesto esterno",
1237
+ confirmations: "Conferme",
1238
+ confirmationsAllowAutomatic: "L'utente può scegliere le conferme automatiche",
1227
1239
  rateLimits: "Limiti di utilizzo",
1228
1240
  minuteRateLimit: "Limite al minuto",
1229
1241
  hourRateLimit: "Limite all'ora",
@@ -1249,6 +1261,7 @@ var e = {
1249
1261
  or: "Oppure",
1250
1262
  comment: "Commento",
1251
1263
  file: "File",
1264
+ automaticConfirmations: "Automatico",
1252
1265
  message: "Messaggio",
1253
1266
  wakeupQuietRun: "Nessuna novità nel controllo delle {time} | Nessuna novità in {count} controlli, l'ultimo alle {time}",
1254
1267
  wakeupCheck: "Controllo automatico",
@@ -1365,6 +1378,7 @@ var e = {
1365
1378
  invalidCssSelector: "Selettore CSS non valido: finché resta, l'accesso alla pagina è spento.",
1366
1379
  pageAccessExcludeSelectors: "L'agente non legge né tocca questi elementi e quelli con l'attributo data-agent-ignore.",
1367
1380
  pageAccessExcludeSelectorsInfo: "Password, campi nascosti e dati di pagamento sono già esclusi: gli altri campi sensibili li deve marcare il sito.",
1381
+ pageAccessConfirmEveryActionManual: "L'utente conferma ogni clic e ogni scrittura, non solo gli invii e i cambi di pagina. Vale solo con le conferme manuali.",
1368
1382
  pageAccessConfirmEveryAction: "L'utente conferma ogni clic e ogni scrittura, non solo gli invii e i cambi di pagina.",
1369
1383
  pageAccessPointer: "Un pulsante nel campo della chat per indicare un elemento della pagina, o selezionarne il testo, e chiedere.",
1370
1384
  pageAccessNotice: "Vuoto, il widget usa il testo del livello.",
@@ -1451,6 +1465,7 @@ var e = {
1451
1465
  embedPreview: "L'agente sarà accessibile al seguente URL.",
1452
1466
  externalContextSchema: "Definisci quali dati contestuali il sito ospitante può inviare all'agente.",
1453
1467
  externalContextSchemaToggle: "Abilita la ricezione di dati contestuali dal sito ospitante.",
1468
+ confirmationsAllowAutomatic: "Nella chat l'utente sceglie se l'agente chiede prima di salvare, inviare o creare. Le cancellazioni, le conferme del sito e l'uscita dal sito chiedono sempre.",
1454
1469
  userFeedbackPositive: "L'utente ha valutato positivamente questa risposta",
1455
1470
  userFeedbackNegative: "L'utente ha valutato negativamente questa risposta",
1456
1471
  userFeedbackReaction: "L'utente ha reagito a questa risposta",
@@ -1751,6 +1766,7 @@ var e = {
1751
1766
  },
1752
1767
  toolApproval: {
1753
1768
  hostCall: "L'agente vuole usare «{name}». Consenti?",
1769
+ changesCount: "{n} modifica | {n} modifiche",
1754
1770
  prompt: "Per continuare serve la tua conferma:",
1755
1771
  fieldColumn: "Campo",
1756
1772
  beforeColumn: "Prima",
@@ -3,6 +3,11 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
3
3
  type __VLS_Props = {
4
4
  /** The agent's trusted origins: `forms` and `full` need explicit ones. */
5
5
  trustedOrigins?: string[];
6
+ /**
7
+ * The user may choose automatic confirmations (spec
8
+ * `auto-confirmations.md`): every action asks only in manual then.
9
+ */
10
+ automaticAllowed?: boolean;
6
11
  };
7
12
  type __VLS_ModelProps = {
8
13
  /**
@@ -136,6 +136,8 @@ type __VLS_ModelProps = {
136
136
  'hostTools'?: Partial<HostToolsSettings> | undefined;
137
137
  /** What the agent may do on the page that embeds it (spec `page-tools.md`). */
138
138
  'pageAccess'?: Partial<PageAccessSettings> | undefined;
139
+ /** The user may choose automatic confirmations in the chat (spec `auto-confirmations.md`). */
140
+ 'confirmationsAllowAutomatic'?: boolean;
139
141
  'ranking'?: {
140
142
  freshness?: {
141
143
  enabled: boolean;
@@ -153,9 +155,9 @@ type __VLS_ModelProps = {
153
155
  } | undefined;
154
156
  };
155
157
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
156
- declare var __VLS_898: {};
158
+ declare var __VLS_909: {};
157
159
  type __VLS_Slots = {} & {
158
- default?: (props: typeof __VLS_898) => any;
160
+ default?: (props: typeof __VLS_909) => any;
159
161
  };
160
162
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
161
163
  "update:reasoning": (value: {
@@ -413,6 +415,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
413
415
  acknowledgedAt?: Date | undefined;
414
416
  acknowledgedLevel?: PageAccessLevel | undefined;
415
417
  }> | undefined) => any;
418
+ "update:confirmationsAllowAutomatic": (value: boolean) => any;
416
419
  "update:ranking": (value: {
417
420
  freshness?: {
418
421
  enabled: boolean;
@@ -685,6 +688,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, Com
685
688
  acknowledgedAt?: Date | undefined;
686
689
  acknowledgedLevel?: PageAccessLevel | undefined;
687
690
  }> | undefined) => any) | undefined;
691
+ "onUpdate:confirmationsAllowAutomatic"?: ((value: boolean) => any) | undefined;
688
692
  "onUpdate:ranking"?: ((value: {
689
693
  freshness?: {
690
694
  enabled: boolean;
@@ -1,4 +1,4 @@
1
- import { AgentInterface, AgentModel, AgentFileUpload, AgentGatewayOptions, AgentVoiceCapability, ChatMessageActions, RevisedAnswer, UIChatMessage, AgentTools, HostToolsCapability, PageAccessCapability } from '../../../models/src';
1
+ import { AgentConfirmationsCapability, AgentInterface, AgentModel, AgentFileUpload, AgentGatewayOptions, AgentVoiceCapability, ChatMessageActions, RevisedAnswer, UIChatMessage, AgentTools, HostToolsCapability, PageAccessCapability } from '../../../models/src';
2
2
  import { RegisteredHostTool } from '../../../composable/src';
3
3
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
4
4
  import { ChatRequestOptions } from 'ai';
@@ -29,6 +29,8 @@ type __VLS_Props = {
29
29
  hostToolRegistry?: RegisteredHostTool[];
30
30
  /** Page access as the agent allows it (`capabilities.pageAccess`, spec `page-tools.md`). */
31
31
  pageAccess?: PageAccessCapability;
32
+ /** Whether the user may choose automatic confirmations (`capabilities.confirmations`, spec `auto-confirmations.md`). */
33
+ confirmations?: AgentConfirmationsCapability;
32
34
  /** The widget's page tools: only the web component provides them. */
33
35
  pageToolRegistry?: RegisteredHostTool[];
34
36
  /** The tools of the forms annotated on the page now, read on every request. */
@@ -54,25 +56,25 @@ declare var __VLS_24: {
54
56
  contrastColor: "white" | "black";
55
57
  startNewChat: () => Promise<string>;
56
58
  stopGeneration: () => Promise<void>;
57
- }, __VLS_143: {
59
+ }, __VLS_156: {
58
60
  mainColor: string | undefined;
59
61
  useColorsForAgentHeader: boolean | undefined;
60
62
  contrastColor: "white" | "black";
61
63
  startNewChat: () => Promise<string>;
62
64
  stopGeneration: () => Promise<void>;
63
- }, __VLS_167: string, __VLS_168: any, __VLS_178: string, __VLS_179: any, __VLS_186: {}, __VLS_196: string, __VLS_197: any;
65
+ }, __VLS_180: string, __VLS_181: any, __VLS_191: string, __VLS_192: any, __VLS_199: {}, __VLS_209: string, __VLS_210: any;
64
66
  type __VLS_Slots = {} & {
65
- [K in NonNullable<typeof __VLS_167>]?: (props: typeof __VLS_168) => any;
67
+ [K in NonNullable<typeof __VLS_180>]?: (props: typeof __VLS_181) => any;
66
68
  } & {
67
- [K in NonNullable<typeof __VLS_178>]?: (props: typeof __VLS_179) => any;
69
+ [K in NonNullable<typeof __VLS_191>]?: (props: typeof __VLS_192) => any;
68
70
  } & {
69
- [K in NonNullable<typeof __VLS_196>]?: (props: typeof __VLS_197) => any;
71
+ [K in NonNullable<typeof __VLS_209>]?: (props: typeof __VLS_210) => any;
70
72
  } & {
71
73
  'header-actions'?: (props: typeof __VLS_24) => any;
72
74
  } & {
73
- actions?: (props: typeof __VLS_143) => any;
75
+ actions?: (props: typeof __VLS_156) => any;
74
76
  } & {
75
- 'view-auth'?: (props: typeof __VLS_186) => any;
77
+ 'view-auth'?: (props: typeof __VLS_199) => any;
76
78
  };
77
79
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
78
80
  startNewChat: () => Promise<string>;
@@ -35,17 +35,23 @@ type __VLS_Props = {
35
35
  kind: 'element' | 'text';
36
36
  label: string;
37
37
  };
38
+ /**
39
+ * The user chose automatic confirmations (spec
40
+ * `auto-confirmations.md`): a label above the field says so, and
41
+ * takes them back to manual.
42
+ */
43
+ automaticConfirmations?: boolean;
38
44
  };
39
45
  type __VLS_ModelProps = {
40
46
  modelValue?: string | undefined;
41
47
  'pendingAttachments'?: PendingAttachment[];
42
48
  };
43
49
  type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
44
- declare var __VLS_44: {}, __VLS_85: {};
50
+ declare var __VLS_54: {}, __VLS_95: {};
45
51
  type __VLS_Slots = {} & {
46
- prepend?: (props: typeof __VLS_44) => any;
52
+ prepend?: (props: typeof __VLS_54) => any;
47
53
  } & {
48
- 'additional-actions'?: (props: typeof __VLS_85) => any;
54
+ 'additional-actions'?: (props: typeof __VLS_95) => any;
49
55
  };
50
56
  declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
51
57
  /** Move the focus to the message field */
@@ -63,6 +69,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
63
69
  "voice-start": () => any;
64
70
  point: () => any;
65
71
  "remove-pointer": () => any;
72
+ "manual-confirmations": () => any;
66
73
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
67
74
  "onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
68
75
  onSubmit?: (() => any) | undefined;
@@ -76,6 +83,7 @@ declare const __VLS_base: DefineComponent<__VLS_PublicProps, {
76
83
  "onVoice-start"?: (() => any) | undefined;
77
84
  onPoint?: (() => any) | undefined;
78
85
  "onRemove-pointer"?: (() => any) | undefined;
86
+ "onManual-confirmations"?: (() => any) | undefined;
79
87
  }>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
80
88
  declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
81
89
  declare const _default: typeof __VLS_export;
@@ -100,7 +100,7 @@ declare var __VLS_35: {
100
100
  part: TextUIPart;
101
101
  index: number;
102
102
  isLoading: boolean;
103
- }, __VLS_117: "custom" | "text" | "reasoning" | "dynamic-tool" | "source-url" | "source-document" | "reasoning-file" | "step-start" | `data-${string}` | `tool-${string}`, __VLS_118: {
103
+ }, __VLS_128: "custom" | "text" | "reasoning" | "dynamic-tool" | "source-url" | "source-document" | "reasoning-file" | "step-start" | `data-${string}` | `tool-${string}`, __VLS_129: {
104
104
  message: UIChatMessage;
105
105
  part: TextUIPart | CustomContentUIPart | ReasoningUIPart | DynamicToolUIPart | SourceUrlUIPart | SourceDocumentUIPart | ReasoningFileUIPart | StepStartUIPart | {
106
106
  type: `data-${string}`;
@@ -113,7 +113,7 @@ declare var __VLS_35: {
113
113
  isLoading: boolean;
114
114
  };
115
115
  type __VLS_Slots = {} & {
116
- [K in NonNullable<typeof __VLS_117>]?: (props: typeof __VLS_118) => any;
116
+ [K in NonNullable<typeof __VLS_128>]?: (props: typeof __VLS_129) => any;
117
117
  } & {
118
118
  text?: (props: typeof __VLS_35) => any;
119
119
  };
@@ -0,0 +1,15 @@
1
+ import { StepFieldChange } from './utils';
2
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
3
+ /**
4
+ * What a submit or a save changes, as a table of each field, what it was
5
+ * and what it becomes, marked as Word marks a revision: the confirmation
6
+ * card asks with it (spec `page-tools-improvements.md`, M2), and the step
7
+ * the automatic confirmations ran without a card keeps it (spec
8
+ * `auto-confirmations.md`, "Il resoconto in chat").
9
+ */
10
+ type __VLS_Props = {
11
+ changes: StepFieldChange[];
12
+ };
13
+ declare const __VLS_export: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
14
+ declare const _default: typeof __VLS_export;
15
+ export default _default;
@@ -6,8 +6,7 @@ import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOp
6
6
  * answered, the call's own step or line says how it ended.
7
7
  *
8
8
  * A submit lists what it changes (spec `page-tools-improvements.md`, M2)
9
- * as a table of each field, what it was and what it becomes, marked as
10
- * Word marks a revision; the fields it sends unchanged fold under it.
9
+ * in `PkFieldChanges`; the fields it sends unchanged fold under it.
11
10
  * Details without `before` are plain lines: a line without a label stands
12
11
  * alone.
13
12
  */
@@ -45,6 +45,24 @@ export declare function getHostCallPart(part: UIMessage['parts'][number] | null
45
45
  * from its store, read by the views that list the steps.
46
46
  */
47
47
  export declare const HOST_STEP_TITLES: InjectionKey<Ref<Record<string, string>>>;
48
+ /** A setting a step changes: what it was, what it becomes. */
49
+ export type StepFieldChange = {
50
+ label: string;
51
+ value: string;
52
+ before?: string;
53
+ };
54
+ /**
55
+ * What the steps the automatic confirmations ran without a card changed, by
56
+ * call (spec `auto-confirmations.md`): provided by the chat view from its
57
+ * store, shown under each step's line.
58
+ */
59
+ export declare const HOST_STEP_CHANGES: InjectionKey<Ref<Record<string, {
60
+ details?: StepFieldChange[];
61
+ unchanged?: {
62
+ label: string;
63
+ value: string;
64
+ }[];
65
+ }>>>;
48
66
  /**
49
67
  * A host call that changes something in the app or on the page: the feed
50
68
  * shows it even without the steps timeline, because what it did stays done.
@@ -116,6 +116,8 @@ export interface ChatbotApiClient {
116
116
  externalContext?: Record<string, unknown>;
117
117
  /** The page tools the widget runs, declared as a typed turn declares them. */
118
118
  pageTools?: unknown;
119
+ /** The user chose automatic confirmations: they hold for the whole call. */
120
+ confirmations?: 'automatic';
119
121
  }): Promise<VoiceSession>;
120
122
  closeVoiceSession(agentId: string, sessionId: string): Promise<void>;
121
123
  }
@@ -65,6 +65,8 @@ export type HostToolConfirmation = {
65
65
  */
66
66
  keep?: boolean;
67
67
  };
68
+ /** The confirmations the user chose in the chat (spec `auto-confirmations.md`). */
69
+ export type ConfirmationMode = 'manual' | 'automatic';
68
70
  /** `card` as one that asks whatever confirmations the user chose. */
69
71
  export declare const alwaysAsked: (card: string | HostToolConfirmation) => HostToolConfirmation;
70
72
  /**
@@ -155,6 +157,14 @@ export declare function createHostToolRunner(deps: {
155
157
  onPendingChange?: (pending: number) => void;
156
158
  /** The call starting, or `undefined` when it ends: what the page control bar shows. */
157
159
  onActivity?: (call: HostToolCall | undefined) => void;
160
+ /**
161
+ * The confirmations the user chose (spec `auto-confirmations.md`): in
162
+ * automatic, a card that does not keep its question is not shown, and the
163
+ * call runs as if the user had said yes. A card already waiting stays.
164
+ */
165
+ mode?: () => ConfirmationMode;
166
+ /** A card the automatic mode skipped: what the call's step reports of it. */
167
+ onSkip?: (call: HostToolCall, card: HostToolConfirmation) => void;
158
168
  }): {
159
169
  enqueue(call: HostToolCall): void;
160
170
  cancelAll(): void;
@@ -1,6 +1,6 @@
1
1
  import { FileUIPart, ChatStatus, ChatRequestOptions, ChatAddToolOutputFunction, ChatAddToolApproveResponseFunction, ProviderMetadata, LanguageModelUsage } from 'ai';
2
2
  import { PageAccessLevel, Chat as ChatRecord, ChatMessageActions, UIChatMessage, UIChatMessageMetadata, AgentWidgetLayout, AgentWidgetAppearance, AgentLoaderStrategy, StoragePolicy, AgentSearchMode, AgentBuiltInTool, WebSearchProvider, PlatformType, ToolGroupKind, BlockedReasonCode, ConversationAnalysisTrigger, Sentiment, SentimentTrend, UserTone, AbuseCategory, LlmIssueCategory, UserEngagement, AbuseConfidence, UserFileKind } from '../../../models/src';
3
- import { HostToolConfirmation, RegisteredHostTool } from './hostTools';
3
+ import { ConfirmationMode, HostToolConfirmation, RegisteredHostTool } from './hostTools';
4
4
  import { ChatbotFile } from './api';
5
5
  import { PendingAttachment } from './types';
6
6
  import { Store } from 'pinia';
@@ -621,6 +621,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
621
621
  title: string;
622
622
  } | undefined>;
623
623
  hostStepTitles: globalThis.Ref<Record<string, string>, Record<string, string>>;
624
+ hostStepChanges: globalThis.Ref<Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>, Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>>;
624
625
  pageControlActive: globalThis.Ref<boolean, boolean>;
625
626
  isWorking: globalThis.Ref<boolean, boolean>;
626
627
  stopHostActions: () => Promise<void>;
@@ -657,6 +658,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
657
658
  pageAccessAvailable: globalThis.ComputedRef<boolean>;
658
659
  pageAccessOff: globalThis.Ref<boolean, boolean>;
659
660
  setPageAccessOff: (off: boolean) => Promise<void>;
661
+ agentConfirmations: globalThis.Ref<{
662
+ allowAutomatic: true;
663
+ } | undefined, {
664
+ allowAutomatic: true;
665
+ } | undefined>;
666
+ confirmationsAvailable: globalThis.ComputedRef<boolean>;
667
+ confirmationMode: globalThis.ComputedRef<ConfirmationMode>;
668
+ setConfirmationMode: (mode: ConfirmationMode) => void;
660
669
  pagePointer: globalThis.Ref<{
661
670
  kind: "text" | "element";
662
671
  label: string;
@@ -2058,7 +2067,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2058
2067
  focusInput: () => void;
2059
2068
  renameChatTitle: (chatId: string, title: string) => Promise<void>;
2060
2069
  deleteChat: (chatId: string) => Promise<void>;
2061
- }, "name" | "input" | "model" | "externalContext" | "gatewayOptions" | "fallbackModels" | "userId" | "agentId" | "headers" | "conversations" | "agentModel" | "agentType" | "baseUrl" | "pagePointer" | "basePath" | "agentInterface" | "agentTools" | "revisedAnswers" | "actionsInput" | "agentFileUpload" | "agentVoice" | "agentHostTools" | "hostToolRegistry" | "hostToolsPending" | "agentPageAccess" | "pageToolRegistry" | "pageFormsProvider" | "pageAction" | "hostStepTitles" | "pageControlActive" | "isWorking" | "hostConfirmation" | "pageAccessOff" | "pagePointerStart" | "pagePointing" | "systemTheme" | "hideWelcomeMessage" | "isLoadingConversations" | "hasMoreConversations" | "isLoadingMoreConversations" | "chatFiles" | "isLoadingChatFiles" | "pendingAttachments" | "fileLimitError" | "isConversationBlocked" | "chatError" | "activeView" | "inputFocusRequest" | "messageFeedbacks" | "feedbackDialogMessage" | "isFeedbackSubmitting" | "isFeedbackSubmitted" | "feedbackSubmitError" | "isLeadSubmitted" | "isLoadingSubmitLead" | "submitLeadError">, Pick<{
2070
+ }, "name" | "input" | "model" | "externalContext" | "gatewayOptions" | "fallbackModels" | "userId" | "agentId" | "headers" | "conversations" | "agentModel" | "agentType" | "baseUrl" | "pagePointer" | "basePath" | "agentInterface" | "agentTools" | "revisedAnswers" | "actionsInput" | "agentFileUpload" | "agentVoice" | "agentHostTools" | "hostToolRegistry" | "hostToolsPending" | "agentPageAccess" | "pageToolRegistry" | "pageFormsProvider" | "pageAction" | "hostStepTitles" | "hostStepChanges" | "pageControlActive" | "isWorking" | "hostConfirmation" | "pageAccessOff" | "agentConfirmations" | "pagePointerStart" | "pagePointing" | "systemTheme" | "hideWelcomeMessage" | "isLoadingConversations" | "hasMoreConversations" | "isLoadingMoreConversations" | "chatFiles" | "isLoadingChatFiles" | "pendingAttachments" | "fileLimitError" | "isConversationBlocked" | "chatError" | "activeView" | "inputFocusRequest" | "messageFeedbacks" | "feedbackDialogMessage" | "isFeedbackSubmitting" | "isFeedbackSubmitted" | "feedbackSubmitError" | "isLeadSubmitted" | "isLoadingSubmitLead" | "submitLeadError">, Pick<{
2062
2071
  apiClient: globalThis.ComputedRef< ChatbotApiClient>;
2063
2072
  baseUrl: globalThis.Ref<string, string>;
2064
2073
  basePath: globalThis.Ref<string | undefined, string | undefined>;
@@ -2639,6 +2648,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2639
2648
  title: string;
2640
2649
  } | undefined>;
2641
2650
  hostStepTitles: globalThis.Ref<Record<string, string>, Record<string, string>>;
2651
+ hostStepChanges: globalThis.Ref<Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>, Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>>;
2642
2652
  pageControlActive: globalThis.Ref<boolean, boolean>;
2643
2653
  isWorking: globalThis.Ref<boolean, boolean>;
2644
2654
  stopHostActions: () => Promise<void>;
@@ -2675,6 +2685,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
2675
2685
  pageAccessAvailable: globalThis.ComputedRef<boolean>;
2676
2686
  pageAccessOff: globalThis.Ref<boolean, boolean>;
2677
2687
  setPageAccessOff: (off: boolean) => Promise<void>;
2688
+ agentConfirmations: globalThis.Ref<{
2689
+ allowAutomatic: true;
2690
+ } | undefined, {
2691
+ allowAutomatic: true;
2692
+ } | undefined>;
2693
+ confirmationsAvailable: globalThis.ComputedRef<boolean>;
2694
+ confirmationMode: globalThis.ComputedRef<ConfirmationMode>;
2695
+ setConfirmationMode: (mode: ConfirmationMode) => void;
2678
2696
  pagePointer: globalThis.Ref<{
2679
2697
  kind: "text" | "element";
2680
2698
  label: string;
@@ -4076,7 +4094,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4076
4094
  focusInput: () => void;
4077
4095
  renameChatTitle: (chatId: string, title: string) => Promise<void>;
4078
4096
  deleteChat: (chatId: string) => Promise<void>;
4079
- }, "messages" | "chat" | "actions" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "pagePointerAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder" | "runningChatIds" | "backgroundAnswers" | "canQueue" | "queuedMessages">, Pick<{
4097
+ }, "messages" | "chat" | "actions" | "apiClient" | "pageNoticeLevel" | "pageAccessAvailable" | "confirmationsAvailable" | "confirmationMode" | "pagePointerAvailable" | "isDark" | "isAttachmentLimitReached" | "localChatId" | "inputMessagePlaceholder" | "runningChatIds" | "backgroundAnswers" | "canQueue" | "queuedMessages">, Pick<{
4080
4098
  apiClient: globalThis.ComputedRef< ChatbotApiClient>;
4081
4099
  baseUrl: globalThis.Ref<string, string>;
4082
4100
  basePath: globalThis.Ref<string | undefined, string | undefined>;
@@ -4657,6 +4675,7 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4657
4675
  title: string;
4658
4676
  } | undefined>;
4659
4677
  hostStepTitles: globalThis.Ref<Record<string, string>, Record<string, string>>;
4678
+ hostStepChanges: globalThis.Ref<Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>, Record<string, Pick<HostToolConfirmation, "unchanged" | "details">>>;
4660
4679
  pageControlActive: globalThis.Ref<boolean, boolean>;
4661
4680
  isWorking: globalThis.Ref<boolean, boolean>;
4662
4681
  stopHostActions: () => Promise<void>;
@@ -4693,6 +4712,14 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
4693
4712
  pageAccessAvailable: globalThis.ComputedRef<boolean>;
4694
4713
  pageAccessOff: globalThis.Ref<boolean, boolean>;
4695
4714
  setPageAccessOff: (off: boolean) => Promise<void>;
4715
+ agentConfirmations: globalThis.Ref<{
4716
+ allowAutomatic: true;
4717
+ } | undefined, {
4718
+ allowAutomatic: true;
4719
+ } | undefined>;
4720
+ confirmationsAvailable: globalThis.ComputedRef<boolean>;
4721
+ confirmationMode: globalThis.ComputedRef<ConfirmationMode>;
4722
+ setConfirmationMode: (mode: ConfirmationMode) => void;
4696
4723
  pagePointer: globalThis.Ref<{
4697
4724
  kind: "text" | "element";
4698
4725
  label: string;
@@ -6094,4 +6121,4 @@ export declare function useChatbotStore(agentId: string): Store<`chatbot-${strin
6094
6121
  focusInput: () => void;
6095
6122
  renameChatTitle: (chatId: string, title: string) => Promise<void>;
6096
6123
  deleteChat: (chatId: string) => Promise<void>;
6097
- }, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "voicePageTools" | "cancelVoicePageCalls" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "openBackgroundAnswer" | "dismissBackgroundAnswer" | "removeQueuedMessage" | "editQueuedMessage" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadMoreConversations" | "searchConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "focusInput" | "renameChatTitle" | "deleteChat">>;
6124
+ }, "regenerate" | "sendMessage" | "addToolOutput" | "addToolApprovalResponse" | "stopHostActions" | "voicePageTools" | "cancelVoicePageCalls" | "closePageNotice" | "respondHostConfirmation" | "setPageAccessOff" | "setConfirmationMode" | "openBackgroundAnswer" | "dismissBackgroundAnswer" | "removeQueuedMessage" | "editQueuedMessage" | "buildDeviceContext" | "initialize" | "loadConversations" | "loadMoreConversations" | "searchConversations" | "loadChatFiles" | "refreshMessages" | "appendMessage" | "getChatFileUrl" | "getChatFilePreviewUrl" | "deleteChatFile" | "handleSubmit" | "stopGeneration" | "startNewChat" | "handleFileSelect" | "clearFileLimitError" | "clearPendingAttachments" | "onUpvote" | "onDownvote" | "onFeedback" | "onFeedbackSubmit" | "onLeadSubmit" | "navigate" | "focusInput" | "renameChatTitle" | "deleteChat">>;
@@ -1395,6 +1395,11 @@ export declare const AgentVoiceCapabilitySchema: z.ZodObject<{
1395
1395
  enabled: z.ZodBoolean;
1396
1396
  }, z.core.$strip>;
1397
1397
  export type AgentVoiceCapability = z.infer<typeof AgentVoiceCapabilitySchema>;
1398
+ /**
1399
+ * The confirmations a chat request or a call asks for (spec
1400
+ * `auto-confirmations.md`): absent is manual.
1401
+ */
1402
+ export declare const ChatConfirmationsSchema: z.ZodLiteral<"automatic">;
1398
1403
  /** Body of a voice session request: which conversation to talk into. */
1399
1404
  export declare const VoiceSessionRequestSchema: z.ZodObject<{
1400
1405
  chatId: z.ZodOptional<z.ZodString>;
@@ -1431,6 +1436,7 @@ export declare const VoiceSessionRequestSchema: z.ZodObject<{
1431
1436
  }, z.core.$strip>>;
1432
1437
  externalContext: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1433
1438
  pageTools: z.ZodOptional<z.ZodUnknown>;
1439
+ confirmations: z.ZodOptional<z.ZodLiteral<"automatic">>;
1434
1440
  }, z.core.$strip>;
1435
1441
  export type VoiceSessionRequest = z.infer<typeof VoiceSessionRequestSchema>;
1436
1442
  /**
@@ -1462,6 +1468,20 @@ export declare const VoiceOptionListSchema: z.ZodArray<z.ZodObject<{
1462
1468
  previewUrl: z.ZodOptional<z.ZodString>;
1463
1469
  labels: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
1464
1470
  }, z.core.$strip>>;
1471
+ /**
1472
+ * The chat's confirmations (spec `auto-confirmations.md`): whether the user
1473
+ * may switch them to automatic. Honoured only where the organization has
1474
+ * the `autoConfirmations` feature.
1475
+ */
1476
+ export declare const AgentConfirmationsSettingsSchema: z.ZodObject<{
1477
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
1478
+ }, z.core.$strip>;
1479
+ export type AgentConfirmationsSettings = z.infer<typeof AgentConfirmationsSettingsSchema>;
1480
+ /** What the chat needs of them, on the public agent: present only when allowed. */
1481
+ export declare const AgentConfirmationsCapabilitySchema: z.ZodObject<{
1482
+ allowAutomatic: z.ZodLiteral<true>;
1483
+ }, z.core.$strip>;
1484
+ export type AgentConfirmationsCapability = z.infer<typeof AgentConfirmationsCapabilitySchema>;
1465
1485
  export declare const AgentSettingsSchema: z.ZodObject<{
1466
1486
  model: z.ZodObject<{
1467
1487
  prompt: z.ZodOptional<z.ZodString>;
@@ -1876,6 +1896,9 @@ export declare const AgentSettingsSchema: z.ZodObject<{
1876
1896
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
1877
1897
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
1878
1898
  }, z.core.$strip>>;
1899
+ confirmations: z.ZodOptional<z.ZodObject<{
1900
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
1901
+ }, z.core.$strip>>;
1879
1902
  }, z.core.$strip>;
1880
1903
  export type AgentSettings = z.infer<typeof AgentSettingsSchema>;
1881
1904
  export declare const AgentSecuritySchema: z.ZodObject<{
@@ -2312,6 +2335,9 @@ export declare const AgentDtoSchema: z.ZodObject<{
2312
2335
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2313
2336
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
2314
2337
  }, z.core.$strip>>;
2338
+ confirmations: z.ZodOptional<z.ZodObject<{
2339
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
2340
+ }, z.core.$strip>>;
2315
2341
  }, z.core.$strip>;
2316
2342
  security: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2317
2343
  rateLimits: z.ZodObject<{
@@ -2749,6 +2775,9 @@ export declare const AgentSchema: z.ZodLazy<z.ZodObject<{
2749
2775
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
2750
2776
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
2751
2777
  }, z.core.$strip>>;
2778
+ confirmations: z.ZodOptional<z.ZodObject<{
2779
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
2780
+ }, z.core.$strip>>;
2752
2781
  }, z.core.$strip>;
2753
2782
  security: z.ZodNullable<z.ZodObject<{
2754
2783
  rateLimits: z.ZodObject<{
@@ -2946,6 +2975,9 @@ export declare const AgentPublicSchema: z.ZodObject<{
2946
2975
  notice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
2947
2976
  pointer: z.ZodOptional<z.ZodBoolean>;
2948
2977
  }, z.core.$strip>>;
2978
+ confirmations: z.ZodOptional<z.ZodObject<{
2979
+ allowAutomatic: z.ZodLiteral<true>;
2980
+ }, z.core.$strip>>;
2949
2981
  }, z.core.$strip>;
2950
2982
  channels: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentChannel>>>;
2951
2983
  }, z.core.$strip>;
@@ -3202,6 +3234,9 @@ export declare const AgentAccessGrantedSchema: z.ZodObject<{
3202
3234
  notice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3203
3235
  pointer: z.ZodOptional<z.ZodBoolean>;
3204
3236
  }, z.core.$strip>>;
3237
+ confirmations: z.ZodOptional<z.ZodObject<{
3238
+ allowAutomatic: z.ZodLiteral<true>;
3239
+ }, z.core.$strip>>;
3205
3240
  }, z.core.$strip>;
3206
3241
  channels: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentChannel>>>;
3207
3242
  }, z.core.$strip>;
@@ -3414,6 +3449,9 @@ export declare const AgentAccessDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodOb
3414
3449
  notice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3415
3450
  pointer: z.ZodOptional<z.ZodBoolean>;
3416
3451
  }, z.core.$strip>>;
3452
+ confirmations: z.ZodOptional<z.ZodObject<{
3453
+ allowAutomatic: z.ZodLiteral<true>;
3454
+ }, z.core.$strip>>;
3417
3455
  }, z.core.$strip>;
3418
3456
  channels: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentChannel>>>;
3419
3457
  }, z.core.$strip>;
@@ -3645,6 +3683,9 @@ export declare const AgentAccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
3645
3683
  notice: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
3646
3684
  pointer: z.ZodOptional<z.ZodBoolean>;
3647
3685
  }, z.core.$strip>>;
3686
+ confirmations: z.ZodOptional<z.ZodObject<{
3687
+ allowAutomatic: z.ZodLiteral<true>;
3688
+ }, z.core.$strip>>;
3648
3689
  }, z.core.$strip>;
3649
3690
  channels: z.ZodDefault<z.ZodArray<z.ZodEnum<typeof AgentChannel>>>;
3650
3691
  }, z.core.$strip>;
@@ -258,6 +258,7 @@ export declare const ChatRequestSchema: z.ZodObject<{
258
258
  smoothStream: z.ZodOptional<z.ZodBoolean>;
259
259
  hostTools: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
260
260
  pageTools: z.ZodOptional<z.ZodUnknown>;
261
+ confirmations: z.ZodOptional<z.ZodLiteral<"automatic">>;
261
262
  }, z.core.$strip>;
262
263
  export type ChatRequest = z.infer<typeof ChatRequestSchema>;
263
264
  /**
@@ -421,6 +421,15 @@ export declare enum OrganizationFeature {
421
421
  * agent stops announcing them, even on an agent configured while it was on.
422
422
  */
423
423
  HostTools = "hostTools",
424
+ /**
425
+ * The user may switch an agent's confirmations to automatic in the chat
426
+ * (spec auto-confirmations.md), where the agent allows it. Off by
427
+ * default, born for the Copilot: on a customer's site the choice would
428
+ * be the visitors'. It reaches the runtime like the host tools: off, the
429
+ * backoffice switch does not show, the public agent does not announce
430
+ * it, and a request asking for it changes nothing.
431
+ */
432
+ AutoConfirmations = "autoConfirmations",
424
433
  /**
425
434
  * One flag per agent visibility an organization may go without (spec
426
435
  * agent-visibility-modes.md, "Modalità per organizzazione"), and none
@@ -442,6 +442,9 @@ export declare const ReasoningChatSchema: z.ZodObject<{
442
442
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
443
443
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
444
444
  }, z.core.$strip>>;
445
+ confirmations: z.ZodOptional<z.ZodObject<{
446
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
447
+ }, z.core.$strip>>;
445
448
  }, z.core.$strip>;
446
449
  security: z.ZodNullable<z.ZodObject<{
447
450
  rateLimits: z.ZodObject<{
@@ -931,6 +934,9 @@ export declare const ReasoningChatSchema: z.ZodObject<{
931
934
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
932
935
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
933
936
  }, z.core.$strip>>;
937
+ confirmations: z.ZodOptional<z.ZodObject<{
938
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
939
+ }, z.core.$strip>>;
934
940
  }, z.core.$strip>;
935
941
  security: z.ZodNullable<z.ZodObject<{
936
942
  rateLimits: z.ZodObject<{
@@ -442,6 +442,9 @@ export declare const SubAgentSchema: z.ZodObject<{
442
442
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
443
443
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
444
444
  }, z.core.$strip>>;
445
+ confirmations: z.ZodOptional<z.ZodObject<{
446
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
447
+ }, z.core.$strip>>;
445
448
  }, z.core.$strip>;
446
449
  security: z.ZodNullable<z.ZodObject<{
447
450
  rateLimits: z.ZodObject<{
@@ -888,6 +891,9 @@ export declare const SubAgentSchema: z.ZodObject<{
888
891
  acknowledgedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
889
892
  acknowledgedLevel: z.ZodOptional<z.ZodEnum<typeof PageAccessLevel>>;
890
893
  }, z.core.$strip>>;
894
+ confirmations: z.ZodOptional<z.ZodObject<{
895
+ allowAutomatic: z.ZodDefault<z.ZodBoolean>;
896
+ }, z.core.$strip>>;
891
897
  }, z.core.$strip>;
892
898
  security: z.ZodNullable<z.ZodObject<{
893
899
  rateLimits: z.ZodObject<{