@8wave/ai-elements 0.121.0-beta.54 → 0.121.0-beta.56
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-BdoXh8b0.js → Agent-FDL4Wq0B.js} +95 -71
- package/dist/_chunks/Agent-FDL4Wq0B.js.map +1 -0
- package/dist/_chunks/{PkStreamingMarkdown-Bev81_Lp.js → PkStreamingMarkdown-DPW6VsEn.js} +6 -6
- package/dist/_chunks/{PkStreamingMarkdown-Bev81_Lp.js.map → PkStreamingMarkdown-DPW6VsEn.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-a37ez2k5.js → PkToolChatFile-BL6_6_YP.js} +4 -4
- package/dist/_chunks/{PkToolChatFile-a37ez2k5.js.map → PkToolChatFile-BL6_6_YP.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-BantUie4.js → PkToolRequestGeolocation-nLx_fany.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-BantUie4.js.map → PkToolRequestGeolocation-nLx_fany.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-CB5ziPOE.js → PkToolRequestOAuthConnection-BeULtYsM.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-CB5ziPOE.js.map → PkToolRequestOAuthConnection-BeULtYsM.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-CecXXZSh.js → PkToolShowArtifact-BbxJB9sw.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-CecXXZSh.js.map → PkToolShowArtifact-BbxJB9sw.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-3BGkXgD9.js → PkToolShowContactForm-MPqFOYBD.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-3BGkXgD9.js.map → PkToolShowContactForm-MPqFOYBD.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-BXOmY4ce.js → PkToolShowForm-BCt6k0Qn.js} +3 -3
- package/dist/_chunks/{PkToolShowForm-BXOmY4ce.js.map → PkToolShowForm-BCt6k0Qn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-BisEror8.js → PkToolShowImageGallery-D5Mj0OMR.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-BisEror8.js.map → PkToolShowImageGallery-D5Mj0OMR.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-BmPdjUSS.js → PkToolShowProductList-Fsm9LxbT.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-BmPdjUSS.js.map → PkToolShowProductList-Fsm9LxbT.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-Cv8UguNA.js → PkToolShowSources-CmSKmV61.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-Cv8UguNA.js.map → PkToolShowSources-CmSKmV61.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-lzs6-CcI.js → PkToolShowSuggestedReply-Bp3CzPjY.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-lzs6-CcI.js.map → PkToolShowSuggestedReply-Bp3CzPjY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-BPYYn43O.js → PkToolShowVideo-2G2Sty3S.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-BPYYn43O.js.map → PkToolShowVideo-2G2Sty3S.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-CbE_bnHt.js → PkToolShowWebPages-BpNBC0sK.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-CbE_bnHt.js.map → PkToolShowWebPages-BpNBC0sK.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-CZeGEXvB.js → chatImagePolicy-ulDURWxd.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-CZeGEXvB.js.map → chatImagePolicy-ulDURWxd.js.map} +1 -1
- package/dist/_chunks/{markdown-DtRRqlac.js → markdown-CYo6_RtA.js} +8 -8
- package/dist/_chunks/{markdown-DtRRqlac.js.map → markdown-CYo6_RtA.js.map} +1 -1
- package/dist/ai-elements.es.js +2419 -2422
- 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-B-jQOrER.js → Agent-CZUFbLo7.js} +85 -80
- package/dist-vue/_chunks/Agent-CZUFbLo7.js.map +1 -0
- package/dist-vue/_chunks/{Document-DQtliJu6.js → Document-C06S5S5M.js} +2 -2
- package/dist-vue/_chunks/{Document-DQtliJu6.js.map → Document-C06S5S5M.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-BFAcqm6m.js → PkChatbot-BjD_4yaD.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-BFAcqm6m.js.map → PkChatbot-BjD_4yaD.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-fADhr37n.js → PkChatbotEmptyState-CMNmmQdu.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-fADhr37n.js.map → PkChatbotEmptyState-CMNmmQdu.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CUOcwWDz.js → PkChatbotInput-CdpjDIzr.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-CUOcwWDz.js.map → PkChatbotInput-CdpjDIzr.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-ozG-o8mm.js +965 -0
- package/dist-vue/_chunks/PkChatbotMessages-ozG-o8mm.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotStepPayload-CQD8lb4l.js → PkChatbotStepPayload-WwVYTghY.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-CQD8lb4l.js.map → PkChatbotStepPayload-WwVYTghY.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bj1ZBPMz.js → PkChatbotStepToolDetail-BV2J0bAi.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Bj1ZBPMz.js.map → PkChatbotStepToolDetail-BV2J0bAi.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-DhIEYst5.js → PkChatbotSteps-D2z1P3h3.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-DhIEYst5.js.map → PkChatbotSteps-D2z1P3h3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CW4SxAtr.js → PkChatbotViewChat-BqFY0Evp.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-CW4SxAtr.js.map → PkChatbotViewChat-BqFY0Evp.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BXxXUgso.js → PkChatbotViewConversations-DF_c4X6k.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BXxXUgso.js.map → PkChatbotViewConversations-DF_c4X6k.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-i_OUsdlU.js → PkChatbotViewFiles-B76IwGGP.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-i_OUsdlU.js.map → PkChatbotViewFiles-B76IwGGP.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-x0oUCbeL.js → PkChatbotViewProfile-Bt0eH8fO.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-x0oUCbeL.js.map → PkChatbotViewProfile-Bt0eH8fO.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-qZLlI83D.js → PkStreamingMarkdown-DbcGdYgv.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-qZLlI83D.js.map → PkStreamingMarkdown-DbcGdYgv.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DPkLqqDt.js → PkToolChatFile-CVRYORvL.js} +2 -2
- package/dist-vue/_chunks/{PkToolChatFile-DPkLqqDt.js.map → PkToolChatFile-CVRYORvL.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CY-NC6Rc.js → PkToolRequestGeolocation-DXHDyI5N.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-CY-NC6Rc.js.map → PkToolRequestGeolocation-DXHDyI5N.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-RkbnKSde.js → PkToolRequestOAuthConnection-D5hBaUNG.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-RkbnKSde.js.map → PkToolRequestOAuthConnection-D5hBaUNG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-BDZjRnfs.js → PkToolShowArtifact-CucTREqR.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-BDZjRnfs.js.map → PkToolShowArtifact-CucTREqR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-CcIF7fNS.js → PkToolShowContactForm-B3uOHhnG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-CcIF7fNS.js.map → PkToolShowContactForm-B3uOHhnG.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-CD70YQgq.js → PkToolShowDiagram-CHLApsxe.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-CD70YQgq.js.map → PkToolShowDiagram-CHLApsxe.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-edPn56Ka.js → PkToolShowForm-CblYA_3B.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-edPn56Ka.js.map → PkToolShowForm-CblYA_3B.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-82BzTTbf.js → PkToolShowImageGallery-uhRKuPJK.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-82BzTTbf.js.map → PkToolShowImageGallery-uhRKuPJK.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-CKPDiMkx.js → PkToolShowProductList-BIbKoptX.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-CKPDiMkx.js.map → PkToolShowProductList-BIbKoptX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CHH2vKVG.js → PkToolShowSources-Ci8ssht-.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-CHH2vKVG.js.map → PkToolShowSources-Ci8ssht-.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CThFJVUq.js → PkToolShowSuggestedReply-CQgkPMgE.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-CThFJVUq.js.map → PkToolShowSuggestedReply-CQgkPMgE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-C5TKoW1f.js → PkToolShowVideo-hQQ_Kr8f.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-C5TKoW1f.js.map → PkToolShowVideo-hQQ_Kr8f.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-CuwLXH1I.js → PkToolShowWebPages-BUlVSK43.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-CuwLXH1I.js.map → PkToolShowWebPages-BUlVSK43.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-B3U31J_K.js → createChatbotApiClient-BYGLKd_e.js} +14 -14
- package/dist-vue/_chunks/{createChatbotApiClient-B3U31J_K.js.map → createChatbotApiClient-BYGLKd_e.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-D2L4m3iJ.js → useChatbotStore-O0u7mVit.js} +475 -475
- package/dist-vue/_chunks/{useChatbotStore-D2L4m3iJ.js.map → useChatbotStore-O0u7mVit.js.map} +1 -1
- package/dist-vue/_chunks/{utils-C8jnMPj0.js → utils-CqPytB2D.js} +8 -8
- package/dist-vue/_chunks/{utils-C8jnMPj0.js.map → utils-CqPytB2D.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/composables.js +6 -6
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +146 -146
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +4 -4
- package/dist-vue/packages/models/src/schema/Agent.d.ts +6 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-BdoXh8b0.js.map +0 -1
- package/dist-vue/_chunks/Agent-B-jQOrER.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-CcTQozaF.js +0 -968
- package/dist-vue/_chunks/PkChatbotMessages-CcTQozaF.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-BjD_4yaD.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-CMNmmQdu.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-CdpjDIzr.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-ozG-o8mm.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-WwVYTghY.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-BV2J0bAi.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-D2z1P3h3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-BqFY0Evp.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-DF_c4X6k.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-B76IwGGP.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-Bt0eH8fO.js";
|
|
@@ -458,6 +458,11 @@ function ut(e) {
|
|
|
458
458
|
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;
|
|
459
459
|
}
|
|
460
460
|
var dt = /* @__PURE__ */ new Set([
|
|
461
|
+
"editSpreadsheet",
|
|
462
|
+
"editWordDocument",
|
|
463
|
+
U.CreateSpreadsheet,
|
|
464
|
+
U.CreateWordDocument
|
|
465
|
+
]), ft = /* @__PURE__ */ new Set([
|
|
461
466
|
U.RequestConfirm,
|
|
462
467
|
U.ShowArtifact,
|
|
463
468
|
U.ShowWeather,
|
|
@@ -473,25 +478,25 @@ var dt = /* @__PURE__ */ new Set([
|
|
|
473
478
|
U.ShowEmail,
|
|
474
479
|
U.ShowMessage,
|
|
475
480
|
U.ShowForm,
|
|
476
|
-
|
|
481
|
+
...dt,
|
|
477
482
|
U.ShareDocument
|
|
478
483
|
]);
|
|
479
|
-
function
|
|
480
|
-
return
|
|
484
|
+
function pt(e) {
|
|
485
|
+
return ft.has(e);
|
|
481
486
|
}
|
|
482
|
-
var
|
|
487
|
+
var mt = /* @__PURE__ */ new Set([
|
|
483
488
|
U.RequestConfirm,
|
|
484
489
|
U.RequestGeolocation,
|
|
485
490
|
U.ShowForm,
|
|
486
491
|
U.ShowMultipleChoice,
|
|
487
492
|
"requestOAuthConnection"
|
|
488
493
|
]);
|
|
489
|
-
function
|
|
490
|
-
return
|
|
494
|
+
function ht(e) {
|
|
495
|
+
return mt.has(e);
|
|
491
496
|
}
|
|
492
|
-
var
|
|
497
|
+
var gt = /* @__PURE__ */ function(e) {
|
|
493
498
|
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
494
|
-
}({}),
|
|
499
|
+
}({}), _t = /* @__PURE__ */ new Set([
|
|
495
500
|
U.RequestConfirm,
|
|
496
501
|
U.RequestGeolocation,
|
|
497
502
|
U.ShowArtifact,
|
|
@@ -512,31 +517,31 @@ var ht = /* @__PURE__ */ function(e) {
|
|
|
512
517
|
U.ShowVideo,
|
|
513
518
|
U.ShowWeather,
|
|
514
519
|
U.ShowWebPages
|
|
515
|
-
]),
|
|
516
|
-
function
|
|
517
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
520
|
+
]), vt = "Shown on the caller's screen";
|
|
521
|
+
function yt(e) {
|
|
522
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(vt));
|
|
518
523
|
}
|
|
519
|
-
var
|
|
524
|
+
var bt = d({
|
|
520
525
|
maxSteps: i().int().min(1).max(10).optional().default(5),
|
|
521
526
|
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
522
527
|
}), W = /* @__PURE__ */ function(e) {
|
|
523
528
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
524
|
-
}({}),
|
|
529
|
+
}({}), xt = {
|
|
525
530
|
openai: "OpenAI",
|
|
526
531
|
anthropic: "Anthropic",
|
|
527
532
|
google: "Google"
|
|
528
533
|
};
|
|
529
|
-
function
|
|
534
|
+
function St(e) {
|
|
530
535
|
let t = e.split("/")[0];
|
|
531
|
-
return Object.prototype.hasOwnProperty.call(
|
|
536
|
+
return Object.prototype.hasOwnProperty.call(xt, t) ? xt[t] : void 0;
|
|
532
537
|
}
|
|
533
|
-
var
|
|
538
|
+
var Ct = [
|
|
534
539
|
"perplexity_search",
|
|
535
540
|
"parallel_search",
|
|
536
541
|
"web_search",
|
|
537
542
|
"openai_web_search",
|
|
538
543
|
"google_search"
|
|
539
|
-
],
|
|
544
|
+
], wt = d({
|
|
540
545
|
maxResults: i().int().min(1).max(20).optional(),
|
|
541
546
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
542
547
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -549,7 +554,7 @@ var St = [
|
|
|
549
554
|
"month",
|
|
550
555
|
"year"
|
|
551
556
|
]).optional()
|
|
552
|
-
}),
|
|
557
|
+
}), Tt = d({
|
|
553
558
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
554
559
|
maxResults: i().int().min(1).max(20).optional(),
|
|
555
560
|
sourcePolicy: d({
|
|
@@ -562,7 +567,7 @@ var St = [
|
|
|
562
567
|
maxCharsTotal: i().int().positive().optional()
|
|
563
568
|
}).optional(),
|
|
564
569
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
565
|
-
}),
|
|
570
|
+
}), Et = d({
|
|
566
571
|
openai: d({}).optional(),
|
|
567
572
|
anthropic: d({
|
|
568
573
|
maxUses: i().int().positive().optional(),
|
|
@@ -580,10 +585,10 @@ var St = [
|
|
|
580
585
|
}), G = d({
|
|
581
586
|
enabled: u().default(!1),
|
|
582
587
|
provider: l(W).optional().default(W.Native),
|
|
583
|
-
perplexity:
|
|
584
|
-
parallel:
|
|
585
|
-
native:
|
|
586
|
-
}),
|
|
588
|
+
perplexity: wt.optional(),
|
|
589
|
+
parallel: Tt.optional(),
|
|
590
|
+
native: Et.optional()
|
|
591
|
+
}), Dt = d({ useAllUserKb: u().default(!1) }), Ot = d({ useAllUserFiles: u().default(!1) }), kt = d({ enabled: u().default(!1) }), K = d({ enabled: u().default(!1) }), At = d({ tools: c(n()).default([]) }), jt = d({
|
|
587
592
|
disabled: c(l(U)).default([
|
|
588
593
|
U.UserMemory,
|
|
589
594
|
U.SearchInUserFiles,
|
|
@@ -591,14 +596,14 @@ var St = [
|
|
|
591
596
|
U.FetchTeamsChannelHistory,
|
|
592
597
|
U.ScheduleWakeup
|
|
593
598
|
]),
|
|
594
|
-
showForm:
|
|
599
|
+
showForm: bt.optional().default(() => bt.parse({})),
|
|
595
600
|
webSearch: G.optional().default(() => G.parse({})),
|
|
596
|
-
userMemory:
|
|
597
|
-
userFiles:
|
|
598
|
-
shareDocument:
|
|
601
|
+
userMemory: Dt.optional().default(() => Dt.parse({})),
|
|
602
|
+
userFiles: Ot.optional().default(() => Ot.parse({})),
|
|
603
|
+
shareDocument: kt.optional().default(() => kt.parse({})),
|
|
599
604
|
createSpreadsheet: K.optional().default(() => K.parse({})),
|
|
600
605
|
createWordDocument: K.optional().default(() => K.parse({})),
|
|
601
|
-
approval:
|
|
606
|
+
approval: At.optional().default(() => At.parse({}))
|
|
602
607
|
}), q = d({
|
|
603
608
|
freshness: d({
|
|
604
609
|
enabled: u().default(!1),
|
|
@@ -611,7 +616,7 @@ var St = [
|
|
|
611
616
|
diversity: i().min(0).max(1).default(.3),
|
|
612
617
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
613
618
|
}).prefault({})
|
|
614
|
-
}).prefault({}),
|
|
619
|
+
}).prefault({}), Mt = d({
|
|
615
620
|
prompt: n().optional(),
|
|
616
621
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
617
622
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -622,7 +627,7 @@ var St = [
|
|
|
622
627
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
623
628
|
reasoning: tt,
|
|
624
629
|
ranking: q.optional().default(() => q.parse({}))
|
|
625
|
-
}), J = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e),
|
|
630
|
+
}), J = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Nt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Y = /* @__PURE__ */ function(e) {
|
|
626
631
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
627
632
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
628
633
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
@@ -630,8 +635,8 @@ var St = [
|
|
|
630
635
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
631
636
|
}({}), Q = /* @__PURE__ */ function(e) {
|
|
632
637
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
633
|
-
}({}),
|
|
634
|
-
function
|
|
638
|
+
}({}), Pt = Object.values(Q), Ft = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
639
|
+
function It(e) {
|
|
635
640
|
let t = e.trim().toLowerCase();
|
|
636
641
|
if (!t) return "";
|
|
637
642
|
try {
|
|
@@ -640,7 +645,7 @@ function Ft(e) {
|
|
|
640
645
|
return t;
|
|
641
646
|
}
|
|
642
647
|
}
|
|
643
|
-
var
|
|
648
|
+
var Lt = d({
|
|
644
649
|
media: ne.optional(),
|
|
645
650
|
logo: n().optional(),
|
|
646
651
|
theme: l([
|
|
@@ -670,14 +675,14 @@ var It = d({
|
|
|
670
675
|
workingGlow: u().optional().default(!0),
|
|
671
676
|
copilotPageCss: n().optional(),
|
|
672
677
|
maxMessageLength: i().int().positive().optional(),
|
|
673
|
-
widgetUrl: r().default(
|
|
678
|
+
widgetUrl: r().default(Nt),
|
|
674
679
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
675
680
|
loaderStrategy: l(Y).optional().default(Y.InlineModule),
|
|
676
681
|
customCss: n().optional(),
|
|
677
682
|
smoothStream: u().optional().default(!1),
|
|
678
683
|
showExtendedSteps: u().optional().default(!1),
|
|
679
|
-
imageHosts: c(n().overwrite(
|
|
680
|
-
}),
|
|
684
|
+
imageHosts: c(n().overwrite(It).refine((e) => e === "" || Ft.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
685
|
+
}), Rt = [
|
|
681
686
|
"image/jpeg",
|
|
682
687
|
"image/png",
|
|
683
688
|
"image/gif",
|
|
@@ -686,19 +691,19 @@ var It = d({
|
|
|
686
691
|
"text/plain",
|
|
687
692
|
"text/markdown",
|
|
688
693
|
"text/csv"
|
|
689
|
-
],
|
|
694
|
+
], zt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Bt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Vt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(U.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(U.WordDocument), $ = d({
|
|
690
695
|
enabled: u().default(!1),
|
|
691
696
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
692
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([...
|
|
697
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...Rt]),
|
|
693
698
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
694
699
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
695
|
-
}),
|
|
700
|
+
}), Ht = d({
|
|
696
701
|
zeroDataRetention: u().default(!0),
|
|
697
702
|
disallowPromptTraining: u().default(!0),
|
|
698
703
|
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
699
|
-
}),
|
|
704
|
+
}), Ut = d({ enabled: u().default(!1) }), Wt = /* @__PURE__ */ function(e) {
|
|
700
705
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
701
|
-
}({}),
|
|
706
|
+
}({}), Gt = d({ mode: l(Wt).default(Wt.Off) }), Kt = d({
|
|
702
707
|
enabled: u().default(!1),
|
|
703
708
|
voiceId: n().optional(),
|
|
704
709
|
language: n().min(2).max(5).default("it"),
|
|
@@ -717,40 +722,40 @@ var It = d({
|
|
|
717
722
|
providerAgentId: n().optional(),
|
|
718
723
|
providerSecretId: n().optional(),
|
|
719
724
|
providerApiKeyId: n().optional()
|
|
720
|
-
}),
|
|
725
|
+
}), qt = d({ enabled: u() });
|
|
721
726
|
d({
|
|
722
727
|
chatId: n().min(1).optional(),
|
|
723
728
|
deviceContext: ke.optional(),
|
|
724
729
|
externalContext: p(n(), f()).optional()
|
|
725
730
|
});
|
|
726
|
-
var
|
|
731
|
+
var Jt = d({
|
|
727
732
|
sessionId: n(),
|
|
728
733
|
signedUrl: n(),
|
|
729
734
|
providerAgentId: n(),
|
|
730
735
|
chatId: n(),
|
|
731
736
|
maxSessionSeconds: i().int()
|
|
732
|
-
}),
|
|
737
|
+
}), Yt = d({
|
|
733
738
|
voiceId: n(),
|
|
734
739
|
name: n(),
|
|
735
740
|
category: n().optional(),
|
|
736
741
|
previewUrl: n().optional(),
|
|
737
742
|
labels: p(n(), n()).optional()
|
|
738
743
|
});
|
|
739
|
-
c(
|
|
740
|
-
var
|
|
741
|
-
model:
|
|
742
|
-
interface:
|
|
743
|
-
tools:
|
|
744
|
+
c(Yt);
|
|
745
|
+
var Xt = d({
|
|
746
|
+
model: Mt,
|
|
747
|
+
interface: Lt,
|
|
748
|
+
tools: jt.optional().default(() => jt.parse({})),
|
|
744
749
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
745
|
-
gatewayOptions:
|
|
746
|
-
channels: c(l(Q)).optional().default(() => [...
|
|
750
|
+
gatewayOptions: Ht.optional().default(() => Ht.parse({})),
|
|
751
|
+
channels: c(l(Q)).optional().default(() => [...Pt]),
|
|
747
752
|
externalContextSchema: ae.optional(),
|
|
748
|
-
openaiApi:
|
|
749
|
-
voice:
|
|
750
|
-
toolWorkingSet:
|
|
753
|
+
openaiApi: Ut.optional().default(() => Ut.parse({})),
|
|
754
|
+
voice: Kt.optional().default(() => Kt.parse({})),
|
|
755
|
+
toolWorkingSet: Gt.optional().default(() => Gt.parse({})),
|
|
751
756
|
hostTools: Ne.optional(),
|
|
752
757
|
pageAccess: Ve.optional()
|
|
753
|
-
}),
|
|
758
|
+
}), Zt = d({
|
|
754
759
|
rateLimits: d({
|
|
755
760
|
minuteRateLimit: i().int().min(0).optional(),
|
|
756
761
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -767,8 +772,8 @@ d({
|
|
|
767
772
|
fallbackModels: c(n()).default([]),
|
|
768
773
|
status: l(M).default(M.Draft),
|
|
769
774
|
visibility: l(N).default(N.Organization),
|
|
770
|
-
settings:
|
|
771
|
-
security:
|
|
775
|
+
settings: Xt,
|
|
776
|
+
security: Zt.nullish(),
|
|
772
777
|
type: l(P).default(P.Chat),
|
|
773
778
|
organizationId: n()
|
|
774
779
|
}), ee(() => d({
|
|
@@ -779,8 +784,8 @@ d({
|
|
|
779
784
|
fallbackModels: c(n()).nullable().default([]),
|
|
780
785
|
status: l(M).default(M.Draft),
|
|
781
786
|
visibility: l(N).default(N.Organization),
|
|
782
|
-
settings:
|
|
783
|
-
security:
|
|
787
|
+
settings: Xt,
|
|
788
|
+
security: Zt.nullable(),
|
|
784
789
|
type: l(P).default(P.Chat),
|
|
785
790
|
organizationId: n(),
|
|
786
791
|
createdAt: m(),
|
|
@@ -793,23 +798,23 @@ d({
|
|
|
793
798
|
outOfBudget: u().optional().default(!1),
|
|
794
799
|
outOfBudgetReason: n().optional().default("")
|
|
795
800
|
}));
|
|
796
|
-
var
|
|
801
|
+
var Qt = d({
|
|
797
802
|
id: n(),
|
|
798
803
|
name: n(),
|
|
799
804
|
status: l(M),
|
|
800
805
|
visibility: l(N),
|
|
801
806
|
organizationId: n(),
|
|
802
|
-
interface:
|
|
807
|
+
interface: Lt,
|
|
803
808
|
createdAt: m(),
|
|
804
809
|
updatedAt: m(),
|
|
805
810
|
capabilities: d({
|
|
806
811
|
fileUpload: $,
|
|
807
|
-
voice:
|
|
812
|
+
voice: qt,
|
|
808
813
|
hostTools: Pe.optional(),
|
|
809
814
|
pageAccess: We.optional()
|
|
810
815
|
}),
|
|
811
|
-
channels: c(l(Q)).default(() => [...
|
|
812
|
-
}),
|
|
816
|
+
channels: c(l(Q)).default(() => [...Pt])
|
|
817
|
+
}), $t = Lt.pick({
|
|
813
818
|
logo: !0,
|
|
814
819
|
mainColor: !0,
|
|
815
820
|
textColor: !0,
|
|
@@ -820,41 +825,41 @@ var Zt = d({
|
|
|
820
825
|
hideFloatingButton: !0,
|
|
821
826
|
copilotPageCss: !0,
|
|
822
827
|
customCss: !0
|
|
823
|
-
}),
|
|
828
|
+
}), en = Qt.pick({
|
|
824
829
|
id: !0,
|
|
825
830
|
name: !0,
|
|
826
831
|
organizationId: !0
|
|
827
|
-
}).extend({ interface:
|
|
832
|
+
}).extend({ interface: $t }), tn = d({
|
|
828
833
|
emailPassword: u(),
|
|
829
834
|
google: u(),
|
|
830
835
|
microsoft: u()
|
|
831
|
-
}),
|
|
836
|
+
}), nn = d({
|
|
832
837
|
requiresAuth: s(!1),
|
|
833
|
-
agent:
|
|
838
|
+
agent: Qt,
|
|
834
839
|
branding: a()
|
|
835
|
-
}),
|
|
840
|
+
}), rn = d({
|
|
836
841
|
requiresAuth: s(!0),
|
|
837
842
|
agent: a(),
|
|
838
|
-
branding:
|
|
843
|
+
branding: en
|
|
839
844
|
});
|
|
840
|
-
te("requiresAuth", [
|
|
841
|
-
var
|
|
845
|
+
te("requiresAuth", [nn, rn]);
|
|
846
|
+
var an = d({
|
|
842
847
|
frontendUrl: n().optional(),
|
|
843
848
|
telemetry: d({
|
|
844
849
|
environment: n(),
|
|
845
850
|
samplingRate: i().min(0).max(1)
|
|
846
851
|
}).nullable()
|
|
847
|
-
}),
|
|
848
|
-
authMethods:
|
|
852
|
+
}), on = d({
|
|
853
|
+
authMethods: tn,
|
|
849
854
|
deploymentBranding: fe.nullish(),
|
|
850
|
-
deployment:
|
|
855
|
+
deployment: an.optional()
|
|
851
856
|
});
|
|
852
|
-
te("requiresAuth", [
|
|
857
|
+
te("requiresAuth", [nn.extend(on.shape), rn.extend(on.shape)]), d({
|
|
853
858
|
id: t(),
|
|
854
859
|
limited: u(),
|
|
855
860
|
agentIds: c(t())
|
|
856
861
|
});
|
|
857
|
-
var
|
|
862
|
+
var sn = d({
|
|
858
863
|
userId: t(),
|
|
859
864
|
name: n(),
|
|
860
865
|
email: n(),
|
|
@@ -865,7 +870,7 @@ var on = d({
|
|
|
865
870
|
});
|
|
866
871
|
d({
|
|
867
872
|
id: t(),
|
|
868
|
-
members: c(
|
|
873
|
+
members: c(sn)
|
|
869
874
|
}), d({
|
|
870
875
|
id: t(),
|
|
871
876
|
userIds: c(t())
|
|
@@ -886,6 +891,6 @@ d({
|
|
|
886
891
|
...g.fullText(),
|
|
887
892
|
...g.ids()
|
|
888
893
|
});
|
|
889
|
-
export {
|
|
894
|
+
export { Ie as $, Jt as A, ht as B, Ke as C, st as D, zt as E, it as F, j as G, St as H, Vt as I, Be as J, He as K, Qe as L, Bt as M, W as N, mt as O, lt as P, Ae as Q, pt as R, at as S, qe as T, It as U, yt as V, Ge as W, A as X, ze as Y, Le as Z, dt as _, $ as a, we as at, B as b, q as c, Te as ct, Wt as d, le as dt, Fe as et, P as f, g as ft, X as g, Z as h, Q as i, _ as it, Ct as j, _t as k, tt as l, me as lt, G as m, ot as n, b as nt, Ht as o, ye as ot, N as p, Ue as q, U as r, D as rt, Y as s, ue as st, L as t, ke as tt, F as u, h as ut, gt as v, I as w, R as x, ct as y, ut as z };
|
|
890
895
|
|
|
891
|
-
//# sourceMappingURL=Agent-
|
|
896
|
+
//# sourceMappingURL=Agent-CZUFbLo7.js.map
|