@8wave/ai-elements 0.127.0-beta.1 → 0.127.0-beta.2

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 (183) hide show
  1. package/dist/_chunks/{Agent-DytagI8S.js → Agent-nB9V45mr.js} +354 -276
  2. package/dist/_chunks/Agent-nB9V45mr.js.map +1 -0
  3. package/dist/_chunks/{Document-BdWEd1tb.js → Document-Dm5GM40t.js} +7 -7
  4. package/dist/_chunks/{Document-BdWEd1tb.js.map → Document-Dm5GM40t.js.map} +1 -1
  5. package/dist/_chunks/{PkFilePreview-C3BxAdui.js → PkFilePreview-qTCDbut0.js} +3 -3
  6. package/dist/_chunks/{PkFilePreview-C3BxAdui.js.map → PkFilePreview-qTCDbut0.js.map} +1 -1
  7. package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js → PkFilePreviewDialog-m5d4zZDi.js} +2 -2
  8. package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js.map → PkFilePreviewDialog-m5d4zZDi.js.map} +1 -1
  9. package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js → PkImageEditorDialog-aekpEqWD.js} +2 -2
  10. package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js.map → PkImageEditorDialog-aekpEqWD.js.map} +1 -1
  11. package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js → PkSelectionActions-DDhRX6cs.js} +2 -2
  12. package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js.map → PkSelectionActions-DDhRX6cs.js.map} +1 -1
  13. package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js → PkStreamingMarkdown-5WfFCjFv.js} +3 -3
  14. package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js.map → PkStreamingMarkdown-5WfFCjFv.js.map} +1 -1
  15. package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js → PkToolChatFile-C3B9q2OL.js} +3 -3
  16. package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js.map → PkToolChatFile-C3B9q2OL.js.map} +1 -1
  17. package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js → PkToolRequestGeolocation-D4pYnCW5.js} +2 -2
  18. package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js.map → PkToolRequestGeolocation-D4pYnCW5.js.map} +1 -1
  19. package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js → PkToolRequestOAuthConnection-DnnRY2rt.js} +2 -2
  20. package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js.map → PkToolRequestOAuthConnection-DnnRY2rt.js.map} +1 -1
  21. package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js → PkToolShowArtifact-DQln7TsF.js} +2 -2
  22. package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js.map → PkToolShowArtifact-DQln7TsF.js.map} +1 -1
  23. package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js → PkToolShowChart-DfDB9BeZ.js} +2 -2
  24. package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js.map → PkToolShowChart-DfDB9BeZ.js.map} +1 -1
  25. package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js → PkToolShowContactForm-Dkb8AiqL.js} +2 -2
  26. package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js.map → PkToolShowContactForm-Dkb8AiqL.js.map} +1 -1
  27. package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js → PkToolShowDiagram-B2dBogUW.js} +2 -2
  28. package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js.map → PkToolShowDiagram-B2dBogUW.js.map} +1 -1
  29. package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js → PkToolShowForm-CtDcwJs4.js} +4 -4
  30. package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js.map → PkToolShowForm-CtDcwJs4.js.map} +1 -1
  31. package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js → PkToolShowImageGallery-dLMI3SM7.js} +2 -2
  32. package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js.map → PkToolShowImageGallery-dLMI3SM7.js.map} +1 -1
  33. package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js → PkToolShowProductList-DE6BEdr_.js} +2 -2
  34. package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js.map → PkToolShowProductList-DE6BEdr_.js.map} +1 -1
  35. package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js → PkToolShowSources-vSr080EU.js} +3 -3
  36. package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js.map → PkToolShowSources-vSr080EU.js.map} +1 -1
  37. package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js → PkToolShowSuggestedReply-HuKn3loC.js} +2 -2
  38. package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js.map → PkToolShowSuggestedReply-HuKn3loC.js.map} +1 -1
  39. package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js → PkToolShowVideo-BL-9CiYe.js} +2 -2
  40. package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js.map → PkToolShowVideo-BL-9CiYe.js.map} +1 -1
  41. package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js → PkToolShowWebPages-DQfODZdD.js} +2 -2
  42. package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js.map → PkToolShowWebPages-DQfODZdD.js.map} +1 -1
  43. package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js → chatImagePolicy-Cj5lkTVq.js} +2 -2
  44. package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js.map → chatImagePolicy-Cj5lkTVq.js.map} +1 -1
  45. package/dist/_chunks/text-CCurUhdH.js +13 -0
  46. package/dist/_chunks/text-CCurUhdH.js.map +1 -0
  47. package/dist/_chunks/{utils-78zQeKDO.js → utils-CRy3kzE3.js} +458 -160
  48. package/dist/_chunks/utils-CRy3kzE3.js.map +1 -0
  49. package/dist/ai-elements.es.js +5971 -5636
  50. package/dist/ai-elements.es.js.map +1 -1
  51. package/dist-vue/PkChatbot.js +1 -1
  52. package/dist-vue/PkChatbotAuth.js +1 -1
  53. package/dist-vue/PkChatbotEmptyState.js +1 -1
  54. package/dist-vue/PkChatbotInput.js +1 -1
  55. package/dist-vue/PkChatbotLocalFolders.d.ts +2 -0
  56. package/dist-vue/PkChatbotLocalFolders.js +1 -0
  57. package/dist-vue/PkChatbotMessages.js +1 -1
  58. package/dist-vue/PkChatbotStepPayload.js +1 -1
  59. package/dist-vue/PkChatbotStepToolDetail.js +1 -1
  60. package/dist-vue/PkChatbotSteps.js +1 -1
  61. package/dist-vue/PkChatbotViewChat.js +1 -1
  62. package/dist-vue/PkChatbotViewConversations.js +1 -1
  63. package/dist-vue/PkChatbotViewFiles.js +1 -1
  64. package/dist-vue/PkChatbotViewProfile.js +1 -1
  65. package/dist-vue/_chunks/{Agent-Da4XChe8.js → Agent-DKefaJeG.js} +445 -377
  66. package/dist-vue/_chunks/Agent-DKefaJeG.js.map +1 -0
  67. package/dist-vue/_chunks/{Document-CsQsUQYa.js → Document-B49E_gxT.js} +18 -18
  68. package/dist-vue/_chunks/{Document-CsQsUQYa.js.map → Document-B49E_gxT.js.map} +1 -1
  69. package/dist-vue/_chunks/{Media-CMiWEpdQ.js → Media-DtudATme.js} +12 -2
  70. package/dist-vue/_chunks/Media-DtudATme.js.map +1 -0
  71. package/dist-vue/_chunks/{PkChatbot-CITKd3qD.js → PkChatbot-8Fqlhwq5.js} +10 -9
  72. package/dist-vue/_chunks/PkChatbot-8Fqlhwq5.js.map +1 -0
  73. package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js → PkChatbotAuth-CIK2CFy-.js} +8 -8
  74. package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js.map → PkChatbotAuth-CIK2CFy-.js.map} +1 -1
  75. package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js → PkChatbotEmptyState-C_htXOSW.js} +2 -2
  76. package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js.map → PkChatbotEmptyState-C_htXOSW.js.map} +1 -1
  77. package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js +658 -0
  78. package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js.map +1 -0
  79. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +126 -0
  80. package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +1 -0
  81. package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js → PkChatbotMessages-DY8r4UKe.js} +49 -49
  82. package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js.map → PkChatbotMessages-DY8r4UKe.js.map} +1 -1
  83. package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js → PkChatbotStepPayload-BLjH1pkP.js} +2 -2
  84. package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js.map → PkChatbotStepPayload-BLjH1pkP.js.map} +1 -1
  85. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js → PkChatbotStepToolDetail-wIZmkvr-.js} +3 -3
  86. package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js.map → PkChatbotStepToolDetail-wIZmkvr-.js.map} +1 -1
  87. package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js → PkChatbotSteps-DG09GyCb.js} +7 -7
  88. package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js.map → PkChatbotSteps-DG09GyCb.js.map} +1 -1
  89. package/dist-vue/_chunks/{PkChatbotViewChat-DW1a9ZNl.js → PkChatbotViewChat-DTKfW1kr.js} +684 -666
  90. package/dist-vue/_chunks/PkChatbotViewChat-DTKfW1kr.js.map +1 -0
  91. package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js → PkChatbotViewConversations-NA_PCvZR.js} +4 -4
  92. package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js.map → PkChatbotViewConversations-NA_PCvZR.js.map} +1 -1
  93. package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js → PkChatbotViewFiles-D8_Khdu2.js} +3 -3
  94. package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js.map → PkChatbotViewFiles-D8_Khdu2.js.map} +1 -1
  95. package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js → PkChatbotViewProfile-iTBiQVsZ.js} +2 -2
  96. package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js.map → PkChatbotViewProfile-iTBiQVsZ.js.map} +1 -1
  97. package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js → PkFilePreview-sSb1Mmr2.js} +4 -4
  98. package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js.map → PkFilePreview-sSb1Mmr2.js.map} +1 -1
  99. package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js → PkFilePreviewDialog-DquXMRJD.js} +2 -2
  100. package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js.map → PkFilePreviewDialog-DquXMRJD.js.map} +1 -1
  101. package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js → PkImageEditorDialog-CrjpCier.js} +2 -2
  102. package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js.map → PkImageEditorDialog-CrjpCier.js.map} +1 -1
  103. package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js → PkStreamingMarkdown-CgKFdzCI.js} +23 -23
  104. package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js.map → PkStreamingMarkdown-CgKFdzCI.js.map} +1 -1
  105. package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js → PkToolChatFile-IEQxfzjM.js} +3 -3
  106. package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js.map → PkToolChatFile-IEQxfzjM.js.map} +1 -1
  107. package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js → PkToolRequestGeolocation-BmrbMPke.js} +2 -2
  108. package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js.map → PkToolRequestGeolocation-BmrbMPke.js.map} +1 -1
  109. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js → PkToolRequestOAuthConnection-yKgXyOUN.js} +2 -2
  110. package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js.map → PkToolRequestOAuthConnection-yKgXyOUN.js.map} +1 -1
  111. package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js → PkToolShowArtifact-CF90yFCe.js} +2 -2
  112. package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js.map → PkToolShowArtifact-CF90yFCe.js.map} +1 -1
  113. package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js → PkToolShowChart-CDR8ag4q.js} +2 -2
  114. package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js.map → PkToolShowChart-CDR8ag4q.js.map} +1 -1
  115. package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js → PkToolShowContactForm-DAdKUU4X.js} +2 -2
  116. package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js.map → PkToolShowContactForm-DAdKUU4X.js.map} +1 -1
  117. package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js → PkToolShowDiagram-Do20AvFb.js} +2 -2
  118. package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js.map → PkToolShowDiagram-Do20AvFb.js.map} +1 -1
  119. package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js → PkToolShowForm-DfFmPOt6.js} +4 -4
  120. package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js.map → PkToolShowForm-DfFmPOt6.js.map} +1 -1
  121. package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js → PkToolShowImageGallery-DA6KW2g_.js} +2 -2
  122. package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js.map → PkToolShowImageGallery-DA6KW2g_.js.map} +1 -1
  123. package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js → PkToolShowProductList-FcDDabPI.js} +2 -2
  124. package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js.map → PkToolShowProductList-FcDDabPI.js.map} +1 -1
  125. package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js → PkToolShowSources-afCYBONq.js} +3 -3
  126. package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js.map → PkToolShowSources-afCYBONq.js.map} +1 -1
  127. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js → PkToolShowSuggestedReply-C863wgtU.js} +2 -2
  128. package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js.map → PkToolShowSuggestedReply-C863wgtU.js.map} +1 -1
  129. package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js → PkToolShowVideo-kUiwxRlz.js} +2 -2
  130. package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js.map → PkToolShowVideo-kUiwxRlz.js.map} +1 -1
  131. package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js → PkToolShowWebPages-Dw9D1__u.js} +2 -2
  132. package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js.map → PkToolShowWebPages-Dw9D1__u.js.map} +1 -1
  133. package/dist-vue/_chunks/{createChatbotApiClient-Cd_2UI_O.js → createChatbotApiClient-DzrHp52e.js} +66 -65
  134. package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +1 -0
  135. package/dist-vue/_chunks/localFolders-ChZp8dLu.js +353 -0
  136. package/dist-vue/_chunks/localFolders-ChZp8dLu.js.map +1 -0
  137. package/dist-vue/_chunks/{useChatbotStore-Dir9Rc7K.js → useChatbotStore-DZlc7dzK.js} +1289 -1152
  138. package/dist-vue/_chunks/useChatbotStore-DZlc7dzK.js.map +1 -0
  139. package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js +55 -0
  140. package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js.map +1 -0
  141. package/dist-vue/_chunks/{utils-CibsowVe.js → utils-CY0jFRnG.js} +126 -107
  142. package/dist-vue/_chunks/utils-CY0jFRnG.js.map +1 -0
  143. package/dist-vue/api.js +1 -1
  144. package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
  145. package/dist-vue/composables.js +62 -10
  146. package/dist-vue/composables.js.map +1 -1
  147. package/dist-vue/index.js +4100 -4086
  148. package/dist-vue/index.js.map +1 -1
  149. package/dist-vue/locales.js +32 -0
  150. package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
  151. package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +7 -1
  152. package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +31 -0
  153. package/dist-vue/packages/components/src/chat/utils.d.ts +3 -2
  154. package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +1 -1
  155. package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
  156. package/dist-vue/packages/composable/src/chatbot/localFolders.d.ts +137 -0
  157. package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +46 -3
  158. package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -0
  159. package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
  160. package/dist-vue/packages/models/src/schema/HostTool.d.ts +5 -2
  161. package/dist-vue/packages/models/src/schema/LocalFolder.d.ts +78 -0
  162. package/dist-vue/packages/models/src/schema/Organization.d.ts +10 -0
  163. package/dist-vue/packages/models/src/schema/PageAccess.d.ts +4 -1
  164. package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +8 -0
  165. package/dist-vue/packages/models/src/schema/SubAgent.d.ts +8 -0
  166. package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
  167. package/dist-vue/style.css +1 -1
  168. package/package.json +1 -1
  169. package/dist/_chunks/Agent-DytagI8S.js.map +0 -1
  170. package/dist/_chunks/text-5F7L8EHi.js +0 -5
  171. package/dist/_chunks/text-5F7L8EHi.js.map +0 -1
  172. package/dist/_chunks/utils-78zQeKDO.js.map +0 -1
  173. package/dist-vue/_chunks/Agent-Da4XChe8.js.map +0 -1
  174. package/dist-vue/_chunks/Media-CMiWEpdQ.js.map +0 -1
  175. package/dist-vue/_chunks/PkChatbot-CITKd3qD.js.map +0 -1
  176. package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js +0 -708
  177. package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js.map +0 -1
  178. package/dist-vue/_chunks/PkChatbotViewChat-DW1a9ZNl.js.map +0 -1
  179. package/dist-vue/_chunks/createChatbotApiClient-Cd_2UI_O.js.map +0 -1
  180. package/dist-vue/_chunks/message-DuibQyHy.js +0 -61
  181. package/dist-vue/_chunks/message-DuibQyHy.js.map +0 -1
  182. package/dist-vue/_chunks/useChatbotStore-Dir9Rc7K.js.map +0 -1
  183. package/dist-vue/_chunks/utils-CibsowVe.js.map +0 -1
