@8wave/ai-elements 0.121.0-beta.1 → 0.121.0-beta.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/_chunks/{Agent-BYC51e6E.js → Agent-7rbrjWzu.js} +64 -58
- package/dist/_chunks/Agent-7rbrjWzu.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-CNoHyTuC.js → PkStreamingMarkdown-BnClGp-3.js} +826 -831
- package/dist/_chunks/PkStreamingMarkdown-BnClGp-3.js.map +1 -0
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js → PkToolEditSpreadsheet-D4M6BUKx.js} +2 -2
- package/dist/_chunks/{PkToolEditSpreadsheet-B8bO3vZa.js.map → PkToolEditSpreadsheet-D4M6BUKx.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js → PkToolRequestGeolocation-DmOoFghZ.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-DrvL0h9d.js.map → PkToolRequestGeolocation-DmOoFghZ.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js → PkToolRequestOAuthConnection-DV0sfojC.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-BXti5Vkt.js.map → PkToolRequestOAuthConnection-DV0sfojC.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js → PkToolShowArtifact-V0a8zhdO.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-DR71LNck.js.map → PkToolShowArtifact-V0a8zhdO.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js → PkToolShowContactForm-sLhBxf9e.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-C4BshHSs.js.map → PkToolShowContactForm-sLhBxf9e.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js → PkToolShowForm-Dl2k9jqk.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BLSTn0xE.js.map → PkToolShowForm-Dl2k9jqk.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js → PkToolShowImageGallery-CTsq_DPb.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-CqOXbo0Y.js.map → PkToolShowImageGallery-CTsq_DPb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js → PkToolShowProductList-CpdKWQkP.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-westY5bY.js.map → PkToolShowProductList-CpdKWQkP.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js → PkToolShowSources-WFm2JF0r.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Dy9VXRgv.js.map → PkToolShowSources-WFm2JF0r.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js → PkToolShowSuggestedReply-RcL_3RAz.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-BZ2U3ULB.js.map → PkToolShowSuggestedReply-RcL_3RAz.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js → PkToolShowVideo-Ua5heyl1.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CrFaQbMp.js.map → PkToolShowVideo-Ua5heyl1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js → PkToolShowWebPages-STOCnsKm.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-DXszshY9.js.map → PkToolShowWebPages-STOCnsKm.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js → chatImagePolicy-C8X_GMnS.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-B5-QV037.js.map → chatImagePolicy-C8X_GMnS.js.map} +1 -1
- package/dist/_chunks/{markdown-DO_FLvlJ.js → markdown-EqEd3eyd.js} +10 -10
- package/dist/_chunks/{markdown-DO_FLvlJ.js.map → markdown-EqEd3eyd.js.map} +1 -1
- package/dist/ai-elements.es.js +1439 -1445
- 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-2DVqpLwz.js → Agent-SH2vEFKs.js} +63 -57
- package/dist-vue/_chunks/Agent-SH2vEFKs.js.map +1 -0
- package/dist-vue/_chunks/{Document-ChfbOVVs.js → Document-fmCxsccF.js} +10 -10
- package/dist-vue/_chunks/{Document-ChfbOVVs.js.map → Document-fmCxsccF.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-DlHWtWhL.js → PkChatbot-DlIEIjKJ.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-DlHWtWhL.js.map → PkChatbot-DlIEIjKJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js → PkChatbotEmptyState-Bcozn56E.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DqzgF4vH.js.map → PkChatbotEmptyState-Bcozn56E.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotInput-DQVpDLNp.js +390 -0
- package/dist-vue/_chunks/PkChatbotInput-DQVpDLNp.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotMessages-DEasGGn_.js → PkChatbotMessages-BYFozlwC.js} +22 -18
- package/dist-vue/_chunks/PkChatbotMessages-BYFozlwC.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js → PkChatbotStepPayload-DjntsSlX.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bga_HEps.js.map → PkChatbotStepPayload-DjntsSlX.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js → PkChatbotStepToolDetail-If9goNdY.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-YbUYP-Y3.js.map → PkChatbotStepToolDetail-If9goNdY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js → PkChatbotSteps-DUFfniZn.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-CVAkaIzk.js.map → PkChatbotSteps-DUFfniZn.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-BEKVeEmo.js → PkChatbotViewChat-BGoltDr9.js} +8 -11
- package/dist-vue/_chunks/PkChatbotViewChat-BGoltDr9.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js → PkChatbotViewConversations-WUpRm6GG.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BHvHF0w7.js.map → PkChatbotViewConversations-WUpRm6GG.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js → PkChatbotViewFiles-CpG_LRg6.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-C-4__qj_.js.map → PkChatbotViewFiles-CpG_LRg6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js → PkChatbotViewProfile-DetQJa7E.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-_WMSVDlA.js.map → PkChatbotViewProfile-DetQJa7E.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js → PkStreamingMarkdown-DLKEIMcZ.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-6Y7qgbvS.js.map → PkStreamingMarkdown-DLKEIMcZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js → PkToolEditSpreadsheet-D2JtjXef.js} +2 -2
- package/dist-vue/_chunks/{PkToolEditSpreadsheet-BTauPyXT.js.map → PkToolEditSpreadsheet-D2JtjXef.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js → PkToolRequestGeolocation--MTT__Vu.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-DBzup6bn.js.map → PkToolRequestGeolocation--MTT__Vu.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js → PkToolRequestOAuthConnection-Gb_qfvlN.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-yrRDpNqp.js.map → PkToolRequestOAuthConnection-Gb_qfvlN.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js → PkToolShowArtifact-BWVntj9H.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-fp37O1om.js.map → PkToolShowArtifact-BWVntj9H.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js → PkToolShowContactForm-BbBt3ha0.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-iSx2ioyT.js.map → PkToolShowContactForm-BbBt3ha0.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js → PkToolShowDiagram-CE6KHz1M.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-BlKrh4gK.js.map → PkToolShowDiagram-CE6KHz1M.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js → PkToolShowForm-CNm8HSUW.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-CwlXH13N.js.map → PkToolShowForm-CNm8HSUW.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js → PkToolShowImageGallery-6k3ituoi.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-C4esYiM_.js.map → PkToolShowImageGallery-6k3ituoi.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js → PkToolShowProductList-Bu-pUg5d.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CdeYQ-mF.js.map → PkToolShowProductList-Bu-pUg5d.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js → PkToolShowSources-DTWNZqWu.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-D8IF7g0d.js.map → PkToolShowSources-DTWNZqWu.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js → PkToolShowSuggestedReply-DSXhqWhx.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DXyO8ki2.js.map → PkToolShowSuggestedReply-DSXhqWhx.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js → PkToolShowVideo-C0ycBiOI.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-CA7MNSp_.js.map → PkToolShowVideo-C0ycBiOI.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js → PkToolShowWebPages-CWWv1tr5.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CKWnAbp8.js.map → PkToolShowWebPages-CWWv1tr5.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DecVahlB.js → createChatbotApiClient-MbfcTdwY.js} +16 -16
- package/dist-vue/_chunks/{createChatbotApiClient-DecVahlB.js.map → createChatbotApiClient-MbfcTdwY.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-BQTq8fq-.js → useChatbotStore-DDSgrRzg.js} +1143 -1143
- package/dist-vue/_chunks/{useChatbotStore-BQTq8fq-.js.map → useChatbotStore-DDSgrRzg.js.map} +1 -1
- package/dist-vue/_chunks/{utils-BLMOBcka.js → utils-B9-Vt10H.js} +35 -40
- package/dist-vue/_chunks/utils-B9-Vt10H.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +10 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +4800 -4728
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +20 -4
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +5 -2
- package/dist-vue/packages/components/src/chat/PkChatbotInput.d.ts +3 -4
- package/dist-vue/packages/components/src/chat/PkChatbotMessages.d.ts +10 -0
- package/dist-vue/packages/components/src/chat/PkWebSearchSettings.d.ts +2 -0
- package/dist-vue/packages/components/src/table/PkTableSortable.d.ts +1 -1
- package/dist-vue/packages/composable/src/chatbot/useGreeting.d.ts +5 -3
- package/dist-vue/packages/models/src/schema/Agent.d.ts +14 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/Agent-BYC51e6E.js.map +0 -1
- package/dist/_chunks/PkStreamingMarkdown-CNoHyTuC.js.map +0 -1
- package/dist-vue/_chunks/Agent-2DVqpLwz.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotInput-CQup254H.js +0 -399
- package/dist-vue/_chunks/PkChatbotInput-CQup254H.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-DEasGGn_.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotViewChat-BEKVeEmo.js.map +0 -1
- package/dist-vue/_chunks/utils-BLMOBcka.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-DlIEIjKJ.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-Bcozn56E.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-DQVpDLNp.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-BYFozlwC.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-DjntsSlX.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-If9goNdY.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-DUFfniZn.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-BGoltDr9.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-WUpRm6GG.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-CpG_LRg6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-DetQJa7E.js";
|
|
@@ -528,7 +528,13 @@ function yt(e) {
|
|
|
528
528
|
let t = e.split("/")[0];
|
|
529
529
|
return Object.prototype.hasOwnProperty.call(vt, t) ? vt[t] : void 0;
|
|
530
530
|
}
|
|
531
|
-
var bt =
|
|
531
|
+
var bt = [
|
|
532
|
+
"perplexity_search",
|
|
533
|
+
"parallel_search",
|
|
534
|
+
"web_search",
|
|
535
|
+
"openai_web_search",
|
|
536
|
+
"google_search"
|
|
537
|
+
], xt = d({
|
|
532
538
|
maxResults: i().int().min(1).max(20).optional(),
|
|
533
539
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
534
540
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -541,7 +547,7 @@ var bt = d({
|
|
|
541
547
|
"month",
|
|
542
548
|
"year"
|
|
543
549
|
]).optional()
|
|
544
|
-
}),
|
|
550
|
+
}), St = d({
|
|
545
551
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
546
552
|
maxResults: i().int().min(1).max(20).optional(),
|
|
547
553
|
sourcePolicy: d({
|
|
@@ -554,7 +560,7 @@ var bt = d({
|
|
|
554
560
|
maxCharsTotal: i().int().positive().optional()
|
|
555
561
|
}).optional(),
|
|
556
562
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
557
|
-
}),
|
|
563
|
+
}), Ct = d({
|
|
558
564
|
openai: d({}).optional(),
|
|
559
565
|
anthropic: d({
|
|
560
566
|
maxUses: i().int().positive().optional(),
|
|
@@ -572,10 +578,10 @@ var bt = d({
|
|
|
572
578
|
}), G = d({
|
|
573
579
|
enabled: u().default(!1),
|
|
574
580
|
provider: l(W).optional().default(W.Native),
|
|
575
|
-
perplexity:
|
|
576
|
-
parallel:
|
|
577
|
-
native:
|
|
578
|
-
}),
|
|
581
|
+
perplexity: xt.optional(),
|
|
582
|
+
parallel: St.optional(),
|
|
583
|
+
native: Ct.optional()
|
|
584
|
+
}), wt = d({ useAllUserKb: u().default(!1) }), Tt = d({ useAllUserFiles: u().default(!1) }), Et = d({ tools: c(n()).default([]) }), Dt = d({
|
|
579
585
|
disabled: c(l(U)).default([
|
|
580
586
|
U.UserMemory,
|
|
581
587
|
U.SearchInUserFiles,
|
|
@@ -585,9 +591,9 @@ var bt = d({
|
|
|
585
591
|
]),
|
|
586
592
|
showForm: _t.optional().default(() => _t.parse({})),
|
|
587
593
|
webSearch: G.optional().default(() => G.parse({})),
|
|
588
|
-
userMemory:
|
|
589
|
-
userFiles:
|
|
590
|
-
approval:
|
|
594
|
+
userMemory: wt.optional().default(() => wt.parse({})),
|
|
595
|
+
userFiles: Tt.optional().default(() => Tt.parse({})),
|
|
596
|
+
approval: Et.optional().default(() => Et.parse({}))
|
|
591
597
|
}), K = d({
|
|
592
598
|
freshness: d({
|
|
593
599
|
enabled: u().default(!1),
|
|
@@ -600,7 +606,7 @@ var bt = d({
|
|
|
600
606
|
diversity: i().min(0).max(1).default(.3),
|
|
601
607
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
602
608
|
}).prefault({})
|
|
603
|
-
}).prefault({}),
|
|
609
|
+
}).prefault({}), Ot = d({
|
|
604
610
|
prompt: n().optional(),
|
|
605
611
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
606
612
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -611,7 +617,7 @@ var bt = d({
|
|
|
611
617
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
612
618
|
reasoning: $e,
|
|
613
619
|
ranking: K.optional().default(() => K.parse({}))
|
|
614
|
-
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e),
|
|
620
|
+
}), q = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), kt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", J = /* @__PURE__ */ function(e) {
|
|
615
621
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
616
622
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
617
623
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
@@ -619,8 +625,8 @@ var bt = d({
|
|
|
619
625
|
return e.Overlay = "overlay", e.Push = "push", e;
|
|
620
626
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
621
627
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
622
|
-
}({}),
|
|
623
|
-
function
|
|
628
|
+
}({}), At = Object.values(Z), jt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
629
|
+
function Mt(e) {
|
|
624
630
|
let t = e.trim().toLowerCase();
|
|
625
631
|
if (!t) return "";
|
|
626
632
|
try {
|
|
@@ -658,14 +664,14 @@ var Q = d({
|
|
|
658
664
|
workingGlow: u().optional().default(!0),
|
|
659
665
|
copilotPageCss: n().optional(),
|
|
660
666
|
maxMessageLength: i().int().positive().optional(),
|
|
661
|
-
widgetUrl: r().default(
|
|
667
|
+
widgetUrl: r().default(kt),
|
|
662
668
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
663
669
|
loaderStrategy: l(J).optional().default(J.InlineModule),
|
|
664
670
|
customCss: n().optional(),
|
|
665
671
|
smoothStream: u().optional().default(!1),
|
|
666
672
|
showExtendedSteps: u().optional().default(!1),
|
|
667
|
-
imageHosts: c(n().overwrite(
|
|
668
|
-
}),
|
|
673
|
+
imageHosts: c(n().overwrite(Mt).refine((e) => e === "" || jt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
674
|
+
}), Nt = [
|
|
669
675
|
"image/jpeg",
|
|
670
676
|
"image/png",
|
|
671
677
|
"image/gif",
|
|
@@ -674,19 +680,19 @@ var Q = d({
|
|
|
674
680
|
"text/plain",
|
|
675
681
|
"text/markdown",
|
|
676
682
|
"text/csv"
|
|
677
|
-
],
|
|
683
|
+
], Pt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", $ = d({
|
|
678
684
|
enabled: u().default(!1),
|
|
679
685
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
680
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
686
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...Nt]),
|
|
681
687
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
682
688
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
683
|
-
}),
|
|
689
|
+
}), Ft = d({
|
|
684
690
|
zeroDataRetention: u().default(!0),
|
|
685
691
|
disallowPromptTraining: u().default(!0),
|
|
686
692
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
687
|
-
}),
|
|
693
|
+
}), It = d({ enabled: u().default(!1) }), Lt = /* @__PURE__ */ function(e) {
|
|
688
694
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
689
|
-
}({}),
|
|
695
|
+
}({}), Rt = d({ mode: l(Lt).default(Lt.Off) }), zt = d({
|
|
690
696
|
enabled: u().default(!1),
|
|
691
697
|
voiceId: n().optional(),
|
|
692
698
|
language: n().min(2).max(5).default("it"),
|
|
@@ -705,40 +711,40 @@ var Q = d({
|
|
|
705
711
|
providerAgentId: n().optional(),
|
|
706
712
|
providerSecretId: n().optional(),
|
|
707
713
|
providerApiKeyId: n().optional()
|
|
708
|
-
}),
|
|
714
|
+
}), Bt = d({ enabled: u() });
|
|
709
715
|
d({
|
|
710
716
|
chatId: n().min(1).optional(),
|
|
711
717
|
deviceContext: Ae.optional(),
|
|
712
718
|
externalContext: p(n(), f()).optional()
|
|
713
719
|
});
|
|
714
|
-
var
|
|
720
|
+
var Vt = d({
|
|
715
721
|
sessionId: n(),
|
|
716
722
|
signedUrl: n(),
|
|
717
723
|
providerAgentId: n(),
|
|
718
724
|
chatId: n(),
|
|
719
725
|
maxSessionSeconds: i().int()
|
|
720
|
-
}),
|
|
726
|
+
}), Ht = d({
|
|
721
727
|
voiceId: n(),
|
|
722
728
|
name: n(),
|
|
723
729
|
category: n().optional(),
|
|
724
730
|
previewUrl: n().optional(),
|
|
725
731
|
labels: p(n(), n()).optional()
|
|
726
732
|
});
|
|
727
|
-
c(
|
|
728
|
-
var
|
|
729
|
-
model:
|
|
733
|
+
c(Ht);
|
|
734
|
+
var Ut = d({
|
|
735
|
+
model: Ot,
|
|
730
736
|
interface: Q,
|
|
731
|
-
tools:
|
|
737
|
+
tools: Dt.optional().default(() => Dt.parse({})),
|
|
732
738
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
733
|
-
gatewayOptions:
|
|
734
|
-
channels: c(l(Z)).optional().default(() => [...
|
|
739
|
+
gatewayOptions: Ft.optional().default(() => Ft.parse({})),
|
|
740
|
+
channels: c(l(Z)).optional().default(() => [...At]),
|
|
735
741
|
externalContextSchema: ae.optional(),
|
|
736
|
-
openaiApi:
|
|
737
|
-
voice:
|
|
738
|
-
toolWorkingSet:
|
|
742
|
+
openaiApi: It.optional().default(() => It.parse({})),
|
|
743
|
+
voice: zt.optional().default(() => zt.parse({})),
|
|
744
|
+
toolWorkingSet: Rt.optional().default(() => Rt.parse({})),
|
|
739
745
|
hostTools: Pe.optional(),
|
|
740
746
|
pageAccess: He.optional()
|
|
741
|
-
}),
|
|
747
|
+
}), Wt = d({
|
|
742
748
|
rateLimits: d({
|
|
743
749
|
minuteRateLimit: i().int().min(0).optional(),
|
|
744
750
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -755,8 +761,8 @@ d({
|
|
|
755
761
|
fallbackModels: c(n()).default([]),
|
|
756
762
|
status: l(j).default(j.Draft),
|
|
757
763
|
visibility: l(M).default(M.Organization),
|
|
758
|
-
settings:
|
|
759
|
-
security:
|
|
764
|
+
settings: Ut,
|
|
765
|
+
security: Wt.nullish(),
|
|
760
766
|
type: l(N).default(N.Chat),
|
|
761
767
|
organizationId: n()
|
|
762
768
|
}), ee(() => d({
|
|
@@ -767,8 +773,8 @@ d({
|
|
|
767
773
|
fallbackModels: c(n()).nullable().default([]),
|
|
768
774
|
status: l(j).default(j.Draft),
|
|
769
775
|
visibility: l(M).default(M.Organization),
|
|
770
|
-
settings:
|
|
771
|
-
security:
|
|
776
|
+
settings: Ut,
|
|
777
|
+
security: Wt.nullable(),
|
|
772
778
|
type: l(N).default(N.Chat),
|
|
773
779
|
organizationId: n(),
|
|
774
780
|
createdAt: m(),
|
|
@@ -781,7 +787,7 @@ d({
|
|
|
781
787
|
outOfBudget: u().optional().default(!1),
|
|
782
788
|
outOfBudgetReason: n().optional().default("")
|
|
783
789
|
}));
|
|
784
|
-
var
|
|
790
|
+
var Gt = d({
|
|
785
791
|
id: n(),
|
|
786
792
|
name: n(),
|
|
787
793
|
status: l(j),
|
|
@@ -792,12 +798,12 @@ var Wt = d({
|
|
|
792
798
|
updatedAt: m(),
|
|
793
799
|
capabilities: d({
|
|
794
800
|
fileUpload: $,
|
|
795
|
-
voice:
|
|
801
|
+
voice: Bt,
|
|
796
802
|
hostTools: Fe.optional(),
|
|
797
803
|
pageAccess: Ge.optional()
|
|
798
804
|
}),
|
|
799
|
-
channels: c(l(Z)).default(() => [...
|
|
800
|
-
}),
|
|
805
|
+
channels: c(l(Z)).default(() => [...At])
|
|
806
|
+
}), Kt = Q.pick({
|
|
801
807
|
logo: !0,
|
|
802
808
|
mainColor: !0,
|
|
803
809
|
textColor: !0,
|
|
@@ -807,36 +813,36 @@ var Wt = d({
|
|
|
807
813
|
copilotFrame: !0,
|
|
808
814
|
copilotPageCss: !0,
|
|
809
815
|
customCss: !0
|
|
810
|
-
}),
|
|
816
|
+
}), qt = Gt.pick({
|
|
811
817
|
id: !0,
|
|
812
818
|
name: !0,
|
|
813
819
|
organizationId: !0
|
|
814
|
-
}).extend({ interface:
|
|
820
|
+
}).extend({ interface: Kt }), Jt = d({
|
|
815
821
|
emailPassword: u(),
|
|
816
822
|
google: u(),
|
|
817
823
|
microsoft: u()
|
|
818
|
-
}),
|
|
824
|
+
}), Yt = d({
|
|
819
825
|
requiresAuth: s(!1),
|
|
820
|
-
agent:
|
|
826
|
+
agent: Gt,
|
|
821
827
|
branding: a()
|
|
822
|
-
}),
|
|
828
|
+
}), Xt = d({
|
|
823
829
|
requiresAuth: s(!0),
|
|
824
830
|
agent: a(),
|
|
825
|
-
branding:
|
|
831
|
+
branding: qt
|
|
826
832
|
});
|
|
827
|
-
te("requiresAuth", [
|
|
828
|
-
var
|
|
833
|
+
te("requiresAuth", [Yt, Xt]);
|
|
834
|
+
var Zt = d({
|
|
829
835
|
frontendUrl: n().optional(),
|
|
830
836
|
telemetry: d({
|
|
831
837
|
environment: n(),
|
|
832
838
|
samplingRate: i().min(0).max(1)
|
|
833
839
|
}).nullable()
|
|
834
|
-
}),
|
|
835
|
-
authMethods:
|
|
840
|
+
}), Qt = d({
|
|
841
|
+
authMethods: Jt,
|
|
836
842
|
deploymentBranding: fe.nullish(),
|
|
837
|
-
deployment:
|
|
843
|
+
deployment: Zt.optional()
|
|
838
844
|
});
|
|
839
|
-
te("requiresAuth", [
|
|
845
|
+
te("requiresAuth", [Yt.extend(Qt.shape), Xt.extend(Qt.shape)]), d({
|
|
840
846
|
id: t(),
|
|
841
847
|
agentIds: c(t())
|
|
842
848
|
}), d({
|
|
@@ -857,6 +863,6 @@ te("requiresAuth", [Jt.extend(Zt.shape), Yt.extend(Zt.shape)]), d({
|
|
|
857
863
|
...g.ids()
|
|
858
864
|
});
|
|
859
865
|
//#endregion
|
|
860
|
-
export {
|
|
866
|
+
export { Te as $, st as A, Ue as B, Pt as C, Vt as D, mt as E, ft as F, Re as G, Ve as H, gt as I, Ie as J, je as K, yt as L, Xe as M, ut as N, bt as O, ct as P, _ as Q, Mt as R, R as S, dt as T, Be as U, We as V, k as W, b as X, Ae as Y, D as Z, ot as _, X as a, le as at, rt as b, J as c, P as d, ye as et, Lt as f, pt as g, Y as h, Z as i, h as it, nt as j, W as k, K as l, G as m, it as n, Ee as nt, $ as o, g as ot, N as p, Le as q, U as r, me as rt, Ft as s, I as t, ue as tt, $e as u, B as v, at as w, F as x, L as y, A as z };
|
|
861
867
|
|
|
862
|
-
//# sourceMappingURL=Agent-
|
|
868
|
+
//# sourceMappingURL=Agent-SH2vEFKs.js.map
|