@8wave/ai-elements 0.125.0-beta.1 → 0.125.0-beta.10

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 (173) 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/PkToolShowCalendarEvent-DWtTo28t.js +148 -0
  18. package/dist/_chunks/PkToolShowCalendarEvent-DWtTo28t.js.map +1 -0
  19. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js → PkToolShowContactForm-DTtE93D3.js} +2 -2
  20. package/dist/_chunks/{PkToolShowContactForm-DDDXopZp.js.map → PkToolShowContactForm-DTtE93D3.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js → PkToolShowForm-I4pKopEI.js} +6 -6
  22. package/dist/_chunks/{PkToolShowForm-D2LZ8Kkl.js.map → PkToolShowForm-I4pKopEI.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js → PkToolShowImageGallery-skV87BlD.js} +2 -2
  24. package/dist/_chunks/{PkToolShowImageGallery-DAcW2Dau.js.map → PkToolShowImageGallery-skV87BlD.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js → PkToolShowProductList-CcdOQoxf.js} +2 -2
  26. package/dist/_chunks/{PkToolShowProductList-OYwQCHar.js.map → PkToolShowProductList-CcdOQoxf.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowQrCode-e6DxEcWY.js → PkToolShowQrCode-DGMhVUbp.js} +28 -22
  28. package/dist/_chunks/PkToolShowQrCode-DGMhVUbp.js.map +1 -0
  29. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js → PkToolShowSources-DLmVS3bL.js} +3 -3
  30. package/dist/_chunks/{PkToolShowSources-DA4SOt-H.js.map → PkToolShowSources-DLmVS3bL.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js → PkToolShowSuggestedReply-Cv-WVCFN.js} +2 -2
  32. package/dist/_chunks/{PkToolShowSuggestedReply-BTE7TZ4Z.js.map → PkToolShowSuggestedReply-Cv-WVCFN.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js → PkToolShowVideo-D_K95gTR.js} +2 -2
  34. package/dist/_chunks/{PkToolShowVideo-bTWeXtZd.js.map → PkToolShowVideo-D_K95gTR.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js → PkToolShowWebPages-DsfMacw-.js} +2 -2
  36. package/dist/_chunks/{PkToolShowWebPages-DNbdkSSz.js.map → PkToolShowWebPages-DsfMacw-.js.map} +1 -1
  37. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js → chatImagePolicy-BfgdFbm_.js} +2 -2
  38. package/dist/_chunks/{chatImagePolicy-C4jFnVQl.js.map → chatImagePolicy-BfgdFbm_.js.map} +1 -1
  39. package/dist/_chunks/{markdown-DDYeZICP.js → markdown-CrMYpY8l.js} +10 -10
  40. package/dist/_chunks/{markdown-DDYeZICP.js.map → markdown-CrMYpY8l.js.map} +1 -1
  41. package/dist/_chunks/{utils-euH8esYP.js → utils-CbhqxYyx.js} +57 -57
  42. package/dist/_chunks/utils-CbhqxYyx.js.map +1 -0
  43. package/dist/ai-elements.es.js +4310 -4198
  44. package/dist/ai-elements.es.js.map +1 -1
  45. package/dist-vue/PkChatbot.js +1 -1
  46. package/dist-vue/PkChatbotEmptyState.js +1 -1
  47. package/dist-vue/PkChatbotInput.js +1 -1
  48. package/dist-vue/PkChatbotMessages.js +1 -1
  49. package/dist-vue/PkChatbotStepPayload.js +1 -1
  50. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  51. package/dist-vue/PkChatbotSteps.js +1 -1
  52. package/dist-vue/PkChatbotViewChat.js +1 -1
  53. package/dist-vue/PkChatbotViewConversations.js +1 -1
  54. package/dist-vue/PkChatbotViewFiles.js +1 -1
  55. package/dist-vue/PkChatbotViewProfile.js +1 -1
  56. package/dist-vue/_chunks/{Agent-DQl-tv4S.js → Agent-BtXBSGy6.js} +34 -31
  57. package/dist-vue/_chunks/Agent-BtXBSGy6.js.map +1 -0
  58. package/dist-vue/_chunks/{Document-DXDifFZE.js → Document-DERAWuR0.js} +10 -10
  59. package/dist-vue/_chunks/{Document-DXDifFZE.js.map → Document-DERAWuR0.js.map} +1 -1
  60. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js +294 -0
  61. package/dist-vue/_chunks/PkChatbot-CLOfTLQy.js.map +1 -0
  62. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js → PkChatbotEmptyState-C9aUiynZ.js} +2 -2
  63. package/dist-vue/_chunks/{PkChatbotEmptyState-CLOH5Z2d.js.map → PkChatbotEmptyState-C9aUiynZ.js.map} +1 -1
  64. package/dist-vue/_chunks/{PkChatbotInput-BK7f1jFE.js → PkChatbotInput-Bs8nn-Jz.js} +154 -135
  65. package/dist-vue/_chunks/PkChatbotInput-Bs8nn-Jz.js.map +1 -0
  66. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js +1039 -0
  67. package/dist-vue/_chunks/PkChatbotMessages-BxkCGmqV.js.map +1 -0
  68. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js → PkChatbotStepPayload-C45aVagz.js} +2 -2
  69. package/dist-vue/_chunks/{PkChatbotStepPayload-D682n3VR.js.map → PkChatbotStepPayload-C45aVagz.js.map} +1 -1
  70. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js → PkChatbotStepToolDetail-B0tC33x6.js} +16 -16
  71. package/dist-vue/_chunks/{PkChatbotStepToolDetail-D5c8rqj9.js.map → PkChatbotStepToolDetail-B0tC33x6.js.map} +1 -1
  72. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js +215 -0
  73. package/dist-vue/_chunks/PkChatbotSteps-MTSA_RrY.js.map +1 -0
  74. package/dist-vue/_chunks/{PkChatbotViewChat-D8depeWQ.js → PkChatbotViewChat-BwXOt2WW.js} +450 -446
  75. package/dist-vue/_chunks/PkChatbotViewChat-BwXOt2WW.js.map +1 -0
  76. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js → PkChatbotViewConversations-CtxE_a1O.js} +3 -3
  77. package/dist-vue/_chunks/{PkChatbotViewConversations-B-dmLi-8.js.map → PkChatbotViewConversations-CtxE_a1O.js.map} +1 -1
  78. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js → PkChatbotViewFiles-B51zU374.js} +3 -3
  79. package/dist-vue/_chunks/{PkChatbotViewFiles-Du5AAS4v.js.map → PkChatbotViewFiles-B51zU374.js.map} +1 -1
  80. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js → PkChatbotViewProfile-BSKRU7Ae.js} +2 -2
  81. package/dist-vue/_chunks/{PkChatbotViewProfile-UZrZdOyM.js.map → PkChatbotViewProfile-BSKRU7Ae.js.map} +1 -1
  82. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js → PkFilePreview-p-AGDrXi.js} +30 -30
  83. package/dist-vue/_chunks/{PkFilePreview-B54Dp_Rs.js.map → PkFilePreview-p-AGDrXi.js.map} +1 -1
  84. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js → PkFilePreviewDialog-BpeeWS6d.js} +2 -2
  85. package/dist-vue/_chunks/{PkFilePreviewDialog-QDPoZh1v.js.map → PkFilePreviewDialog-BpeeWS6d.js.map} +1 -1
  86. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js → PkStreamingMarkdown-DlcTV5je.js} +3 -3
  87. package/dist-vue/_chunks/{PkStreamingMarkdown-qnKwvrCg.js.map → PkStreamingMarkdown-DlcTV5je.js.map} +1 -1
  88. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js → PkToolChatFile-HWGjtuaT.js} +3 -3
  89. package/dist-vue/_chunks/{PkToolChatFile-i0rHgFxB.js.map → PkToolChatFile-HWGjtuaT.js.map} +1 -1
  90. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js → PkToolRequestGeolocation-euI4VBVe.js} +2 -2
  91. package/dist-vue/_chunks/{PkToolRequestGeolocation-SDzM1-Wl.js.map → PkToolRequestGeolocation-euI4VBVe.js.map} +1 -1
  92. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js → PkToolRequestOAuthConnection-DAAYyufP.js} +2 -2
  93. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-DNrlGxMX.js.map → PkToolRequestOAuthConnection-DAAYyufP.js.map} +1 -1
  94. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js → PkToolShowArtifact-C8OIF_sy.js} +2 -2
  95. package/dist-vue/_chunks/{PkToolShowArtifact-Dh4ogn6A.js.map → PkToolShowArtifact-C8OIF_sy.js.map} +1 -1
  96. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js +148 -0
  97. package/dist-vue/_chunks/PkToolShowCalendarEvent-CAejFLQI.js.map +1 -0
  98. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js → PkToolShowContactForm-K6Z5MUXk.js} +2 -2
  99. package/dist-vue/_chunks/{PkToolShowContactForm-BGTI1sio.js.map → PkToolShowContactForm-K6Z5MUXk.js.map} +1 -1
  100. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js → PkToolShowDiagram-DrlGh_v6.js} +2 -2
  101. package/dist-vue/_chunks/{PkToolShowDiagram-xef3wJb0.js.map → PkToolShowDiagram-DrlGh_v6.js.map} +1 -1
  102. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js → PkToolShowForm-DzsXJfOl.js} +6 -6
  103. package/dist-vue/_chunks/{PkToolShowForm-Crg4Kl6v.js.map → PkToolShowForm-DzsXJfOl.js.map} +1 -1
  104. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js → PkToolShowImageGallery-sCyrPOIT.js} +2 -2
  105. package/dist-vue/_chunks/{PkToolShowImageGallery-D9hdGBHK.js.map → PkToolShowImageGallery-sCyrPOIT.js.map} +1 -1
  106. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js → PkToolShowProductList-DPDDeVu4.js} +2 -2
  107. package/dist-vue/_chunks/{PkToolShowProductList-SC5aKDCw.js.map → PkToolShowProductList-DPDDeVu4.js.map} +1 -1
  108. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js +78 -0
  109. package/dist-vue/_chunks/PkToolShowQrCode-96KzD1rX.js.map +1 -0
  110. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js → PkToolShowSources-D4zjssdh.js} +3 -3
  111. package/dist-vue/_chunks/{PkToolShowSources-Bf9_JwFL.js.map → PkToolShowSources-D4zjssdh.js.map} +1 -1
  112. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js → PkToolShowSuggestedReply-smfC1hlT.js} +2 -2
  113. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BlcEfMx8.js.map → PkToolShowSuggestedReply-smfC1hlT.js.map} +1 -1
  114. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js → PkToolShowVideo-C77DAqoZ.js} +2 -2
  115. package/dist-vue/_chunks/{PkToolShowVideo-C2ITZDNo.js.map → PkToolShowVideo-C77DAqoZ.js.map} +1 -1
  116. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js → PkToolShowWebPages-D_tqGI6o.js} +2 -2
  117. package/dist-vue/_chunks/{PkToolShowWebPages-BrefGxKQ.js.map → PkToolShowWebPages-D_tqGI6o.js.map} +1 -1
  118. package/dist-vue/_chunks/{createChatbotApiClient-Bukf58dz.js → createChatbotApiClient-CO6l0P79.js} +87 -85
  119. package/dist-vue/_chunks/createChatbotApiClient-CO6l0P79.js.map +1 -0
  120. package/dist-vue/_chunks/{useChatbotStore-DcvdWkgq.js → useChatbotStore-CY1gAHOh.js} +1224 -1201
  121. package/dist-vue/_chunks/useChatbotStore-CY1gAHOh.js.map +1 -0
  122. package/dist-vue/_chunks/{utils-B0PnU1Rk.js → utils-CX4JuhXz.js} +66 -66
  123. package/dist-vue/_chunks/utils-CX4JuhXz.js.map +1 -0
  124. package/dist-vue/api.js +1 -1
  125. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  126. package/dist-vue/composables.js +20 -8
  127. package/dist-vue/composables.js.map +1 -1
  128. package/dist-vue/index.js +3394 -3359
  129. package/dist-vue/index.js.map +1 -1
  130. package/dist-vue/locales.js +20 -4
  131. package/dist-vue/packages/components/src/chat/PkAgentPageAccessSettings.d.ts +5 -0
  132. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  133. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +10 -8
  134. package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +11 -3
  135. package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +2 -2
  136. package/dist-vue/packages/components/src/chat/PkFieldChanges.d.ts +15 -0
  137. package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +1 -2
  138. package/dist-vue/packages/components/src/chat/index.d.ts +1 -1
  139. package/dist-vue/packages/components/src/chat/utils.d.ts +18 -0
  140. package/dist-vue/packages/composable/src/chatbot/api/createChatbotApiClient.d.ts +2 -0
  141. package/dist-vue/packages/composable/src/chatbot/appTools.d.ts +11 -5
  142. package/dist-vue/packages/composable/src/chatbot/fieldChanges.d.ts +56 -0
  143. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +19 -0
  144. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  145. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +31 -4
  146. package/dist-vue/packages/models/src/schema/Agent.d.ts +50 -0
  147. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  148. package/dist-vue/packages/models/src/schema/Organization.d.ts +9 -0
  149. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
  150. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
  151. package/dist-vue/style.css +1 -1
  152. package/package.json +1 -1
  153. package/dist/_chunks/Agent-BBWFD4nI.js.map +0 -1
  154. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js +0 -148
  155. package/dist/_chunks/PkToolShowCalendarEvent-mVY2FS24.js.map +0 -1
  156. package/dist/_chunks/PkToolShowQrCode-e6DxEcWY.js.map +0 -1
  157. package/dist/_chunks/utils-euH8esYP.js.map +0 -1
  158. package/dist-vue/_chunks/Agent-DQl-tv4S.js.map +0 -1
  159. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js +0 -286
  160. package/dist-vue/_chunks/PkChatbot-BRttF7Lo.js.map +0 -1
  161. package/dist-vue/_chunks/PkChatbotInput-BK7f1jFE.js.map +0 -1
  162. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js +0 -1041
  163. package/dist-vue/_chunks/PkChatbotMessages-Ck0ofhtK.js.map +0 -1
  164. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js +0 -189
  165. package/dist-vue/_chunks/PkChatbotSteps-CtKRHqaG.js.map +0 -1
  166. package/dist-vue/_chunks/PkChatbotViewChat-D8depeWQ.js.map +0 -1
  167. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js +0 -148
  168. package/dist-vue/_chunks/PkToolShowCalendarEvent-BsAOYLjp.js.map +0 -1
  169. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js +0 -72
  170. package/dist-vue/_chunks/PkToolShowQrCode-skWaARYV.js.map +0 -1
  171. package/dist-vue/_chunks/createChatbotApiClient-Bukf58dz.js.map +0 -1
  172. package/dist-vue/_chunks/useChatbotStore-DcvdWkgq.js.map +0 -1
  173. 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",
