@8wave/ai-elements 0.124.0-beta.4 → 0.124.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-CsSvagZw.js → Agent-BBWFD4nI.js} +7 -1
- package/dist/_chunks/{Agent-CsSvagZw.js.map → Agent-BBWFD4nI.js.map} +1 -1
- package/dist/_chunks/{PkFilePreview-C21RR0l6.js → PkFilePreview-CC2W-RXG.js} +195 -195
- package/dist/_chunks/{PkFilePreview-C21RR0l6.js.map → PkFilePreview-CC2W-RXG.js.map} +1 -1
- package/dist/_chunks/{PkFilePreviewDialog-C5Ex7Rf5.js → PkFilePreviewDialog-DYU2CUZS.js} +2 -2
- package/dist/_chunks/{PkFilePreviewDialog-C5Ex7Rf5.js.map → PkFilePreviewDialog-DYU2CUZS.js.map} +1 -1
- package/dist/_chunks/{PkStreamingMarkdown-PQ3X83Fq.js → PkStreamingMarkdown-CeWyL_2B.js} +3 -3
- package/dist/_chunks/{PkStreamingMarkdown-PQ3X83Fq.js.map → PkStreamingMarkdown-CeWyL_2B.js.map} +1 -1
- package/dist/_chunks/{PkToolChatFile-CYxqugvO.js → PkToolChatFile-BMj7-urz.js} +3 -3
- package/dist/_chunks/{PkToolChatFile-CYxqugvO.js.map → PkToolChatFile-BMj7-urz.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestGeolocation-CSAMqLyV.js → PkToolRequestGeolocation-D98zUqNQ.js} +2 -2
- package/dist/_chunks/{PkToolRequestGeolocation-CSAMqLyV.js.map → PkToolRequestGeolocation-D98zUqNQ.js.map} +1 -1
- package/dist/_chunks/{PkToolRequestOAuthConnection-ST3-OlS4.js → PkToolRequestOAuthConnection-DwcRnUcd.js} +2 -2
- package/dist/_chunks/{PkToolRequestOAuthConnection-ST3-OlS4.js.map → PkToolRequestOAuthConnection-DwcRnUcd.js.map} +1 -1
- package/dist/_chunks/{PkToolShowArtifact-BIpD-GkV.js → PkToolShowArtifact-BoJC-NtV.js} +2 -2
- package/dist/_chunks/{PkToolShowArtifact-BIpD-GkV.js.map → PkToolShowArtifact-BoJC-NtV.js.map} +1 -1
- package/dist/_chunks/{PkToolShowContactForm-2_YDqjeM.js → PkToolShowContactForm-CErVBzjl.js} +2 -2
- package/dist/_chunks/{PkToolShowContactForm-2_YDqjeM.js.map → PkToolShowContactForm-CErVBzjl.js.map} +1 -1
- package/dist/_chunks/{PkToolShowForm-Bu4igmQL.js → PkToolShowForm-B7Q79XAb.js} +4 -4
- package/dist/_chunks/{PkToolShowForm-Bu4igmQL.js.map → PkToolShowForm-B7Q79XAb.js.map} +1 -1
- package/dist/_chunks/{PkToolShowImageGallery-BMP-xuYr.js → PkToolShowImageGallery-CxeQcE6A.js} +2 -2
- package/dist/_chunks/{PkToolShowImageGallery-BMP-xuYr.js.map → PkToolShowImageGallery-CxeQcE6A.js.map} +1 -1
- package/dist/_chunks/{PkToolShowProductList-AkLG4dBV.js → PkToolShowProductList-DDqYsHNq.js} +2 -2
- package/dist/_chunks/{PkToolShowProductList-AkLG4dBV.js.map → PkToolShowProductList-DDqYsHNq.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSources-DKtdU_Bq.js → PkToolShowSources-CTc2s510.js} +3 -3
- package/dist/_chunks/{PkToolShowSources-DKtdU_Bq.js.map → PkToolShowSources-CTc2s510.js.map} +1 -1
- package/dist/_chunks/{PkToolShowSuggestedReply-DVr8ps6g.js → PkToolShowSuggestedReply-vui8vph1.js} +2 -2
- package/dist/_chunks/{PkToolShowSuggestedReply-DVr8ps6g.js.map → PkToolShowSuggestedReply-vui8vph1.js.map} +1 -1
- package/dist/_chunks/{PkToolShowVideo-C5jqPYXw.js → PkToolShowVideo-C2kh6pVN.js} +2 -2
- package/dist/_chunks/{PkToolShowVideo-C5jqPYXw.js.map → PkToolShowVideo-C2kh6pVN.js.map} +1 -1
- package/dist/_chunks/{PkToolShowWebPages-BqL9PjpM.js → PkToolShowWebPages-By7zBIVa.js} +2 -2
- package/dist/_chunks/{PkToolShowWebPages-BqL9PjpM.js.map → PkToolShowWebPages-By7zBIVa.js.map} +1 -1
- package/dist/_chunks/{chatImagePolicy-ZiVuD6nX.js → chatImagePolicy-C4jFnVQl.js} +2 -2
- package/dist/_chunks/{chatImagePolicy-ZiVuD6nX.js.map → chatImagePolicy-C4jFnVQl.js.map} +1 -1
- package/dist/_chunks/{markdown-CUaXq5OY.js → markdown-DDYeZICP.js} +2 -2
- package/dist/_chunks/{markdown-CUaXq5OY.js.map → markdown-DDYeZICP.js.map} +1 -1
- package/dist/_chunks/{utils-Bz1Gb3iO.js → utils-DAQfsk2H.js} +109 -70
- package/dist/_chunks/utils-DAQfsk2H.js.map +1 -0
- package/dist/ai-elements.es.js +2529 -2509
- 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-D3US-D1x.js → Agent-DQl-tv4S.js} +154 -148
- package/dist-vue/_chunks/{Agent-D3US-D1x.js.map → Agent-DQl-tv4S.js.map} +1 -1
- package/dist-vue/_chunks/{Document-D5FVOcP9.js → Document-DXDifFZE.js} +2 -2
- package/dist-vue/_chunks/{Document-D5FVOcP9.js.map → Document-DXDifFZE.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbot-BA2tk9ix.js → PkChatbot-DQssgXm3.js} +8 -8
- package/dist-vue/_chunks/{PkChatbot-BA2tk9ix.js.map → PkChatbot-DQssgXm3.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotEmptyState-qKpfIuvI.js → PkChatbotEmptyState-B6qxJAPT.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotEmptyState-qKpfIuvI.js.map → PkChatbotEmptyState-B6qxJAPT.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotInput-DSH5IrO6.js → PkChatbotInput-Bk8OS1xU.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotInput-DSH5IrO6.js.map → PkChatbotInput-Bk8OS1xU.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotMessages-D4LJZxv7.js +1041 -0
- package/dist-vue/_chunks/{PkChatbotMessages-pWNZCmM2.js.map → PkChatbotMessages-D4LJZxv7.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepPayload-BT-Xg18D.js → PkChatbotStepPayload-_0WRbSR6.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotStepPayload-BT-Xg18D.js.map → PkChatbotStepPayload-_0WRbSR6.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cs322RDk.js → PkChatbotStepToolDetail-DiaervF2.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotStepToolDetail-Cs322RDk.js.map → PkChatbotStepToolDetail-DiaervF2.js.map} +1 -1
- package/dist-vue/_chunks/PkChatbotSteps-BqL-ClgI.js +189 -0
- package/dist-vue/_chunks/{PkChatbotSteps-Dd62GEXJ.js.map → PkChatbotSteps-BqL-ClgI.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewChat-C8-fUyQh.js → PkChatbotViewChat-BfVLCU_j.js} +337 -317
- package/dist-vue/_chunks/PkChatbotViewChat-BfVLCU_j.js.map +1 -0
- package/dist-vue/_chunks/{PkChatbotViewConversations-CIv5g2xZ.js → PkChatbotViewConversations-C32O6SsT.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewConversations-CIv5g2xZ.js.map → PkChatbotViewConversations-C32O6SsT.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewFiles-DjYF-UoB.js → PkChatbotViewFiles-Du5AAS4v.js} +3 -3
- package/dist-vue/_chunks/{PkChatbotViewFiles-DjYF-UoB.js.map → PkChatbotViewFiles-Du5AAS4v.js.map} +1 -1
- package/dist-vue/_chunks/{PkChatbotViewProfile-D3d-hG14.js → PkChatbotViewProfile-UZrZdOyM.js} +2 -2
- package/dist-vue/_chunks/{PkChatbotViewProfile-D3d-hG14.js.map → PkChatbotViewProfile-UZrZdOyM.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreview-DfRbMUCD.js → PkFilePreview-jeqvHDm7.js} +29 -29
- package/dist-vue/_chunks/{PkFilePreview-DfRbMUCD.js.map → PkFilePreview-jeqvHDm7.js.map} +1 -1
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cap9D7s8.js → PkFilePreviewDialog-BSvgiM9A.js} +2 -2
- package/dist-vue/_chunks/{PkFilePreviewDialog-Cap9D7s8.js.map → PkFilePreviewDialog-BSvgiM9A.js.map} +1 -1
- package/dist-vue/_chunks/{PkStreamingMarkdown-QDsT-4jC.js → PkStreamingMarkdown-Dk3iXhTm.js} +3 -3
- package/dist-vue/_chunks/{PkStreamingMarkdown-QDsT-4jC.js.map → PkStreamingMarkdown-Dk3iXhTm.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolChatFile-UZeUytvT.js → PkToolChatFile-Bnj-YFLh.js} +3 -3
- package/dist-vue/_chunks/{PkToolChatFile-UZeUytvT.js.map → PkToolChatFile-Bnj-YFLh.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestGeolocation-gEDbmudT.js → PkToolRequestGeolocation-SDzM1-Wl.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestGeolocation-gEDbmudT.js.map → PkToolRequestGeolocation-SDzM1-Wl.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C9_w8V0T.js → PkToolRequestOAuthConnection-DNrlGxMX.js} +2 -2
- package/dist-vue/_chunks/{PkToolRequestOAuthConnection-C9_w8V0T.js.map → PkToolRequestOAuthConnection-DNrlGxMX.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowArtifact-ldnH-U3h.js → PkToolShowArtifact-BtCGilTJ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowArtifact-ldnH-U3h.js.map → PkToolShowArtifact-BtCGilTJ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowContactForm-4hISKYqb.js → PkToolShowContactForm-BZNIeJpf.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowContactForm-4hISKYqb.js.map → PkToolShowContactForm-BZNIeJpf.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowDiagram-uHFCQ0FJ.js → PkToolShowDiagram-KD4MfVkP.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowDiagram-uHFCQ0FJ.js.map → PkToolShowDiagram-KD4MfVkP.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowForm-DiUz5_Ct.js → PkToolShowForm-Dtfpi58S.js} +4 -4
- package/dist-vue/_chunks/{PkToolShowForm-DiUz5_Ct.js.map → PkToolShowForm-Dtfpi58S.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowImageGallery-CEzeXupr.js → PkToolShowImageGallery-DnS04nTs.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowImageGallery-CEzeXupr.js.map → PkToolShowImageGallery-DnS04nTs.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowProductList-h4Dqvk1V.js → PkToolShowProductList-BlFKAtqQ.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowProductList-h4Dqvk1V.js.map → PkToolShowProductList-BlFKAtqQ.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSources-BJd4zYAY.js → PkToolShowSources-DM177ZlR.js} +3 -3
- package/dist-vue/_chunks/{PkToolShowSources-BJd4zYAY.js.map → PkToolShowSources-DM177ZlR.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Bb7Inxa4.js → PkToolShowSuggestedReply-BlcEfMx8.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowSuggestedReply-Bb7Inxa4.js.map → PkToolShowSuggestedReply-BlcEfMx8.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowVideo-DgkpZriW.js → PkToolShowVideo-DQdVpaWT.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowVideo-DgkpZriW.js.map → PkToolShowVideo-DQdVpaWT.js.map} +1 -1
- package/dist-vue/_chunks/{PkToolShowWebPages-DQr3SEGC.js → PkToolShowWebPages-Cx2Ft_wN.js} +2 -2
- package/dist-vue/_chunks/{PkToolShowWebPages-DQr3SEGC.js.map → PkToolShowWebPages-Cx2Ft_wN.js.map} +1 -1
- package/dist-vue/_chunks/{createChatbotApiClient-CFKeOgEA.js → createChatbotApiClient-Bukf58dz.js} +2 -2
- package/dist-vue/_chunks/{createChatbotApiClient-CFKeOgEA.js.map → createChatbotApiClient-Bukf58dz.js.map} +1 -1
- package/dist-vue/_chunks/{useChatbotStore--PcS9kGN.js → useChatbotStore-DcvdWkgq.js} +3 -3
- package/dist-vue/_chunks/{useChatbotStore--PcS9kGN.js.map → useChatbotStore-DcvdWkgq.js.map} +1 -1
- package/dist-vue/_chunks/{utils-DmBnucJs.js → utils-BuxgMuKv.js} +125 -76
- package/dist-vue/_chunks/utils-BuxgMuKv.js.map +1 -0
- package/dist-vue/api.js +1 -1
- package/dist-vue/apps/web-component/src/composables/useChatbotAgent.d.ts +4 -0
- package/dist-vue/composables.js +8 -8
- package/dist-vue/composables.js.map +1 -1
- package/dist-vue/index.js +5620 -5554
- package/dist-vue/index.js.map +1 -1
- package/dist-vue/locales.js +18 -0
- package/dist-vue/packages/components/src/chat/PkAgentSettingsPanel.d.ts +8 -2
- package/dist-vue/packages/components/src/chat/PkAuroraCanvas.d.ts +10 -3
- package/dist-vue/packages/components/src/chat/utils.d.ts +29 -0
- package/dist-vue/packages/composable/src/chatbot/useChatbotStore.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/Agent.d.ts +48 -0
- package/dist-vue/packages/models/src/schema/ReasoningChat.d.ts +12 -0
- package/dist-vue/packages/models/src/schema/SubAgent.d.ts +12 -0
- package/dist-vue/style.css +1 -1
- package/package.json +1 -1
- package/dist/_chunks/utils-Bz1Gb3iO.js.map +0 -1
- package/dist-vue/_chunks/PkChatbotMessages-pWNZCmM2.js +0 -1041
- package/dist-vue/_chunks/PkChatbotSteps-Dd62GEXJ.js +0 -189
- package/dist-vue/_chunks/PkChatbotViewChat-C8-fUyQh.js.map +0 -1
- package/dist-vue/_chunks/utils-DmBnucJs.js.map +0 -1
package/dist-vue/PkChatbot.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbot-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbot-DQssgXm3.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotEmptyState-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotEmptyState-B6qxJAPT.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotInput-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotInput-Bk8OS1xU.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotMessages-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotMessages-D4LJZxv7.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepPayload-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepPayload-_0WRbSR6.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotStepToolDetail-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotStepToolDetail-DiaervF2.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotSteps-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotSteps-BqL-ClgI.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewChat-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewChat-BfVLCU_j.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewConversations-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewConversations-C32O6SsT.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewFiles-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewFiles-Du5AAS4v.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as default } from "./_chunks/PkChatbotViewProfile-
|
|
1
|
+
export { t as default } from "./_chunks/PkChatbotViewProfile-UZrZdOyM.js";
|
|
@@ -345,19 +345,19 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
345
345
|
"high",
|
|
346
346
|
"xhigh",
|
|
347
347
|
"max"
|
|
348
|
-
],
|
|
348
|
+
], R = [
|
|
349
349
|
"minimal",
|
|
350
350
|
"low",
|
|
351
351
|
"medium",
|
|
352
352
|
"high"
|
|
353
|
-
],
|
|
353
|
+
], z = [
|
|
354
354
|
"auto",
|
|
355
355
|
"detailed",
|
|
356
356
|
"concise"
|
|
357
|
-
],
|
|
357
|
+
], qe = d({
|
|
358
358
|
reasoningEffort: l(I).optional(),
|
|
359
|
-
reasoningSummary: l(
|
|
360
|
-
}),
|
|
359
|
+
reasoningSummary: l(z).optional()
|
|
360
|
+
}), Je = d({
|
|
361
361
|
type: l([
|
|
362
362
|
"adaptive",
|
|
363
363
|
"enabled",
|
|
@@ -366,11 +366,11 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
366
366
|
effort: l(L).optional(),
|
|
367
367
|
display: l(["summarized", "omitted"]).optional(),
|
|
368
368
|
budgetTokens: i().int().positive().optional()
|
|
369
|
-
}),
|
|
370
|
-
thinkingLevel: l(
|
|
369
|
+
}), Ye = d({
|
|
370
|
+
thinkingLevel: l(R).optional(),
|
|
371
371
|
thinkingBudget: i().int().optional(),
|
|
372
372
|
includeThoughts: u().optional()
|
|
373
|
-
}),
|
|
373
|
+
}), Xe = d({ type: l(["enabled", "disabled"]).optional() }), B = [
|
|
374
374
|
"alibaba",
|
|
375
375
|
"meta",
|
|
376
376
|
"moonshotai",
|
|
@@ -378,67 +378,67 @@ var M = /* @__PURE__ */ function(e) {
|
|
|
378
378
|
"xiaomi",
|
|
379
379
|
"zai"
|
|
380
380
|
];
|
|
381
|
-
function
|
|
382
|
-
return
|
|
381
|
+
function Ze(e) {
|
|
382
|
+
return B.includes(e);
|
|
383
383
|
}
|
|
384
|
-
var
|
|
384
|
+
var V = [
|
|
385
385
|
"none",
|
|
386
386
|
"minimal",
|
|
387
387
|
"low",
|
|
388
388
|
"medium",
|
|
389
389
|
"high",
|
|
390
390
|
"xhigh"
|
|
391
|
-
],
|
|
392
|
-
function
|
|
391
|
+
], H = d({ reasoningEffort: l(V).optional() });
|
|
392
|
+
function U(e, t) {
|
|
393
393
|
return e && t.includes(e) ? e : void 0;
|
|
394
394
|
}
|
|
395
|
-
var
|
|
396
|
-
openai:
|
|
397
|
-
anthropic:
|
|
398
|
-
google:
|
|
399
|
-
deepseek:
|
|
400
|
-
alibaba:
|
|
401
|
-
meta:
|
|
402
|
-
moonshotai:
|
|
403
|
-
spacexai:
|
|
404
|
-
xiaomi:
|
|
405
|
-
zai:
|
|
395
|
+
var Qe = d({
|
|
396
|
+
openai: qe.optional(),
|
|
397
|
+
anthropic: Je.optional(),
|
|
398
|
+
google: Ye.optional(),
|
|
399
|
+
deepseek: Xe.optional(),
|
|
400
|
+
alibaba: H.optional(),
|
|
401
|
+
meta: H.optional(),
|
|
402
|
+
moonshotai: H.optional(),
|
|
403
|
+
spacexai: H.optional(),
|
|
404
|
+
xiaomi: H.optional(),
|
|
405
|
+
zai: H.optional()
|
|
406
406
|
});
|
|
407
|
-
function
|
|
407
|
+
function $e(e) {
|
|
408
408
|
if (!e || typeof e != "object") return e;
|
|
409
409
|
let t = e, n = [
|
|
410
410
|
"openai",
|
|
411
411
|
"anthropic",
|
|
412
412
|
"google",
|
|
413
413
|
"deepseek",
|
|
414
|
-
...
|
|
414
|
+
...B
|
|
415
415
|
].some((e) => e in t);
|
|
416
416
|
if ("effort" in t && !n) {
|
|
417
417
|
let e = t.effort, n = t.reasoningSummary, r = {};
|
|
418
418
|
if (e && e !== "off" && e !== "none") {
|
|
419
|
-
let t =
|
|
419
|
+
let t = U(e, I), i = U(n, z);
|
|
420
420
|
(t || i) && (r.openai = {
|
|
421
421
|
...t && { reasoningEffort: t },
|
|
422
422
|
...i && { reasoningSummary: i }
|
|
423
423
|
});
|
|
424
|
-
let a =
|
|
424
|
+
let a = U(e, L);
|
|
425
425
|
a && (r.anthropic = {
|
|
426
426
|
type: "adaptive",
|
|
427
427
|
effort: a
|
|
428
428
|
});
|
|
429
|
-
let o =
|
|
429
|
+
let o = U(e === "xhigh" || e === "max" ? "high" : e, R);
|
|
430
430
|
o && (r.google = { thinkingLevel: o }), r.deepseek = { type: "enabled" };
|
|
431
|
-
let s =
|
|
432
|
-
if (s) for (let e of
|
|
431
|
+
let s = U(e === "max" ? "xhigh" : e, V);
|
|
432
|
+
if (s) for (let e of B) r[e] = { reasoningEffort: s };
|
|
433
433
|
} else {
|
|
434
434
|
r.openai = { reasoningEffort: "none" }, r.anthropic = { type: "disabled" }, r.google = { thinkingLevel: "minimal" }, r.deepseek = { type: "disabled" };
|
|
435
|
-
for (let e of
|
|
435
|
+
for (let e of B) r[e] = { reasoningEffort: "none" };
|
|
436
436
|
}
|
|
437
437
|
return r;
|
|
438
438
|
}
|
|
439
439
|
return e;
|
|
440
440
|
}
|
|
441
|
-
var
|
|
441
|
+
var et = h(f(), Qe, $e).optional(), tt = {
|
|
442
442
|
openai: { reasoningEffort: "low" },
|
|
443
443
|
anthropic: {
|
|
444
444
|
type: "adaptive",
|
|
@@ -452,107 +452,107 @@ var tt = h(f(), $e, et).optional(), nt = {
|
|
|
452
452
|
xiaomi: { reasoningEffort: "low" },
|
|
453
453
|
zai: { reasoningEffort: "low" }
|
|
454
454
|
};
|
|
455
|
-
function
|
|
455
|
+
function nt(e) {
|
|
456
456
|
return !!e && typeof e == "object" && Object.values(e).some((e) => e !== void 0);
|
|
457
457
|
}
|
|
458
|
-
function
|
|
458
|
+
function rt(e, t) {
|
|
459
459
|
let n = t?.[e];
|
|
460
|
-
return
|
|
460
|
+
return nt(n) ? n : tt[e];
|
|
461
461
|
}
|
|
462
|
-
var
|
|
462
|
+
var W = /* @__PURE__ */ function(e) {
|
|
463
463
|
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.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;
|
|
464
|
-
}({}),
|
|
465
|
-
function
|
|
466
|
-
return !
|
|
464
|
+
}({}), it = "mcp-", at = "api-", ot = "subagent-", st = "enableTools";
|
|
465
|
+
function ct(e) {
|
|
466
|
+
return !lt(e) && e !== W.RequestGeolocation;
|
|
467
467
|
}
|
|
468
|
-
function
|
|
469
|
-
return e ===
|
|
468
|
+
function lt(e) {
|
|
469
|
+
return e === W.RequestConfirm || e === W.ShowArtifact || e === W.ShowCalendarEvent || e === W.ShowComparison || e === W.ShowContactForm || e === W.ShowDiagram || e === W.ShowEmail || e === W.ShowImageGallery || e === W.ShowLocation || e === W.ShowMessage || e === W.ShowForm || e === W.ShowMultipleChoice || e === W.ShowProductList || e === W.ShowQrCode || e === W.ShowSources || e === W.ShowSuggestedReply || e === W.ShowVideo || e === W.ShowWeather || e === W.ShowWebPages;
|
|
470
470
|
}
|
|
471
|
-
var
|
|
471
|
+
var ut = /* @__PURE__ */ new Set([
|
|
472
472
|
"editSpreadsheet",
|
|
473
473
|
"editWordDocument",
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
]),
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
...
|
|
493
|
-
|
|
474
|
+
W.CreateSpreadsheet,
|
|
475
|
+
W.CreateWordDocument
|
|
476
|
+
]), dt = /* @__PURE__ */ new Set([
|
|
477
|
+
W.RequestConfirm,
|
|
478
|
+
W.ShowArtifact,
|
|
479
|
+
W.ShowWeather,
|
|
480
|
+
W.ShowLocation,
|
|
481
|
+
W.ShowComparison,
|
|
482
|
+
W.ShowProductList,
|
|
483
|
+
W.ShowWebPages,
|
|
484
|
+
W.ShowImageGallery,
|
|
485
|
+
W.ShowVideo,
|
|
486
|
+
W.ShowSources,
|
|
487
|
+
W.ShowSuggestedReply,
|
|
488
|
+
W.ShowCalendarEvent,
|
|
489
|
+
W.ShowEmail,
|
|
490
|
+
W.ShowMessage,
|
|
491
|
+
W.ShowForm,
|
|
492
|
+
...ut,
|
|
493
|
+
W.ShareDocument
|
|
494
494
|
]);
|
|
495
|
-
function
|
|
496
|
-
return
|
|
495
|
+
function ft(e) {
|
|
496
|
+
return dt.has(e);
|
|
497
497
|
}
|
|
498
|
-
var
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
498
|
+
var pt = /* @__PURE__ */ new Set([
|
|
499
|
+
W.RequestConfirm,
|
|
500
|
+
W.RequestGeolocation,
|
|
501
|
+
W.ShowForm,
|
|
502
|
+
W.ShowMultipleChoice,
|
|
503
503
|
"requestOAuthConnection"
|
|
504
504
|
]);
|
|
505
|
-
function
|
|
506
|
-
return
|
|
505
|
+
function mt(e) {
|
|
506
|
+
return pt.has(e);
|
|
507
507
|
}
|
|
508
|
-
var
|
|
508
|
+
var ht = /* @__PURE__ */ function(e) {
|
|
509
509
|
return e.Web = "web", e.Platform = "platform", e.OpenAiApi = "openai-api", e.Voice = "voice", e;
|
|
510
|
-
}({}),
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
]),
|
|
532
|
-
function
|
|
533
|
-
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(
|
|
510
|
+
}({}), gt = /* @__PURE__ */ new Set([
|
|
511
|
+
W.RequestConfirm,
|
|
512
|
+
W.RequestGeolocation,
|
|
513
|
+
W.ShowArtifact,
|
|
514
|
+
W.ShowCalendarEvent,
|
|
515
|
+
W.ShowContactForm,
|
|
516
|
+
W.ShowComparison,
|
|
517
|
+
W.ShowDiagram,
|
|
518
|
+
W.ShowEmail,
|
|
519
|
+
W.ShowForm,
|
|
520
|
+
W.ShowImageGallery,
|
|
521
|
+
W.ShowLocation,
|
|
522
|
+
W.ShowMessage,
|
|
523
|
+
W.ShowMultipleChoice,
|
|
524
|
+
W.ShowProductList,
|
|
525
|
+
W.ShowQrCode,
|
|
526
|
+
W.ShowSources,
|
|
527
|
+
W.ShowSuggestedReply,
|
|
528
|
+
W.ShowVideo,
|
|
529
|
+
W.ShowWeather,
|
|
530
|
+
W.ShowWebPages
|
|
531
|
+
]), _t = "Shown on the caller's screen";
|
|
532
|
+
function vt(e) {
|
|
533
|
+
return typeof e == "string" && (e.startsWith("Voice turn note") || e.startsWith(_t));
|
|
534
534
|
}
|
|
535
|
-
var
|
|
535
|
+
var yt = d({
|
|
536
536
|
maxSteps: i().int().min(1).max(10).optional().default(5),
|
|
537
537
|
maxOptionsPerStep: i().int().min(2).max(10).optional().default(5)
|
|
538
|
-
}),
|
|
538
|
+
}), G = /* @__PURE__ */ function(e) {
|
|
539
539
|
return e.Perplexity = "perplexity", e.Parallel = "parallel", e.Native = "native", e;
|
|
540
|
-
}({}),
|
|
540
|
+
}({}), bt = {
|
|
541
541
|
openai: "OpenAI",
|
|
542
542
|
anthropic: "Anthropic",
|
|
543
543
|
google: "Google"
|
|
544
544
|
};
|
|
545
|
-
function
|
|
545
|
+
function xt(e) {
|
|
546
546
|
let t = e.split("/")[0];
|
|
547
|
-
return Object.prototype.hasOwnProperty.call(
|
|
547
|
+
return Object.prototype.hasOwnProperty.call(bt, t) ? bt[t] : void 0;
|
|
548
548
|
}
|
|
549
|
-
var
|
|
549
|
+
var St = [
|
|
550
550
|
"perplexity_search",
|
|
551
551
|
"parallel_search",
|
|
552
552
|
"web_search",
|
|
553
553
|
"openai_web_search",
|
|
554
554
|
"google_search"
|
|
555
|
-
],
|
|
555
|
+
], Ct = d({
|
|
556
556
|
maxResults: i().int().min(1).max(20).optional(),
|
|
557
557
|
maxTokens: i().int().positive().max(1e6).optional(),
|
|
558
558
|
maxTokensPerPage: i().int().positive().optional(),
|
|
@@ -565,7 +565,7 @@ var Ct = [
|
|
|
565
565
|
"month",
|
|
566
566
|
"year"
|
|
567
567
|
]).optional()
|
|
568
|
-
}),
|
|
568
|
+
}), wt = d({
|
|
569
569
|
mode: l(["one-shot", "agentic"]).optional(),
|
|
570
570
|
maxResults: i().int().min(1).max(20).optional(),
|
|
571
571
|
sourcePolicy: d({
|
|
@@ -578,7 +578,7 @@ var Ct = [
|
|
|
578
578
|
maxCharsTotal: i().int().positive().optional()
|
|
579
579
|
}).optional(),
|
|
580
580
|
fetchPolicy: d({ maxAgeSeconds: i().int().positive().optional() }).optional()
|
|
581
|
-
}),
|
|
581
|
+
}), Tt = d({
|
|
582
582
|
openai: d({}).optional(),
|
|
583
583
|
anthropic: d({
|
|
584
584
|
maxUses: i().int().positive().optional(),
|
|
@@ -593,29 +593,29 @@ var Ct = [
|
|
|
593
593
|
}).optional()
|
|
594
594
|
}).optional(),
|
|
595
595
|
google: d({}).optional()
|
|
596
|
-
}),
|
|
596
|
+
}), K = d({
|
|
597
597
|
enabled: u().default(!1),
|
|
598
|
-
provider: l(
|
|
599
|
-
perplexity:
|
|
600
|
-
parallel:
|
|
601
|
-
native:
|
|
602
|
-
}),
|
|
603
|
-
disabled: c(l(
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
598
|
+
provider: l(G).optional().default(G.Native),
|
|
599
|
+
perplexity: Ct.optional(),
|
|
600
|
+
parallel: wt.optional(),
|
|
601
|
+
native: Tt.optional()
|
|
602
|
+
}), Et = d({ useAllUserKb: u().default(!1) }), Dt = d({ useAllUserFiles: u().default(!1) }), Ot = d({ enabled: u().default(!1) }), q = d({ enabled: u().default(!1) }), kt = d({ tools: c(n()).default([]) }), At = d({
|
|
603
|
+
disabled: c(l(W)).default([
|
|
604
|
+
W.UserMemory,
|
|
605
|
+
W.SearchInUserFiles,
|
|
606
|
+
W.RunWorker,
|
|
607
|
+
W.FetchTeamsChannelHistory,
|
|
608
|
+
W.ScheduleWakeup
|
|
609
609
|
]),
|
|
610
|
-
showForm:
|
|
611
|
-
webSearch:
|
|
612
|
-
userMemory:
|
|
613
|
-
userFiles:
|
|
614
|
-
shareDocument:
|
|
615
|
-
createSpreadsheet:
|
|
616
|
-
createWordDocument:
|
|
617
|
-
approval:
|
|
618
|
-
}),
|
|
610
|
+
showForm: yt.optional().default(() => yt.parse({})),
|
|
611
|
+
webSearch: K.optional().default(() => K.parse({})),
|
|
612
|
+
userMemory: Et.optional().default(() => Et.parse({})),
|
|
613
|
+
userFiles: Dt.optional().default(() => Dt.parse({})),
|
|
614
|
+
shareDocument: Ot.optional().default(() => Ot.parse({})),
|
|
615
|
+
createSpreadsheet: q.optional().default(() => q.parse({})),
|
|
616
|
+
createWordDocument: q.optional().default(() => q.parse({})),
|
|
617
|
+
approval: kt.optional().default(() => kt.parse({}))
|
|
618
|
+
}), J = d({
|
|
619
619
|
freshness: d({
|
|
620
620
|
enabled: u().default(!1),
|
|
621
621
|
scale: i().int().min(86400).max(31536e3).default(7776e3),
|
|
@@ -627,7 +627,7 @@ var Ct = [
|
|
|
627
627
|
diversity: i().min(0).max(1).default(.3),
|
|
628
628
|
candidatesLimit: i().int().min(20).max(100).default(50)
|
|
629
629
|
}).prefault({})
|
|
630
|
-
}).prefault({}),
|
|
630
|
+
}).prefault({}), jt = d({
|
|
631
631
|
prompt: n().optional(),
|
|
632
632
|
temperature: i().min(0).max(2).optional().default(.6),
|
|
633
633
|
maxOutputTokens: i().positive().optional(),
|
|
@@ -636,13 +636,13 @@ var Ct = [
|
|
|
636
636
|
searchMode: l(F).optional().default(F.Balanced),
|
|
637
637
|
limit: i().positive().max(100).optional().default(10),
|
|
638
638
|
maxStepCount: i().int().min(1).max(40).optional().default(10),
|
|
639
|
-
reasoning:
|
|
640
|
-
ranking:
|
|
641
|
-
}),
|
|
639
|
+
reasoning: et,
|
|
640
|
+
ranking: J.optional().default(() => J.parse({}))
|
|
641
|
+
}), Y = h(f(), p(n(), n()), (e) => typeof e == "string" ? { it: e } : e), Mt = "https://cdn.jsdelivr.net/npm/@8wave/ai-elements/dist/ai-elements.es.js", X = /* @__PURE__ */ function(e) {
|
|
642
642
|
return e.InlineModule = "inline-module", e.ScriptSrc = "script-src", e.DynamicImport = "dynamic-import", e;
|
|
643
|
-
}({}), X = /* @__PURE__ */ function(e) {
|
|
644
|
-
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
645
643
|
}({}), Z = /* @__PURE__ */ function(e) {
|
|
644
|
+
return e.Floating = "floating", e.Copilot = "copilot", e;
|
|
645
|
+
}({}), Nt = /* @__PURE__ */ function(e) {
|
|
646
646
|
return e.Solid = "solid", e.Glass = "glass", e;
|
|
647
647
|
}({}), Q = /* @__PURE__ */ function(e) {
|
|
648
648
|
return e.Frontoffice = "frontoffice", e.App = "app", e.Widget = "widget", e;
|
|
@@ -670,25 +670,31 @@ var Lt = d({
|
|
|
670
670
|
"white",
|
|
671
671
|
"black"
|
|
672
672
|
]).optional().default("auto"),
|
|
673
|
+
glowTones: l([
|
|
674
|
+
"auto",
|
|
675
|
+
"one",
|
|
676
|
+
"two"
|
|
677
|
+
]).optional().default("auto"),
|
|
678
|
+
glowSecondColor: n().regex(_).optional(),
|
|
673
679
|
useColorsForAgentHeader: u().optional().default(!1),
|
|
674
|
-
initialMessage:
|
|
675
|
-
greeting: c(
|
|
676
|
-
messagePlaceholder:
|
|
677
|
-
dismissableNotice:
|
|
678
|
-
footerMessage:
|
|
679
|
-
privacyPolicyNotice:
|
|
680
|
+
initialMessage: Y.optional(),
|
|
681
|
+
greeting: c(Y).min(1).max(10).optional(),
|
|
682
|
+
messagePlaceholder: Y.optional(),
|
|
683
|
+
dismissableNotice: Y.optional(),
|
|
684
|
+
footerMessage: Y.optional(),
|
|
685
|
+
privacyPolicyNotice: Y.optional(),
|
|
680
686
|
interactiveLogin: u().optional().default(!0),
|
|
681
687
|
welcomePopup: u().optional().default(!1),
|
|
682
688
|
floatingButtonPosition: l(["left", "right"]).optional().default("right"),
|
|
683
|
-
layout: l(
|
|
684
|
-
appearance: l(
|
|
689
|
+
layout: l(Z).optional().default(Z.Floating),
|
|
690
|
+
appearance: l(Nt).optional().default(Nt.Solid),
|
|
685
691
|
hideFloatingButton: u().optional().default(!1),
|
|
686
692
|
workingGlow: u().optional().default(!0),
|
|
687
693
|
copilotPageCss: n().optional(),
|
|
688
694
|
maxMessageLength: i().int().positive().optional(),
|
|
689
|
-
widgetUrl: r().default(
|
|
695
|
+
widgetUrl: r().default(Mt),
|
|
690
696
|
loadDelay: i().int().min(0).max(3e4).optional().default(0),
|
|
691
|
-
loaderStrategy: l(
|
|
697
|
+
loaderStrategy: l(X).optional().default(X.InlineModule),
|
|
692
698
|
customCss: n().optional(),
|
|
693
699
|
smoothStream: u().optional().default(!1),
|
|
694
700
|
showExtendedSteps: u().optional().default(!1),
|
|
@@ -703,7 +709,7 @@ var Lt = d({
|
|
|
703
709
|
"text/plain",
|
|
704
710
|
"text/markdown",
|
|
705
711
|
"text/csv"
|
|
706
|
-
], zt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Bt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Vt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(
|
|
712
|
+
], zt = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet", Bt = "application/vnd.openxmlformats-officedocument.wordprocessingml.document", Vt = (e, t) => e === "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" && t.includes(W.Spreadsheet) || e === "application/vnd.openxmlformats-officedocument.wordprocessingml.document" && t.includes(W.WordDocument), $ = d({
|
|
707
713
|
enabled: u().default(!1),
|
|
708
714
|
maxFileSizeBytes: i().int().positive().max(104857600).optional().default(20971520),
|
|
709
715
|
allowedMimeTypes: c(n().regex(re)).optional().default([...Rt]),
|
|
@@ -756,9 +762,9 @@ var Jt = d({
|
|
|
756
762
|
});
|
|
757
763
|
c(Yt);
|
|
758
764
|
var Xt = d({
|
|
759
|
-
model:
|
|
765
|
+
model: jt,
|
|
760
766
|
interface: Lt,
|
|
761
|
-
tools:
|
|
767
|
+
tools: At.optional().default(() => At.parse({})),
|
|
762
768
|
fileUpload: $.optional().default(() => $.parse({})),
|
|
763
769
|
gatewayOptions: Ht.optional().default(() => Ht.parse({})),
|
|
764
770
|
channels: c(l(Q)).optional().default(() => [...Pt]),
|
|
@@ -905,6 +911,6 @@ d({
|
|
|
905
911
|
...g.fullText(),
|
|
906
912
|
...g.ids()
|
|
907
913
|
});
|
|
908
|
-
export { Ie as $, Jt as A,
|
|
914
|
+
export { Ie as $, Jt as A, mt as B, Ke as C, ot as D, zt as E, rt as F, j as G, xt as H, Vt as I, Be as J, He as K, Ze as L, Bt as M, G as N, pt as O, ct as P, Ae as Q, ft as R, it as S, z as T, It as U, vt as V, Ge as W, A as X, ze as Y, Le as Z, ut as _, $ as a, we as at, V as b, J as c, Te as ct, Wt as d, le as dt, Fe as et, P as f, g as ft, Z as g, Nt as h, Q as i, _ as it, St as j, gt as k, et as l, me as lt, K as m, at as n, b as nt, Ht as o, ye as ot, N as p, Ue as q, W as r, D as rt, X as s, ue as st, L as t, ke as tt, F as u, h as ut, ht as v, I as w, R as x, st as y, lt as z };
|
|
909
915
|
|
|
910
|
-
//# sourceMappingURL=Agent-
|
|
916
|
+
//# sourceMappingURL=Agent-DQl-tv4S.js.map
|