@8wave/ai-elements 0.126.0-beta.3 → 0.126.0-beta.5
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 +58 -58
- 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/composables.js +10 -10
- 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/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
|
@@ -28,20 +28,35 @@ var ie = (e) => [`${e}`, `-${e}`], ae = (e) => e.flatMap((e) => ie(e)), _ = {
|
|
|
28
28
|
let t = ae(e);
|
|
29
29
|
return { sort: u(t).optional().default(t[0]) };
|
|
30
30
|
}
|
|
31
|
-
},
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
31
|
+
}, oe = /* @__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(","), se = ["eu"];
|
|
32
|
+
(/* @__PURE__ */ (function(e) {
|
|
33
|
+
return e.textEmbedding3Small = "openai/text-embedding-3-small", e.textEmbedding3Large = "openai/text-embedding-3-large", e.geminiEmbedding2 = "google/gemini-embedding-2", e;
|
|
34
|
+
})({})).geminiEmbedding2;
|
|
35
|
+
var v = /* @__PURE__ */ function(e) {
|
|
36
|
+
return e.it = "it", e.en = "en", e.es = "es", e.fr = "fr", e.de = "de", e;
|
|
37
|
+
}({});
|
|
38
|
+
v.it, v.en, v.es, v.fr, v.de;
|
|
39
|
+
var ce = /* @__PURE__ */ function(e) {
|
|
40
|
+
return e.READABILITY = "readability", e.AI = "ai", e;
|
|
41
|
+
}({}), le = /* @__PURE__ */ function(e) {
|
|
42
|
+
return e.FETCH = "fetch", e.PUPPETEER = "puppeteer", e.REMOTE = "remote", e;
|
|
43
|
+
}({});
|
|
44
|
+
new Set(oe);
|
|
45
|
+
// ../../packages/models/src/schema/Branding.ts
|
|
46
|
+
var y = /^#[0-9A-Fa-f]{6}$/, ue = n({
|
|
47
|
+
brand: i().regex(y),
|
|
48
|
+
accent: i().regex(y),
|
|
49
|
+
info: i().regex(y)
|
|
50
|
+
}), b = n({
|
|
51
|
+
light: ue,
|
|
52
|
+
dark: ue
|
|
53
|
+
}), x = /* @__PURE__ */ function(e) {
|
|
39
54
|
return e.System = "system", e.ForceLight = "force-light", e.ForceDark = "force-dark", e;
|
|
40
|
-
}({}),
|
|
55
|
+
}({}), S = /* @__PURE__ */ function(e) {
|
|
41
56
|
return e.LogoLight = "logoLight", e.LogoDark = "logoDark", e.Mark = "mark", e.EmailLogo = "emailLogo", e.EmailBanner = "emailBanner", e;
|
|
42
57
|
}({});
|
|
43
|
-
|
|
44
|
-
var
|
|
58
|
+
S.EmailLogo, S.EmailBanner;
|
|
59
|
+
var C = n({
|
|
45
60
|
checksum: i().regex(/^[0-9a-f]{64}$/),
|
|
46
61
|
mimeType: u([
|
|
47
62
|
"image/svg+xml",
|
|
@@ -51,13 +66,13 @@ var S = n({
|
|
|
51
66
|
]),
|
|
52
67
|
width: s().int().positive().nullable(),
|
|
53
68
|
height: s().int().positive().nullable()
|
|
54
|
-
}),
|
|
55
|
-
[
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
}),
|
|
69
|
+
}), de = n({
|
|
70
|
+
[S.LogoLight]: C.nullable(),
|
|
71
|
+
[S.LogoDark]: C.nullable(),
|
|
72
|
+
[S.Mark]: C.nullable(),
|
|
73
|
+
[S.EmailLogo]: C.nullable(),
|
|
74
|
+
[S.EmailBanner]: C.nullable()
|
|
75
|
+
}), w = n({
|
|
61
76
|
productName: i().trim().min(1).max(60),
|
|
62
77
|
shortName: i().trim().min(1).max(24),
|
|
63
78
|
description: i().trim().max(200).nullable(),
|
|
@@ -65,44 +80,44 @@ var S = n({
|
|
|
65
80
|
companyName: i().trim().max(80).nullable()
|
|
66
81
|
});
|
|
67
82
|
n({
|
|
68
|
-
colors:
|
|
69
|
-
mode: u(
|
|
70
|
-
assets:
|
|
71
|
-
text:
|
|
83
|
+
colors: b,
|
|
84
|
+
mode: u(x),
|
|
85
|
+
assets: de,
|
|
86
|
+
text: w
|
|
72
87
|
}).extend({ version: i() });
|
|
73
|
-
var
|
|
74
|
-
productName:
|
|
75
|
-
shortName:
|
|
76
|
-
}),
|
|
77
|
-
colors:
|
|
78
|
-
mode: u(
|
|
79
|
-
assets:
|
|
80
|
-
text:
|
|
88
|
+
var fe = n({ css: i() }), T = de.partial(), E = w.partial().extend({
|
|
89
|
+
productName: w.shape.productName.nullish(),
|
|
90
|
+
shortName: w.shape.shortName.nullish()
|
|
91
|
+
}), pe = n({
|
|
92
|
+
colors: b.nullish(),
|
|
93
|
+
mode: u(x).nullish(),
|
|
94
|
+
assets: T.nullish(),
|
|
95
|
+
text: E.nullish()
|
|
81
96
|
});
|
|
82
97
|
n({
|
|
83
|
-
patch:
|
|
98
|
+
patch: pe,
|
|
84
99
|
revision: i().min(1).max(64)
|
|
85
100
|
});
|
|
86
|
-
var
|
|
101
|
+
var D = (e) => e.optional().catch(void 0);
|
|
87
102
|
n({
|
|
88
|
-
colors:
|
|
89
|
-
mode:
|
|
90
|
-
assets:
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
[
|
|
94
|
-
[
|
|
95
|
-
[
|
|
103
|
+
colors: D(b.nullable()),
|
|
104
|
+
mode: D(u(x).nullable()),
|
|
105
|
+
assets: D(n({
|
|
106
|
+
[S.LogoLight]: D(T.shape.logoLight),
|
|
107
|
+
[S.LogoDark]: D(T.shape.logoDark),
|
|
108
|
+
[S.Mark]: D(T.shape.mark),
|
|
109
|
+
[S.EmailLogo]: D(T.shape.emailLogo),
|
|
110
|
+
[S.EmailBanner]: D(T.shape.emailBanner)
|
|
96
111
|
}).nullable()),
|
|
97
|
-
text:
|
|
98
|
-
productName: E
|
|
99
|
-
shortName: E
|
|
100
|
-
description: E
|
|
101
|
-
productTagline: E
|
|
102
|
-
companyName: E
|
|
112
|
+
text: D(n({
|
|
113
|
+
productName: D(E.shape.productName),
|
|
114
|
+
shortName: D(E.shape.shortName),
|
|
115
|
+
description: D(E.shape.description),
|
|
116
|
+
productTagline: D(E.shape.productTagline),
|
|
117
|
+
companyName: D(E.shape.companyName)
|
|
103
118
|
}).nullable())
|
|
104
|
-
}),
|
|
105
|
-
...
|
|
119
|
+
}), O({
|
|
120
|
+
...O({
|
|
106
121
|
colors: {
|
|
107
122
|
light: {
|
|
108
123
|
brand: "#140e33",
|
|
@@ -115,13 +130,13 @@ n({
|
|
|
115
130
|
info: "#86c8fb"
|
|
116
131
|
}
|
|
117
132
|
},
|
|
118
|
-
mode:
|
|
133
|
+
mode: x.System,
|
|
119
134
|
assets: {
|
|
120
|
-
[
|
|
121
|
-
[
|
|
122
|
-
[
|
|
123
|
-
[
|
|
124
|
-
[
|
|
135
|
+
[S.LogoLight]: null,
|
|
136
|
+
[S.LogoDark]: null,
|
|
137
|
+
[S.Mark]: null,
|
|
138
|
+
[S.EmailLogo]: null,
|
|
139
|
+
[S.EmailBanner]: null
|
|
125
140
|
},
|
|
126
141
|
text: {
|
|
127
142
|
productName: "Eight Wave Agent Studio",
|
|
@@ -139,15 +154,15 @@ n({
|
|
|
139
154
|
companyName: null
|
|
140
155
|
}
|
|
141
156
|
});
|
|
142
|
-
function
|
|
157
|
+
function O(e) {
|
|
143
158
|
if (e && typeof e == "object") {
|
|
144
|
-
for (let t of Object.values(e))
|
|
159
|
+
for (let t of Object.values(e)) O(t);
|
|
145
160
|
Object.freeze(e);
|
|
146
161
|
}
|
|
147
162
|
return e;
|
|
148
163
|
}
|
|
149
164
|
// ../../packages/models/src/schema/DeviceContext.ts
|
|
150
|
-
var
|
|
165
|
+
var me = n({
|
|
151
166
|
dateTime: i().optional(),
|
|
152
167
|
timezone: i().optional(),
|
|
153
168
|
language: i().optional(),
|
|
@@ -177,16 +192,16 @@ var ue = n({
|
|
|
177
192
|
geolocationLongitude: s().optional(),
|
|
178
193
|
geolocationAccuracy: s().optional(),
|
|
179
194
|
geolocationCity: i().optional()
|
|
180
|
-
}),
|
|
195
|
+
}), he = "host", k = /^[a-z][a-z0-9_]{0,63}$/, ge = 2e3, _e = n({
|
|
181
196
|
title: i().max(80).optional(),
|
|
182
197
|
readOnlyHint: d().optional(),
|
|
183
198
|
destructiveHint: d().optional()
|
|
184
199
|
});
|
|
185
200
|
n({
|
|
186
|
-
name: i().regex(
|
|
187
|
-
description: i().max(
|
|
201
|
+
name: i().regex(k),
|
|
202
|
+
description: i().max(ge).optional(),
|
|
188
203
|
inputSchema: h(i(), t()).refine((e) => e.type === "object", { message: "The input schema must describe an object" }),
|
|
189
|
-
annotations:
|
|
204
|
+
annotations: _e.optional()
|
|
190
205
|
}), n({
|
|
191
206
|
content: c(n({
|
|
192
207
|
type: l("text"),
|
|
@@ -194,33 +209,33 @@ n({
|
|
|
194
209
|
})),
|
|
195
210
|
isError: d().optional()
|
|
196
211
|
});
|
|
197
|
-
var
|
|
212
|
+
var ve = n({
|
|
198
213
|
enabled: d().default(!1),
|
|
199
214
|
label: i().max(40).default(""),
|
|
200
|
-
allowed: c(i().regex(
|
|
201
|
-
requireConfirmation: c(i().regex(
|
|
215
|
+
allowed: c(i().regex(k)).max(32).default([]),
|
|
216
|
+
requireConfirmation: c(i().regex(k)).default([]),
|
|
202
217
|
confirmDestructive: d().default(!0),
|
|
203
218
|
timeoutMs: s().int().min(5e3).max(12e4).default(3e4),
|
|
204
219
|
maxCallsPerTurn: s().int().min(1).max(50).default(20)
|
|
205
|
-
}),
|
|
220
|
+
}), ye = ve.pick({
|
|
206
221
|
label: !0,
|
|
207
222
|
allowed: !0,
|
|
208
223
|
requireConfirmation: !0,
|
|
209
224
|
confirmDestructive: !0,
|
|
210
225
|
timeoutMs: !0
|
|
211
|
-
}).extend({ origins: c(i()) }),
|
|
226
|
+
}).extend({ origins: c(i()) }), be = (e) => {
|
|
212
227
|
if (typeof e != "object" || !e) return !1;
|
|
213
228
|
let { type: t, toolMetadata: n } = e;
|
|
214
229
|
return t === "dynamic-tool" && n?.source === "host";
|
|
215
|
-
},
|
|
230
|
+
}, xe = (e) => e ? "No result: the host app did not answer this call." : "Outcome unknown: the host app did not confirm this call. Check the current state with a read tool before repeating it.", Se = "The user refused this call. Do not repeat it unless the user asks.", A = /* @__PURE__ */ function(e) {
|
|
216
231
|
return e.Off = "off", e.Read = "read", e.Forms = "forms", e.Full = "full", e;
|
|
217
|
-
}({}),
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
],
|
|
223
|
-
function
|
|
232
|
+
}({}), Ce = [
|
|
233
|
+
A.Off,
|
|
234
|
+
A.Read,
|
|
235
|
+
A.Forms,
|
|
236
|
+
A.Full
|
|
237
|
+
], we = (e, t) => Ce.indexOf(e ?? A.Off) >= Ce.indexOf(t);
|
|
238
|
+
function Te(e) {
|
|
224
239
|
if (!e.trim()) return !1;
|
|
225
240
|
if (typeof document > "u") return !0;
|
|
226
241
|
try {
|
|
@@ -229,21 +244,21 @@ function xe(e) {
|
|
|
229
244
|
return !1;
|
|
230
245
|
}
|
|
231
246
|
}
|
|
232
|
-
var
|
|
233
|
-
level: u(
|
|
234
|
-
excludeSelectors: c(i().max(200).refine(
|
|
247
|
+
var Ee = n({
|
|
248
|
+
level: u(A).default(A.Off),
|
|
249
|
+
excludeSelectors: c(i().max(200).refine(Te, "Not a valid CSS selector")).max(50).default([]),
|
|
235
250
|
confirmEveryAction: d().default(!1),
|
|
236
251
|
pointer: d().default(!1),
|
|
237
252
|
notice: h(i(), i().max(500)).optional(),
|
|
238
253
|
acknowledgedBy: i().optional(),
|
|
239
254
|
acknowledgedAt: f().optional(),
|
|
240
|
-
acknowledgedLevel: u(
|
|
241
|
-
}),
|
|
255
|
+
acknowledgedLevel: u(A).optional()
|
|
256
|
+
}), De = (e) => e.startsWith("page_") || e.startsWith("form_"), Oe = Ee.pick({
|
|
242
257
|
level: !0,
|
|
243
258
|
excludeSelectors: !0,
|
|
244
259
|
confirmEveryAction: !0,
|
|
245
260
|
notice: !0
|
|
246
|
-
}).extend({ pointer: d().optional() }),
|
|
261
|
+
}).extend({ pointer: d().optional() }), ke = ["fill-fields", "fill-choose"];
|
|
247
262
|
n({
|
|
248
263
|
kind: u(["element", "text"]),
|
|
249
264
|
label: i().max(200),
|
|
@@ -260,7 +275,7 @@ n({
|
|
|
260
275
|
features: c(i().max(40)).max(16).default([])
|
|
261
276
|
});
|
|
262
277
|
// ../../packages/models/src/schema/Media.ts
|
|
263
|
-
var
|
|
278
|
+
var j = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ae = new Set([
|
|
264
279
|
[".mp3", "audio/mpeg"],
|
|
265
280
|
[".m4a", "audio/mp4"],
|
|
266
281
|
[".m4a", "audio/x-m4a"],
|
|
@@ -273,7 +288,7 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
|
|
|
273
288
|
[".opus", "audio/ogg"],
|
|
274
289
|
[".flac", "audio/flac"],
|
|
275
290
|
[".flac", "audio/x-flac"]
|
|
276
|
-
].map(([e]) => e)),
|
|
291
|
+
].map(([e]) => e)), je = /* @__PURE__ */ new Set([
|
|
277
292
|
".amr",
|
|
278
293
|
".3ga",
|
|
279
294
|
".aif",
|
|
@@ -283,10 +298,10 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
|
|
|
283
298
|
".mka",
|
|
284
299
|
".weba",
|
|
285
300
|
".wma"
|
|
286
|
-
]),
|
|
287
|
-
let n =
|
|
288
|
-
return
|
|
289
|
-
},
|
|
301
|
+
]), Me = (e) => e?.split(";")[0]?.trim().toLowerCase() ?? "", Ne = (e, t) => {
|
|
302
|
+
let n = Je(e ?? "");
|
|
303
|
+
return Me(t).startsWith("audio/") || Ae.has(n) || je.has(n);
|
|
304
|
+
}, M = [
|
|
290
305
|
{
|
|
291
306
|
extensions: [".html", ".htm"],
|
|
292
307
|
mimeType: "text/html",
|
|
@@ -440,16 +455,16 @@ var A = /^[a-z]+\/[a-z0-9\-+.]+$/i, Ee = new Set([
|
|
|
440
455
|
]
|
|
441
456
|
}
|
|
442
457
|
];
|
|
443
|
-
|
|
444
|
-
var
|
|
458
|
+
M.map((e) => e.mimeType);
|
|
459
|
+
var Pe = (e) => M.filter((t) => e.includes(t.mimeType)).flatMap((e) => e.extensions), Fe = (e, t) => {
|
|
445
460
|
if (t.length === 0) return !0;
|
|
446
|
-
let n =
|
|
461
|
+
let n = M.filter((e) => t.includes(e.mimeType)), r = new Set(n.length > 0 ? [
|
|
447
462
|
"",
|
|
448
463
|
"application/octet-stream",
|
|
449
464
|
"text/plain",
|
|
450
465
|
...n.flatMap((e) => e.aliases)
|
|
451
466
|
] : []);
|
|
452
|
-
return e.length > 0 && e.every((e) => r.has(
|
|
467
|
+
return e.length > 0 && e.every((e) => r.has(Me(e)) || t.some((t) => e.includes(t)));
|
|
453
468
|
};
|
|
454
469
|
n({
|
|
455
470
|
status: u([
|
|
@@ -463,47 +478,47 @@ n({
|
|
|
463
478
|
durationSeconds: s().optional(),
|
|
464
479
|
model: i().optional()
|
|
465
480
|
});
|
|
466
|
-
var
|
|
481
|
+
var Ie = /* @__PURE__ */ function(e) {
|
|
467
482
|
return e.DEFAULT = "default", e.COLD = "cold", e.HOT = "hot", e.ARCHIVE = "archive", e;
|
|
468
|
-
}({}),
|
|
483
|
+
}({}), Le = n({
|
|
469
484
|
type: l("azure-blob"),
|
|
470
485
|
blobUri: e(),
|
|
471
486
|
containerName: i().min(1),
|
|
472
487
|
pathRelativeToContainer: i().min(1)
|
|
473
|
-
}),
|
|
488
|
+
}), Re = n({
|
|
474
489
|
type: l("s3"),
|
|
475
490
|
bucket: i().min(1),
|
|
476
491
|
key: i().min(1),
|
|
477
492
|
region: i().min(1)
|
|
478
|
-
}),
|
|
493
|
+
}), ze = p("type", [Le, Re]), N = n({
|
|
479
494
|
type: i().min(1),
|
|
480
495
|
name: i().min(1),
|
|
481
|
-
mimeType: i().regex(
|
|
496
|
+
mimeType: i().regex(j),
|
|
482
497
|
bytesCount: s().positive(),
|
|
483
498
|
extension: i().regex(/^\.[a-zA-Z0-9]+$/).overwrite((e) => e.toLowerCase()),
|
|
484
499
|
storedFileName: i().optional(),
|
|
485
500
|
metadata: h(i(), i()).default({}),
|
|
486
501
|
tags: h(i(), i()).default({})
|
|
487
502
|
}).extend({
|
|
488
|
-
storageHandle:
|
|
489
|
-
storagePolicy: u(
|
|
503
|
+
storageHandle: ze,
|
|
504
|
+
storagePolicy: u(Ie),
|
|
490
505
|
signData: i().optional(),
|
|
491
506
|
storedFileName: i().min(1)
|
|
492
|
-
}),
|
|
507
|
+
}), Be = n({
|
|
493
508
|
name: i().min(1),
|
|
494
|
-
src:
|
|
495
|
-
srcSet: c(
|
|
509
|
+
src: N,
|
|
510
|
+
srcSet: c(N).default([]),
|
|
496
511
|
rawOptions: ee().optional()
|
|
497
512
|
});
|
|
498
513
|
n({
|
|
499
|
-
src:
|
|
514
|
+
src: N,
|
|
500
515
|
uploadHandle: n({
|
|
501
516
|
uploadSasuri: e(),
|
|
502
517
|
metadata: h(i(), i()).default({}),
|
|
503
518
|
tags: h(i(), i()).default({})
|
|
504
519
|
})
|
|
505
520
|
}), n({
|
|
506
|
-
src:
|
|
521
|
+
src: N,
|
|
507
522
|
downloadHandle: n({
|
|
508
523
|
downloadSasuri: e(),
|
|
509
524
|
viewSasuri: e(),
|
|
@@ -512,35 +527,35 @@ n({
|
|
|
512
527
|
type: i()
|
|
513
528
|
})
|
|
514
529
|
});
|
|
515
|
-
var
|
|
530
|
+
var P = /* @__PURE__ */ function(e) {
|
|
516
531
|
return e.picture = "picture", e.video = "video", e.audio = "audio", e.office = "office", e.archive = "archive", e.binary = "binary", e.executable = "executable", e;
|
|
517
|
-
}({}),
|
|
518
|
-
type: l(
|
|
532
|
+
}({}), Ve = n({
|
|
533
|
+
type: l(P.picture),
|
|
519
534
|
width: s().positive(),
|
|
520
535
|
height: s().positive(),
|
|
521
536
|
blurhash: i().optional()
|
|
522
|
-
}),
|
|
523
|
-
type: l(
|
|
537
|
+
}), He = n({
|
|
538
|
+
type: l(P.video),
|
|
524
539
|
width: s().positive(),
|
|
525
540
|
height: s().positive(),
|
|
526
541
|
duration: s().nonnegative()
|
|
527
|
-
}),
|
|
528
|
-
type: l(
|
|
542
|
+
}), Ue = n({
|
|
543
|
+
type: l(P.audio),
|
|
529
544
|
duration: s().nonnegative()
|
|
530
|
-
}),
|
|
545
|
+
}), We = n({ type: l(P.office) }), Ge = n({ type: l(P.archive) }), Ke = n({ type: l(P.binary) }), qe = n({ type: l(P.executable) });
|
|
531
546
|
p("type", [
|
|
532
|
-
Le,
|
|
533
|
-
Re,
|
|
534
|
-
ze,
|
|
535
|
-
Be,
|
|
536
547
|
Ve,
|
|
537
548
|
He,
|
|
538
|
-
Ue
|
|
549
|
+
Ue,
|
|
550
|
+
We,
|
|
551
|
+
Ge,
|
|
552
|
+
Ke,
|
|
553
|
+
qe
|
|
539
554
|
]);
|
|
540
|
-
var
|
|
555
|
+
var Je = (e) => {
|
|
541
556
|
let t = e.lastIndexOf(".");
|
|
542
557
|
return t === -1 ? "" : e.slice(t).toLowerCase();
|
|
543
|
-
},
|
|
558
|
+
}, Ye = [
|
|
544
559
|
"explain",
|
|
545
560
|
"summarize",
|
|
546
561
|
"rewrite",
|
|
@@ -548,11 +563,11 @@ var We = (e) => {
|
|
|
548
563
|
"proofread",
|
|
549
564
|
"translate",
|
|
550
565
|
"chart"
|
|
551
|
-
],
|
|
566
|
+
], Xe = [
|
|
552
567
|
"page",
|
|
553
568
|
"word",
|
|
554
569
|
"excel"
|
|
555
|
-
],
|
|
570
|
+
], F = {
|
|
556
571
|
page: ["explain", "summarize"],
|
|
557
572
|
word: [
|
|
558
573
|
"rewrite",
|
|
@@ -565,8 +580,8 @@ var We = (e) => {
|
|
|
565
580
|
"summarize",
|
|
566
581
|
"chart"
|
|
567
582
|
]
|
|
568
|
-
},
|
|
569
|
-
function
|
|
583
|
+
}, Ze = /* @__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("."), Qe = (e) => h(i(), i().trim().min(1).max(e));
|
|
584
|
+
function $e(e) {
|
|
570
585
|
let t = (e) => Object.keys(e ?? {}).filter((t) => !!e?.[t]?.trim()), n = t(e.label), r = t(e.prompt);
|
|
571
586
|
return {
|
|
572
587
|
empty: n.length === 0 && r.length === 0,
|
|
@@ -574,14 +589,14 @@ function Ye(e) {
|
|
|
574
589
|
prompt: n.filter((e) => !r.includes(e))
|
|
575
590
|
};
|
|
576
591
|
}
|
|
577
|
-
var
|
|
592
|
+
var et = n({
|
|
578
593
|
id: i().trim().min(1).max(64),
|
|
579
|
-
label:
|
|
580
|
-
prompt:
|
|
581
|
-
icon: u(
|
|
594
|
+
label: Qe(40),
|
|
595
|
+
prompt: Qe(500),
|
|
596
|
+
icon: u(Ze).optional().catch(void 0)
|
|
582
597
|
});
|
|
583
|
-
function
|
|
584
|
-
for (let r of
|
|
598
|
+
function tt(e, t, n = {}) {
|
|
599
|
+
for (let r of Xe) {
|
|
585
600
|
let i = e.selectionActions?.[r];
|
|
586
601
|
if (i?.enabled && n[r] !== !1) for (let [e, n] of (i.actions ?? []).entries()) {
|
|
587
602
|
let i = [
|
|
@@ -589,7 +604,7 @@ function Ze(e, t, n = {}) {
|
|
|
589
604
|
r,
|
|
590
605
|
"actions",
|
|
591
606
|
e
|
|
592
|
-
], a =
|
|
607
|
+
], a = $e(n);
|
|
593
608
|
a.empty && t.addIssue({
|
|
594
609
|
code: "custom",
|
|
595
610
|
message: "An action needs a label and an instruction",
|
|
@@ -607,10 +622,10 @@ function Ze(e, t, n = {}) {
|
|
|
607
622
|
}
|
|
608
623
|
}
|
|
609
624
|
}
|
|
610
|
-
var
|
|
625
|
+
var I = (e, t) => n({
|
|
611
626
|
enabled: d().default(t),
|
|
612
627
|
builtIns: c(u(e)).default(() => [...e]),
|
|
613
|
-
actions: c(
|
|
628
|
+
actions: c(et).default([])
|
|
614
629
|
}).refine((e) => new Set(e.builtIns).size === e.builtIns.length, {
|
|
615
630
|
message: "A built-in action is listed twice",
|
|
616
631
|
path: ["builtIns"]
|
|
@@ -620,208 +635,208 @@ var F = (e, t) => n({
|
|
|
620
635
|
}).refine((e) => e.builtIns.length + e.actions.length <= 4, {
|
|
621
636
|
message: "At most 4 actions, built-in and the agent's together",
|
|
622
637
|
path: ["actions"]
|
|
623
|
-
}),
|
|
624
|
-
page:
|
|
625
|
-
word:
|
|
626
|
-
excel:
|
|
627
|
-
}),
|
|
628
|
-
builtIns: c(u(
|
|
629
|
-
actions: c(
|
|
630
|
-
}),
|
|
631
|
-
page:
|
|
632
|
-
word:
|
|
633
|
-
excel:
|
|
634
|
-
}),
|
|
638
|
+
}), nt = I(F.page, !1), rt = I(F.word, !0), it = I(F.excel, !0), at = n({
|
|
639
|
+
page: nt.optional().default(() => nt.parse({})),
|
|
640
|
+
word: rt.optional().default(() => rt.parse({})),
|
|
641
|
+
excel: it.optional().default(() => it.parse({}))
|
|
642
|
+
}), L = n({
|
|
643
|
+
builtIns: c(u(Ye)),
|
|
644
|
+
actions: c(et)
|
|
645
|
+
}), ot = n({
|
|
646
|
+
page: L.optional(),
|
|
647
|
+
word: L.optional(),
|
|
648
|
+
excel: L.optional()
|
|
649
|
+
}), R = /* @__PURE__ */ function(e) {
|
|
635
650
|
return e.Draft = "draft", e.Active = "active", e.Inactive = "inactive", e;
|
|
636
|
-
}({}),
|
|
651
|
+
}({}), z = /* @__PURE__ */ function(e) {
|
|
637
652
|
return e.Public = "public", e.Private = "private", e.Organization = "organization", e.Restricted = "restricted", e;
|
|
638
653
|
}({});
|
|
639
|
-
|
|
640
|
-
var
|
|
654
|
+
z.Organization, z.Restricted;
|
|
655
|
+
var B = /* @__PURE__ */ function(e) {
|
|
641
656
|
return e.Chat = "chat", e.Reasoning = "reasoning", e;
|
|
642
|
-
}({}),
|
|
657
|
+
}({}), V = /* @__PURE__ */ function(e) {
|
|
643
658
|
return e.Semantic = "semantic", e.Balanced = "balanced", e.Keyword = "keyword", e;
|
|
644
|
-
}({}),
|
|
659
|
+
}({}), st = [
|
|
645
660
|
"none",
|
|
646
661
|
"low",
|
|
647
662
|
"medium",
|
|
648
663
|
"high",
|
|
649
664
|
"xhigh",
|
|
650
665
|
"max"
|
|
651
|
-
],
|
|
666
|
+
], ct = [
|
|
652
667
|
"low",
|
|
653
668
|
"medium",
|
|
654
669
|
"high",
|
|
655
670
|
"xhigh",
|
|
656
671
|
"max"
|
|
657
|
-
],
|
|
672
|
+
], lt = [
|
|
658
673
|
"minimal",
|
|
659
674
|
"low",
|
|
660
675
|
"medium",
|
|
661
676
|
"high"
|
|
662
|
-
],
|
|
677
|
+
], ut = [
|
|
663
678
|
"auto",
|
|
664
679
|
"detailed",
|
|
665
680
|
"concise"
|
|
666
|
-
],
|
|
667
|
-
reasoningEffort: u(
|
|
668
|
-
reasoningSummary: u(
|
|
669
|
-
}),
|
|
681
|
+
], dt = n({
|
|
682
|
+
reasoningEffort: u(st).optional(),
|
|
683
|
+
reasoningSummary: u(ut).optional()
|
|
684
|
+
}), ft = n({
|
|
670
685
|
type: u([
|
|
671
686
|
"adaptive",
|
|
672
687
|
"enabled",
|
|
673
688
|
"disabled"
|
|
674
689
|
]).optional(),
|
|
675
|
-
effort: u(
|
|
690
|
+
effort: u(ct).optional(),
|
|
676
691
|
display: u(["summarized", "omitted"]).optional(),
|
|
677
692
|
budgetTokens: s().int().positive().optional()
|
|
678
|
-
}),
|
|
679
|
-
thinkingLevel: u(
|
|
693
|
+
}), pt = n({
|
|
694
|
+
thinkingLevel: u(lt).optional(),
|
|
680
695
|
thinkingBudget: s().int().optional(),
|
|
681
696
|
includeThoughts: d().optional()
|
|
682
|
-
}),
|
|
697
|
+
}), mt = n({ type: u(["enabled", "disabled"]).optional() }), H = [
|
|
683
698
|
"alibaba",
|
|
684
699
|
"meta",
|
|
685
700
|
"moonshotai",
|
|
686
701
|
"spacexai",
|
|
687
702
|
"xiaomi",
|
|
688
703
|
"zai"
|
|
689
|
-
],
|
|
704
|
+
], ht = [
|
|
690
705
|
"none",
|
|
691
706
|
"minimal",
|
|
692
707
|
"low",
|
|
693
708
|
"medium",
|
|
694
709
|
"high",
|
|
695
710
|
"xhigh"
|
|
696
|
-
],
|
|
697
|
-
function
|
|
711
|
+
], U = n({ reasoningEffort: u(ht).optional() });
|
|
712
|
+
function W(e, t) {
|
|
698
713
|
return e && t.includes(e) ? e : void 0;
|
|
699
714
|
}
|
|
700
|
-
var
|
|
701
|
-
openai:
|
|
702
|
-
anthropic:
|
|
703
|
-
google:
|
|
704
|
-
deepseek:
|
|
705
|
-
alibaba:
|
|
706
|
-
meta:
|
|
707
|
-
moonshotai:
|
|
708
|
-
spacexai:
|
|
709
|
-
xiaomi:
|
|
710
|
-
zai:
|
|
715
|
+
var gt = n({
|
|
716
|
+
openai: dt.optional(),
|
|
717
|
+
anthropic: ft.optional(),
|
|
718
|
+
google: pt.optional(),
|
|
719
|
+
deepseek: mt.optional(),
|
|
720
|
+
alibaba: U.optional(),
|
|
721
|
+
meta: U.optional(),
|
|
722
|
+
moonshotai: U.optional(),
|
|
723
|
+
spacexai: U.optional(),
|
|
724
|
+
xiaomi: U.optional(),
|
|
725
|
+
zai: U.optional()
|
|
711
726
|
});
|
|
712
|
-
function
|
|
727
|
+
function _t(e) {
|
|
713
728
|
if (!e || typeof e != "object") return e;
|
|
714
729
|
let t = e, n = [
|
|
715
730
|
"openai",
|
|
716
731
|
"anthropic",
|
|
717
732
|
"google",
|
|
718
733
|
"deepseek",
|
|
719
|
-
...
|
|
734
|
+
...H
|
|
720
735
|
].some((e) => e in t);
|
|
721
736
|
if ("effort" in t && !n) {
|
|
722
737
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
723
738
|
if (e && e !== "off" && e !== "none") {
|
|
724
|
-
let t =
|
|
739
|
+
let t = W(e, st), i = W(n, ut);
|
|
725
740
|
(t || i) && (r.openai = {
|
|
726
741
|
...t && { reasoningEffort: t },
|
|
727
742
|
...i && { reasoningSummary: i }
|
|
728
743
|
});
|
|
729
|
-
let a =
|
|
744
|
+
let a = W(e, ct);
|
|
730
745
|
a && (r.anthropic = {
|
|
731
746
|
type: "adaptive",
|
|
732
747
|
effort: a
|
|
733
748
|
});
|
|
734
|
-
let o =
|
|
749
|
+
let o = W(e === "xhigh" || e === "max" ? "high" : e, lt);
|
|
735
750
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
736
|
-
let s =
|
|
737
|
-
if (s) for (let e of
|
|
751
|
+
let s = W(e === "max" ? "xhigh" : e, ht);
|
|
752
|
+
if (s) for (let e of H) r[e] = { reasoningEffort: s };
|
|
738
753
|
} else {
|
|
739
754
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
740
|
-
for (let e of
|
|
755
|
+
for (let e of H) r[e] = { reasoningEffort: "none" };
|
|
741
756
|
}
|
|
742
757
|
return r;
|
|
743
758
|
}
|
|
744
759
|
return e;
|
|
745
760
|
}
|
|
746
|
-
var
|
|
761
|
+
var vt = g(t(), gt, _t).optional(), G = /* @__PURE__ */ function(e) {
|
|
747
762
|
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;
|
|
748
|
-
}({}),
|
|
749
|
-
function
|
|
750
|
-
return e ===
|
|
763
|
+
}({}), yt = "mcp-", bt = "api-", xt = "subagent-";
|
|
764
|
+
function St(e) {
|
|
765
|
+
return e === G.RequestConfirm || e === G.ShowArtifact || e === G.ShowCalendarEvent || e === G.ShowChart || e === G.ShowComparison || e === G.ShowContactForm || e === G.ShowDiagram || e === G.ShowEmail || e === G.ShowImageGallery || e === G.ShowLocation || e === G.ShowMessage || e === G.ShowForm || e === G.ShowMultipleChoice || e === G.ShowProductList || e === G.ShowQrCode || e === G.ShowSources || e === G.ShowSuggestedReply || e === G.ShowVideo || e === G.ShowWeather || e === G.ShowWebPages;
|
|
751
766
|
}
|
|
752
|
-
var
|
|
767
|
+
var Ct = /* @__PURE__ */ new Set([
|
|
753
768
|
"editSpreadsheet",
|
|
754
769
|
"editWordDocument",
|
|
755
|
-
|
|
756
|
-
|
|
770
|
+
G.CreateSpreadsheet,
|
|
771
|
+
G.CreateWordDocument
|
|
757
772
|
]);
|
|
758
773
|
[
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
...
|
|
775
|
-
|
|
774
|
+
G.RequestConfirm,
|
|
775
|
+
G.ShowArtifact,
|
|
776
|
+
G.ShowWeather,
|
|
777
|
+
G.ShowLocation,
|
|
778
|
+
G.ShowComparison,
|
|
779
|
+
G.ShowProductList,
|
|
780
|
+
G.ShowWebPages,
|
|
781
|
+
G.ShowImageGallery,
|
|
782
|
+
G.ShowVideo,
|
|
783
|
+
G.ShowSources,
|
|
784
|
+
G.ShowSuggestedReply,
|
|
785
|
+
G.ShowCalendarEvent,
|
|
786
|
+
G.ShowEmail,
|
|
787
|
+
G.ShowMessage,
|
|
788
|
+
G.ShowForm,
|
|
789
|
+
...Ct,
|
|
790
|
+
G.ShareDocument
|
|
776
791
|
];
|
|
777
|
-
var
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
792
|
+
var wt = /* @__PURE__ */ new Set([
|
|
793
|
+
G.RequestConfirm,
|
|
794
|
+
G.RequestGeolocation,
|
|
795
|
+
G.ShowForm,
|
|
796
|
+
G.ShowMultipleChoice,
|
|
782
797
|
"requestOAuthConnection"
|
|
783
798
|
]);
|
|
784
|
-
function
|
|
785
|
-
return
|
|
799
|
+
function Tt(e) {
|
|
800
|
+
return wt.has(e);
|
|
786
801
|
}
|
|
787
|
-
var
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
]),
|
|
810
|
-
function
|
|
811
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
802
|
+
var Et = /* @__PURE__ */ new Set([
|
|
803
|
+
G.RequestConfirm,
|
|
804
|
+
G.RequestGeolocation,
|
|
805
|
+
G.ShowArtifact,
|
|
806
|
+
G.ShowCalendarEvent,
|
|
807
|
+
G.ShowChart,
|
|
808
|
+
G.ShowContactForm,
|
|
809
|
+
G.ShowComparison,
|
|
810
|
+
G.ShowDiagram,
|
|
811
|
+
G.ShowEmail,
|
|
812
|
+
G.ShowForm,
|
|
813
|
+
G.ShowImageGallery,
|
|
814
|
+
G.ShowLocation,
|
|
815
|
+
G.ShowMessage,
|
|
816
|
+
G.ShowMultipleChoice,
|
|
817
|
+
G.ShowProductList,
|
|
818
|
+
G.ShowQrCode,
|
|
819
|
+
G.ShowSources,
|
|
820
|
+
G.ShowSuggestedReply,
|
|
821
|
+
G.ShowVideo,
|
|
822
|
+
G.ShowWeather,
|
|
823
|
+
G.ShowWebPages
|
|
824
|
+
]), Dt = "Shown on the caller's screen";
|
|
825
|
+
function Ot(e) {
|
|
826
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(Dt));
|
|
812
827
|
}
|
|
813
|
-
var
|
|
828
|
+
var kt = n({
|
|
814
829
|
maxSteps: s().int().min(1).max(10).optional().default(5),
|
|
815
830
|
maxOptionsPerStep: s().int().min(2).max(10).optional().default(5)
|
|
816
|
-
}),
|
|
831
|
+
}), At = /* @__PURE__ */ function(e) {
|
|
817
832
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
818
|
-
}({}),
|
|
833
|
+
}({}), jt = [
|
|
819
834
|
"perplexity_search",
|
|
820
835
|
"parallel_search",
|
|
821
836
|
"web_search",
|
|
822
837
|
"openai_web_search",
|
|
823
838
|
"google_search"
|
|
824
|
-
],
|
|
839
|
+
], Mt = n({
|
|
825
840
|
maxResults: s().int().min(1).max(20).optional(),
|
|
826
841
|
maxTokens: s().int().positive().max(1e6).optional(),
|
|
827
842
|
maxTokensPerPage: s().int().positive().optional(),
|
|
@@ -834,7 +849,7 @@ var Tt = n({
|
|
|
834
849
|
"month",
|
|
835
850
|
"year"
|
|
836
851
|
]).optional()
|
|
837
|
-
}),
|
|
852
|
+
}), Nt = n({
|
|
838
853
|
mode: u(["one-shot", "agentic"]).optional(),
|
|
839
854
|
maxResults: s().int().min(1).max(20).optional(),
|
|
840
855
|
sourcePolicy: n({
|
|
@@ -847,7 +862,7 @@ var Tt = n({
|
|
|
847
862
|
maxCharsTotal: s().int().positive().optional()
|
|
848
863
|
}).optional(),
|
|
849
864
|
fetchPolicy: n({ maxAgeSeconds: s().int().positive().optional() }).optional()
|
|
850
|
-
}),
|
|
865
|
+
}), Pt = n({
|
|
851
866
|
openai: n({}).optional(),
|
|
852
867
|
anthropic: n({
|
|
853
868
|
maxUses: s().int().positive().optional(),
|
|
@@ -862,29 +877,29 @@ var Tt = n({
|
|
|
862
877
|
}).optional()
|
|
863
878
|
}).optional(),
|
|
864
879
|
google: n({}).optional()
|
|
865
|
-
}),
|
|
880
|
+
}), K = n({
|
|
866
881
|
enabled: d().default(!1),
|
|
867
|
-
provider: u(
|
|
868
|
-
perplexity:
|
|
869
|
-
parallel:
|
|
870
|
-
native:
|
|
871
|
-
}),
|
|
872
|
-
disabled: c(u(
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
882
|
+
provider: u(At).optional().default(At.Native),
|
|
883
|
+
perplexity: Mt.optional(),
|
|
884
|
+
parallel: Nt.optional(),
|
|
885
|
+
native: Pt.optional()
|
|
886
|
+
}), Ft = n({ useAllUserKb: d().default(!1) }), It = n({ useAllUserFiles: d().default(!1) }), Lt = n({ enabled: d().default(!1) }), q = n({ enabled: d().default(!1) }), Rt = n({ tools: c(i()).default([]) }), zt = n({
|
|
887
|
+
disabled: c(u(G)).default([
|
|
888
|
+
G.UserMemory,
|
|
889
|
+
G.SearchInUserFiles,
|
|
890
|
+
G.RunWorker,
|
|
891
|
+
G.FetchTeamsChannelHistory,
|
|
892
|
+
G.ScheduleWakeup
|
|
878
893
|
]),
|
|
879
|
-
showForm:
|
|
880
|
-
webSearch:
|
|
881
|
-
userMemory:
|
|
882
|
-
userFiles:
|
|
883
|
-
shareDocument:
|
|
884
|
-
createSpreadsheet:
|
|
885
|
-
createWordDocument:
|
|
886
|
-
approval:
|
|
887
|
-
}),
|
|
894
|
+
showForm: kt.optional().default(() => kt.parse({})),
|
|
895
|
+
webSearch: K.optional().default(() => K.parse({})),
|
|
896
|
+
userMemory: Ft.optional().default(() => Ft.parse({})),
|
|
897
|
+
userFiles: It.optional().default(() => It.parse({})),
|
|
898
|
+
shareDocument: Lt.optional().default(() => Lt.parse({})),
|
|
899
|
+
createSpreadsheet: q.optional().default(() => q.parse({})),
|
|
900
|
+
createWordDocument: q.optional().default(() => q.parse({})),
|
|
901
|
+
approval: Rt.optional().default(() => Rt.parse({}))
|
|
902
|
+
}), J = n({
|
|
888
903
|
freshness: n({
|
|
889
904
|
enabled: d().default(!1),
|
|
890
905
|
scale: s().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -896,27 +911,27 @@ var Tt = n({
|
|
|
896
911
|
diversity: s().min(0).max(1).default(.3),
|
|
897
912
|
candidatesLimit: s().int().min(20).max(100).default(50)
|
|
898
913
|
}).prefault({})
|
|
899
|
-
}).prefault({}),
|
|
914
|
+
}).prefault({}), Bt = n({
|
|
900
915
|
prompt: i().optional(),
|
|
901
916
|
temperature: s().min(0).max(2).optional().default(.6),
|
|
902
917
|
maxOutputTokens: s().positive().optional(),
|
|
903
918
|
presencePenalty: s().min(-2).max(2).optional(),
|
|
904
919
|
frequencyPenalty: s().min(-2).max(2).optional(),
|
|
905
|
-
searchMode: u(
|
|
920
|
+
searchMode: u(V).optional().default(V.Balanced),
|
|
906
921
|
limit: s().positive().max(100).optional().default(10),
|
|
907
922
|
maxStepCount: s().int().min(1).max(40).optional().default(10),
|
|
908
|
-
reasoning:
|
|
909
|
-
ranking:
|
|
910
|
-
}),
|
|
923
|
+
reasoning: vt,
|
|
924
|
+
ranking: J.optional().default(() => J.parse({}))
|
|
925
|
+
}), Y = g(t(), h(i(), i()), (e) => typeof e == "string" ? { it: e } : e), Vt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", Ht = /* @__PURE__ */ function(e) {
|
|
911
926
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
912
|
-
}({}), Y = /* @__PURE__ */ function(e) {
|
|
913
|
-
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
914
927
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
915
|
-
return e.
|
|
928
|
+
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
916
929
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
930
|
+
return e.Solid = "solid", e.Glass = "glass", e;
|
|
931
|
+
}({}), Q = /* @__PURE__ */ function(e) {
|
|
917
932
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
918
|
-
}({}),
|
|
919
|
-
function
|
|
933
|
+
}({}), Ut = Object.values(Q), Wt = /^(?=.{1,253}$)([a-z0-9-]+\.)*[a-z0-9-]+$/;
|
|
934
|
+
function Gt(e) {
|
|
920
935
|
let t = e.trim().toLowerCase();
|
|
921
936
|
if (!t) return "";
|
|
922
937
|
try {
|
|
@@ -925,15 +940,15 @@ function Vt(e) {
|
|
|
925
940
|
return t;
|
|
926
941
|
}
|
|
927
942
|
}
|
|
928
|
-
var
|
|
929
|
-
media:
|
|
943
|
+
var $ = n({
|
|
944
|
+
media: Be.optional(),
|
|
930
945
|
logo: i().optional(),
|
|
931
946
|
theme: u([
|
|
932
947
|
"light",
|
|
933
948
|
"dark",
|
|
934
949
|
"auto"
|
|
935
950
|
]).optional().default("auto"),
|
|
936
|
-
mainColor: i().regex(
|
|
951
|
+
mainColor: i().regex(y).optional().default("#000000"),
|
|
937
952
|
textColor: u([
|
|
938
953
|
"auto",
|
|
939
954
|
"white",
|
|
@@ -944,33 +959,33 @@ var Q = n({
|
|
|
944
959
|
"one",
|
|
945
960
|
"two"
|
|
946
961
|
]).optional().default("auto"),
|
|
947
|
-
glowSecondColor: i().regex(
|
|
962
|
+
glowSecondColor: i().regex(y).optional(),
|
|
948
963
|
useColorsForAgentHeader: d().optional().default(!1),
|
|
949
|
-
initialMessage:
|
|
950
|
-
greeting: c(
|
|
951
|
-
messagePlaceholder:
|
|
952
|
-
dismissableNotice:
|
|
953
|
-
footerMessage:
|
|
954
|
-
privacyPolicyNotice:
|
|
964
|
+
initialMessage: Y.optional(),
|
|
965
|
+
greeting: c(Y).min(1).max(10).optional(),
|
|
966
|
+
messagePlaceholder: Y.optional(),
|
|
967
|
+
dismissableNotice: Y.optional(),
|
|
968
|
+
footerMessage: Y.optional(),
|
|
969
|
+
privacyPolicyNotice: Y.optional(),
|
|
955
970
|
interactiveLogin: d().optional().default(!0),
|
|
956
971
|
welcomePopup: d().optional().default(!1),
|
|
957
972
|
floatingButtonPosition: u(["left", "right"]).optional().default("right"),
|
|
958
|
-
layout: u(
|
|
959
|
-
appearance: u(
|
|
973
|
+
layout: u(X).optional().default(X.Floating),
|
|
974
|
+
appearance: u(Z).optional().default(Z.Solid),
|
|
960
975
|
hideFloatingButton: d().optional().default(!1),
|
|
961
976
|
workingGlow: d().optional().default(!0),
|
|
962
977
|
copilotPageCss: i().optional(),
|
|
963
978
|
maxMessageLength: s().int().positive().optional(),
|
|
964
|
-
widgetUrl: e().default(
|
|
979
|
+
widgetUrl: e().default(Vt),
|
|
965
980
|
loadDelay: s().int().min(0).max(3e4).optional().default(0),
|
|
966
|
-
loaderStrategy: u(
|
|
981
|
+
loaderStrategy: u(Ht).optional().default(Ht.InlineModule),
|
|
967
982
|
customCss: i().optional(),
|
|
968
983
|
smoothStream: d().optional().default(!1),
|
|
969
984
|
showExtendedSteps: d().optional().default(!1),
|
|
970
985
|
showReasoning: d().optional().default(!0),
|
|
971
986
|
holdExternalImages: d().optional().default(!1),
|
|
972
|
-
imageHosts: c(i().overwrite(
|
|
973
|
-
}),
|
|
987
|
+
imageHosts: c(i().overwrite(Gt).refine((e) => e === "" || Wt.test(e), { message: "Enter a host name, like images.example.com" })).overwrite((e) => [...new Set(e.filter(Boolean))]).default([])
|
|
988
|
+
}), Kt = [
|
|
974
989
|
"image/jpeg",
|
|
975
990
|
"image/png",
|
|
976
991
|
"image/gif",
|
|
@@ -979,19 +994,20 @@ var Q = n({
|
|
|
979
994
|
"text/plain",
|
|
980
995
|
"text/markdown",
|
|
981
996
|
"text/csv"
|
|
982
|
-
],
|
|
997
|
+
], qt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Jt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Yt = n({
|
|
983
998
|
enabled: d().default(!1),
|
|
984
999
|
maxFileSizeBytes: s().int().positive().max(104857600).optional().default(20971520),
|
|
985
|
-
allowedMimeTypes: c(i().regex(
|
|
1000
|
+
allowedMimeTypes: c(i().regex(j)).optional().default([...Kt]),
|
|
986
1001
|
maxFilesPerMessage: s().int().positive().max(10).optional().default(5),
|
|
987
1002
|
maxFilesPerChat: s().int().positive().max(50).optional().default(20)
|
|
988
|
-
}),
|
|
1003
|
+
}), Xt = n({
|
|
989
1004
|
zeroDataRetention: d().default(!0),
|
|
990
1005
|
disallowPromptTraining: d().default(!0),
|
|
991
|
-
providerTimeoutMs: s().int().min(1e3).max(789e3).optional()
|
|
992
|
-
|
|
1006
|
+
providerTimeoutMs: s().int().min(1e3).max(789e3).optional(),
|
|
1007
|
+
inferenceRegion: u(se).optional()
|
|
1008
|
+
}), Zt = n({ enabled: d().default(!1) }), Qt = /* @__PURE__ */ function(e) {
|
|
993
1009
|
return e.Off = "off", e.Shadow = "shadow", e.Active = "active", e;
|
|
994
|
-
}({}),
|
|
1010
|
+
}({}), $t = n({ mode: u(Qt).default(Qt.Off) }), en = n({
|
|
995
1011
|
enabled: d().default(!1),
|
|
996
1012
|
voiceId: i().optional(),
|
|
997
1013
|
language: i().min(2).max(5).default("it"),
|
|
@@ -1010,44 +1026,44 @@ var Q = n({
|
|
|
1010
1026
|
providerAgentId: i().optional(),
|
|
1011
1027
|
providerSecretId: i().optional(),
|
|
1012
1028
|
providerApiKeyId: i().optional()
|
|
1013
|
-
}),
|
|
1029
|
+
}), tn = n({ enabled: d() }), nn = l("automatic");
|
|
1014
1030
|
n({
|
|
1015
1031
|
chatId: i().min(1).optional(),
|
|
1016
|
-
deviceContext:
|
|
1032
|
+
deviceContext: me.optional(),
|
|
1017
1033
|
externalContext: h(i(), t()).optional(),
|
|
1018
1034
|
pageTools: t().optional(),
|
|
1019
|
-
confirmations:
|
|
1035
|
+
confirmations: nn.optional()
|
|
1020
1036
|
});
|
|
1021
|
-
var
|
|
1037
|
+
var rn = n({
|
|
1022
1038
|
sessionId: i(),
|
|
1023
1039
|
signedUrl: i(),
|
|
1024
1040
|
providerAgentId: i(),
|
|
1025
1041
|
chatId: i(),
|
|
1026
1042
|
maxSessionSeconds: s().int()
|
|
1027
|
-
}),
|
|
1043
|
+
}), an = n({
|
|
1028
1044
|
voiceId: i(),
|
|
1029
1045
|
name: i(),
|
|
1030
1046
|
category: i().optional(),
|
|
1031
1047
|
previewUrl: i().optional(),
|
|
1032
1048
|
labels: h(i(), i()).optional()
|
|
1033
1049
|
});
|
|
1034
|
-
c(
|
|
1035
|
-
var
|
|
1036
|
-
model:
|
|
1037
|
-
interface:
|
|
1038
|
-
tools:
|
|
1039
|
-
fileUpload:
|
|
1040
|
-
gatewayOptions:
|
|
1041
|
-
channels: c(u(
|
|
1050
|
+
c(an);
|
|
1051
|
+
var on = n({ allowAutomatic: d().default(!1) }), sn = n({ allowAutomatic: l(!0) }), cn = n({
|
|
1052
|
+
model: Bt,
|
|
1053
|
+
interface: $,
|
|
1054
|
+
tools: zt.optional().default(() => zt.parse({})),
|
|
1055
|
+
fileUpload: Yt.optional().default(() => Yt.parse({})),
|
|
1056
|
+
gatewayOptions: Xt.optional().default(() => Xt.parse({})),
|
|
1057
|
+
channels: c(u(Q)).optional().default(() => [...Ut]),
|
|
1042
1058
|
externalContextSchema: re.optional(),
|
|
1043
|
-
openaiApi:
|
|
1044
|
-
voice:
|
|
1045
|
-
toolWorkingSet:
|
|
1046
|
-
hostTools:
|
|
1047
|
-
pageAccess:
|
|
1048
|
-
confirmations:
|
|
1049
|
-
selectionActions:
|
|
1050
|
-
}),
|
|
1059
|
+
openaiApi: Zt.optional().default(() => Zt.parse({})),
|
|
1060
|
+
voice: en.optional().default(() => en.parse({})),
|
|
1061
|
+
toolWorkingSet: $t.optional().default(() => $t.parse({})),
|
|
1062
|
+
hostTools: ve.optional(),
|
|
1063
|
+
pageAccess: Ee.optional(),
|
|
1064
|
+
confirmations: on.optional(),
|
|
1065
|
+
selectionActions: at.optional()
|
|
1066
|
+
}), ln = n({
|
|
1051
1067
|
rateLimits: n({
|
|
1052
1068
|
minuteRateLimit: s().int().min(0).optional(),
|
|
1053
1069
|
hourRateLimit: s().int().min(0).optional(),
|
|
@@ -1062,15 +1078,15 @@ n({
|
|
|
1062
1078
|
prompt: i().optional(),
|
|
1063
1079
|
model: i().optional(),
|
|
1064
1080
|
fallbackModels: c(i()).default([]),
|
|
1065
|
-
status: u(
|
|
1066
|
-
visibility: u(
|
|
1067
|
-
settings:
|
|
1068
|
-
page: (e.pageAccess?.level ??
|
|
1069
|
-
word: !e.tools.disabled.includes(
|
|
1070
|
-
excel: !e.tools.disabled.includes(
|
|
1081
|
+
status: u(R).default(R.Draft),
|
|
1082
|
+
visibility: u(z).default(z.Organization),
|
|
1083
|
+
settings: cn.superRefine((e, t) => tt(e, t, {
|
|
1084
|
+
page: (e.pageAccess?.level ?? A.Off) !== A.Off,
|
|
1085
|
+
word: !e.tools.disabled.includes(G.WordDocument),
|
|
1086
|
+
excel: !e.tools.disabled.includes(G.Spreadsheet)
|
|
1071
1087
|
})),
|
|
1072
|
-
security:
|
|
1073
|
-
type: u(
|
|
1088
|
+
security: ln.nullish(),
|
|
1089
|
+
type: u(B).default(B.Chat),
|
|
1074
1090
|
organizationId: i()
|
|
1075
1091
|
}), o(() => n({
|
|
1076
1092
|
id: i(),
|
|
@@ -1078,11 +1094,11 @@ n({
|
|
|
1078
1094
|
prompt: i(),
|
|
1079
1095
|
model: i(),
|
|
1080
1096
|
fallbackModels: c(i()).nullable().default([]),
|
|
1081
|
-
status: u(
|
|
1082
|
-
visibility: u(
|
|
1083
|
-
settings:
|
|
1084
|
-
security:
|
|
1085
|
-
type: u(
|
|
1097
|
+
status: u(R).default(R.Draft),
|
|
1098
|
+
visibility: u(z).default(z.Organization),
|
|
1099
|
+
settings: cn,
|
|
1100
|
+
security: ln.nullable(),
|
|
1101
|
+
type: u(B).default(B.Chat),
|
|
1086
1102
|
organizationId: i(),
|
|
1087
1103
|
createdAt: f(),
|
|
1088
1104
|
createdBy: i(),
|
|
@@ -1094,25 +1110,25 @@ n({
|
|
|
1094
1110
|
outOfBudget: d().optional().default(!1),
|
|
1095
1111
|
outOfBudgetReason: i().optional().default("")
|
|
1096
1112
|
}));
|
|
1097
|
-
var
|
|
1113
|
+
var un = n({
|
|
1098
1114
|
id: i(),
|
|
1099
1115
|
name: i(),
|
|
1100
|
-
status: u(
|
|
1101
|
-
visibility: u(
|
|
1116
|
+
status: u(R),
|
|
1117
|
+
visibility: u(z),
|
|
1102
1118
|
organizationId: i(),
|
|
1103
|
-
interface:
|
|
1119
|
+
interface: $,
|
|
1104
1120
|
createdAt: f(),
|
|
1105
1121
|
updatedAt: f(),
|
|
1106
1122
|
capabilities: n({
|
|
1107
|
-
fileUpload:
|
|
1108
|
-
voice:
|
|
1109
|
-
hostTools:
|
|
1110
|
-
pageAccess:
|
|
1111
|
-
confirmations:
|
|
1112
|
-
selectionActions:
|
|
1123
|
+
fileUpload: Yt,
|
|
1124
|
+
voice: tn,
|
|
1125
|
+
hostTools: ye.optional(),
|
|
1126
|
+
pageAccess: Oe.optional(),
|
|
1127
|
+
confirmations: sn.optional(),
|
|
1128
|
+
selectionActions: ot.optional()
|
|
1113
1129
|
}),
|
|
1114
|
-
channels: c(u(
|
|
1115
|
-
}),
|
|
1130
|
+
channels: c(u(Q)).default(() => [...Ut])
|
|
1131
|
+
}), dn = $.pick({
|
|
1116
1132
|
logo: !0,
|
|
1117
1133
|
mainColor: !0,
|
|
1118
1134
|
textColor: !0,
|
|
@@ -1123,41 +1139,41 @@ var an = n({
|
|
|
1123
1139
|
hideFloatingButton: !0,
|
|
1124
1140
|
copilotPageCss: !0,
|
|
1125
1141
|
customCss: !0
|
|
1126
|
-
}),
|
|
1142
|
+
}), fn = un.pick({
|
|
1127
1143
|
id: !0,
|
|
1128
1144
|
name: !0,
|
|
1129
1145
|
organizationId: !0
|
|
1130
|
-
}).extend({ interface:
|
|
1146
|
+
}).extend({ interface: dn }), pn = n({
|
|
1131
1147
|
emailPassword: d(),
|
|
1132
1148
|
google: d(),
|
|
1133
1149
|
microsoft: d()
|
|
1134
|
-
}),
|
|
1150
|
+
}), mn = n({
|
|
1135
1151
|
requiresAuth: l(!1),
|
|
1136
|
-
agent:
|
|
1152
|
+
agent: un,
|
|
1137
1153
|
branding: r()
|
|
1138
|
-
}),
|
|
1154
|
+
}), hn = n({
|
|
1139
1155
|
requiresAuth: l(!0),
|
|
1140
1156
|
agent: r(),
|
|
1141
|
-
branding:
|
|
1157
|
+
branding: fn
|
|
1142
1158
|
});
|
|
1143
|
-
p("requiresAuth", [
|
|
1144
|
-
var
|
|
1159
|
+
p("requiresAuth", [mn, hn]);
|
|
1160
|
+
var gn = n({
|
|
1145
1161
|
frontendUrl: i().optional(),
|
|
1146
1162
|
telemetry: n({
|
|
1147
1163
|
environment: i(),
|
|
1148
1164
|
samplingRate: s().min(0).max(1)
|
|
1149
1165
|
}).nullable()
|
|
1150
|
-
}),
|
|
1151
|
-
authMethods:
|
|
1152
|
-
deploymentBranding:
|
|
1153
|
-
deployment:
|
|
1166
|
+
}), _n = n({
|
|
1167
|
+
authMethods: pn,
|
|
1168
|
+
deploymentBranding: fe.nullish(),
|
|
1169
|
+
deployment: gn.optional()
|
|
1154
1170
|
});
|
|
1155
|
-
p("requiresAuth", [
|
|
1171
|
+
p("requiresAuth", [mn.extend(_n.shape), hn.extend(_n.shape)]), n({
|
|
1156
1172
|
id: m(),
|
|
1157
1173
|
limited: d(),
|
|
1158
1174
|
agentIds: c(m())
|
|
1159
1175
|
});
|
|
1160
|
-
var
|
|
1176
|
+
var vn = n({
|
|
1161
1177
|
userId: m(),
|
|
1162
1178
|
name: i(),
|
|
1163
1179
|
email: i(),
|
|
@@ -1168,7 +1184,7 @@ var pn = n({
|
|
|
1168
1184
|
});
|
|
1169
1185
|
n({
|
|
1170
1186
|
id: m(),
|
|
1171
|
-
members: c(
|
|
1187
|
+
members: c(vn)
|
|
1172
1188
|
}), n({
|
|
1173
1189
|
id: m(),
|
|
1174
1190
|
userIds: c(m())
|
|
@@ -1185,11 +1201,11 @@ n({
|
|
|
1185
1201
|
"model"
|
|
1186
1202
|
]),
|
|
1187
1203
|
..._.filters(["done", "type"]),
|
|
1188
|
-
"filter[status]": u(
|
|
1204
|
+
"filter[status]": u(R).optional(),
|
|
1189
1205
|
..._.filter("id"),
|
|
1190
1206
|
..._.fullText(),
|
|
1191
1207
|
..._.ids()
|
|
1192
1208
|
});
|
|
1193
|
-
export {
|
|
1209
|
+
export { A, ce as B, Gt as C, Pe as D, Fe as E, he as F, g as H, xe as I, be as L, Te as M, we as N, Ne as O, Se as P, me as R, Ot as S, Be as T, _ as U, v as V, rn as _, vt as a, St as b, Z as c, nn as d, yt as f, Et as g, wt as h, J as i, De as j, ke as k, X as l, xt as m, G as n, V as o, qt as p, Xt as r, K as s, bt as t, Ct as u, jt as v, j as w, Tt as x, Jt as y, le as z };
|
|
1194
1210
|
|
|
1195
|
-
//# sourceMappingURL=Agent-
|
|
1211
|
+
//# sourceMappingURL=Agent-CekUHTMX.js.map
|