@@ -859,8 +867,8 @@ var e = {
859
867
  pagePress: "The agent wants to press {key} on “{name}”. Allow it?",
860
868
  pageFocused: "the focused element",
861
869
  pageBack: "The agent wants to go back to the previous page. Allow it?",
862
- pageNavigate: "The agent wants to open “{url}”. Allow it?",
863
- pageNavigateUnknown: "The agent wants to open “{url}”, which the page does not show. Allow it?"
870
+ pageNavigateUnknown: "The agent wants to open “{url}”, which the page does not show. Allow it?",
871
+ pageNavigate: "The agent wants to open “{url}”. Allow it?"
864
872
  },
865
873
  confirmTitle: {
866
874
  deleteMyConversations: "Delete all your conversations?",
@@ -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",
@@ -1772,8 +1788,8 @@ var e = {
1772
1788
  pagePress: "L'agente vuole premere {key} su «{name}». Consenti?",
1773
1789
  pageFocused: "l'elemento attivo",
1774
1790
  pageBack: "L'agente vuole tornare alla pagina precedente. Consenti?",
1775
- pageNavigate: "L'agente vuole aprire «{url}». Consenti?",
1776
- pageNavigateUnknown: "L'agente vuole aprire «{url}», che la pagina non mostra. Consenti?"
1791
+ pageNavigateUnknown: "L'agente vuole aprire «{url}», che la pagina non mostra. Consenti?",
1792
+ pageNavigate: "L'agente vuole aprire «{url}». Consenti?"
1777
1793
  },
1778
1794
  confirmTitle: {
1779
1795
  deleteMyConversations: "Eliminare tutte le vostre conversazioni?",
@@ -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
  */
@@ -60,6 +60,6 @@ export { MODEL_CATALOG_KEY, provideModelCatalog, useModelCatalogEntry, } from '.
60
60
  export { isMcpOAuthReport } from './mcpOAuthReport';
61
61
  export { provideChatImagePolicy } from './chatImagePolicy';
62
62
  export { provideChatFilePreviewDock } from './chatFilePreviewDock';
63
- export { localizeSummaryLabels } from './utils';
63
+ export { localizeSummaryLabels, toolLabel } from './utils';
64
64
  export { useChatFilePreview } from './useChatFilePreview';
65
65
  export { PkAgentSettingsPanel, PkAuroraCanvas, PkAvatar, PkChatSidebar, PkChatSidebarConversationItem, PkChatbot, PkChatbotEmptyState, PkChatbotError, PkChatbotFeedbackForm, PkChatbotFilePreview, PkChatbotInput, PkChatbotMessages, PkChatbotSteps, PkChatbotStepToolDetail, PkChatbotStepPayload, PkChatbotViewChat, PkChunkPreview, PkChatbotViewConversations, PkChatbotViewProfile, PkCode, PkCopyBlock, PkDocumentHeader, PkLanguageModel, PkLanguageModelCombobox, PkModelOption, PkMessageParts, PkMessageDetail, PkStreamingMarkdown, PkStreamingMarkdownAutoscroll, PkToolShowForm, PkToolShowArtifact, PkToolApprovalBadge, PkToolShowEmail, PkToolShowMessage, PkToolShowWebPages, PkToolShowProductList, PkToolShowContactForm, PkToolShowCalendarEvent, PkToolShowComparison, PkToolShowLocation, PkToolShowQrCode, PkToolShowImageGallery, PkToolShowSuggestedReply, PkToolShowSources, PkToolShareDocument, PkToolChatFile, PkFilePreviewDialog, PkToolRequestGeolocation, PkRetryCountdown, PkReasoningChat, PkReasoningSettings, PkWebSearchSettings, PkWelcomePopup, PkChatbotAuth, PkVoiceSession, PkVoiceOrb, PkChatButton, PkWorkingBeam, };
@@ -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
  }
@@ -1,4 +1,4 @@
1
- import { RegisteredHostTool } from './hostTools';
1
+ import { HostToolConfirmation, RegisteredHostTool } from './hostTools';
2
2
  /**
3
3
  * Something the user can do on the screen of an app, offered to the app's
4
4
  * copilot through `app_run` (spec `host-tools.md`, the backoffice copilot).
@@ -11,11 +11,17 @@ export type AppAction = {
11
11
  /** JSON Schema of the input; none for an action that takes nothing. */
12
12
  readonly inputSchema?: Record<string, unknown>;
13
13
  /**
14
- * The question the user answers before the action runs. Every action
15
- * that changes data has one; one that only moves the interface (opens a
16
- * dialog, fills a form the user still saves) has none.
14
+ * The question the user answers before the action runs, or the whole
15
+ * card (a save that lists what it changes). Every action that changes
16
+ * data has one; one that only moves the interface (opens a dialog, fills
17
+ * a form the user still saves) has none.
17
18
  */
18
- confirmation?: (input: unknown) => string;
19
+ confirmation?: (input: unknown) => string | HostToolConfirmation;
20
+ /**
21
+ * Deletes what nothing brings back: its card asks whatever
22
+ * confirmations the user chose (spec `auto-confirmations.md`).
23
+ */
24
+ destructive?: boolean;
19
25
  /** Runs the action: resolves with what the model reads, throws with what went wrong. */
20
26
  run: (input: unknown, signal: AbortSignal) => Promise<string> | string;
21
27
  };