@@ -192,7 +192,7 @@ var pe = o({
192
192
  geolocationLongitude: i().optional(),
193
193
  geolocationAccuracy: i().optional(),
194
194
  geolocationCity: g().optional()
195
- }), me = "host", A = /^[a-z][a-z0-9_]{0,63}$/, he = 2e3, ge = o({
195
+ }), me = "host", A = /^[a-z][a-z0-9_]{0,63}$/, he = 2e3, ge = 32e3, _e = o({
196
196
  title: g().max(80).optional(),
197
197
  readOnlyHint: c().optional(),
198
198
  destructiveHint: c().optional()
@@ -201,7 +201,7 @@ o({
201
201
  name: g().regex(A),
202
202
  description: g().max(he).optional(),
203
203
  inputSchema: u(g(), f()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
204
- annotations: ge.optional()
204
+ annotations: _e.optional()
205
205
  }), o({
206
206
  content: n(o({
207
207
  type: l("text"),
@@ -209,7 +209,7 @@ o({
209
209
  })),
210
210
  isError: c().optional()
211
211
  });
212
- var _e = o({
212
+ var ve = o({
213
213
  enabled: c().default(!1),
214
214
  label: g().max(40).default(""),
215
215
  allowed: n(g().regex(A)).max(32).default([]),
@@ -217,25 +217,91 @@ var _e = o({
217
217
  confirmDestructive: c().default(!0),
218
218
  timeoutMs: i().int().min(5e3).max(12e4).default(3e4),
219
219
  maxCallsPerTurn: i().int().min(1).max(50).default(20)
220
- }), ve = _e.pick({
220
+ }), ye = ve.pick({
221
221
  label: !0,
222
222
  allowed: !0,
223
223
  requireConfirmation: !0,
224
224
  confirmDestructive: !0,
225
225
  timeoutMs: !0
226
- }).extend({ origins: n(g()) }), ye = (e) => {
226
+ }).extend({ origins: n(g()) }), be = (e) => {
227
227
  if (typeof e != "object" || !e) return !1;
228
228
  let { type: t, toolMetadata: n } = e;
229
229
  return t === "dynamic-tool" && n?.source === "host";
230
- }, be = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", xe = "The user refused this call. Do not repeat it unless the user asks.", j = /* @__PURE__ */ function(e) {
230
+ }, xe = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", Se = "The user refused this call. Do not repeat it unless the user asks.", Ce = 5e3, we = 20971520, Te = 2097152, Ee = 3e4, De = 10485760, Oe = o({
231
+ enabled: c().default(!1),
232
+ timeoutMs: i().int().min(5e3).max(12e4).default(3e4)
233
+ }), ke = Oe.pick({ timeoutMs: !0 });
234
+ o({ folders: n(o({ name: g().min(1).max(255) })).min(1).max(5) });
235
+ var Ae = /* @__PURE__ */ new Set([
236
+ ".git",
237
+ ".svn",
238
+ ".hg",
239
+ "node_modules",
240
+ ".ssh",
241
+ ".gnupg",
242
+ ".aws",
243
+ ".azure",
244
+ ".kube",
245
+ ".docker",
246
+ ".terraform",
247
+ "__pycache__",
248
+ ".venv",
249
+ "venv"
250
+ ]), je = /* @__PURE__ */ new Set([
251
+ ".env",
252
+ ".npmrc",
253
+ ".pypirc",
254
+ ".netrc",
255
+ "_netrc",
256
+ ".pgpass",
257
+ ".git-credentials",
258
+ ".htpasswd",
259
+ "credentials",
260
+ "credentials.json",
261
+ "secrets.json",
262
+ "secrets.yml",
263
+ "secrets.yaml",
264
+ "id_rsa",
265
+ "id_dsa",
266
+ "id_ecdsa",
267
+ "id_ed25519",
268
+ "known_hosts",
269
+ "authorized_keys",
270
+ ".ds_store",
271
+ "thumbs.db",
272
+ "desktop.ini"
273
+ ]), Me = /* @__PURE__ */ new Set([
274
+ "pem",
275
+ "key",
276
+ "p12",
277
+ "pfx",
278
+ "jks",
279
+ "keystore",
280
+ "kdbx",
281
+ "kdb",
282
+ "ppk",
283
+ "gpg",
284
+ "asc",
285
+ "ovpn",
286
+ "keychain",
287
+ "keychain-db"
288
+ ]), Ne = (e) => Ae.has(e.toLowerCase()), Pe = (e) => {
289
+ let t = e.toLowerCase();
290
+ if (je.has(t) || t.startsWith(".env.") || t.startsWith("id_rsa") || /^id_(dsa|ecdsa|ed25519)/.test(t)) return !0;
291
+ let n = t.lastIndexOf(".");
292
+ return n > 0 && Me.has(t.slice(n + 1));
293
+ }, Fe = (e) => {
294
+ let t = e.split("/").filter(Boolean);
295
+ return t.some((e, n) => n === t.length - 1 && Pe(e) || Ne(e));
296
+ }, j = /* @__PURE__ */ function(e) {
231
297
  return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
232
- }({}), Se = [
298
+ }({}), Ie = [
233
299
  j.Off,
234
300
  j.Read,
235
301
  j.Forms,
236
302
  j.Full
237
- ], Ce = (e, t) => Se.indexOf(e ?? j.Off) >= Se.indexOf(t);
238
- function we(e) {
303
+ ], Le = (e, t) => Ie.indexOf(e ?? j.Off) >= Ie.indexOf(t);
304
+ function Re(e) {
239
305
  if (!e.trim()) return !1;
240
306
  if (typeof document > "u") return !0;
241
307
  try {
@@ -244,21 +310,21 @@ function we(e) {
244
310
  return !1;
245
311
  }
246
312
  }
247
- var Te = o({
313
+ var ze = o({
248
314
  level: m(j).default(j.Off),
249
- excludeSelectors: n(g().max(200).refine(we, "Not a valid CSS selector")).max(50).default([]),
315
+ excludeSelectors: n(g().max(200).refine(Re, "Not a valid CSS selector")).max(50).default([]),
250
316
  confirmEveryAction: c().default(!1),
251
317
  pointer: c().default(!1),
252
318
  notice: u(g(), g().max(500)).optional(),
253
319
  acknowledgedBy: g().optional(),
254
320
  acknowledgedAt: h().optional(),
255
321
  acknowledgedLevel: m(j).optional()
256
- }), Ee = (e) => e.startsWith("page_") || e.startsWith("form_"), De = Te.pick({
322
+ }), Be = (e) => e.startsWith("page_") || e.startsWith("form_") || e.startsWith("folder_"), Ve = ze.pick({
257
323
  level: !0,
258
324
  excludeSelectors: !0,
259
325
  confirmEveryAction: !0,
260
326
  notice: !0
261
- }).extend({ pointer: c().optional() }), Oe = ["fill-fields", "fill-choose"];
327
+ }).extend({ pointer: c().optional() }), He = ["fill-fields", "fill-choose"];
262
328
  o({
263
329
  kind: m(["element", "text"]),
264
330
  label: g().max(200),
@@ -275,7 +341,7 @@ o({
275
341
  features: n(g().max(40)).max(16).default([])
276
342
  });
277
343
  // ../../packages/models/src/schema/Media.ts
278
- var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, ke = new Set([
344
+ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ue = new Set([
279
345
  [".mp3", "audio/mpeg"],
280
346
  [".m4a", "audio/mp4"],
281
347
  [".m4a", "audio/x-m4a"],
@@ -288,7 +354,7 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, ke = new Set([
288
354
  [".opus", "audio/ogg"],
289
355
  [".flac", "audio/flac"],
290
356
  [".flac", "audio/x-flac"]
291
- ].map(([e]) => e)), Ae = /* @__PURE__ */ new Set([
357
+ ].map(([e]) => e)), We = /* @__PURE__ */ new Set([
292
358
  ".amr",
293
359
  ".3ga",
294
360
  ".aif",
@@ -298,9 +364,9 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, ke = new Set([
298
364
  ".mka",
299
365
  ".weba",
300
366
  ".wma"
301
- ]), N = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", je = (e, t) => {
302
- let n = qe(e ?? "");
303
- return N(t).startsWith("audio/") || ke.has(n) || Ae.has(n);
367
+ ]), N = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Ge = (e, t) => {
368
+ let n = st(e ?? "");
369
+ return N(t).startsWith("audio/") || Ue.has(n) || We.has(n);
304
370
  }, P = [
305
371
  {
306
372
  extensions: [".html", ".htm"],
@@ -456,12 +522,12 @@ var M = /^[a-z]+\/[a-z0-9\-+.]+$/i, ke = new Set([
456
522
  }
457
523
  ];
458
524
  P.map((e) => e.mimeType);
459
- var Me = (e) => P.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Ne = (e, t, n) => {
525
+ var Ke = (e) => P.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), qe = (e, t, n) => {
460
526
  let r = N(t);
461
527
  if (n.includes(r)) return r;
462
- let i = qe(e ?? ""), a = P.find((e) => e.extensions.includes(i)), o = r === "" || r === "application/octet-stream" || r === "text/plain";
528
+ let i = st(e ?? ""), a = P.find((e) => e.extensions.includes(i)), o = r === "" || r === "application/octet-stream" || r === "text/plain";
463
529
  return a && n.includes(a.mimeType) && (o || a.aliases.includes(r)) ? a.mimeType : t ?? "";
464
- }, Pe = (e, t) => {
530
+ }, Je = (e, t) => {
465
531
  if (t.length === 0) return !0;
466
532
  let n = P.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
467
533
  "",
@@ -483,19 +549,19 @@ o({
483
549
  durationSeconds: i().optional(),
484
550
  model: g().optional()
485
551
  });
486
- var Fe = /* @__PURE__ */ function(e) {
552
+ var Ye = /* @__PURE__ */ function(e) {
487
553
  return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
488
- }({}), Ie = o({
554
+ }({}), Xe = o({
489
555
  type: l("azure-blob"),
490
556
  blobUri: a(),
491
557
  containerName: g().min(1),
492
558
  pathRelativeToContainer: g().min(1)
493
- }), Le = o({
559
+ }), Ze = o({
494
560
  type: l("s3"),
495
561
  bucket: g().min(1),
496
562
  key: g().min(1),
497
563
  region: g().min(1)
498
- }), Re = p("type", [Ie, Le]), F = o({
564
+ }), Qe = p("type", [Xe, Ze]), F = o({
499
565
  type: g().min(1),
500
566
  name: g().min(1),
501
567
  mimeType: g().regex(M),
@@ -505,11 +571,11 @@ var Fe = /* @__PURE__ */ function(e) {
505
571
  metadata: u(g(), g()).default({}),
506
572
  tags: u(g(), g()).default({})
507
573
  }).extend({
508
- storageHandle: Re,
509
- storagePolicy: m(Fe),
574
+ storageHandle: Qe,
575
+ storagePolicy: m(Ye),
510
576
  signData: g().optional(),
511
577
  storedFileName: g().min(1)
512
- }), ze = o({
578
+ }), $e = o({
513
579
  name: g().min(1),
514
580
  src: F,
515
581
  srcSet: n(F).default([]),
@@ -534,33 +600,43 @@ o({
534
600
  });
535
601
  var I = /* @__PURE__ */ function(e) {
536
602
  return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
537
- }({}), Be = o({
603
+ }({}), et = o({
538
604
  type: l(I.picture),
539
605
  width: i().positive(),
540
606
  height: i().positive(),
541
607
  blurhash: g().optional()
542
- }), Ve = o({
608
+ }), tt = o({
543
609
  type: l(I.video),
544
610
  width: i().positive(),
545
611
  height: i().positive(),
546
612
  duration: i().nonnegative()
547
- }), He = o({
613
+ }), nt = o({
548
614
  type: l(I.audio),
549
615
  duration: i().nonnegative()
550
- }), Ue = o({ type: l(I.office) }), We = o({ type: l(I.archive) }), Ge = o({ type: l(I.binary) }), Ke = o({ type: l(I.executable) });
616
+ }), rt = o({ type: l(I.office) }), it = o({ type: l(I.archive) }), at = o({ type: l(I.binary) }), ot = o({ type: l(I.executable) });
551
617
  p("type", [
552
- Be,
553
- Ve,
554
- He,
555
- Ue,
556
- We,
557
- Ge,
558
- Ke
618
+ et,
619
+ tt,
620
+ nt,
621
+ rt,
622
+ it,
623
+ at,
624
+ ot
559
625
  ]);
560
- var qe = (e) => {
626
+ var st = (e) => {
561
627
  let t = e.lastIndexOf(".");
562
628
  return t === -1 ? "" : e.slice(t).toLowerCase();
563
- }, Je = [
629
+ }, ct = (e, t = 2) => {
630
+ if (e === 0) return "0 Bytes";
631
+ let n = 1024, r = t < 0 ? 0 : t, i = [
632
+ "Bytes",
633
+ "KB",
634
+ "MB",
635
+ "GB",
636
+ "TB"
637
+ ], a = Math.floor(Math.log(e) / Math.log(n));
638
+ return `${parseFloat((e / n ** a).toFixed(r))} ${i[a]}`;
639
+ }, lt = [
564
640
  "explain",
565
641
  "summarize",
566
642
  "rewrite",
@@ -568,7 +644,7 @@ var qe = (e) => {
568
644
  "proofread",
569
645
  "translate",
570
646
  "chart"
571
- ], Ye = [
647
+ ], ut = [
572
648
  "page",
573
649
  "word",
574
650
  "excel"
@@ -585,8 +661,8 @@ var qe = (e) => {
585
661
  "summarize",
586
662
  "chart"
587
663
  ]
588
- }, Xe = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), Ze = (e) => u(g(), g().trim().min(1).max(e));
589
- function Qe(e) {
664
+ }, dt = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), ft = (e) => u(g(), g().trim().min(1).max(e));
665
+ function pt(e) {
590
666
  let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
591
667
  return {
592
668
  empty: n.length === 0 && r.length === 0,
@@ -594,14 +670,14 @@ function Qe(e) {
594
670
  prompt: n.filter((e) => !r.includes(e))
595
671
  };
596
672
  }
597
- var $e = o({
673
+ var mt = o({
598
674
  id: g().trim().min(1).max(64),
599
- label: Ze(40),
600
- prompt: Ze(500),
601
- icon: m(Xe).optional().catch(void 0)
675
+ label: ft(40),
676
+ prompt: ft(500),
677
+ icon: m(dt).optional().catch(void 0)
602
678
  });
603
- function et(e, t, n = {}) {
604
- for (let r of Ye) {
679
+ function ht(e, t, n = {}) {
680
+ for (let r of ut) {
605
681
  let i = e.selectionActions?.[r];
606
682
  if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
607
683
  let i = [
@@ -609,7 +685,7 @@ function et(e, t, n = {}) {
609
685
  r,
610
686
  "actions",
611
687
  e
612
- ], a = Qe(n);
688
+ ], a = pt(n);
613
689
  a.empty && t.addIssue({
614
690
  code: "custom",
615
691
  message: "An action needs a label and an instruction",
@@ -630,7 +706,7 @@ function et(e, t, n = {}) {
630
706
  var R = (e, t) => o({
631
707
  enabled: c().default(t),
632
708
  builtIns: n(m(e)).default(() => [...e]),
633
- actions: n($e).default([])
709
+ actions: n(mt).default([])
634
710
  }).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
635
711
  message: "A built-in action is listed twice",
636
712
  path: ["builtIns"]
@@ -640,208 +716,208 @@ var R = (e, t) => o({
640
716
  }).refine((e) => e.builtIns.length + e.actions.length <= 4, {
641
717
  message: "At most 4 actions, built-in and the agent's together",
642
718
  path: ["actions"]
643
- }), tt = R(L.page, !1), nt = R(L.word, !0), rt = R(L.excel, !0), it = o({
644
- page: tt.optional().default(() => tt.parse({})),
645
- word: nt.optional().default(() => nt.parse({})),
646
- excel: rt.optional().default(() => rt.parse({}))
647
- }), at = o({
648
- builtIns: n(m(Je)),
649
- actions: n($e)
650
- }), ot = o({
651
- page: at.optional(),
652
- word: at.optional(),
653
- excel: at.optional()
654
- }), z = /* @__PURE__ */ function(e) {
719
+ }), gt = R(L.page, !1), _t = R(L.word, !0), vt = R(L.excel, !0), yt = o({
720
+ page: gt.optional().default(() => gt.parse({})),
721
+ word: _t.optional().default(() => _t.parse({})),
722
+ excel: vt.optional().default(() => vt.parse({}))
723
+ }), z = o({
724
+ builtIns: n(m(lt)),
725
+ actions: n(mt)
726
+ }), bt = o({
727
+ page: z.optional(),
728
+ word: z.optional(),
729
+ excel: z.optional()
730
+ }), B = /* @__PURE__ */ function(e) {
655
731
  return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
656
- }({}), B = /* @__PURE__ */ function(e) {
732
+ }({}), V = /* @__PURE__ */ function(e) {
657
733
  return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
658
734
  }({});
659
- B.Organization, B.Restricted;
660
- var V = /* @__PURE__ */ function(e) {
735
+ V.Organization, V.Restricted;
736
+ var H = /* @__PURE__ */ function(e) {
661
737
  return e.Chat = "chat", e.Reasoning = "reasoning", e;
662
- }({}), H = /* @__PURE__ */ function(e) {
738
+ }({}), U = /* @__PURE__ */ function(e) {
663
739
  return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
664
- }({}), st = [
740
+ }({}), xt = [
665
741
  "none",
666
742
  "low",
667
743
  "medium",
668
744
  "high",
669
745
  "xhigh",
670
746
  "max"
671
- ], ct = [
747
+ ], St = [
672
748
  "low",
673
749
  "medium",
674
750
  "high",
675
751
  "xhigh",
676
752
  "max"
677
- ], lt = [
753
+ ], Ct = [
678
754
  "minimal",
679
755
  "low",
680
756
  "medium",
681
757
  "high"
682
- ], ut = [
758
+ ], wt = [
683
759
  "auto",
684
760
  "detailed",
685
761
  "concise"
686
- ], dt = o({
687
- reasoningEffort: m(st).optional(),
688
- reasoningSummary: m(ut).optional()
689
- }), ft = o({
762
+ ], Tt = o({
763
+ reasoningEffort: m(xt).optional(),
764
+ reasoningSummary: m(wt).optional()
765
+ }), Et = o({
690
766
  type: m([
691
767
  "adaptive",
692
768
  "enabled",
693
769
  "disabled"
694
770
  ]).optional(),
695
- effort: m(ct).optional(),
771
+ effort: m(St).optional(),
696
772
  display: m(["summarized", "omitted"]).optional(),
697
773
  budgetTokens: i().int().positive().optional()
698
- }), pt = o({
699
- thinkingLevel: m(lt).optional(),
774
+ }), Dt = o({
775
+ thinkingLevel: m(Ct).optional(),
700
776
  thinkingBudget: i().int().optional(),
701
777
  includeThoughts: c().optional()
702
- }), mt = o({ type: m(["enabled", "disabled"]).optional() }), U = [
778
+ }), Ot = o({ type: m(["enabled", "disabled"]).optional() }), W = [
703
779
  "alibaba",
704
780
  "meta",
705
781
  "moonshotai",
706
782
  "spacexai",
707
783
  "xiaomi",
708
784
  "zai"
709
- ], ht = [
785
+ ], kt = [
710
786
  "none",
711
787
  "minimal",
712
788
  "low",
713
789
  "medium",
714
790
  "high",
715
791
  "xhigh"
716
- ], W = o({ reasoningEffort: m(ht).optional() });
717
- function G(e, t) {
792
+ ], G = o({ reasoningEffort: m(kt).optional() });
793
+ function K(e, t) {
718
794
  return e && t.includes(e) ? e : void 0;
719
795
  }
720
- var gt = o({
721
- openai: dt.optional(),
722
- anthropic: ft.optional(),
723
- google: pt.optional(),
724
- deepseek: mt.optional(),
725
- alibaba: W.optional(),
726
- meta: W.optional(),
727
- moonshotai: W.optional(),
728
- spacexai: W.optional(),
729
- xiaomi: W.optional(),
730
- zai: W.optional()
796
+ var At = o({
797
+ openai: Tt.optional(),
798
+ anthropic: Et.optional(),
799
+ google: Dt.optional(),
800
+ deepseek: Ot.optional(),
801
+ alibaba: G.optional(),
802
+ meta: G.optional(),
803
+ moonshotai: G.optional(),
804
+ spacexai: G.optional(),
805
+ xiaomi: G.optional(),
806
+ zai: G.optional()
731
807
  });
732
- function _t(e) {
808
+ function jt(e) {
733
809
  if (!e || typeof e != "object") return e;
734
810
  let t = e, n = [
735
811
  "openai",
736
812
  "anthropic",
737
813
  "google",
738
814
  "deepseek",
739
- ...U
815
+ ...W
740
816
  ].some((e) => e in t);
741
817
  if ("effort" in t && !n) {
742
818
  let e = t.effort, n = t.reasoningSummary, r = {};
743
819
  if (e && e !== "off" && e !== "none") {
744
- let t = G(e, st), i = G(n, ut);
820
+ let t = K(e, xt), i = K(n, wt);
745
821
  (t || i) && (r.openai = {
746
822
  ...t && { reasoningEffort: t },
747
823
  ...i && { reasoningSummary: i }
748
824
  });
749
- let a = G(e, ct);
825
+ let a = K(e, St);
750
826
  a && (r.anthropic = {
751
827
  type: "adaptive",
752
828
  effort: a
753
829
  });
754
- let o = G(e === "xhigh" || e === "max" ? "high" : e, lt);
830
+ let o = K(e === "xhigh" || e === "max" ? "high" : e, Ct);
755
831
  o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
756
- let s = G(e === "max" ? "xhigh" : e, ht);
757
- if (s) for (let e of U) r[e] = { reasoningEffort: s };
832
+ let s = K(e === "max" ? "xhigh" : e, kt);
833
+ if (s) for (let e of W) r[e] = { reasoningEffort: s };
758
834
  } else {
759
835
  r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
760
- for (let e of U) r[e] = { reasoningEffort: "none" };
836
+ for (let e of W) r[e] = { reasoningEffort: "none" };
761
837
  }
762
838
  return r;
763
839
  }
764
840
  return e;
765
841
  }
766
- var vt = _(f(), gt, _t).optional(), K = /* @__PURE__ */ function(e) {
842
+ var Mt = _(f(), At, jt).optional(), q = /* @__PURE__ */ function(e) {
767
843
  return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.CronTasks = "cronTasks", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowChart = "showChart", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
768
- }({}), yt = "mcp-", bt = "api-", xt = "subagent-";
769
- function St(e) {
770
- return e === K.RequestConfirm || e === K.ShowArtifact || e === K.ShowCalendarEvent || e === K.ShowChart || e === K.ShowComparison || e === K.ShowContactForm || e === K.ShowDiagram || e === K.ShowEmail || e === K.ShowImageGallery || e === K.ShowLocation || e === K.ShowMessage || e === K.ShowForm || e === K.ShowMultipleChoice || e === K.ShowProductList || e === K.ShowQrCode || e === K.ShowSources || e === K.ShowSuggestedReply || e === K.ShowVideo || e === K.ShowWeather || e === K.ShowWebPages;
844
+ }({}), Nt = "mcp-", Pt = "api-", Ft = "subagent-";
845
+ function It(e) {
846
+ return e === q.RequestConfirm || e === q.ShowArtifact || e === q.ShowCalendarEvent || e === q.ShowChart || e === q.ShowComparison || e === q.ShowContactForm || e === q.ShowDiagram || e === q.ShowEmail || e === q.ShowImageGallery || e === q.ShowLocation || e === q.ShowMessage || e === q.ShowForm || e === q.ShowMultipleChoice || e === q.ShowProductList || e === q.ShowQrCode || e === q.ShowSources || e === q.ShowSuggestedReply || e === q.ShowVideo || e === q.ShowWeather || e === q.ShowWebPages;
771
847
  }
772
- var Ct = /* @__PURE__ */ new Set([
848
+ var Lt = /* @__PURE__ */ new Set([
773
849
  "editSpreadsheet",
774
850
  "editWordDocument",
775
- K.CreateSpreadsheet,
776
- K.CreateWordDocument
851
+ q.CreateSpreadsheet,
852
+ q.CreateWordDocument
777
853
  ]);
778
854
  [
779
- K.RequestConfirm,
780
- K.ShowArtifact,
781
- K.ShowWeather,
782
- K.ShowLocation,
783
- K.ShowComparison,
784
- K.ShowProductList,
785
- K.ShowWebPages,
786
- K.ShowImageGallery,
787
- K.ShowVideo,
788
- K.ShowSources,
789
- K.ShowSuggestedReply,
790
- K.ShowCalendarEvent,
791
- K.ShowEmail,
792
- K.ShowMessage,
793
- K.ShowForm,
794
- ...Ct,
795
- K.ShareDocument
855
+ q.RequestConfirm,
856
+ q.ShowArtifact,
857
+ q.ShowWeather,
858
+ q.ShowLocation,
859
+ q.ShowComparison,
860
+ q.ShowProductList,
861
+ q.ShowWebPages,
862
+ q.ShowImageGallery,
863
+ q.ShowVideo,
864
+ q.ShowSources,
865
+ q.ShowSuggestedReply,
866
+ q.ShowCalendarEvent,
867
+ q.ShowEmail,
868
+ q.ShowMessage,
869
+ q.ShowForm,
870
+ ...Lt,
871
+ q.ShareDocument
796
872
  ];
797
- var wt = /* @__PURE__ */ new Set([
798
- K.RequestConfirm,
799
- K.RequestGeolocation,
800
- K.ShowForm,
801
- K.ShowMultipleChoice,
873
+ var Rt = /* @__PURE__ */ new Set([
874
+ q.RequestConfirm,
875
+ q.RequestGeolocation,
876
+ q.ShowForm,
877
+ q.ShowMultipleChoice,
802
878
  "requestOAuthConnection"
803
879
  ]);
804
- function Tt(e) {
805
- return wt.has(e);
880
+ function zt(e) {
881
+ return Rt.has(e);
806
882
  }
807
- var Et = /* @__PURE__ */ new Set([
808
- K.RequestConfirm,
809
- K.RequestGeolocation,
810
- K.ShowArtifact,
811
- K.ShowCalendarEvent,
812
- K.ShowChart,
813
- K.ShowContactForm,
814
- K.ShowComparison,
815
- K.ShowDiagram,
816
- K.ShowEmail,
817
- K.ShowForm,
818
- K.ShowImageGallery,
819
- K.ShowLocation,
820
- K.ShowMessage,
821
- K.ShowMultipleChoice,
822
- K.ShowProductList,
823
- K.ShowQrCode,
824
- K.ShowSources,
825
- K.ShowSuggestedReply,
826
- K.ShowVideo,
827
- K.ShowWeather,
828
- K.ShowWebPages
829
- ]), Dt = "Shown on the caller's screen";
830
- function Ot(e) {
831
- return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Dt));
883
+ var Bt = /* @__PURE__ */ new Set([
884
+ q.RequestConfirm,
885
+ q.RequestGeolocation,
886
+ q.ShowArtifact,
887
+ q.ShowCalendarEvent,
888
+ q.ShowChart,
889
+ q.ShowContactForm,
890
+ q.ShowComparison,
891
+ q.ShowDiagram,
892
+ q.ShowEmail,
893
+ q.ShowForm,
894
+ q.ShowImageGallery,
895
+ q.ShowLocation,
896
+ q.ShowMessage,
897
+ q.ShowMultipleChoice,
898
+ q.ShowProductList,
899
+ q.ShowQrCode,
900
+ q.ShowSources,
901
+ q.ShowSuggestedReply,
902
+ q.ShowVideo,
903
+ q.ShowWeather,
904
+ q.ShowWebPages
905
+ ]), Vt = "Shown on the caller's screen";
906
+ function Ht(e) {
907
+ return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Vt));
832
908
  }
833
- var kt = o({
909
+ var Ut = o({
834
910
  maxSteps: i().int().min(1).max(10).optional().default(5),
835
911
  maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
836
- }), At = /* @__PURE__ */ function(e) {
912
+ }), Wt = /* @__PURE__ */ function(e) {
837
913
  return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
838
- }({}), jt = [
914
+ }({}), Gt = [
839
915
  "perplexity_search",
840
916
  "parallel_search",
841
917
  "web_search",
842
918
  "openai_web_search",
843
919
  "google_search"
844
- ], Mt = o({
920
+ ], Kt = o({
845
921
  maxResults: i().int().min(1).max(20).optional(),
846
922
  maxTokens: i().int().positive().max(1e6).optional(),
847
923
  maxTokensPerPage: i().int().positive().optional(),
@@ -854,7 +930,7 @@ var kt = o({
854
930
  "month",
855
931
  "year"
856
932
  ]).optional()
857
- }), Nt = o({
933
+ }), qt = o({
858
934
  mode: m(["one-shot", "agentic"]).optional(),
859
935
  maxResults: i().int().min(1).max(20).optional(),
860
936
  sourcePolicy: o({
@@ -867,7 +943,7 @@ var kt = o({
867
943
  maxCharsTotal: i().int().positive().optional()
868
944
  }).optional(),
869
945
  fetchPolicy: o({ maxAgeSeconds: i().int().positive().optional() }).optional()
870
- }), Pt = o({
946
+ }), Jt = o({
871
947
  openai: o({}).optional(),
872
948
  anthropic: o({
873
949
  maxUses: i().int().positive().optional(),
@@ -882,30 +958,30 @@ var kt = o({
882
958
  }).optional()
883
959
  }).optional(),
884
960
  google: o({}).optional()
885
- }), q = o({
961
+ }), J = o({
886
962
  enabled: c().default(!1),
887
- provider: m(At).optional().default(At.Native),
888
- perplexity: Mt.optional(),
889
- parallel: Nt.optional(),
890
- native: Pt.optional()
891
- }), Ft = o({ useAllUserKb: c().default(!1) }), It = o({ useAllUserFiles: c().default(!1) }), Lt = o({ enabled: c().default(!1) }), J = o({ enabled: c().default(!1) }), Rt = o({ tools: n(g()).default([]) }), zt = o({
892
- disabled: n(m(K)).default([
893
- K.UserMemory,
894
- K.SearchInUserFiles,
895
- K.RunWorker,
896
- K.FetchTeamsChannelHistory,
897
- K.ScheduleWakeup,
898
- K.CronTasks
963
+ provider: m(Wt).optional().default(Wt.Native),
964
+ perplexity: Kt.optional(),
965
+ parallel: qt.optional(),
966
+ native: Jt.optional()
967
+ }), Yt = o({ useAllUserKb: c().default(!1) }), Xt = o({ useAllUserFiles: c().default(!1) }), Zt = o({ enabled: c().default(!1) }), Y = o({ enabled: c().default(!1) }), Qt = o({ tools: n(g()).default([]) }), $t = o({
968
+ disabled: n(m(q)).default([
969
+ q.UserMemory,
970
+ q.SearchInUserFiles,
971
+ q.RunWorker,
972
+ q.FetchTeamsChannelHistory,
973
+ q.ScheduleWakeup,
974
+ q.CronTasks
899
975
  ]),
900
- showForm: kt.optional().default(() => kt.parse({})),
901
- webSearch: q.optional().default(() => q.parse({})),
902
- userMemory: Ft.optional().default(() => Ft.parse({})),
903
- userFiles: It.optional().default(() => It.parse({})),
904
- shareDocument: Lt.optional().default(() => Lt.parse({})),
905
- createSpreadsheet: J.optional().default(() => J.parse({})),
906
- createWordDocument: J.optional().default(() => J.parse({})),
907
- approval: Rt.optional().default(() => Rt.parse({}))
908
- }), Y = o({
976
+ showForm: Ut.optional().default(() => Ut.parse({})),
977
+ webSearch: J.optional().default(() => J.parse({})),
978
+ userMemory: Yt.optional().default(() => Yt.parse({})),
979
+ userFiles: Xt.optional().default(() => Xt.parse({})),
980
+ shareDocument: Zt.optional().default(() => Zt.parse({})),
981
+ createSpreadsheet: Y.optional().default(() => Y.parse({})),
982
+ createWordDocument: Y.optional().default(() => Y.parse({})),
983
+ approval: Qt.optional().default(() => Qt.parse({}))
984
+ }), X = o({
909
985
  freshness: o({
910
986
  enabled: c().default(!1),
911
987
  scale: i().int().min(86400).max(31536e3).default(7776e3),
@@ -917,27 +993,27 @@ var kt = o({
917
993
  diversity: i().min(0).max(1).default(.3),
918
994
  candidatesLimit: i().int().min(20).max(100).default(50)
919
995
  }).prefault({})
920
- }).prefault({}), Bt = o({
996
+ }).prefault({}), en = o({
921
997
  prompt: g().optional(),
922
998
  temperature: i().min(0).max(2).optional().default(.6),
923
999
  maxOutputTokens: i().positive().optional(),
924
1000
  presencePenalty: i().min(-2).max(2).optional(),
925
1001
  frequencyPenalty: i().min(-2).max(2).optional(),
926
- searchMode: m(H).optional().default(H.Balanced),
1002
+ searchMode: m(U).optional().default(U.Balanced),
927
1003
  limit: i().positive().max(100).optional().default(10),
928
1004
  maxStepCount: i().int().min(1).max(40).optional().default(10),
929
- reasoning: vt,
930
- ranking: Y.optional().default(() => Y.parse({}))
931
- }), X = _(f(), u(g(), g()), (e) => typeof e == "string" ? { it: e } : e), Vt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Ht = /* @__PURE__ */ function(e) {
1005
+ reasoning: Mt,
1006
+ ranking: X.optional().default(() => X.parse({}))
1007
+ }), Z = _(f(), u(g(), g()), (e) => typeof e == "string" ? { it: e } : e), tn = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", nn = /* @__PURE__ */ function(e) {
932
1008
  return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
933
- }({}), Z = /* @__PURE__ */ function(e) {
934
- return e.Floating = "floating", e.Copilot = "copilot", e;
935
1009
  }({}), Q = /* @__PURE__ */ function(e) {
936
- return e.Solid = "solid", e.Glass = "glass", e;
1010
+ return e.Floating = "floating", e.Copilot = "copilot", e;
937
1011
  }({}), $ = /* @__PURE__ */ function(e) {
1012
+ return e.Solid = "solid", e.Glass = "glass", e;
1013
+ }({}), rn = /* @__PURE__ */ function(e) {
938
1014
  return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
939
- }({}), Ut = Object.values($), Wt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
940
- function Gt(e) {
1015
+ }({}), an = Object.values(rn), on = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
1016
+ function sn(e) {
941
1017
  let t = e.trim().toLowerCase();
942
1018
  if (!t) return "";
943
1019
  try {
@@ -946,8 +1022,8 @@ function Gt(e) {
946
1022
  return t;
947
1023
  }
948
1024
  }
949
- var Kt = o({
950
- media: ze.optional(),
1025
+ var cn = o({
1026
+ media: $e.optional(),
951
1027
  logo: g().optional(),
952
1028
  theme: m([
953
1029
  "light",
@@ -967,32 +1043,32 @@ var Kt = o({
967
1043
  ]).optional().default("auto"),
968
1044
  glowSecondColor: g().regex(b).optional(),
969
1045
  useColorsForAgentHeader: c().optional().default(!1),
970
- initialMessage: X.optional(),
971
- greeting: n(X).min(1).max(10).optional(),
972
- messagePlaceholder: X.optional(),
1046
+ initialMessage: Z.optional(),
1047
+ greeting: n(Z).min(1).max(10).optional(),
1048
+ messagePlaceholder: Z.optional(),
973
1049
  nextMessageSuggestion: c().optional().default(!1),
974
- dismissableNotice: X.optional(),
975
- footerMessage: X.optional(),
976
- privacyPolicyNotice: X.optional(),
1050
+ dismissableNotice: Z.optional(),
1051
+ footerMessage: Z.optional(),
1052
+ privacyPolicyNotice: Z.optional(),
977
1053
  interactiveLogin: c().optional().default(!0),
978
1054
  welcomePopup: c().optional().default(!1),
979
1055
  floatingButtonPosition: m(["left", "right"]).optional().default("right"),
980
- layout: m(Z).optional().default(Z.Floating),
981
- appearance: m(Q).optional().default(Q.Solid),
1056
+ layout: m(Q).optional().default(Q.Floating),
1057
+ appearance: m($).optional().default($.Solid),
982
1058
  hideFloatingButton: c().optional().default(!1),
983
1059
  workingGlow: c().optional().default(!0),
984
1060
  copilotPageCss: g().optional(),
985
1061
  maxMessageLength: i().int().positive().optional(),
986
- widgetUrl: a().default(Vt),
1062
+ widgetUrl: a().default(tn),
987
1063
  loadDelay: i().int().min(0).max(3e4).optional().default(0),
988
- loaderStrategy: m(Ht).optional().default(Ht.InlineModule),
1064
+ loaderStrategy: m(nn).optional().default(nn.InlineModule),
989
1065
  customCss: g().optional(),
990
1066
  smoothStream: c().optional().default(!1),
991
1067
  showExtendedSteps: c().optional().default(!1),
992
1068
  showReasoning: c().optional().default(!0),
993
1069
  holdExternalImages: c().optional().default(!1),
994
- imageHosts: n(g().overwrite(Gt).refine((e) => e === "" || Wt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
995
- }), qt = [
1070
+ imageHosts: n(g().overwrite(sn).refine((e) => e === "" || on.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
1071
+ }), ln = [
996
1072
  "image/jpeg",
997
1073
  "image/png",
998
1074
  "image/gif",
@@ -1001,20 +1077,20 @@ var Kt = o({
1001
1077
  "text/plain",
1002
1078
  "text/markdown",
1003
1079
  "text/csv"
1004
- ], Jt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Yt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Xt = o({
1080
+ ], un = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", dn = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", fn = o({
1005
1081
  enabled: c().default(!1),
1006
1082
  maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
1007
- allowedMimeTypes: n(g().regex(M)).optional().default([...qt]),
1083
+ allowedMimeTypes: n(g().regex(M)).optional().default([...ln]),
1008
1084
  maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
1009
1085
  maxFilesPerChat: i().int().positive().max(50).optional().default(20)
1010
- }), Zt = o({
1086
+ }), pn = o({
1011
1087
  zeroDataRetention: c().default(!0),
1012
1088
  disallowPromptTraining: c().default(!0),
1013
1089
  providerTimeoutMs: i().int().min(1e3).max(789e3).optional(),
1014
1090
  inferenceRegion: m(oe).optional()
1015
- }), Qt = o({ enabled: c().default(!1) }), $t = /* @__PURE__ */ function(e) {
1091
+ }), mn = o({ enabled: c().default(!1) }), hn = /* @__PURE__ */ function(e) {
1016
1092
  return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
1017
- }({}), en = o({ mode: m($t).default($t.Off) }), tn = o({
1093
+ }({}), gn = o({ mode: m(hn).default(hn.Off) }), _n = o({
1018
1094
  enabled: c().default(!1),
1019
1095
  voiceId: g().optional(),
1020
1096
  language: g().min(2).max(5).default("it"),
@@ -1033,44 +1109,45 @@ var Kt = o({
1033
1109
  providerAgentId: g().optional(),
1034
1110
  providerSecretId: g().optional(),
1035
1111
  providerApiKeyId: g().optional()
1036
- }), nn = o({ enabled: c() }), rn = l("automatic");
1112
+ }), vn = o({ enabled: c() }), yn = l("automatic");
1037
1113
  o({
1038
1114
  chatId: g().min(1).optional(),
1039
1115
  deviceContext: pe.optional(),
1040
1116
  externalContext: u(g(), f()).optional(),
1041
1117
  pageTools: f().optional(),
1042
- confirmations: rn.optional()
1118
+ confirmations: yn.optional()
1043
1119
  });
1044
- var an = o({
1120
+ var bn = o({
1045
1121
  sessionId: g(),
1046
1122
  signedUrl: g(),
1047
1123
  providerAgentId: g(),
1048
1124
  chatId: g(),
1049
1125
  maxSessionSeconds: i().int()
1050
- }), on = o({
1126
+ }), xn = o({
1051
1127
  voiceId: g(),
1052
1128
  name: g(),
1053
1129
  category: g().optional(),
1054
1130
  previewUrl: g().optional(),
1055
1131
  labels: u(g(), g()).optional()
1056
1132
  });
1057
- n(on);
1058
- var sn = o({ allowAutomatic: c().default(!1) }), cn = o({ allowAutomatic: l(!0) }), ln = o({
1059
- model: Bt,
1060
- interface: Kt,
1061
- tools: zt.optional().default(() => zt.parse({})),
1062
- fileUpload: Xt.optional().default(() => Xt.parse({})),
1063
- gatewayOptions: Zt.optional().default(() => Zt.parse({})),
1064
- channels: n(m($)).optional().default(() => [...Ut]),
1133
+ n(xn);
1134
+ var Sn = o({ allowAutomatic: c().default(!1) }), Cn = o({ allowAutomatic: l(!0) }), wn = o({
1135
+ model: en,
1136
+ interface: cn,
1137
+ tools: $t.optional().default(() => $t.parse({})),
1138
+ fileUpload: fn.optional().default(() => fn.parse({})),
1139
+ gatewayOptions: pn.optional().default(() => pn.parse({})),
1140
+ channels: n(m(rn)).optional().default(() => [...an]),
1065
1141
  externalContextSchema: ne.optional(),
1066
- openaiApi: Qt.optional().default(() => Qt.parse({})),
1067
- voice: tn.optional().default(() => tn.parse({})),
1068
- toolWorkingSet: en.optional().default(() => en.parse({})),
1069
- hostTools: _e.optional(),
1070
- pageAccess: Te.optional(),
1071
- confirmations: sn.optional(),
1072
- selectionActions: it.optional()
1073
- }), un = o({
1142
+ openaiApi: mn.optional().default(() => mn.parse({})),
1143
+ voice: _n.optional().default(() => _n.parse({})),
1144
+ toolWorkingSet: gn.optional().default(() => gn.parse({})),
1145
+ hostTools: ve.optional(),
1146
+ pageAccess: ze.optional(),
1147
+ localFolders: Oe.optional(),
1148
+ confirmations: Sn.optional(),
1149
+ selectionActions: yt.optional()
1150
+ }), Tn = o({
1074
1151
  rateLimits: o({
1075
1152
  minuteRateLimit: i().int().min(0).optional(),
1076
1153
  hourRateLimit: i().int().min(0).optional(),
@@ -1085,15 +1162,15 @@ o({
1085
1162
  prompt: g().optional(),
1086
1163
  model: g().optional(),
1087
1164
  fallbackModels: n(g()).default([]),
1088
- status: m(z).default(z.Draft),
1089
- visibility: m(B).default(B.Organization),
1090
- settings: ln.superRefine((e, t) => et(e, t, {
1165
+ status: m(B).default(B.Draft),
1166
+ visibility: m(V).default(V.Organization),
1167
+ settings: wn.superRefine((e, t) => ht(e, t, {
1091
1168
  page: (e.pageAccess?.level ?? j.Off) !== j.Off,
1092
- word: !e.tools.disabled.includes(K.WordDocument),
1093
- excel: !e.tools.disabled.includes(K.Spreadsheet)
1169
+ word: !e.tools.disabled.includes(q.WordDocument),
1170
+ excel: !e.tools.disabled.includes(q.Spreadsheet)
1094
1171
  })),
1095
- security: un.nullish(),
1096
- type: m(V).default(V.Chat),
1172
+ security: Tn.nullish(),
1173
+ type: m(H).default(H.Chat),
1097
1174
  organizationId: g()
1098
1175
  }), s(() => o({
1099
1176
  id: g(),
@@ -1101,11 +1178,11 @@ o({
1101
1178
  prompt: g(),
1102
1179
  model: g(),
1103
1180
  fallbackModels: n(g()).nullable().default([]),
1104
- status: m(z).default(z.Draft),
1105
- visibility: m(B).default(B.Organization),
1106
- settings: ln,
1107
- security: un.nullable(),
1108
- type: m(V).default(V.Chat),
1181
+ status: m(B).default(B.Draft),
1182
+ visibility: m(V).default(V.Organization),
1183
+ settings: wn,
1184
+ security: Tn.nullable(),
1185
+ type: m(H).default(H.Chat),
1109
1186
  organizationId: g(),
1110
1187
  createdAt: h(),
1111
1188
  createdBy: g(),
@@ -1117,25 +1194,26 @@ o({
1117
1194
  outOfBudget: c().optional().default(!1),
1118
1195
  outOfBudgetReason: g().optional().default("")
1119
1196
  }));
1120
- var dn = o({
1197
+ var En = o({
1121
1198
  id: g(),
1122
1199
  name: g(),
1123
- status: m(z),
1124
- visibility: m(B),
1200
+ status: m(B),
1201
+ visibility: m(V),
1125
1202
  organizationId: g(),
1126
- interface: Kt,
1203
+ interface: cn,
1127
1204
  createdAt: h(),
1128
1205
  updatedAt: h(),
1129
1206
  capabilities: o({
1130
- fileUpload: Xt,
1131
- voice: nn,
1132
- hostTools: ve.optional(),
1133
- pageAccess: De.optional(),
1134
- confirmations: cn.optional(),
1135
- selectionActions: ot.optional()
1207
+ fileUpload: fn,
1208
+ voice: vn,
1209
+ hostTools: ye.optional(),
1210
+ pageAccess: Ve.optional(),
1211
+ localFolders: ke.optional(),
1212
+ confirmations: Cn.optional(),
1213
+ selectionActions: bt.optional()
1136
1214
  }),
1137
- channels: n(m($)).default(() => [...Ut])
1138
- }), fn = Kt.pick({
1215
+ channels: n(m(rn)).default(() => [...an])
1216
+ }), Dn = cn.pick({
1139
1217
  logo: !0,
1140
1218
  mainColor: !0,
1141
1219
  textColor: !0,
@@ -1146,41 +1224,41 @@ var dn = o({
1146
1224
  hideFloatingButton: !0,
1147
1225
  copilotPageCss: !0,
1148
1226
  customCss: !0
1149
- }), pn = dn.pick({
1227
+ }), On = En.pick({
1150
1228
  id: !0,
1151
1229
  name: !0,
1152
1230
  organizationId: !0
1153
- }).extend({ interface: fn }), mn = o({
1231
+ }).extend({ interface: Dn }), kn = o({
1154
1232
  emailPassword: c(),
1155
1233
  google: c(),
1156
1234
  microsoft: c()
1157
- }), hn = o({
1235
+ }), An = o({
1158
1236
  requiresAuth: l(!1),
1159
- agent: dn,
1237
+ agent: En,
1160
1238
  branding: r()
1161
- }), gn = o({
1239
+ }), jn = o({
1162
1240
  requiresAuth: l(!0),
1163
1241
  agent: r(),
1164
- branding: pn
1242
+ branding: On
1165
1243
  });
1166
- p("requiresAuth", [hn, gn]);
1167
- var _n = o({
1244
+ p("requiresAuth", [An, jn]);
1245
+ var Mn = o({
1168
1246
  frontendUrl: g().optional(),
1169
1247
  telemetry: o({
1170
1248
  environment: g(),
1171
1249
  samplingRate: i().min(0).max(1)
1172
1250
  }).nullable()
1173
- }), vn = o({
1174
- authMethods: mn,
1251
+ }), Nn = o({
1252
+ authMethods: kn,
1175
1253
  deploymentBranding: de.nullish(),
1176
- deployment: _n.optional()
1254
+ deployment: Mn.optional()
1177
1255
  });
1178
- p("requiresAuth", [hn.extend(vn.shape), gn.extend(vn.shape)]), o({
1256
+ p("requiresAuth", [An.extend(Nn.shape), jn.extend(Nn.shape)]), o({
1179
1257
  id: d(),
1180
1258
  limited: c(),
1181
1259
  agentIds: n(d())
1182
1260
  });
1183
- var yn = o({
1261
+ var Pn = o({
1184
1262
  userId: d(),
1185
1263
  name: g(),
1186
1264
  email: g(),
@@ -1191,7 +1269,7 @@ var yn = o({
1191
1269
  });
1192
1270
  o({
1193
1271
  id: d(),
1194
- members: n(yn)
1272
+ members: n(Pn)
1195
1273
  }), o({
1196
1274
  id: d(),
1197
1275
  userIds: n(d())
@@ -1208,11 +1286,11 @@ o({
1208
1286
  "model"
1209
1287
  ]),
1210
1288
  ...v.filters(["done", "type"]),
1211
- "filter[status]": m(z).optional(),
1289
+ "filter[status]": m(B).optional(),
1212
1290
  ...v.filter("id"),
1213
1291
  ...v.fullText(),
1214
1292
  ...v.ids()
1215
1293
  });
1216
- export { Oe as A, ce as B, Gt as C, Ne as D, Pe as E, xe as F, y as H, me as I, be as L, Ee as M, we as N, Me as O, Ce as P, ye as R, Ot as S, ze as T, _ as U, se as V, v as W, an as _, vt as a, St as b, Q as c, rn as d, yt as f, Et as g, wt as h, Y as i, j, je as k, Z as l, xt as m, K as n, H as o, Jt as p, Zt as r, q as s, bt as t, Ct as u, jt as v, M as w, Tt as x, Yt as y, pe as z };
1294
+ export { _ as $, Ge as A, De as B, sn as C, qe as D, Je as E, Le as F, ge as G, Pe as H, we as I, be as J, me as K, Ce as L, j as M, Be as N, Ke as O, Re as P, y as Q, Te as R, Ht as S, $e as T, Fe as U, Ne as V, Se as W, ce as X, pe as Y, se as Z, bn as _, Mt as a, It as b, $ as c, yn as d, v as et, Nt as f, Bt as g, Rt as h, X as i, He as j, ct as k, Q as l, Ft as m, q as n, U as o, un as p, xe as q, pn as r, J as s, Pt as t, Lt as u, Gt as v, M as w, zt as x, dn as y, Ee as z };
1217
1295
 
1218
- //# sourceMappingURL=Agent-DytagI8S.js.map
1296
+ //# sourceMappingURL=Agent-nB9V45mr.js.map