@8wave/ai-elements 0.121.0-beta.39 → 0.121.0-beta.40
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/README.md +67 -15
- package/dist/_chunks/{Agent-C3m0UmlL.js → Agent-BuPgJIt4.js} +203 -202
- package/dist/_chunks/Agent-BuPgJIt4.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown--PCkA4Fg.js → PkStreamingMarkdown-D2aqCD0I.js} +953 -927
- package/dist/_chunks/PkStreamingMarkdown-D2aqCD0I.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-DAMWWIVt.js → PkToolEditSpreadsheet-83ZdmGeA.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-DAMWWIVt.js.map → PkToolEditSpreadsheet-83ZdmGeA.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-BgsvQb7Q.js → PkToolRequestGeolocation-1cOmCG8P.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BgsvQb7Q.js.map → PkToolRequestGeolocation-1cOmCG8P.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DtuZw7yk.js → PkToolRequestOAuthConnection-CCu3FCyo.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DtuZw7yk.js.map → PkToolRequestOAuthConnection-CCu3FCyo.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-B163OvqY.js → PkToolShowArtifact-CiYkZkpe.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-B163OvqY.js.map → PkToolShowArtifact-CiYkZkpe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-C_ptr7Xs.js → PkToolShowContactForm-D7TEzrYe.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-C_ptr7Xs.js.map → PkToolShowContactForm-D7TEzrYe.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-fburTpQm.js → PkToolShowForm-CSh4Q6sl.js} +5 -5
- package/dist/_chunks/{PkToolShowForm-fburTpQm.js.map → PkToolShowForm-CSh4Q6sl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-ChauJukk.js → PkToolShowImageGallery-CQEaEfYE.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-ChauJukk.js.map → PkToolShowImageGallery-CQEaEfYE.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-B_XZezYw.js → PkToolShowProductList-BCmULLct.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-B_XZezYw.js.map → PkToolShowProductList-BCmULLct.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-CS4nEuL0.js → PkToolShowSources-R9KWsfTQ.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-CS4nEuL0.js.map → PkToolShowSources-R9KWsfTQ.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BIe56XdA.js → PkToolShowSuggestedReply-DYZz9aV2.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BIe56XdA.js.map → PkToolShowSuggestedReply-DYZz9aV2.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-DzU1XJqv.js → PkToolShowVideo-C_9SZtZM.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-DzU1XJqv.js.map → PkToolShowVideo-C_9SZtZM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-BlKe8Arf.js → PkToolShowWebPages-DwRYfle9.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-BlKe8Arf.js.map → PkToolShowWebPages-DwRYfle9.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-ChSkpiw6.js → chatImagePolicy-CQYTWTkP.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-ChSkpiw6.js.map → chatImagePolicy-CQYTWTkP.js.map} +1 -1
- package/dist/_chunks/{markdown-D3iMlF6T.js → markdown-Br9ROCBT.js} +2 -2
- package/dist/_chunks/{markdown-D3iMlF6T.js.map → markdown-Br9ROCBT.js.map} +1 -1
- package/dist/ai-elements.es.js +4378 -3756
- package/dist/ai-elements.es.js.map +1 -1
- package/dist-vue/PkChatbot.js +1 -1
- package/dist-vue/PkChatbotEmptyState.js +1 -1
- package/dist-vue/PkChatbotInput.js +1 -1
- 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/_chunks/{Agent-3IHYHv05.js → Agent-DZb775Ak.js} +193 -192
- package/dist-vue/_chunks/Agent-DZb775Ak.js.map +1 -0
- package/dist-vue/_chunks/{Document-B0A_y6N5.js → Document-E72l_VU6.js} +2 -2
- package/dist-vue/_chunks/{Document-B0A_y6N5.js.map → Document-E72l_VU6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-Bu76hH4F.js → PkChatbot-DIqduIwr.js} +9 -9
- package/dist-vue/_chunks/{PkChatbot-Bu76hH4F.js.map → PkChatbot-DIqduIwr.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-ilPJoYjk.js → PkChatbotEmptyState-Dh7ETVnf.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-ilPJoYjk.js.map → PkChatbotEmptyState-Dh7ETVnf.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CY0YRGkG.js → PkChatbotInput-BJHtmPR-.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-CY0YRGkG.js.map → PkChatbotInput-BJHtmPR-.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js +968 -0
- package/dist-vue/_chunks/PkChatbotMessages-DMSActW1.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-CiEcIlzW.js → PkChatbotStepPayload-CXdsUMrw.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CiEcIlzW.js.map → PkChatbotStepPayload-CXdsUMrw.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-VqLkuWi7.js → PkChatbotStepToolDetail-DbpXR7jh.js} +16 -16
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-VqLkuWi7.js.map → PkChatbotStepToolDetail-DbpXR7jh.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-QFFZ0DjH.js +189 -0
- package/dist-vue/_chunks/PkChatbotSteps-QFFZ0DjH.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewChat-t-XkwFbe.js → PkChatbotViewChat-BI_PtT72.js} +300 -298
- package/dist-vue/_chunks/PkChatbotViewChat-BI_PtT72.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-CgRMohUQ.js → PkChatbotViewConversations-Bg4jSO9a.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-CgRMohUQ.js.map → PkChatbotViewConversations-Bg4jSO9a.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DkeysDGW.js → PkChatbotViewFiles-Cwm-JQMF.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DkeysDGW.js.map → PkChatbotViewFiles-Cwm-JQMF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-kgqu10ED.js → PkChatbotViewProfile-C_GElIM3.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-kgqu10ED.js.map → PkChatbotViewProfile-C_GElIM3.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-CDlpb5w0.js → PkStreamingMarkdown-DwDs-cGP.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-CDlpb5w0.js.map → PkStreamingMarkdown-DwDs-cGP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-D0EPgCmp.js → PkToolEditSpreadsheet-B61LtERY.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-D0EPgCmp.js.map → PkToolEditSpreadsheet-B61LtERY.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DZnJd1od.js → PkToolRequestGeolocation-DC8hSH0j.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DZnJd1od.js.map → PkToolRequestGeolocation-DC8hSH0j.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C8MGtBlh.js → PkToolRequestOAuthConnection-BH_-drvw.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C8MGtBlh.js.map → PkToolRequestOAuthConnection-BH_-drvw.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-CtXB1-vJ.js → PkToolShowArtifact-CjVN96wJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-CtXB1-vJ.js.map → PkToolShowArtifact-CjVN96wJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-DlZdfcNw.js → PkToolShowContactForm-CmBLigw8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-DlZdfcNw.js.map → PkToolShowContactForm-CmBLigw8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BUUjmUpE.js → PkToolShowDiagram-dKUU5_6F.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BUUjmUpE.js.map → PkToolShowDiagram-dKUU5_6F.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DxiiMSCC.js → PkToolShowForm-B6ESvq-5.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-DxiiMSCC.js.map → PkToolShowForm-B6ESvq-5.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-D01aM-9U.js → PkToolShowImageGallery-Daq0IwTH.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-D01aM-9U.js.map → PkToolShowImageGallery-Daq0IwTH.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-BRMF3WJf.js → PkToolShowProductList-Bc3Gzyxy.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-BRMF3WJf.js.map → PkToolShowProductList-Bc3Gzyxy.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-C0_MwX7m.js → PkToolShowSources-BDvRbenn.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-C0_MwX7m.js.map → PkToolShowSources-BDvRbenn.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BcjKYwbk.js → PkToolShowSuggestedReply-Cd6VkzvJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-BcjKYwbk.js.map → PkToolShowSuggestedReply-Cd6VkzvJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CjjoQH7j.js → PkToolShowVideo-Bo1gsD97.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CjjoQH7j.js.map → PkToolShowVideo-Bo1gsD97.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-B5reGh4g.js → PkToolShowWebPages-DI3sZiqh.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-B5reGh4g.js.map → PkToolShowWebPages-DI3sZiqh.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DcLpptlt.js → createChatbotApiClient-DUz4dwzY.js} +12 -12
- package/dist-vue/_chunks/{createChatbotApiClient-DcLpptlt.js.map → createChatbotApiClient-DUz4dwzY.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BliRphuB.js → useChatbotStore-D7LcpA-6.js} +481 -455
- package/dist-vue/_chunks/useChatbotStore-D7LcpA-6.js.map +1 -0
- package/dist-vue/_chunks/{utils-C7-KrzRE.js → utils-EPX3V3VI.js} +112 -86
- package/dist-vue/_chunks/utils-EPX3V3VI.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/components/EmbeddedChatWidget.ce.d.ts +2 -0
- package/dist-vue/apps/web-component/src/components/FloatingChatWidget.ce.d.ts +2 -0
- package/dist-vue/apps/web-component/src/composables/usePageTools.d.ts +1 -0
- package/dist-vue/apps/web-component/src/lib.d.ts +10 -0
- package/dist-vue/apps/web-component/src/pageTools/actions.d.ts +2 -0
- package/dist-vue/apps/web-component/src/pageTools/announcements.d.ts +9 -0
- package/dist-vue/apps/web-component/src/pageTools/index.d.ts +12 -1
- package/dist-vue/apps/web-component/src/pageTools/navigation.d.ts +40 -8
- package/dist-vue/apps/web-component/src/pageTools/snapshot.d.ts +60 -0
- package/dist-vue/composables.js +34 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +145 -125
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +28 -2
- package/dist-vue/packages/components/src/PkEditorPrompt.d.ts +6 -0
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +4 -0
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmCard.d.ts +7 -1
- package/dist-vue/packages/components/src/chat/PkHostCallConfirmDialog.d.ts +4 -0
- package/dist-vue/packages/components/src/chat/PkPageControlBar.d.ts +5 -1
- package/dist-vue/packages/components/src/chat/utils.d.ts +11 -1
- package/dist-vue/packages/composable/src/chatbot/hostTools.d.ts +37 -8
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +8 -2
- package/dist-vue/packages/models/src/schema/PageAccess.d.ts +9 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-C3m0UmlL.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown--PCkA4Fg.js.map +0 -1
- package/dist-vue/_chunks/Agent-3IHYHv05.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-BfKqJ8n_.js +0 -954
- package/dist-vue/_chunks/PkChatbotMessages-BfKqJ8n_.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotSteps-CoDtEaL7.js +0 -189
- package/dist-vue/_chunks/PkChatbotSteps-CoDtEaL7.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-t-XkwFbe.js.map +0 -1
- package/dist-vue/_chunks/useChatbotStore-BliRphuB.js.map +0 -1
- package/dist-vue/_chunks/utils-C7-KrzRE.js.map +0 -1
|
@@ -306,10 +306,11 @@ var Ve = d({
|
|
|
306
306
|
excludeSelectors: !0,
|
|
307
307
|
confirmEveryAction: !0,
|
|
308
308
|
notice: !0
|
|
309
|
-
});
|
|
309
|
+
}), Ge = ["fill-fields"];
|
|
310
310
|
d({
|
|
311
311
|
version: s(1),
|
|
312
|
-
forms: c(f()).max(16).default([])
|
|
312
|
+
forms: c(f()).max(16).default([]),
|
|
313
|
+
features: c(n().max(40)).max(16).default([])
|
|
313
314
|
});
|
|
314
315
|
//#endregion
|
|
315
316
|
//#region ../../packages/models/src/schema/Agent.ts
|
|
@@ -317,7 +318,7 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
317
318
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
318
319
|
}({}), N = /* @__PURE__ */ function(e) {
|
|
319
320
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
320
|
-
}({}),
|
|
321
|
+
}({}), Ke = [N.Organization, N.Restricted], P = /* @__PURE__ */ function(e) {
|
|
321
322
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
322
323
|
}({}), F = /* @__PURE__ */ function(e) {
|
|
323
324
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
@@ -328,38 +329,38 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
328
329
|
"high",
|
|
329
330
|
"xhigh",
|
|
330
331
|
"max"
|
|
331
|
-
],
|
|
332
|
+
], qe = [
|
|
332
333
|
"low",
|
|
333
334
|
"medium",
|
|
334
335
|
"high",
|
|
335
336
|
"xhigh",
|
|
336
337
|
"max"
|
|
337
|
-
],
|
|
338
|
+
], L = [
|
|
338
339
|
"minimal",
|
|
339
340
|
"low",
|
|
340
341
|
"medium",
|
|
341
342
|
"high"
|
|
342
|
-
],
|
|
343
|
+
], R = [
|
|
343
344
|
"auto",
|
|
344
345
|
"detailed",
|
|
345
346
|
"concise"
|
|
346
|
-
],
|
|
347
|
+
], Je = d({
|
|
347
348
|
reasoningEffort: l(I).optional(),
|
|
348
|
-
reasoningSummary: l(
|
|
349
|
-
}),
|
|
349
|
+
reasoningSummary: l(R).optional()
|
|
350
|
+
}), Ye = d({
|
|
350
351
|
type: l([
|
|
351
352
|
"adaptive",
|
|
352
353
|
"enabled",
|
|
353
354
|
"disabled"
|
|
354
355
|
]).optional(),
|
|
355
|
-
effort: l(
|
|
356
|
+
effort: l(qe).optional(),
|
|
356
357
|
display: l(["summarized", "omitted"]).optional(),
|
|
357
358
|
budgetTokens: i().int().positive().optional()
|
|
358
|
-
}),
|
|
359
|
-
thinkingLevel: l(
|
|
359
|
+
}), Xe = d({
|
|
360
|
+
thinkingLevel: l(L).optional(),
|
|
360
361
|
thinkingBudget: i().int().optional(),
|
|
361
362
|
includeThoughts: u().optional()
|
|
362
|
-
}),
|
|
363
|
+
}), Ze = d({ type: l(["enabled", "disabled"]).optional() }), z = [
|
|
363
364
|
"alibaba",
|
|
364
365
|
"meta",
|
|
365
366
|
"moonshotai",
|
|
@@ -367,67 +368,67 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
367
368
|
"xiaomi",
|
|
368
369
|
"zai"
|
|
369
370
|
];
|
|
370
|
-
function
|
|
371
|
-
return
|
|
371
|
+
function Qe(e) {
|
|
372
|
+
return z.includes(e);
|
|
372
373
|
}
|
|
373
|
-
var
|
|
374
|
+
var B = [
|
|
374
375
|
"none",
|
|
375
376
|
"minimal",
|
|
376
377
|
"low",
|
|
377
378
|
"medium",
|
|
378
379
|
"high",
|
|
379
380
|
"xhigh"
|
|
380
|
-
],
|
|
381
|
-
function
|
|
381
|
+
], V = d({ reasoningEffort: l(B).optional() });
|
|
382
|
+
function H(e, t) {
|
|
382
383
|
return e && t.includes(e) ? e : void 0;
|
|
383
384
|
}
|
|
384
|
-
var
|
|
385
|
-
openai:
|
|
386
|
-
anthropic:
|
|
387
|
-
google:
|
|
388
|
-
deepseek:
|
|
389
|
-
alibaba:
|
|
390
|
-
meta:
|
|
391
|
-
moonshotai:
|
|
392
|
-
spacexai:
|
|
393
|
-
xiaomi:
|
|
394
|
-
zai:
|
|
385
|
+
var $e = d({
|
|
386
|
+
openai: Je.optional(),
|
|
387
|
+
anthropic: Ye.optional(),
|
|
388
|
+
google: Xe.optional(),
|
|
389
|
+
deepseek: Ze.optional(),
|
|
390
|
+
alibaba: V.optional(),
|
|
391
|
+
meta: V.optional(),
|
|
392
|
+
moonshotai: V.optional(),
|
|
393
|
+
spacexai: V.optional(),
|
|
394
|
+
xiaomi: V.optional(),
|
|
395
|
+
zai: V.optional()
|
|
395
396
|
});
|
|
396
|
-
function
|
|
397
|
+
function et(e) {
|
|
397
398
|
if (!e || typeof e != "object") return e;
|
|
398
399
|
let t = e, n = [
|
|
399
400
|
"openai",
|
|
400
401
|
"anthropic",
|
|
401
402
|
"google",
|
|
402
403
|
"deepseek",
|
|
403
|
-
...
|
|
404
|
+
...z
|
|
404
405
|
].some((e) => e in t);
|
|
405
406
|
if ("effort" in t && !n) {
|
|
406
407
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
407
408
|
if (e && e !== "off" && e !== "none") {
|
|
408
|
-
let t =
|
|
409
|
+
let t = H(e, I), i = H(n, R);
|
|
409
410
|
(t || i) && (r.openai = {
|
|
410
411
|
...t && { reasoningEffort: t },
|
|
411
412
|
...i && { reasoningSummary: i }
|
|
412
413
|
});
|
|
413
|
-
let a =
|
|
414
|
+
let a = H(e, qe);
|
|
414
415
|
a && (r.anthropic = {
|
|
415
416
|
type: "adaptive",
|
|
416
417
|
effort: a
|
|
417
418
|
});
|
|
418
|
-
let o =
|
|
419
|
+
let o = H(e === "xhigh" || e === "max" ? "high" : e, L);
|
|
419
420
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
420
|
-
let s =
|
|
421
|
-
if (s) for (let e of
|
|
421
|
+
let s = H(e === "max" ? "xhigh" : e, B);
|
|
422
|
+
if (s) for (let e of z) r[e] = { reasoningEffort: s };
|
|
422
423
|
} else {
|
|
423
424
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
424
|
-
for (let e of
|
|
425
|
+
for (let e of z) r[e] = { reasoningEffort: "none" };
|
|
425
426
|
}
|
|
426
427
|
return r;
|
|
427
428
|
}
|
|
428
429
|
return e;
|
|
429
430
|
}
|
|
430
|
-
var
|
|
431
|
+
var tt = h(f(), $e, et).optional(), nt = {
|
|
431
432
|
openai: { reasoningEffort: "low" },
|
|
432
433
|
anthropic: {
|
|
433
434
|
type: "adaptive",
|
|
@@ -441,102 +442,102 @@ var $e = h(f(), Ze, Qe).optional(), et = {
|
|
|
441
442
|
xiaomi: { reasoningEffort: "low" },
|
|
442
443
|
zai: { reasoningEffort: "low" }
|
|
443
444
|
};
|
|
444
|
-
function
|
|
445
|
+
function rt(e) {
|
|
445
446
|
return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
|
|
446
447
|
}
|
|
447
|
-
function
|
|
448
|
+
function it(e, t) {
|
|
448
449
|
let n = t?.[e];
|
|
449
|
-
return
|
|
450
|
+
return rt(n) ? n : nt[e];
|
|
450
451
|
}
|
|
451
|
-
var
|
|
452
|
+
var U = /* @__PURE__ */ function(e) {
|
|
452
453
|
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.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", 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;
|
|
453
|
-
}({}),
|
|
454
|
-
function
|
|
455
|
-
return !
|
|
456
|
-
}
|
|
457
|
-
function ct(e) {
|
|
458
|
-
return e === W.RequestConfirm || e === W.ShowArtifact || e === W.ShowCalendarEvent || e === W.ShowComparison || e === W.ShowContactForm || e === W.ShowDiagram || e === W.ShowEmail || e === W.ShowImageGallery || e === W.ShowLocation || e === W.ShowMessage || e === W.ShowForm || e === W.ShowMultipleChoice || e === W.ShowProductList || e === W.ShowQrCode || e === W.ShowSources || e === W.ShowSuggestedReply || e === W.ShowVideo || e === W.ShowWeather || e === W.ShowWebPages;
|
|
454
|
+
}({}), at = "mcp-", ot = "api-", st = "subagent-", ct = "enableTools";
|
|
455
|
+
function lt(e) {
|
|
456
|
+
return !ut(e) && e !== U.RequestGeolocation;
|
|
459
457
|
}
|
|
460
|
-
var lt = /* @__PURE__ */ new Set([
|
|
461
|
-
W.RequestConfirm,
|
|
462
|
-
W.ShowArtifact,
|
|
463
|
-
W.ShowWeather,
|
|
464
|
-
W.ShowLocation,
|
|
465
|
-
W.ShowComparison,
|
|
466
|
-
W.ShowProductList,
|
|
467
|
-
W.ShowWebPages,
|
|
468
|
-
W.ShowImageGallery,
|
|
469
|
-
W.ShowVideo,
|
|
470
|
-
W.ShowSources,
|
|
471
|
-
W.ShowSuggestedReply,
|
|
472
|
-
W.ShowCalendarEvent,
|
|
473
|
-
W.ShowEmail,
|
|
474
|
-
W.ShowMessage,
|
|
475
|
-
W.ShowForm,
|
|
476
|
-
"editSpreadsheet",
|
|
477
|
-
W.ShareDocument
|
|
478
|
-
]);
|
|
479
458
|
function ut(e) {
|
|
480
|
-
return
|
|
459
|
+
return e === U.RequestConfirm || e === U.ShowArtifact || e === U.ShowCalendarEvent || e === U.ShowComparison || e === U.ShowContactForm || e === U.ShowDiagram || e === U.ShowEmail || e === U.ShowImageGallery || e === U.ShowLocation || e === U.ShowMessage || e === U.ShowForm || e === U.ShowMultipleChoice || e === U.ShowProductList || e === U.ShowQrCode || e === U.ShowSources || e === U.ShowSuggestedReply || e === U.ShowVideo || e === U.ShowWeather || e === U.ShowWebPages;
|
|
481
460
|
}
|
|
482
461
|
var dt = /* @__PURE__ */ new Set([
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
462
|
+
U.RequestConfirm,
|
|
463
|
+
U.ShowArtifact,
|
|
464
|
+
U.ShowWeather,
|
|
465
|
+
U.ShowLocation,
|
|
466
|
+
U.ShowComparison,
|
|
467
|
+
U.ShowProductList,
|
|
468
|
+
U.ShowWebPages,
|
|
469
|
+
U.ShowImageGallery,
|
|
470
|
+
U.ShowVideo,
|
|
471
|
+
U.ShowSources,
|
|
472
|
+
U.ShowSuggestedReply,
|
|
473
|
+
U.ShowCalendarEvent,
|
|
474
|
+
U.ShowEmail,
|
|
475
|
+
U.ShowMessage,
|
|
476
|
+
U.ShowForm,
|
|
477
|
+
"editSpreadsheet",
|
|
478
|
+
U.ShareDocument
|
|
488
479
|
]);
|
|
489
480
|
function ft(e) {
|
|
490
481
|
return dt.has(e);
|
|
491
482
|
}
|
|
492
|
-
var pt = /* @__PURE__ */
|
|
483
|
+
var pt = /* @__PURE__ */ new Set([
|
|
484
|
+
U.RequestConfirm,
|
|
485
|
+
U.RequestGeolocation,
|
|
486
|
+
U.ShowForm,
|
|
487
|
+
U.ShowMultipleChoice,
|
|
488
|
+
"requestOAuthConnection"
|
|
489
|
+
]);
|
|
490
|
+
function mt(e) {
|
|
491
|
+
return pt.has(e);
|
|
492
|
+
}
|
|
493
|
+
var ht = /* @__PURE__ */ function(e) {
|
|
493
494
|
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
494
|
-
}({}),
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
]),
|
|
516
|
-
function
|
|
517
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
495
|
+
}({}), gt = /* @__PURE__ */ new Set([
|
|
496
|
+
U.RequestConfirm,
|
|
497
|
+
U.RequestGeolocation,
|
|
498
|
+
U.ShowArtifact,
|
|
499
|
+
U.ShowCalendarEvent,
|
|
500
|
+
U.ShowContactForm,
|
|
501
|
+
U.ShowComparison,
|
|
502
|
+
U.ShowDiagram,
|
|
503
|
+
U.ShowEmail,
|
|
504
|
+
U.ShowForm,
|
|
505
|
+
U.ShowImageGallery,
|
|
506
|
+
U.ShowLocation,
|
|
507
|
+
U.ShowMessage,
|
|
508
|
+
U.ShowMultipleChoice,
|
|
509
|
+
U.ShowProductList,
|
|
510
|
+
U.ShowQrCode,
|
|
511
|
+
U.ShowSources,
|
|
512
|
+
U.ShowSuggestedReply,
|
|
513
|
+
U.ShowVideo,
|
|
514
|
+
U.ShowWeather,
|
|
515
|
+
U.ShowWebPages
|
|
516
|
+
]), _t = "Shown on the caller's screen";
|
|
517
|
+
function vt(e) {
|
|
518
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(_t));
|
|
518
519
|
}
|
|
519
|
-
var
|
|
520
|
+
var yt = d({
|
|
520
521
|
maxSteps: i().int().min(1).max(10).optional().default(5),
|
|
521
522
|
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
522
|
-
}),
|
|
523
|
+
}), W = /* @__PURE__ */ function(e) {
|
|
523
524
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
524
|
-
}({}),
|
|
525
|
+
}({}), bt = {
|
|
525
526
|
openai: "OpenAI",
|
|
526
527
|
anthropic: "Anthropic",
|
|
527
528
|
google: "Google"
|
|
528
529
|
};
|
|
529
|
-
function
|
|
530
|
+
function xt(e) {
|
|
530
531
|
let t = e.split("/")[0];
|
|
531
|
-
return Object.prototype.hasOwnProperty.call(
|
|
532
|
+
return Object.prototype.hasOwnProperty.call(bt, t) ? bt[t] : void 0;
|
|
532
533
|
}
|
|
533
|
-
var
|
|
534
|
+
var St = [
|
|
534
535
|
"perplexity_search",
|
|
535
536
|
"parallel_search",
|
|
536
537
|
"web_search",
|
|
537
538
|
"openai_web_search",
|
|
538
539
|
"google_search"
|
|
539
|
-
],
|
|
540
|
+
], Ct = d({
|
|
540
541
|
maxResults: i().int().min(1).max(20).optional(),
|
|
541
542
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
542
543
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -549,7 +550,7 @@ var bt = [
|
|
|
549
550
|
"month",
|
|
550
551
|
"year"
|
|
551
552
|
]).optional()
|
|
552
|
-
}),
|
|
553
|
+
}), wt = d({
|
|
553
554
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
554
555
|
maxResults: i().int().min(1).max(20).optional(),
|
|
555
556
|
sourcePolicy: d({
|
|
@@ -562,7 +563,7 @@ var bt = [
|
|
|
562
563
|
maxCharsTotal: i().int().positive().optional()
|
|
563
564
|
}).optional(),
|
|
564
565
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
565
|
-
}),
|
|
566
|
+
}), Tt = d({
|
|
566
567
|
openai: d({}).optional(),
|
|
567
568
|
anthropic: d({
|
|
568
569
|
maxUses: i().int().positive().optional(),
|
|
@@ -577,27 +578,27 @@ var bt = [
|
|
|
577
578
|
}).optional()
|
|
578
579
|
}).optional(),
|
|
579
580
|
google: d({}).optional()
|
|
580
|
-
}),
|
|
581
|
+
}), G = d({
|
|
581
582
|
enabled: u().default(!1),
|
|
582
|
-
provider: l(
|
|
583
|
-
perplexity:
|
|
584
|
-
parallel:
|
|
585
|
-
native:
|
|
586
|
-
}),
|
|
587
|
-
disabled: c(l(
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
583
|
+
provider: l(W).optional().default(W.Native),
|
|
584
|
+
perplexity: Ct.optional(),
|
|
585
|
+
parallel: wt.optional(),
|
|
586
|
+
native: Tt.optional()
|
|
587
|
+
}), Et = d({ useAllUserKb: u().default(!1) }), Dt = d({ useAllUserFiles: u().default(!1) }), Ot = d({ enabled: u().default(!1) }), kt = d({ tools: c(n()).default([]) }), At = d({
|
|
588
|
+
disabled: c(l(U)).default([
|
|
589
|
+
U.UserMemory,
|
|
590
|
+
U.SearchInUserFiles,
|
|
591
|
+
U.RunWorker,
|
|
592
|
+
U.FetchTeamsChannelHistory,
|
|
593
|
+
U.ScheduleWakeup
|
|
593
594
|
]),
|
|
594
|
-
showForm:
|
|
595
|
-
webSearch:
|
|
596
|
-
userMemory:
|
|
597
|
-
userFiles:
|
|
598
|
-
shareDocument:
|
|
599
|
-
approval:
|
|
600
|
-
}),
|
|
595
|
+
showForm: yt.optional().default(() => yt.parse({})),
|
|
596
|
+
webSearch: G.optional().default(() => G.parse({})),
|
|
597
|
+
userMemory: Et.optional().default(() => Et.parse({})),
|
|
598
|
+
userFiles: Dt.optional().default(() => Dt.parse({})),
|
|
599
|
+
shareDocument: Ot.optional().default(() => Ot.parse({})),
|
|
600
|
+
approval: kt.optional().default(() => kt.parse({}))
|
|
601
|
+
}), K = d({
|
|
601
602
|
freshness: d({
|
|
602
603
|
enabled: u().default(!1),
|
|
603
604
|
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -609,7 +610,7 @@ var bt = [
|
|
|
609
610
|
diversity: i().min(0).max(1).default(.3),
|
|
610
611
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
611
612
|
}).prefault({})
|
|
612
|
-
}).prefault({}),
|
|
613
|
+
}).prefault({}), jt = d({
|
|
613
614
|
prompt: n().optional(),
|
|
614
615
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
615
616
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -618,18 +619,18 @@ var bt = [
|
|
|
618
619
|
searchMode: l(F).optional().default(F.Balanced),
|
|
619
620
|
limit: i().positive().max(100).optional().default(10),
|
|
620
621
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
621
|
-
reasoning:
|
|
622
|
-
ranking:
|
|
623
|
-
}),
|
|
622
|
+
reasoning: tt,
|
|
623
|
+
ranking: K.optional().default(() => K.parse({}))
|
|
624
|
+
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Mt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", J = /* @__PURE__ */ function(e) {
|
|
624
625
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
625
|
-
}({}),
|
|
626
|
+
}({}), Y = /* @__PURE__ */ function(e) {
|
|
626
627
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
627
|
-
}({}),
|
|
628
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
628
629
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
629
|
-
}({}),
|
|
630
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
630
631
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
631
|
-
}({}),
|
|
632
|
-
function
|
|
632
|
+
}({}), Nt = Object.values(Z), Pt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
633
|
+
function Ft(e) {
|
|
633
634
|
let t = e.trim().toLowerCase();
|
|
634
635
|
if (!t) return "";
|
|
635
636
|
try {
|
|
@@ -638,7 +639,7 @@ function Nt(e) {
|
|
|
638
639
|
return t;
|
|
639
640
|
}
|
|
640
641
|
}
|
|
641
|
-
var
|
|
642
|
+
var Q = d({
|
|
642
643
|
media: ne.optional(),
|
|
643
644
|
logo: n().optional(),
|
|
644
645
|
theme: l([
|
|
@@ -653,29 +654,29 @@ var Pt = d({
|
|
|
653
654
|
"black"
|
|
654
655
|
]).optional().default("auto"),
|
|
655
656
|
useColorsForAgentHeader: u().optional().default(!1),
|
|
656
|
-
initialMessage:
|
|
657
|
-
greeting: c(
|
|
658
|
-
messagePlaceholder:
|
|
659
|
-
dismissableNotice:
|
|
660
|
-
footerMessage:
|
|
661
|
-
privacyPolicyNotice:
|
|
657
|
+
initialMessage: q.optional(),
|
|
658
|
+
greeting: c(q).min(1).max(10).optional(),
|
|
659
|
+
messagePlaceholder: q.optional(),
|
|
660
|
+
dismissableNotice: q.optional(),
|
|
661
|
+
footerMessage: q.optional(),
|
|
662
|
+
privacyPolicyNotice: q.optional(),
|
|
662
663
|
interactiveLogin: u().optional().default(!0),
|
|
663
664
|
welcomePopup: u().optional().default(!1),
|
|
664
665
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
665
|
-
layout: l(
|
|
666
|
-
appearance: l(
|
|
666
|
+
layout: l(Y).optional().default(Y.Floating),
|
|
667
|
+
appearance: l(X).optional().default(X.Solid),
|
|
667
668
|
hideFloatingButton: u().optional().default(!1),
|
|
668
669
|
workingGlow: u().optional().default(!0),
|
|
669
670
|
copilotPageCss: n().optional(),
|
|
670
671
|
maxMessageLength: i().int().positive().optional(),
|
|
671
|
-
widgetUrl: r().default(
|
|
672
|
+
widgetUrl: r().default(Mt),
|
|
672
673
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
673
|
-
loaderStrategy: l(
|
|
674
|
+
loaderStrategy: l(J).optional().default(J.InlineModule),
|
|
674
675
|
customCss: n().optional(),
|
|
675
676
|
smoothStream: u().optional().default(!1),
|
|
676
677
|
showExtendedSteps: u().optional().default(!1),
|
|
677
|
-
imageHosts: c(n().overwrite(
|
|
678
|
-
}),
|
|
678
|
+
imageHosts: c(n().overwrite(Ft).refine((e) => e === "" || Pt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
679
|
+
}), It = [
|
|
679
680
|
"image/jpeg",
|
|
680
681
|
"image/png",
|
|
681
682
|
"image/gif",
|
|
@@ -684,19 +685,19 @@ var Pt = d({
|
|
|
684
685
|
"text/plain",
|
|
685
686
|
"text/markdown",
|
|
686
687
|
"text/csv"
|
|
687
|
-
],
|
|
688
|
+
], Lt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $ = d({
|
|
688
689
|
enabled: u().default(!1),
|
|
689
690
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
690
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
691
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...It]),
|
|
691
692
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
692
693
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
693
|
-
}),
|
|
694
|
+
}), Rt = d({
|
|
694
695
|
zeroDataRetention: u().default(!0),
|
|
695
696
|
disallowPromptTraining: u().default(!0),
|
|
696
697
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
697
|
-
}),
|
|
698
|
+
}), zt = d({ enabled: u().default(!1) }), Bt = /* @__PURE__ */ function(e) {
|
|
698
699
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
699
|
-
}({}),
|
|
700
|
+
}({}), Vt = d({ mode: l(Bt).default(Bt.Off) }), Ht = d({
|
|
700
701
|
enabled: u().default(!1),
|
|
701
702
|
voiceId: n().optional(),
|
|
702
703
|
language: n().min(2).max(5).default("it"),
|
|
@@ -715,40 +716,40 @@ var Pt = d({
|
|
|
715
716
|
providerAgentId: n().optional(),
|
|
716
717
|
providerSecretId: n().optional(),
|
|
717
718
|
providerApiKeyId: n().optional()
|
|
718
|
-
}),
|
|
719
|
+
}), Ut = d({ enabled: u() });
|
|
719
720
|
d({
|
|
720
721
|
chatId: n().min(1).optional(),
|
|
721
722
|
deviceContext: ke.optional(),
|
|
722
723
|
externalContext: p(n(), f()).optional()
|
|
723
724
|
});
|
|
724
|
-
var
|
|
725
|
+
var Wt = d({
|
|
725
726
|
sessionId: n(),
|
|
726
727
|
signedUrl: n(),
|
|
727
728
|
providerAgentId: n(),
|
|
728
729
|
chatId: n(),
|
|
729
730
|
maxSessionSeconds: i().int()
|
|
730
|
-
}),
|
|
731
|
+
}), Gt = d({
|
|
731
732
|
voiceId: n(),
|
|
732
733
|
name: n(),
|
|
733
734
|
category: n().optional(),
|
|
734
735
|
previewUrl: n().optional(),
|
|
735
736
|
labels: p(n(), n()).optional()
|
|
736
737
|
});
|
|
737
|
-
c(
|
|
738
|
-
var
|
|
739
|
-
model:
|
|
740
|
-
interface:
|
|
741
|
-
tools:
|
|
738
|
+
c(Gt);
|
|
739
|
+
var Kt = d({
|
|
740
|
+
model: jt,
|
|
741
|
+
interface: Q,
|
|
742
|
+
tools: At.optional().default(() => At.parse({})),
|
|
742
743
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
743
|
-
gatewayOptions:
|
|
744
|
-
channels: c(l(
|
|
744
|
+
gatewayOptions: Rt.optional().default(() => Rt.parse({})),
|
|
745
|
+
channels: c(l(Z)).optional().default(() => [...Nt]),
|
|
745
746
|
externalContextSchema: ae.optional(),
|
|
746
|
-
openaiApi:
|
|
747
|
-
voice:
|
|
748
|
-
toolWorkingSet:
|
|
747
|
+
openaiApi: zt.optional().default(() => zt.parse({})),
|
|
748
|
+
voice: Ht.optional().default(() => Ht.parse({})),
|
|
749
|
+
toolWorkingSet: Vt.optional().default(() => Vt.parse({})),
|
|
749
750
|
hostTools: Ne.optional(),
|
|
750
751
|
pageAccess: Ve.optional()
|
|
751
|
-
}),
|
|
752
|
+
}), qt = d({
|
|
752
753
|
rateLimits: d({
|
|
753
754
|
minuteRateLimit: i().int().min(0).optional(),
|
|
754
755
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -765,8 +766,8 @@ d({
|
|
|
765
766
|
fallbackModels: c(n()).default([]),
|
|
766
767
|
status: l(M).default(M.Draft),
|
|
767
768
|
visibility: l(N).default(N.Organization),
|
|
768
|
-
settings:
|
|
769
|
-
security:
|
|
769
|
+
settings: Kt,
|
|
770
|
+
security: qt.nullish(),
|
|
770
771
|
type: l(P).default(P.Chat),
|
|
771
772
|
organizationId: n()
|
|
772
773
|
}), ee(() => d({
|
|
@@ -777,8 +778,8 @@ d({
|
|
|
777
778
|
fallbackModels: c(n()).nullable().default([]),
|
|
778
779
|
status: l(M).default(M.Draft),
|
|
779
780
|
visibility: l(N).default(N.Organization),
|
|
780
|
-
settings:
|
|
781
|
-
security:
|
|
781
|
+
settings: Kt,
|
|
782
|
+
security: qt.nullable(),
|
|
782
783
|
type: l(P).default(P.Chat),
|
|
783
784
|
organizationId: n(),
|
|
784
785
|
createdAt: m(),
|
|
@@ -791,23 +792,23 @@ d({
|
|
|
791
792
|
outOfBudget: u().optional().default(!1),
|
|
792
793
|
outOfBudgetReason: n().optional().default("")
|
|
793
794
|
}));
|
|
794
|
-
var
|
|
795
|
+
var Jt = d({
|
|
795
796
|
id: n(),
|
|
796
797
|
name: n(),
|
|
797
798
|
status: l(M),
|
|
798
799
|
visibility: l(N),
|
|
799
800
|
organizationId: n(),
|
|
800
|
-
interface:
|
|
801
|
+
interface: Q,
|
|
801
802
|
createdAt: m(),
|
|
802
803
|
updatedAt: m(),
|
|
803
804
|
capabilities: d({
|
|
804
805
|
fileUpload: $,
|
|
805
|
-
voice:
|
|
806
|
+
voice: Ut,
|
|
806
807
|
hostTools: Pe.optional(),
|
|
807
808
|
pageAccess: We.optional()
|
|
808
809
|
}),
|
|
809
|
-
channels: c(l(
|
|
810
|
-
}),
|
|
810
|
+
channels: c(l(Z)).default(() => [...Nt])
|
|
811
|
+
}), Yt = Q.pick({
|
|
811
812
|
logo: !0,
|
|
812
813
|
mainColor: !0,
|
|
813
814
|
textColor: !0,
|
|
@@ -818,41 +819,41 @@ var qt = d({
|
|
|
818
819
|
hideFloatingButton: !0,
|
|
819
820
|
copilotPageCss: !0,
|
|
820
821
|
customCss: !0
|
|
821
|
-
}),
|
|
822
|
+
}), Xt = Jt.pick({
|
|
822
823
|
id: !0,
|
|
823
824
|
name: !0,
|
|
824
825
|
organizationId: !0
|
|
825
|
-
}).extend({ interface:
|
|
826
|
+
}).extend({ interface: Yt }), Zt = d({
|
|
826
827
|
emailPassword: u(),
|
|
827
828
|
google: u(),
|
|
828
829
|
microsoft: u()
|
|
829
|
-
}),
|
|
830
|
+
}), Qt = d({
|
|
830
831
|
requiresAuth: s(!1),
|
|
831
|
-
agent:
|
|
832
|
+
agent: Jt,
|
|
832
833
|
branding: a()
|
|
833
|
-
}),
|
|
834
|
+
}), $t = d({
|
|
834
835
|
requiresAuth: s(!0),
|
|
835
836
|
agent: a(),
|
|
836
|
-
branding:
|
|
837
|
+
branding: Xt
|
|
837
838
|
});
|
|
838
|
-
te("requiresAuth", [
|
|
839
|
-
var
|
|
839
|
+
te("requiresAuth", [Qt, $t]);
|
|
840
|
+
var en = d({
|
|
840
841
|
frontendUrl: n().optional(),
|
|
841
842
|
telemetry: d({
|
|
842
843
|
environment: n(),
|
|
843
844
|
samplingRate: i().min(0).max(1)
|
|
844
845
|
}).nullable()
|
|
845
|
-
}),
|
|
846
|
-
authMethods:
|
|
846
|
+
}), tn = d({
|
|
847
|
+
authMethods: Zt,
|
|
847
848
|
deploymentBranding: fe.nullish(),
|
|
848
|
-
deployment:
|
|
849
|
+
deployment: en.optional()
|
|
849
850
|
});
|
|
850
|
-
te("requiresAuth", [
|
|
851
|
+
te("requiresAuth", [Qt.extend(tn.shape), $t.extend(tn.shape)]), d({
|
|
851
852
|
id: t(),
|
|
852
853
|
limited: u(),
|
|
853
854
|
agentIds: c(t())
|
|
854
855
|
});
|
|
855
|
-
var
|
|
856
|
+
var nn = d({
|
|
856
857
|
userId: t(),
|
|
857
858
|
name: n(),
|
|
858
859
|
email: n(),
|
|
@@ -863,7 +864,7 @@ var tn = d({
|
|
|
863
864
|
});
|
|
864
865
|
d({
|
|
865
866
|
id: t(),
|
|
866
|
-
members: c(
|
|
867
|
+
members: c(nn)
|
|
867
868
|
}), d({
|
|
868
869
|
id: t(),
|
|
869
870
|
userIds: c(t())
|
|
@@ -885,6 +886,6 @@ d({
|
|
|
885
886
|
...g.ids()
|
|
886
887
|
});
|
|
887
888
|
//#endregion
|
|
888
|
-
export {
|
|
889
|
+
export { b as $, St as A, Ft as B, I as C, pt as D, st as E, ft as F, Be as G, j as H, ut as I, Le as J, ze as K, mt as L, lt as M, it as N, gt as O, Qe as P, ke as Q, vt as R, Ke as S, Lt as T, He as U, Ge as V, Ue as W, Ie as X, Ae as Y, Fe as Z, ht as _, $ as a, Te as at, L as b, K as c, le as ct, Bt as d, D as et, P as f, Y as g, X as h, Z as i, ue as it, W as j, Wt as k, tt as l, g as lt, G as m, ot as n, we as nt, Rt as o, me as ot, N as p, A as q, U as r, ye as rt, J as s, h as st, qe as t, _ as tt, F as u, ct as v, R as w, at as x, B as y, xt as z };
|
|
889
890
|
|
|
890
|
-
//# sourceMappingURL=Agent-
|
|
891
|
+
//# sourceMappingURL=Agent-DZb775Ak.js.map
|