@@ -0,0 +1,56 @@
1
+ /** Characters a value keeps on a confirmation card. */
2
+ export declare const SUMMARY_MAX_VALUE = 80;
3
+ /** `text` on one line, cut with an ellipsis past `max` characters. */
4
+ export declare const oneLine: (text: string | null | undefined, max?: number) => string;
5
+ /**
6
+ * A long value as the card shows it once changed: from shortly before the
7
+ * first character that differs, at the start of a word, so the user reads
8
+ * what the agent wrote and not the opening it left as it was.
9
+ */
10
+ export declare const changedPart: (now: string, before: string) => string;
11
+ /** A setting that changed, as a card lists it: what it was, what it becomes. */
12
+ export type FieldChange = {
13
+ label: string;
14
+ before: string;
15
+ value: string;
16
+ };
17
+ /** The value at a dotted `path` of `data`, or `undefined`. */
18
+ export declare const valueAt: (data: unknown, path: string) => unknown;
19
+ /** True when the two hold the same value, whatever the order of their keys. */
20
+ export declare const sameValue: (a: unknown, b: unknown) => boolean;
21
+ /**
22
+ * The settings a save changes, between what the server holds (`saved`) and
23
+ * what the form sends (`edited`), over the fields the form binds: `paths`
24
+ * maps each field's name to where it lives in the data.
25
+ *
26
+ * A field holding an object of settings (the page access, a localized text)
27
+ * is compared key by key, down to the values: each key is a field of its
28
+ * own, labelled `label.<field><Key>` as the settings panel names them, a
29
+ * language by its name, anything else after its field's label. An object
30
+ * whose values read the same (an empty one, a schema's `null`) is shown
31
+ * whole. A field labels itself `label.<field>`, or the key `labels` gives
32
+ * for it. Values read as the user reads them: `value` for the fields that
33
+ * need words (a model by its name), otherwise yes and no, a list on one
34
+ * line, and a long text from where the two versions part.
35
+ */
36
+ export declare function fieldChanges(saved: unknown, edited: unknown, paths: Readonly<Record<string, string>>, options: {
37
+ t: (key: string) => string;
38
+ te: (key: string) => boolean;
39
+ /** The language of the card, for the names of the languages. */
40
+ locale: string;
41
+ /** The label key of the fields not labelled `label.<field>`. */
42
+ labels?: Readonly<Record<string, string>>;
43
+ /** A value in words, or `undefined` for the plain reading. */
44
+ value?: (field: string, value: unknown) => string | undefined;
45
+ }): FieldChange[];
46
+ /**
47
+ * The fields the server did not keep as a save sent them: every value the
48
+ * form sent (`sent`) on the paths it binds, against what the server answers
49
+ * (`saved`). What the form left empty and the server filled in is no change
50
+ * the user asked for, and neither is a value the server stamps itself
51
+ * (`stamped`, by its path in the data: who accepted something, and when).
52
+ */
53
+ export declare function unsavedFields(sent: unknown, saved: unknown, paths: Readonly<Record<string, string>>, stamped?: readonly string[]): {
54
+ field: string;
55
+ saved: unknown;
56
+ }[];
@@ -57,7 +57,18 @@ export type HostToolConfirmation = {
57
57
  }[];
