@8wave/ai-elements 0.127.0-beta.1 → 0.127.0-beta.3
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.
- package/dist/_chunks/{Agent-DytagI8S.js → Agent-nB9V45mr.js} +354 -276
- package/dist/_chunks/Agent-nB9V45mr.js.map +1 -0
- package/dist/_chunks/{Document-BdWEd1tb.js → Document-Dm5GM40t.js} +7 -7
- package/dist/_chunks/{Document-BdWEd1tb.js.map → Document-Dm5GM40t.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-C3BxAdui.js → PkFilePreview-qTCDbut0.js} +3 -3
- package/dist/_chunks/{PkFilePreview-C3BxAdui.js.map → PkFilePreview-qTCDbut0.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js → PkFilePreviewDialog-m5d4zZDi.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-WAm7QSvT.js.map → PkFilePreviewDialog-m5d4zZDi.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js → PkImageEditorDialog-aekpEqWD.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-DM-d0hCD.js.map → PkImageEditorDialog-aekpEqWD.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js → PkSelectionActions-DDhRX6cs.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-Bl1KbGOj.js.map → PkSelectionActions-DDhRX6cs.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js → PkStreamingMarkdown-5WfFCjFv.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-CU1ZUUCf.js.map → PkStreamingMarkdown-5WfFCjFv.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js → PkToolChatFile-C3B9q2OL.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-B-Y47Q_K.js.map → PkToolChatFile-C3B9q2OL.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js → PkToolRequestGeolocation-D4pYnCW5.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-B41xrF8k.js.map → PkToolRequestGeolocation-D4pYnCW5.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js → PkToolRequestOAuthConnection-DnnRY2rt.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BuCGuHwd.js.map → PkToolRequestOAuthConnection-DnnRY2rt.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js → PkToolShowArtifact-DQln7TsF.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-Bjm6uhOK.js.map → PkToolShowArtifact-DQln7TsF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js → PkToolShowChart-DfDB9BeZ.js} +2 -2
- package/dist/_chunks/{PkToolShowChart-B6TKQ3aT.js.map → PkToolShowChart-DfDB9BeZ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js → PkToolShowContactForm-Dkb8AiqL.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-5tg4xbrh.js.map → PkToolShowContactForm-Dkb8AiqL.js.map} +1 -1
- package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js → PkToolShowDiagram-B2dBogUW.js} +2 -2
- package/dist/_chunks/{PkToolShowDiagram-CiNtS-vX.js.map → PkToolShowDiagram-B2dBogUW.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js → PkToolShowForm-CtDcwJs4.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-eh8mXr6u.js.map → PkToolShowForm-CtDcwJs4.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js → PkToolShowImageGallery-dLMI3SM7.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-DedpXD-b.js.map → PkToolShowImageGallery-dLMI3SM7.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js → PkToolShowProductList-DE6BEdr_.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-D24EIc4v.js.map → PkToolShowProductList-DE6BEdr_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js → PkToolShowSources-vSr080EU.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dnw1x7dT.js.map → PkToolShowSources-vSr080EU.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js → PkToolShowSuggestedReply-HuKn3loC.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-CxNx1Uf6.js.map → PkToolShowSuggestedReply-HuKn3loC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js → PkToolShowVideo-BL-9CiYe.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CDcJiprr.js.map → PkToolShowVideo-BL-9CiYe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js → PkToolShowWebPages-DQfODZdD.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-UXqb0XEJ.js.map → PkToolShowWebPages-DQfODZdD.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js → chatImagePolicy-Cj5lkTVq.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-DJAB0Bgw.js.map → chatImagePolicy-Cj5lkTVq.js.map} +1 -1
- package/dist/_chunks/text-CCurUhdH.js +13 -0
- package/dist/_chunks/text-CCurUhdH.js.map +1 -0
- package/dist/_chunks/{utils-78zQeKDO.js → utils-CRy3kzE3.js} +458 -160
- package/dist/_chunks/utils-CRy3kzE3.js.map +1 -0
- package/dist/ai-elements.es.js +5973 -5638
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotAuth.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- package/dist-vue/PkChatbotLocalFolders.d.ts +2 -0
- package/dist-vue/PkChatbotLocalFolders.js +1 -0
- package/dist-vue/PkChatbotMessages.js +1 -1
- package/dist-vue/PkChatbotStepPayload.js +1 -1
- package/dist-vue/PkChatbotStepToolDetail.js +1 -1
- package/dist-vue/PkChatbotSteps.js +1 -1
- package/dist-vue/PkChatbotViewChat.js +1 -1
- package/dist-vue/PkChatbotViewConversations.js +1 -1
- package/dist-vue/PkChatbotViewFiles.js +1 -1
- package/dist-vue/PkChatbotViewProfile.js +1 -1
- package/dist-vue/PkChatbotWakeupBar.js +1 -1
- package/dist-vue/_chunks/{Agent-Da4XChe8.js → Agent-DKefaJeG.js} +445 -377
- package/dist-vue/_chunks/Agent-DKefaJeG.js.map +1 -0
- package/dist-vue/_chunks/{Document-CsQsUQYa.js → Document-B49E_gxT.js} +18 -18
- package/dist-vue/_chunks/{Document-CsQsUQYa.js.map → Document-B49E_gxT.js.map} +1 -1
- package/dist-vue/_chunks/{Media-CMiWEpdQ.js → Media-DtudATme.js} +12 -2
- package/dist-vue/_chunks/Media-DtudATme.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CITKd3qD.js → PkChatbot-B2SwBImk.js} +10 -9
- package/dist-vue/_chunks/PkChatbot-B2SwBImk.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js → PkChatbotAuth-CIK2CFy-.js} +8 -8
- package/dist-vue/_chunks/{PkChatbotAuth-SfTyFbq1.js.map → PkChatbotAuth-CIK2CFy-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js → PkChatbotEmptyState-C_htXOSW.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DI_8T5a4.js.map → PkChatbotEmptyState-C_htXOSW.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js +658 -0
- package/dist-vue/_chunks/PkChatbotInput-CJ5lPtpH.js.map +1 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js +126 -0
- package/dist-vue/_chunks/PkChatbotLocalFolders-CSvqh_Cx.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js → PkChatbotMessages-DY8r4UKe.js} +49 -49
- package/dist-vue/_chunks/{PkChatbotMessages-BWdINCAX.js.map → PkChatbotMessages-DY8r4UKe.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js → PkChatbotStepPayload-BLjH1pkP.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CTwsRpkv.js.map → PkChatbotStepPayload-BLjH1pkP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js → PkChatbotStepToolDetail-wIZmkvr-.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-C9xeMg-k.js.map → PkChatbotStepToolDetail-wIZmkvr-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js → PkChatbotSteps-DG09GyCb.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotSteps-DsubpIKa.js.map → PkChatbotSteps-DG09GyCb.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-DW1a9ZNl.js → PkChatbotViewChat-DPk9LjX-.js} +685 -667
- package/dist-vue/_chunks/PkChatbotViewChat-DPk9LjX-.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js → PkChatbotViewConversations-NA_PCvZR.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotViewConversations-DdniYy1b.js.map → PkChatbotViewConversations-NA_PCvZR.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js → PkChatbotViewFiles-D8_Khdu2.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-CMoromsf.js.map → PkChatbotViewFiles-D8_Khdu2.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js → PkChatbotViewProfile-iTBiQVsZ.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-BT7I3GhB.js.map → PkChatbotViewProfile-iTBiQVsZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotWakeupBar-Bx1zqFAX.js → PkChatbotWakeupBar-IoQJdUjI.js} +11 -11
- package/dist-vue/_chunks/PkChatbotWakeupBar-IoQJdUjI.js.map +1 -0
- package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js → PkFilePreview-DLJ2wTHk.js} +4 -4
- package/dist-vue/_chunks/{PkFilePreview-Dxp-U8QU.js.map → PkFilePreview-DLJ2wTHk.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js → PkFilePreviewDialog-CDPZ3QIk.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-BE-NpN18.js.map → PkFilePreviewDialog-CDPZ3QIk.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js → PkImageEditorDialog-CrjpCier.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-BiuOD6Hr.js.map → PkImageEditorDialog-CrjpCier.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js → PkStreamingMarkdown-CgKFdzCI.js} +23 -23
- package/dist-vue/_chunks/{PkStreamingMarkdown-DMmt35Mq.js.map → PkStreamingMarkdown-CgKFdzCI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js → PkToolChatFile-IEQxfzjM.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-BdNron14.js.map → PkToolChatFile-IEQxfzjM.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js → PkToolRequestGeolocation-BmrbMPke.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DeI7kLlR.js.map → PkToolRequestGeolocation-BmrbMPke.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js → PkToolRequestOAuthConnection-yKgXyOUN.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C0lE3Qbk.js.map → PkToolRequestOAuthConnection-yKgXyOUN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js → PkToolShowArtifact-CF90yFCe.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C0Gb-LW2.js.map → PkToolShowArtifact-CF90yFCe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js → PkToolShowChart-CDR8ag4q.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-oJmzU10F.js.map → PkToolShowChart-CDR8ag4q.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js → PkToolShowContactForm-DAdKUU4X.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-D4IAna-K.js.map → PkToolShowContactForm-DAdKUU4X.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js → PkToolShowDiagram-Do20AvFb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-ClGpv5Cr.js.map → PkToolShowDiagram-Do20AvFb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js → PkToolShowForm-DfFmPOt6.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-ByfNodNh.js.map → PkToolShowForm-DfFmPOt6.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js → PkToolShowImageGallery-DA6KW2g_.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-DJ9JNDWK.js.map → PkToolShowImageGallery-DA6KW2g_.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js → PkToolShowProductList-FcDDabPI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CcFseg28.js.map → PkToolShowProductList-FcDDabPI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js → PkToolShowSources-afCYBONq.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-DznWqWK3.js.map → PkToolShowSources-afCYBONq.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js → PkToolShowSuggestedReply-C863wgtU.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BZqnfpwO.js.map → PkToolShowSuggestedReply-C863wgtU.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js → PkToolShowVideo-kUiwxRlz.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-niwkzqTN.js.map → PkToolShowVideo-kUiwxRlz.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js → PkToolShowWebPages-Dw9D1__u.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-BsMVJ6c7.js.map → PkToolShowWebPages-Dw9D1__u.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-Cd_2UI_O.js → createChatbotApiClient-DzrHp52e.js} +66 -65
- package/dist-vue/_chunks/createChatbotApiClient-DzrHp52e.js.map +1 -0
- package/dist-vue/_chunks/localFolders-ChZp8dLu.js +353 -0
- package/dist-vue/_chunks/localFolders-ChZp8dLu.js.map +1 -0
- package/dist-vue/_chunks/{useChatbotStore-Dir9Rc7K.js → useChatbotStore-DZlc7dzK.js} +1289 -1152
- package/dist-vue/_chunks/useChatbotStore-DZlc7dzK.js.map +1 -0
- package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js +55 -0
- package/dist-vue/_chunks/useSettledSelection-1bfM1fzx.js.map +1 -0
- package/dist-vue/_chunks/{utils-CibsowVe.js → utils-CY0jFRnG.js} +126 -107
- package/dist-vue/_chunks/utils-CY0jFRnG.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +6 -0
- package/dist-vue/composables.js +62 -10
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4100 -4086
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +32 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -2
- package/dist-vue/packages/components/src/chat/PkChatbot.d.ts +7 -1
- package/dist-vue/packages/components/src/chat/PkChatbotLocalFolders.d.ts +31 -0
- package/dist-vue/packages/components/src/chat/utils.d.ts +3 -2
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +1 -1
- package/dist-vue/packages/composable/src/chatbot/index.d.ts +1 -0
- package/dist-vue/packages/composable/src/chatbot/localFolders.d.ts +137 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +46 -3
- package/dist-vue/packages/models/src/schema/Agent.d.ts +24 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/HostTool.d.ts +5 -2
- package/dist-vue/packages/models/src/schema/LocalFolder.d.ts +78 -0
- package/dist-vue/packages/models/src/schema/Organization.d.ts +10 -0
- package/dist-vue/packages/models/src/schema/PageAccess.d.ts +4 -1
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +8 -0
- package/dist-vue/packages/models/src/schema/index.d.ts +1 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-DytagI8S.js.map +0 -1
- package/dist/_chunks/text-5F7L8EHi.js +0 -5
- package/dist/_chunks/text-5F7L8EHi.js.map +0 -1
- package/dist/_chunks/utils-78zQeKDO.js.map +0 -1
- package/dist-vue/_chunks/Agent-Da4XChe8.js.map +0 -1
- package/dist-vue/_chunks/Media-CMiWEpdQ.js.map +0 -1
- package/dist-vue/_chunks/PkChatbot-CITKd3qD.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js +0 -708
- package/dist-vue/_chunks/PkChatbotInput-UqcSEi8l.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-DW1a9ZNl.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotWakeupBar-Bx1zqFAX.js.map +0 -1
- package/dist-vue/_chunks/createChatbotApiClient-Cd_2UI_O.js.map +0 -1
- package/dist-vue/_chunks/message-DuibQyHy.js +0 -61
- package/dist-vue/_chunks/message-DuibQyHy.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-Dir9Rc7K.js.map +0 -1
- 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:
|
|
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
|
|
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
|
-
}),
|
|
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()) }),
|
|
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
|
-
},
|
|
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
|
-
}({}),
|
|
298
|
+
}({}), Ie = [
|
|
233
299
|
j.Off,
|
|
234
300
|
j.Read,
|
|
235
301
|
j.Forms,
|
|
236
302
|
j.Full
|
|
237
|
-
],
|
|
238
|
-
function
|
|
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
|
|
313
|
+
var ze = o({
|
|
248
314
|
level: m(j).default(j.Off),
|
|
249
|
-
excludeSelectors: n(g().max(200).refine(
|
|
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
|
-
}),
|
|
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() }),
|
|
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,
|
|
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)),
|
|
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() ?? "",
|
|
302
|
-
let n =
|
|
303
|
-
return N(t).startsWith("audio/") ||
|
|
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
|
|
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 =
|
|
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
|
-
},
|
|
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
|
|
552
|
+
var Ye = /* @__PURE__ */ function(e) {
|
|
487
553
|
return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
|
|
488
|
-
}({}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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:
|
|
509
|
-
storagePolicy: m(
|
|
574
|
+
storageHandle: Qe,
|
|
575
|
+
storagePolicy: m(Ye),
|
|
510
576
|
signData: g().optional(),
|
|
511
577
|
storedFileName: g().min(1)
|
|
512
|
-
}),
|
|
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
|
-
}({}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
613
|
+
}), nt = o({
|
|
548
614
|
type: l(I.audio),
|
|
549
615
|
duration: i().nonnegative()
|
|
550
|
-
}),
|
|
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
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
618
|
+
et,
|
|
619
|
+
tt,
|
|
620
|
+
nt,
|
|
621
|
+
rt,
|
|
622
|
+
it,
|
|
623
|
+
at,
|
|
624
|
+
ot
|
|
559
625
|
]);
|
|
560
|
-
var
|
|
626
|
+
var st = (e) => {
|
|
561
627
|
let t = e.lastIndexOf(".");
|
|
562
628
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
563
|
-
},
|
|
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
|
-
],
|
|
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
|
-
},
|
|
589
|
-
function
|
|
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
|
|
673
|
+
var mt = o({
|
|
598
674
|
id: g().trim().min(1).max(64),
|
|
599
|
-
label:
|
|
600
|
-
prompt:
|
|
601
|
-
icon: m(
|
|
675
|
+
label: ft(40),
|
|
676
|
+
prompt: ft(500),
|
|
677
|
+
icon: m(dt).optional().catch(void 0)
|
|
602
678
|
});
|
|
603
|
-
function
|
|
604
|
-
for (let r of
|
|
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 =
|
|
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(
|
|
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
|
-
}),
|
|
644
|
-
page:
|
|
645
|
-
word:
|
|
646
|
-
excel:
|
|
647
|
-
}),
|
|
648
|
-
builtIns: n(m(
|
|
649
|
-
actions: n(
|
|
650
|
-
}),
|
|
651
|
-
page:
|
|
652
|
-
word:
|
|
653
|
-
excel:
|
|
654
|
-
}),
|
|
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
|
-
}({}),
|
|
732
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
657
733
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
658
734
|
}({});
|
|
659
|
-
|
|
660
|
-
var
|
|
735
|
+
V.Organization, V.Restricted;
|
|
736
|
+
var H = /* @__PURE__ */ function(e) {
|
|
661
737
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
662
|
-
}({}),
|
|
738
|
+
}({}), U = /* @__PURE__ */ function(e) {
|
|
663
739
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
664
|
-
}({}),
|
|
740
|
+
}({}), xt = [
|
|
665
741
|
"none",
|
|
666
742
|
"low",
|
|
667
743
|
"medium",
|
|
668
744
|
"high",
|
|
669
745
|
"xhigh",
|
|
670
746
|
"max"
|
|
671
|
-
],
|
|
747
|
+
], St = [
|
|
672
748
|
"low",
|
|
673
749
|
"medium",
|
|
674
750
|
"high",
|
|
675
751
|
"xhigh",
|
|
676
752
|
"max"
|
|
677
|
-
],
|
|
753
|
+
], Ct = [
|
|
678
754
|
"minimal",
|
|
679
755
|
"low",
|
|
680
756
|
"medium",
|
|
681
757
|
"high"
|
|
682
|
-
],
|
|
758
|
+
], wt = [
|
|
683
759
|
"auto",
|
|
684
760
|
"detailed",
|
|
685
761
|
"concise"
|
|
686
|
-
],
|
|
687
|
-
reasoningEffort: m(
|
|
688
|
-
reasoningSummary: m(
|
|
689
|
-
}),
|
|
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(
|
|
771
|
+
effort: m(St).optional(),
|
|
696
772
|
display: m(["summarized", "omitted"]).optional(),
|
|
697
773
|
budgetTokens: i().int().positive().optional()
|
|
698
|
-
}),
|
|
699
|
-
thinkingLevel: m(
|
|
774
|
+
}), Dt = o({
|
|
775
|
+
thinkingLevel: m(Ct).optional(),
|
|
700
776
|
thinkingBudget: i().int().optional(),
|
|
701
777
|
includeThoughts: c().optional()
|
|
702
|
-
}),
|
|
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
|
-
],
|
|
785
|
+
], kt = [
|
|
710
786
|
"none",
|
|
711
787
|
"minimal",
|
|
712
788
|
"low",
|
|
713
789
|
"medium",
|
|
714
790
|
"high",
|
|
715
791
|
"xhigh"
|
|
716
|
-
],
|
|
717
|
-
function
|
|
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
|
|
721
|
-
openai:
|
|
722
|
-
anthropic:
|
|
723
|
-
google:
|
|
724
|
-
deepseek:
|
|
725
|
-
alibaba:
|
|
726
|
-
meta:
|
|
727
|
-
moonshotai:
|
|
728
|
-
spacexai:
|
|
729
|
-
xiaomi:
|
|
730
|
-
zai:
|
|
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
|
|
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
|
-
...
|
|
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 =
|
|
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 =
|
|
825
|
+
let a = K(e, St);
|
|
750
826
|
a && (r.anthropic = {
|
|
751
827
|
type: "adaptive",
|
|
752
828
|
effort: a
|
|
753
829
|
});
|
|
754
|
-
let o =
|
|
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 =
|
|
757
|
-
if (s) for (let e of
|
|
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
|
|
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
|
|
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
|
-
}({}),
|
|
769
|
-
function
|
|
770
|
-
return e ===
|
|
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
|
|
848
|
+
var Lt = /* @__PURE__ */ new Set([
|
|
773
849
|
"editSpreadsheet",
|
|
774
850
|
"editWordDocument",
|
|
775
|
-
|
|
776
|
-
|
|
851
|
+
q.CreateSpreadsheet,
|
|
852
|
+
q.CreateWordDocument
|
|
777
853
|
]);
|
|
778
854
|
[
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
...
|
|
795
|
-
|
|
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
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
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
|
|
805
|
-
return
|
|
880
|
+
function zt(e) {
|
|
881
|
+
return Rt.has(e);
|
|
806
882
|
}
|
|
807
|
-
var
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
]),
|
|
830
|
-
function
|
|
831
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
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
|
|
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
|
-
}),
|
|
912
|
+
}), Wt = /* @__PURE__ */ function(e) {
|
|
837
913
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
838
|
-
}({}),
|
|
914
|
+
}({}), Gt = [
|
|
839
915
|
"perplexity_search",
|
|
840
916
|
"parallel_search",
|
|
841
917
|
"web_search",
|
|
842
918
|
"openai_web_search",
|
|
843
919
|
"google_search"
|
|
844
|
-
],
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
961
|
+
}), J = o({
|
|
886
962
|
enabled: c().default(!1),
|
|
887
|
-
provider: m(
|
|
888
|
-
perplexity:
|
|
889
|
-
parallel:
|
|
890
|
-
native:
|
|
891
|
-
}),
|
|
892
|
-
disabled: n(m(
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
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:
|
|
901
|
-
webSearch:
|
|
902
|
-
userMemory:
|
|
903
|
-
userFiles:
|
|
904
|
-
shareDocument:
|
|
905
|
-
createSpreadsheet:
|
|
906
|
-
createWordDocument:
|
|
907
|
-
approval:
|
|
908
|
-
}),
|
|
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({}),
|
|
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(
|
|
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:
|
|
930
|
-
ranking:
|
|
931
|
-
}),
|
|
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.
|
|
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
|
-
}({}),
|
|
940
|
-
function
|
|
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
|
|
950
|
-
media:
|
|
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:
|
|
971
|
-
greeting: n(
|
|
972
|
-
messagePlaceholder:
|
|
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:
|
|
975
|
-
footerMessage:
|
|
976
|
-
privacyPolicyNotice:
|
|
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(
|
|
981
|
-
appearance: m(
|
|
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(
|
|
1062
|
+
widgetUrl: a().default(tn),
|
|
987
1063
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
988
|
-
loaderStrategy: m(
|
|
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(
|
|
995
|
-
}),
|
|
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
|
-
],
|
|
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([...
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}({}),
|
|
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
|
-
}),
|
|
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:
|
|
1118
|
+
confirmations: yn.optional()
|
|
1043
1119
|
});
|
|
1044
|
-
var
|
|
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
|
-
}),
|
|
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(
|
|
1058
|
-
var
|
|
1059
|
-
model:
|
|
1060
|
-
interface:
|
|
1061
|
-
tools:
|
|
1062
|
-
fileUpload:
|
|
1063
|
-
gatewayOptions:
|
|
1064
|
-
channels: n(m(
|
|
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:
|
|
1067
|
-
voice:
|
|
1068
|
-
toolWorkingSet:
|
|
1069
|
-
hostTools:
|
|
1070
|
-
pageAccess:
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
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(
|
|
1089
|
-
visibility: m(
|
|
1090
|
-
settings:
|
|
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(
|
|
1093
|
-
excel: !e.tools.disabled.includes(
|
|
1169
|
+
word: !e.tools.disabled.includes(q.WordDocument),
|
|
1170
|
+
excel: !e.tools.disabled.includes(q.Spreadsheet)
|
|
1094
1171
|
})),
|
|
1095
|
-
security:
|
|
1096
|
-
type: m(
|
|
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(
|
|
1105
|
-
visibility: m(
|
|
1106
|
-
settings:
|
|
1107
|
-
security:
|
|
1108
|
-
type: m(
|
|
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
|
|
1197
|
+
var En = o({
|
|
1121
1198
|
id: g(),
|
|
1122
1199
|
name: g(),
|
|
1123
|
-
status: m(
|
|
1124
|
-
visibility: m(
|
|
1200
|
+
status: m(B),
|
|
1201
|
+
visibility: m(V),
|
|
1125
1202
|
organizationId: g(),
|
|
1126
|
-
interface:
|
|
1203
|
+
interface: cn,
|
|
1127
1204
|
createdAt: h(),
|
|
1128
1205
|
updatedAt: h(),
|
|
1129
1206
|
capabilities: o({
|
|
1130
|
-
fileUpload:
|
|
1131
|
-
voice:
|
|
1132
|
-
hostTools:
|
|
1133
|
-
pageAccess:
|
|
1134
|
-
|
|
1135
|
-
|
|
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(
|
|
1138
|
-
}),
|
|
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
|
-
}),
|
|
1227
|
+
}), On = En.pick({
|
|
1150
1228
|
id: !0,
|
|
1151
1229
|
name: !0,
|
|
1152
1230
|
organizationId: !0
|
|
1153
|
-
}).extend({ interface:
|
|
1231
|
+
}).extend({ interface: Dn }), kn = o({
|
|
1154
1232
|
emailPassword: c(),
|
|
1155
1233
|
google: c(),
|
|
1156
1234
|
microsoft: c()
|
|
1157
|
-
}),
|
|
1235
|
+
}), An = o({
|
|
1158
1236
|
requiresAuth: l(!1),
|
|
1159
|
-
agent:
|
|
1237
|
+
agent: En,
|
|
1160
1238
|
branding: r()
|
|
1161
|
-
}),
|
|
1239
|
+
}), jn = o({
|
|
1162
1240
|
requiresAuth: l(!0),
|
|
1163
1241
|
agent: r(),
|
|
1164
|
-
branding:
|
|
1242
|
+
branding: On
|
|
1165
1243
|
});
|
|
1166
|
-
p("requiresAuth", [
|
|
1167
|
-
var
|
|
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
|
-
}),
|
|
1174
|
-
authMethods:
|
|
1251
|
+
}), Nn = o({
|
|
1252
|
+
authMethods: kn,
|
|
1175
1253
|
deploymentBranding: de.nullish(),
|
|
1176
|
-
deployment:
|
|
1254
|
+
deployment: Mn.optional()
|
|
1177
1255
|
});
|
|
1178
|
-
p("requiresAuth", [
|
|
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
|
|
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(
|
|
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(
|
|
1289
|
+
"filter[status]": m(B).optional(),
|
|
1212
1290
|
...v.filter("id"),
|
|
1213
1291
|
...v.fullText(),
|
|
1214
1292
|
...v.ids()
|
|
1215
1293
|
});
|
|
1216
|
-
export {
|
|
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-
|
|
1296
|
+
//# sourceMappingURL=Agent-nB9V45mr.js.map
|