@8wave/ai-elements 0.126.0-beta.4 → 0.126.0-beta.6
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-DMvYDpLa.js → Agent-CekUHTMX.js} +375 -359
- package/dist/_chunks/Agent-CekUHTMX.js.map +1 -0
- package/dist/_chunks/{PkFilePreview-DXcXrGlu.js → PkFilePreview-lW67C8H1.js} +3 -3
- package/dist/_chunks/{PkFilePreview-DXcXrGlu.js.map → PkFilePreview-lW67C8H1.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js → PkFilePreviewDialog-D3CfqzoG.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-KXGgpxmi.js.map → PkFilePreviewDialog-D3CfqzoG.js.map} +1 -1
- package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js → PkImageEditorDialog-DeDcbpTx.js} +2 -2
- package/dist/_chunks/{PkImageEditorDialog-DpN9fQVH.js.map → PkImageEditorDialog-DeDcbpTx.js.map} +1 -1
- package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js → PkSelectionActions-DjQxIfV3.js} +2 -2
- package/dist/_chunks/{PkSelectionActions-mc8_fmAf.js.map → PkSelectionActions-DjQxIfV3.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js → PkStreamingMarkdown-CA6Yy0Ul.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-C-UwSQ9_.js.map → PkStreamingMarkdown-CA6Yy0Ul.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-B_apV6dN.js → PkToolChatFile-DmNIFwm4.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-B_apV6dN.js.map → PkToolChatFile-DmNIFwm4.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js → PkToolRequestGeolocation-D196AF0R.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-5ttHwPcp.js.map → PkToolRequestGeolocation-D196AF0R.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js → PkToolRequestOAuthConnection-JhdCcPGn.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-DAGUKLTk.js.map → PkToolRequestOAuthConnection-JhdCcPGn.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js → PkToolShowArtifact-DkJaxkWI.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-Br1dw9_a.js.map → PkToolShowArtifact-DkJaxkWI.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js → PkToolShowContactForm-dLdK3POY.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-D3G_9NhR.js.map → PkToolShowContactForm-dLdK3POY.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js → PkToolShowForm-Ce0IzrxF.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-T9zmaVnV.js.map → PkToolShowForm-Ce0IzrxF.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js → PkToolShowImageGallery-g_2RBM8g.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-Cma0W3Lc.js.map → PkToolShowImageGallery-g_2RBM8g.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js → PkToolShowProductList-B-fw08V_.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-D9sJv2kh.js.map → PkToolShowProductList-B-fw08V_.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js → PkToolShowSources-IgpsG650.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-BtGR_hGC.js.map → PkToolShowSources-IgpsG650.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js → PkToolShowSuggestedReply-DKKMLvpr.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-gpuWzpoh.js.map → PkToolShowSuggestedReply-DKKMLvpr.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js → PkToolShowVideo-Dadpkgeb.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-CF5fbuem.js.map → PkToolShowVideo-Dadpkgeb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js → PkToolShowWebPages-B7dYxtRc.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-C7NRjgaF.js.map → PkToolShowWebPages-B7dYxtRc.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js → chatImagePolicy-xnyXgC-e.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-Dv_WHhDs.js.map → chatImagePolicy-xnyXgC-e.js.map} +1 -1
- package/dist/_chunks/{markdown-BYpvcbWH.js → markdown-DrtQCs3N.js} +94 -109
- package/dist/_chunks/markdown-DrtQCs3N.js.map +1 -0
- package/dist/_chunks/{utils-C2aFWWye.js → utils-DFHOr4A0.js} +2 -2
- package/dist/_chunks/{utils-C2aFWWye.js.map → utils-DFHOr4A0.js.map} +1 -1
- package/dist/ai-elements.es.js +420 -403
- 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-B9iJ1WvR.js → Agent-D5aZyBZ0.js} +360 -346
- package/dist-vue/_chunks/Agent-D5aZyBZ0.js.map +1 -0
- package/dist-vue/_chunks/{Document-DnsOE7s6.js → Document-Ds51J0AA.js} +123 -136
- package/dist-vue/_chunks/Document-Ds51J0AA.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js → PkChatbot-DcH0Q-v8.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-CuZpfjTV.js.map → PkChatbot-DcH0Q-v8.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js → PkChatbotEmptyState-CbpQFb1b.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-DfyYZXHQ.js.map → PkChatbotEmptyState-CbpQFb1b.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js → PkChatbotInput-Bn-B0DNK.js} +4 -4
- package/dist-vue/_chunks/{PkChatbotInput-CBalSveL.js.map → PkChatbotInput-Bn-B0DNK.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js → PkChatbotMessages-BVZ43ZOC.js} +18 -18
- package/dist-vue/_chunks/{PkChatbotMessages-C2AUTqk4.js.map → PkChatbotMessages-BVZ43ZOC.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js → PkChatbotStepPayload-C0J8ajea.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-Bb3Y6kuL.js.map → PkChatbotStepPayload-C0J8ajea.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js → PkChatbotStepToolDetail-GcOljcQh.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-CwOxzYOe.js.map → PkChatbotStepToolDetail-GcOljcQh.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js → PkChatbotSteps-BhoWAoId.js} +5 -5
- package/dist-vue/_chunks/{PkChatbotSteps-FduD9X9i.js.map → PkChatbotSteps-BhoWAoId.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js → PkChatbotViewChat-BxjBteX-.js} +7 -7
- package/dist-vue/_chunks/{PkChatbotViewChat-CqsZUVwH.js.map → PkChatbotViewChat-BxjBteX-.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js → PkChatbotViewConversations-DBIFAunZ.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-BmogvLfQ.js.map → PkChatbotViewConversations-DBIFAunZ.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js → PkChatbotViewFiles-ElbOlcb4.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-D8zQlZnl.js.map → PkChatbotViewFiles-ElbOlcb4.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js → PkChatbotViewProfile-zjpDEqiI.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-jIyADxiV.js.map → PkChatbotViewProfile-zjpDEqiI.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js → PkFilePreview-BnvJc9wF.js} +3 -3
- package/dist-vue/_chunks/{PkFilePreview-kyTrO7DS.js.map → PkFilePreview-BnvJc9wF.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js → PkFilePreviewDialog-DJPd6F6h.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-CuMIXEQK.js.map → PkFilePreviewDialog-DJPd6F6h.js.map} +1 -1
- package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js → PkImageEditorDialog-SGh0yd88.js} +2 -2
- package/dist-vue/_chunks/{PkImageEditorDialog-CjMwpb-a.js.map → PkImageEditorDialog-SGh0yd88.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js → PkStreamingMarkdown-Cdk4iAL3.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-7Kl_VBH-.js.map → PkStreamingMarkdown-Cdk4iAL3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js → PkToolChatFile-DypSO5o3.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-DcNRCVXy.js.map → PkToolChatFile-DypSO5o3.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js → PkToolRequestGeolocation-C5zOostC.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-Bhh7UomV.js.map → PkToolRequestGeolocation-C5zOostC.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js → PkToolRequestOAuthConnection-DBXEQcsm.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-8GJlt5G1.js.map → PkToolRequestOAuthConnection-DBXEQcsm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js → PkToolShowArtifact-CQBi5Mg1.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-C7CxCqVO.js.map → PkToolShowArtifact-CQBi5Mg1.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js → PkToolShowChart-RwwJPpQP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowChart-DULlrMjq.js.map → PkToolShowChart-RwwJPpQP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js → PkToolShowContactForm-DIlOfZMP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-472d-SAE.js.map → PkToolShowContactForm-DIlOfZMP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js → PkToolShowDiagram-CqYnz_Yb.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-RrqVpOaX.js.map → PkToolShowDiagram-CqYnz_Yb.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js → PkToolShowForm-CCPTQ61I.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-CgyszDEI.js.map → PkToolShowForm-CCPTQ61I.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js → PkToolShowImageGallery-DJRImJce.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-LBx9JE6p.js.map → PkToolShowImageGallery-DJRImJce.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js → PkToolShowProductList-B0_9HndQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-THiH4EzZ.js.map → PkToolShowProductList-B0_9HndQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js → PkToolShowSources-BVWaatPE.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-CEqGXOOt.js.map → PkToolShowSources-BVWaatPE.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js → PkToolShowSuggestedReply-D2F-ub_s.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-DxlGhMvE.js.map → PkToolShowSuggestedReply-D2F-ub_s.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js → PkToolShowVideo-B4UQ0Tor.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-8Gi3vOer.js.map → PkToolShowVideo-B4UQ0Tor.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js → PkToolShowWebPages-CPIcsqFG.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-xjUPdfOU.js.map → PkToolShowWebPages-CPIcsqFG.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js → createChatbotApiClient-DiazhjCh.js} +18 -18
- package/dist-vue/_chunks/{createChatbotApiClient-DmPcjwB3.js.map → createChatbotApiClient-DiazhjCh.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js → useChatbotStore-Wu5B9krh.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore-Ci7k5fU2.js.map → useChatbotStore-Wu5B9krh.js.map} +1 -1
- package/dist-vue/_chunks/{utils-VVbH-Liq.js → utils-MJ9tUQYf.js} +2 -2
- package/dist-vue/_chunks/{utils-VVbH-Liq.js.map → utils-MJ9tUQYf.js.map} +1 -1
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAuth.d.ts +18 -1
- package/dist-vue/apps/web-component/src/utils/cookie.d.ts +3 -3
- package/dist-vue/composables.js +118 -101
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +3256 -3221
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +8 -0
- package/dist-vue/packages/auth/src/anonymous-reauth-plugin.d.ts +8 -6
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +6 -3
- package/dist-vue/packages/components/src/chat/PkLanguageModelCombobox.d.ts +7 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/Chat.d.ts +3 -0
- package/dist-vue/packages/models/src/schema/ModelProvider.d.ts +1 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +6 -0
- package/dist-vue/packages/models/src/schema/constants.d.ts +7 -0
- package/package.json +1 -1
- package/dist/_chunks/Agent-DMvYDpLa.js.map +0 -1
- package/dist/_chunks/markdown-BYpvcbWH.js.map +0 -1
- package/dist-vue/_chunks/Agent-B9iJ1WvR.js.map +0 -1
- package/dist-vue/_chunks/Document-DnsOE7s6.js.map +0 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as e, E as t, S as n, T as r, _ as i, a, c as o, m as s, o as c, p as ee, r as l, s as u, u as te, v as d, w as f, x as p } from "./schemas-BO5QlXAp.js";
|
|
2
2
|
import { l as m, n as ne, t as re } from "./Media-DylqhvaF.js";
|
|
3
3
|
// ../../packages/models/src/utils.ts
|
|
4
|
-
var
|
|
4
|
+
var h = (e, t, n) => o(e, t, {
|
|
5
5
|
encode: (e) => e,
|
|
6
6
|
decode: n
|
|
7
|
-
}),
|
|
7
|
+
}), ie = 51200, ae = p(n(), f()).refine((e) => JSON.stringify(e).length <= ie, { message: `Schema must not exceed ${ie / 1024} KB` });
|
|
8
8
|
t();
|
|
9
|
-
var
|
|
9
|
+
var oe = (e) => [`${e}`, `-${e}`], se = (e) => e.flatMap((e) => oe(e)), g = {
|
|
10
10
|
pagination: (e = 1, t = 10) => ({
|
|
11
11
|
"page[number]": i().or(n()).transform((e) => Number(e)).default(e),
|
|
12
12
|
"page[size]": i().or(n()).transform((e) => Number(e)).default(t)
|
|
@@ -21,34 +21,47 @@ var se = (e) => [`${e}`, `-${e}`], ce = (e) => e.flatMap((e) => se(e)), h = {
|
|
|
21
21
|
fullText: () => ({ "filter[fullText]": n().optional() }),
|
|
22
22
|
ids: () => ({ ids: e([n(), c(n())]).optional() }),
|
|
23
23
|
deleted: () => ({ "filter[isDeleted]": u().default(!1) }),
|
|
24
|
-
filters: (e) => e.map((e) =>
|
|
24
|
+
filters: (e) => e.map((e) => g.filter(e)).reduce((e, t) => ({
|
|
25
25
|
...e,
|
|
26
26
|
...t
|
|
27
27
|
})),
|
|
28
28
|
sort: (e) => {
|
|
29
|
-
let t =
|
|
29
|
+
let t = se(e);
|
|
30
30
|
return { sort: l(t).optional().default(t[0]) };
|
|
31
31
|
}
|
|
32
|
-
},
|
|
33
|
-
let n = new Set(t), r =
|
|
32
|
+
}, ce = (e) => e.replace(/^[a-zA-Z_]+:/, ""), le = (e, t) => {
|
|
33
|
+
let n = new Set(t), r = ce(e);
|
|
34
34
|
if (r !== e && n.has(r)) return r;
|
|
35
35
|
if (n.has(e)) return e;
|
|
36
36
|
let i = [...n].filter((e) => e.endsWith(`-${r}`));
|
|
37
37
|
return i.length === 1 ? i[0] : void 0;
|
|
38
|
-
},
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
38
|
+
}, ue = /* @__PURE__ */ "openai/gpt-5-nano,openai/gpt-5-mini,openai/gpt-5.1-thinking,openai/gpt-5.2,openai/gpt-5.4-nano,openai/gpt-5.4-mini,openai/gpt-5.4,openai/gpt-5.4-pro,openai/gpt-5.5,openai/gpt-5.5-pro,openai/gpt-5.6-luna,openai/gpt-5.6-terra,openai/gpt-5.6-sol,openai/gpt-5.6-luna-fast,openai/gpt-5.6-terra-fast,openai/gpt-5.6-sol-fast,openai/gpt-6-astra,openai/gpt-6-astra-fast,openai/gpt-6-sol,openai/gpt-6-sol-fast,openai/gpt-6-luna,openai/gpt-6-luna-fast,openai/gpt-6.1-sol,openai/gpt-6.1-sol-fast,openai/gpt-6.1-terra,openai/gpt-6.1-terra-fast,google/gemini-2.5-flash-lite,google/gemini-2.5-flash,google/gemini-2.5-pro,google/gemini-3-flash,google/gemini-3.1-pro-preview,google/gemini-3.1-flash-lite,google/gemini-3.5-flash,google/gemini-3.5-flash-lite,google/gemini-3.6-flash,google/gemini-3.7-flash,google/gemini-3.8-flash,google/gemini-4-argon,anthropic/claude-haiku-4.5,anthropic/claude-haiku-5.5,anthropic/claude-sonnet-4.6,anthropic/claude-sonnet-5,anthropic/claude-sonnet-5.5,anthropic/claude-opus-4.6,anthropic/claude-opus-4.7,anthropic/claude-opus-4.8,anthropic/claude-opus-5,anthropic/claude-opus-5-fast,anthropic/claude-opus-5.5,anthropic/claude-opus-5.5-fast,anthropic/claude-fable-5,anthropic/claude-fable-5.1,deepseek/deepseek-v3.2,deepseek/deepseek-v4-flash-0731,deepseek/deepseek-v4.1-flash,deepseek/deepseek-v4-pro-0813,alibaba/qwen3.6-plus,alibaba/qwen3.7-max,alibaba/qwen3.7-plus,alibaba/qwen3.7-flash,alibaba/qwen3.8-flash,alibaba/qwen3.8-max,alibaba/qwen3.8-27b,alibaba/qwen3.8-max-0902,alibaba/qwen3.8-omni-flash,alibaba/qwen3.8-max-prime,spacexai/grok-4.3,spacexai/grok-4.6,spacexai/grok-4.7,zai/glm-5.2,zai/glm-5.2-fast,zai/glm-5.3,zai/glm-5.3-flash,zai/glm-5.3-fast,meta/muse-spark-1.1,meta/muse-spark-1.2,meta/muse-spark-1.3,meta/muse-wonder-1.0,moonshotai/kimi-k3,moonshotai/kimi-k3-fast,mistral/ministral-14b,mistral/mistral-small,mistral/mistral-medium-3.5,mistral/mistral-large-3,mistral/mistral-large-4".split(","), de = ["eu"], fe = 1e6, pe = (/* @__PURE__ */ function(e) {
|
|
39
|
+
return e.textEmbedding3Small = "openai/text-embedding-3-small", e.textEmbedding3Large = "openai/text-embedding-3-large", e.geminiEmbedding2 = "google/gemini-embedding-2", e;
|
|
40
|
+
}({})).geminiEmbedding2, me = "typesafe-ai/jev", _ = /* @__PURE__ */ function(e) {
|
|
41
|
+
return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
|
|
42
|
+
}({});
|
|
43
|
+
_.it, _.en, _.es, _.fr, _.de;
|
|
44
|
+
var he = /* @__PURE__ */ function(e) {
|
|
45
|
+
return e.READABILITY = "readability", e.AI = "ai", e;
|
|
46
|
+
}({}), ge = /* @__PURE__ */ function(e) {
|
|
47
|
+
return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
|
|
48
|
+
}({}), _e = "byok/", ve = (e) => !!e?.startsWith(_e);
|
|
49
|
+
new Set(ue);
|
|
50
|
+
// ../../packages/models/src/schema/Branding.ts
|
|
51
|
+
var v = /^#[0-9A-Fa-f]{6}$/, ye = d({
|
|
52
|
+
brand: n().regex(v),
|
|
53
|
+
accent: n().regex(v),
|
|
54
|
+
info: n().regex(v)
|
|
55
|
+
}), y = d({
|
|
56
|
+
light: ye,
|
|
57
|
+
dark: ye
|
|
58
|
+
}), be = (e, t) => JSON.stringify(e).toLowerCase() === JSON.stringify(t).toLowerCase(), b = /* @__PURE__ */ function(e) {
|
|
46
59
|
return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
|
|
47
|
-
}({}),
|
|
60
|
+
}({}), x = /* @__PURE__ */ function(e) {
|
|
48
61
|
return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
|
|
49
62
|
}({});
|
|
50
|
-
|
|
51
|
-
var
|
|
63
|
+
x.EmailLogo, x.EmailBanner;
|
|
64
|
+
var S = d({
|
|
52
65
|
checksum: n().regex(/^[0-9a-f]{64}$/),
|
|
53
66
|
mimeType: l([
|
|
54
67
|
"image/svg+xml",
|
|
@@ -58,13 +71,13 @@ var x = d({
|
|
|
58
71
|
]),
|
|
59
72
|
width: i().int().positive().nullable(),
|
|
60
73
|
height: i().int().positive().nullable()
|
|
61
|
-
}),
|
|
62
|
-
[
|
|
63
|
-
[
|
|
64
|
-
[
|
|
65
|
-
[
|
|
66
|
-
[
|
|
67
|
-
}),
|
|
74
|
+
}), xe = d({
|
|
75
|
+
[x.LogoLight]: S.nullable(),
|
|
76
|
+
[x.LogoDark]: S.nullable(),
|
|
77
|
+
[x.Mark]: S.nullable(),
|
|
78
|
+
[x.EmailLogo]: S.nullable(),
|
|
79
|
+
[x.EmailBanner]: S.nullable()
|
|
80
|
+
}), C = d({
|
|
68
81
|
productName: n().trim().min(1).max(60),
|
|
69
82
|
shortName: n().trim().min(1).max(24),
|
|
70
83
|
description: n().trim().max(200).nullable(),
|
|
@@ -72,44 +85,44 @@ var x = d({
|
|
|
72
85
|
companyName: n().trim().max(80).nullable()
|
|
73
86
|
});
|
|
74
87
|
d({
|
|
75
|
-
colors:
|
|
76
|
-
mode: l(
|
|
77
|
-
assets:
|
|
78
|
-
text:
|
|
88
|
+
colors: y,
|
|
89
|
+
mode: l(b),
|
|
90
|
+
assets: xe,
|
|
91
|
+
text: C
|
|
79
92
|
}).extend({ version: n() });
|
|
80
|
-
var
|
|
81
|
-
productName:
|
|
82
|
-
shortName:
|
|
83
|
-
}),
|
|
84
|
-
colors:
|
|
85
|
-
mode: l(
|
|
86
|
-
assets:
|
|
87
|
-
text:
|
|
93
|
+
var Se = d({ css: n() }), w = xe.partial(), T = C.partial().extend({
|
|
94
|
+
productName: C.shape.productName.nullish(),
|
|
95
|
+
shortName: C.shape.shortName.nullish()
|
|
96
|
+
}), Ce = d({
|
|
97
|
+
colors: y.nullish(),
|
|
98
|
+
mode: l(b).nullish(),
|
|
99
|
+
assets: w.nullish(),
|
|
100
|
+
text: T.nullish()
|
|
88
101
|
});
|
|
89
102
|
d({
|
|
90
|
-
patch:
|
|
103
|
+
patch: Ce,
|
|
91
104
|
revision: n().min(1).max(64)
|
|
92
105
|
});
|
|
93
|
-
var
|
|
106
|
+
var E = (e) => e.optional().catch(void 0);
|
|
94
107
|
d({
|
|
95
|
-
colors:
|
|
96
|
-
mode:
|
|
97
|
-
assets:
|
|
98
|
-
[
|
|
99
|
-
[
|
|
100
|
-
[
|
|
101
|
-
[
|
|
102
|
-
[
|
|
108
|
+
colors: E(y.nullable()),
|
|
109
|
+
mode: E(l(b).nullable()),
|
|
110
|
+
assets: E(d({
|
|
111
|
+
[x.LogoLight]: E(w.shape.logoLight),
|
|
112
|
+
[x.LogoDark]: E(w.shape.logoDark),
|
|
113
|
+
[x.Mark]: E(w.shape.mark),
|
|
114
|
+
[x.EmailLogo]: E(w.shape.emailLogo),
|
|
115
|
+
[x.EmailBanner]: E(w.shape.emailBanner)
|
|
103
116
|
}).nullable()),
|
|
104
|
-
text:
|
|
105
|
-
productName: T
|
|
106
|
-
shortName: T
|
|
107
|
-
description: T
|
|
108
|
-
productTagline: T
|
|
109
|
-
companyName: T
|
|
117
|
+
text: E(d({
|
|
118
|
+
productName: E(T.shape.productName),
|
|
119
|
+
shortName: E(T.shape.shortName),
|
|
120
|
+
description: E(T.shape.description),
|
|
121
|
+
productTagline: E(T.shape.productTagline),
|
|
122
|
+
companyName: E(T.shape.companyName)
|
|
110
123
|
}).nullable())
|
|
111
124
|
});
|
|
112
|
-
var
|
|
125
|
+
var D = O({
|
|
113
126
|
colors: {
|
|
114
127
|
light: {
|
|
115
128
|
brand: "#140e33",
|
|
@@ -122,13 +135,13 @@ var E = D({
|
|
|
122
135
|
info: "#86c8fb"
|
|
123
136
|
}
|
|
124
137
|
},
|
|
125
|
-
mode:
|
|
138
|
+
mode: b.System,
|
|
126
139
|
assets: {
|
|
127
|
-
[
|
|
128
|
-
[
|
|
129
|
-
[
|
|
130
|
-
[
|
|
131
|
-
[
|
|
140
|
+
[x.LogoLight]: null,
|
|
141
|
+
[x.LogoDark]: null,
|
|
142
|
+
[x.Mark]: null,
|
|
143
|
+
[x.EmailLogo]: null,
|
|
144
|
+
[x.EmailBanner]: null
|
|
132
145
|
},
|
|
133
146
|
text: {
|
|
134
147
|
productName: "Eight Wave Agent Studio",
|
|
@@ -138,8 +151,8 @@ var E = D({
|
|
|
138
151
|
companyName: null
|
|
139
152
|
}
|
|
140
153
|
});
|
|
141
|
-
|
|
142
|
-
...
|
|
154
|
+
O({
|
|
155
|
+
...D,
|
|
143
156
|
text: {
|
|
144
157
|
productName: "Agent Studio",
|
|
145
158
|
shortName: "Agent Studio",
|
|
@@ -148,8 +161,8 @@ D({
|
|
|
148
161
|
companyName: null
|
|
149
162
|
}
|
|
150
163
|
});
|
|
151
|
-
var
|
|
152
|
-
function
|
|
164
|
+
var we = (e) => e.productName === D.text.productName;
|
|
165
|
+
function Te(e) {
|
|
153
166
|
let t = Number.parseInt(e.slice(1), 16), [n, r, i] = [
|
|
154
167
|
t >> 16,
|
|
155
168
|
t >> 8 & 255,
|
|
@@ -160,27 +173,27 @@ function ge(e) {
|
|
|
160
173
|
});
|
|
161
174
|
return .2126 * n + .7152 * r + .0722 * i;
|
|
162
175
|
}
|
|
163
|
-
var
|
|
164
|
-
function
|
|
176
|
+
var Ee = (e) => Te(e) > .179 ? "#000000" : "#ffffff";
|
|
177
|
+
function De(e) {
|
|
165
178
|
let t = e.match(/[\p{L}\p{N}]/u)?.[0] ?? "", n = t.toUpperCase();
|
|
166
179
|
return n.length === t.length ? n : t;
|
|
167
180
|
}
|
|
168
|
-
function
|
|
169
|
-
let r =
|
|
181
|
+
function Oe(e, t, { rounded: n = !0 } = {}) {
|
|
182
|
+
let r = v.test(t) ? t : D.colors.light.brand, i = Ee(r), a = De(e);
|
|
170
183
|
return `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><rect width="32" height="32"${n ? " rx=\"7\"" : ""} fill="${r}"/><text x="16" y="16" dy="0.35em" text-anchor="middle" font-family="system-ui, sans-serif" font-size="18" font-weight="600" fill="${i}">${a}</text></svg>`;
|
|
171
184
|
}
|
|
172
|
-
var
|
|
173
|
-
function
|
|
185
|
+
var ke = (e, t) => `data:image/svg+xml,${encodeURIComponent(Oe(e, t))}`;
|
|
186
|
+
function O(e) {
|
|
174
187
|
if (e && typeof e == "object") {
|
|
175
|
-
for (let t of Object.values(e))
|
|
188
|
+
for (let t of Object.values(e)) O(t);
|
|
176
189
|
Object.freeze(e);
|
|
177
190
|
}
|
|
178
191
|
return e;
|
|
179
192
|
}
|
|
180
|
-
function
|
|
181
|
-
return Array.isArray(e) ? `[${e.map(
|
|
193
|
+
function Ae(e) {
|
|
194
|
+
return Array.isArray(e) ? `[${e.map(Ae).join(",")}]` : e && typeof e == "object" ? `{${Object.entries(e).filter(([, e]) => e !== void 0).sort(([e], [t]) => e < t ? -1 : +(e > t)).map(([e, t]) => `${JSON.stringify(e)}:${Ae(t)}`).join(",")}}` : JSON.stringify(e);
|
|
182
195
|
}
|
|
183
|
-
function
|
|
196
|
+
function je(e) {
|
|
184
197
|
let t = 2166136261, n = 16777619 ^ e.length;
|
|
185
198
|
for (let r = 0; r < e.length; r++) {
|
|
186
199
|
let i = e.charCodeAt(r);
|
|
@@ -188,22 +201,22 @@ function xe(e) {
|
|
|
188
201
|
}
|
|
189
202
|
return t.toString(16).padStart(8, "0") + n.toString(16).padStart(8, "0");
|
|
190
203
|
}
|
|
191
|
-
function
|
|
192
|
-
return
|
|
204
|
+
function Me(e) {
|
|
205
|
+
return je(`${ze(e)}:${Ae(e)}`);
|
|
193
206
|
}
|
|
194
|
-
var
|
|
195
|
-
RegExp(`^${
|
|
196
|
-
function
|
|
207
|
+
var Ne = "/api/v1/public/branding", Pe = (e) => `${Ne}/assets/${e}`, Fe = (e, t) => `${e.replace(/\/+$/, "")}${Pe(t)}`;
|
|
208
|
+
RegExp(`^${Ne}(?:\\.css|/manifest\\.webmanifest|/icon/(?:\\d+|maskable)|/assets/[0-9a-f]{64}(?:/icon/\\d+)?)?(?:\\?|$)`);
|
|
209
|
+
function Ie(e) {
|
|
197
210
|
return {
|
|
198
211
|
...e,
|
|
199
|
-
version:
|
|
212
|
+
version: Me(e)
|
|
200
213
|
};
|
|
201
214
|
}
|
|
202
|
-
function
|
|
203
|
-
return
|
|
215
|
+
function Le(e) {
|
|
216
|
+
return ye.safeParse(e).success ? `--color-brand:${e.brand};--color-accent:${e.accent};--color-info:${e.info};` : "";
|
|
204
217
|
}
|
|
205
|
-
function
|
|
206
|
-
let t =
|
|
218
|
+
function Re(e) {
|
|
219
|
+
let t = Le(e.colors.light), n = Le(e.colors.dark);
|
|
207
220
|
return [
|
|
208
221
|
`:where(:root,.theme){${t}${t ? `--color-tint:${e.colors.light.brand};` : ""}}`,
|
|
209
222
|
`@media (prefers-color-scheme: dark){:where(:root:not(.theme--light),.theme:not(.theme--light)){${n}}}`,
|
|
@@ -211,7 +224,7 @@ function Oe(e) {
|
|
|
211
224
|
`:where(.theme.theme--dark){${n}}`
|
|
212
225
|
].join("\n");
|
|
213
226
|
}
|
|
214
|
-
var
|
|
227
|
+
var ze = (e) => je(Re(e)), Be = d({
|
|
215
228
|
dateTime: n().optional(),
|
|
216
229
|
timezone: n().optional(),
|
|
217
230
|
language: n().optional(),
|
|
@@ -241,16 +254,16 @@ var ke = (e) => xe(Oe(e)), Ae = d({
|
|
|
241
254
|
geolocationLongitude: i().optional(),
|
|
242
255
|
geolocationAccuracy: i().optional(),
|
|
243
256
|
geolocationCity: n().optional()
|
|
244
|
-
}),
|
|
257
|
+
}), Ve = "host", k = /^[a-z][a-z0-9_]{0,63}$/, He = 2e3, Ue = d({
|
|
245
258
|
title: n().max(80).optional(),
|
|
246
259
|
readOnlyHint: u().optional(),
|
|
247
260
|
destructiveHint: u().optional()
|
|
248
261
|
});
|
|
249
262
|
d({
|
|
250
263
|
name: n().regex(k),
|
|
251
|
-
description: n().max(
|
|
264
|
+
description: n().max(He).optional(),
|
|
252
265
|
inputSchema: p(n(), f()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
|
|
253
|
-
annotations:
|
|
266
|
+
annotations: Ue.optional()
|
|
254
267
|
}), d({
|
|
255
268
|
content: c(d({
|
|
256
269
|
type: s("text"),
|
|
@@ -258,7 +271,7 @@ d({
|
|
|
258
271
|
})),
|
|
259
272
|
isError: u().optional()
|
|
260
273
|
});
|
|
261
|
-
var
|
|
274
|
+
var We = d({
|
|
262
275
|
enabled: u().default(!1),
|
|
263
276
|
label: n().max(40).default(""),
|
|
264
277
|
allowed: c(n().regex(k)).max(32).default([]),
|
|
@@ -266,25 +279,25 @@ var Pe = d({
|
|
|
266
279
|
confirmDestructive: u().default(!0),
|
|
267
280
|
timeoutMs: i().int().min(5e3).max(12e4).default(3e4),
|
|
268
281
|
maxCallsPerTurn: i().int().min(1).max(50).default(20)
|
|
269
|
-
}),
|
|
282
|
+
}), Ge = We.pick({
|
|
270
283
|
label: !0,
|
|
271
284
|
allowed: !0,
|
|
272
285
|
requireConfirmation: !0,
|
|
273
286
|
confirmDestructive: !0,
|
|
274
287
|
timeoutMs: !0
|
|
275
|
-
}).extend({ origins: c(n()) }),
|
|
288
|
+
}).extend({ origins: c(n()) }), Ke = (e) => {
|
|
276
289
|
if (typeof e != "object" || !e) return !1;
|
|
277
290
|
let { type: t, toolMetadata: n } = e;
|
|
278
291
|
return t === "dynamic-tool" && n?.source === "host";
|
|
279
|
-
},
|
|
292
|
+
}, qe = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", Je = "The user refused this call. Do not repeat it unless the user asks.", A = /* @__PURE__ */ function(e) {
|
|
280
293
|
return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
|
|
281
|
-
}({}),
|
|
294
|
+
}({}), Ye = [
|
|
282
295
|
A.Off,
|
|
283
296
|
A.Read,
|
|
284
297
|
A.Forms,
|
|
285
298
|
A.Full
|
|
286
|
-
],
|
|
287
|
-
function
|
|
299
|
+
], Xe = (e, t) => Ye.indexOf(e ?? A.Off) >= Ye.indexOf(t);
|
|
300
|
+
function Ze(e) {
|
|
288
301
|
if (!e.trim()) return !1;
|
|
289
302
|
if (typeof document > "u") return !0;
|
|
290
303
|
try {
|
|
@@ -293,21 +306,21 @@ function Ve(e) {
|
|
|
293
306
|
return !1;
|
|
294
307
|
}
|
|
295
308
|
}
|
|
296
|
-
var
|
|
309
|
+
var Qe = d({
|
|
297
310
|
level: l(A).default(A.Off),
|
|
298
|
-
excludeSelectors: c(n().max(200).refine(
|
|
311
|
+
excludeSelectors: c(n().max(200).refine(Ze, "Not a valid CSS selector")).max(50).default([]),
|
|
299
312
|
confirmEveryAction: u().default(!1),
|
|
300
313
|
pointer: u().default(!1),
|
|
301
314
|
notice: p(n(), n().max(500)).optional(),
|
|
302
315
|
acknowledgedBy: n().optional(),
|
|
303
316
|
acknowledgedAt: m().optional(),
|
|
304
317
|
acknowledgedLevel: l(A).optional()
|
|
305
|
-
}),
|
|
318
|
+
}), $e = (e, t) => !!e?.acknowledgedBy && e?.acknowledgedAt !== void 0 && Xe(e.acknowledgedLevel, t), et = (e) => e.startsWith("page_") || e.startsWith("form_"), tt = Qe.pick({
|
|
306
319
|
level: !0,
|
|
307
320
|
excludeSelectors: !0,
|
|
308
321
|
confirmEveryAction: !0,
|
|
309
322
|
notice: !0
|
|
310
|
-
}).extend({ pointer: u().optional() }),
|
|
323
|
+
}).extend({ pointer: u().optional() }), nt = ["fill-fields", "fill-choose"];
|
|
311
324
|
d({
|
|
312
325
|
kind: l(["element", "text"]),
|
|
313
326
|
label: n().max(200),
|
|
@@ -324,7 +337,7 @@ d({
|
|
|
324
337
|
features: c(n().max(40)).max(16).default([])
|
|
325
338
|
});
|
|
326
339
|
// ../../packages/models/src/schema/SelectionAction.ts
|
|
327
|
-
var
|
|
340
|
+
var rt = [
|
|
328
341
|
"explain",
|
|
329
342
|
"summarize",
|
|
330
343
|
"rewrite",
|
|
@@ -332,7 +345,7 @@ var qe = [
|
|
|
332
345
|
"proofread",
|
|
333
346
|
"translate",
|
|
334
347
|
"chart"
|
|
335
|
-
],
|
|
348
|
+
], it = [
|
|
336
349
|
"page",
|
|
337
350
|
"word",
|
|
338
351
|
"excel"
|
|
@@ -349,8 +362,8 @@ var qe = [
|
|
|
349
362
|
"summarize",
|
|
350
363
|
"chart"
|
|
351
364
|
]
|
|
352
|
-
},
|
|
353
|
-
function
|
|
365
|
+
}, at = /* @__PURE__ */ "sparkles.magic.idea.star.heart.lightning.fire.rocket.pen.pencil.text.paragraph.quote.list.checklist.highlighter.document.folder.book.bookmark.clipboard.draft.contract.attachment.archive.search.filter.eye.questions.pie-chart.line-chart.table.database.calculator.percent.scales.euro.dollar.wallet.bank.card.cart.price-tag.bill.gift.shop.truck.shield.lock.key.gavel.institution.passport.person.team.group.smile.handshake.support.contacts.mail.send.speech.phone.megaphone.bell.share.link.globe.calendar.event.clock.timer.history.hourglass.plane.car.train.ship.map.pin.compass.bed.suitcase.home.building.flag.earth.sun.umbrella.heartbeat.capsule.first-aid.restaurant.cup.leaf.plant.recycle.school.graduation.brain.puzzle.award.trophy.settings.tools.code.bug.robot.cloud.flask.microscope.check.cross.warning.information.refresh.swap.arrow.thumbs-up.target.palette.image.music.video.microphone".split("."), ot = (e) => p(n(), n().trim().min(1).max(e));
|
|
366
|
+
function st(e) {
|
|
354
367
|
let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
|
|
355
368
|
return {
|
|
356
369
|
empty: n.length === 0 && r.length === 0,
|
|
@@ -358,14 +371,14 @@ function Ze(e) {
|
|
|
358
371
|
prompt: n.filter((e) => !r.includes(e))
|
|
359
372
|
};
|
|
360
373
|
}
|
|
361
|
-
var
|
|
374
|
+
var ct = d({
|
|
362
375
|
id: n().trim().min(1).max(64),
|
|
363
|
-
label:
|
|
364
|
-
prompt:
|
|
365
|
-
icon: l(
|
|
376
|
+
label: ot(40),
|
|
377
|
+
prompt: ot(500),
|
|
378
|
+
icon: l(at).optional().catch(void 0)
|
|
366
379
|
});
|
|
367
|
-
function
|
|
368
|
-
for (let r of
|
|
380
|
+
function lt(e, t, n = {}) {
|
|
381
|
+
for (let r of it) {
|
|
369
382
|
let i = e.selectionActions?.[r];
|
|
370
383
|
if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
|
|
371
384
|
let i = [
|
|
@@ -373,7 +386,7 @@ function $e(e, t, n = {}) {
|
|
|
373
386
|
r,
|
|
374
387
|
"actions",
|
|
375
388
|
e
|
|
376
|
-
], a =
|
|
389
|
+
], a = st(n);
|
|
377
390
|
a.empty && t.addIssue({
|
|
378
391
|
code: "custom",
|
|
379
392
|
message: "An action needs a label and an instruction",
|
|
@@ -394,7 +407,7 @@ function $e(e, t, n = {}) {
|
|
|
394
407
|
var M = (e, t) => d({
|
|
395
408
|
enabled: u().default(t),
|
|
396
409
|
builtIns: c(l(e)).default(() => [...e]),
|
|
397
|
-
actions: c(
|
|
410
|
+
actions: c(ct).default([])
|
|
398
411
|
}).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
|
|
399
412
|
message: "A built-in action is listed twice",
|
|
400
413
|
path: ["builtIns"]
|
|
@@ -404,64 +417,64 @@ var M = (e, t) => d({
|
|
|
404
417
|
}).refine((e) => e.builtIns.length + e.actions.length <= 4, {
|
|
405
418
|
message: "At most 4 actions, built-in and the agent's together",
|
|
406
419
|
path: ["actions"]
|
|
407
|
-
}), N = M(j.page, !1), P = M(j.word, !0),
|
|
420
|
+
}), N = M(j.page, !1), P = M(j.word, !0), ut = M(j.excel, !0), dt = d({
|
|
408
421
|
page: N.optional().default(() => N.parse({})),
|
|
409
422
|
word: P.optional().default(() => P.parse({})),
|
|
410
|
-
excel:
|
|
411
|
-
}),
|
|
412
|
-
builtIns: c(l(
|
|
413
|
-
actions: c(
|
|
414
|
-
}),
|
|
415
|
-
page:
|
|
416
|
-
word:
|
|
417
|
-
excel:
|
|
418
|
-
}),
|
|
423
|
+
excel: ut.optional().default(() => ut.parse({}))
|
|
424
|
+
}), ft = d({
|
|
425
|
+
builtIns: c(l(rt)),
|
|
426
|
+
actions: c(ct)
|
|
427
|
+
}), pt = d({
|
|
428
|
+
page: ft.optional(),
|
|
429
|
+
word: ft.optional(),
|
|
430
|
+
excel: ft.optional()
|
|
431
|
+
}), F = /* @__PURE__ */ function(e) {
|
|
419
432
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
420
|
-
}({}),
|
|
433
|
+
}({}), I = /* @__PURE__ */ function(e) {
|
|
421
434
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
422
|
-
}({}),
|
|
435
|
+
}({}), mt = [I.Organization, I.Restricted], L = /* @__PURE__ */ function(e) {
|
|
423
436
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
424
|
-
}({}),
|
|
437
|
+
}({}), R = /* @__PURE__ */ function(e) {
|
|
425
438
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
426
|
-
}({}),
|
|
439
|
+
}({}), z = [
|
|
427
440
|
"none",
|
|
428
441
|
"low",
|
|
429
442
|
"medium",
|
|
430
443
|
"high",
|
|
431
444
|
"xhigh",
|
|
432
445
|
"max"
|
|
433
|
-
],
|
|
446
|
+
], B = [
|
|
434
447
|
"low",
|
|
435
448
|
"medium",
|
|
436
449
|
"high",
|
|
437
450
|
"xhigh",
|
|
438
451
|
"max"
|
|
439
|
-
],
|
|
452
|
+
], V = [
|
|
440
453
|
"minimal",
|
|
441
454
|
"low",
|
|
442
455
|
"medium",
|
|
443
456
|
"high"
|
|
444
|
-
],
|
|
457
|
+
], H = [
|
|
445
458
|
"auto",
|
|
446
459
|
"detailed",
|
|
447
460
|
"concise"
|
|
448
|
-
],
|
|
449
|
-
reasoningEffort: l(
|
|
450
|
-
reasoningSummary: l(
|
|
451
|
-
}),
|
|
461
|
+
], ht = d({
|
|
462
|
+
reasoningEffort: l(z).optional(),
|
|
463
|
+
reasoningSummary: l(H).optional()
|
|
464
|
+
}), gt = d({
|
|
452
465
|
type: l([
|
|
453
466
|
"adaptive",
|
|
454
467
|
"enabled",
|
|
455
468
|
"disabled"
|
|
456
469
|
]).optional(),
|
|
457
|
-
effort: l(
|
|
470
|
+
effort: l(B).optional(),
|
|
458
471
|
display: l(["summarized", "omitted"]).optional(),
|
|
459
472
|
budgetTokens: i().int().positive().optional()
|
|
460
|
-
}),
|
|
461
|
-
thinkingLevel: l(
|
|
473
|
+
}), _t = d({
|
|
474
|
+
thinkingLevel: l(V).optional(),
|
|
462
475
|
thinkingBudget: i().int().optional(),
|
|
463
476
|
includeThoughts: u().optional()
|
|
464
|
-
}),
|
|
477
|
+
}), vt = d({ type: l(["enabled", "disabled"]).optional() }), U = [
|
|
465
478
|
"alibaba",
|
|
466
479
|
"meta",
|
|
467
480
|
"moonshotai",
|
|
@@ -469,67 +482,67 @@ var M = (e, t) => d({
|
|
|
469
482
|
"xiaomi",
|
|
470
483
|
"zai"
|
|
471
484
|
];
|
|
472
|
-
function
|
|
473
|
-
return
|
|
485
|
+
function yt(e) {
|
|
486
|
+
return U.includes(e);
|
|
474
487
|
}
|
|
475
|
-
var
|
|
488
|
+
var W = [
|
|
476
489
|
"none",
|
|
477
490
|
"minimal",
|
|
478
491
|
"low",
|
|
479
492
|
"medium",
|
|
480
493
|
"high",
|
|
481
494
|
"xhigh"
|
|
482
|
-
],
|
|
483
|
-
function
|
|
495
|
+
], G = d({ reasoningEffort: l(W).optional() });
|
|
496
|
+
function K(e, t) {
|
|
484
497
|
return e && t.includes(e) ? e : void 0;
|
|
485
498
|
}
|
|
486
|
-
var
|
|
487
|
-
openai:
|
|
488
|
-
anthropic:
|
|
489
|
-
google:
|
|
490
|
-
deepseek:
|
|
491
|
-
alibaba:
|
|
492
|
-
meta:
|
|
493
|
-
moonshotai:
|
|
494
|
-
spacexai:
|
|
495
|
-
xiaomi:
|
|
496
|
-
zai:
|
|
499
|
+
var bt = d({
|
|
500
|
+
openai: ht.optional(),
|
|
501
|
+
anthropic: gt.optional(),
|
|
502
|
+
google: _t.optional(),
|
|
503
|
+
deepseek: vt.optional(),
|
|
504
|
+
alibaba: G.optional(),
|
|
505
|
+
meta: G.optional(),
|
|
506
|
+
moonshotai: G.optional(),
|
|
507
|
+
spacexai: G.optional(),
|
|
508
|
+
xiaomi: G.optional(),
|
|
509
|
+
zai: G.optional()
|
|
497
510
|
});
|
|
498
|
-
function
|
|
511
|
+
function xt(e) {
|
|
499
512
|
if (!e || typeof e != "object") return e;
|
|
500
513
|
let t = e, n = [
|
|
501
514
|
"openai",
|
|
502
515
|
"anthropic",
|
|
503
516
|
"google",
|
|
504
517
|
"deepseek",
|
|
505
|
-
...
|
|
518
|
+
...U
|
|
506
519
|
].some((e) => e in t);
|
|
507
520
|
if ("effort" in t && !n) {
|
|
508
521
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
509
522
|
if (e && e !== "off" && e !== "none") {
|
|
510
|
-
let t =
|
|
523
|
+
let t = K(e, z), i = K(n, H);
|
|
511
524
|
(t || i) && (r.openai = {
|
|
512
525
|
...t && { reasoningEffort: t },
|
|
513
526
|
...i && { reasoningSummary: i }
|
|
514
527
|
});
|
|
515
|
-
let a =
|
|
528
|
+
let a = K(e, B);
|
|
516
529
|
a && (r.anthropic = {
|
|
517
530
|
type: "adaptive",
|
|
518
531
|
effort: a
|
|
519
532
|
});
|
|
520
|
-
let o =
|
|
533
|
+
let o = K(e === "xhigh" || e === "max" ? "high" : e, V);
|
|
521
534
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
522
|
-
let s =
|
|
523
|
-
if (s) for (let e of
|
|
535
|
+
let s = K(e === "max" ? "xhigh" : e, W);
|
|
536
|
+
if (s) for (let e of U) r[e] = { reasoningEffort: s };
|
|
524
537
|
} else {
|
|
525
538
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
526
|
-
for (let e of
|
|
539
|
+
for (let e of U) r[e] = { reasoningEffort: "none" };
|
|
527
540
|
}
|
|
528
541
|
return r;
|
|
529
542
|
}
|
|
530
543
|
return e;
|
|
531
544
|
}
|
|
532
|
-
var
|
|
545
|
+
var St = h(f(), bt, xt).optional(), Ct = {
|
|
533
546
|
openai: { reasoningEffort: "low" },
|
|
534
547
|
anthropic: {
|
|
535
548
|
type: "adaptive",
|
|
@@ -543,108 +556,108 @@ var ut = ie(f(), ct, lt).optional(), dt = {
|
|
|
543
556
|
xiaomi: { reasoningEffort: "low" },
|
|
544
557
|
zai: { reasoningEffort: "low" }
|
|
545
558
|
};
|
|
546
|
-
function
|
|
559
|
+
function wt(e) {
|
|
547
560
|
return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
|
|
548
561
|
}
|
|
549
|
-
function
|
|
562
|
+
function Tt(e, t) {
|
|
550
563
|
let n = t?.[e];
|
|
551
|
-
return
|
|
564
|
+
return wt(n) ? n : Ct[e];
|
|
552
565
|
}
|
|
553
|
-
var
|
|
566
|
+
var q = /* @__PURE__ */ function(e) {
|
|
554
567
|
return e.Geocode = "geocode", e.GetWeather = "getWeather", e.ReadDocumentFile = "readDocumentFile", e.RequestConfirm = "requestConfirm", e.RequestGeolocation = "requestGeolocation", e.RetrieveRevisedAnswers = "retrieveRevisedAnswers", e.SearchInKnowledgeBase = "searchInKnowledgeBase", e.SearchInUserFiles = "searchInUserFiles", e.UserMemory = "userMemory", e.Spreadsheet = "spreadsheet", e.QuerySpreadsheet = "querySpreadsheet", e.WordDocument = "wordDocument", e.CreateSpreadsheet = "createSpreadsheet", e.CreateWordDocument = "createWordDocument", e.RunWorker = "runWorker", e.ScheduleWakeup = "scheduleWakeup", e.ShareDocument = "shareDocument", e.FetchTeamsChannelHistory = "fetchTeamsChannelHistory", e.ShowArtifact = "showArtifact", e.ShowCalendarEvent = "showCalendarEvent", e.ShowChart = "showChart", e.ShowComparison = "showComparison", e.ShowContactForm = "showContactForm", e.ShowDiagram = "showDiagram", e.ShowEmail = "showEmail", e.ShowImageGallery = "showImageGallery", e.ShowLocation = "showLocation", e.ShowMessage = "showMessage", e.ShowForm = "showForm", e.ShowProductList = "showProductList", e.ShowQrCode = "showQrCode", e.ShowSources = "showSources", e.ShowSuggestedReply = "showSuggestedReply", e.ShowVideo = "showVideo", e.ShowWeather = "showWeather", e.ShowWebPages = "showWebPages", e.ShowMultipleChoice = "showMultipleChoice", e;
|
|
555
|
-
}({}),
|
|
556
|
-
function
|
|
557
|
-
return !
|
|
568
|
+
}({}), Et = "mcp-", Dt = "api-", Ot = "subagent-", kt = "enableTools";
|
|
569
|
+
function At(e) {
|
|
570
|
+
return !jt(e) && e !== q.RequestGeolocation;
|
|
558
571
|
}
|
|
559
|
-
function
|
|
560
|
-
return e ===
|
|
572
|
+
function jt(e) {
|
|
573
|
+
return e === q.RequestConfirm || e === q.ShowArtifact || e === q.ShowCalendarEvent || e === q.ShowChart || e === q.ShowComparison || e === q.ShowContactForm || e === q.ShowDiagram || e === q.ShowEmail || e === q.ShowImageGallery || e === q.ShowLocation || e === q.ShowMessage || e === q.ShowForm || e === q.ShowMultipleChoice || e === q.ShowProductList || e === q.ShowQrCode || e === q.ShowSources || e === q.ShowSuggestedReply || e === q.ShowVideo || e === q.ShowWeather || e === q.ShowWebPages;
|
|
561
574
|
}
|
|
562
|
-
var
|
|
575
|
+
var Mt = /* @__PURE__ */ new Set([
|
|
563
576
|
"editSpreadsheet",
|
|
564
577
|
"editWordDocument",
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
]),
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
...
|
|
584
|
-
|
|
578
|
+
q.CreateSpreadsheet,
|
|
579
|
+
q.CreateWordDocument
|
|
580
|
+
]), Nt = /* @__PURE__ */ new Set([
|
|
581
|
+
q.RequestConfirm,
|
|
582
|
+
q.ShowArtifact,
|
|
583
|
+
q.ShowWeather,
|
|
584
|
+
q.ShowLocation,
|
|
585
|
+
q.ShowComparison,
|
|
586
|
+
q.ShowProductList,
|
|
587
|
+
q.ShowWebPages,
|
|
588
|
+
q.ShowImageGallery,
|
|
589
|
+
q.ShowVideo,
|
|
590
|
+
q.ShowSources,
|
|
591
|
+
q.ShowSuggestedReply,
|
|
592
|
+
q.ShowCalendarEvent,
|
|
593
|
+
q.ShowEmail,
|
|
594
|
+
q.ShowMessage,
|
|
595
|
+
q.ShowForm,
|
|
596
|
+
...Mt,
|
|
597
|
+
q.ShareDocument
|
|
585
598
|
]);
|
|
586
|
-
function
|
|
587
|
-
return
|
|
599
|
+
function Pt(e) {
|
|
600
|
+
return Nt.has(e);
|
|
588
601
|
}
|
|
589
|
-
var
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
602
|
+
var Ft = /* @__PURE__ */ new Set([
|
|
603
|
+
q.RequestConfirm,
|
|
604
|
+
q.RequestGeolocation,
|
|
605
|
+
q.ShowForm,
|
|
606
|
+
q.ShowMultipleChoice,
|
|
594
607
|
"requestOAuthConnection"
|
|
595
608
|
]);
|
|
596
|
-
function
|
|
597
|
-
return
|
|
609
|
+
function It(e) {
|
|
610
|
+
return Ft.has(e);
|
|
598
611
|
}
|
|
599
|
-
var
|
|
612
|
+
var Lt = /* @__PURE__ */ function(e) {
|
|
600
613
|
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
601
|
-
}({}),
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
]),
|
|
624
|
-
function
|
|
625
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
614
|
+
}({}), Rt = /* @__PURE__ */ new Set([
|
|
615
|
+
q.RequestConfirm,
|
|
616
|
+
q.RequestGeolocation,
|
|
617
|
+
q.ShowArtifact,
|
|
618
|
+
q.ShowCalendarEvent,
|
|
619
|
+
q.ShowChart,
|
|
620
|
+
q.ShowContactForm,
|
|
621
|
+
q.ShowComparison,
|
|
622
|
+
q.ShowDiagram,
|
|
623
|
+
q.ShowEmail,
|
|
624
|
+
q.ShowForm,
|
|
625
|
+
q.ShowImageGallery,
|
|
626
|
+
q.ShowLocation,
|
|
627
|
+
q.ShowMessage,
|
|
628
|
+
q.ShowMultipleChoice,
|
|
629
|
+
q.ShowProductList,
|
|
630
|
+
q.ShowQrCode,
|
|
631
|
+
q.ShowSources,
|
|
632
|
+
q.ShowSuggestedReply,
|
|
633
|
+
q.ShowVideo,
|
|
634
|
+
q.ShowWeather,
|
|
635
|
+
q.ShowWebPages
|
|
636
|
+
]), zt = "Shown on the caller's screen";
|
|
637
|
+
function Bt(e) {
|
|
638
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(zt));
|
|
626
639
|
}
|
|
627
|
-
var
|
|
640
|
+
var Vt = d({
|
|
628
641
|
maxSteps: i().int().min(1).max(10).optional().default(5),
|
|
629
642
|
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
630
|
-
}),
|
|
643
|
+
}), J = /* @__PURE__ */ function(e) {
|
|
631
644
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
632
|
-
}({}),
|
|
645
|
+
}({}), Ht = {
|
|
633
646
|
openai: "OpenAI",
|
|
634
647
|
anthropic: "Anthropic",
|
|
635
648
|
google: "Google"
|
|
636
649
|
};
|
|
637
|
-
function
|
|
650
|
+
function Ut(e) {
|
|
638
651
|
let t = e.split("/")[0];
|
|
639
|
-
return Object.prototype.hasOwnProperty.call(
|
|
652
|
+
return Object.prototype.hasOwnProperty.call(Ht, t) ? Ht[t] : void 0;
|
|
640
653
|
}
|
|
641
|
-
var
|
|
654
|
+
var Wt = [
|
|
642
655
|
"perplexity_search",
|
|
643
656
|
"parallel_search",
|
|
644
657
|
"web_search",
|
|
645
658
|
"openai_web_search",
|
|
646
659
|
"google_search"
|
|
647
|
-
],
|
|
660
|
+
], Gt = d({
|
|
648
661
|
maxResults: i().int().min(1).max(20).optional(),
|
|
649
662
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
650
663
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -657,7 +670,7 @@ var Nt = [
|
|
|
657
670
|
"month",
|
|
658
671
|
"year"
|
|
659
672
|
]).optional()
|
|
660
|
-
}),
|
|
673
|
+
}), Kt = d({
|
|
661
674
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
662
675
|
maxResults: i().int().min(1).max(20).optional(),
|
|
663
676
|
sourcePolicy: d({
|
|
@@ -670,7 +683,7 @@ var Nt = [
|
|
|
670
683
|
maxCharsTotal: i().int().positive().optional()
|
|
671
684
|
}).optional(),
|
|
672
685
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
673
|
-
}),
|
|
686
|
+
}), qt = d({
|
|
674
687
|
openai: d({}).optional(),
|
|
675
688
|
anthropic: d({
|
|
676
689
|
maxUses: i().int().positive().optional(),
|
|
@@ -685,29 +698,29 @@ var Nt = [
|
|
|
685
698
|
}).optional()
|
|
686
699
|
}).optional(),
|
|
687
700
|
google: d({}).optional()
|
|
688
|
-
}),
|
|
701
|
+
}), Y = d({
|
|
689
702
|
enabled: u().default(!1),
|
|
690
|
-
provider: l(
|
|
691
|
-
perplexity:
|
|
692
|
-
parallel:
|
|
693
|
-
native:
|
|
694
|
-
}),
|
|
695
|
-
disabled: c(l(
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
703
|
+
provider: l(J).optional().default(J.Native),
|
|
704
|
+
perplexity: Gt.optional(),
|
|
705
|
+
parallel: Kt.optional(),
|
|
706
|
+
native: qt.optional()
|
|
707
|
+
}), Jt = d({ useAllUserKb: u().default(!1) }), Yt = d({ useAllUserFiles: u().default(!1) }), Xt = d({ enabled: u().default(!1) }), X = d({ enabled: u().default(!1) }), Zt = d({ tools: c(n()).default([]) }), Qt = d({
|
|
708
|
+
disabled: c(l(q)).default([
|
|
709
|
+
q.UserMemory,
|
|
710
|
+
q.SearchInUserFiles,
|
|
711
|
+
q.RunWorker,
|
|
712
|
+
q.FetchTeamsChannelHistory,
|
|
713
|
+
q.ScheduleWakeup
|
|
701
714
|
]),
|
|
702
|
-
showForm:
|
|
703
|
-
webSearch:
|
|
704
|
-
userMemory:
|
|
705
|
-
userFiles:
|
|
706
|
-
shareDocument:
|
|
715
|
+
showForm: Vt.optional().default(() => Vt.parse({})),
|
|
716
|
+
webSearch: Y.optional().default(() => Y.parse({})),
|
|
717
|
+
userMemory: Jt.optional().default(() => Jt.parse({})),
|
|
718
|
+
userFiles: Yt.optional().default(() => Yt.parse({})),
|
|
719
|
+
shareDocument: Xt.optional().default(() => Xt.parse({})),
|
|
707
720
|
createSpreadsheet: X.optional().default(() => X.parse({})),
|
|
708
721
|
createWordDocument: X.optional().default(() => X.parse({})),
|
|
709
|
-
approval:
|
|
710
|
-
}),
|
|
722
|
+
approval: Zt.optional().default(() => Zt.parse({}))
|
|
723
|
+
}), $t = d({
|
|
711
724
|
freshness: d({
|
|
712
725
|
enabled: u().default(!1),
|
|
713
726
|
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -719,27 +732,27 @@ var Nt = [
|
|
|
719
732
|
diversity: i().min(0).max(1).default(.3),
|
|
720
733
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
721
734
|
}).prefault({})
|
|
722
|
-
}).prefault({}),
|
|
735
|
+
}).prefault({}), en = d({
|
|
723
736
|
prompt: n().optional(),
|
|
724
737
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
725
738
|
maxOutputTokens: i().positive().optional(),
|
|
726
739
|
presencePenalty: i().min(-2).max(2).optional(),
|
|
727
740
|
frequencyPenalty: i().min(-2).max(2).optional(),
|
|
728
|
-
searchMode: l(
|
|
741
|
+
searchMode: l(R).optional().default(R.Balanced),
|
|
729
742
|
limit: i().positive().max(100).optional().default(10),
|
|
730
743
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
731
|
-
reasoning:
|
|
732
|
-
ranking:
|
|
733
|
-
}), Z =
|
|
744
|
+
reasoning: St,
|
|
745
|
+
ranking: $t.optional().default(() => $t.parse({}))
|
|
746
|
+
}), Z = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), tn = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", nn = /* @__PURE__ */ function(e) {
|
|
734
747
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
735
|
-
}({}),
|
|
748
|
+
}({}), rn = /* @__PURE__ */ function(e) {
|
|
736
749
|
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
737
|
-
}({}),
|
|
750
|
+
}({}), an = /* @__PURE__ */ function(e) {
|
|
738
751
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
739
752
|
}({}), Q = /* @__PURE__ */ function(e) {
|
|
740
753
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
741
|
-
}({}),
|
|
742
|
-
function
|
|
754
|
+
}({}), on = Object.values(Q), sn = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
755
|
+
function cn(e) {
|
|
743
756
|
let t = e.trim().toLowerCase();
|
|
744
757
|
if (!t) return "";
|
|
745
758
|
try {
|
|
@@ -748,7 +761,7 @@ function Zt(e) {
|
|
|
748
761
|
return t;
|
|
749
762
|
}
|
|
750
763
|
}
|
|
751
|
-
var
|
|
764
|
+
var ln = d({
|
|
752
765
|
media: ne.optional(),
|
|
753
766
|
logo: n().optional(),
|
|
754
767
|
theme: l([
|
|
@@ -756,7 +769,7 @@ var Qt = d({
|
|
|
756
769
|
"dark",
|
|
757
770
|
"auto"
|
|
758
771
|
]).optional().default("auto"),
|
|
759
|
-
mainColor: n().regex(
|
|
772
|
+
mainColor: n().regex(v).optional().default("#000000"),
|
|
760
773
|
textColor: l([
|
|
761
774
|
"auto",
|
|
762
775
|
"white",
|
|
@@ -767,7 +780,7 @@ var Qt = d({
|
|
|
767
780
|
"one",
|
|
768
781
|
"two"
|
|
769
782
|
]).optional().default("auto"),
|
|
770
|
-
glowSecondColor: n().regex(
|
|
783
|
+
glowSecondColor: n().regex(v).optional(),
|
|
771
784
|
useColorsForAgentHeader: u().optional().default(!1),
|
|
772
785
|
initialMessage: Z.optional(),
|
|
773
786
|
greeting: c(Z).min(1).max(10).optional(),
|
|
@@ -778,22 +791,22 @@ var Qt = d({
|
|
|
778
791
|
interactiveLogin: u().optional().default(!0),
|
|
779
792
|
welcomePopup: u().optional().default(!1),
|
|
780
793
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
781
|
-
layout: l(
|
|
782
|
-
appearance: l(
|
|
794
|
+
layout: l(rn).optional().default(rn.Floating),
|
|
795
|
+
appearance: l(an).optional().default(an.Solid),
|
|
783
796
|
hideFloatingButton: u().optional().default(!1),
|
|
784
797
|
workingGlow: u().optional().default(!0),
|
|
785
798
|
copilotPageCss: n().optional(),
|
|
786
799
|
maxMessageLength: i().int().positive().optional(),
|
|
787
|
-
widgetUrl: r().default(
|
|
800
|
+
widgetUrl: r().default(tn),
|
|
788
801
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
789
|
-
loaderStrategy: l(
|
|
802
|
+
loaderStrategy: l(nn).optional().default(nn.InlineModule),
|
|
790
803
|
customCss: n().optional(),
|
|
791
804
|
smoothStream: u().optional().default(!1),
|
|
792
805
|
showExtendedSteps: u().optional().default(!1),
|
|
793
806
|
showReasoning: u().optional().default(!0),
|
|
794
807
|
holdExternalImages: u().optional().default(!1),
|
|
795
|
-
imageHosts: c(n().overwrite(
|
|
796
|
-
}),
|
|
808
|
+
imageHosts: c(n().overwrite(cn).refine((e) => e === "" || sn.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
809
|
+
}), un = [
|
|
797
810
|
"image/jpeg",
|
|
798
811
|
"image/png",
|
|
799
812
|
"image/gif",
|
|
@@ -802,19 +815,20 @@ var Qt = d({
|
|
|
802
815
|
"text/plain",
|
|
803
816
|
"text/markdown",
|
|
804
817
|
"text/csv"
|
|
805
|
-
],
|
|
818
|
+
], dn = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", fn = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", pn = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(q.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(q.WordDocument), $ = d({
|
|
806
819
|
enabled: u().default(!1),
|
|
807
820
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
808
|
-
allowedMimeTypes: c(n().regex(re)).optional().default([
|
|
821
|
+
allowedMimeTypes: c(n().regex(re)).optional().default([...un]),
|
|
809
822
|
maxFilesPerMessage: i().int().positive().max(10).optional().default(5),
|
|
810
823
|
maxFilesPerChat: i().int().positive().max(50).optional().default(20)
|
|
811
|
-
}),
|
|
824
|
+
}), mn = d({
|
|
812
825
|
zeroDataRetention: u().default(!0),
|
|
813
826
|
disallowPromptTraining: u().default(!0),
|
|
814
|
-
providerTimeoutMs: i().int().min(1e3).max(789e3).optional()
|
|
815
|
-
|
|
827
|
+
providerTimeoutMs: i().int().min(1e3).max(789e3).optional(),
|
|
828
|
+
inferenceRegion: l(de).optional()
|
|
829
|
+
}), hn = d({ enabled: u().default(!1) }), gn = /* @__PURE__ */ function(e) {
|
|
816
830
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
817
|
-
}({}),
|
|
831
|
+
}({}), _n = d({ mode: l(gn).default(gn.Off) }), vn = d({
|
|
818
832
|
enabled: u().default(!1),
|
|
819
833
|
voiceId: n().optional(),
|
|
820
834
|
language: n().min(2).max(5).default("it"),
|
|
@@ -833,44 +847,44 @@ var Qt = d({
|
|
|
833
847
|
providerAgentId: n().optional(),
|
|
834
848
|
providerSecretId: n().optional(),
|
|
835
849
|
providerApiKeyId: n().optional()
|
|
836
|
-
}),
|
|
850
|
+
}), yn = d({ enabled: u() }), bn = s("automatic");
|
|
837
851
|
d({
|
|
838
852
|
chatId: n().min(1).optional(),
|
|
839
|
-
deviceContext:
|
|
853
|
+
deviceContext: Be.optional(),
|
|
840
854
|
externalContext: p(n(), f()).optional(),
|
|
841
855
|
pageTools: f().optional(),
|
|
842
|
-
confirmations:
|
|
856
|
+
confirmations: bn.optional()
|
|
843
857
|
});
|
|
844
|
-
var
|
|
858
|
+
var xn = d({
|
|
845
859
|
sessionId: n(),
|
|
846
860
|
signedUrl: n(),
|
|
847
861
|
providerAgentId: n(),
|
|
848
862
|
chatId: n(),
|
|
849
863
|
maxSessionSeconds: i().int()
|
|
850
|
-
}),
|
|
864
|
+
}), Sn = d({
|
|
851
865
|
voiceId: n(),
|
|
852
866
|
name: n(),
|
|
853
867
|
category: n().optional(),
|
|
854
868
|
previewUrl: n().optional(),
|
|
855
869
|
labels: p(n(), n()).optional()
|
|
856
870
|
});
|
|
857
|
-
c(
|
|
858
|
-
var
|
|
859
|
-
model:
|
|
860
|
-
interface:
|
|
861
|
-
tools:
|
|
871
|
+
c(Sn);
|
|
872
|
+
var Cn = d({ allowAutomatic: u().default(!1) }), wn = d({ allowAutomatic: s(!0) }), Tn = d({
|
|
873
|
+
model: en,
|
|
874
|
+
interface: ln,
|
|
875
|
+
tools: Qt.optional().default(() => Qt.parse({})),
|
|
862
876
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
863
|
-
gatewayOptions:
|
|
864
|
-
channels: c(l(Q)).optional().default(() => [...
|
|
865
|
-
externalContextSchema:
|
|
866
|
-
openaiApi:
|
|
867
|
-
voice:
|
|
868
|
-
toolWorkingSet:
|
|
869
|
-
hostTools:
|
|
870
|
-
pageAccess:
|
|
871
|
-
confirmations:
|
|
872
|
-
selectionActions:
|
|
873
|
-
}),
|
|
877
|
+
gatewayOptions: mn.optional().default(() => mn.parse({})),
|
|
878
|
+
channels: c(l(Q)).optional().default(() => [...on]),
|
|
879
|
+
externalContextSchema: ae.optional(),
|
|
880
|
+
openaiApi: hn.optional().default(() => hn.parse({})),
|
|
881
|
+
voice: vn.optional().default(() => vn.parse({})),
|
|
882
|
+
toolWorkingSet: _n.optional().default(() => _n.parse({})),
|
|
883
|
+
hostTools: We.optional(),
|
|
884
|
+
pageAccess: Qe.optional(),
|
|
885
|
+
confirmations: Cn.optional(),
|
|
886
|
+
selectionActions: dt.optional()
|
|
887
|
+
}), En = d({
|
|
874
888
|
rateLimits: d({
|
|
875
889
|
minuteRateLimit: i().int().min(0).optional(),
|
|
876
890
|
hourRateLimit: i().int().min(0).optional(),
|
|
@@ -885,15 +899,15 @@ d({
|
|
|
885
899
|
prompt: n().optional(),
|
|
886
900
|
model: n().optional(),
|
|
887
901
|
fallbackModels: c(n()).default([]),
|
|
888
|
-
status: l(
|
|
889
|
-
visibility: l(
|
|
890
|
-
settings:
|
|
902
|
+
status: l(F).default(F.Draft),
|
|
903
|
+
visibility: l(I).default(I.Organization),
|
|
904
|
+
settings: Tn.superRefine((e, t) => lt(e, t, {
|
|
891
905
|
page: (e.pageAccess?.level ?? A.Off) !== A.Off,
|
|
892
|
-
word: !e.tools.disabled.includes(
|
|
893
|
-
excel: !e.tools.disabled.includes(
|
|
906
|
+
word: !e.tools.disabled.includes(q.WordDocument),
|
|
907
|
+
excel: !e.tools.disabled.includes(q.Spreadsheet)
|
|
894
908
|
})),
|
|
895
|
-
security:
|
|
896
|
-
type: l(
|
|
909
|
+
security: En.nullish(),
|
|
910
|
+
type: l(L).default(L.Chat),
|
|
897
911
|
organizationId: n()
|
|
898
912
|
}), ee(() => d({
|
|
899
913
|
id: n(),
|
|
@@ -901,11 +915,11 @@ d({
|
|
|
901
915
|
prompt: n(),
|
|
902
916
|
model: n(),
|
|
903
917
|
fallbackModels: c(n()).nullable().default([]),
|
|
904
|
-
status: l(
|
|
905
|
-
visibility: l(
|
|
906
|
-
settings:
|
|
907
|
-
security:
|
|
908
|
-
type: l(
|
|
918
|
+
status: l(F).default(F.Draft),
|
|
919
|
+
visibility: l(I).default(I.Organization),
|
|
920
|
+
settings: Tn,
|
|
921
|
+
security: En.nullable(),
|
|
922
|
+
type: l(L).default(L.Chat),
|
|
909
923
|
organizationId: n(),
|
|
910
924
|
createdAt: m(),
|
|
911
925
|
createdBy: n(),
|
|
@@ -917,25 +931,25 @@ d({
|
|
|
917
931
|
outOfBudget: u().optional().default(!1),
|
|
918
932
|
outOfBudgetReason: n().optional().default("")
|
|
919
933
|
}));
|
|
920
|
-
var
|
|
934
|
+
var Dn = d({
|
|
921
935
|
id: n(),
|
|
922
936
|
name: n(),
|
|
923
|
-
status: l(
|
|
924
|
-
visibility: l(
|
|
937
|
+
status: l(F),
|
|
938
|
+
visibility: l(I),
|
|
925
939
|
organizationId: n(),
|
|
926
|
-
interface:
|
|
940
|
+
interface: ln,
|
|
927
941
|
createdAt: m(),
|
|
928
942
|
updatedAt: m(),
|
|
929
943
|
capabilities: d({
|
|
930
944
|
fileUpload: $,
|
|
931
|
-
voice:
|
|
932
|
-
hostTools:
|
|
933
|
-
pageAccess:
|
|
934
|
-
confirmations:
|
|
935
|
-
selectionActions:
|
|
945
|
+
voice: yn,
|
|
946
|
+
hostTools: Ge.optional(),
|
|
947
|
+
pageAccess: tt.optional(),
|
|
948
|
+
confirmations: wn.optional(),
|
|
949
|
+
selectionActions: pt.optional()
|
|
936
950
|
}),
|
|
937
|
-
channels: c(l(Q)).default(() => [...
|
|
938
|
-
}),
|
|
951
|
+
channels: c(l(Q)).default(() => [...on])
|
|
952
|
+
}), On = ln.pick({
|
|
939
953
|
logo: !0,
|
|
940
954
|
mainColor: !0,
|
|
941
955
|
textColor: !0,
|
|
@@ -946,41 +960,41 @@ var _n = d({
|
|
|
946
960
|
hideFloatingButton: !0,
|
|
947
961
|
copilotPageCss: !0,
|
|
948
962
|
customCss: !0
|
|
949
|
-
}),
|
|
963
|
+
}), kn = Dn.pick({
|
|
950
964
|
id: !0,
|
|
951
965
|
name: !0,
|
|
952
966
|
organizationId: !0
|
|
953
|
-
}).extend({ interface:
|
|
967
|
+
}).extend({ interface: On }), An = d({
|
|
954
968
|
emailPassword: u(),
|
|
955
969
|
google: u(),
|
|
956
970
|
microsoft: u()
|
|
957
|
-
}),
|
|
971
|
+
}), jn = d({
|
|
958
972
|
requiresAuth: s(!1),
|
|
959
|
-
agent:
|
|
973
|
+
agent: Dn,
|
|
960
974
|
branding: a()
|
|
961
|
-
}),
|
|
975
|
+
}), Mn = d({
|
|
962
976
|
requiresAuth: s(!0),
|
|
963
977
|
agent: a(),
|
|
964
|
-
branding:
|
|
978
|
+
branding: kn
|
|
965
979
|
});
|
|
966
|
-
te("requiresAuth", [
|
|
967
|
-
var
|
|
980
|
+
te("requiresAuth", [jn, Mn]);
|
|
981
|
+
var Nn = d({
|
|
968
982
|
frontendUrl: n().optional(),
|
|
969
983
|
telemetry: d({
|
|
970
984
|
environment: n(),
|
|
971
985
|
samplingRate: i().min(0).max(1)
|
|
972
986
|
}).nullable()
|
|
973
|
-
}),
|
|
974
|
-
authMethods:
|
|
975
|
-
deploymentBranding:
|
|
976
|
-
deployment:
|
|
987
|
+
}), Pn = d({
|
|
988
|
+
authMethods: An,
|
|
989
|
+
deploymentBranding: Se.nullish(),
|
|
990
|
+
deployment: Nn.optional()
|
|
977
991
|
});
|
|
978
|
-
te("requiresAuth", [
|
|
992
|
+
te("requiresAuth", [jn.extend(Pn.shape), Mn.extend(Pn.shape)]), d({
|
|
979
993
|
id: t(),
|
|
980
994
|
limited: u(),
|
|
981
995
|
agentIds: c(t())
|
|
982
996
|
});
|
|
983
|
-
var
|
|
997
|
+
var Fn = d({
|
|
984
998
|
userId: t(),
|
|
985
999
|
name: n(),
|
|
986
1000
|
email: n(),
|
|
@@ -991,13 +1005,13 @@ var Tn = d({
|
|
|
991
1005
|
});
|
|
992
1006
|
d({
|
|
993
1007
|
id: t(),
|
|
994
|
-
members: c(
|
|
1008
|
+
members: c(Fn)
|
|
995
1009
|
}), d({
|
|
996
1010
|
id: t(),
|
|
997
1011
|
userIds: c(t())
|
|
998
1012
|
}), d({
|
|
999
|
-
...
|
|
1000
|
-
...
|
|
1013
|
+
...g.pagination(),
|
|
1014
|
+
...g.sort([
|
|
1001
1015
|
"id",
|
|
1002
1016
|
"updatedAt",
|
|
1003
1017
|
"createdAt",
|
|
@@ -1007,12 +1021,12 @@ d({
|
|
|
1007
1021
|
"visibility",
|
|
1008
1022
|
"model"
|
|
1009
1023
|
]),
|
|
1010
|
-
...
|
|
1011
|
-
"filter[status]": l(
|
|
1012
|
-
...
|
|
1013
|
-
...
|
|
1014
|
-
...
|
|
1024
|
+
...g.filters(["done", "type"]),
|
|
1025
|
+
"filter[status]": l(F).optional(),
|
|
1026
|
+
...g.filter("id"),
|
|
1027
|
+
...g.fullText(),
|
|
1028
|
+
...g.ids()
|
|
1015
1029
|
});
|
|
1016
|
-
export {
|
|
1030
|
+
export { $e as $, Rt as A, jt as B, Et as C, _ as Ct, dn as D, g as Dt, H as E, le as Et, At as F, ut as G, Bt as H, Tt as I, j as J, N as K, pn as L, Wt as M, fn as N, Ot as O, J as P, A as Q, yt as R, V as S, fe as St, z as T, h as Tt, Ut as U, It as V, cn as W, st as X, P as Y, nt as Z, Mt as _, ge as _t, $ as a, Ve as at, kt as b, he as bt, $t as c, Be as ct, gn as d, v as dt, et, L as f, Fe as ft, rn as g, we as gt, an as h, Ie as ht, Q as i, Je as it, xn as j, Ft as k, St as l, b as lt, Y as m, be as mt, Dt as n, Xe as nt, mn as o, qe as ot, I as p, ke as pt, at as q, q as r, k as rt, nn as s, Ke as st, B as t, Ze as tt, R as u, D as ut, bn as v, pe as vt, mt as w, ve as wt, W as x, ue as xt, Lt as y, me as yt, Pt as z };
|
|
1017
1031
|
|
|
1018
|
-
//# sourceMappingURL=Agent-
|
|
1032
|
+
//# sourceMappingURL=Agent-D5aZyBZ0.js.map
|