58
58
  /** What the model reads when the user says no, in place of the plain refusal. */
59
59
  refusal?: string;
60
+ /**
61
+ * Asks whatever confirmations the user chose (spec
62
+ * `auto-confirmations.md`): a deletion, the site's own "are you sure?",
63
+ * an element the site marks, leaving the site. Without it, a card the
64
+ * automatic confirmations may skip.
65
+ */
66
+ keep?: boolean;
60
67
  };
68
+ /** The confirmations the user chose in the chat (spec `auto-confirmations.md`). */
69
+ export type ConfirmationMode = 'manual' | 'automatic';
70
+ /** `card` as one that asks whatever confirmations the user chose. */
71
+ export declare const alwaysAsked: (card: string | HostToolConfirmation) => HostToolConfirmation;
61
72
  /**
62
73
  * A tool a page registers on the element, as the registry keeps it: the
63
74
  * public fields only. `policy` belongs to the widget's own tools, so a page
@@ -146,6 +157,14 @@ export declare function createHostToolRunner(deps: {
146
157
  onPendingChange?: (pending: number) => void;
147
158
  /** The call starting, or `undefined` when it ends: what the page control bar shows. */
148
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;
149
168
  }): {
150
169
  enqueue(call: HostToolCall): void;
151
170
  cancelAll(): void;
@@ -1,5 +1,6 @@
1
1
  export * from './api';
2
2
  export * from './appTools';
3
+ export * from './fieldChanges';
3
4
  export * from './hostBridge';
4
5
  export * from './hostTools';
5
6
  export * from './types';
@@ -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">>;